/* InfoMensHealth - brand layer (2026-10-05). Source of truth: the approved brand board + preview.
   Loaded after the theme CSS by mu-plugins/imh-brand.php. Remove the plugin to revert. */
@font-face{font-family:"IMH Lexend";src:url(fonts/lexend-latin-wght.woff2) format("woff2");font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:"IMH Source Sans";src:url(fonts/source-sans-3-latin-wght.woff2) format("woff2");font-weight:200 900;font-style:normal;font-display:swap}
:root{--imh-navy:#0F2740;--imh-blue:#1E6FE8;--imh-teal:#0EA5A8;--imh-gray:#E5E7EB;--imh-ground:#F3F5F8;--imh-text:#22364D;--imh-muted:#5D6E82;--imh-line:#DDE2E8;
  --imh-display:"IMH Lexend","Segoe UI",system-ui,sans-serif;--imh-body:"IMH Source Sans","Segoe UI",system-ui,-apple-system,sans-serif}
body.bbe-light{--bbe-theme-color:#1E6FE8;--bbe-site-color-hover:#1E6FE8}
body,body.bbe-light{background:var(--imh-ground)!important;color:var(--imh-text);font-family:var(--imh-body);font-size:17px}
body button,body input,body select,body textarea{font-family:var(--imh-body)}
h1,h2,h3,h4,h5,h6,.entry-title,.widget-title,.widget-title .label{font-family:var(--imh-display)!important;color:var(--imh-navy);letter-spacing:-.01em;text-transform:none}

/* 1. pages bar above the banner: navy */
.bbe-header .bbe--normal .bbe-header-top-row,.bbe-header .bbe--responsive .bbe-header-top-row{background:var(--imh-navy)!important}
.bbe-header-top-row .bbe-container .row{align-items:center;padding-top:0;padding-bottom:0}
.bbe-header-top-row .menu-toggle{display:none}
.bbe-header-top-row .bbe-secondary-menu .menu{display:flex;gap:22px;flex-wrap:nowrap;margin:0;padding:0;list-style:none}
.bbe-header-top-row .bbe-secondary-menu .menu>li{margin:0;flex:0 0 auto}
.bbe-header-top-row .bbe-secondary-menu a{color:#C9D5E3!important;font:400 14px/1.2 var(--imh-body)!important;text-transform:none!important;letter-spacing:0!important;padding:9px 0;display:block;white-space:nowrap}
.bbe-header-top-row .bbe-secondary-menu a:hover{color:#fff!important}
.bbe-header-top-row .column.third{display:flex;justify-content:flex-end}
.imh-claim{white-space:nowrap;color:#8FB4DE;letter-spacing:.08em;text-transform:uppercase;font:500 12px/1.2 var(--imh-body)}

/* 2. header: white, big logo, no site title or tagline text (kept in the DOM for SEO) */
.bbe-header .bbe-header-middle-row{background:#fff!important;border-bottom:1px solid var(--imh-line)}
.bbe-header .bbe-header-middle-row .bbe-container .row{padding-top:22px;padding-bottom:22px}
.bbe-site-logo{display:flex;flex-direction:column;align-items:center}
.bbe-site-logo .custom-logo-link{display:inline-block;line-height:0}
.bbe-site-logo .custom-logo{height:auto;max-width:100%;background:none!important}
.bbe-header .bbe-site-logo .site-title,.bbe-header .bbe-site-logo .site-description{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;margin:0;padding:0}

/* 3. category nav */
.bbe-header .bbe--normal .bbe-header-bottom-row,.bbe-header .bbe--responsive .bbe-header-bottom-row{background:#fff!important;border-bottom:3px solid var(--imh-navy)!important;border-top:0!important}
.bbe-header-bottom-row .bbe-primary-menu .menu{display:flex;justify-content:center;gap:0;flex-wrap:nowrap}
.bbe-header-bottom-row .column.third{flex:0 0 auto}
.bbe-header-bottom-row .bbe-primary-menu .menu>li>a,.bbe-primary-menu .menu>li>a{font:600 13.5px/1.2 var(--imh-display)!important;color:var(--imh-navy)!important;text-transform:none!important;letter-spacing:0!important;padding:14px 11px 12px;border-bottom:3px solid transparent;margin-bottom:-3px;white-space:nowrap}
.bbe-primary-menu .menu>li>a:hover,.bbe-primary-menu .menu>li.current-menu-item>a,.bbe-primary-menu .menu>li.current-menu-parent>a,.bbe-primary-menu .menu>li.current_page_item>a{color:var(--imh-blue)!important;border-bottom-color:var(--imh-blue)}
.bbe-search-icon .icon{color:var(--imh-navy)}

/* pillar strip (injected by imh-brand.php under the nav) */
.imh-pillars{background:#fff;border-bottom:1px solid var(--imh-line)}
.imh-pillars .imh-wrap{max-width:1180px;margin:0 auto;padding:18px 16px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.imh-pillar{display:flex;align-items:center;gap:12px;font:500 15px/1.3 var(--imh-body);color:var(--imh-navy);text-decoration:none;min-width:0}
.imh-pillar:hover{color:var(--imh-blue)}
.imh-pillar img{width:44px;height:44px;flex:none}

/* cards, chips, widgets */
.bbe-article,.single-article article,.widget-area .widget{background:#fff}
.widget-area .widget{border:1px solid var(--imh-line);border-radius:10px;padding:18px;margin-bottom:20px}
.widget-area .widget-title{display:block;font:600 14px/1.3 var(--imh-display)!important;letter-spacing:.06em;text-transform:uppercase!important;margin:0 0 12px;padding:0 0 0 10px;border-left:3px solid var(--imh-teal);background:none}
.widget-area .widget-title .divider{display:none}
.widget-area .widget-title .label{font:inherit!important;letter-spacing:inherit;text-transform:inherit!important}
.widget-area .widget ul{list-style:none;margin:0;padding:0;display:grid;gap:9px;font-size:16px}
.widget-area .widget ul li{margin:0;padding:0;border:0}
.widget-area .widget ul li::before{content:none!important;display:none!important}
.widget-area .widget ul li a{color:var(--imh-text)}
.widget-area .widget ul li a:hover{color:var(--imh-blue)}
.widget-area .widget_categories li{display:flex;justify-content:space-between;gap:12px;color:var(--imh-muted)}
.widget-area .search-form{display:flex;gap:8px}
.widget-area .search-form .search-field{width:100%;font:400 15px var(--imh-body);border:1px solid var(--imh-line);border-radius:8px;padding:9px 12px;background:var(--imh-ground);color:var(--imh-navy)}
.widget-area .ez-toc-widget-container ul.ez-toc-list li a{font:400 15px/1.45 var(--imh-body)!important;color:var(--imh-text)!important}
.widget-area .ez-toc-widget-container ul.ez-toc-list li.active a{color:var(--imh-blue)!important;font-weight:600!important}
.widget-area .ez-toc-widget-container .ez-toc-title{font:600 14px var(--imh-display)!important;letter-spacing:.06em;text-transform:uppercase;color:var(--imh-navy)!important}
.widget-area .widget.ez-toc{position:sticky;top:20px}
.entry-categories{list-style:none;margin:0 0 6px;padding:0;display:flex;flex-wrap:wrap;gap:6px 10px}
.entry-categories a,.entry-categories .cat-item-link{font:600 12px/1.4 var(--imh-body)!important;letter-spacing:.06em;text-transform:uppercase!important;color:var(--imh-teal)!important;background:none!important;padding:0!important}
.entry-title a:hover,.entry-title:hover a{color:var(--imh-blue)}
.entry-meta,.entry-meta a{color:var(--imh-muted)}
.entry-content,.entry-excerpt{font-family:var(--imh-body)}
.imh-k{color:#6FD3D5;letter-spacing:.08em;text-transform:uppercase;font:600 13.5px/1.4 var(--imh-body);margin:0}

/* footer: navy, three columns, taglines */
.bbe-footer,.bbe-footer .bbe-footer-row{background:var(--imh-navy)!important;color:#B9C7D8}
.bbe-footer .widget{background:transparent!important;border:0!important;padding:0;margin:0;color:#B9C7D8;box-shadow:none}
.bbe-footer .bbe-footer-top-row .bbe-container .row{padding-top:40px;padding-bottom:26px;align-items:flex-start}
.bbe-footer .column{text-align:left!important;align-items:flex-start!important}
.bbe-footer .widget-title,.bbe-footer .widget-title .label{font:600 13px/1.3 var(--imh-display)!important;letter-spacing:.1em;text-transform:uppercase!important;color:#fff!important;margin:0 0 12px;padding:0;border:0;background:none}
.bbe-footer .widget-title .divider{display:none}
.bbe-footer .widget ul{list-style:none;margin:0;padding:0;display:grid;gap:8px;font-size:15px}
.bbe-footer .widget ul li{margin:0;padding:0;border:0!important;color:#B9C7D8}
.bbe-footer .widget ul li::before{content:none!important;display:none!important}
.bbe-footer .widget ul li a{color:#B9C7D8!important}
.bbe-footer .widget ul li a:hover{color:#fff!important}
.bbe-footer .bbe-footer-bottom-row{border-top:1px solid rgba(229,231,235,.14)}
.bbe-footer .bbe-footer-bottom-row .row{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 24px;padding-top:16px;padding-bottom:16px}
.bbe-footer .bbe-footer-bottom-row .column{width:auto;flex:0 1 auto}
.bbe-footer .bbe-copyright,.bbe-footer .bbe-copyright p{color:#B9C7D8;font:400 13.5px/1.5 var(--imh-body);margin:0}

@media (max-width:960px){
  .imh-pillars .imh-wrap{grid-template-columns:repeat(2,minmax(0,1fr))}
  .imh-claim{display:none}
}
@media (max-width:640px){
  .imh-pillar{font-size:13.5px}.imh-pillar img{width:36px;height:36px}
  .bbe-footer .bbe-footer-bottom-row .row{flex-direction:column;align-items:flex-start}
}

/* body font everywhere except headings/icons (the theme sets Montserrat on many selectors) */
body.bbe-light :is(p,li,a,span,div,time,label,input,button,textarea,td,th,blockquote,figcaption,small,strong,em):not([class*="fa-"]):not(.icon){font-family:var(--imh-body)}
body.bbe-light :is(h1,h2,h3,h4,h5,h6),body.bbe-light .entry-title,body.bbe-light .entry-title a,body.bbe-light .widget-title,body.bbe-light .widget-title .label,body.bbe-light .bbe-primary-menu .menu>li>a{font-family:var(--imh-display)!important}
body.bbe-light .imh-pillar,body.bbe-light .imh-pillar span{font-family:var(--imh-body)!important}
body.bbe-light .bbe-footer .imh-k,body.bbe-light .imh-k{color:#6FD3D5!important;font-weight:600}
.bbe-footer .bbe-footer-top-row .row{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}
.bbe-footer .bbe-footer-top-row .column{width:auto}

/* the theme paints widget-title labels with a transparent text fill (gradient clip): force a real colour */
.widget-title .label,.section-head .label,.bbe-footer .widget-title,.bbe-footer .widget-title .label{-webkit-text-fill-color:currentColor!important;background:none!important}
.widget-area .widget_recent_entries .post-date{display:block;font-size:13.5px;color:var(--imh-muted)}
.widget-area .widget_recent_entries li{display:block}

.bbe-footer .bbe-footer-top-row .column>*,.bbe-footer .bbe-footer-top-row [class^="bbe-footer-widget-area"]{width:100%;max-width:none;margin:0;text-align:left}
.bbe-footer .bbe-footer-top-row .column{display:block;justify-self:stretch}
@media (max-width:960px){
  .bbe-header-top-row .row{display:block}
  .bbe-header-top-row .column.first{width:100%;min-width:0}
  .bbe-header-top-row .bbe-secondary-menu .menu{overflow-x:auto;scrollbar-width:none;gap:20px}
  .bbe-header-top-row .bbe-secondary-menu .menu::-webkit-scrollbar{display:none}
  .bbe-footer .bbe-footer-top-row .row{grid-template-columns:minmax(0,1fr)}
}

.bbe-header-top-row .bbe-secondary-menu .menu{flex-wrap:nowrap!important}
.bbe-header-top-row .bbe-secondary-menu .menu>li{flex:0 0 auto!important;width:auto!important}
.bbe-header-top-row .column.first.has-secondary-menu{flex-wrap:nowrap;min-width:0}
.bbe-header-top-row .secondary-navigation{width:100%;min-width:0}

/* mobile: keep the pages bar inside the viewport (it scrolls sideways) */
.bbe-header-top-row .column.first{max-width:100%;overflow:hidden}
.bbe-header-top-row .bbe-secondary-menu,.bbe-header-top-row .secondary-navigation{max-width:100%}
.bbe-header-top-row .menu-container{overflow-x:auto;scrollbar-width:none;max-width:100%}
.bbe-header-top-row .menu-container::-webkit-scrollbar{display:none}
/* sticky TOC: the theme makes the whole sidebar sticky, which hides a widget at its bottom; make only the TOC sticky */
body #secondary.widget-area{position:static!important;align-self:stretch!important}
body .content-wrapper.is-sticky{align-items:stretch}

/* Ronen doc 2026-10-06 item 1: featured images are 16:9 posters with the post title lettered into
   the image. The theme framed them 4:3 / 1:1 / 3:2 / 5:3, which cut the lettering off. Every
   featured-image frame is 16:9 now, so the whole poster (and its title) shows. Card files are the
   uncropped 16:9 size (imh-display-fixes.php). */
body #page.site .bbe-article-figure{aspect-ratio:16/9!important;height:auto!important;max-height:none!important}
body #page.site .bbe-article-figure > a,
body #page.site .bbe-article-figure .post-thumbnail{display:block;width:100%!important;height:100%!important}
body #page.site .bbe-article-figure img.wp-post-image{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important}
body #page.site .bbe-post-navigation .nav-links .bbe-article-figure{width:112px!important}
/* item 5: Editorial Team avatar = the logo mark in a circle */
body .bbe-author-box .author-thumb img.imh-team-avatar,
body img.avatar.imh-team-avatar{border-radius:50%;background:#fff;object-fit:contain}
/* item 4: source links in the article text and in the Sources list read as links (they were
   body-coloured with no underline, so readers could not see the citations). Scoped to the post
   body (.entry-excerpt) so category labels, tags and post navigation keep the theme look. */
body.single .single-article .entry-excerpt p a,
body.single .single-article .entry-excerpt li a,
body.single .single-article .entry-excerpt td a,
body.single .imh-references a{color:var(--imh-blue)!important;text-decoration:underline!important;text-decoration-thickness:1px;text-underline-offset:2px}
body.single .single-article .entry-excerpt p a:hover,
body.single .single-article .entry-excerpt li a:hover,
body.single .imh-references a:hover{color:var(--imh-navy)!important}
