/* Shared header + footer for every page (Beneficios Medicare and Medicare California).
   Namespaced sm-*. Markup is stamped by stamp_chrome.py. Bump ?v= in the page link when this file changes. */

/* ---------- header ---------- */
.sm-header{position:sticky;top:0;z-index:1000;display:block;width:auto;height:auto;margin:0;padding:0;
  background:rgba(255,255,255,.97);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
  border:0;border-bottom:1px solid rgba(0,33,71,.08);box-shadow:none;text-align:left;
  font-family:'Open Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;line-height:1.4}
.sm-header *{box-sizing:border-box}
.sm-header-in{max-width:960px;margin:0 auto;padding:14px 24px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.sm-logo{display:flex;align-items:center;flex:0 1 auto;min-width:0;text-decoration:none;color:inherit;margin:0;padding:0}
.sm-header{--sm-logo-w:252px}
.sm-header.sm-mc{--sm-logo-w:278px}
.sm-header .sm-logo svg{display:block;width:var(--sm-logo-w);max-width:100%;height:auto}
.sm-header .sm-burger svg{display:block;width:24px;height:24px;max-width:none}
.sm-nav{display:flex;align-items:center;gap:4px;margin:0 0 0 auto;padding:0;background:none;box-shadow:none;position:static}
.sm-nav a{display:inline-block;text-decoration:none;font-size:14px;font-weight:500;color:#5A6577;padding:8px 14px;border-radius:6px;white-space:nowrap;line-height:1.4;border:0}
.sm-nav a:hover,.sm-nav a:focus-visible{color:#0B2D4F;background:#E8F2FA}
.sm-burger{display:none;align-items:center;justify-content:center;flex:0 0 auto;min-width:44px;min-height:44px;padding:10px;margin:0;
  background:none;border:0;border-radius:8px;color:#0B2D4F;cursor:pointer;-webkit-tap-highlight-color:transparent}
.sm-burger:focus-visible{outline:2px solid #0080D4;outline-offset:2px}
.sm-mnav{display:none;position:absolute;top:100%;left:0;right:0;background:#fff;padding:12px 16px 16px;
  box-shadow:0 10px 24px rgba(0,33,71,.14);flex-direction:column;gap:4px}
.sm-mnav.open{display:flex}
.sm-mnav a{display:block;font-size:17px;font-weight:600;padding:14px 16px;border-radius:10px;color:#0B2D4F;text-decoration:none;line-height:1.3}
.sm-mnav a:hover,.sm-mnav a:focus-visible{background:#E8F2FA}
@media(max-width:640px){
  .sm-nav{display:none}
  .sm-burger{display:inline-flex}
  .sm-header-in{padding:10px 12px 10px 16px}
}
@media(min-width:641px){.sm-mnav,.sm-mnav.open{display:none}}

/* ---------- footer (one layout, both sites) ---------- */
.sm-footer{display:block;position:static;width:auto;height:auto;margin:0;border:0;box-shadow:none;text-align:center;
  padding:24px 24px 16px;color:#d1d5db;font-size:13px;line-height:1.6;
  font-family:'Open Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif}
.sm-footer *{box-sizing:border-box}
.sm-footer.sm-bm{background:#002147;--sm-accent:#B2DFDB}
.sm-footer.sm-mc{background:#0B2D4F;--sm-accent:#93c5fd}
.sm-foot-in{max-width:960px;margin:0 auto;padding-bottom:72px}
.sm-foot-brand{font-size:18px;font-weight:600;color:var(--sm-accent);margin:0 0 10px}
.sm-foot-row{display:flex;justify-content:center;gap:8px 18px;flex-wrap:wrap;margin:0 0 8px;font-size:13px}
.sm-foot-row a{color:#E8F2FA;text-decoration:none}
.sm-foot-row a:hover{text-decoration:underline}
.sm-footer .sm-disclaimer{margin-bottom:0}
.sm-footer .sm-disclaimer p{text-align:left;padding:0}
.sm-foot-bottom{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:6px 16px;margin:16px 0 0;
  padding-top:14px;border-top:1px solid rgba(255,255,255,.12);font-size:12px;color:rgba(255,255,255,.6)}
.sm-foot-bottom a,.sm-foot-bottom .sm-terms-btn{color:rgba(255,255,255,.75);text-decoration:underline;background:none;border:0;padding:0;font:inherit;cursor:pointer}
.sm-foot-in>#footer-privacy,.sm-foot-in>#footer-terms{text-align:left;margin:0 0 12px;padding:14px 0;font-size:12px;color:#9ca3af;line-height:1.6;border-top:1px solid rgba(255,255,255,.1)}
.sm-ic{width:14px;height:14px;flex:none;vertical-align:-2px;margin-right:6px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.sm-ic.sm-ic-fill{fill:currentColor;stroke:none}
.sm-foot-row a{display:inline-flex;align-items:center}
.sm-foot-bottom a{display:inline-flex;align-items:center}

/* ---------- "Or if you prefer: Call · Book a Video Visit" under ZIP buttons (stamp_alt.py) ---------- */
.sm-alt{display:block;margin:14px 0 0;padding:0;font-size:14px;line-height:1.5;text-align:center;color:#5A6577;font-family:'Open Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;width:100%}
.sm-alt-links{white-space:nowrap}
.sm-alt a{display:inline;font-weight:600;text-decoration:underline;padding:0;min-height:0}
.sm-alt-bm a{color:#007B7B}
.sm-alt-mc a{color:#0A5FA8}
.sm-alt svg{display:inline-block;width:14px;height:14px;margin-right:5px;vertical-align:-2px;fill:currentColor;stroke:currentColor;stroke-width:1.5;stroke-linejoin:round}
/* Privacy and Terms look identical on every page (page-level "a" rules were making Privacy larger) */
.sm-footer .sm-foot-bottom a,.sm-footer .sm-foot-bottom .sm-terms-btn{font-family:inherit;font-size:13px;font-weight:400;line-height:1.4;color:rgba(255,255,255,.8);text-decoration:underline}
/* mobile-enhancements.css (a few BM pages) forces "footer a" to 15px/44px; keep footer identical on every page */
@media(max-width:768px){
  .sm-footer .sm-foot-row a,.sm-footer .sm-foot-bottom a,.sm-footer .sm-foot-bottom .sm-terms-btn{display:inline-flex !important;align-items:center;padding:6px 4px !important;min-height:0 !important;line-height:1.4 !important}
  .sm-footer .sm-foot-row a,.sm-footer .sm-foot-bottom a,.sm-footer .sm-foot-bottom .sm-terms-btn{font-size:13px !important}
}
/* no one-word last lines (widows): balance headings, "pretty" wrapping for paragraphs */
h1,h2,h3,h4{text-wrap:balance}
p,li,blockquote,figcaption{text-wrap:pretty}
/* tap-to-call icon in the header, phones only (sits just left of the menu button) */
.sm-call{display:none;align-items:center;justify-content:center;flex:0 0 auto;width:44px;height:44px;margin:0 2px 0 auto;border-radius:50%;
  text-decoration:none;-webkit-tap-highlight-color:transparent}
.sm-call svg{display:block;width:22px;height:22px}
.sm-bm .sm-call,.sm-call.sm-call-bm{color:#00897B;background:#E0F2F1}
.sm-mc .sm-call,.sm-call.sm-call-mc{color:#0080D4;background:#E8F2FA}
@media(max-width:640px){.sm-call{display:inline-flex}}
@media(max-width:768px){.sm-call.sm-call-768{display:inline-flex}}
/* homepages (own headers): let the logo shrink so logo + call icon + menu button always fit on a phone */
@media(max-width:768px){
  .site-header>.logo,.header-inner>.logo{min-width:0;flex:0 1 auto}
  .site-header .logo svg,.header-inner .logo svg{max-width:100%;height:auto;display:block}
}
/* BM: give the logo as much room as possible next to the call icon + menu button (BM logo must not look smaller than MC's) */
@media(max-width:640px){
  .sm-bm .sm-header-in{padding:10px 8px 10px 12px;gap:4px}
  .sm-bm .sm-call{width:40px;height:40px;margin-right:0}
  .sm-bm .sm-burger{min-width:40px;padding:8px}
}
@media(max-width:768px){
  .header-inner{padding-left:12px !important;padding-right:8px !important;gap:4px}
  .header-inner>.sm-call{width:40px;height:40px;margin-right:0}
  .header-inner>.mobile-menu-btn{padding:8px !important;min-width:0 !important}
}
