/* ───────────────────────────────────────────────────────────────────────────
   MilDeck website — high-end, classic layout.
   Palette: deep navy, gold accent, warm off-white. Serif headings + Inter body.
   ─────────────────────────────────────────────────────────────────────────── */
:root {
  --navy: #0a1f44;
  --navy-2: #12294f;
  --navy-deep: #071633;
  --gold: #c8a227;
  --gold-soft: #e3c766;
  --ink: #17233a;
  --ink-2: #48566e;
  --muted: #6b7891;
  --line: #e5e8ef;
  --bg: #f7f8fb;
  --card: #ffffff;
  --accent: #1e5aa8;
  --accent-soft: #eaf1fa;
  --good: #1f7a44;
  --shadow: 0 10px 30px rgba(10, 31, 68, 0.08);
  --shadow-lg: 0 24px 60px rgba(10, 31, 68, 0.16);
  --radius: 16px;
  --wrap: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Fraunces', Georgia, 'Times New Roman', serif; color: var(--navy); line-height: 1.15; margin: 0 0 .4em; font-weight: 600; letter-spacing: -0.01em; }
a { color: var(--accent); text-decoration: none; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 9px; font-family: 'Fraunces', serif; }
.brand-mark { color: var(--gold); font-size: 22px; }
.brand-name { font-size: 22px; font-weight: 700; color: var(--navy); letter-spacing: -0.02em; }
.brand-accent { color: var(--gold); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 14.5px; font-weight: 600; color: var(--ink-2);
  padding: 9px 13px; border-radius: 10px; background: none; border: none; cursor: pointer;
  font-family: inherit; transition: background .15s, color .15s;
}
.nav-link:hover { color: var(--navy); background: var(--accent-soft); }
.caret { font-size: 10px; opacity: .7; }
.nav-item { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 232px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(6px); transition: opacity .16s, transform .16s, visibility .16s;
}
.nav-item:hover .dropdown, .nav-item.open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block; padding: 10px 12px; border-radius: 9px;
  color: var(--ink); font-size: 14px; font-weight: 500;
}
.dropdown a:hover { background: var(--accent-soft); color: var(--navy); }
.dropdown-scroll { max-height: 74vh; overflow-y: auto; min-width: 250px; }
.dropdown-scroll .dd-all { font-weight: 700; border-bottom: 1px solid var(--line); border-radius: 0; margin-bottom: 4px; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: .2s; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  background: radial-gradient(1200px 500px at 80% -10%, #1c3d72 0%, transparent 60%), linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #eaf0fb; padding: 92px 0 108px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 22px 22px; opacity: .5; pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero .eyebrow { color: var(--gold-soft); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: 12.5px; margin-bottom: 18px; }
.hero h1 { color: #fff; font-size: clamp(34px, 5vw, 60px); max-width: 15ch; margin-bottom: .35em; }
.hero p { color: #c4d2ea; font-size: clamp(16px, 2vw, 20px); max-width: 60ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px;
  padding: 14px 24px; border-radius: 12px; cursor: pointer; border: 1px solid transparent;
  font-family: inherit; transition: transform .12s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--navy-deep); box-shadow: 0 10px 24px rgba(200,162,39,.32); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.24); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 52px; }
.hero-stat b { display: block; font-family: 'Fraunces', serif; font-size: 30px; color: #fff; }
.hero-stat span { color: #9fb2d4; font-size: 13.5px; }

/* ── 3D scroll hero + depth ─────────────────────────────────────────────── */
.hero3d { perspective: 1200px; }
.hero-scene { position: absolute; inset: 0; z-index: 0; pointer-events: none; transform-style: preserve-3d; }
.hero-scene > * { position: absolute; will-change: transform; }
.h-grid { inset: -15%; background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); background-size: 30px 30px; opacity: .6; }
.h-orb { border-radius: 50%; filter: blur(46px); }
.h-orb-1 { width: 460px; height: 460px; top: -12%; right: 2%; background: radial-gradient(circle, rgba(58,120,214,.55), transparent 68%); }
.h-orb-2 { width: 360px; height: 360px; bottom: -16%; left: -6%; background: radial-gradient(circle, rgba(200,162,39,.40), transparent 68%); }
.h-chip {
  left: var(--x); top: var(--y); width: 58px; height: 58px; display: grid; place-items: center; font-size: 27px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 16px;
  box-shadow: 0 22px 44px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.12); backdrop-filter: blur(3px);
}
.hero-content { position: relative; z-index: 1; transform-style: preserve-3d; will-change: transform; }
.scroll-cue { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 1; }
.scroll-cue span { display: block; width: 24px; height: 38px; border: 2px solid rgba(255,255,255,.3); border-radius: 14px; position: relative; }
.scroll-cue span::after { content: ''; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: scrolldot 1.6s ease-in-out infinite; }
@keyframes scrolldot { 0%, 100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(11px); opacity: .2; } }
.stage3d .reveal { transition-delay: calc(var(--i, 0) * 70ms); }
.card.link { transform-style: preserve-3d; }
@media (hover: hover) and (pointer: fine) { .card.link { transition: transform .18s ease, box-shadow .18s ease, border-color .15s; } }
@media (max-width: 700px) { .h-chip { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero-scene, .scroll-cue { display: none; }
  .hero-content { transform: none !important; }
  .card.link { transform: none !important; }
}
/* ASVAB MOS matcher */
.mos-block { margin-top: 16px; }
.mos-block h4 { font-family: 'Fraunces', Georgia, serif; font-size: 17px; color: var(--navy); margin: 0 0 10px; }
.mos-grid { display: grid; gap: 8px; }
.mos-chip { background: var(--accent-soft); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: 13.5px; color: var(--ink); }
.mos-chip b { color: var(--navy); margin-right: 6px; }
.mos-chip span { display: block; font-size: 11.5px; color: var(--muted); font-weight: 700; margin-top: 2px; text-transform: uppercase; letter-spacing: .3px; }
.mos-close { font-size: 13px; color: var(--ink-2); margin: 10px 0 0; }
.ls-toggle { margin-top: 16px; }
.ls-toggle > summary { cursor: pointer; font-weight: 700; color: var(--navy); font-size: 14px; }

/* ASVAB line-score list */
.ls-list { margin-top: 14px; }
.ls-row { display: flex; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.ls-row:first-child { border-top: 0; }
.ls-score { flex-shrink: 0; width: 54px; height: 44px; display: grid; place-items: center; background: var(--accent-soft); color: var(--navy); font-weight: 900; font-size: 18px; border-radius: 10px; font-variant-numeric: tabular-nums; }
.ls-meta { min-width: 0; }
.ls-meta b { display: block; font-size: 14px; color: var(--ink); }
.ls-meta span { font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }

/* Quiz countdown timer */
.quiz-timer { position: sticky; top: 78px; z-index: 20; display: inline-flex; align-items: center; gap: 6px; float: right; background: var(--navy); color: #fff; font-weight: 800; font-size: 15px; padding: 8px 14px; border-radius: 20px; box-shadow: var(--shadow); font-variant-numeric: tabular-nums; }
.quiz-timer.low { background: #b00020; animation: timerPulse 1s ease-in-out infinite; }
@keyframes timerPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }

/* AFQT readiness band + practice progress */
.afqt-band { background: var(--accent-soft); border: 1px solid var(--gold); border-radius: 14px; padding: 16px 18px; margin: 0 0 20px; }
.afqt-band-head { font-family: 'Fraunces', Georgia, serif; font-weight: 700; font-size: 17px; color: var(--navy); margin-bottom: 6px; }
.afqt-band p { margin: 0 0 8px; font-size: 14px; line-height: 1.55; color: var(--ink); }
.afqt-band .afqt-cut { font-size: 13px; color: var(--ink-2); }
.afqt-band .afqt-fine { font-size: 12px; color: var(--muted); margin-bottom: 0; }
.prog-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.prog-row:first-child { border-top: 0; }
.prog-name { font-weight: 700; color: var(--ink); }
.prog-scores { color: var(--ink-2); font-size: 12.5px; white-space: nowrap; }
.prog-scores b { color: var(--ink); }
.prog-scores b.good { color: var(--good); }

/* ID.me / GovX verify CTA */
.verify-cta { display: flex; gap: 12px; align-items: flex-start; background: var(--accent-soft); border: 1px solid var(--gold); border-radius: 14px; padding: 14px 16px; margin-bottom: 16px; font-size: 13.5px; line-height: 1.55; color: var(--ink); }
.verify-cta strong { color: var(--navy); }
.verify-cta a { color: var(--navy); font-weight: 700; }
.v-ico { font-size: 18px; }

/* Veterans Crisis Line bar */
.crisis-bar { display: flex; gap: 12px; align-items: flex-start; background: #2a1418; border-top: 3px solid #b00020; padding: 14px 20px; border-radius: 12px; margin: 0 auto 18px; color: #f3e6e8; font-size: 13.5px; line-height: 1.55; }
.crisis-bar strong { color: #fff; }
.crisis-bar a { color: #ffb3ba; font-weight: 700; text-decoration: underline; }
.crisis-ico { font-size: 20px; line-height: 1.3; }

/* Site-wide scroll-progress bar */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; background: transparent; pointer-events: none; }
.scroll-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), #ffd873); box-shadow: 0 0 8px rgba(200,162,39,.5); transition: width .08s linear; }
/* Page transition */
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.app.page-in { animation: pageIn .34s cubic-bezier(.22,.61,.36,1); }
@media (prefers-reduced-motion: reduce) { .app.page-in { animation: none; } }

/* ── Sections ───────────────────────────────────────────────────────────── */
.section { padding: 72px 0; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head .kicker { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 40px); }
.section-head p { color: var(--ink-2); font-size: 17px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.breadcrumb { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.breadcrumb a { color: var(--muted); }

/* ── Cards / grids ──────────────────────────────────────────────────────── */
.grid { display: grid; gap: 20px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); transition: transform .16s, box-shadow .16s, border-color .16s;
}
.card.link { cursor: pointer; }
.card.link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #cfd8e6; }
.card h3 { font-size: 20px; }
.card .sub { color: var(--ink-2); font-size: 14.5px; margin: 0; }
.card .pill { display: inline-block; font-size: 11.5px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; letter-spacing: .03em; }
.icon-badge { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 14px; background: var(--accent-soft); }

/* ── Accordion ──────────────────────────────────────────────────────────── */
.accordion { border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; box-shadow: var(--shadow); }
.acc-item + .acc-item { border-top: 1px solid var(--line); }
.acc-head {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 18px 22px; font-size: 16px; font-weight: 700; color: var(--navy); font-family: inherit;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.acc-head:hover { background: #fafbfe; }
.acc-head .plus { color: var(--gold); font-size: 22px; transition: transform .2s; flex: none; }
.acc-item.open .acc-head .plus { transform: rotate(45deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.acc-body-inner { padding: 0 22px 20px; color: var(--ink-2); font-size: 15px; }
.acc-body-inner p:last-child { margin-bottom: 0; }

/* ── Tables (ranks) ─────────────────────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.chip { padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: 14px; color: var(--ink-2); cursor: pointer; transition: .15s; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.rank-group { margin-bottom: 34px; }
.rank-group h3 { font-size: 21px; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--gold); display: inline-block; }
.rank-row { display: grid; grid-template-columns: 44px 60px 1fr; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; margin-bottom: 10px; }
.rank-row:has(.rank-promo) { align-items: start; }
.rank-insignia { display: flex; align-items: center; justify-content: center; }
.rank-main { min-width: 0; }
.rank-promo { margin-top: 6px; }
.rank-promo > summary { cursor: pointer; font-size: 12.5px; font-weight: 700; color: var(--navy); list-style: none; display: inline-flex; align-items: center; gap: 5px; }
.rank-promo > summary::-webkit-details-marker { display: none; }
.rank-promo > summary::before { content: '▸'; font-size: 11px; transition: transform .15s; }
.rank-promo[open] > summary::before { transform: rotate(90deg); }
.rank-promo-body { margin-top: 6px; padding: 10px 12px; background: #f7f9fc; border: 1px solid var(--line); border-radius: 10px; }
.rank-promo-body p { margin: 0 0 6px; font-size: 13.5px; line-height: 1.55; color: var(--ink); }
.rank-promo-body p:last-child { margin-bottom: 0; }
.rank-promo-body .rank-req { color: var(--ink-2); }
.gr-note { margin-bottom: 20px; }
.rank-start { background: var(--accent-soft); border: 1px solid var(--gold); border-radius: 14px; padding: 16px 18px; margin-bottom: 18px; }
.rank-start h4 { font-family: 'Fraunces', Georgia, serif; font-size: 17px; font-weight: 700; color: var(--navy); margin: 0 0 6px; }
.rank-start-cap { font-size: 14px; color: var(--ink); margin: 0 0 8px; }
.rank-start-list { margin: 0; padding-left: 18px; }
.rank-start-list li { font-size: 13.5px; color: var(--ink); line-height: 1.55; margin: 4px 0; }

/* ── Global search ──────────────────────────────────────────────────────── */
.header-search { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 15px; text-decoration: none; margin-left: 6px; }
.header-search:hover { border-color: var(--gold); }
.header-search .hs-label { display: none; }
.gs-result { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; text-decoration: none; color: var(--ink); }
.gs-result:hover { border-color: var(--gold); background: var(--accent-soft); }
.gs-ico { font-size: 18px; flex-shrink: 0; width: 24px; text-align: center; }
.gs-main { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.gs-title { font-weight: 700; font-size: 14.5px; color: var(--navy); }
.gs-sub { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-type { flex-shrink: 0; font-size: 11px; font-weight: 700; color: var(--muted); background: var(--accent-soft); border-radius: 20px; padding: 4px 9px; }
@media (max-width: 560px) { .gs-type { display: none; } }
.rank-ins-img { width: 40px; height: 40px; object-fit: contain; display: block; }
.rank-ins-na { display: block; width: 40px; height: 40px; border-radius: 9px; border: 1px dashed var(--line); }
.rank-grade { font-weight: 800; color: var(--navy); background: var(--accent-soft); border-radius: 8px; text-align: center; padding: 7px 0; }
.rank-title { font-weight: 600; }
.rank-title.unused { color: var(--muted); font-style: italic; font-weight: 500; }

/* ── Search / inputs ────────────────────────────────────────────────────── */
.search-bar { display: flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 16px; margin-bottom: 8px; box-shadow: var(--shadow); }
.search-bar input { flex: 1; border: none; outline: none; font-size: 16px; font-family: inherit; color: var(--ink); background: none; }
.result-count { color: var(--muted); font-size: 13px; margin: 6px 2px 18px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: 14px; color: var(--navy); margin-bottom: 7px; }
.field .input-wrap { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 11px; background: #fff; padding: 0 14px; }
.field .input-wrap:focus-within { border-color: var(--accent); }
.field .input-wrap span { color: var(--muted); font-weight: 600; }
.field input, .field select { flex: 1; border: none; outline: none; font-size: 16px; font-family: inherit; padding: 13px 8px; background: none; color: var(--ink); }
.field .hint { color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.segmented { display: inline-flex; background: #eef1f7; border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 20px; }
.segmented button { border: none; background: none; padding: 10px 18px; border-radius: 9px; font-weight: 700; font-size: 14px; color: var(--ink-2); cursor: pointer; font-family: inherit; }
.segmented button.active { background: #fff; color: var(--navy); box-shadow: var(--shadow); }

/* ── TSP projection chart ───────────────────────────────────────────────── */
.tool-split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.tool-col { min-width: 0; }
.pt-inputs { min-width: 0; }
.pt-inputs .card:last-child { margin-bottom: 0; }
.pt-hint { border: 1px dashed var(--line); border-radius: 12px; padding: 18px 16px; color: var(--muted); font-size: 14px; text-align: center; background: #fbfcfe; }
.tool-col:has(#ptOut:not(:empty)) .pt-hint { display: none; }
@media (max-width: 760px) { .tool-split { grid-template-columns: 1fr; } }
.tsp-chart { background: #fbfcfe; border: 1px solid var(--line); border-radius: 12px; padding: 10px 8px 2px; margin: 0 0 16px; touch-action: none; cursor: crosshair; }
.tsp-chart svg { display: block; }
.tsp-legend { display: flex; gap: 18px; justify-content: center; font-size: 12px; color: var(--ink-2); padding: 4px 0 6px; }
.tsp-legend .k::before { content: ''; display: inline-block; width: 16px; height: 3px; margin-right: 6px; vertical-align: middle; border-radius: 2px; }
.tsp-legend .tot::before { background: #1e5aa8; }
.tsp-legend .con::before { background: #6b7891; }

/* ── PT coaching block ──────────────────────────────────────────────────── */
.coach { margin-top: 14px; border: 1px solid var(--line); border-radius: 14px; background: #f7f9fc; padding: 14px 16px; }
.coach-head { font-family: 'Fraunces', Georgia, serif; font-weight: 700; font-size: 16px; color: var(--ink); margin-bottom: 8px; }
.coach-item { padding: 10px 0; border-top: 1px solid var(--line); }
.coach-item:first-of-type { border-top: 0; padding-top: 2px; }
.coach-item h4 { margin: 0 0 4px; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.coach-why { margin: 0 0 6px; font-size: 13.5px; color: var(--ink-2); }
.coach-list { margin: 0; padding-left: 18px; }
.coach-list li { font-size: 13.5px; color: var(--ink); margin: 3px 0; line-height: 1.5; }
.coach-foot { margin: 10px 0 0; font-size: 12px; color: var(--muted); line-height: 1.5; }

/* ── Result card / stats ────────────────────────────────────────────────── */
.result {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff;
  border-radius: var(--radius); padding: 26px; margin: 8px 0 18px; box-shadow: var(--shadow-lg);
}
.result .label { color: #9fb2d4; font-size: 13.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.result .value { font-family: 'Fraunces', serif; font-size: 40px; color: #fff; margin: 4px 0; }
.result .sub { color: #c4d2ea; font-size: 14.5px; }
.statline { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.statline:last-child { border-bottom: none; }
.statline .s-label { color: var(--ink-2); }
.statline .s-value { font-weight: 700; color: var(--navy); }

/* ── Note ───────────────────────────────────────────────────────────────── */
.note { display: flex; gap: 11px; background: #fbf7ea; border: 1px solid #ecdfb4; border-radius: 12px; padding: 14px 16px; color: #6a5a24; font-size: 14px; line-height: 1.55; margin: 18px 0; }
.note.info { background: var(--accent-soft); border-color: #cfe0f4; color: #234e80; }
.note .n-ico { flex: none; }

/* ── Quiz ───────────────────────────────────────────────────────────────── */
.quiz-q { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; margin-bottom: 16px; box-shadow: var(--shadow); }
.quiz-qnum { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.quiz-stem { font-size: 17px; font-weight: 600; color: var(--ink); margin-bottom: 14px; }
.quiz-stem.mono { font-family: ui-monospace, 'Courier New', monospace; font-size: 14.5px; white-space: pre; overflow-x: auto; }
.quiz-svg { max-width: 260px; margin: 0 auto 14px; padding: 10px; background: #fbfcfe; border: 1px solid var(--line); border-radius: 12px; }
.quiz-svg svg { display: block; }
.quiz-svg .tr-grid { border-collapse: collapse; margin: 0 auto; font-variant-numeric: tabular-nums; }
.quiz-svg .tr-grid th, .quiz-svg .tr-grid td { border: 1px solid var(--line); padding: 7px 12px; text-align: center; font-size: 14px; color: var(--ink); }
.quiz-svg .tr-grid th { background: #eef1f7; color: var(--navy); font-weight: 700; }
.quiz-opt { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: 11px; padding: 12px 14px; margin-bottom: 9px; cursor: pointer; transition: .12s; background: #fff; }
.quiz-opt:hover { border-color: #c2cee0; }
.quiz-opt.chosen { border-color: var(--accent); background: var(--accent-soft); }
.quiz-opt.right { border-color: var(--good); background: #eaf6ee; }
.quiz-opt.wrong { border-color: #c0392b; background: #fdecea; }
.quiz-opt .letter { font-weight: 800; color: var(--muted); width: 20px; }
.quiz-opt.locked { cursor: default; }
.quiz-expl { background: #f4f6fb; border-left: 3px solid var(--accent); border-radius: 8px; padding: 11px 13px; margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.quiz-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 8px 0 24px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-outline { background: #fff; color: var(--accent); border-color: var(--accent); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ── Filter bar ─────────────────────────────────────────────────────────── */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { background: var(--navy-deep); color: #b9c6de; margin-top: 40px; padding: 48px 0 30px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; align-items: flex-start; }
.footer-brand .brand-name { font-size: 22px; }
.footer-brand p { color: #8ea3c6; font-size: 14px; margin-top: 8px; max-width: 34ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: #cdd8ec; font-weight: 600; font-size: 14.5px; }
.footer-links a:hover { color: var(--gold-soft); }
.footer-disclaimer { margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); color: #7f93b6; font-size: 12.5px; line-height: 1.6; }

/* ── Benefits/Discounts list cards ──────────────────────────────────────── */
.list-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; align-items: start; }
.list-card { display: flex; flex-direction: column; }
.detail-toggle { margin-top: auto; }
.detail-toggle summary { cursor: pointer; font-weight: 700; color: var(--accent); font-size: 13.5px; padding: 6px 0; list-style: none; }
.detail-toggle summary::-webkit-details-marker { display: none; }
.detail-toggle summary::before { content: '＋ '; }
.detail-toggle[open] summary::before { content: '－ '; }
.detail-body { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; padding-top: 6px; }
.detail-h { font-weight: 700; color: var(--navy); font-size: 13px; margin: 12px 0 4px; text-transform: uppercase; letter-spacing: .03em; }
.detail-list { margin: 0 0 6px; padding-left: 20px; }
.detail-list li { margin-bottom: 4px; }
.detail-verify { margin: 10px 0 0; font-size: 13px; color: var(--ink-2); background: var(--accent-soft); border-radius: 8px; padding: 8px 10px; }
.list-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; font-size: 13.5px; font-weight: 700; color: var(--accent); }
.list-link:hover { text-decoration: underline; }

/* ── Branch comparison table ────────────────────────────────────────────── */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); -webkit-overflow-scrolling: touch; }
.compare-table { border-collapse: collapse; width: 100%; background: #fff; }
.compare-table th, .compare-table td { text-align: left; vertical-align: top; padding: 13px 15px; border-bottom: 1px solid var(--line); font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.compare-table tbody td, .compare-table thead th.bh { min-width: 172px; }
.compare-table thead th.bh { background: #fff; text-align: center; }
.compare-table .bh-emoji { font-size: 24px; }
.compare-table .bh-name { font-weight: 800; color: var(--navy); font-size: 15.5px; margin-top: 2px; }
.compare-table .bh-tag { font-size: 11.5px; color: var(--muted); font-weight: 500; margin-top: 3px; }
.compare-table .rowlab { position: sticky; left: 0; background: #eef1f7; font-weight: 700; color: var(--navy); white-space: nowrap; z-index: 1; min-width: 128px; }
.compare-table thead .rowlab { background: #eef1f7; }
.compare-table tbody tr:nth-child(even) td { background: #fafbfe; }
.compare-table tbody tr:nth-child(even) .rowlab { background: #e7ebf3; }
.job-chip { display: inline-block; background: var(--accent-soft); color: var(--accent); font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; margin: 0 3px 5px 0; }
#branchToggles .chip { font-size: 13px; }
#branchToggles .chip:not(.active) { opacity: 0.5; }

/* ── Mixed-practice builder ─────────────────────────────────────────────── */
.mix-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 16px; }
.mix-opt { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--ink); cursor: pointer; padding: 3px 0; }
.mix-details summary { list-style: none; }
.mix-details summary::-webkit-details-marker { display: none; }

/* ── Eligibility Q&A ────────────────────────────────────────────────────── */
.elig-q { padding: 16px 0; border-bottom: 1px solid var(--line); }
.elig-q:first-child { padding-top: 0; }
.elig-question { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.elig-answers { display: flex; gap: 10px; }
.elig-btn { padding: 9px 20px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: 14px; color: var(--ink-2); cursor: pointer; font-family: inherit; transition: .15s; }
.elig-btn:hover { border-color: var(--accent); }
.elig-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.elig-q.flag .elig-btn.active { background: #ef6c00; border-color: #ef6c00; }
.elig-detail { font-size: 12.5px; color: var(--muted); margin-top: 8px; line-height: 1.5; display: none; }
.elig-q.flag .elig-detail { display: block; }

/* ── Reveal animation ───────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .hamburger { display: flex; }
  .nav {
    position: fixed; top: 70px; right: 0; left: 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px; gap: 2px;
    box-shadow: var(--shadow-lg); transform: translateY(-140%); transition: transform .28s ease; max-height: calc(100vh - 70px); overflow-y: auto;
  }
  .nav.open { transform: translateY(0); }
  .nav-item { width: 100%; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 0 0 6px 12px; display: none; }
  .nav-item.open .dropdown { display: block; }
  .nav-toggle { width: 100%; justify-content: space-between; }
  .header-search { width: 100%; height: auto; border: 0; border-radius: 0; justify-content: flex-start; gap: 8px; padding: 11px 14px; margin-left: 0; font-size: 15px; }
  .header-search .hs-label { display: inline; font-weight: 500; color: var(--ink); }
}
@media (max-width: 860px) {
  .list-grid { grid-template-columns: 1fr; }
  .mix-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .mix-grid { grid-template-columns: 1fr; }
  .rank-row { grid-template-columns: 40px 52px 1fr; gap: 10px; }
  .section { padding: 52px 0; }
  .footer-inner { flex-direction: column; }
}
