/* Approved FCIB artwork: original 1651 x 861 proportions, no recoloring/crop/effects.
   Transparent artwork always sits on a white chip so its black FCIB/type stays readable.
   Lossless WebP preserves every RGBA pixel and the exact master aspect ratio. */
html body img[data-fcib-approved-logo],
html body img[src*="assets/fcib-logo-approved"] {
  display:block!important; flex-shrink:0!important;
  height:156px!important; max-height:156px!important; width:auto!important;
  max-width:none!important; min-height:0!important; aspect-ratio:1651 / 861!important;
  object-fit:contain!important; object-position:center!important;
  padding:0!important; border:0!important; border-radius:4px!important;
  background-color:#fff!important; filter:none!important; animation:none!important;
  transform:none!important; clip-path:none!important; opacity:1!important;
  mix-blend-mode:normal!important; forced-color-adjust:none;
}
html body header img[data-fcib-approved-logo],
html body header.claims-header a.claims-header__brand img.fcib-logo,
html body header.insights-page-header a.insights-page-header__brand img.fcib-logo,
html body header.site-header img.logo__img,
html body.quote-page #quote-header a.claims-header__brand img.fcib-logo {
  height:156px!important; max-height:156px!important; width:auto!important;
  aspect-ratio:1651 / 861!important; object-fit:contain!important; max-width:none!important;
  margin:0!important; transform:none!important; filter:none!important; animation:none!important;
}
html body header a.brand { background-color:#fff!important; }
html body footer img[data-fcib-approved-logo] {
  height:240px!important; max-height:240px!important; width:auto!important; max-width:none!important;
}
html body img[data-fcib-logo-signature] {
  height:188px!important; max-height:188px!important; width:auto!important; max-width:100%!important;
}
@media (max-width:768px) {
  html body img[data-fcib-approved-logo],
  html body img[src*="assets/fcib-logo-approved"],
  html body header img[data-fcib-approved-logo],
  html body header.claims-header a.claims-header__brand img.fcib-logo,
  html body header.insights-page-header a.insights-page-header__brand img.fcib-logo,
  html body header.site-header img.logo__img,
  html body.quote-page #quote-header a.claims-header__brand img.fcib-logo {
    height:120px!important; max-height:120px!important; width:auto!important;
  }
  html body footer img[data-fcib-approved-logo] { height:192px!important; max-height:192px!important; }
  html body img[data-fcib-logo-signature] { height:144px!important; max-height:144px!important; }
}

/* Three-times approved artwork. Grow the layout, not the bitmap or transform. */
html { scroll-padding-top:0!important; }
html body [id] { scroll-margin-top:calc(var(--fcib-header-height, 0px) + 16px)!important; }
html body header { height:auto!important; max-height:none!important; }
html body header a:has(>img[data-fcib-approved-logo]) { flex-shrink:0!important; max-width:none!important; }
html body .header-inner {
  display:grid!important; grid-template-columns:auto minmax(0,1fr); column-gap:20px; row-gap:10px;
  align-items:center; padding:12px 24px!important; min-height:0!important; max-width:1280px;
}
html body .header-inner>.brand { grid-column:1; grid-row:1 / 3; align-self:center; }
html body .header-inner>.desktop-nav { grid-column:2; grid-row:1; justify-content:center; align-self:end; }
html body .header-inner>.header-tools { grid-column:2; grid-row:2; justify-content:center; align-self:start; margin:0; gap:8px; min-width:0; }
html body .header-inner .search-field input { width:clamp(120px,12vw,168px); min-width:0; }
html body .header-inner .nav-link, html body .header-inner .nav-btn { white-space:nowrap; }
html body .claims-header__inner { display:flex!important; height:auto!important; min-height:0!important; max-width:1280px; align-items:center!important; gap:16px!important; padding:12px 24px!important; }
html body .claims-header__nav { min-width:0; flex-wrap:wrap; justify-content:center; align-items:center; gap:14px!important; }
html body .claims-header__nav>a { white-space:nowrap; }
html body .insights-page-header__brand { max-width:none; flex-shrink:0; }
html body .insights-page-header__inner { align-items:center; }
html body .bd-header__inner { grid-template-columns:minmax(0,1fr) auto; }
html body .bd-header__inner .bd-brand { grid-column:1 / -1; min-width:0; flex-wrap:wrap; }
html body .bd-brand__text { min-width:0; overflow-wrap:anywhere; }
html body .forms-header { flex-wrap:wrap; align-items:center; }
html body .site-header__bar { height:auto!important; min-height:0!important; align-items:center; }
html body footer .footer-grid, html body footer .footer__grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
html body footer .footer-brand, html body footer .footer__brand { grid-column:1 / -1; min-width:0; }
html body footer img[data-fcib-approved-logo] { max-width:none!important; }
@media (max-width:1100px) {
 html body .claims-header__inner, html body .insights-page-header__inner {
  display:grid!important; grid-template-columns:minmax(0,1fr) auto; gap:12px!important;
 }
 html body .claims-header__brand, html body .insights-page-header__brand { grid-column:1; grid-row:1; }
 html body .claims-header__inner>.lang-switch-stack, html body .claims-header__inner>.lang-switch,
 html body .insights-page-header__inner>.lang-switch { grid-column:2; grid-row:1; justify-self:end; }
 html body .claims-header__phone-mobile-stack { display:none!important; }
 html body .claims-header__nav, html body.quiz-ready #quote-header .claims-header__nav,
 html body .insights-page-header__nav { display:flex!important; grid-column:1 / -1; grid-row:2; margin:0!important; justify-content:center; flex-wrap:wrap; width:100%; }
}
@media (max-width:980px) {
 html body .header-inner>.desktop-nav { display:none!important; }
 html body .header-inner { display:flex!important; flex-wrap:wrap; justify-content:space-between; }
 html body .header-inner>.brand { flex:0 0 auto; }
 html body .header-inner>.header-tools { flex:1 1 280px; align-self:center; justify-content:flex-end; }
 html body .search.is-open .search-field { top:calc(var(--fcib-header-height,200px) + 8px); }
 html body .search.is-open .search-results { top:calc(var(--fcib-header-height,200px) + 62px); }
}
@media (max-width:768px) {
 html body .header-inner {
  display:grid!important; grid-template-columns:minmax(44px,1fr) auto auto minmax(44px,1fr);
  padding:12px 16px!important; column-gap:8px; row-gap:12px;
 }
 html body .header-inner>.brand { grid-column:1 / 4; grid-row:1; justify-self:start; }
 html body .header-inner>.header-tools { display:contents!important; }
 html body .header-tools>.search { grid-column:1; grid-row:2; justify-self:center; }
 html body .header-tools>.lang { grid-column:2; grid-row:2; display:inline-flex!important; justify-self:center; }
 html body .header-tools>.login { grid-column:3; grid-row:2; justify-self:center; }
 html body .header-tools>.phone-btn { grid-column:4; grid-row:2; justify-self:center; }
 html body .header-tools>.menu-toggle { grid-column:4; grid-row:1; justify-self:end; display:inline-flex; }
 html body .header-tools .login-btn { padding:0 10px; min-height:44px; }
 html body .header-tools .login-btn svg { display:none; }
 html body .header-tools .login-label { display:inline; }
 html body .header-tools .popover { position:fixed; top:calc(var(--fcib-header-height,200px) + 8px); left:16px; right:16px; width:auto; max-width:none; }
 html body .claims-header__inner, html body.quiz-ready .claims-header__inner, html body .insights-page-header__inner { padding:12px 16px!important; }
 html body .claims-header__nav, html body .insights-page-header__nav { gap:12px!important; font-size:14px; }
 html body .claims-header__nav a { font-size:14px!important; }
 html body .claims-header__nav .claims-header__phone { display:inline-flex!important; align-items:center; justify-content:center; }
 html body .fcib-app__header-top { display:grid; grid-template-columns:1fr; justify-items:center; }
 html body .fcib-app__header-actions { justify-content:center; flex-wrap:wrap; }
 html body .bd-header__inner { grid-template-columns:minmax(0,1fr)!important; }
 html body .bd-header__meta, html body .bd-search { min-width:0; width:100%; }
 html body .bd-brand { width:100%; }
 html body .bd-brand__text { width:100%; }
 html body .site-header__bar { display:grid!important; grid-template-columns:minmax(0,1fr) auto; gap:12px; padding:12px 16px!important; }
 html body .site-header__bar .logo-stack { grid-column:1; min-width:0; }
 html body .site-header__bar .nav-toggle { grid-column:2; grid-row:1; align-self:center; }
 html body .site-header__bar .site-header__phone--bar { grid-column:1 / -1; justify-self:center; }
 html body .site-header__page-tabs { display:none!important; }
 html body .top:has(img[data-fcib-approved-logo]) { display:grid; grid-template-columns:1fr; justify-items:center; padding:12px 16px; }
 html body footer.site-footer { padding-inline:3px!important; }
 html body footer .container { padding-inline:0!important; width:100%!important; max-width:100%!important; box-sizing:border-box; }
 html body footer .footer-grid, html body footer .footer__grid { grid-template-columns:minmax(0,1fr); }
 html body footer img[data-fcib-approved-logo] { margin-inline:auto; }
}

/* Legacy header variants need the same real-sized artwork and flexible rows. */
html body .claims-header__brand { display:flex!important; align-items:center; line-height:0; max-width:none!important; }
html body.client-portal-page header.claims-header--banner .claims-header__brand img.fcib-logo[data-fcib-approved-logo] { height:156px!important; max-height:156px!important; }
html body .medicare-header__inner { display:flex; align-items:center; gap:16px; max-width:1280px; padding:12px 24px; }
html body .medicare-header__brand { display:flex; flex-shrink:0; line-height:0; }
html body .medicare-header__nav { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:14px; }
html body .medicare-header__nav>a { white-space:nowrap; }
html body .medicare-edu-nav { top:var(--fcib-header-height,180px); }
html body.medicare-page [id] { scroll-margin-top:calc(var(--fcib-header-height,0px) + 72px)!important; }
@media(max-width:1100px) {
 html body .medicare-header__inner { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; }
 html body .medicare-header__brand { grid-column:1; grid-row:1; }
 html body .medicare-header__inner>.lang-switch-stack { grid-column:2; grid-row:1; justify-self:end; }
 html body .medicare-header__phone-mobile { display:none!important; }
 html body .medicare-header__nav { display:flex!important; grid-column:1 / -1; grid-row:2; margin:0; width:100%; }
}
@media(max-width:980px) {
 html body .site-header .main-nav:not(.open) { display:none!important; }
 html body .site-header .main-nav.open { display:flex!important; max-width:calc(100vw - 32px); box-sizing:border-box; }
}
@media(max-width:768px) {
 html body.client-portal-page header.claims-header--banner .claims-header__brand img.fcib-logo[data-fcib-approved-logo] { height:120px!important; max-height:120px!important; }
 html body .medicare-header__inner { padding:12px 16px; }
 html body .medicare-header__nav { gap:12px; font-size:14px; }
 html body .medicare-page .lang-switch { margin-left:0; }
}

/* Let existing mobile content tracks shrink; retain internal table scrolling. */
@media(max-width:768px) {
 html body .claims-cta { grid-template-columns:minmax(0,1fr)!important; }
 html body .claims-cta>* { min-width:0; }
 html body .bd-grid { grid-template-columns:minmax(0,1fr); }
 html body .bd-card { min-width:0; overflow-wrap:anywhere; }
 html body .bd-card__foot>*, html body .bd-card__subs { min-width:0; max-width:100%; }
 html body .cl-main { grid-template-columns:minmax(0,1fr); }
 html body .cl-main>* { min-width:0; }
 html body .cl-help code { overflow-wrap:anywhere; }
}

/* Preserve approved proportions in the on-site email preview, without changing the email template. */
html body .email-signature-preview img[data-fcib-logo-signature],html body .admin-email-signature__preview img[data-fcib-logo-signature]{max-width:none!important;min-width:calc(188px * 1651 / 861)!important}
@media(max-width:768px){html body .email-signature-preview img[data-fcib-logo-signature],html body .admin-email-signature__preview img[data-fcib-logo-signature]{min-width:calc(144px * 1651 / 861)!important}}
