/* Geography of Payer Enrollments — 2026 native redesign.
   Replaces the legacy scrollytelling microsite with a compact, normally-
   scrolling page. Uses the redesign tokens from redesign.css (--rd-*).
   The interactive US map keeps its bespoke em-geometry (appended at the end,
   lifted from the old tree-shaken sheet). No vendored legacy sheet. */

.geo { font-family: var(--rd-font); color: var(--rd-ink); -webkit-font-smoothing: antialiased; }
.geo * { box-sizing: border-box; }
.geo section { position: relative; }
.geo__wrap { max-width: 1160px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
/* Zero-specificity reset (:where) so component rules like `margin: … auto`
   centering win by source order instead of being beaten by `.geo p`. */
.geo :where(h1, h2, h3, h4, p, ul) { margin: 0; }
.geo p { line-height: 1.6; }
.geo__eyebrow { font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--rd-blue); }
.geo__h2 { font-family: var(--rd-display); font-weight: 400; letter-spacing: -.02em; line-height: 1.1; font-size: clamp(28px, 3.4vw, 42px); color: var(--rd-navy); }
.geo__lead { font-size: 1.0625rem; color: var(--rd-grey); }

/* ── Hero ─────────────────────────────────────────── */
.geo-hero { background: var(--rd-grad-electric); color: #fff; padding: clamp(72px, 9vw, 128px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.geo-hero__wrap { max-width: 900px; margin: 0 auto; padding: 0 32px; text-align: center; position: relative; z-index: 1; }
.geo-hero__eyebrow { color: #9fb4ff; font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.geo-hero__title { font-family: var(--rd-display); font-weight: 400; letter-spacing: -.02em; line-height: 1.05; font-size: clamp(40px, 6vw, 76px); margin: 18px 0 0; }
.geo-hero__sub { margin: 24px auto 0; max-width: 640px; font-size: 1.125rem; line-height: 1.55; color: #c7d2f5; }

/* ── Key takeaways / HPSA stat bands ──────────────── */
.geo-takeaways { background: linear-gradient(135deg, #f1f6fe 0%, #dce9fd 100%); padding: clamp(48px, 6vw, 88px) 0; }
.geo-takeaways__intro { max-width: 760px; margin: 0 auto clamp(24px, 3vw, 40px); text-align: center; }
/* Stat bar — matches StatBand.astro: big cobalt number on a rule, right-aligned
   label. No icons. Used for key takeaways + HPSA. */
.geo-statbar { max-width: 1000px; margin: clamp(8px, 1.5vw, 20px) auto 0; }
.geo-statrow { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: clamp(18px, 2.4vw, 30px) 0; border-top: 1px solid #d9e0ea; }
.geo-statrow:last-child { border-bottom: 1px solid #d9e0ea; }
.geo-statrow__v { font-family: var(--rd-display); font-weight: 300; font-size: clamp(40px, 5.4vw, 68px); line-height: .95; letter-spacing: -.03em; color: var(--rd-blue); white-space: nowrap; }
.geo-statrow__l { text-align: right; font-size: 1rem; line-height: 1.5; color: #4a5663; max-width: 480px; text-wrap: balance; }
@media (max-width: 640px) { .geo-statrow { flex-direction: column; align-items: flex-start; gap: 6px; } .geo-statrow__l { text-align: left; max-width: none; } }

/* ── National picture (map) ───────────────────────── */
.geo-national { padding: clamp(56px, 7vw, 104px) 0; }
.geo-national__head { max-width: 760px; margin: 0 auto clamp(24px, 3vw, 40px); text-align: center; }
.geo-national__note { margin-top: 12px; font-size: .9375rem; color: var(--rd-grey-2); }
.geo-map { max-width: 1000px; margin: 0 auto; }
.geo-callouts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 720px; margin: clamp(28px, 3vw, 44px) auto 0; }
.geo-callout { border: 1px solid var(--rd-line); border-radius: 14px; padding: 24px 26px; background: #fff; }
.geo-callout__k { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--rd-grey-2); }
.geo-callout__v { font-family: var(--rd-display); font-size: clamp(22px, 2.1vw, 28px); color: var(--rd-navy); margin-top: 6px; white-space: nowrap; }
.geo-callout__v span { color: var(--rd-blue); }
.geo-callout--fast { background: #eefaf5; border-color: #cfeee0; }
.geo-callout--slow { background: #fef1ee; border-color: #f6d9d0; }

/* ── Two-column narrative (deepest / fastest) ─────── */
.geo-split { padding: clamp(56px, 7vw, 104px) 0; }
.geo-split--soft { background: var(--rd-bg-soft); }
.geo-split__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.geo-split__aside { display: flex; flex-direction: column; gap: 18px; }
.geo-prose p + p { margin-top: 1em; }
.geo-prose p { color: var(--rd-grey); font-size: 1.0625rem; line-height: 1.65; }
.geo-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #eef2ff; color: var(--rd-blue); font-weight: 600; font-size: .875rem; width: fit-content; }
.geo-factor { border-left: 3px solid var(--rd-blue); padding: 4px 0 4px 18px; }
.geo-factor h3 { font-family: var(--rd-display); font-weight: 500; font-size: 1.25rem; color: var(--rd-navy); line-height: 1.25; }
.geo-factor p { margin-top: 8px; color: var(--rd-grey); }

/* Benefit list ("shorter timelines mean") */
.geo-benefits { display: grid; gap: 20px; }
.geo-benefit { display: flex; gap: 14px; align-items: flex-start; }
.geo-benefit__check { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--rd-blue); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; margin-top: 2px; }
.geo-benefit h3 { font-family: var(--rd-display); font-weight: 500; font-size: 1.125rem; color: var(--rd-navy); }
.geo-benefit p { color: var(--rd-grey); margin-top: 2px; }

/* Chart figure */
.geo-chart { margin: clamp(28px, 3vw, 44px) auto 0; max-width: 900px; }
.geo-chart img { width: 100%; height: auto; display: block; border: 1px solid var(--rd-line); border-radius: 14px; background: #fff; }
.geo-chart figcaption { margin-top: 14px; text-align: center; font-size: .9375rem; color: var(--rd-grey); }

/* ── Scale changes the stakes (dark) ──────────────── */
.geo-scale { background: var(--rd-grad-deep); color: #fff; padding: clamp(56px, 7vw, 104px) 0; }
/* Two columns: narrative + cards on the left, the (formerly very tall) scatter
   chart on the right. */
.geo-scale__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 4vw, 64px); align-items: center; }
.geo-scale__content h2 { color: #fff; }
.geo-scale__content .geo-hero__sub { margin: 16px 0 0; }
.geo-scale__cards { display: grid; gap: 20px; margin-top: clamp(24px, 3vw, 36px); }
.geo-scard { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 28px; }
.geo-scard h3 { font-family: var(--rd-display); font-weight: 500; font-size: 1.375rem; color: #fff; }
.geo-scard p { margin-top: 12px; color: #c7d2f5; line-height: 1.6; }
.geo-scale .geo-chart { margin: 0; max-width: none; }
.geo-scale .geo-chart img { border-color: rgba(255,255,255,.14); background: #fff; }
.geo-scale .geo-chart figcaption { color: #c7d2f5; }

/* ── What it means (3-col) ────────────────────────── */
.geo-means { padding: clamp(56px, 7vw, 104px) 0; }
.geo-means__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(32px, 4vw, 52px); }
.geo-mcard { border: 1px solid var(--rd-line); border-radius: 16px; padding: 32px; background: #fff; }
.geo-mcard h3 { font-family: var(--rd-display); font-weight: 500; font-size: 1.375rem; color: var(--rd-navy); }
.geo-mcard p { margin-top: 12px; color: var(--rd-grey); line-height: 1.6; }

/* ── Why Medallion (benefit cards) ────────────────── */
.geo-why { background: var(--rd-bg-soft); padding: clamp(56px, 7vw, 104px) 0; }
.geo-why__head { max-width: 720px; margin: 0 auto clamp(32px, 4vw, 52px); text-align: center; }
.geo-why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.geo-vcard { background: #fff; border: 1px solid var(--rd-line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.geo-vcard__icon { width: 52px; height: 52px; }
.geo-vcard__icon img { width: 100%; height: 100%; display: block; }
.geo-vcard h3 { font-family: var(--rd-display); font-weight: 500; font-size: 1.25rem; color: var(--rd-navy); }
.geo-vcard p { color: var(--rd-grey); line-height: 1.55; }

/* ── CTA ──────────────────────────────────────────── */
.geo-cta { padding: clamp(56px, 7vw, 104px) 32px; }
.geo-cta__inner { max-width: 1000px; margin: 0 auto; background: var(--rd-grad-electric); border-radius: 24px; padding: clamp(48px, 6vw, 88px) 32px; text-align: center; color: #fff; }
.geo-cta__title { font-family: var(--rd-display); font-weight: 400; letter-spacing: -.02em; line-height: 1.05; font-size: clamp(32px, 4.4vw, 56px); }
.geo-cta__sub { margin: 18px auto 28px; max-width: 560px; color: #c7d2f5; font-size: 1.0625rem; }
.geo-cta__btn { display: inline-block; background: var(--rd-lime); color: var(--rd-navy); font-weight: 600; padding: 16px 32px; border-radius: 6px; text-decoration: none; text-transform: uppercase; letter-spacing: .04em; font-size: .9375rem; }
.geo-cta__btn:hover { background: #cef07f; }

/* ── Methodology (collapsible) ────────────────────── */
.geo-method { padding: clamp(40px, 5vw, 72px) 0 clamp(56px, 7vw, 96px); }
.geo-method details { max-width: 900px; margin: 0 auto; border: 1px solid var(--rd-line); border-radius: 14px; padding: 4px 28px; background: #fff; }
.geo-method summary { cursor: pointer; padding: 20px 0; font-family: var(--rd-display); font-weight: 500; font-size: 1.125rem; color: var(--rd-navy); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.geo-method summary::-webkit-details-marker { display: none; }
.geo-method summary::after { content: "+"; font-size: 1.5rem; color: var(--rd-blue); }
.geo-method details[open] summary::after { content: "\2013"; }
.geo-method__body { padding: 0 0 24px; color: var(--rd-grey); font-size: .9375rem; line-height: 1.6; }
.geo-method__body p { margin: 0 0 1em; }
.geo-method__body ul { margin: 0 0 1em; padding-left: 1.2em; }
.geo-method__body li { margin-bottom: .5em; }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 900px) {
  .geo-split__grid, .geo-scale__grid, .geo-means__grid, .geo-why__grid, .geo-callouts { grid-template-columns: 1fr; }
  .geo-why__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .geo-why__grid { grid-template-columns: 1fr; }
}

/* ── State ranking (replaces the white hover-map) ── */
.geo-rank { max-width: 1000px; margin: clamp(28px,3vw,44px) auto 0; }
.geo-rank__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 56px; }
.geo-row { display: grid; grid-template-columns: 128px 1fr 52px; align-items: center; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--rd-line); }
.geo-row__name { font-size: .9375rem; font-weight: 500; color: var(--rd-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.geo-row__track { display: block; height: 8px; border-radius: 999px; background: var(--rd-bg-soft); overflow: hidden; }
.geo-row__bar { display: block; height: 100%; border-radius: 999px; background: var(--rd-blue); }
.geo-row__bar.is-slow { background: linear-gradient(90deg,#f08a5d,#e5482f); }
.geo-row__bar.is-mid  { background: linear-gradient(90deg,var(--rd-iris),var(--rd-blue)); }
.geo-row__bar.is-fast { background: linear-gradient(90deg,#3db8b8,#0e7070); }
.geo-row__val { text-align: right; font-weight: 600; color: var(--rd-navy); font-size: .9375rem; font-variant-numeric: tabular-nums; }
.geo-rank__legend { display: flex; flex-wrap: wrap; gap: 18px 24px; justify-content: center; margin: 24px auto 0; font-size: .8125rem; color: var(--rd-grey); }
.geo-rank__legend span { display: inline-flex; align-items: center; gap: 8px; }
.geo-rank__legend i { width: 20px; height: 8px; border-radius: 999px; display: inline-block; }
@media (max-width: 800px) { .geo-rank__grid { grid-template-columns: 1fr; } }
