/* Service pages (built by scripts/build-pages.js). Same look as the home page. */
:root {
  --bay: #0C1C36; --ink: #13294B; --text: #1E2A36; --muted: #4A5866;
  --teal: #0B6E69; --teal-dark: #08514D; --brass: #A8783A; --brass-light: #D9B27A;
  --seaglass: #EAF2F0; --line: #C9D7D4; --paper: #FFFFFF;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Atkinson Hyperlegible Next", "Segoe UI", Roboto, Arial, sans-serif;
  --s-1: .889rem; --s0: 1rem; --s1: 1.25rem; --s2: 1.563rem; --s3: 1.953rem; --s4: 2.441rem;
  --wrap: 72rem; --gutter: clamp(1rem, 4vw, 2.5rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 112.5%; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--sans); font-size: var(--s0); line-height: 1.6; overflow-x: hidden; }
a { color: var(--teal); text-underline-offset: .18em; }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, .h3 { font-family: var(--serif); color: var(--ink); line-height: 1.18; font-weight: 600; margin: 0 0 .6em; letter-spacing: -.005em; }
h2 { font-size: clamp(var(--s2), 3.4vw, var(--s3)); }
h3, .h3 { font-size: var(--s1); }
p { margin: 0 0 1em; max-width: 68ch; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: 52rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--paper); color: var(--ink); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: .5rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .7rem 1.4rem; border-radius: 6px; font: 700 var(--s0)/1.2 var(--sans); text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-ghost { border-color: currentColor; color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Top strip and header */
.strip { background: var(--bay); color: #DCE6F2; font-size: var(--s-1); }
.strip .wrap { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; justify-content: space-between; padding-block: .45rem; }
.strip a { color: #fff; font-weight: 700; text-decoration: none; }
header.site { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; gap: 1rem; min-height: 4.5rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); margin-right: auto; min-width: 0; }
.brand-mark { flex: none; width: 34px; height: 45px; }
.brand-text { display: flex; flex-direction: column; gap: .3rem; }
.brand b { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; line-height: 1; }
.brand small { display: block; font: 700 .56rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: #9A6B2F; white-space: nowrap; }
nav.main ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .2rem; }
nav.main a { display: block; padding: .5rem .55rem; color: var(--ink); text-decoration: none; font-weight: 600; border-radius: 4px; white-space: nowrap; }
nav.main a:hover { background: var(--seaglass); }
.lang-link { flex: none; font-weight: 700; color: var(--ink); text-decoration: none; padding: .55rem .75rem; border: 1px solid var(--line); border-radius: 6px; }
.lang-link:hover { background: var(--seaglass); color: var(--ink); }
.call-btn { flex: none; white-space: nowrap; }
@media (max-width: 960px) { nav.main { display: none; } }
@media (max-width: 520px) {
  header.site .wrap { gap: .6rem; min-height: 4rem; }
  .call-btn { display: none; }
  .brand b { font-size: 1.2rem; }
  .brand small { font-size: .5rem; letter-spacing: .24em; }
  .brand-mark { width: 29px; height: 38px; }
}

/* Page hero */
.page-hero { background: var(--bay); color: #C9D6E6; padding-block: clamp(2.2rem, 6vw, 4rem) clamp(2.6rem, 6vw, 4.2rem); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 500; line-height: 1.08; letter-spacing: -.015em; max-width: 22ch; }
.page-hero .lede { font-size: var(--s1); max-width: 60ch; margin-bottom: 1.8rem; }
.crumbs ol { list-style: none; margin: 0 0 1.4rem; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem; font-size: var(--s-1); color: #AFC0D4; }
.crumbs li + li::before { content: "›"; margin-right: .35rem; color: var(--brass-light); }
.crumbs a { color: #fff; }

/* Sections */
.section { padding-block: clamp(2.8rem, 7vw, 4.8rem); }
.section.alt { background: var(--seaglass); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } }
.checks, .facts { list-style: none; margin: 0; padding: 0; }
.checks li, .facts li { position: relative; padding: .55rem 0 .55rem 2rem; border-bottom: 1px solid var(--line); }
.checks li::before { content: ""; position: absolute; left: .2rem; top: .95rem; width: .8rem; height: .45rem; border-left: 3px solid var(--teal); border-bottom: 3px solid var(--teal); transform: rotate(-45deg); }
.facts li::before { content: ""; position: absolute; left: .35rem; top: 1.05rem; width: .55rem; height: .55rem; background: var(--brass); transform: rotate(45deg); }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.steps li { counter-increment: step; background: var(--paper); border-top: 3px solid var(--brass); padding: 1.3rem 1.3rem .4rem; border-radius: 0 0 6px 6px; }
.section:not(.alt) .steps li { background: var(--seaglass); }
.steps li::before { content: counter(step); display: block; font: 600 var(--s2)/1 var(--serif); color: var(--brass); margin-bottom: .6rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.qa { border-bottom: 1px solid var(--line); padding: .3rem 0; }
.qa summary { cursor: pointer; font-weight: 700; color: var(--ink); padding: .7rem 0; list-style-position: outside; }
.qa p { margin: 0 0 1rem; }
.cta-band { background: var(--bay); color: #C9D6E6; padding-block: clamp(2.4rem, 6vw, 3.6rem); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-band h2 { color: #fff; margin-bottom: .4rem; }
.cta-band p { margin: 0; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .8rem; }
.tiles a { display: block; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 6px; font-weight: 700; color: var(--ink); text-decoration: none; }
.tiles a:hover { border-color: var(--teal); color: var(--teal-dark); background: var(--seaglass); }
.fine { font-size: var(--s-1); color: var(--muted); margin-top: 2.2rem; }
.notice { border: 2px solid var(--ink); background: var(--paper); padding: 1.3rem 1.5rem; border-radius: 4px; margin-bottom: 2.5rem; }
.notice p:last-child { margin-bottom: 0; }

/* Official Medicare video (YouTube loads only after "play") */
.med-video { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.2rem clamp(1.5rem, 4vw, 3rem); align-items: center; }
.med-video .h3 { font-size: var(--s2); }
.med-video p { margin-bottom: .7rem; }
.fine-sm { font-size: var(--s-1); color: var(--muted); margin: 0; }
.yt { container-type: inline-size; position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--bay); box-shadow: 0 14px 34px rgba(12,28,54,.25); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play { position: absolute; inset: 0; width: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: .35rem; padding: clamp(1rem, 3vw, 1.6rem); border: 0; cursor: pointer; text-align: left; color: #fff; background: radial-gradient(120% 90% at 85% 15%, rgba(11,110,105,.55), transparent 60%), linear-gradient(135deg, #13294B, #0C1C36 70%); font-family: var(--sans); }
.yt-kicker { font-size: var(--s-1); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brass-light); }
.yt-title { font-family: var(--serif); font-size: clamp(1.3rem, 3vw, 1.9rem); line-height: 1.15; max-width: 16ch; }
.yt-btn { position: absolute; top: 40%; left: 50%; width: 4.4rem; height: 4.4rem; margin: -2.2rem 0 0 -2.2rem; display: grid; place-items: center; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 8px rgba(255,255,255,.12); transition: transform .15s, background-color .15s; }
.yt-btn svg { width: 1.9rem; height: 1.9rem; fill: #fff; margin-left: .2rem; }
.yt-play:hover .yt-btn, .yt-play:focus-visible .yt-btn { transform: scale(1.06); background: var(--teal-dark); }
@container (max-width: 520px) { .yt-btn { top: .9rem; right: .9rem; left: auto; width: 3.4rem; height: 3.4rem; margin: 0; } .yt-btn svg { width: 1.5rem; height: 1.5rem; } }
@media (max-width: 860px) { .med-video { grid-template-columns: 1fr; } }

/* Footer */
footer.site { background: var(--bay); color: #C9D6E6; font-size: var(--s-1); padding-block: 3rem 2rem; }
footer.site a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem 3rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.foot-brand svg { flex: none; }
.foot-name { font: 500 var(--s1)/1.2 var(--serif); color: #fff; margin: 0; }
.foot-head { color: #fff; font-weight: 700; margin-bottom: .5rem; }
.foot-links { list-style: none; margin: 0 0 1.4rem; padding: 0; columns: 2; column-gap: 1.5rem; }
.foot-links li { margin-bottom: .35rem; break-inside: avoid; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
@media (max-width: 420px) { .foot-links { columns: 1; } }
.foot-notice { border: 1px solid rgba(217,178,122,.6); padding: 1rem 1.2rem; border-radius: 4px; color: #E6EDF6; }
.foot-notice p:last-child { margin-bottom: 0; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2rem; padding-top: 1.2rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
