/* LetterReady. Direction: "the product performs" (taste-skill v2).
   Idea: nine UC campuses' admitted-GPA ranges become one ruler your GPA slides across.
   Palette "sheet and biro": white sheet, near-black ink, one biro blue for you and the action.
   Type: Schibsted Grotesk only. Layout: 12-col frame, statement/fragment rows on a 5/7 split. */
:root {
  --bg: #ffffff;
  --surface: #f2f3f5;
  --ink: #111317;
  --muted: #565b63;
  --accent: #1a4be0;
  --accent-ink: #ffffff;
  --accent-hover: #1238b4;
  --field: #111317;
  --field-ink: #f2f3f5;
  --field-muted: #a9aeb6;
  --field-surface: #1d2026;
  --field-accent: #9db1ff;
  --ui-line: #d7dbe1;
  --band: #d3d8df;
  --band-in: #8f99a8;
  --t-tag: #0e6a3e;
  --t-safe: #2a8553;
  --t-match: #7a5a00;
  --t-reach: #b0461a;
  --t-high: #a01d3b;
  --t-na: #6b7078;
  --font: "Schibsted Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;
  --s-hero: clamp(42px, 5.9vw, 86px);
  --s-h2: clamp(34px, 4.3vw, 60px);
  --s-body: 18px;
  --s-small: 14px;
  --gap-sec: 160px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1013; --surface: #181b20; --ink: #eceef1; --muted: #a0a6ae;
    --accent: #7d97ff; --accent-ink: #0b0d12; --accent-hover: #a2b4ff;
    --field: #eceef1; --field-ink: #0e1013; --field-muted: #4c5159; --field-surface: #d9dce1; --field-accent: #1a4be0;
    --ui-line: #2c3139; --band: #2b3038; --band-in: #5b6575;
    --t-tag: #4fc389; --t-safe: #6dc795; --t-match: #d8b24a; --t-reach: #f08b5c; --t-high: #f27a8f; --t-na: #8c929b;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1013; --surface: #181b20; --ink: #eceef1; --muted: #a0a6ae;
  --accent: #7d97ff; --accent-ink: #0b0d12; --accent-hover: #a2b4ff;
  --field: #eceef1; --field-ink: #0e1013; --field-muted: #4c5159; --field-surface: #d9dce1; --field-accent: #1a4be0;
  --ui-line: #2c3139; --band: #2b3038; --band-in: #5b6575;
  --t-tag: #4fc389; --t-safe: #6dc795; --t-match: #d8b24a; --t-reach: #f08b5c; --t-high: #f27a8f; --t-na: #8c929b;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--s-body)/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.frame {
  max-width: 1280px; margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* ---- bar ---- */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--bg); }
.barin { display: flex; align-items: center; gap: 32px; padding-block: 14px; }
.wordmark { font-weight: 800; font-size: 20px; letter-spacing: -0.03em; text-decoration: none; }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }

/* ---- buttons: square corners, flat fill, decided once ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 17px/1 var(--font); letter-spacing: -0.01em;
  background: var(--accent); color: var(--accent-ink);
  border: 0; border-radius: 0; padding: 17px 26px;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, transform .1s ease;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn-sm { font-size: 15px; padding: 11px 16px; }
.btn-ghost { background: var(--ink); color: var(--bg); }
.btn-ghost:hover { background: var(--muted); }
.textbtn { font: 500 15px/1 var(--font); background: none; border: 0; padding: 6px 0; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---- hero ---- */
.hero { padding-top: 40px; }
.herotext { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 20px 48px; align-items: end; }
.hero h1 { font-size: var(--s-hero); font-weight: 800; letter-spacing: -0.045em; line-height: .92; max-width: 16ch; }
.herosub { display: flex; flex-direction: column; gap: 12px; padding-bottom: 6px; }
.lede { font-size: 19px; line-height: 1.45; max-width: 30em; }
.trust { font-size: var(--s-small); color: var(--muted); max-width: 30em; }

/* ---- the instrument (data-ui: interface conventions apply inside) ---- */
.instrument {
  margin-top: 32px; background: var(--surface);
  display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); grid-template-rows: auto 1fr;
  grid-template-areas: "ctrl ruler" "more ruler"; gap: 22px 44px;
  padding: 30px 32px; border-radius: 4px;
}
.controls { grid-area: ctrl; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.moreblock { grid-area: more; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.clabel { display: block; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 7px; }
.gpabig { display: block; font-size: 76px; font-weight: 800; letter-spacing: -0.05em; line-height: .9; color: var(--accent); margin: 2px 0 12px; }
#gpa { width: 100%; accent-color: var(--accent); height: 28px; margin: 0; }
.gpaends { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.cfield select {
  width: 100%; font: 500 16px/1.2 var(--font); color: var(--ink);
  background: var(--bg); border: 1px solid var(--ui-line); border-radius: 3px; padding: 11px 12px;
}
.seg { border: 0; padding: 0; margin: 0; min-width: 0; }
.segs { display: flex; background: var(--bg); border: 1px solid var(--ui-line); border-radius: 3px; padding: 3px; gap: 3px; }
.segs label { flex: 1; position: relative; }
.segs input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segs span { display: block; text-align: center; font-size: 14px; font-weight: 500; padding: 8px 4px; border-radius: 2px; color: var(--muted); }
.segs input:checked + span { background: var(--ink); color: var(--bg); }
.segs input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
.more summary { cursor: pointer; font-weight: 600; font-size: 15px; list-style: none; display: flex; align-items: center; gap: 8px; }
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: "+"; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 2px; background: var(--ink); color: var(--bg); font-size: 16px; line-height: 1; }
.more[open] summary::before { content: "\2212"; }
.morefields { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.acc { font-size: 13px; color: var(--muted); }
.acc.full { color: var(--t-safe); font-weight: 600; }

.ruler { grid-area: ruler; min-width: 0; display: flex; flex-direction: column; }
.summary { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.35; margin-bottom: 22px; min-height: 2.7em; }
.summary b { color: var(--accent); }
.rhead, .rrow { display: grid; grid-template-columns: 8.2rem minmax(0, 1fr) 9.4rem; column-gap: 18px; align-items: center; }
.rhead { font-size: 12.5px; color: var(--muted); padding-bottom: 6px; }
.rhodds { text-align: right; }
.axis { position: relative; height: 18px; }
.axis span { position: absolute; transform: translateX(-50%); }
.axis span:first-child { transform: none; }
.axis span:last-child { transform: translateX(-100%); }
.rows { list-style: none; margin: 0; padding: 0; }
.rrow { min-height: 50px; }
.rrow + .rrow .rtrack { border-top: 1px solid color-mix(in srgb, var(--ui-line) 70%, transparent); }
.rname { font: 600 15.5px/1.2 var(--font); color: var(--ink); background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
.rname:hover { color: var(--accent); }
.rname[aria-expanded="true"] { color: var(--accent); }
.rtrack { position: relative; align-self: stretch; }
.rtrack .band { position: absolute; top: 50%; height: 12px; transform: translateY(-50%); background: var(--band); border-radius: 2px; transition: background-color .2s ease; }
.rrow.inside .band { background: var(--band-in); }
.rtrack .tagm { position: absolute; top: 50%; width: 3px; height: 22px; transform: translate(-50%, -50%); background: var(--t-tag); border-radius: 1px; }
.rtrack .you { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--accent); transition: left .22s ease; }
.rodds { text-align: right; line-height: 1.15; }
.rodds b { display: block; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.rodds small { font-size: 13px; font-weight: 600; }
.rrow[data-t="tag"] small { color: var(--t-tag); }
.rrow[data-t="safe"] small { color: var(--t-safe); }
.rrow[data-t="match"] small { color: var(--t-match); }
.rrow[data-t="reach"] small { color: var(--t-reach); }
.rrow[data-t="high"] small { color: var(--t-high); }
.rrow[data-t="na"] small { color: var(--t-na); }
.rdetail { grid-column: 1 / -1; font-size: 14px; color: var(--muted); padding: 2px 0 14px; }
.rdetail ul { margin: 0 0 6px; padding-left: 18px; color: var(--ink); }
.rdetail li { margin: 3px 0; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; color: var(--muted); margin-top: 14px; }
.lg { display: inline-block; vertical-align: middle; margin-right: -6px; }
.lg.band { width: 22px; height: 10px; background: var(--band-in); border-radius: 2px; }
.lg.you { width: 2px; height: 16px; background: var(--accent); }
.lg.tagmark { width: 3px; height: 16px; background: var(--t-tag); }
#copyres { align-self: flex-start; margin-top: 10px; }
.problem { font-size: 15px; color: var(--t-high); font-weight: 600; margin-bottom: 12px; }

/* ---- statement / fragment rows ---- */
.sec { padding-top: var(--gap-sec); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.split.flip .stmt { order: 2; }
.split.flip .frag { order: 1; }
.stmt { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.stmt h2, .faq h2 { font-size: var(--s-h2); font-weight: 800; letter-spacing: -0.04em; line-height: .95; max-width: 13ch; margin-bottom: 8px; }
.stmt p { max-width: 34em; }

.frag { margin: 0; background: var(--surface); border-radius: 4px; padding: 28px; min-width: 0; }
.frag figcaption { font-size: 15px; font-weight: 600; margin-bottom: 18px; }
.fsrc { font-size: 13px; color: var(--muted); margin-top: 16px; }

.mrows { list-style: none; margin: 0; padding: 0; }
.mrows li { display: grid; grid-template-columns: 11.5rem minmax(0, 1fr) 3rem; gap: 14px; align-items: center; padding: 7px 0; font-size: 15px; }
.mn { font-weight: 500; }
.mb { height: 14px; background: color-mix(in srgb, var(--band) 60%, transparent); border-radius: 2px; overflow: hidden; }
.mb i { display: block; height: 100%; background: var(--band-in); transform-origin: left; }
.mv { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.mrows li.mine .mn, .mrows li.mine .mv { color: var(--accent); }
.mrows li.mine .mb i { background: var(--accent); }

.tagcheck table, .dtable { width: 100%; border-collapse: collapse; font-size: 15px; }
.tagcheck th, .dtable th { text-align: left; font-size: 13px; font-weight: 600; color: var(--muted); padding: 0 10px 8px 0; }
.tagcheck td, .dtable td { padding: 12px 10px 12px 0; border-top: 1px solid var(--ui-line); vertical-align: top; }
.num { text-align: right; white-space: nowrap; }
.tagcheck td.num { font-weight: 700; padding-right: 22px; }
.tagcheck td:first-child { font-weight: 600; white-space: nowrap; }
.st { font-weight: 600; }
.st.ok { color: var(--t-tag); }
.st.close { color: var(--t-match); }
.st.no { color: var(--t-high); }
.st.off { color: var(--t-na); }
.st small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; margin-top: 2px; }

/* ---- full colour field ---- */
.field { margin-top: var(--gap-sec); background: var(--field); color: var(--field-ink); }
.fieldin { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; padding-block: 120px; align-items: start; }
.field .stmt p { color: var(--field-muted); }
.field .bigline { color: var(--field-ink) !important; font-size: 30px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.bigline b { color: var(--field-accent); }
.cal { list-style: none; margin: 0; padding: 0; background: var(--field-surface); border-radius: 4px; }
.cal li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 2px 20px; padding: 18px 24px; position: relative; }
.cal li + li { border-top: 1px solid color-mix(in srgb, var(--field-muted) 35%, transparent); }
.cd { grid-row: span 2; font-weight: 700; font-size: 17px; }
.ct { font-weight: 600; font-size: 17px; }
.cx { font-size: 14px; color: var(--field-muted); }
.cal li.past { opacity: .5; }
.cal li.now { background: var(--accent); color: var(--accent-ink); border-radius: 4px; }
.cal li.now .cx { color: var(--accent-ink); opacity: .85; }
.cal li.now + li { border-top-color: transparent; }

/* ---- report ---- */
.report { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 64px; align-items: start; }
.inc { margin: 4px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; max-width: 34em; }
.buyrow { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 10px; }
.price { font-weight: 600; }
.fine { font-size: var(--s-small); color: var(--muted); }
.capture { margin-top: 28px; }
.caprow { display: flex; gap: 10px; }
.caprow input { flex: 1; min-width: 0; font: 500 16px/1.2 var(--font); color: var(--ink); background: var(--bg); border: 1px solid var(--ui-line); border-radius: 0; padding: 14px; }
.caprow .btn { font-size: 15px; padding: 14px 18px; }

.sheetdoc { background: var(--bg); outline: 12px solid var(--surface); border-radius: 0; padding: 34px 32px 26px; font-size: 15px; }
.dochead { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); padding-bottom: 18px; border-bottom: 2px solid var(--ink); margin-bottom: 22px; }
.dochead strong { color: var(--ink); }
.dtitle { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 10px; }
.dtable { margin-bottom: 26px; font-size: 14.5px; }
.dsteps { margin: 0 0 18px; padding-left: 20px; display: flex; flex-direction: column; gap: 7px; }
.dfoot { font-size: 13px; color: var(--muted); }

/* ---- questions ---- */
.qa { margin: 40px 0 0; display: flex; flex-direction: column; }
.qa div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8px 64px; padding: 22px 0; }
.qa dt { font-weight: 700; font-size: 20px; letter-spacing: -0.015em; line-height: 1.3; }
.qa dd { margin: 0; max-width: 36em; }
.qa a { color: var(--accent); font-weight: 600; }

/* ---- footer ---- */
.foot { margin-top: var(--gap-sec); background: var(--surface); padding-block: 72px 56px; }
.bigmark { font-size: clamp(54px, 12.6vw, 186px); font-weight: 800; letter-spacing: -0.055em; line-height: .82; margin: 0 0 40px -0.04em; }
.footcols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 64px; font-size: var(--s-small); color: var(--muted); }
.srcs a { color: var(--ink); }

/* ---- subpages (manual evaluation, thanks) ---- */
.page { padding-block: 64px 0; }
.page h1 { font-size: clamp(38px, 5vw, 68px); font-weight: 800; letter-spacing: -0.045em; line-height: .95; max-width: 14ch; margin-bottom: 18px; }
.page .lede { max-width: 34em; margin-bottom: 10px; }
.form { margin-top: 40px; background: var(--surface); padding: 32px; max-width: 760px; display: flex; flex-direction: column; gap: 18px; border-radius: 4px; }
.form label { display: block; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 7px; }
.form input, .form textarea { width: 100%; font: 500 16px/1.4 var(--font); color: var(--ink); background: var(--bg); border: 1px solid var(--ui-line); border-radius: 3px; padding: 12px; }
.form .btn { align-self: flex-start; }

/* ---- responsive ---- */
@media (max-width: 1040px) {
  .instrument { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "ctrl" "ruler" "more"; gap: 30px; }
  .controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; }
  .gpabox { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  :root { --gap-sec: 112px; }
  .nav { display: none; }
  .barin { justify-content: space-between; }
  .herotext, .split, .fieldin, .report, .footcols, .qa div { grid-template-columns: minmax(0, 1fr); }
  .split.flip .stmt, .split.flip .frag { order: 0; }
  .split, .report, .fieldin { gap: 36px; }
  .fieldin { padding-block: 88px; }
}
@media (max-width: 560px) {
  .hero { padding-top: 28px; }
  .lede { font-size: 18px; }
  .trust { font-size: 13px; }
  .controls { gap: 16px; }
  .gpabig { margin-bottom: 6px; }
  .instrument { padding: 20px 16px; margin-inline: -4px; }
  .controls { grid-template-columns: minmax(0, 1fr); }
  .gpabig { font-size: 64px; }
  .rhead, .rrow { grid-template-columns: 5.6rem minmax(0, 1fr) 5.9rem; column-gap: 10px; }
  .rname { font-size: 14px; }
  .axis span:nth-child(2), .axis span:nth-child(4) { display: none; }
  .legend { font-size: 12.5px; }
  .rodds b { font-size: 15px; }
  .rodds small { font-size: 11.5px; }
  .summary { font-size: 18px; }
  .frag { padding: 20px 16px; }
  .mrows li { grid-template-columns: 8.6rem minmax(0, 1fr) 2.6rem; gap: 10px; font-size: 14px; }
  .cal li { grid-template-columns: 5.2rem minmax(0, 1fr); padding: 16px; gap: 2px 14px; }
  .sheetdoc { outline-width: 8px; padding: 24px 18px 20px; }
  .caprow { flex-direction: column; }
  .field .bigline { font-size: 25px; }
  .qa dt { font-size: 18px; }
}

/* ---- motion: transform and opacity only, from a visible resting state ---- */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .lede { animation: rise .7s .08s cubic-bezier(.2,.7,.2,1) both; }
  .trust { animation: rise .7s .14s cubic-bezier(.2,.7,.2,1) both; }
  .instrument { animation: rise .8s .2s cubic-bezier(.2,.7,.2,1) both; }
  @supports (animation-timeline: view()) {
    .stmt h2, .faq h2 { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
    .stmt p, .stmt ul, .buyrow { animation: rise linear both; animation-timeline: view(); animation-range: entry 6% entry 52%; }
    .frag, .cal { animation: rise linear both; animation-timeline: view(); animation-range: entry 10% entry 58%; }
    .mb i { animation: grow linear both; animation-timeline: view(); animation-range: entry 20% cover 45%; }
    .qa div { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
    .bigmark { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  }
}
@keyframes rise { from { opacity: .3; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(.15); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ---- problem check ---- */
.checkhead { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 20px 64px; align-items: end; margin-bottom: 36px; }
.checkhead h2 { font-size: var(--s-h2); font-weight: 800; letter-spacing: -0.04em; line-height: .95; max-width: 14ch; }
.checkhead p { max-width: 34em; }
.checkgrid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0; background: var(--surface); border-radius: 4px; }
.qs { list-style: none; margin: 0; padding: 12px 28px; }
.qrow { padding: 16px 0; display: grid; gap: 10px; }
.qrow + .qrow { border-top: 1px solid var(--ui-line); }
.qq { font-weight: 500; font-size: 16.5px; line-height: 1.4; }
.qopts { display: flex; gap: 6px; flex-wrap: wrap; }
.qopts label { position: relative; }
.qopts input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.qopts span { display: block; font-size: 14px; font-weight: 600; padding: 8px 16px; border: 1px solid var(--ui-line); border-radius: 3px; background: var(--bg); color: var(--muted); }
.qopts input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.qopts input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.verdictbox { background: var(--bg); margin: 12px; padding: 26px 24px; border-radius: 3px; align-self: start; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 76px); display: flex; flex-direction: column; gap: 16px; }
.vcount { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.vcount.bad { color: var(--t-high); }
.vcount.good { color: var(--t-tag); }
.vlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.vlist li { display: grid; gap: 3px; font-size: 14.5px; }
.vlist strong { font-size: 16px; }
.vlist p { color: var(--muted); }
.sev { font-size: 12.5px; font-weight: 700; color: var(--t-high); }
.vunsure .sev { color: var(--t-match); }
.vcta { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; padding-top: 6px; }
.vcta p { font-size: 15px; }
.check .fsrc { margin-top: 14px; }
.assume { font-size: 13.5px; color: var(--muted); margin-top: 10px; }
.assume a, .dplan a { color: var(--accent); font-weight: 600; }
.dplan { margin-top: 6px; }

/* ---- essays ---- */
.essayhead { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px 64px; align-items: end; margin-bottom: 40px; }
.essayhead h2 { font-size: var(--s-h2); font-weight: 800; letter-spacing: -0.04em; line-height: .95; max-width: 12ch; }
.essaysub { display: flex; flex-direction: column; gap: 14px; }
.essaysub p { max-width: 36em; }
.bigline2 { font-size: 22px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.bigline2 b { color: var(--accent); }
.piq { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 24px; }
.piqreq { background: var(--accent); color: var(--accent-ink); padding: 32px 30px; border-radius: 4px; display: flex; flex-direction: column; gap: 18px; }
.piqtag { font-size: 15px; font-weight: 600; }
.piqreq .piqtag { opacity: .85; }
.piqq { font-size: clamp(22px, 2.3vw, 30px); font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; }
.piqhint { font-size: 15.5px; opacity: .92; }
.piqpick { background: var(--surface); padding: 28px; border-radius: 4px; display: flex; flex-direction: column; gap: 16px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; }
.facts label { position: relative; }
.facts input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.facts span { display: block; font-size: 14px; font-weight: 500; padding: 8px 12px; border: 1px solid var(--ui-line); border-radius: 3px; background: var(--bg); }
.facts input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.facts input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.picks { margin: 4px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.picks li { display: grid; gap: 1px; }
.picks strong { font-size: 17px; }
.picks span { font-size: 14px; color: var(--muted); }
.picks .pempty { list-style: none; margin-left: -22px; color: var(--muted); font-size: 15px; }

/* ---- services ---- */
.svchead { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px 64px; align-items: end; margin-bottom: 36px; }
.svchead h2 { font-size: var(--s-h2); font-weight: 800; letter-spacing: -0.04em; line-height: .95; max-width: 12ch; }
.svchead p { max-width: 36em; }
.svclead { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px 56px; background: var(--surface); padding: 40px; border-radius: 4px; }
.leadtext { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.leadname { font-size: clamp(34px, 3.8vw, 52px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.leadprice { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.per { font-size: 15px; font-weight: 500; color: var(--muted); }
.season { font-weight: 700; color: var(--t-reach); }
.leaddesc { max-width: 32em; }
.orderby { font-size: 15px; font-weight: 600; }
.orderby:empty { display: none; }
.leadtext .btn { margin-top: 8px; }
.leadinc { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; align-self: center; }
.svcrest { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px 32px; }
.svcrest li { padding: 26px 0 4px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.rn { display: flex; align-items: baseline; gap: 14px; }
.rn strong { font-size: 22px; letter-spacing: -0.02em; }
.rp { font-size: 18px; font-weight: 700; color: var(--muted); }
.svcrest p { max-width: 34em; color: var(--muted); }
.plandoc { margin-top: 40px; max-width: 820px; }
.ok2 { color: var(--t-tag); font-weight: 600; }
.no2 { color: var(--t-high); font-weight: 600; }
.services .fine { margin-top: 26px; max-width: 46em; }

@media (max-width: 860px) {
  .checkhead, .essayhead, .svchead, .checkgrid, .piq, .svclead, .svcrest { grid-template-columns: minmax(0, 1fr); }
  .verdictbox { position: static; margin: 0 12px 12px; }
  .svclead { padding: 28px 22px; }
}
@media (max-width: 560px) {
  .qs { padding: 4px 16px; }
  .piqreq, .piqpick { padding: 22px 18px; }
  .vcount { font-size: 20px; }
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .checkhead, .essayhead, .svchead { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 50%; }
    .checkgrid, .piq, .svclead { animation: rise linear both; animation-timeline: view(); animation-range: entry 8% entry 55%; }
  }
}

.btn-inv { background: var(--accent-ink); color: var(--accent); margin-top: auto; align-self: flex-start; }
.btn-inv:hover { background: color-mix(in srgb, var(--accent-ink) 88%, var(--accent)); }

/* ---- major prep (official pathways + ASSIST links) ---- */
.prephead { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px 64px; align-items: end; margin-bottom: 36px; }
.prephead h2 { font-size: var(--s-h2); font-weight: 800; letter-spacing: -0.04em; line-height: .95; max-width: 12ch; }
.prephead p { max-width: 38em; }
.prepgrid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0; background: var(--surface); border-radius: 4px; }
.prepleft { padding: 28px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.prepright { background: var(--bg); margin: 12px; padding: 26px 24px; border-radius: 3px; display: flex; flex-direction: column; gap: 14px; align-self: start; min-width: 0; }
.pathname { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.pathname:empty { display: none; }
.pathlist { list-style: none; margin: 0; padding: 0; }
.pathlist li { border-top: 1px solid var(--ui-line); }
.pathlist li.grp { border-top: 0; font-size: 13px; font-weight: 600; color: var(--muted); padding: 14px 0 4px; }
.pathlist label { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 11px 0; cursor: pointer; }
.pathlist input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); }
.pathlist .pc { font-size: 15.5px; font-weight: 500; line-height: 1.35; }
.pathlist .ps { font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.pathlist .ps.req { color: var(--ink); }
.pathlist input:checked ~ .pc { color: var(--muted); }
.pathempty { color: var(--muted); font-size: 15px; padding: 8px 0; }
.prepcount { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.prepcount b { color: var(--accent); }
.prepcount small { display: block; font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: 4px; }
.pipeline { font-size: 14.5px; }
.pipeline:empty { display: none; }
.asshead { font-size: 16px; font-weight: 700; margin-top: 6px; }
.assnote { font-size: 13.5px; color: var(--muted); }
.asslist { list-style: none; margin: 0; padding: 0; }
.asslist li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-top: 1px solid var(--ui-line); font-size: 15px; }
.asslist a { color: var(--accent); font-weight: 600; text-decoration: none; white-space: nowrap; }
.asslist a:hover { text-decoration: underline; }
.asslist .an { font-weight: 600; }
@media (max-width: 860px) {
  .prephead, .prepgrid { grid-template-columns: minmax(0, 1fr); }
  .prepright { margin: 0 12px 12px; }
}
@media (max-width: 560px) { .prepleft { padding: 20px 16px; } }

/* ---- course matcher ---- */
.paste textarea { width: 100%; font: 500 14.5px/1.5 var(--font); color: var(--ink); background: var(--bg); border: 1px solid var(--ui-line); border-radius: 3px; padding: 11px 12px; resize: vertical; min-height: 112px; }
.pasterow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.pasterow .fine { font-size: 13px; }
.matchsum { font-size: 14px; margin-top: 10px; }
.matchsum:empty { display: none; }
.pm { display: block; font-size: 12.5px; font-weight: 500; color: var(--t-match); margin-top: 3px; text-decoration: none; }
.pm.ok { color: var(--t-tag); }
.closest { margin-top: 14px; }
.closelist { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; }
.closelist li span { color: var(--muted); margin-left: 8px; font-size: 13.5px; }

/* ---- ways to raise your odds ---- */
.levhead { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px 64px; align-items: end; margin-bottom: 36px; }
.levhead h2 { font-size: var(--s-h2); font-weight: 800; letter-spacing: -0.04em; line-height: .95; max-width: 12ch; }
.levhead p { max-width: 38em; }
.levgrid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; }
.levcol { background: var(--surface); border-radius: 4px; padding: 26px 28px; min-width: 0; }
.levh { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.levlist, .scrlist { list-style: none; margin: 0; padding: 0; }
.lev { padding: 16px 0; border-top: 1px solid var(--ui-line); display: flex; flex-direction: column; gap: 5px; }
.levtop { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.levtop a { font-weight: 700; font-size: 16.5px; color: var(--ink); text-decoration: none; }
.levtop a:hover { color: var(--accent); }
.levst { font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.lev.yes .levst { color: var(--t-tag); }
.lev.check .levst { color: var(--t-match); }
.lev.no .levst { color: var(--t-na); }
.lev.no { opacity: .72; }
.levwhy { font-weight: 600; font-size: 15px; }
.lev p { font-size: 14.5px; }
.lev p:not(.levwhy) { color: var(--muted); }
.scrlist li { padding: 14px 0; border-top: 1px solid var(--ui-line); display: grid; gap: 3px; font-size: 14.5px; }
.scrlist strong { font-size: 15.5px; }
.scrlist p { color: var(--muted); }
.scrlist a, .tagwindow { color: var(--accent); }
.scrlist a { font-weight: 600; }
.tagwindow { font-weight: 600; }
@media (max-width: 860px) { .levhead, .levgrid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .levcol { padding: 20px 16px; } .levtop { flex-direction: column; gap: 2px; } }

.levh2 { margin-top: 26px; }
.conds { margin-top: 10px; }
.condh { font-weight: 700; color: var(--field-ink) !important; margin-bottom: 8px; }
.conds ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--field-muted); font-size: 15.5px; }

/* questions as an accordion */
.qa { margin: 36px 0 0; display: flex; flex-direction: column; max-width: 920px; }
.qa details { border-top: 1px solid var(--surface); padding: 0; }
.qa details:last-child { border-bottom: 1px solid var(--surface); }
.qa summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 19px; letter-spacing: -0.015em; line-height: 1.3; padding: 20px 40px 20px 0; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 24px; font-weight: 500; color: var(--muted); }
.qa details[open] summary::after { content: "\2212"; }
.qa details p { margin: 0 0 22px; max-width: 40em; color: var(--ink); }
.qa details a { color: var(--accent); font-weight: 600; }

.faq h2 { max-width: 20ch; }

/* ---- search pages: campuses, TAG, majors, guides ---- */
.nav a[aria-current="page"] { color: var(--ink); }
.doc { padding-top: 28px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--band-in); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.dhead { padding: 40px 0 8px; display: flex; flex-direction: column; gap: 14px; }
.dhead h1 { font-size: clamp(38px, 5vw, 70px); font-weight: 800; letter-spacing: -0.045em; line-height: .95; max-width: 21ch; }
.dhead .lede { max-width: 40em; }
.checked { font-size: var(--s-small); color: var(--muted); }
.dgrid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 72px; align-items: start; margin-top: 24px; }
.dbody { min-width: 0; }
.dsec { padding-top: 64px; scroll-margin-top: 72px; display: flex; flex-direction: column; gap: 16px; }
.dsec h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; max-width: 22ch; margin-bottom: 4px; }
.dsec > p { max-width: 40em; }
.dsec p a, .plist a, .dnote a { color: var(--accent); font-weight: 600; }
.dnote { font-size: 15px; color: var(--muted); }
.plist { margin: 0; padding-left: 1.15em; display: flex; flex-direction: column; gap: 8px; max-width: 42em; }
.pullq { font-size: 21px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.4; max-width: 34em; }

.dside { position: sticky; top: 84px; padding-top: 64px; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.sideh { font-weight: 700; }
.toc { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--ink); text-decoration: underline; }
.sidecta { margin-top: 22px; background: var(--surface); border-radius: 4px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }

.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.dtable td small, .dtable td .st small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.dtable td a { color: var(--accent); font-weight: 600; text-decoration: none; }
.dtable td a:hover { text-decoration: underline; }
.dtable td:first-child { font-weight: 600; }
.dtable.rules td:first-child { width: 34%; }
.dtable.majortable td:first-child, .dtable.hubtable td:first-child { white-space: nowrap; }

.kfacts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; margin: 0; background: var(--bg); }
.kfacts div { background: var(--surface); padding: 18px 18px 16px; display: flex; flex-direction: column-reverse; gap: 4px; border-radius: 2px; }
.kfacts dt { font-size: 13px; color: var(--muted); font-weight: 500; line-height: 1.3; }
.kfacts dd { margin: 0; font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; letter-spacing: -0.035em; line-height: 1; }
.dsec .kfacts + .tablewrap { margin-top: 6px; }

.widget { background: var(--surface); border-radius: 4px; padding: 26px 28px; display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 20px 40px; align-items: start; }
.wctrl { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.wgpa { width: 100%; accent-color: var(--accent); height: 28px; margin: 0; }
.widget .gpabig { font-size: 58px; }
.wout { min-width: 0; }
.wlabel { font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin-bottom: 10px; }
.wlabel.tag, .wl.tag { color: var(--t-tag); }
.wlabel.safe, .wl.safe { color: var(--t-safe); }
.wlabel.match, .wl.match { color: var(--t-match); }
.wlabel.reach, .wl.reach { color: var(--t-reach); }
.wlabel.high, .wl.high { color: var(--t-high); }
.wlabel.na, .wl.na { color: var(--t-na); }
.wband { font-size: 17px; font-weight: 500; max-width: 32em; }
.wband b { color: var(--accent); }
.wnotes { margin: 14px 0 0; padding-left: 1.1em; font-size: 15px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.wtable { width: 100%; border-collapse: collapse; font-size: 15px; }
.wtable th { text-align: left; font-size: 13px; font-weight: 600; color: var(--muted); padding: 0 8px 6px 0; }
.wtable td { padding: 8px 8px 8px 0; border-top: 1px solid var(--ui-line); }
.wtable .wl { font-weight: 700; }
.wtable .num { text-align: right; }
.wfoot { grid-column: 1 / -1; font-size: 13px; color: var(--muted); max-width: 52em; }
.widget textarea { width: 100%; font: 500 14.5px/1.5 var(--font); color: var(--ink); background: var(--bg); border: 1px solid var(--ui-line); border-radius: 3px; padding: 11px 12px; resize: vertical; min-height: 150px; }
.wctrl .btn { align-self: flex-start; }
.wmatch { list-style: none; margin: 12px 0 0; padding: 0; font-size: 15px; }
.wmatch li { padding: 9px 0; border-top: 1px solid var(--ui-line); display: flex; flex-direction: column; gap: 2px; }
.wmatch li span { font-weight: 600; }
.wmatch li small { color: var(--muted); font-size: 13px; }
.wmatch li.ok small { color: var(--t-tag); font-weight: 600; }

.linklist { list-style: none; margin: 0; padding: 0; max-width: 46em; }
.linklist li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--ui-line); }
.linklist li:last-child { border-bottom: 1px solid var(--ui-line); }
.linklist a { color: var(--accent); font-weight: 600; text-decoration: none; }
.linklist a:hover { text-decoration: underline; }
.linklist span { color: var(--muted); font-size: 14px; white-space: nowrap; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-block; background: var(--surface); padding: 9px 14px; border-radius: 2px; font-size: 15px; font-weight: 600; text-decoration: none; }
.chips a:hover { background: var(--ink); color: var(--bg); }
.srclist { margin: 0; padding-left: 1.4em; font-size: 15px; display: flex; flex-direction: column; gap: 6px; color: var(--muted); max-width: 46em; }
.srclist a { color: var(--ink); overflow-wrap: anywhere; }
.guidelist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; max-width: 46em; }
.guidelist li { padding: 18px 0; border-top: 1px solid var(--ui-line); display: flex; flex-direction: column; gap: 4px; }
.guidelist a { font-size: 21px; font-weight: 700; letter-spacing: -0.015em; color: var(--accent); text-decoration: none; }
.guidelist a:hover { text-decoration: underline; }
.guidelist p { color: var(--muted); font-size: 16px; }
.dsec .qa { margin-top: 4px; }

.sitemap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 2fr); gap: 32px 40px; margin-bottom: 48px; font-size: 14px; }
.sitemap ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sitemap .smwide ul { display: block; columns: 2; column-gap: 32px; }
.sitemap .smwide li { margin-bottom: 6px; break-inside: avoid; }
.sitemap a { color: var(--muted); text-decoration: none; }
.sitemap a:hover { color: var(--ink); text-decoration: underline; }
.smh { font-weight: 700; margin-bottom: 10px; }
.smh a { color: var(--ink); }

@media (max-width: 1040px) {
  .dgrid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .dside { position: static; padding-top: 64px; }
  .dside .sideh, .dside .toc { display: none; }
  .sidecta { margin-top: 0; max-width: 520px; }
  .sitemap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .widget { grid-template-columns: minmax(0, 1fr); padding: 22px 18px; }
  .kfacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dsec { padding-top: 52px; }
  .dhead { padding-top: 28px; }
  .dtable.majortable td:first-child, .dtable.hubtable td:first-child { white-space: normal; }
  .linklist li { flex-direction: column; gap: 2px; }
}
@media (max-width: 520px) {
  .sitemap { grid-template-columns: minmax(0, 1fr); }
  .sitemap .smwide ul { columns: 1; }
}
@media (max-width: 560px) {
  .dhead h1 { font-size: 30px; letter-spacing: -0.04em; }
  .page h1 { font-size: 34px; }
}
.page h1 { max-width: 20ch; }
li::marker { font-variant-numeric: normal; }
.wtagline { margin-top: 12px; font-size: 15px; font-weight: 600; color: var(--t-tag); max-width: 34em; }
.wtable td { white-space: nowrap; }
.wtable td:first-child { white-space: normal; }
.dtable.campustable td:nth-child(2) { white-space: nowrap; }
.dtable th.num { text-align: right; }
.dtable td.num { white-space: nowrap; }
