/* PR Health — education + infographic layer.
   Builds on framework.css (which imports the design system tokens & marketing
   components). Adds: nav dropdown, inner-page heroes, lesson/accordion blocks,
   the custom SVG infographics, and the Tools interactions. */

@import url('https://api.fontshare.com/v2/css?f[]=switzer@400,500,600,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Schibsted+Grotesk:wght@400;500;600;700&display=swap');

/* --- Typography swap (fonts only): Switzer for body/UI, Schibsted Grotesk for display.
   Uses !important + token remap so it wins over the design-system .prh- classes
   that route through var(--font-sans). Loaded after the DS CSS. --- */
:root {
  --font-sans: 'Switzer', -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: 'Schibsted Grotesk', 'Switzer', Arial, sans-serif;
  --font-serif: 'Switzer', -apple-system, "Helvetica Neue", Arial, sans-serif;
}
body, p, li, a, span, div, small, strong, em, td, th, blockquote,
button, input, textarea, select, label, nav, header, footer,
.prh-control, .prh-btn, [class*="prh-"] {
  font-family: 'Switzer', -apple-system, "Helvetica Neue", Arial, sans-serif !important;
}
h1, h2, .prh-display, .prh-section-title, [class*="prh-display"], [class*="prh-title"] {
  font-family: 'Schibsted Grotesk', 'Switzer', Arial, sans-serif !important;
  letter-spacing: -0.5px;
}

/* ----------------------------------------------------------- Nav additions */.prh-nav__menu { position: relative; display: flex; align-items: center; }
.prh-nav__menu > .prh-nav__link { display: inline-flex; align-items: center; gap: 5px; background: none; border: none; cursor: pointer; font-family: var(--font-sans); padding: 0; }
.prh-nav__menu > .prh-nav__link svg { width: 13px; height: 13px; transition: transform var(--dur-fast) var(--ease-standard); }
.prh-nav__menu:hover > .prh-nav__link svg,
.prh-nav__menu:focus-within > .prh-nav__link svg { transform: rotate(180deg); }
.prh-nav__dropdown {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(6px);
  min-width: 280px; background: var(--white); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card); box-shadow: var(--shadow-lg); padding: 8px;
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease-standard), transform var(--dur-fast) var(--ease-standard), visibility var(--dur-fast);
}
.prh-nav__menu:hover .prh-nav__dropdown,
.prh-nav__menu:focus-within .prh-nav__dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.prh-nav__dropdown::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.prh-dd-item { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 8px; text-decoration: none; transition: background var(--dur-fast) var(--ease-standard); }
.prh-dd-item:hover { background: var(--snow); text-decoration: none; }
.prh-dd-item strong { font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--text-strong); }
.prh-dd-item span { font-size: 12px; color: var(--text-muted); line-height: 1.45; }

/* ----------------------------------------------------------- Inner page hero */
.subhero { position: relative; background: linear-gradient(180deg, #0C1E3A 0%, #0A1A33 100%); overflow: hidden; }
.subhero__shape { position: absolute; right: -140px; top: -120px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(55,138,221,0.18), transparent 64%); pointer-events: none; }
.subhero__inner { max-width: var(--container-max); margin: 0 auto; padding: var(--space-9) var(--gutter) var(--space-8); position: relative; }
.subhero__inner.is-narrow { max-width: 880px; }
.subhero h1 { font-size: 44px; line-height: 1.1; letter-spacing: -1px; color: #fff; margin: 16px 0 0; font-weight: 500; max-width: 720px; }
.subhero p { font-size: 19px; line-height: 1.55; color: var(--sky); margin: 20px 0 0; max-width: 620px; }
@media (max-width: 680px) { .subhero h1 { font-size: 32px; letter-spacing: -0.6px; } }

/* breadcrumb */
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mid); }
.crumbs a { color: var(--sky); }
.crumbs span { color: rgba(255,255,255,0.4); }

/* --------------------------------------------------------- Education prose */
.prose { max-width: var(--container-narrow); }
.prose p { font-size: var(--fs-body-lg); line-height: 1.75; color: var(--text-body); margin: 0 0 var(--space-4); }
.prose h3 { font-size: var(--fs-h3); letter-spacing: -0.3px; margin: var(--space-7) 0 var(--space-3); color: var(--text-strong); }
.prose strong { color: var(--text-strong); font-weight: var(--fw-medium); }
.lead-para { font-size: 22px; line-height: 1.55; letter-spacing: -0.3px; color: var(--text-strong); max-width: var(--container-narrow); }
.lead-para strong { color: var(--coral); font-weight: var(--fw-medium); }

/* ---------------------------------------------------------- Lesson cards */
.lesson-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
@media (max-width: 900px) { .lesson-grid { grid-template-columns: 1fr; } }
.lesson-card { display: flex; flex-direction: column; gap: 12px; background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-card); padding: var(--space-6); text-decoration: none; transition: transform var(--dur-base) var(--ease-standard), box-shadow var(--dur-base) var(--ease-standard), border-color var(--dur-base) var(--ease-standard); }
.lesson-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; text-decoration: none; }
@media (prefers-reduced-motion: reduce) { .lesson-card:hover { transform: none; } }
.lesson-card__ic { width: 44px; height: 44px; border-radius: 11px; background: var(--blue-tint); color: var(--blue); display: flex; align-items: center; justify-content: center; }
.lesson-card__ic svg { width: 22px; height: 22px; }
.lesson-card__n { font-size: var(--fs-label); font-weight: var(--fw-medium); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--coral); }
.lesson-card h3 { font-size: var(--fs-h4); margin: 0; color: var(--text-strong); }
.lesson-card p { font-size: var(--fs-sm); color: var(--text-body); line-height: 1.55; margin: 0; }
.lesson-card__more { margin-top: auto; font-size: var(--fs-sm); color: var(--blue); font-weight: var(--fw-medium); display: inline-flex; align-items: center; gap: 6px; }
.lesson-card__more svg { width: 15px; height: 15px; transition: transform var(--dur-fast) var(--ease-standard); }
.lesson-card:hover .lesson-card__more svg { transform: translateX(3px); }

/* ------------------------------------------------- Fact tiles + mini data figs */
.fact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 36px; }
@media (max-width: 760px) { .fact-grid { grid-template-columns: 1fr; } }
.fact-card { display: flex; flex-direction: column; gap: 16px; background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-card); padding: var(--space-6); box-shadow: var(--shadow-sm); min-width: 0; }
.fact-card__head { display: flex; align-items: flex-start; gap: 14px; }
.fact-card__head > div { min-width: 0; }
/* grid items default to min-width:auto; keep intrinsic text from inflating tracks */
.lesson-card, .pillar, .value-item, .bench, .pq-card, .sl-card { min-width: 0; }
.fact-card__ic { flex: none; width: 44px; height: 44px; border-radius: 11px; background: var(--blue-tint); color: var(--blue); display: flex; align-items: center; justify-content: center; }
.fact-card__ic.is-coral { background: var(--coral-tint); color: var(--coral); }
.fact-card__ic svg { width: 22px; height: 22px; }
.fact-card h3 { font-size: var(--fs-h4); margin: 0 0 5px; color: var(--text-strong); }
.fact-card__desc { font-size: var(--fs-sm); color: var(--text-body); line-height: 1.55; margin: 0; }

.minifig { margin-top: auto; background: var(--snow); border: 1px solid var(--border-subtle); border-radius: 12px; padding: 16px 16px 14px; }
.minifig__cap { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.minifig__label { font-size: 10.5px; letter-spacing: 0.6px; text-transform: uppercase; color: var(--mid); font-weight: var(--fw-medium); }
.minifig__pill { font-size: 9.5px; letter-spacing: 0.7px; text-transform: uppercase; color: var(--mid); background: var(--white); border: 1px solid var(--border-subtle); padding: 3px 8px; border-radius: var(--radius-pill); white-space: nowrap; }
.mbar { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.mbar:last-child { margin-bottom: 0; }
.mbar__top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.mbar__name { font-size: 12px; color: var(--text-body); }
.mbar__val { font-size: 14px; font-weight: var(--fw-medium); color: var(--text-strong); letter-spacing: -0.3px; white-space: nowrap; }
.mbar__track { position: relative; height: 10px; background: var(--white); border: 1px solid var(--border-subtle); border-radius: var(--radius-pill); overflow: hidden; }
.mbar__fill { position: absolute; inset: 0; }
.mbar__fill.c-coral { color: var(--coral); }
.mbar__fill.c-peach { color: var(--peach); }
.mbar__fill.c-blue { color: var(--blue); }
.mbar__fill.c-mid { color: var(--mid); }
.mbar__fill.c-success { color: var(--success); }
.minifig__foot { display: flex; align-items: center; gap: 7px; margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--border-subtle); font-size: 12px; color: var(--text-body); line-height: 1.45; }
.minifig__foot svg { width: 14px; height: 14px; color: var(--coral); flex: none; }
.minifig__foot b { color: var(--coral); font-weight: var(--fw-medium); }
.mbar__q { display: flex; align-items: center; gap: 7px; margin-top: 2px; }
.mbar__stars { display: flex; gap: 2px; }
.mbar__stars svg { width: 13px; height: 13px; }
.mbar__stars .on.coral { color: var(--coral); fill: var(--coral); }
.mbar__stars .on.green { color: var(--success); fill: var(--success); }
.mbar__stars .off { color: var(--mist); fill: var(--mist); }
.mbar__score { font-size: 11px; color: var(--text-muted); }
.navmini { display: flex; align-items: center; gap: 12px; }
.navmini__opts { display: flex; flex-direction: column; gap: 5px; flex: none; }
.navmini__opt { width: 48px; height: 7px; border-radius: var(--radius-pill); background: var(--mist); }
.navmini__arrow { color: var(--mid); display: flex; flex: none; }
.navmini__arrow svg { width: 18px; height: 18px; }
.navmini__pick { flex: 1; background: var(--coral-tint); border: 1px solid rgba(216,90,48,0.28); color: var(--coral); border-radius: 9px; padding: 9px 12px; font-size: 12px; font-weight: var(--fw-medium); text-align: center; line-height: 1.3; }

/* ------------------------------------------------------------- Accordion */
.accordion { max-width: 880px; margin-top: 8px; border-top: 1px solid var(--border-subtle); }
.acc-item { border-bottom: 1px solid var(--border-subtle); }
.acc-head { width: 100%; display: flex; align-items: center; gap: 18px; padding: 24px 4px; background: none; border: none; cursor: pointer; text-align: left; font-family: var(--font-sans); }
.acc-head:hover .acc-title { color: var(--blue); }
.acc-num { font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--coral); flex: none; width: 28px; letter-spacing: 0.5px; }
.acc-title { flex: 1; font-size: var(--fs-h4); font-weight: var(--fw-medium); color: var(--text-strong); transition: color var(--dur-fast) var(--ease-standard); }
.acc-icon { flex: none; width: 22px; height: 22px; position: relative; }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; background: var(--slate); border-radius: 2px; transition: transform var(--dur-base) var(--ease-standard); }
.acc-icon::before { top: 10px; left: 2px; right: 2px; height: 2px; }
.acc-icon::after { left: 10px; top: 2px; bottom: 2px; width: 2px; }
.acc-item.is-open .acc-icon::after { transform: scaleY(0); }
.acc-body { overflow: hidden; max-height: 0; transition: max-height var(--dur-slow) var(--ease-standard); }
.acc-body__inner { padding: 0 4px 28px 46px; }
.acc-body__inner p { font-size: var(--fs-body-lg); line-height: 1.7; color: var(--text-body); margin: 0 0 14px; }
.acc-body__inner p:last-child { margin-bottom: 0; }
@media (max-width: 560px) { .acc-body__inner { padding-left: 4px; } }

/* --------------------------------------------------- Infographic shell */
/* Bars carry their target width inline (set on load); .is-grown layers a
   grow-from-zero animation that ends back at the element's own width. */
/* Bar fills are painted as a concrete inline linear-gradient (color + % stop)
   set by JS — robust across real browsers, inlined bundles, and flat captures.
   A gentle fade-in is layered via .is-grown when the figure enters view. */
[data-fill] { opacity: 1; }
[data-fill].will-reveal { opacity: 0; }
[data-fill].is-grown { opacity: 1; transition: opacity 600ms var(--ease-standard); }
@media (prefers-reduced-motion: reduce) { [data-fill].will-reveal { opacity: 1; } }
.figure { background: var(--white); border: 1px solid var(--border-subtle); border-radius: var(--radius-modal); padding: var(--space-7); box-shadow: var(--shadow-sm); }
.section--snow .figure { background: var(--white); }
.figure--navy { background: linear-gradient(180deg, #0C1E3A 0%, #0A1A33 100%); border-color: rgba(255,255,255,0.08); color: #fff; }
.figure__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: var(--space-6); }
.figure__title { font-size: var(--fs-h4); font-weight: var(--fw-medium); color: var(--text-strong); margin: 6px 0 6px; }
.figure--navy .figure__title { color: #fff; }
.figure__desc { font-size: var(--fs-sm); color: var(--text-body); margin: 0; max-width: 520px; line-height: 1.55; }
.figure--navy .figure__desc { color: var(--sky); }
.illus-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: var(--fw-medium); letter-spacing: 1px; text-transform: uppercase; color: var(--mid); background: var(--snow); border: 1px solid var(--border-subtle); padding: 5px 11px; border-radius: var(--radius-pill); white-space: nowrap; }
.figure--navy .illus-pill { color: var(--sky); background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.14); }
.figure__note { font-size: 12px; color: var(--text-muted); margin: var(--space-5) 0 0; line-height: 1.6; }
.figure--navy .figure__note { color: rgba(133,183,235,0.8); }

/* --------------------------------------------------- Two-path steerage */
.twopath { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .twopath { grid-template-columns: 1fr; } }
.path { border-radius: var(--radius-card); padding: var(--space-5); border: 1.5px solid; position: relative; transition: transform var(--dur-base) var(--ease-standard), box-shadow var(--dur-base) var(--ease-standard); }
.path--standard { background: var(--snow); border-color: var(--mist); }
.path--curated { background: var(--blue-tint); border-color: rgba(24,95,165,0.28); }
.path:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
@media (prefers-reduced-motion: reduce) { .path:hover { transform: none; } }
.path__label { display: flex; align-items: center; gap: 10px; font-size: var(--fs-label); font-weight: var(--fw-medium); letter-spacing: var(--ls-label); text-transform: uppercase; margin-bottom: 16px; }
.path--standard .path__label { color: var(--mid); }
.path--curated .path__label { color: var(--blue); }
.path__dot { width: 9px; height: 9px; border-radius: 50%; }
.path--standard .path__dot { background: var(--mid); }
.path--curated .path__dot { background: var(--blue); }
.path__flow { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.flow-node { flex: 1; min-width: 0; background: var(--white); border: 1px solid var(--border-subtle); border-radius: 10px; padding: 12px 8px; text-align: center; font-size: 12px; font-weight: var(--fw-medium); color: var(--text-strong); line-height: 1.3; }
.path--curated .flow-node { border-color: rgba(24,95,165,0.25); }
.flow-arrow { flex: none; color: var(--mid); display: flex; }
.flow-arrow svg { width: 16px; height: 16px; }
.path--curated .flow-arrow { color: var(--blue); }
.cost-rows { display: flex; flex-direction: column; gap: 12px; }
.cost-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cost-row__label { font-size: var(--fs-sm); color: var(--text-body); }
.cost-bar-track { position: relative; flex: 1; height: 10px; background: var(--white); border: 1px solid var(--border-subtle); border-radius: var(--radius-pill); overflow: hidden; max-width: 160px; }
.cost-bar-fill { position: absolute; inset: 0; }
.cost-row__val { font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--text-strong); min-width: 52px; text-align: right; }
.path--standard .cost-bar-fill { color: var(--mid); }
.path--curated .cost-bar-fill.is-plan { color: var(--blue); }
.path--curated .cost-bar-fill.is-member { color: var(--coral); }

/* --------------------------------------------------- Premium dollar split */
.dollar-split { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: center; }
@media (max-width: 720px) { .dollar-split { grid-template-columns: 1fr; gap: 28px; } }
.dollar-donut { position: relative; width: 220px; height: 220px; margin: 0 auto; }
.dollar-donut figcaption { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.dollar-donut figcaption b { font-size: 30px; font-weight: var(--fw-medium); color: var(--text-strong); letter-spacing: -1px; }
.dollar-donut figcaption span { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--mid); }
.dollar-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.dollar-legend li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border-subtle); cursor: default; transition: background var(--dur-fast) var(--ease-standard); }
.dollar-legend li:last-child { border-bottom: none; }
.dollar-legend .dl-sw { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.dollar-legend .dl-name { flex: 1; font-size: var(--fs-body); color: var(--text-strong); }
.dollar-legend .dl-val { font-size: var(--fs-body); font-weight: var(--fw-medium); color: var(--text-strong); }
.dollar-legend li.is-active { background: var(--snow); }

/* --------------------------------------------------- Premium cycle */
.cycle { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
@media (max-width: 820px) { .cycle { grid-template-columns: 1fr 1fr; gap: 24px 0; } }
@media (max-width: 480px) { .cycle { grid-template-columns: 1fr; } }
.cycle-step { position: relative; padding: 0 18px; text-align: center; }
.cycle-step__ring { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; background: var(--blue-tint); color: var(--blue); border: 1.5px solid rgba(24,95,165,0.2); transition: transform var(--dur-base) var(--ease-standard), background var(--dur-base) var(--ease-standard); }
.cycle-step__ring svg { width: 26px; height: 26px; }
.cycle-step:hover .cycle-step__ring { transform: scale(1.06); background: var(--blue); color: #fff; }
.cycle-step h4 { font-size: var(--fs-body); font-weight: var(--fw-medium); margin: 0 0 6px; color: var(--text-strong); }
.cycle-step p { font-size: 13px; color: var(--text-body); line-height: 1.5; margin: 0; }
.cycle-step__arrow { position: absolute; top: 26px; right: -10px; color: var(--mist); z-index: 1; }
.cycle-step__arrow svg { width: 22px; height: 22px; }
.cycle-step:last-child .cycle-step__arrow { display: none; }
@media (max-width: 820px) { .cycle-step__arrow { display: none; } }

/* --------------------------------------------------- Price vs quality compare */
.pq-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 720px) { .pq-compare { grid-template-columns: 1fr; } }
.pq-card { border-radius: var(--radius-card); border: 1.5px solid var(--border-subtle); padding: var(--space-6); background: var(--white); }
.pq-card--a { border-color: rgba(216,90,48,0.3); }
.pq-card--b { border-color: rgba(31,138,91,0.3); }
.pq-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: var(--fw-medium); letter-spacing: 1px; text-transform: uppercase; padding: 5px 11px; border-radius: var(--radius-pill); }
.pq-card--a .pq-tag { background: var(--coral-tint); color: var(--coral); }
.pq-card--b .pq-tag { background: rgba(31,138,91,0.12); color: var(--success); }
.pq-facility { font-size: var(--fs-h4); font-weight: var(--fw-medium); color: var(--text-strong); margin: 16px 0 2px; }
.pq-sub { font-size: 13px; color: var(--text-muted); margin: 0 0 20px; }
.pq-price { font-size: 42px; font-weight: var(--fw-medium); letter-spacing: -1.5px; color: var(--text-strong); line-height: 1; }
.pq-price small { font-size: 14px; font-weight: var(--fw-regular); color: var(--text-muted); letter-spacing: 0; margin-left: 6px; }
.pq-metric { margin-top: 22px; }
.pq-metric__row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.pq-metric__label { font-size: 13px; color: var(--text-body); }
.pq-metric__score { font-size: 13px; font-weight: var(--fw-medium); color: var(--text-strong); }
.pq-stars { display: flex; gap: 3px; }
.pq-stars svg { width: 18px; height: 18px; }
.pq-card--a .pq-stars .on { color: var(--coral); fill: var(--coral); }
.pq-card--b .pq-stars .on { color: var(--success); fill: var(--success); }
.pq-stars .off { color: var(--mist); fill: var(--mist); }
.pq-quality-bar { position: relative; height: 8px; background: var(--snow); border-radius: var(--radius-pill); overflow: hidden; }
.pq-quality-fill { position: absolute; inset: 0; }
.pq-card--a .pq-quality-fill { color: var(--coral); }
.pq-card--b .pq-quality-fill { color: var(--success); }
.pq-takeaway { margin-top: 24px; display: flex; align-items: flex-start; gap: 12px; background: var(--blue-tint); border-radius: var(--radius-card); padding: 18px 20px; }
.pq-takeaway svg { width: 20px; height: 20px; color: var(--blue); flex: none; margin-top: 1px; }
.pq-takeaway p { margin: 0; font-size: var(--fs-sm); color: var(--blue); line-height: 1.6; }
.pq-takeaway strong { color: var(--blue); font-weight: var(--fw-medium); }

/* --------------------------------------------------- Rx site of care */
.rx-compare { display: flex; flex-direction: column; gap: 14px; }
.rx-row { display: grid; grid-template-columns: 220px 1fr auto; gap: 20px; align-items: center; padding: 18px 20px; background: var(--white); border: 1px solid var(--border-subtle); border-radius: var(--radius-card); transition: box-shadow var(--dur-base) var(--ease-standard); }
.rx-row:hover { box-shadow: var(--shadow-sm); }
@media (max-width: 640px) { .rx-row { grid-template-columns: 1fr; gap: 10px; } }
.rx-site { display: flex; align-items: center; gap: 12px; }
.rx-site__ic { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: none; background: var(--snow); color: var(--slate); }
.rx-site__ic svg { width: 19px; height: 19px; }
.rx-site__name { font-size: var(--fs-body); font-weight: var(--fw-medium); color: var(--text-strong); }
.rx-site__type { font-size: 12px; color: var(--text-muted); }
.rx-bar-track { height: 26px; background: var(--snow); border-radius: 6px; overflow: hidden; position: relative; }
.rx-bar-fill { position: absolute; inset: 0; }
.rx-row:nth-child(1) .rx-bar-fill { color: var(--coral); }
.rx-row:nth-child(2) .rx-bar-fill { color: var(--peach); }
.rx-row:nth-child(3) .rx-bar-fill { color: var(--mid-blue); }
.rx-row:nth-child(4) .rx-bar-fill { color: var(--success); }
.rx-price { font-size: 22px; font-weight: var(--fw-medium); color: var(--text-strong); letter-spacing: -0.5px; min-width: 96px; text-align: right; }
@media (max-width: 640px) { .rx-price { text-align: left; } }

/* --------------------------------------------------- Hub diagram */
.hub-wrap { position: relative; }
.hub-svg { width: 100%; height: auto; display: block; }
.hub-node-card { fill: var(--white); stroke: var(--border-subtle); stroke-width: 1; transition: stroke var(--dur-base) var(--ease-standard); }
.hub-spoke { stroke: var(--mist); stroke-width: 2; transition: stroke var(--dur-base) var(--ease-standard); }
.hub-leg { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 28px; }
@media (max-width: 760px) { .hub-leg { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) { .hub-leg { grid-template-columns: 1fr; } }
.hub-leg__item { background: var(--snow); border: 1px solid var(--border-subtle); border-radius: var(--radius-card); padding: 16px; }
.hub-leg__item strong { display: block; font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--text-strong); margin-bottom: 4px; }
.hub-leg__item span { font-size: 13px; color: var(--text-body); line-height: 1.5; }

/* --------------------------------------------------- Tools */
.tool-card { background: var(--white); border: 1px solid var(--border-subtle); border-radius: var(--radius-modal); padding: var(--space-7); box-shadow: var(--shadow-sm); }
.tool-tabs { display: inline-flex; gap: 4px; background: var(--snow); border: 1px solid var(--border-subtle); border-radius: var(--radius-button); padding: 4px; margin-bottom: 28px; }
.tool-tabs button { font-family: var(--font-sans); font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--text-body); background: transparent; border: none; border-radius: 6px; padding: 9px 18px; cursor: pointer; transition: background var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard); }
.tool-tabs button.is-active { background: var(--white); color: var(--text-strong); box-shadow: var(--shadow-xs); }
.tool-panel { display: none; }
.tool-panel.is-active { display: block; }
.estimator-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 760px) { .estimator-grid { grid-template-columns: 1fr; } }
.estimator-out { background: linear-gradient(180deg, #0C1E3A 0%, #0A1A33 100%); border-radius: var(--radius-card); padding: var(--space-6); color: #fff; }
.estimator-out__label { font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--sky); }
.estimator-out__range { font-size: 38px; font-weight: var(--fw-medium); letter-spacing: -1px; margin: 10px 0 4px; color: #fff; }
.estimator-out__cap { font-size: 13px; color: var(--sky); margin: 0; }
.estimator-out__bar { height: 8px; background: rgba(255,255,255,0.12); border-radius: var(--radius-pill); margin: 20px 0 6px; position: relative; overflow: hidden; }
.estimator-out__bar i { position: absolute; inset: 0; color: var(--coral); border-radius: var(--radius-pill); }
.estimator-out__foot { font-size: 12px; color: rgba(133,183,235,0.8); line-height: 1.6; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.1); }
.range-field { margin-bottom: 22px; }
.range-field label { display: flex; align-items: baseline; justify-content: space-between; font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--text-strong); margin-bottom: 10px; }
.range-field label b { font-size: var(--fs-body-lg); color: var(--blue); letter-spacing: -0.3px; }
.range-field input[type=range] { width: 100%; -webkit-appearance: none; appearance: none; height: 6px; border-radius: var(--radius-pill); background: var(--mist); outline: none; }
.range-field input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--blue); cursor: pointer; border: 3px solid #fff; box-shadow: var(--shadow-sm); }
.range-field input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--blue); cursor: pointer; border: 3px solid #fff; }

/* compact procedure compare in tools */
.tool-bars { display: flex; flex-direction: column; gap: 16px; margin-top: 6px; }
.tool-bar-row { display: grid; grid-template-columns: 1fr; gap: 6px; }
.tool-bar-row__top { display: flex; align-items: center; justify-content: space-between; }
.tool-bar-row__name { font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--text-strong); }
.tool-bar-row__name small { display: block; font-size: 12px; color: var(--text-muted); font-weight: var(--fw-regular); margin-top: 2px; }
.tool-bar-row__price { font-size: 20px; font-weight: var(--fw-medium); color: var(--text-strong); letter-spacing: -0.5px; }
.tool-bar-track { position: relative; height: 14px; background: var(--snow); border-radius: var(--radius-pill); overflow: hidden; }
.tool-bar-fill { position: absolute; inset: 0; }
.tool-bar-fill.is-high { color: var(--coral); }
.tool-bar-fill.is-fair { color: var(--success); }
.tool-select-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 26px; }
.tool-select-row .prh-field { flex: 1; min-width: 200px; }

/* --------------------------------------------------- Disclaimer band */
.disclaimer { background: var(--snow); border: 1px solid var(--border-subtle); border-radius: var(--radius-card); padding: 18px 22px; display: flex; gap: 14px; align-items: flex-start; max-width: var(--container-narrow); }
.disclaimer svg { width: 20px; height: 20px; color: var(--mid); flex: none; margin-top: 1px; }
.disclaimer p { margin: 0; font-size: 13px; color: var(--text-body); line-height: 1.6; }

/* --------------------------------------------------- Approach pillars */
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 40px; }
@media (max-width: 720px) { .pillars { grid-template-columns: 1fr; } }
.pillar { display: flex; gap: 18px; background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-card); padding: var(--space-6); }
.pillar__ic { flex: none; width: 46px; height: 46px; border-radius: 11px; background: var(--coral-tint); color: var(--coral); display: flex; align-items: center; justify-content: center; }
.pillar__ic svg { width: 23px; height: 23px; }
.pillar h3 { font-size: var(--fs-h4); margin: 2px 0 8px; color: var(--text-strong); }
.pillar p { font-size: var(--fs-sm); color: var(--text-body); line-height: 1.6; margin: 0; }

/* --------------------------------------------------- Do / Doesn't list */
.dodont { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
@media (max-width: 680px) { .dodont { grid-template-columns: 1fr; } }
.dd-col { background: var(--white); border: 1px solid var(--border-subtle); border-radius: var(--radius-card); padding: var(--space-6); }
.dd-col h4 { display: flex; align-items: center; gap: 10px; font-size: var(--fs-body-lg); margin: 0 0 18px; }
.dd-col h4 svg { width: 20px; height: 20px; }
.dd-col--do h4 svg { color: var(--success); }
.dd-col--dont h4 svg { color: var(--mid); }
.dd-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.dd-col li { font-size: var(--fs-sm); color: var(--text-body); line-height: 1.55; padding-left: 26px; position: relative; }
.dd-col li::before { content: ""; position: absolute; left: 0; top: 6px; width: 8px; height: 8px; border-radius: 50%; }
.dd-col--do li::before { background: var(--success); }
.dd-col--dont li::before { background: var(--mist); }

/* --------------------------------------------------- Stat / benchmark cards */
.bench-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
@media (max-width: 760px) { .bench-grid { grid-template-columns: 1fr; } }
.bench { background: var(--white); border: 1px solid var(--border-subtle); border-radius: var(--radius-card); padding: var(--space-6); }
.bench__num { font-size: 40px; font-weight: var(--fw-medium); letter-spacing: -1.5px; color: var(--blue); line-height: 1; }
.bench__label { font-size: var(--fs-sm); color: var(--text-strong); font-weight: var(--fw-medium); margin: 12px 0 4px; }
.bench__src { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* --------------------------------------------------- Page section intro */
.sec-intro { max-width: 760px; margin-bottom: 8px; }
.sec-intro h2 { font-size: var(--fs-h2); letter-spacing: -0.5px; margin: 14px 0 0; }
.sec-intro p { font-size: var(--fs-body-lg); color: var(--text-body); margin: 16px 0 0; line-height: 1.7; }

/* --------------------------------------------------- Audience promise hero strip */
.promise-strip { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.promise-chip { display: inline-flex; align-items: center; gap: 9px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius-pill); padding: 9px 16px; font-size: 13px; color: var(--snow); }
.promise-chip svg { width: 16px; height: 16px; color: var(--sky); }

/* --------------------------------------------------- Two-col value list */
.value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 40px; margin-top: 36px; }
@media (max-width: 680px) { .value-grid { grid-template-columns: 1fr; } }
.value-item { display: flex; gap: 14px; align-items: flex-start; }
.value-item__ic { flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--blue-tint); color: var(--blue); display: flex; align-items: center; justify-content: center; }
.value-item__ic svg { width: 19px; height: 19px; }
.value-item h4 { font-size: var(--fs-body); margin: 2px 0 4px; color: var(--text-strong); }
.value-item p { font-size: var(--fs-sm); color: var(--text-body); margin: 0; line-height: 1.55; }

/* --------------------------------------------------- Sticky sub-nav (education pages) */
.is-active-link { color: var(--white) !important; }

/* footer simplify cols on small */
@media (max-width: 760px) { .prh-footer__top { grid-template-columns: 1fr 1fr; } }

/* --------------------------------------------------- Scroll reveal (motion only)
   Hidden start-state is gated behind html.rv-on, which ONLY the shared script
   adds after it has successfully tagged targets — so with JS disabled, blocked,
   or crashed, every element renders fully visible. Reveal runs once per element.
   Stagger comes from --rv-delay set per batch by the script. */
html.rv-on .rv {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(6px);
  transition: opacity 0.35s ease-out, transform 0.35s ease-out, filter 0.35s ease-out;
  transition-delay: var(--rv-delay, 0ms);
}
html.rv-on .rv.rv-in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
@media (prefers-reduced-motion: reduce) {
  html.rv-on .rv { opacity: 1; transform: none; filter: none; transition: none; }
}

/* =================================================================== MOBILE
   375px audit layer. Desktop untouched — everything below lives in media
   queries (nav collapse ≤860px to match the framework's link cutoff; layout
   and type fixes at 680/480). Brand tokens preserved throughout. */

/* Images never overflow (safe globally: class/inline rules still win). */
img { max-width: 100%; }

/* ---- Hamburger button (hidden on desktop) ---- */
.prh-nav__burger { display: none; width: 44px; height: 44px; flex: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; background: none; border: none; border-radius: 8px; cursor: pointer; padding: 0; }
.prh-nav__burger span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.2s var(--ease-standard), opacity 0.2s var(--ease-standard); }
body.nav-open .prh-nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .prh-nav__burger span:nth-child(2) { opacity: 0; }
body.nav-open .prh-nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Mobile menu (injected by site.js, lives on <body>) ---- */
.prh-mobilemenu { display: none; }

@media (max-width: 860px) {
  .prh-nav__burger { display: flex; }
  /* Login moves into the menu; primary CTA stays in the bar. */
  .prh-nav__actions .prh-btn--outline-blue { display: none; }
  .prh-nav__inner { gap: var(--space-3); }

  .prh-mobilemenu {
    display: block; position: fixed; top: 68px; left: 0; right: 0; bottom: 0; z-index: 49;
    background: linear-gradient(180deg, #0C1E3A 0%, #0A1A33 100%);
    padding: 16px 24px 32px; overflow-y: auto; -webkit-overflow-scrolling: touch;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.22s var(--ease-standard), transform 0.22s var(--ease-standard), visibility 0.22s;
  }
  body.nav-open .prh-mobilemenu { opacity: 1; visibility: visible; transform: none; }
  .prh-mobilemenu__group { font-size: 11px; font-weight: var(--fw-medium); letter-spacing: 2px; text-transform: uppercase; color: var(--sky); margin: 22px 0 4px; }
  .prh-mobilemenu__link { display: flex; align-items: center; min-height: 48px; color: #fff; font-size: 17px; font-weight: var(--fw-medium); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .prh-mobilemenu__link.is-sub { font-weight: var(--fw-regular); color: rgba(255,255,255,0.92); }
  .prh-mobilemenu__link:hover { text-decoration: none; color: var(--sky); }
  .prh-mobilemenu__actions { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }

  /* Tap targets ≥44px */
  .prh-btn { min-height: 44px; }
  .prh-control { min-height: 44px; }
  .tool-tabs { display: flex; width: 100%; }
  .tool-tabs button { flex: 1; min-height: 44px; padding: 9px 10px; }
}

@media (max-width: 680px) {
  /* Inline multi-column styles on .pillars must stack on mobile. */
  .pillars { grid-template-columns: 1fr !important; }
  /* Small text holds at ≥13px (uppercase eyebrow micro-labels keep the 11px
     brand token). */
  .figure__note, .form-note, .prh-footer__legal, .bench__src,
  .mbar__name, .mbar__score, .rx-site__type, .pq-sub,
  .cycle-step p, .sf-node p, .hub-leg__item span, .fw-zone li,
  .flow-node, .minifig__foot, .dl-name, .dollar-legend .dl-val { font-size: 13px; }
  .prh-footer__top { grid-template-columns: 1fr; gap: var(--space-5); }
  .band__inner { flex-direction: column; align-items: flex-start; gap: 22px; }
  .quote-aside { position: static; }
}

@media (max-width: 480px) {
  /* Display type: ~28px, brand -0.5px tracking held. */
  .hero__title, .hero--sub .hero__title { font-size: 28px; letter-spacing: -0.5px; line-height: 1.18; }
  .subhero h1 { font-size: 28px; letter-spacing: -0.5px; }
  .hero__sub, .subhero p { font-size: 17px; }
  .lead-para { font-size: 18px; }
  .estimator-out__range { font-size: 30px; }
  .pq-price { font-size: 34px; }
  .section { padding: var(--space-8) 0; }
  .figure { padding: var(--space-5); }
  .path__flow { gap: 6px; }
}
