/* =====================================================================
   ODTR — design system (mirrors youmilab.ai/drr-ai: navy / accent / Inter)
   Marketing chrome (nav, hero, sections, cards) + the theory-model tool
   components (survey, pathway, results, counselor). Course colors encode
   structure (BUILD_SPEC §6) and are also injected from data/courses.json.
   ===================================================================== */
:root{
  --ink:#1E293B;          /* headings / primary text */
  --ink-2:#334155;        /* secondary */
  --slate:#475569;        /* body text */
  --slate-2:#94A3B8;      /* faint text */
  --paper:#FFFFFF;        /* page background */
  --paper-alt:#F1F5F9;    /* alternating section fill */
  --card:#FFFFFF;         /* surfaces */
  --line:#E2E8F0;         /* hairlines */
  --line-2:#F1F5F9;       /* faint fills */

  --navy:#1E3A5F;         /* dark surfaces: header, hero, footer */
  --navy-dark:#162D4A;
  --indigo:#2563EB;       /* primary accent / actions (name kept for reuse) */
  --indigo-deep:#1D4ED8;  /* accent-dark */
  --indigo-tint:#EAF1FE;  /* light accent wash */
  --focus:#2563EB;

  /* course-color system: spine / breadth / advanced / foundation */
  --c-bmpa:#9A8F7D;  --c-alg1:#86A9CC;  --c-geo:#4F82B4;  --c-alg2:#2F5E8C;
  --c-other:#4FA39A; --c-ps:#C0992F;    --c-adv:#B0764E;  --c-precalc:#3C4E94;
  --c-calc:#4C8E6B;  --c-apcalc:#2E6B4A; --c-ap:#8C5A84;

  --radius:10px;
  --radius-sm:8px;
  --maxw:1120px;
  --shadow:0 1px 2px rgba(15,23,42,.04), 0 10px 30px rgba(15,23,42,.06);
  --shadow-sm:0 1px 2px rgba(15,23,42,.06);
  --shadow-card:0 1px 3px rgba(15,23,42,.08), 0 6px 16px rgba(15,23,42,.05);
}

*{box-sizing:border-box;}
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body{
  margin:0; background:var(--paper); color:var(--slate);
  font-family:"Inter",system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  font-size:16px; line-height:1.55; letter-spacing:-.005em;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
h1,h2,h3{ margin:0; font-weight:700; color:var(--ink); letter-spacing:-.02em; }
p{ margin:0; }
button{ font-family:inherit; cursor:pointer; }
a{ color:var(--indigo); }
.mono{ font-family:"IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,monospace; }
.serif{ font-family:"Inter",system-ui,sans-serif; }  /* legacy hook — now Inter */
:focus-visible{ outline:2.5px solid var(--focus); outline-offset:2px; border-radius:4px; }

.wrap{ max-width:var(--maxw); margin:0 auto; padding:0 24px; }
.narrow{ max-width:780px; }

/* =====================================================================
   HEADER / NAV  (navy, sticky) — injected by site-chrome.js
   ===================================================================== */
.site{ position:sticky; top:0; z-index:60; background:var(--navy); box-shadow:0 2px 12px rgba(15,23,42,.18); }
.nav-wrap{ max-width:var(--maxw); margin:0 auto; padding:0 24px; }
.nav-inner{ display:flex; align-items:center; gap:14px; height:64px; }
.brand{ display:flex; align-items:center; text-decoration:none; flex:none; }
.brand:hover{ opacity:.9; }
.odtr-logo{ height:30px; width:auto; display:block; }

.desknav{ display:flex; align-items:center; gap:2px; margin-left:8px; }
.navlink{
  display:inline-flex; align-items:center; gap:5px; border:0; background:transparent;
  color:#CBD5E1; font-size:14px; font-weight:500; letter-spacing:-.01em;
  padding:8px 13px; border-radius:8px; text-decoration:none; transition:.15s; white-space:nowrap;
}
.navlink:hover{ color:#fff; background:rgba(255,255,255,.10); }
.navlink.active{ color:#fff; background:var(--indigo); }
.navlink.active:hover{ background:var(--indigo-deep); }
.navtrig{ cursor:pointer; }
.navtrig .caret{ transition:transform .18s; opacity:.8; }
.navdrop{ position:relative; }
.navdrop.open .navtrig .caret, .navdrop.hover .navtrig .caret{ transform:rotate(180deg); }
.dd-menu{
  position:absolute; top:calc(100% + 7px); left:0; min-width:210px;
  background:#fff; border:1px solid var(--line); border-radius:11px; box-shadow:var(--shadow);
  padding:6px; opacity:0; visibility:hidden; transform:translateY(-5px); transition:.16s; z-index:70;
}
.navdrop.open .dd-menu, .navdrop.hover .dd-menu{ opacity:1; visibility:visible; transform:none; }
.dd-item{
  display:block; padding:9px 12px; border-radius:7px; font-size:14px; font-weight:500;
  color:var(--ink-2); text-decoration:none; transition:.12s;
}
.dd-item:hover{ background:var(--indigo-tint); color:var(--indigo-deep); }
.dd-item.active{ color:var(--indigo-deep); background:var(--indigo-tint); }

.nav-right{ margin-left:auto; display:flex; align-items:center; gap:12px; }
.menu-btn{ display:none; border:0; background:transparent; color:#CBD5E1; padding:6px; border-radius:8px; }
.menu-btn:hover{ color:#fff; background:rgba(255,255,255,.10); }

/* mode toggle (on navy header) */
.modetoggle{ display:flex; align-items:center; background:rgba(255,255,255,.10); border:1px solid rgba(255,255,255,.14); border-radius:100px; padding:3px; }
.modetoggle button{
  border:0; background:transparent; color:#CBD5E1; font-size:12.5px; font-weight:500;
  padding:6px 12px; border-radius:100px; letter-spacing:-.01em; transition:.18s; display:flex; align-items:center; gap:6px; white-space:nowrap;
}
.modetoggle button .dot{ width:6px; height:6px; border-radius:50%; background:#8296B4; }
.modetoggle button[aria-pressed="true"]{ background:#fff; color:var(--navy); }
.modetoggle button[aria-pressed="true"] .dot{ background:var(--indigo); }

/* mobile nav */
.mobnav{ background:var(--navy-dark); border-top:1px solid rgba(255,255,255,.10); padding:10px 24px 16px; }
.mobnav .m-link{ display:block; padding:10px 12px; border-radius:8px; color:#CBD5E1; font-size:15px; font-weight:500; text-decoration:none; }
.mobnav .m-link:hover, .mobnav .m-sub:hover{ background:rgba(255,255,255,.08); color:#fff; }
.mobnav .m-link.active, .mobnav .m-sub.active{ color:#fff; }
.mobnav .m-group{ margin-top:6px; }
.mobnav .m-grouplbl{ padding:10px 12px 4px; font-size:12px; font-weight:600; text-transform:uppercase; letter-spacing:.06em; color:#7E93B5; }
.mobnav .m-sub{ display:block; padding:8px 12px 8px 22px; border-radius:8px; color:#CBD5E1; font-size:14px; font-weight:500; text-decoration:none; }

main{ min-height:40vh; }

/* eyebrow / kicker */
.eyebrow{ font-family:"IBM Plex Mono",monospace; font-size:11.5px; letter-spacing:.14em; text-transform:uppercase; color:var(--indigo); font-weight:500; margin-bottom:14px; }
.eyebrow.muted{ color:var(--slate); }

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn{ border:1px solid transparent; border-radius:var(--radius-sm); font-weight:600; font-size:14.5px; padding:11px 20px; transition:.16s; letter-spacing:-.01em; display:inline-flex; align-items:center; justify-content:center; gap:8px; text-decoration:none; }
.btn-primary{ background:var(--indigo); color:#fff; box-shadow:0 6px 16px rgba(37,99,235,.25); }
.btn-primary:hover{ background:var(--indigo-deep); box-shadow:0 8px 22px rgba(37,99,235,.32); }
.btn-lg{ font-size:16px; padding:15px 28px; border-radius:10px; }
.btn-outline{ background:transparent; color:#fff; border-color:rgba(255,255,255,.35); }
.btn-outline:hover{ background:rgba(255,255,255,.12); border-color:rgba(255,255,255,.6); }
.btn-ghost{ background:transparent; color:var(--ink-2); border-color:var(--line); }
.btn-ghost:hover{ border-color:#C7CDD8; background:var(--paper-alt); }
.btn-quiet{ background:transparent; color:var(--slate); border:0; padding:11px 6px; font-size:13.5px; }
.btn-quiet:hover{ color:var(--ink); }
.btn:disabled{ opacity:.4; cursor:not-allowed; }

/* =====================================================================
   HERO (navy, seamless under the header)
   ===================================================================== */
.hero{ background:var(--navy); color:#fff; padding:84px 24px 92px; }
.hero-inner{ max-width:900px; margin:0 auto; text-align:center; }
.hero .kicker{ font-family:"IBM Plex Mono",monospace; font-size:12px; letter-spacing:.16em; text-transform:uppercase; color:#93C5FD; margin-bottom:20px; }
.hero h1{ color:#fff; font-size:clamp(30px,5vw,52px); font-weight:800; line-height:1.1; letter-spacing:-.025em; }
.hero-sub{ margin:22px auto 0; max-width:640px; font-size:clamp(16px,2.2vw,19px); line-height:1.55; color:#BFD3EA; }
.hero-actions{ margin-top:36px; display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }
.hero-note{ margin-top:22px; font-size:13px; color:#93A7C4; }

/* =====================================================================
   SECTIONS + CARDS
   ===================================================================== */
.section{ padding:72px 24px; }
.section.alt{ background:var(--paper-alt); }
.section-inner{ max-width:var(--maxw); margin:0 auto; }
.section-head{ text-align:center; max-width:720px; margin:0 auto 44px; }
.section-head.left{ text-align:left; margin-left:0; }
.section h2{ font-size:clamp(24px,3.4vw,34px); font-weight:800; color:var(--navy); line-height:1.15; }
.section .lead{ margin-top:16px; font-size:17px; line-height:1.6; color:var(--slate); }

.cards{ display:grid; grid-template-columns:repeat(3,1fr); gap:26px; }
.cards-2{ grid-template-columns:repeat(2,1fr); max-width:840px; margin-left:auto; margin-right:auto; }
.card{ background:#fff; border:1px solid var(--line); border-top:4px solid var(--indigo); border-radius:14px; box-shadow:var(--shadow-card); padding:30px 28px; }
.card .ic{ width:48px; height:48px; border-radius:50%; background:var(--indigo-tint); color:var(--indigo); display:flex; align-items:center; justify-content:center; margin-bottom:18px; }
.card h3{ font-size:19px; font-weight:700; color:var(--navy); margin-bottom:9px; }
.card .num{ font-family:"IBM Plex Mono",monospace; font-size:12px; letter-spacing:.1em; color:var(--indigo); text-transform:uppercase; margin-bottom:7px; }
.card p{ font-size:14.5px; line-height:1.62; color:var(--slate); }
.card ul{ margin:10px 0 0; padding-left:18px; font-size:14px; line-height:1.6; color:var(--slate); }
.card li{ margin-bottom:5px; }

/* challenge block (two-column) */
.split{ display:grid; grid-template-columns:1.05fr .95fr; gap:44px; align-items:center; }
.split .fig{ background:linear-gradient(160deg,#1E3A5F,#2C5488); border-radius:16px; padding:34px; color:#fff; box-shadow:var(--shadow); }
.split .fig .seqrow{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:13.5px; }
.split .fig .seqrow .box{ background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.16); border-radius:8px; padding:8px 11px; font-weight:600; }
.split .fig .arrow{ color:#93C5FD; }
.split .fig .cap{ margin-top:18px; font-size:13px; color:#AFC6E4; line-height:1.5; }
.split .fig .strike{ position:relative; }

/* status pill for deferred (data-driven) */
.status-pill{ display:inline-flex; align-items:center; gap:7px; font-size:12.5px; font-weight:600; color:#B45309; background:#FEF3C7; border:1px solid #FCE3A8; border-radius:100px; padding:6px 13px; }
.status-pill .d{ width:7px; height:7px; border-radius:50%; background:#D97706; }

/* =====================================================================
   TOOL — survey
   ===================================================================== */
.tool-wrap{ max-width:720px; margin:0 auto; padding:46px 24px 90px; }
.results-wrap{ max-width:var(--maxw); margin:0 auto; padding:40px 24px 90px; }

.survey{ max-width:640px; margin:0 auto; }
.progress{ display:flex; align-items:center; gap:14px; margin-bottom:34px; }
.rail{ display:flex; gap:6px; flex:1; }
.rail .seg{ height:4px; border-radius:3px; background:var(--line); flex:1; transition:.3s; }
.rail .seg.done{ background:var(--indigo); }
.rail .seg.curr{ background:var(--indigo); opacity:.45; }
.stepcount{ font-family:"IBM Plex Mono",monospace; font-size:12px; color:var(--slate); letter-spacing:.02em; white-space:nowrap; }

.qhead{ font-size:clamp(22px,3.4vw,29px); line-height:1.2; font-weight:700; letter-spacing:-.02em; color:var(--ink); margin-bottom:8px; }
.qsub{ font-size:14.5px; color:var(--slate); margin-bottom:26px; max-width:520px; }

.opts{ display:flex; flex-direction:column; gap:9px; }
.opt{ display:flex; align-items:flex-start; gap:13px; text-align:left; width:100%; background:var(--card); border:1.5px solid var(--line); border-radius:var(--radius); padding:15px 17px; transition:.14s; box-shadow:var(--shadow-sm); }
.opt:hover{ border-color:#C7D2E0; }
.opt[aria-checked="true"]{ border-color:var(--indigo); background:var(--indigo-tint); box-shadow:0 0 0 3px rgba(37,99,235,.10); }
.opt .radio{ margin-top:2px; width:17px; height:17px; border-radius:50%; border:2px solid var(--slate-2); flex:none; transition:.14s; position:relative; }
.opt[aria-checked="true"] .radio{ border-color:var(--indigo); }
.opt[aria-checked="true"] .radio::after{ content:""; position:absolute; inset:3px; border-radius:50%; background:var(--indigo); }
.opt .otxt{ flex:1; }
.opt .olbl{ display:block; font-weight:600; font-size:15px; letter-spacing:-.01em; color:var(--ink); }
.opt .odesc{ display:block; font-size:13px; color:var(--slate); margin-top:3px; line-height:1.45; }
.opt .obadge{ font-family:"IBM Plex Mono",monospace; font-size:11px; color:var(--slate-2); margin-left:auto; padding-left:10px; flex:none; align-self:center; }
.navrow{ display:flex; align-items:center; justify-content:space-between; margin-top:30px; }

/* =====================================================================
   TOOL — results
   ===================================================================== */
.results{ max-width:var(--maxw); }
.res-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:24px; flex-wrap:wrap; margin-bottom:8px; }
.res-title{ font-size:clamp(25px,4vw,36px); font-weight:800; letter-spacing:-.025em; line-height:1.1; color:var(--navy); }
.goalpill{ display:inline-flex; align-items:center; gap:7px; font-size:12.5px; font-weight:500; color:var(--ink-2); background:var(--card); border:1px solid var(--line); padding:6px 12px; border-radius:100px; }
.goalpill .gd{ width:7px; height:7px; border-radius:50%; }

.panel{ background:var(--card); border:1px solid var(--line); border-radius:14px; box-shadow:var(--shadow-card); }
.panel + .panel{ margin-top:18px; }
.panel-pad{ padding:26px 28px; }
.panel-label{ font-family:"IBM Plex Mono",monospace; font-size:11px; letter-spacing:.13em; text-transform:uppercase; color:var(--slate); font-weight:500; margin-bottom:20px; display:flex; align-items:center; gap:10px; }
.panel-label .ln{ height:1px; background:var(--line); flex:1; }

/* PATHWAY (signature) */
.pathway{ display:grid; grid-template-columns:repeat(4,1fr); gap:0; }
.grade-col{ position:relative; padding:0 10px; }
.grade-col:first-child{ padding-left:0; }
.grade-col:last-child{ padding-right:0; }
.grade-lbl{ font-family:"IBM Plex Mono",monospace; font-size:14px; font-weight:500; letter-spacing:.08em; color:var(--slate); text-transform:uppercase; margin-bottom:11px; display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap; }
.grade-lbl .role{ font-size:11.5px; color:var(--slate-2); }
.chipstack{ display:flex; flex-direction:column; gap:7px; }
.chip{ --cc:var(--slate); position:relative; border-radius:9px; padding:13px 14px 12px; background:var(--cc-bg); border:1px solid var(--cc-bd); transition:.16s; opacity:0; transform:translateY(7px); }
.chip.in{ opacity:1; transform:none; }
.chip .cname{ font-weight:600; font-size:14.5px; letter-spacing:-.012em; color:var(--ink); line-height:1.2; }
.chip .cmeta{ font-size:11.5px; color:var(--slate); margin-top:3px; }
.chip .cdot{ position:absolute; top:13px; right:13px; width:8px; height:8px; border-radius:50%; background:var(--cc); }
.chip.start{ background:var(--line-2); border-color:var(--line); }
.chip.start .cname{ color:var(--ink-2); }
.accel-tag{ display:inline-flex; align-items:center; gap:5px; font-family:"IBM Plex Mono",monospace; font-size:12px; font-weight:500; letter-spacing:.04em; color:var(--c-adv); margin-top:8px; text-transform:uppercase; }
.goal-star{ color:var(--c-apcalc); }
.connector{ position:absolute; top:46px; right:-1px; width:20px; height:1px; background:var(--line); z-index:1; }
.grade-col:last-child .connector{ display:none; }

/* WHY trace */
.trace{ display:flex; flex-direction:column; gap:0; }
.trace-item{ display:flex; gap:15px; padding:13px 0; border-bottom:1px dashed var(--line); }
.trace-item:last-child{ border-bottom:0; padding-bottom:0; }
.trace-item:first-child{ padding-top:0; }
.trace-num{ font-family:"IBM Plex Mono",monospace; font-size:12px; color:var(--indigo); font-weight:500; flex:none; width:20px; padding-top:1px; }
.trace-txt{ font-size:14.5px; color:var(--ink-2); line-height:1.5; }
.trace-txt b{ color:var(--ink); font-weight:600; }

/* COMPARISON */
.cmp-tabs{ display:inline-flex; background:var(--line-2); border:1px solid var(--line); border-radius:9px; padding:3px; margin-bottom:22px; }
.cmp-tabs button{ border:0; background:transparent; color:var(--slate); font-size:13px; font-weight:500; padding:7px 15px; border-radius:6px; transition:.16s; }
.cmp-tabs button[aria-pressed="true"]{ background:var(--card); color:var(--ink); box-shadow:var(--shadow-sm); }
.cmp-row{ display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin-top:6px; }
.cmp-cell{ border-radius:8px; padding:10px 12px; border:1px solid var(--line); background:var(--line-2); }
.cmp-cell.diff{ background:var(--indigo-tint); border-color:#BFD3F6; }
.cmp-cell .cg{ font-family:"IBM Plex Mono",monospace; font-size:14px; font-weight:500; color:var(--slate); text-transform:uppercase; letter-spacing:.06em; }
.cmp-cell .cv{ font-size:13.5px; font-weight:500; margin-top:3px; letter-spacing:-.01em; color:var(--ink); }
.cmp-cell .cv small{ display:block; font-weight:400; color:var(--slate); font-size:11px; }
.cmp-why{ margin-top:18px; font-size:14px; color:var(--ink-2); background:var(--line-2); border-left:3px solid var(--indigo); border-radius:0 8px 8px 0; padding:13px 16px; line-height:1.5; }
.cmp-why b{ color:var(--ink); }
.cmp-legend{ display:flex; gap:16px; margin-top:14px; font-size:11.5px; color:var(--slate); align-items:center; }
.cmp-legend .sw{ display:inline-block; width:11px; height:11px; border-radius:3px; margin-right:6px; vertical-align:-1px; }

/* COUNSELOR — collapsible reference (one unified report) */
.cz{ background:linear-gradient(180deg,#FBFCFE,#fff); }
.counselor-ref{ padding:0; overflow:hidden; }
.ref-toggle{ width:100%; display:flex; align-items:center; gap:14px; text-align:left; background:transparent; border:0; padding:20px 28px; cursor:pointer; transition:.14s; }
.ref-toggle:hover{ background:var(--line-2); }
.ref-toggle .ref-txt{ display:flex; flex-direction:column; gap:3px; }
.ref-toggle .ref-label{ font-weight:700; font-size:15px; color:var(--navy); letter-spacing:-.01em; }
.ref-toggle .ref-hint{ font-size:12.5px; color:var(--slate); line-height:1.4; }
.ref-toggle .chev{ margin-left:auto; color:var(--slate); transition:transform .2s; flex:none; }
.ref-toggle[aria-expanded="true"]{ border-bottom:1px solid var(--line); }
.ref-toggle[aria-expanded="true"] .chev{ transform:rotate(180deg); }
.ref-body{ padding:22px 28px 26px; }
.idx-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:1px; background:var(--line); border:1px solid var(--line); border-radius:10px; overflow:hidden; }
.idx{ background:var(--card); padding:15px 16px; }
.idx .k{ font-family:"IBM Plex Mono",monospace; font-size:10.5px; letter-spacing:.06em; text-transform:uppercase; color:var(--slate-2); }
.idx .v{ font-size:22px; font-weight:700; margin-top:5px; letter-spacing:-.02em; color:var(--navy); }
.idx .v small{ font-size:12px; color:var(--slate); font-weight:500; margin-left:5px; letter-spacing:0; }
.idx .lvl{ display:inline-block; margin-top:7px; font-size:11px; font-weight:500; padding:2px 8px; border-radius:100px; }
.lvl-H{ background:#E6F0EA; color:#2E6B4A; }
.lvl-M{ background:#FBF1DC; color:#9A7415; }
.lvl-L{ background:#F0ECEF; color:#8C5A84; }

.rulebar{ display:flex; flex-wrap:wrap; gap:7px; margin-top:6px; }
.ruleid{ font-family:"IBM Plex Mono",monospace; font-size:12px; font-weight:500; color:var(--indigo); background:var(--indigo-tint); border:1px solid #C7DBFB; border-radius:6px; padding:4px 9px; cursor:help; }
.ruleid:hover{ background:#DBE8FD; }

.scenario{ margin-top:22px; }
.scenario .sc-lbl{ font-size:12.5px; color:var(--slate); margin-bottom:9px; }
.sc-tabs{ display:inline-flex; flex-wrap:wrap; gap:7px; }
.sc-tabs button{ border:1px solid var(--line); background:var(--card); color:var(--ink-2); font-size:12.5px; padding:7px 12px; border-radius:7px; transition:.14s; }
.sc-tabs button[aria-pressed="true"]{ border-color:var(--indigo); background:var(--indigo-tint); color:var(--indigo-deep); }
.sc-out{ margin-top:14px; font-size:13.5px; color:var(--ink-2); line-height:1.5; padding:13px 15px; background:var(--line-2); border-radius:8px; }
.sc-out .seq{ font-weight:600; color:var(--ink); }

.advising{ margin-top:18px; }
.advising-box{ border:1px dashed var(--line); border-radius:10px; padding:18px 20px; background:#FCFDFE; font-size:13.5px; line-height:1.6; color:var(--ink-2); }
.advising-box .ttl{ font-weight:600; color:var(--ink); margin-bottom:8px; font-size:13px; }
.advising-box ul{ margin:8px 0 0; padding-left:18px; }
.advising-box li{ margin-bottom:5px; }
.advising-box .seqline{ font-family:"IBM Plex Mono",monospace; font-size:12.5px; color:var(--ink); background:#fff; border:1px solid var(--line); border-radius:6px; padding:8px 11px; margin:4px 0 10px; }

.rulelist{ margin-top:12px; display:flex; flex-direction:column; gap:8px; }
.rulelist .rl{ display:flex; gap:11px; font-size:13px; color:var(--ink-2); line-height:1.45; }
.rulelist .rl .rid{ font-family:"IBM Plex Mono",monospace; font-size:12px; font-weight:500; color:var(--indigo); flex:none; width:26px; padding-top:1px; }

/* disclaimer */
.disclaimer{ display:flex; gap:13px; margin-top:24px; padding:16px 19px; background:#FBFAF6; border:1px solid #ECE7D9; border-radius:11px; }
.disclaimer .ic{ flex:none; color:#A98A2E; padding-top:1px; }
.disclaimer p{ font-size:13px; color:#6B6450; line-height:1.55; }
.disclaimer b{ color:#4F4A38; }
.res-foot{ margin-top:26px; display:flex; align-items:center; gap:16px; }

/* =====================================================================
   DATA-DRIVEN TOOL (preview)
   ===================================================================== */
.dd-banner{ display:flex; flex-wrap:wrap; align-items:center; gap:12px 18px; background:#FFFBEB; border:1px solid #FDE8B0; border-radius:12px; padding:16px 20px; margin-bottom:22px; }
.dd-banner p{ flex:1; min-width:260px; font-size:13px; line-height:1.55; color:#6B5A2B; }
.dd-banner p b{ color:#4A3E17; }
.dd-modewrap{ margin-bottom:24px; }
.dd-modes{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.dd-mode{ text-align:left; background:var(--card); border:1.5px solid var(--line); border-radius:12px; padding:15px 18px; transition:.15s; box-shadow:var(--shadow-sm); display:flex; flex-direction:column; gap:3px; }
.dd-mode:hover{ border-color:#C7D2E0; }
.dd-mode[aria-pressed="true"]{ border-color:var(--indigo); background:var(--indigo-tint); box-shadow:0 0 0 3px rgba(37,99,235,.10); }
.dd-mode .mt{ font-weight:700; font-size:15.5px; color:var(--navy); letter-spacing:-.01em; }
.dd-mode .ms{ font-size:12.5px; color:var(--slate); }
.dd-q{ margin-bottom:24px; }
.dd-q .qhead{ font-size:clamp(19px,2.8vw,23px); margin-bottom:6px; }
.dd-q + .dd-q{ padding-top:22px; border-top:1px solid var(--line); }
.dd-single-chip{ max-width:280px; }
.chip.pending{ opacity:1; transform:none; background:var(--line-2); border:1px dashed var(--line); min-height:52px; color:var(--slate-2); display:flex; align-items:center; justify-content:center; font-size:18px; }
.dd-note{ margin-top:18px; font-size:12.5px; line-height:1.6; color:var(--slate); background:var(--line-2); border-left:3px solid var(--indigo); border-radius:0 8px 8px 0; padding:12px 15px; }
.dd-note b{ color:var(--ink); }
.dd-ptext{ font-size:13.5px; line-height:1.6; color:var(--slate); margin:0 0 8px; }
.dd-ptext + .dd-plist{ margin-top:2px; }
.dd-plist{ margin:0 0 4px; padding-left:20px; font-size:13.5px; line-height:1.6; color:var(--slate); }
.dd-plist li{ margin-bottom:6px; }
.dd-plist li b{ color:var(--ink); }
.dd-plist + .dd-ptext{ margin-top:16px; }
.dd-unused{ font-family:"IBM Plex Mono",monospace; font-size:10.5px; text-transform:uppercase; letter-spacing:.05em; color:#B45309; background:#FEF3C7; border-radius:5px; padding:1px 6px; margin-left:4px; }

/* =====================================================================
   CONTENT PAGES (how it works / about / research)
   ===================================================================== */
.page{ max-width:780px; margin:0 auto; padding:56px 24px 90px; }
.page .eyebrow{ margin-bottom:14px; }
.page h1{ font-size:clamp(28px,4.4vw,42px); font-weight:800; line-height:1.1; letter-spacing:-.025em; color:var(--navy); }
.page h2{ font-size:22px; font-weight:700; letter-spacing:-.015em; margin:38px 0 12px; color:var(--navy); }
.page .lede{ margin-top:18px; font-size:18px; color:var(--ink-2); line-height:1.55; }
.page p{ margin-top:14px; color:var(--slate); font-size:15.5px; line-height:1.62; }
.page ul{ margin:12px 0 0; padding-left:20px; color:var(--slate); font-size:15.5px; line-height:1.6; }
.page li{ margin-bottom:7px; }
.page li b{ color:var(--ink); }
.page .card-note{ margin-top:20px; padding:16px 19px; background:var(--card); border:1px solid var(--line); border-radius:11px; box-shadow:var(--shadow-sm); font-size:14px; color:var(--ink-2); line-height:1.55; }
.page a.cite{ color:var(--indigo); }
.page .small{ font-size:13px; color:var(--slate); }
.paperlist{ list-style:none; padding-left:0; margin-top:14px; }
.paperlist li{ margin-bottom:16px; padding-left:16px; border-left:2px solid var(--line); }
.paperlist > li > a{ font-weight:600; color:var(--indigo); text-decoration:none; }
.paperlist > li > a:hover{ text-decoration:underline; }
.paperlist .cite{ display:block; font-size:12.5px; color:var(--slate); margin-top:3px; }

.idx-pair{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:12px; margin-top:18px; }
.idx-pair .ic{ background:var(--card); border:1px solid var(--line); border-radius:11px; padding:16px 18px; box-shadow:var(--shadow-sm); }
.idx-pair .ic .nm{ font-weight:600; font-size:15px; letter-spacing:-.01em; color:var(--ink); }
.idx-pair .ic .dd{ font-size:13px; color:var(--slate); margin-top:5px; line-height:1.5; }
.idx-pair .ic .rg{ font-family:"IBM Plex Mono",monospace; font-size:11px; color:var(--slate-2); margin-top:9px; letter-spacing:.03em; }

.tagpill{ display:inline-block; font-family:"IBM Plex Mono",monospace; font-size:10.5px; font-weight:500; letter-spacing:.07em; text-transform:uppercase; border-radius:5px; padding:3px 9px; }
.tp-amber{ color:#92400E; background:#FEF3C7; }
.tp-indigo{ color:var(--indigo); background:var(--indigo-tint); }
.tp-green{ color:#166534; background:#DCFCE7; }
.glossary{ display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:10px; margin-top:18px; }
.gl{ display:flex; gap:12px; background:var(--card); border:1px solid var(--line); border-radius:10px; padding:13px 15px; box-shadow:var(--shadow-sm); }
.gl .sw{ width:11px; height:11px; border-radius:3px; flex:none; margin-top:5px; }
.gl .nm{ font-weight:600; font-size:14px; letter-spacing:-.01em; color:var(--ink); }
.gl .fam{ font-family:"IBM Plex Mono",monospace; font-size:10px; text-transform:uppercase; letter-spacing:.05em; color:var(--slate-2); margin-top:2px; }
.gl .bl{ font-size:12.5px; color:var(--slate); margin-top:6px; line-height:1.45; }

/* worked-example (demo) cards */
.ex-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:16px; margin-top:8px; }
.ex-card{ text-align:left; background:var(--card); border:1px solid var(--line); border-top:4px solid var(--indigo); border-radius:12px; padding:22px 22px; transition:.16s; box-shadow:var(--shadow-card); cursor:pointer; }
.ex-card:hover{ transform:translateY(-2px); box-shadow:0 10px 26px rgba(15,23,42,.10); }
.ex-card .ex-tag{ display:inline-block; font-family:"IBM Plex Mono",monospace; font-size:10px; letter-spacing:.06em; text-transform:uppercase; color:var(--indigo); background:var(--indigo-tint); border-radius:5px; padding:3px 8px; margin-bottom:11px; }
.ex-card .nm{ font-weight:700; font-size:17px; color:var(--navy); margin-bottom:6px; letter-spacing:-.01em; }
.ex-card .ds{ font-size:13.5px; color:var(--slate); line-height:1.5; }
.ex-card .go{ margin-top:14px; font-size:13px; font-weight:600; color:var(--indigo); display:inline-flex; align-items:center; gap:6px; }

/* =====================================================================
   INVITATION GATE
   ===================================================================== */
.gate-wrap{ min-height:calc(100vh - 64px); display:flex; align-items:center; justify-content:center; padding:40px 20px; background:var(--paper-alt); }
.gate{ width:100%; max-width:440px; text-align:center; background:#fff; border:1px solid var(--line); border-radius:18px; box-shadow:var(--shadow); padding:40px 34px 34px; }
.gate .lock{ width:50px; height:50px; margin:0 auto 22px; border-radius:50%; background:var(--indigo-tint); display:flex; align-items:center; justify-content:center; color:var(--indigo); }
.gate h1{ font-size:clamp(24px,4.4vw,30px); font-weight:800; line-height:1.12; letter-spacing:-.02em; color:var(--navy); }
.gate p{ margin-top:14px; font-size:15px; color:var(--slate); line-height:1.55; }
.gate form{ margin-top:24px; display:flex; flex-direction:column; gap:12px; align-items:stretch; }
.gate input{ font-family:"IBM Plex Mono",monospace; font-size:18px; letter-spacing:.18em; text-align:center; padding:14px 16px; border:1.5px solid var(--line); border-radius:var(--radius); background:#fff; color:var(--ink); transition:.14s; box-shadow:var(--shadow-sm); width:100%; }
.gate input:hover{ border-color:#C7D2E0; }
.gate input:focus{ outline:none; border-color:var(--indigo); box-shadow:0 0 0 3px rgba(37,99,235,.12); }
.gate input::placeholder{ letter-spacing:.05em; color:var(--slate-2); font-size:14px; }
.gate .btn{ padding:13px 20px; font-size:15px; }
.gate .err{ font-size:13px; color:#B23B4E; min-height:18px; margin-top:2px; opacity:0; transition:.14s; }
.gate .err.show{ opacity:1; }
.gate.shake{ animation:gshake .4s; }
@keyframes gshake{ 0%,100%{ transform:translateX(0);} 20%,60%{ transform:translateX(-7px);} 40%,80%{ transform:translateX(7px);} }
.gate .foot-note{ margin-top:24px; font-size:12px; color:var(--slate-2); line-height:1.5; }

/* =====================================================================
   FOOTER (navy)
   ===================================================================== */
.site-foot{ background:var(--navy); color:#AFC0D8; padding:34px 24px; margin-top:0; }
.foot-inner{ max-width:var(--maxw); margin:0 auto; display:flex; flex-wrap:wrap; align-items:center; gap:6px 14px; font-size:13px; line-height:1.5; }
.site-foot a{ color:#93C5FD; text-decoration:none; }
.site-foot a:hover{ text-decoration:underline; }
.foot-inner .dotsep{ color:#5B7196; }

/* =====================================================================
   PRINT / PDF  (Download PDF -> browser "Save as PDF")
   ===================================================================== */
.print-only{ display:none; }
.print-head .ph-title{ font-weight:800; font-size:15px; color:var(--navy); letter-spacing:-.01em; }
.print-head .ph-meta{ font-size:11px; color:var(--slate); margin-top:3px; }
.print-foot{ font-size:10.5px; color:var(--slate); line-height:1.5; }
@media print{
  @page{ margin:14mm; }
  html, body{ background:#fff !important; }
  .site, .site-foot, .menu-btn, .modetoggle, #view-survey, .res-foot,
  .cmp-tabs, .cmp-legend, .ref-toggle, .scenario{ display:none !important; }
  .print-only{ display:block !important; }
  .print-head{ border-bottom:2px solid var(--navy); padding-bottom:9px; margin-bottom:6px; }
  .print-foot{ margin-top:16px; padding-top:9px; border-top:1px solid var(--line); }
  main, .results-wrap{ padding:0 !important; max-width:100% !important; min-height:0 !important; }
  .panel{ box-shadow:none !important; border:1px solid #D9E0EA !important; margin-top:14px !important; break-inside:avoid; page-break-inside:avoid; }
  .pathway, .grade-col, .trace-item, .disclaimer, .idx-grid{ break-inside:avoid; page-break-inside:avoid; }
  .ref-body[hidden]{ display:block !important; }        /* include the full reference in the PDF */
  .counselor-ref .ref-body{ padding-top:20px !important; }
  .chip{ opacity:1 !important; transform:none !important; }
  *{ -webkit-print-color-adjust:exact !important; print-color-adjust:exact !important; }
}

/* view switching (tool) */
.view{ display:none; animation:fade .35s ease; }
.view.active{ display:block; }
@keyframes fade{ from{ opacity:0; transform:translateY(6px); } to{ opacity:1; transform:none; } }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width:940px){
  .desknav{ display:none; }
  .menu-btn{ display:inline-flex; }
  .cards{ grid-template-columns:1fr; gap:18px; }
  .split{ grid-template-columns:1fr; gap:26px; }
}
@media (max-width:560px){
  .modetoggle button{ padding:5px 8px; font-size:11px; gap:5px; }
  .nav-inner{ gap:8px; }
  .hero{ padding:60px 20px 66px; }
  .section{ padding:52px 20px; }
}
@media (max-width:720px){
  .pathway,.cmp-row{ grid-template-columns:1fr 1fr; row-gap:18px; }
  .connector{ display:none; }
  .res-head{ align-items:flex-start; }
}
@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  *{ animation:none !important; transition:none !important; }
  .chip{ opacity:1; transform:none; }
}
