/* Prereqly — "lab notebook" design system
   Deep navy + graph-paper grid for the hero, binder-tab colours for the four
   professions (navigation only), highlighter yellow reserved for the main call
   to action and focus. Status colours belong to requirement states only and are
   always paired with a shape. */
:root {
  --ink: #131a33;
  --ink-2: #3f4866;
  --ink-3: #66708c;
  --paper: #f5f6fb;
  --surface: #ffffff;
  --rule: #dfe3ee;
  --rule-strong: #bcc3d6;
  --navy: #121c45;
  --navy-2: #1c2961;
  --on-navy: #eef1ff;
  --on-navy-2: #b5bde3;
  --brand: #3b38e0;
  --brand-ink: #ffffff;
  --brand-soft: #ecebff;
  --highlight: #ffd84d;
  --highlight-ink: #1a1a00;
  --tab-md: #d23669;
  --tab-dds: #0b93ad;
  --tab-dvm: #4a8a2c;
  --tab-od: #e2701f;
  --met: #1b7a4b;
  --progress: #2563b8;
  --missing: #b8302a;
  --verify: #9a5d00;
  --unknown: #66708c;
  --info: #5a49b8;
  --focus: #ffb800;
  --r-s: 8px;
  --r-m: 14px;
  --r-l: 22px;
  --radius-s: var(--r-s);
  --radius-m: var(--r-m);
  --shadow: 0 1px 2px rgba(19, 26, 51, .06), 0 14px 34px -22px rgba(19, 26, 51, .45);
  --shadow-lift: 0 2px 4px rgba(19, 26, 51, .08), 0 30px 60px -30px rgba(18, 28, 69, .55);
  --f-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e8ebf6; --ink-2: #b6bdd6; --ink-3: #8a93b0; --paper: #0e1430; --surface: #161e40;
    --rule: #263063; --rule-strong: #38437a; --navy: #0a1029; --navy-2: #141c45;
    --brand: #9d9bff; --brand-ink: #0e1130; --brand-soft: #262a66;
    --met: #4cc28a; --progress: #74a7ee; --missing: #f2827a; --verify: #e5ae45; --unknown: #8a93b0; --info: #b3a6ff;
    --shadow: 0 1px 0 rgba(0,0,0,.3), 0 14px 34px -20px rgba(0,0,0,.8);
    --shadow-lift: 0 30px 60px -30px rgba(0,0,0,.9);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #e8ebf6; --ink-2: #b6bdd6; --ink-3: #8a93b0; --paper: #0e1430; --surface: #161e40;
  --rule: #263063; --rule-strong: #38437a; --navy: #0a1029; --navy-2: #141c45;
  --brand: #9d9bff; --brand-ink: #0e1130; --brand-soft: #262a66;
  --met: #4cc28a; --progress: #74a7ee; --missing: #f2827a; --verify: #e5ae45; --unknown: #8a93b0; --info: #b3a6ff;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.6 var(--f-body);
  font-variant-numeric: tabular-nums;
}
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.08; margin: 0 0 .5em; font-optical-sizing: auto; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.1rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 750; letter-spacing: -0.025em; }
h3 { font-size: 1.22rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 68ch; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.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(--ink); color: var(--paper); padding: 8px 14px; border-radius: var(--r-s); z-index: 50; }
.skip:focus { top: 12px; }
.muted { color: var(--ink-3); }
.small { font-size: .88rem; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- Buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 999px;
  border: 1.5px solid var(--rule-strong); background: var(--surface); color: var(--ink);
  font: 700 .98rem/1 var(--f-body); text-decoration: none; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { border-color: var(--ink-2); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); box-shadow: 0 8px 18px -10px var(--brand); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.highlight { background: var(--highlight); border-color: var(--highlight); color: var(--highlight-ink); box-shadow: 0 10px 24px -12px rgba(255, 216, 77, .9); }
.btn.highlight:hover { filter: brightness(1.04); }
.btn.on-dark { background: transparent; color: var(--on-navy); border-color: rgba(238, 241, 255, .4); }
.btn.on-dark:hover { border-color: var(--on-navy); }
.btn.quiet { border-color: transparent; background: transparent; color: var(--ink-2); padding: 0 10px; box-shadow: none; }
.btn.quiet:hover { color: var(--ink); text-decoration: underline; }
.btn.danger { border-color: var(--missing); color: var(--missing); }
.btn[disabled], .btn[aria-busy="true"] { opacity: .55; cursor: progress; }
.btn.small { min-height: 38px; padding: 0 14px; font-size: .9rem; }
.btn.block { width: 100%; }
.btn.apple { background: #000; color: #fff; border-color: #000; }
.btn.google { background: var(--surface); }
.btn svg { width: 18px; height: 18px; flex: none; }

.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > label, .field > .label { font-weight: 700; font-size: .95rem; }
.field .hint { font-size: .85rem; color: var(--ink-3); }
.field .err { font-size: .88rem; color: var(--missing); font-weight: 700; }
input, select, textarea {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--rule-strong); border-radius: var(--r-s);
  padding: 10px 12px; min-height: 46px; width: 100%;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: 3px solid var(--brand-soft); outline-offset: 0; }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--missing); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.check input { width: 20px; height: 20px; min-height: 0; margin-top: 3px; flex: none; accent-color: var(--brand); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 18px; }
@media (max-width: 720px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
fieldset { border: 0; padding: 0; margin: 0 0 24px; }
legend { font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; padding: 0; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--rule-strong); border-radius: 999px; padding: 7px 15px; cursor: pointer; background: var(--surface); font-weight: 700; }
.chip input { width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: var(--brand); }
.chip:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }

/* ---------- Notices ---------- */
.notice { border: 1px solid var(--rule); border-left: 5px solid var(--brand); background: var(--surface); padding: 12px 16px; border-radius: var(--r-s); margin: 0 0 18px; }
.notice.warn { border-left-color: var(--verify); }
.notice.error { border-left-color: var(--missing); }
.notice.ok { border-left-color: var(--met); }
.notice p:last-child { margin: 0; }
.toast-region { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 8px; z-index: 60; max-width: min(420px, calc(100vw - 32px)); }
.toast { background: var(--navy); color: var(--on-navy); padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow-lift); font-size: .95rem; }
.toast.error { background: var(--missing); color: #fff; }

/* ---------- Status marks: shape + colour, never colour alone ---------- */
.mark { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; font-weight: 700; white-space: nowrap; }
.mark::before { content: ""; width: 14px; height: 14px; flex: none; display: inline-block; }
.mark.met { color: var(--met); }
.mark.met::before { background: currentColor; border-radius: 50%; }
.mark.in_progress { color: var(--progress); }
.mark.in_progress::before { border: 2px solid currentColor; border-radius: 50%; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.mark.missing { color: var(--missing); }
.mark.missing::before { border: 2.5px solid currentColor; border-radius: 50%; }
.mark.needs_verification { color: var(--verify); }
.mark.needs_verification::before { width: 0; height: 0; border-left: 7.5px solid transparent; border-right: 7.5px solid transparent; border-bottom: 13px solid currentColor; }
.mark.unknown, .mark.unresearched { color: var(--unknown); }
.mark.unknown::before, .mark.unresearched::before { border: 2px dashed currentColor; border-radius: 3px; width: 12px; height: 12px; }
.mark.info, .mark.not_applicable { color: var(--info); }
.mark.info::before, .mark.not_applicable::before { height: 3px; width: 12px; background: currentColor; border-radius: 2px; }
.mark.icon-only { font-size: 0; gap: 0; }
.mark.icon-only:not(.info):not(.not_applicable)::before { width: 16px; height: 16px; }
.mark.icon-only.info::before, .mark.icon-only.not_applicable::before { width: 16px; height: 4px; }
.mark.needs_verification.icon-only::before { width: 0; height: 0; border-left-width: 8.5px; border-right-width: 8.5px; border-bottom-width: 15px; }

/* ---------- Site header ---------- */
.site-head { border-bottom: 1px solid var(--rule); background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); position: sticky; top: 0; z-index: 20; }
.site-head .wrap { display: flex; align-items: center; gap: 22px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 1.35rem/1 var(--f-display); letter-spacing: -0.03em; }
.brand svg { width: 30px; height: 30px; }
.site-nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.site-nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 700; }
.site-nav a:not(.btn):hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 780px) { .site-nav .hide-sm { display: none; } .site-head .wrap { gap: 10px; } .site-nav { gap: 12px; } }

/* ---------- Landing: navy graph-paper hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--on-navy);
  background:
    linear-gradient(rgba(181, 189, 227, .09) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(181, 189, 227, .09) 1px, transparent 1px) 0 0 / 28px 28px,
    radial-gradient(1100px 520px at 85% 10%, #2b3a8f 0%, transparent 60%),
    var(--navy);
  padding: 76px 0 112px;
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 56px; align-items: center; position: relative; }
.hero h1 { color: #fff; max-width: 13ch; }
.hero .tagline { font: 700 1.3rem/1.35 var(--f-display); color: var(--highlight); margin-bottom: 22px; letter-spacing: -0.01em; }
.hero .lede { font-size: 1.1rem; color: var(--on-navy-2); }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero .proof { margin-top: 26px; font-size: .92rem; color: var(--on-navy-2); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero .proof b { color: #fff; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; gap: 40px; } .hero { padding: 44px 0 96px; } }

.matrix-card { background: var(--surface); color: var(--ink); border: 1px solid var(--rule); border-radius: var(--r-l); box-shadow: var(--shadow); overflow: hidden; }
.hero .matrix-card { box-shadow: var(--shadow-lift); border-color: transparent; }
.matrix-card .cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--rule); }
.matrix-card .cap strong { font-family: var(--f-display); font-size: 1.05rem; }
.mini-matrix { width: 100%; border-collapse: collapse; font-size: .92rem; }
.mini-matrix th, .mini-matrix td { padding: 11px 8px; text-align: center; border-bottom: 1px solid var(--rule); }
.mini-matrix th:first-child, .mini-matrix td:first-child { text-align: left; padding-left: 20px; }
.mini-matrix thead th { font-size: .8rem; color: var(--ink-3); font-weight: 700; }
.mini-matrix tbody tr:last-child td, .mini-matrix tbody tr:last-child th { border-bottom: 0; }
.mini-matrix button.cell { background: none; border: 0; padding: 7px; border-radius: 8px; cursor: pointer; }
.mini-matrix button.cell:hover { background: var(--brand-soft); }
.mini-matrix button.cell[aria-pressed="true"] { background: var(--highlight); }
.explain-strip { padding: 16px 20px; border-top: 1px solid var(--rule); background: var(--paper); font-size: .93rem; min-height: 100px; }
.explain-strip p { margin: 4px 0 0; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 12px 20px; border-top: 1px solid var(--rule); }
/* The one orchestrated moment: marks ink in, row by row, on first load. */
@media (prefers-reduced-motion: no-preference) {
  .hero .mini-matrix .mark { animation: ink-in .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 28ms + 150ms); }
  @keyframes ink-in { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
}

/* Binder tabs: the four professions, overlapping the hero's lower edge */
.tabs-band { margin-top: -62px; position: relative; z-index: 2; }
.professions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.professions a {
  --tab: var(--brand);
  display: block; padding: 20px 20px 18px; color: var(--ink); text-decoration: none; background: var(--surface);
  border-radius: var(--r-m) var(--r-m) var(--r-s) var(--r-s); border-top: 8px solid var(--tab); box-shadow: var(--shadow);
  transition: transform .15s ease;
}
.professions a:hover { transform: translateY(-3px); }
.professions a.MD { --tab: var(--tab-md); }
.professions a.DDS { --tab: var(--tab-dds); }
.professions a.DVM { --tab: var(--tab-dvm); }
.professions a.OD { --tab: var(--tab-od); }
.professions b { display: block; font: 800 1.7rem/1 var(--f-display); letter-spacing: -0.03em; color: var(--tab); margin-bottom: 6px; }
.professions .count { display: block; margin-top: 10px; font-size: .88rem; color: var(--ink-3); }
@media (max-width: 820px) { .professions { grid-template-columns: 1fr 1fr; } .tabs-band { margin-top: -56px; } }

.band { padding: 72px 0; }
.band + .band { border-top: 1px solid var(--rule); }
.band.tint { background: var(--surface); }
.section-lede { font-size: 1.1rem; color: var(--ink-2); max-width: 60ch; }
.flow { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.flow li { padding: 22px 20px; position: relative; counter-increment: step; background: var(--paper); border-radius: var(--r-m); border: 1px solid var(--rule); }
.flow li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--navy); color: var(--highlight); font: 800 1.1rem/1 var(--f-display); margin-bottom: 16px; }
.flow h3 { font-size: 1.1rem; }
.flow p { color: var(--ink-2); font-size: .96rem; margin: 0; }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; } }

.evidence { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .evidence { grid-template-columns: 1fr; } }
.req-card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-m); padding: 20px 22px; }
.evidence .req-card { box-shadow: var(--shadow); border-left: 6px solid var(--verify); }
.req-card dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 12px 0 0; font-size: .93rem; }
.req-card dt { color: var(--ink-3); font-weight: 700; }
.req-card dd { margin: 0; }
.coverage { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 22px 0; }
.coverage div { min-width: 140px; color: var(--ink-2); }
.coverage b { display: block; font: 800 2.6rem/1 var(--f-display); letter-spacing: -0.03em; color: var(--ink); margin-bottom: 4px; }

.cta-band { background: var(--navy); color: var(--on-navy); border-radius: var(--r-l); padding: 44px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { color: var(--on-navy-2); margin: 0; }

.site-foot { border-top: 1px solid var(--rule); padding: 40px 0 52px; color: var(--ink-3); font-size: .9rem; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 14px; }
.site-foot a { color: var(--ink-2); font-weight: 700; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: 1fr 1.1fr; gap: 22px; align-items: stretch; margin-top: 28px; }
@media (max-width: 820px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-l); padding: 28px; display: flex; flex-direction: column; gap: 6px; }
.plan.plus { background: var(--navy); color: var(--on-navy); border-color: var(--navy); box-shadow: var(--shadow-lift); }
.plan.plus h2, .plan.plus .price b { color: #fff; }
.plan.plus .muted, .plan.plus li { color: var(--on-navy-2); }
.plan h2 { margin-bottom: 2px; }
.plan .price { display: flex; align-items: baseline; gap: 8px; margin: 8px 0 4px; }
.plan .price b { font: 800 3rem/1 var(--f-display); letter-spacing: -0.04em; }
.plan ul { padding-left: 20px; margin: 14px 0 22px; }
.plan li { margin-bottom: 8px; }
.plan .actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; }
.interval { display: inline-flex; background: rgba(255,255,255,.1); border-radius: 999px; padding: 4px; gap: 4px; margin: 6px 0 4px; }
.interval button { border: 0; background: transparent; color: var(--on-navy-2); font: 700 .9rem/1 var(--f-body); padding: 9px 14px; border-radius: 999px; cursor: pointer; min-height: 36px; }
.interval button[aria-pressed="true"] { background: var(--highlight); color: var(--highlight-ink); }

/* ---------- Auth pages ---------- */
.auth { max-width: 470px; margin: 48px auto 80px; padding: 0 20px; }
.auth .panel { border-radius: var(--r-l); padding: 30px; box-shadow: var(--shadow); border-top: 6px solid var(--brand); }
.auth h1 { font-size: 2.2rem; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: .88rem; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--rule); }
.oauth-buttons { display: grid; gap: 10px; }

/* ---------- App shell ---------- */
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.side { padding: 22px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 22px; background: var(--navy); color: var(--on-navy); }
.side .brand { color: #fff; padding: 0 8px; }
.side nav { display: grid; gap: 3px; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--on-navy-2); text-decoration: none; font-weight: 700; }
.side nav a:hover { background: var(--navy-2); color: #fff; }
.side nav a[aria-current="page"] { background: var(--navy-2); color: #fff; box-shadow: inset 4px 0 0 var(--highlight); }
.side nav a .pill { margin-left: auto; font-size: .72rem; background: var(--highlight); color: var(--highlight-ink); border-radius: 999px; padding: 2px 8px; }
.side .who { margin-top: auto; font-size: .88rem; color: var(--on-navy-2); border-top: 1px solid var(--navy-2); padding-top: 14px; overflow-wrap: anywhere; }
.side .who a, .side .who button { color: #fff; }
.side .plan-chip { display: inline-block; margin-top: 6px; font-size: .78rem; font-weight: 700; border-radius: 999px; padding: 2px 10px; background: var(--navy-2); color: var(--on-navy); }
.side .plan-chip.plus { background: var(--highlight); color: var(--highlight-ink); }
.main { padding: 32px 40px 80px; min-width: 0; }
.main > header { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.main > header h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: 0; }
.mobile-bar { display: none; }
@media (max-width: 880px) {
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  .mobile-bar { display: flex; position: sticky; top: 0; z-index: 30; background: var(--navy); padding: 10px 16px; align-items: center; gap: 10px; }
  .mobile-bar select { margin-left: auto; width: auto; min-width: 150px; min-height: 40px; }
  .main { padding: 22px 16px 80px; }
}

.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-m); padding: 24px; box-shadow: 0 1px 2px rgba(19, 26, 51, .04); }
.stack > * + * { margin-top: 20px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1080px) { .two-col { grid-template-columns: 1fr; } }

.next-list { list-style: none; margin: 0; padding: 0; counter-reset: next; }
.next-list li { display: grid; grid-template-columns: 38px 1fr; gap: 4px 14px; padding: 16px 0; border-top: 1px solid var(--rule); counter-increment: next; }
.next-list li:first-child { border-top: 0; padding-top: 4px; }
.next-list li::before { content: counter(next); grid-row: span 2; width: 34px; height: 34px; border-radius: 10px; background: var(--navy); color: var(--highlight); display: grid; place-items: center; font: 800 .95rem/1 var(--f-display); }
.next-list b { font-family: var(--f-display); font-size: 1.08rem; }
.next-list span { color: var(--ink-2); font-size: .94rem; }

.journey { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.journey li { display: flex; gap: 10px; align-items: center; padding: 8px 0; }
.journey li a { color: var(--ink); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--r-m); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: .93rem; }
table.data th, table.data td { padding: 12px 14px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
table.data thead th { font-size: .82rem; color: var(--ink-3); font-weight: 700; background: var(--paper); position: sticky; top: 0; }
table.data tbody tr:last-child td, table.data tbody tr:last-child th { border-bottom: 0; }
table.data tbody tr:hover { background: color-mix(in srgb, var(--brand-soft) 45%, transparent); }
table.data td.actions { white-space: nowrap; text-align: right; }
.prof-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: 0; }
.prof-dot.MD { background: var(--tab-md); } .prof-dot.DDS { background: var(--tab-dds); } .prof-dot.DVM { background: var(--tab-dvm); } .prof-dot.OD { background: var(--tab-od); }

/* Requirement matrix */
.matrix th.prog { min-width: 210px; }
.matrix td { text-align: center; }
.matrix td:first-child, .matrix th:first-child { text-align: left; }
.matrix button.cell { background: none; border: 1.5px solid transparent; border-radius: 10px; padding: 8px; cursor: pointer; min-width: 44px; min-height: 42px; }
.matrix button.cell:hover { border-color: var(--rule-strong); }
.matrix button.cell[aria-expanded="true"] { border-color: var(--ink); background: var(--highlight); }
.prog-cards { display: none; }
@media (max-width: 880px) {
  .matrix-desktop { display: none; }
  .prog-cards { display: grid; gap: 14px; }
}
.prog-card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-m); padding: 16px; }
.prog-card .cells { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.prog-card .cells button { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-s); padding: 10px; font: inherit; color: var(--ink); cursor: pointer; text-align: left; min-height: 44px; }

.detail { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--r-m); padding: 22px; margin-top: 18px; box-shadow: var(--shadow); }
.detail .item { padding: 16px 0; border-top: 1px solid var(--rule); }
.detail .item:first-of-type { border-top: 0; }
.detail .item h4 { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 1.05rem; margin-bottom: 6px; }
.detail dl { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; font-size: .92rem; margin: 10px 0 0; }
.detail dt { color: var(--ink-3); font-weight: 700; }
.detail dd { margin: 0; }
.detail ul { margin: 0; padding-left: 18px; }
@media (max-width: 600px) { .detail dl { grid-template-columns: 1fr; } .detail dt { margin-top: 6px; } }

.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--rule-strong); color: var(--ink-2); background: var(--paper); white-space: nowrap; }
.badge.reviewed { border-color: var(--met); color: var(--met); }
.badge.partial { border-color: var(--verify); color: var(--verify); }
.badge.plus { background: var(--highlight); border-color: var(--highlight); color: var(--highlight-ink); }

.filters { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 18px; align-items: end; }
.filters .field { margin: 0; min-width: 160px; }
.empty { text-align: left; padding: 30px; border: 1.5px dashed var(--rule-strong); border-radius: var(--r-m); background: var(--surface); }
.empty h3 { margin-bottom: 6px; }
.loading { padding: 40px 0; color: var(--ink-3); }
.loading::before { content: ""; display: inline-block; width: 16px; height: 16px; border: 2px solid var(--rule-strong); border-top-color: var(--brand); border-radius: 50%; margin-right: 10px; vertical-align: -3px; animation: spin .8s linear infinite; }
.hero .loading { color: var(--ink-3); padding: 40px 20px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .loading::before { animation: none; } * { scroll-behavior: auto !important; transition: none !important; } }

dialog { border: 1px solid var(--rule); border-radius: var(--r-m); padding: 0; width: min(680px, calc(100vw - 24px)); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lift); }
dialog::backdrop { background: rgba(10, 16, 41, .55); }
dialog form { padding: 24px; max-height: 85vh; overflow: auto; }
dialog .row-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; position: sticky; bottom: -24px; background: var(--surface); padding: 12px 0 0; }

.save-bar { position: sticky; bottom: 0; background: var(--paper); border-top: 1px solid var(--rule); padding: 12px 0; display: flex; gap: 12px; align-items: center; justify-content: flex-end; margin-top: 10px; }
.save-bar .state { margin-right: auto; font-size: .92rem; color: var(--ink-3); }
.save-bar .state.dirty { color: var(--verify); font-weight: 700; }
.offline-banner { background: var(--verify); color: #fff; text-align: center; padding: 8px 12px; font-weight: 700; font-size: .92rem; }
.demo-banner { background: var(--highlight); color: var(--highlight-ink); padding: 11px 0; font-size: .95rem; }
.demo-banner a { color: var(--highlight-ink); font-weight: 700; }
.prose { max-width: 76ch; }
.prose h2 { margin-top: 1.6em; }
.prose li { margin-bottom: .4em; }
.report { margin-top: 10px; }
.band-gap { margin-top: 44px; }
.prose .req-card { margin-bottom: 12px; }
.filters .grow { flex: 1 1 260px; }
.req-card h3 { margin-top: 8px; }
figure.matrix-card { margin: 0; }
.mini-wrap { overflow-x: auto; }
[tabindex="-1"]:focus { outline: none; }
.site-nav a:not(.btn) { white-space: nowrap; }
.page-head { padding: 52px 0 8px; }
.prog-head { border-top: 8px solid var(--tab, var(--brand)); background: var(--surface); border-radius: var(--r-m); padding: 24px; margin: 8px 0 24px; box-shadow: var(--shadow); }
.prog-head.MD { --tab: var(--tab-md); } .prog-head.DDS { --tab: var(--tab-dds); } .prog-head.DVM { --tab: var(--tab-dvm); } .prog-head.OD { --tab: var(--tab-od); }
.prog-head h1 { font-size: clamp(2rem, 4.4vw, 3rem); }

/* Plus / scenarios / report */
.upsell { background: var(--navy); color: var(--on-navy); border-radius: var(--r-l); padding: 30px; }
.upsell h2 { color: #fff; }
.upsell p { color: var(--on-navy-2); }
.compare { display: grid; gap: 10px; }
.compare-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 16px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-s); }
.compare-row.head { background: transparent; border: 0; font-size: .82rem; color: var(--ink-3); font-weight: 700; padding-bottom: 0; }
.compare-row .better { color: var(--met); font-weight: 700; }
@media (max-width: 680px) { .compare-row { grid-template-columns: 1fr; gap: 4px; } .compare-row.head { display: none; } }
.added-course { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 14px; border: 1px dashed var(--rule-strong); border-radius: var(--r-s); margin-bottom: 8px; background: var(--paper); }

.print-report { background: var(--surface); padding: 36px; border-radius: var(--r-m); border: 1px solid var(--rule); }
.print-report h2 { font-size: 1.4rem; margin-top: 1.4em; }
.print-report h3 { font-size: 1.1rem; margin-top: 1.2em; }
.print-report table.data { font-size: .85rem; }
.print-only { display: none; }
@media print {
  .side, .mobile-bar, .site-head, .site-foot, .no-print, .toast-region { display: none !important; }
  .app { display: block; }
  .main { padding: 0; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .print-report { border: 0; padding: 0; }
  .print-only { display: block; }
  a { color: #000; }
  table.data thead th { position: static; }
  .item, tr { break-inside: avoid; }
}

@media (max-width: 520px) {
  .site-nav .hide-xs { display: none; }
  .mini-matrix .opt-col { display: none; }
  .cta-band { padding: 28px; }
}

/* Refinements */
.main .panel h2, .main .upsell h2 { font-size: 1.45rem; letter-spacing: -0.02em; }
.main .print-report h2 { font-size: 1.4rem; }
.interval { align-self: flex-start; }
.side .plan-chip { text-decoration: none; }
.side nav a { line-height: 1.25; }
