/* AssignmentIQ design system v2
   Tokens first, then base, layout, components, and page-specific sections. */
:root {
  --navy: #102A43;
  --blue: #1570EF;
  --blue-dark: #175CD3;
  --blue-light: #EAF3FF;
  --bg: #F7F9FC;
  --card: #FFFFFF;
  --text: #1D2939;
  --muted: #475467;
  --line: #D0D5DD;
  --line-soft: #E4E7EC;
  --green: #169B72;
  --green-text: #0E7556;
  --green-light: #E6F6F0;
  --red: #D92D20;
  --red-text: #B42318;
  --red-light: #FEF3F2;
  --amber-light: #FFF6E0;
  --amber-text: #7A5200;
  --star: #F5B942;
  --r-card: 12px;
  --r-ctl: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 42, 67, .06);
  --shadow-md: 0 4px 14px rgba(16, 42, 67, .10);
  --focus: 0 0 0 3px rgba(21, 112, 239, .45);
  --t-fast: 120ms;
  --t-panel: 200ms;
  --t-map: 320ms;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 1rem; line-height: 1.6; }
a { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .9375rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--r-ctl); z-index: 100; }
.skip:focus { top: 12px; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; box-shadow: none; }

.proto-banner { background: var(--amber-light); color: var(--amber-text); font-size: .9375rem; text-align: center; padding: 8px 16px; }

/* ---------- Header ---------- */
.site-header { background: var(--card); border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; z-index: 30; }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--navy); text-decoration: none; letter-spacing: -.02em; }
.logo:hover { color: var(--navy); }
.logo-mark { width: 34px; height: 34px; flex: none; }
.logo .iq { color: var(--blue); }
.main-nav { display: flex; gap: 4px; flex: 1; }
.main-nav a { color: var(--text); text-decoration: none; font-weight: 500; padding: 26px 12px 23px; border-bottom: 3px solid transparent; transition: color var(--t-fast), border-color var(--t-fast); }
.main-nav a:hover { color: var(--blue-dark); border-bottom-color: var(--line); }
.main-nav a.active { color: var(--navy); font-weight: 600; border-bottom-color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.nav-link { color: var(--navy); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.nav-link:hover { color: var(--blue-dark); text-decoration: underline; }
.count-badge { background: var(--blue); color: #fff; font-size: .875rem; font-weight: 700; min-width: 24px; height: 24px; border-radius: 12px; display: inline-grid; place-items: center; padding: 0 7px; }
.count-badge[hidden] { display: none; }
.btn.menu-btn { display: none; }

/* ---------- Buttons and controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border: 1px solid var(--line); background: #fff; color: var(--navy); font: inherit; font-weight: 600; border-radius: var(--r-ctl); cursor: pointer; text-decoration: none; transition: background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast); }
.btn:hover { background: var(--bg); border-color: #98A2B3; color: var(--navy); }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn-dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-dark:hover { background: #1B3F61; border-color: #1B3F61; color: #fff; }
.btn-lg { min-height: 52px; padding: 12px 28px; font-size: 1.0625rem; }
.btn-sm { min-height: 44px; padding: 8px 14px; font-size: .9375rem; }
.btn[aria-pressed="true"] { background: var(--blue-light); border-color: var(--blue); color: var(--blue-dark); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 10px 4px; min-height: 44px; font: inherit; font-size: .9375rem; color: var(--muted); cursor: pointer; text-decoration: underline; }
.linkbtn:hover { color: var(--navy); }
.linkbtn.on { color: var(--blue-dark); font-weight: 600; }
select, input[type=text], input[type=number], input[type=email], input[type=password], input[type=search], textarea {
  font: inherit; font-size: 1rem; color: var(--text); background: #fff; border: 1px solid #98A2B3; border-radius: var(--r-ctl); padding: 10px 12px; min-height: 44px; max-width: 100%;
}
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: var(--focus); }
textarea { width: 100%; min-height: 110px; resize: vertical; }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; accent-color: var(--blue); margin: 0; }
input[type=range] { width: 100%; height: 44px; accent-color: var(--blue); cursor: pointer; margin: 0; }
label { cursor: pointer; }

/* ---------- Layout ---------- */
.section { padding: 56px 0; }
.section.tight { padding: 32px 0; }
.section.alt { background: var(--card); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--muted); }
.page-head { background: var(--card); border-bottom: 1px solid var(--line-soft); padding: 36px 0 0; }
.page-head.plain { padding-bottom: 28px; }
.page-head h1 { margin-bottom: 8px; }
.page-head p { color: var(--muted); margin: 0; max-width: 62ch; }
.grid { display: grid; gap: 20px; }
.grid.c2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid.c3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid.c4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.stack > * + * { margin-top: 18px; }
.card { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-card); padding: 24px; box-shadow: var(--shadow-sm); }
a.card { display: block; color: inherit; text-decoration: none; transition: box-shadow var(--t-panel), border-color var(--t-panel); }
a.card:hover { color: inherit; }
.card h3 { margin-bottom: .25em; }
.card-top { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 6px; }
.divider { border: 0; border-top: 1px solid var(--line-soft); margin: 24px 0; }

/* ---------- Ratings, tiles, bars ---------- */
.stars { font-size: 1.15rem; letter-spacing: 1px; background: linear-gradient(90deg, var(--star) calc(var(--v) / 5 * 100%), #D0D5DD 0); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
.score { font-weight: 800; color: var(--navy); font-size: 1.1rem; }
.rating-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0; }
.stat-row { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 12px; color: var(--muted); }
.stat-row b { color: var(--navy); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.tile { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-card); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.tile .num { font-size: 1.9rem; font-weight: 800; color: var(--navy); line-height: 1.15; letter-spacing: -.02em; }
.tile .lbl { color: var(--muted); font-size: .9375rem; margin-top: 4px; }
.bar-row { display: grid; grid-template-columns: 210px 1fr 48px; align-items: center; gap: 14px; padding: 6px 0; }
.bar { height: 10px; background: #E4E7EC; border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--blue); border-radius: 99px; }
.bar-row b { text-align: right; color: var(--navy); font-variant-numeric: tabular-nums; }
.stackbar { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: #E4E7EC; }
.stackbar i { display: block; height: 100%; }
.legend { display: flex; gap: 6px 18px; flex-wrap: wrap; margin-top: 8px; color: var(--muted); font-size: .9375rem; }
.legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: var(--c); }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .875rem; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: #EEF2F6; color: var(--muted); }
.badge.ok { background: var(--green-light); color: var(--green-text); }
.badge.blue { background: var(--blue-light); color: var(--blue-dark); }
.badge.warn { background: var(--red-light); color: var(--red-text); }
.badge.note { background: var(--amber-light); color: var(--amber-text); }
.pos { color: var(--green-text); font-weight: 600; }
.neg { color: var(--red-text); font-weight: 600; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -3px; }
.tile-logo { flex: none; display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; color: #fff; font-weight: 700; letter-spacing: .02em; }
.tile-logo.big { width: 72px; height: 72px; border-radius: 16px; font-size: 1.4rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { background: #EEF2F6; border-radius: 8px; padding: 4px 12px; font-size: .9375rem; font-weight: 500; color: var(--navy); }
.empty { background: var(--card); border: 1px dashed #98A2B3; border-radius: var(--r-card); padding: 28px; color: var(--muted); text-align: center; }

/* ---------- Tabs and profile ---------- */
.tabs { display: flex; gap: 24px; margin-top: 22px; overflow-x: auto; }
.tabs a { padding: 12px 2px; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; text-decoration: none; min-height: 48px; }
.tabs a:hover { color: var(--navy); }
.tabs a.active { color: var(--navy); border-bottom-color: var(--blue); }
.profile-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.profile-id { display: flex; gap: 18px; align-items: flex-start; }
.profile-id h1 { margin-bottom: 4px; }
.profile-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.how-calc { background: var(--blue-light); border-radius: var(--r-ctl); padding: 14px 18px; margin: 20px 0 0; color: var(--navy); }

/* ---------- Reviews ---------- */
.review-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.review h3 { margin: 8px 0 2px; }
.review h3 a { color: var(--navy); }
.review .meta { color: var(--muted); margin-bottom: 12px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.fact { background: var(--bg); border: 1px solid var(--line-soft); border-radius: 8px; padding: 4px 12px; font-size: .9375rem; color: var(--muted); }
.fact b { color: var(--navy); }
.pc { border-left: 4px solid var(--line); padding: 2px 0 2px 14px; margin-bottom: 14px; }
.pc b { display: block; font-size: .9375rem; margin-bottom: 2px; }
.pc p { margin: 0; }
.pc.pro { border-color: #6CCBA9; } .pc.pro b { color: var(--green-text); }
.pc.con { border-color: #F1A5A0; } .pc.con b { color: var(--red-text); }
.pc.adv { border-color: #84B8FF; } .pc.adv b { color: var(--blue-dark); }
.review-foot { display: flex; gap: 20px; border-top: 1px solid var(--line-soft); padding-top: 8px; margin-top: 12px; }
.report-sel { font-size: .9375rem; }

/* ---------- Filters, tables ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-card); box-shadow: var(--shadow-sm); }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
th { font-size: .9375rem; font-weight: 600; color: var(--muted); background: #FBFCFE; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.strong { font-weight: 700; color: var(--navy); }
tbody tr:hover td { background: #FAFCFF; }

/* ---------- Forms ---------- */
.form-card { max-width: 760px; margin: 0 auto; }
.progress { display: flex; gap: 6px; margin-bottom: 10px; }
.progress i { flex: 1; height: 6px; border-radius: 99px; background: #E4E7EC; transition: background var(--t-panel); }
.progress i.done { background: var(--blue); }
.step { display: none; }
.step.current { display: block; }
.field { margin-bottom: 20px; }
.field > label, .field > .lbl { display: block; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input[type=text], .field input[type=number], .field input[type=email], .field input[type=password], .field select { width: 100%; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.radios { display: flex; gap: 10px; flex-wrap: wrap; }
.radios label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; border: 1px solid #98A2B3; border-radius: var(--r-ctl); padding: 8px 16px; font-weight: 500; background: #fff; transition: background var(--t-fast), border-color var(--t-fast); }
.radios label:has(input:checked) { border-color: var(--blue); background: var(--blue-light); color: var(--navy); }
.starpick { display: inline-flex; gap: 2px; }
.starpick button { border: 0; background: none; font-size: 2rem; line-height: 1; color: #D0D5DD; cursor: pointer; padding: 4px 6px; min-width: 44px; min-height: 44px; }
.starpick button.on { color: var(--star); }
.err { color: var(--red-text); font-weight: 500; margin-top: 4px; display: none; }
.err.show { display: block; }
.form-nav { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line-soft); padding-top: 20px; margin-top: 8px; }
.note { background: var(--blue-light); border: 1px solid #C7DEFB; border-radius: var(--r-ctl); padding: 12px 16px; color: var(--navy); margin-bottom: 20px; }

/* ---------- Combobox (autocomplete) ---------- */
.combo { position: relative; }
.combo input { width: 100%; }
.combo-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-md); z-index: 40; max-height: 320px; overflow-y: auto; padding: 6px; text-align: left; margin: 0; list-style: none; }
.combo-list[hidden] { display: none; }
.combo-opt { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 8px; cursor: pointer; min-height: 44px; align-items: center; }
.combo-opt[aria-selected="true"], .combo-opt:hover { background: var(--blue-light); }
.combo-opt .type { color: var(--muted); font-size: .9375rem; white-space: nowrap; }

/* ---------- Homepage ---------- */
.hero { background: var(--blue-light); padding: 72px 0 64px; border-bottom: 1px solid #C7DEFB; }
.hero-inner { max-width: 820px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); line-height: 1.12; margin-bottom: 16px; }
.hero .sub { font-size: 1.1875rem; color: #344054; max-width: 60ch; margin: 0 auto 28px; }
.hero-search { max-width: 640px; margin: 0 auto 20px; }
.hero-search form { display: flex; gap: 10px; }
.hero-search .combo { flex: 1; }
.hero-search input { min-height: 56px; font-size: 1.0625rem; padding-left: 48px; border-color: var(--navy); }
.hero-search .ic.lead { position: absolute; left: 16px; top: 18px; width: 22px; height: 22px; color: var(--muted); pointer-events: none; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-art { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hero-art svg { width: 100%; height: 100%; }
.route-line { stroke: var(--blue); stroke-opacity: .35; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 2 12; fill: none; }
.pin-dot { fill: var(--blue); stroke: #fff; stroke-width: 3; }
.plane path { fill: var(--blue); stroke: #fff; stroke-width: 2.5; stroke-linejoin: round; }
.sym { position: absolute; width: 48px; height: 48px; display: grid; place-items: center; background: #fff; color: var(--blue); border-radius: 14px; box-shadow: var(--shadow-sm); border: 1px solid #C7DEFB; }
.sym svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sym.s1 { left: 9%; top: 18%; } .sym.s2 { left: 5%; top: 62%; } .sym.s3 { right: 9%; top: 16%; } .sym.s4 { right: 6%; top: 60%; }
.action { display: flex; flex-direction: column; gap: 6px; height: 100%; }
.action .a-ico { width: 48px; height: 48px; border-radius: 12px; background: var(--blue-light); color: var(--blue-dark); display: grid; place-items: center; margin-bottom: 8px; }
.action .a-ico .ic { width: 26px; height: 26px; }
.action p { color: var(--muted); margin: 0; }
.action .go { margin-top: auto; padding-top: 10px; font-weight: 600; color: var(--blue-dark); }
.steps3 { counter-reset: s; }
.steps3 .card::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; margin-bottom: 14px; }
.cta { background: var(--navy); color: #fff; border-radius: var(--r-card); padding: 56px 28px; text-align: center; }
.cta h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); }
.cta p { color: #D0DCE9; max-width: 56ch; margin: 0 auto 24px; }
.cta .btn-primary { background: #fff; border-color: #fff; color: var(--navy); }
.cta .btn-primary:hover { background: var(--blue-light); }

/* ---------- Map and hospital explorer ---------- */
.toolbar { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-card); padding: 16px; box-shadow: var(--shadow-sm); margin-bottom: 16px; }
.toolbar-top { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-top: 12px; }
.fgrid label, .toolbar-top > label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 4px; font-size: .9375rem; }
.fgrid select, .fgrid input { width: 100%; }
.seg { display: inline-flex; border: 1px solid #98A2B3; border-radius: var(--r-ctl); overflow: hidden; background: #fff; }
.seg button { border: 0; background: #fff; color: var(--navy); font: inherit; font-weight: 600; min-height: 44px; padding: 8px 18px; cursor: pointer; transition: background var(--t-fast); }
.seg button + button { border-left: 1px solid #98A2B3; }
.seg button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.result-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.result-bar h2 { margin: 0; font-size: 1.125rem; }
.explorer { display: grid; grid-template-columns: minmax(340px, 440px) minmax(0, 1fr); gap: 20px; align-items: start; }
.explorer.list-only { grid-template-columns: 1fr; }
.explorer.list-only .map-col { display: none; }
.explorer.list-only .list-col { max-height: none; overflow: visible; display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.list-col { max-height: 720px; overflow-y: auto; padding-right: 6px; display: grid; gap: 14px; }
.map-col { position: sticky; top: 88px; }
.map-box { position: relative; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: #E9EEF4; }
.aiq-map { width: 100%; height: 640px; }
.aiq-map.sm { height: 380px; }
.map-tools { position: absolute; left: 12px; top: 12px; z-index: 5; display: flex; gap: 8px; }
.map-tools .btn { box-shadow: var(--shadow-md); }
.map-note { color: var(--muted); font-size: .9375rem; margin: 8px 2px 0; }
.map-fallback { padding: 28px; text-align: center; color: var(--muted); }
.maplibregl-popup-content { border-radius: var(--r-card) !important; padding: 16px !important; font-family: inherit; box-shadow: var(--shadow-md) !important; min-width: 240px; }
.maplibregl-popup-close-button { font-size: 22px; padding: 6px 12px; min-width: 44px; min-height: 44px; }
.pop h3 { font-size: 1.0625rem; margin: 0 20px 2px 0; }
.pop .btn { width: 100%; margin-top: 10px; }
.h-card { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-card); padding: 18px 20px; box-shadow: var(--shadow-sm); transition: border-color var(--t-panel), box-shadow var(--t-panel); }
.h-card.selected { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21, 112, 239, .25); }
.h-top { display: flex; gap: 14px; align-items: flex-start; }
.h-title { flex: 1; min-width: 0; }
.h-title h3 { margin: 0 0 2px; font-size: 1.125rem; }
.h-title h3 a { color: var(--navy); text-decoration: none; }
.h-title h3 a:hover { text-decoration: underline; }
.h-meta { color: var(--muted); }
.h-score { text-align: right; flex: none; }
.h-score .score { display: block; font-size: 1.5rem; line-height: 1.1; }
.h-score .small { color: var(--muted); display: block; }
.h-attrs { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0; color: var(--muted); }
.h-attrs b { color: var(--navy); }
.h-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.cmp-check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: #fff; font-weight: 600; color: var(--navy); }
.cmp-check:has(input:checked) { border-color: var(--blue); background: var(--blue-light); }
#tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: var(--navy); color: #fff; padding: 12px 20px; display: none; transform: translateY(100%); transition: transform var(--t-panel); }
#tray.show { display: block; transform: none; }
#tray .tray-in { max-width: 1160px; margin: 0 auto; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
#tray .btn { min-height: 44px; }
#tray .btn-primary { background: #fff; color: var(--navy); border-color: #fff; }
#tray .linkbtn { color: #D0DCE9; }

/* ---------- Pay explorer and calculators ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.ctl { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.ctl:last-of-type { border-bottom: 0; }
.ctl-row { display: grid; grid-template-columns: 1fr 140px; gap: 12px; align-items: center; }
.ctl label { font-weight: 600; color: var(--navy); }
.ctl .hint { color: var(--muted); font-size: .9375rem; display: block; font-weight: 400; }
.ctl input[type=number] { width: 100%; text-align: right; }
.out-card { position: sticky; top: 92px; }
.big { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; color: var(--navy); letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.out-line { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.out-line:last-of-type { border-bottom: 0; }
.out-line .v { font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.out-line.sub { color: var(--muted); padding-left: 14px; }
.out-line.neg .v { color: var(--red-text); }
.disclaimer { background: var(--amber-light); border: 1px solid #F3DFA8; border-radius: var(--r-ctl); padding: 14px 16px; color: #5C3D00; margin-top: 18px; }
.disclaimer b { color: #5C3D00; }
.out-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

/* ---------- Comparison ---------- */
.cmp-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-card); box-shadow: var(--shadow-sm); }
.cmp-table th, .cmp-table td { white-space: normal; vertical-align: top; min-width: 170px; }
.cmp-table thead th { background: var(--card); vertical-align: bottom; padding-top: 18px; }
.cmp-table tbody th { width: 190px; background: #FBFCFE; color: var(--navy); font-weight: 600; position: sticky; left: 0; }
.cmp-table .hl { background: var(--blue-light); }
.hl-tag { display: inline-block; margin-left: 6px; font-size: .875rem; font-weight: 700; color: var(--blue-dark); }
.offer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.diff-up { color: var(--green-text); font-weight: 700; }
.diff-down { color: var(--red-text); font-weight: 700; }

/* ---------- Saved board and finder ---------- */
.board { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.col { background: #EEF2F6; border-radius: var(--r-card); padding: 12px; min-height: 160px; }
.col h3 { font-size: 1rem; display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.k-card { background: #fff; border: 1px solid var(--line-soft); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; box-shadow: var(--shadow-sm); }
.k-card h4 { margin: 0 0 4px; font-size: 1rem; }
.k-card select { width: 100%; margin-top: 8px; font-size: .9375rem; }
.finder { max-width: 820px; margin: 0 auto; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.chip-btn { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 8px 16px; min-height: 44px; font: inherit; font-weight: 500; color: var(--navy); cursor: pointer; }
.chip-btn:hover { border-color: var(--blue); }
.chip-btn[aria-current="step"] { border-color: var(--blue); background: var(--blue-light); }
.opt-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.opt-grid label { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; border: 1px solid #98A2B3; border-radius: var(--r-ctl); padding: 8px 18px; background: #fff; font-weight: 500; }
.opt-grid label:has(input:checked) { border-color: var(--blue); background: var(--blue-light); }
.match { border-left: 4px solid var(--blue); }
.match ul { margin: 8px 0 0; padding-left: 20px; color: var(--muted); }

/* ---------- Footer, toast ---------- */
.site-footer { background: var(--card); border-top: 1px solid var(--line-soft); margin-top: 56px; padding: 40px 0 48px; color: var(--muted); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.footer-inner p { margin: 10px 0 0; max-width: 42ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 22px; align-content: flex-start; }
.footer-links a { color: var(--navy); min-height: 44px; display: inline-flex; align-items: center; }
.fine { grid-column: 1 / -1; border-top: 1px solid var(--line-soft); padding-top: 16px; max-width: none !important; font-size: .9375rem; }
#toast { position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 16px); background: var(--navy); color: #fff; padding: 12px 20px; border-radius: var(--r-ctl); opacity: 0; pointer-events: none; transition: opacity var(--t-panel), transform var(--t-panel); z-index: 60; max-width: 92vw; box-shadow: var(--shadow-md); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.mod-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.mod-item + .mod-item { margin-top: 24px; }
.mod-why { margin: 0 0 8px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .explorer { grid-template-columns: 1fr; }
  .map-col { position: static; order: -1; }
  .aiq-map { height: 58vh; min-height: 360px; }
  .list-col { max-height: none; overflow: visible; padding-right: 0; }
  .calc { grid-template-columns: 1fr; }
  .out-card { position: static; }
  .offer-grid { grid-template-columns: 1fr; }
  .sym { display: none; }
}
@media (max-width: 860px) {
  .btn.menu-btn { display: inline-flex; margin-left: auto; }
  .header-actions { display: none; }
  .header-inner { flex-wrap: wrap; gap: 0 12px; min-height: 64px; }
  .main-nav { display: none; flex-basis: 100%; flex-direction: column; gap: 0; padding: 4px 0 12px; border-top: 1px solid var(--line-soft); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line-soft); min-height: 48px; }
  .main-nav a.active { border-bottom-color: var(--blue); }
  .main-nav .nav-extra { display: flex; }
  .row2, .footer-inner { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 1fr 44px; }
  .bar-row .bar { grid-column: 1 / -1; grid-row: 2; }
  .board { grid-template-columns: repeat(5, 250px); }
}
@media (min-width: 1041px) { .main-nav .nav-extra { display: none; } }
@media (max-width: 640px) {
  .section { padding: 40px 0; }
  .hero { padding: 44px 0 40px; }
  .hero-search form { flex-direction: column; }
  .toolbar-top { grid-template-columns: 1fr; }
  .card { padding: 18px; }
  .profile-id { gap: 12px; }
  .tile-logo.big { width: 56px; height: 56px; font-size: 1.1rem; }
  .ctl-row { grid-template-columns: 1fr 112px; }
  .h-top { flex-wrap: wrap; }
  .tabs { gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Shimmer placeholder text (adapted from transitions.dev) ----------
   Motion kept as published: 2000ms, linear, 400% highlight band, static under reduced motion.
   Colors map the --stage-* theme variables to our tokens; type follows our 16px minimum. */
:root {
  --shimmer-dur: 2000ms;
  --shimmer-ease: linear;
  --shimmer-band: 400%;
  --shimmer-base: var(--muted);
  --shimmer-highlight: var(--navy);
  --press-dur: 150ms;
}
.shimmer-text { margin: 0; font-size: 1rem; line-height: 1.5; font-weight: 500; position: relative; display: inline-block; color: var(--shimmer-base); }
.shimmer-text.center { display: block; text-align: center; }
.shimmer-text::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(90deg, transparent 0%, transparent 40%, var(--shimmer-highlight) 50%, transparent 60%, transparent 100%);
  background-size: var(--shimmer-band) 100%;
  background-position: 100% 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: t-shimmer var(--shimmer-dur) var(--shimmer-ease) infinite;
}
@keyframes t-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0% 0; } }
@media (prefers-reduced-motion: reduce) { .shimmer-text::before { animation: none !important; } }

/* Touch: controls press in full on a tap, never select their label, and hover lift only applies with a mouse. */
:where(button, [role="button"], [role="tab"], [role="option"], [role="switch"], summary, .t-pressable) {
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.btn.is-pressed, .chip-btn.is-pressed, .seg button.is-pressed, .t-pressable.is-pressed { transform: scale(.98); background: var(--blue-light); }
.btn-primary.is-pressed { background: var(--blue-dark); }
@media (hover: none) {
  .btn:hover { background: #fff; border-color: var(--line); }
  .btn-primary:hover { background: var(--blue); border-color: var(--blue); }
  .btn-dark:hover { background: var(--navy); border-color: var(--navy); }
}

/* Page heading receives focus after navigation for screen readers; no visible ring needed. */
h1[tabindex="-1"]:focus, h1[tabindex="-1"]:focus-visible, main:focus { outline: none; box-shadow: none; }
.more-filters summary { display: none; font-weight: 600; color: var(--navy); min-height: 44px; align-items: center; cursor: pointer; margin-top: 8px; }
@media (max-width: 640px) { .more-filters summary { display: flex; } .more-filters .fgrid { margin-top: 4px; } }

/* ---------- Tabs sliding (adapted from transitions.dev) ----------
   Published motion tokens kept. Colors map to our tokens: a navy pill for segmented
   controls, and a blue underline for profile tabs. */
:root { --tabs-dur: 250ms; --tabs-ease: cubic-bezier(0.22, 1, 0.36, 1); }
.t-tabs { position: relative; }
.t-tabs-pill { position: absolute; left: 0; right: 0; clip-path: inset(0 100% 0 0); transition: clip-path var(--tabs-dur) var(--tabs-ease); z-index: 0; pointer-events: none; }
.seg.t-tabs { padding: 3px; gap: 3px; background: #EEF2F6; border-color: var(--line); border-radius: 12px; overflow: visible; }
.seg.t-tabs button { position: relative; z-index: 1; background: transparent; border-left: 0; border-radius: 9px; color: #344054; min-height: 40px; transition: color var(--tabs-dur) var(--tabs-ease); }
.seg.t-tabs button[aria-pressed="true"], .seg.t-tabs button.is-pressed[aria-pressed="true"] { background: transparent; color: #fff; }
.seg.t-tabs button.is-pressed { background: transparent; }
.seg.t-tabs button:not([aria-pressed="true"]):hover { color: var(--navy); }
.seg.t-tabs .t-tabs-pill { top: 3px; bottom: 3px; left: 3px; right: 3px; --pill-r: 9px; background: var(--navy); }
.tabs.t-tabs a { position: relative; z-index: 1; transition: color var(--tabs-dur) var(--tabs-ease); }
.tabs.t-tabs a.active { border-bottom-color: transparent; }
.tabs.t-tabs .t-tabs-pill { bottom: 0; height: 3px; background: var(--blue); border-radius: 3px 3px 0 0; }
@media (prefers-reduced-motion: reduce) { .t-tabs-pill { transition: none !important; } }

/* ---------- Toast open/close (adapted from transitions.dev) ----------
   Rises with fade, slight blur and scale. Opens on the slower clock, closes on the faster one. */
:root { --toast-open: 350ms; --toast-close: 250ms; --toast-distance: 16px; --toast-blur: 2px; --toast-scale: 0.97; --toast-ease: cubic-bezier(0.22, 1, 0.36, 1); }
#toast { opacity: 0; transform: translate(-50%, var(--toast-distance)) scale(var(--toast-scale)); filter: blur(var(--toast-blur));
  transition: opacity var(--toast-close) var(--toast-ease), transform var(--toast-close) var(--toast-ease), filter var(--toast-close) var(--toast-ease); }
#toast.is-open { opacity: 1; transform: translate(-50%, 0) scale(1); filter: blur(0);
  transition: opacity var(--toast-open) var(--toast-ease), transform var(--toast-open) var(--toast-ease), filter var(--toast-open) var(--toast-ease); }

/* ---------- Like button (adapted from transitions.dev), used on Save buttons ----------
   The bookmark fills, spring-pops, and throws eight small dots. Color maps to our blue. */
:root { --like-color: var(--blue); --like-fill: 150ms; --like-pop: 250ms; --like-pop-ease: cubic-bezier(0.23, 1, 0.32, 1); --like-particle-dur: 600ms; --like-particle-dist: 20px; --like-particle-size: 2.5px; --like-ease: cubic-bezier(0.22, 1, 0.36, 1); }
.t-like-icon { position: relative; display: inline-flex; }
.t-like-heart { color: currentColor; transition: color var(--like-fill) var(--like-ease); }
.t-like-heart path { fill: transparent; stroke: currentColor; transition: fill var(--like-fill) var(--like-ease), stroke var(--like-fill) var(--like-ease); }
.t-like[data-liked="true"] .t-like-heart { color: var(--like-color); }
.t-like[data-liked="true"] .t-like-heart path { fill: currentColor; }
.t-like.is-bursting[data-liked="true"] .t-like-icon { animation: t-like-pop var(--like-pop) var(--like-pop-ease); }
@keyframes t-like-pop { 0% { transform: scale(1); } 30% { transform: scale(0.82); } 100% { transform: scale(1); } }
.t-like-particles { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; color: var(--like-color); }
.t-like-particles i { position: absolute; left: calc(var(--like-particle-size) * var(--psize, 1) / -2); top: calc(var(--like-particle-size) * var(--psize, 1) / -2); width: calc(var(--like-particle-size) * var(--psize, 1)); height: calc(var(--like-particle-size) * var(--psize, 1)); border-radius: 50%; background: currentColor; opacity: 0; }
@keyframes t-like-burst { 0% { opacity: 0; transform: translate(0, 0) scale(0.4); } 20% { opacity: 1; transform: translate(calc(var(--px) * 0.25), calc(var(--py) * 0.25)) scale(1); } 100% { opacity: 0; transform: translate(var(--px), var(--py)) scale(var(--p-end-scale, 0.6)); } }
.t-like.is-bursting .t-like-particles i { animation: t-like-burst var(--pdur, var(--like-particle-dur)) ease-out var(--pdelay, 0ms) forwards; }
@media (prefers-reduced-motion: reduce) { .t-like-icon, .t-like-particles i { animation: none !important; } }

/* ---------- Learn more hover (from transitions.dev) ---------- */
:root { --learn-shift: 2px; --learn-spread: 8deg; --learn-in: 200ms; --learn-out: 200ms; --learn-ease: cubic-bezier(0.22, 1, 0.36, 1); }
.t-learn-chevron { display: inline-flex; vertical-align: -3px; margin-left: 2px; transform: translateX(0); transition: transform var(--learn-out) var(--learn-ease); }
.t-learn-arm { transform-box: view-box; transform-origin: 10px 8px; vector-effect: non-scaling-stroke; transition: transform var(--learn-out) var(--learn-ease); }
@media (prefers-reduced-motion: reduce) { .t-learn-chevron, .t-learn-arm { transition: none !important; } }

/* ---------- Thinking states (adapted from transitions.dev), used while the map loads ---------- */
:root { --think-hold: 2000ms; --think-swap: 150ms; --think-gap: 50ms; --think-distance: 8px; --think-blur: 2px; --think-shimmer: 2000ms; --think-base: var(--muted); --think-highlight: var(--navy); --think-ease: cubic-bezier(0.23, 1, 0.32, 1); }
.t-think { position: relative; display: inline-block; text-align: center; font-size: 1rem; font-weight: 500; line-height: 1.5; }
.t-think-sizer { display: block; visibility: hidden; white-space: nowrap; }
.t-think-text { position: absolute; top: 0; left: 0; right: 0; display: block; color: var(--think-base); white-space: nowrap; transform: translateY(0); filter: blur(0); opacity: 1;
  transition: transform var(--think-swap) var(--think-ease), filter var(--think-swap) var(--think-ease), opacity var(--think-swap) var(--think-ease); will-change: transform, filter, opacity; }
.t-think-text::before { content: attr(data-text); position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(90deg, transparent 0%, transparent 40%, var(--think-highlight) 50%, transparent 60%, transparent 100%); background-size: 400% 100%; background-repeat: no-repeat; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: t-think-shimmer var(--think-shimmer) linear infinite; }
@keyframes t-think-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0% 0; } }
.t-think-text.is-exit { transform: translateY(calc(var(--think-distance) * -1)); filter: blur(var(--think-blur)); opacity: 0; }
.t-think-text.is-enter-start { transition: none; transform: translateY(var(--think-distance)); filter: blur(var(--think-blur)); opacity: 0; }
@media (prefers-reduced-motion: reduce) { .t-think-text { transition: opacity var(--think-swap) ease !important; transform: none !important; filter: none !important; } .t-think-text::before { display: none !important; } }

/* Header: Saved sits apart from the Write a review button, at the far right with Sign in. */
.nav-sep { width: 1px; height: 24px; background: var(--line); }
.nav-saved { gap: 6px; }

/* ================= Motion review fixes (per review-animations standards) ================= */
:root { --ease-out: cubic-bezier(0.23, 1, 0.32, 1); --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1); }

/* Press feedback: 160ms on the strong ease-out curve. */
.btn { transition: background var(--t-fast) ease, border-color var(--t-fast) ease, transform 160ms var(--ease-out); }

/* Hover effects only where there is a real hover (a mouse), so taps on touch screens do not stick. */
@media (hover: hover) and (pointer: fine) {
  a.card:hover { border-color: var(--blue); box-shadow: var(--shadow-md); }
  .h-card:hover { box-shadow: var(--shadow-md); }
  .t-learn:hover .t-learn-chevron { transform: translateX(var(--learn-shift)); transition-duration: var(--learn-in); }
  .t-learn:hover .t-learn-arm { transition-duration: var(--learn-in); }
  .t-learn:hover .t-learn-arm-top { transform: rotate(var(--learn-spread)); }
  .t-learn:hover .t-learn-arm-bot { transform: rotate(calc(var(--learn-spread) * -1)); }
}
.t-learn:focus-visible .t-learn-chevron { transform: translateX(var(--learn-shift)); }
.t-learn:focus-visible .t-learn-arm-top { transform: rotate(var(--learn-spread)); }
.t-learn:focus-visible .t-learn-arm-bot { transform: rotate(calc(var(--learn-spread) * -1)); }

/* Comparison tray: it now actually slides in and out (display:none used to cancel the transition). */
#tray { display: block; visibility: hidden; transform: translateY(100%); padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  transition: transform 200ms var(--ease-out), visibility 0s linear 200ms; }
#tray.show { visibility: visible; transform: none; transition: transform 200ms var(--ease-out); }

/* Phones: size the map to the visible viewport, which excludes the browser's toolbars. */
@media (max-width: 980px) { .aiq-map { height: 58dvh; } }

/* Reduced motion: keep color and opacity changes, remove movement. */
@media (prefers-reduced-motion: reduce) {
  .btn:active, .is-pressed { transform: none !important; }
  #toast, #toast.is-open { transform: translate(-50%, 0); filter: none; transition: opacity 200ms ease; }
  #tray { transform: none; opacity: 0; transition: opacity 200ms ease, visibility 0s linear 200ms; }
  #tray.show { opacity: 1; transition: opacity 200ms ease; }
  .t-learn .t-learn-chevron, .t-learn .t-learn-arm { transform: none !important; }
  .shimmer-text::before { animation: none; }
}

/* ================= Hero v4: search on the left, a dot for every hospital on the right ================= */
.hero { position: relative; overflow: hidden; border-bottom: 0; padding: 76px 0 84px; color: #fff;
  background:
    radial-gradient(55% 80% at 88% 112%, rgba(56, 189, 248, .50) 0%, rgba(56, 189, 248, 0) 62%),
    radial-gradient(48% 70% at 6% -12%, rgba(124, 92, 255, .45) 0%, rgba(124, 92, 255, 0) 62%),
    linear-gradient(135deg, #0B2545 0%, #123E8A 55%, #1565E0 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.hero-copy { text-align: left; min-width: 0; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 13px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28); color: #fff; font-size: .9375rem; font-weight: 600; }
.hero-kicker i { width: 8px; height: 8px; border-radius: 50%; background: #5EEAD4; flex: none; }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 5.2vw, 4rem); line-height: 1.05; letter-spacing: -.03em; margin-bottom: 14px; text-wrap: balance; }
.hero .sub { color: #E3EEFF; font-size: 1.25rem; max-width: 34ch; margin: 0 0 28px; }
.hero-search { max-width: 560px; margin: 0 0 18px; }
.hero-search form { display: flex; flex-direction: row; gap: 6px; padding: 6px; background: #fff; border-radius: 16px; box-shadow: 0 16px 40px rgba(4, 18, 44, .38); transition: box-shadow .18s var(--ease-out, ease-out); }
.hero-search form:focus-within { box-shadow: 0 0 0 3px rgba(255, 255, 255, .8), 0 16px 40px rgba(4, 18, 44, .38); }
.hero-search input, .hero-search input:focus { min-height: 52px; border: 0; outline: 0; box-shadow: none; background: transparent; color: var(--navy); }
.hero-search .ic.lead { left: 14px; top: 15px; }
.hero-search .btn-dark { min-height: 52px; border-radius: 11px; background: var(--blue); border-color: var(--blue); color: #fff; }
.hero-search .btn-dark:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.hero-search .combo-list { color: var(--text, #101828); text-align: left; }
.hero-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 30px; }
.hero-chips span { color: #D5E4FD; font-size: .9375rem; margin-right: 2px; }
.hero-chips a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 13px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .32); color: #fff; font-size: .9375rem; font-weight: 600; text-decoration: none; transition: background-color .15s ease-out; }
.hero-chips a:active { background: rgba(255, 255, 255, .3); }
.hero-stats { display: flex; gap: 36px; max-width: 560px; margin: 0; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .22); }
.hero-stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.hero-stats dd { margin: 0; font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.hero-stats dt { color: #D5E4FD; font-size: .9375rem; }
.hero a:focus-visible, .hero button:focus-visible { outline-color: #fff; }

.hero-side { min-width: 0; }
.hero-map { position: relative; }
.hero-map canvas { display: block; width: 100%; aspect-ratio: 1.6; }
.hero-map .route { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.hero .route-line { fill: none; stroke: #fff; stroke-opacity: .6; stroke-width: 1.5; stroke-dasharray: 2 6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.hero .plane path { fill: #fff; stroke: #123E8A; stroke-width: 1; vector-effect: non-scaling-stroke; }
.hero-cap { margin: 14px 0 0; text-align: center; color: #D5E4FD; font-size: .9375rem; }
.hero-cap a { color: #fff; font-weight: 600; }
.ping { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #7DD3FC; pointer-events: none; }
.ping::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #7DD3FC; animation: ping 3.6s cubic-bezier(0.23, 1, 0.32, 1) infinite; animation-delay: var(--d, 0s); opacity: 0; }
@keyframes ping { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(4.2); opacity: 0; } }

/* Icons float around the edge of the map, never over the text. */
.sym { display: grid; position: absolute; width: 54px; height: 54px; border-radius: 16px; background: #fff; color: var(--blue); border: 0; box-shadow: 0 12px 28px rgba(4, 18, 44, .35); z-index: 1;
  animation: sym-float var(--fd, 6s) ease-in-out infinite alternate; }
.sym svg { width: 26px; height: 26px; }
.sym.s1 { left: -14px; right: auto; top: -30px; bottom: auto; --r: -6deg; --fd: 5.6s; animation-delay: -1.2s; }
.sym.s3 { right: 15%; left: auto; top: -34px; bottom: auto; --r: 6deg; --fd: 6.4s; animation-delay: -3.1s; color: #E0457B; }
.sym.s2 { left: 1%; right: auto; top: auto; bottom: 3%; --r: 5deg; --fd: 7s; animation-delay: -2.3s; }
.sym.s4 { right: -6px; left: auto; top: auto; bottom: 14%; --r: -5deg; --fd: 6s; animation-delay: -4.4s; color: #0E9F6E; }
@keyframes sym-float {
  0%   { transform: translate(0, -6px) rotate(var(--r)); }
  50%  { transform: translate(3px, 1px) rotate(calc(var(--r) * .35)); }
  100% { transform: translate(-2px, 6px) rotate(calc(var(--r) * -1)); }
}
@media (hover: hover) and (pointer: fine) { .hero-chips a:hover { background: rgba(255, 255, 255, .24); } }
@media (max-width: 940px) {
  .hero { padding: 52px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy { text-align: center; }
  .hero .sub, .hero-search, .hero-stats { margin-left: auto; margin-right: auto; }
  .hero-chips, .hero-stats { justify-content: center; }
  .hero-side { max-width: 560px; width: 100%; margin: 0 auto; }
  .sym { width: 44px; height: 44px; border-radius: 13px; }
  .sym svg { width: 22px; height: 22px; }
  .sym.s1 { left: 0; top: -24px; } .sym.s4 { right: 0; }
}
@media (max-width: 520px) {
  .hero { padding: 40px 0 44px; }
  .hero-search form { flex-direction: column; gap: 10px; padding: 0; background: transparent; box-shadow: none; }
  .hero-search form:focus-within { box-shadow: none; }
  .hero-search input, .hero-search input:focus { background: #fff; border-radius: 14px; min-height: 54px; }
  .hero-search input:focus { box-shadow: 0 0 0 3px rgba(255, 255, 255, .8); }
  .hero-search .ic.lead { top: 16px; }
  .hero-search .btn-dark { border-radius: 14px; border-color: rgba(255, 255, 255, .5); }
  .hero-stats { gap: 18px; }
  .hero-kicker { font-size: .875rem; }
  .hero-grid { gap: 36px; }
  .hero-stats dd { font-size: 1.375rem; }
  .hero-stats dt { font-size: .875rem; }
  .sym.s2, .sym.s3 { display: none; }
}
@media (prefers-reduced-motion: reduce) { .sym, .ping::after { animation: none; } }

/* ---------- Preview notice, first-review prompt, not-found page ---------- */
.proto-banner { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 4px 8px 4px 16px; }
.proto-banner[hidden] { display: none; }
.proto-banner button { flex: none; width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: inherit; font-size: 1.35rem; line-height: 1; cursor: pointer; }
.proto-banner button:hover { background: rgba(0, 0, 0, .08); }
.first-review { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 28px; border-radius: var(--r-card); background: linear-gradient(135deg, #EAF3FF 0%, #F4F0FF 100%); border: 1px solid #C7DEFB; }
.first-review h2 { margin: 0 0 6px; }
.first-review p { margin: 0; color: #344054; max-width: 60ch; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin: 0; }
.facts div { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px 18px; }
.facts dt { color: var(--muted); font-size: .9375rem; }
.facts dd { margin: 4px 0 0; font-weight: 700; font-size: 1.0625rem; color: var(--navy); }
.lost { text-align: center; max-width: 560px; margin: 0 auto; padding: 32px 0; }
.lost .cta-row { margin-top: 20px; }

/* ---------- Email signup ---------- */
.signup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }
.signup h2 { margin-bottom: 6px; }
.signup label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.signup-row { display: flex; gap: 10px; align-items: flex-end; }
.signup-row input { width: 100%; }
.signup .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--text); margin: 14px 0 0; }
.signup .consent input { margin-top: 3px; flex: none; }
.signup-msg { margin: 10px 0 0; min-height: 1.6em; color: var(--muted); }
.signup-msg.bad { color: var(--red-text); font-weight: 500; }
.signup-done { margin: 0; background: var(--green-light); color: var(--green-text); border-radius: var(--r-ctl); padding: 16px 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 860px) { .signup { grid-template-columns: 1fr; gap: 16px; } }
@media (max-width: 480px) { .signup-row { flex-direction: column; align-items: stretch; } }

/* ---------- Menu: switch to the compact menu earlier so the bar never wraps onto two lines ---------- */
@media (max-width: 1040px) {
  .btn.menu-btn { display: inline-flex; margin-left: auto; }
  .header-actions { display: none; }
  .header-inner { flex-wrap: wrap; gap: 0 12px; min-height: 64px; }
  .main-nav { display: none; flex-basis: 100%; flex-direction: column; gap: 0; padding: 4px 0 12px; border-top: 1px solid var(--line-soft); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line-soft); min-height: 48px; }
  .main-nav a.active { border-bottom-color: var(--blue); }
  .main-nav .nav-extra { display: flex; }
}

/* ---------- Review call to action, same look as the hero ---------- */
.cta.cta2 { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 40px; padding: 48px 52px; text-align: left; border-radius: 20px;
  background:
    radial-gradient(55% 90% at 92% 115%, rgba(56, 189, 248, .50) 0%, rgba(56, 189, 248, 0) 62%),
    radial-gradient(45% 80% at 4% -15%, rgba(124, 92, 255, .45) 0%, rgba(124, 92, 255, 0) 62%),
    linear-gradient(135deg, #0B2545 0%, #123E8A 55%, #1565E0 100%); }
.cta2 .hero-kicker { margin-bottom: 14px; }
.cta2 h2 { font-size: clamp(1.625rem, 3vw, 2.25rem); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 18px; max-width: 22ch; text-wrap: balance; }
.cta-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: #E3EEFF; font-size: 1rem; }
.cta-points li { display: inline-flex; align-items: center; gap: 8px; }
.cta-points li::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; background: rgba(94, 234, 212, .2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5.5 10.4 3 3 6-6.6' fill='none' stroke='%235EEAD4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.cta-side { position: relative; display: grid; place-items: center; padding: 46px 34px; }
.cta2 .btn-primary { position: relative; z-index: 2; box-shadow: 0 14px 32px rgba(4, 18, 44, .38); }
.cta2 a:focus-visible { outline-color: #fff; }
.cta2 .sym.c1 { left: -8px; right: auto; top: -6px; bottom: auto; --r: -6deg; --fd: 6s; animation-delay: -1.5s; }
.cta2 .sym.c2 { right: -10px; left: auto; bottom: -8px; top: auto; --r: 6deg; --fd: 6.8s; animation-delay: -3.4s; color: #0E9F6E; }
@media (max-width: 820px) {
  .cta.cta2 { grid-template-columns: 1fr; gap: 12px; padding: 36px 24px; text-align: center; }
  .cta2 h2 { margin-left: auto; margin-right: auto; }
  .cta-points { flex-direction: column; align-items: flex-start; width: fit-content; margin: 0 auto; text-align: left; }
  .cta-side { padding: 22px 0 0; }
  .cta2 .sym { display: none; }
  .cta2 .btn-primary { width: 100%; max-width: 320px; }
}

/* ---------- Review block v2: logo colors (#102A43 navy, #84B8FF light blue), bigger button ---------- */
.cta.cta2 { background: radial-gradient(60% 120% at 100% 100%, rgba(132, 184, 255, .22) 0%, rgba(132, 184, 255, 0) 60%), #102A43; }
.cta-points { font-size: 1.0625rem; color: #fff; }
.cta-points li::before { width: 24px; height: 24px; background: #84B8FF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6.8 12.5 3.4 3.4 7-7.6' fill='none' stroke='%23102A43' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 24px no-repeat; }
.cta-side { padding: 56px 44px; }
.cta2 .btn-primary { min-height: 66px; padding: 16px 44px; font-size: 1.25rem; font-weight: 700; border-radius: 16px; color: #102A43; }
.cta2 .sym { color: #102A43; }
.cta2 .sym.c2 { color: #1570EF; }
@media (max-width: 820px) {
  .cta-side { padding: 60px 0 56px; }
  .cta2 .sym { display: grid; }
  .cta2 .sym.c1 { left: 4%; top: 6px; } .cta2 .sym.c2 { right: 4%; bottom: 0; }
  .cta2 .btn-primary { max-width: 340px; }
}

/* ---------- How it works: a different color for each step number ---------- */
.steps3 .card::before { width: 44px; height: 44px; font-size: 1.125rem; }
.steps3 .card:nth-child(1)::before { background: #1570EF; }
.steps3 .card:nth-child(2)::before { background: #0E7C5A; }
.steps3 .card:nth-child(3)::before { background: #6941C6; }

/* ---------- Review block v3: five stars above the button instead of floating icons ---------- */
.cta-side { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 8px 12px; }
.cta-stars { display: flex; gap: 8px; }
.cta-stars svg { width: 34px; height: 34px; fill: #84B8FF; stroke: #84B8FF; stroke-width: 1.5; stroke-linejoin: round; animation: star-in .5s cubic-bezier(0.23, 1, 0.32, 1) both; animation-delay: calc(var(--i, 0) * 90ms + 150ms); }
.cta-stars svg:nth-child(2) { --i: 1; } .cta-stars svg:nth-child(3) { --i: 2; } .cta-stars svg:nth-child(4) { --i: 3; } .cta-stars svg:nth-child(5) { --i: 4; }
@keyframes star-in { from { opacity: 0; transform: scale(.6) translateY(6px); } to { opacity: 1; transform: none; } }
.cta-note { margin: 0; color: #D0DCE9; font-size: .9375rem; text-align: center; }
.cta.cta2 .cta-note { margin: 0; max-width: none; }
@media (max-width: 820px) { .cta-side { padding: 26px 0 0; } }
@media (prefers-reduced-motion: reduce) { .cta-stars svg { animation: none; } }

/* ---------- Medicare (CMS) quality data ---------- */
.cms { margin-top: 32px; }
.cms-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.cms-head h2 { margin: 0; }
.cms .tiles .num { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cms-stars { --star: #1570EF; font-size: 1.05rem; }
.cms-line { margin-top: 6px; color: var(--muted); font-size: .9375rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cms-line b { color: var(--navy); }
.cms-chip { color: var(--blue-dark); font-weight: 600; }

/* ================= Spinning counter (transitions.dev) ================= */
:root {
  --reel-step-dur: 130ms;
  --reel-stagger: 90ms;
  --reel-ease: cubic-bezier(0.35, -0.02, 0.43, 1);
  --reel-cell: 1.2em;
  --reel-side-scale: 0.7;
  --reel-side-offset: 0.52em;
  --reel-side-blur: max(0.067em, 0.171em - 2.1px);
  --reel-side-opacity: 0.17;
  --reel-center-scale: 0.9;
  --reel-center-blur: 0.042em;
  --reel-antic-dur: 100ms;
  --reel-antic-scale: 0.94;
  --reel-antic-lift: 0.125em;
  --reel-land-dur: 740ms;
  --reel-land-peak: 1.03;
}
.t-reel {
  display: inline-flex;
  align-items: center;
  height: var(--reel-cell);
  font-variant-numeric: tabular-nums;
}
.t-reel-col {
  position: relative;
  display: inline-block;
  height: var(--reel-cell);
  line-height: var(--reel-cell);
}
.t-reel-sizer { visibility: hidden; }
.t-reel-digit {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform, filter, opacity;
}
.t-reel-sep {
  display: inline-block;
  height: var(--reel-cell);
  line-height: var(--reel-cell);
}
/* JS drives every digit per frame from the tokens above. */

@media (prefers-reduced-motion: reduce) {
  .t-reel-digit { filter: none !important; }
}
.hero-stats .t-reel { height: auto; min-height: var(--reel-cell); }

/* ---------- Stipend reference (GSA) and compact license cards ---------- */
.ref-card .cms-head { margin-bottom: 12px; }
.ref-card .cms-head h2 { font-size: 1.25rem; }
.ref-rows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 4px; }
.ref-rows div { display: flex; flex-direction: column; gap: 2px; }
.ref-rows b { font-size: 1.5rem; font-weight: 800; color: var(--navy); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ref-rows span { color: var(--muted); font-size: .9375rem; line-height: 1.4; }
.ref-rows i { font-style: normal; color: #344054; }
.badge.nlc-ok { background: #E3F6EE; color: #0B6B4E; }
.badge.nlc-note { background: #FEF4E0; color: #8A4B00; }
.badge.nlc-warn { background: #FDECEA; color: #A32018; }
.gsa-card { margin-top: 20px; }
@media (max-width: 560px) { .ref-rows { grid-template-columns: 1fr; } }

/* Three reference cards side by side: stack the figures inside each card so they stay readable. */
.ref-grid .ref-rows { grid-template-columns: 1fr; gap: 10px; }
.ref-grid .ref-rows div { flex-direction: row; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ref-grid .ref-rows span br { display: none; }
.ref-grid .ref-rows i::before { content: " ("; } .ref-grid .ref-rows i::after { content: ")"; }
@media (max-width: 1040px) { .ref-grid { grid-template-columns: 1fr; } }
