/* The College Major Quiz
   Radius rule: containers 18px, controls 12px, chips fully round.
   One accent (forest green). RIASEC colors are data colors, used only for the six types. */

@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #f3f5f2;
  --surface: #fbfcfa;
  --surface-2: #eaefea;
  --ink: #0f1d17;
  --muted: #4c5b54;
  --line: #d9e1db;
  --accent: #0b7550;
  --accent-ink: #075d3f;
  --accent-soft: #e0eee6;
  --on-accent: #f6fbf8;
  --warn: #9c4d18;
  --shadow: 0 1px 2px rgb(16 45 32 / .05), 0 12px 32px rgb(16 45 32 / .08);
  --R: #eb6834; --I: #2a78d6; --A: #eda100; --S: #e87ba4; --E: #4a3aa7; --C: #1baf7a;
  --band-bg: #0e3b2b; --band-ink: #eef6f1; --band-muted: #b5d0c3; --band-accent: #8fe3bd; --band-line: rgb(238 246 241 / .16);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --r-l: 18px;
  --r-m: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1210; --surface: #131b18; --surface-2: #1a2420; --ink: #e5eee9; --muted: #9eb1a7; --line: #26332d;
    --accent: #3fcf98; --accent-ink: #72e2b6; --accent-soft: #163128; --on-accent: #06120d; --warn: #f0a06a;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 12px 32px rgb(0 0 0 / .3);
    --R: #d95926; --I: #3987e5; --A: #c98500; --S: #d55181; --E: #9085e9; --C: #199e70;
    --band-bg: #10291f; --band-line: rgb(238 246 241 / .12);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1210; --surface: #131b18; --surface-2: #1a2420; --ink: #e5eee9; --muted: #9eb1a7; --line: #26332d;
  --accent: #3fcf98; --accent-ink: #72e2b6; --accent-soft: #163128; --on-accent: #06120d; --warn: #f0a06a;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 12px 32px rgb(0 0 0 / .3);
  --R: #d95926; --I: #3987e5; --A: #c98500; --S: #d55181; --E: #9085e9; --C: #199e70;
  --band-bg: #10291f; --band-line: rgb(238 246 241 / .12);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent-ink); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; font-weight: 680; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); margin: 0 0 .5em; }
h3 { font-size: 1.15rem; margin: 1.6em 0 .4em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }
.small { font-size: .9rem; color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: var(--r-m); z-index: 10; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Band: header + hero on deep green, the page's one deliberate color block */
.band { background: var(--band-bg); color: var(--band-ink); }
.band .hero-copy, .hero-hex { --R: #d95926; --I: #3987e5; --A: #c98500; --S: #d55181; --E: #9085e9; --C: #199e70; }

/* Header */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--band-ink); text-decoration: none; letter-spacing: -0.01em; }
.logo svg { width: 28px; height: 28px; flex: none; }
.site-header nav { display: flex; gap: 24px; font-size: .95rem; }
.site-header nav a { color: var(--band-muted); text-decoration: none; transition: color 150ms ease; }
.site-header nav a:hover { color: var(--band-ink); }
@media (max-width: 640px) { .site-header nav { display: none; } }

/* One centered column. Wide screens leave equal margins on both sides, which suits
   side-edge ad units (e.g. Mediavine Dual Edge) without shifting the quiz off center. */
.page.wrap { max-width: 1024px; padding-top: 20px; }
.main-col { min-width: 0; }
.main-col .wrap { max-width: none; padding: 0; }

/* Hero: one protected block (a single wrapper, so in-content ads can't split it) */
.hero { border-radius: 24px; padding: clamp(22px, 4vw, 44px); }
.hero-grid { display: grid; gap: 24px; }
/* Intro text left, live hexagon right, quiz full width underneath, all centered as one panel */
.hero-hex { display: none; margin: 0; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 230px; align-items: center; column-gap: 32px; }
  .hero-grid > .quiz { grid-column: 1 / -1; }
  .hero-hex { display: block; }
}
.hero-hex figcaption { font-size: .82rem; color: var(--band-muted); text-align: center; margin-top: 2px; }
.eyebrow { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--band-accent); margin: 0 0 14px; text-wrap: balance; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.4rem); line-height: 1.02; letter-spacing: -0.04em; margin: 0 0 18px; font-weight: 720; }
.hero .sub { font-size: 1.18rem; color: var(--band-muted); max-width: 46ch; margin: 0; }
.hero .quiz { box-shadow: 0 2px 4px rgb(0 0 0 / .12), 0 24px 48px rgb(0 0 0 / .22); border-color: transparent; }

/* Hexagon chart */
.hex { display: block; width: 100%; height: auto; overflow: visible; }
.hex-bg { fill: var(--surface-2); }
.hex-guide { fill: none; stroke: var(--line); stroke-width: 1; }
.hex-axis { stroke: var(--line); stroke-width: 1; }
.hex-shape { fill: color-mix(in srgb, var(--accent) 20%, transparent); stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.hex-node { stroke: var(--surface); stroke-width: 2; }
.hex-mark { stroke: var(--surface); stroke-width: 2; }
.hex-label { font-size: 13px; fill: var(--muted); }
.hero-hex .hex-label { fill: var(--band-muted); }
.hex-letter { font-weight: 760; fill: var(--ink); font-size: 15px; }
.hex-name { font-weight: 560; }
.hero-hex .hex-bg { fill: rgb(255 255 255 / .05); }
.hero-hex .hex-guide, .hero-hex .hex-axis { stroke: var(--band-line); }
.hero-hex .hex-shape { fill: rgb(143 227 189 / .22); stroke: var(--band-accent); }
.hero-hex .hex-node, .hero-hex .hex-mark { stroke: var(--band-bg); }
.hero-hex .hex-letter { fill: var(--band-ink); }
.text-link { font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Quiz card */
.quiz {
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-l);
  box-shadow: var(--shadow); padding: clamp(20px, 3.4vw, 32px); scroll-margin-top: 16px;
}
.quiz:focus { outline: none; }
.quiz { container-type: inline-size; }
@container (min-width: 460px) {
  .answers { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
  .answer { flex-direction: column; justify-content: center; text-align: center; gap: 6px; padding: 12px 6px; font-size: .92rem; }
}
.q-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .88rem; color: var(--muted); }
.q-part { font-weight: 650; color: var(--accent-ink); }
.progress { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin: 10px 0 22px; }
.progress span { display: block; height: 100%; width: 100%; background: var(--accent); border-radius: 99px; transform-origin: left; transition: transform 200ms var(--ease-out); }
.q-stem { color: var(--muted); margin: 0 0 6px; font-size: .95rem; }
.q-text { font-size: clamp(1.3rem, 3.2vw, 1.6rem); font-weight: 680; letter-spacing: -0.02em; margin: 0 0 20px; min-height: 2.3em; }
.q-text:focus, .results h2:focus { outline: none; }
.answers { display: grid; gap: 8px; }
.answer {
  font: inherit; font-size: .98rem; font-weight: 560; text-align: left; cursor: pointer; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-m); padding: 12px 16px; min-height: 52px;
  display: flex; align-items: center; gap: 12px;
  transition: transform 160ms var(--ease-out), border-color 120ms ease, background-color 120ms ease;
}
.answer:hover { border-color: var(--accent); background: var(--accent-soft); }
.answer:active { transform: scale(0.97); }
.answer.picked { border-color: var(--accent); background: var(--accent-soft); }
.answer .dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--muted); flex: none; transition: background-color 120ms ease, border-color 120ms ease; }
.answer.picked .dot { background: var(--accent); border-color: var(--accent); }
.q-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; }
.link-btn { background: none; border: 0; font: inherit; color: var(--accent-ink); cursor: pointer; padding: 8px 0; font-weight: 600; white-space: nowrap; flex: none; }
.link-btn:disabled { color: var(--muted); opacity: .5; cursor: default; }
.q-hint { font-size: .85rem; color: var(--muted); text-align: right; }
@media (hover: none) { .q-hint.keys { display: none; } }
.fade-in { animation: enter 150ms var(--ease-out); }
@keyframes enter { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; white-space: nowrap;
  font: inherit; font-weight: 640; border-radius: var(--r-m); padding: 13px 22px; min-height: 48px;
  background: var(--accent); color: var(--on-accent);
  transition: transform 160ms var(--ease-out), background-color 150ms ease;
}
.btn:hover { background: var(--accent-ink); }
.btn:active { transform: scale(0.97); }
.btn-ghost { background: transparent; color: var(--accent-ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { background: var(--accent-soft); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.note { background: var(--accent-soft); border-left: 3px solid var(--accent); padding: 10px 12px; border-radius: 8px; margin: 10px 0 0; font-size: .92rem; }

/* Results */
.code-box { display: grid; gap: 18px; margin: 18px 0 28px; }
@media (min-width: 760px) { .code-box { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 36px; align-items: center; } }
.code-side { display: grid; gap: 18px; }
.code-letters { display: flex; gap: 8px; font-size: 3rem; font-weight: 760; line-height: 1; }
.code-letters span { display: inline-block; padding-bottom: 6px; border-bottom: 5px solid var(--t); min-width: .9em; text-align: center; }
.bars { display: grid; gap: 8px; }
.bar { display: grid; grid-template-columns: 112px 1fr 38px; gap: 10px; align-items: center; font-size: .92rem; }
.bar .track { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.bar .fill { display: block; height: 100%; border-radius: 99px; }
.bar .num { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.major { border: 1px solid var(--line); border-radius: var(--r-l); padding: 18px; margin: 0 0 12px; background: var(--surface); }
.major-head { display: flex; align-items: center; gap: 14px; }
.rank { font-weight: 760; color: var(--muted); min-width: 1.6em; font-variant-numeric: tabular-nums; }
.major-name { font-size: 1.15rem; font-weight: 680; margin: 0; letter-spacing: -0.01em; }
.major-cat { font-size: .85rem; color: var(--muted); }
.match { margin-left: auto; text-align: right; }
.match strong { font-size: 1.5rem; color: var(--accent-ink); display: block; line-height: 1; font-variant-numeric: tabular-nums; }
.match span { font-size: .78rem; color: var(--muted); }
.meter { height: 5px; border-radius: 99px; background: var(--surface-2); margin: 12px 0 4px; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--accent); }
.detail { margin-top: 10px; font-size: .96rem; }
.detail h4 { margin: 16px 0 6px; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chips li { background: var(--accent-soft); border-radius: 99px; padding: 3px 12px; font-size: .88rem; }
.goal-list { margin: 0; padding: 0; list-style: none; }
.goal-list li { padding: 2px 0 2px 24px; position: relative; }
.goal-list li::before { position: absolute; left: 0; font-weight: 800; }
.goal-list .hit::before { content: "✓"; color: var(--accent); }
.goal-list .miss::before { content: "-"; color: var(--warn); }
.careers { width: 100%; border-collapse: collapse; font-size: .92rem; }
.careers th, .careers td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.careers th { font-weight: 600; color: var(--muted); font-size: .8rem; }
.careers td.n { white-space: nowrap; font-variant-numeric: tabular-nums; }
details.major summary { list-style: none; cursor: pointer; }
details.major summary::-webkit-details-marker { display: none; }
details.major summary .more { font-size: .85rem; color: var(--accent-ink); font-weight: 600; }
.all-list { columns: 2 220px; padding-left: 1.2em; font-size: .95rem; }
.all-list li { break-inside: avoid; }
.share-msg { font-size: .9rem; color: var(--accent-ink); }

/* Sections */
.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section.tint { background: color-mix(in srgb, var(--accent) 6%, var(--bg)); border-top-color: transparent; border-radius: 24px; padding: 56px clamp(20px, 4vw, 48px); margin: 24px 0; }
.section.tint + .section { border-top-color: transparent; }
.section-intro { max-width: 60ch; color: var(--muted); font-size: 1.08rem; }

/* What you get: split with a real result preview */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1180px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; } }
@media (min-width: 1180px) { .split.flip .split-media { order: -1; } }
.get-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.get-list li { padding-left: 28px; position: relative; }
.get-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.preview { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow); padding: 24px; }
.preview-label { font-size: .85rem; color: var(--muted); margin: 0 0 14px; }
.preview-top { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: center; margin-bottom: 8px; }
.preview .code-letters { font-size: 2.2rem; gap: 6px; }
.preview-types { font-size: .88rem; color: var(--muted); margin: 6px 0 18px; }
.preview-list { list-style: none; margin: 0; padding: 0; }
.preview-list li { display: flex; align-items: baseline; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.preview-list .rank { min-width: 1.2em; }
.preview-list .pct { margin-left: auto; font-weight: 700; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.preview-career { margin: 14px 0 0; padding: 12px 14px; border-radius: var(--r-m); background: var(--surface-2); font-size: .92rem; }

/* How it works: number rows */
.rows { margin-top: 36px; display: grid; }
.row { display: grid; gap: 4px 32px; padding: 26px 0; border-top: 1px solid var(--line); }
@media (min-width: 720px) { .row { grid-template-columns: 160px minmax(0, 1fr); } }
.row-num { font-size: clamp(2.8rem, 6vw, 3.8rem); font-weight: 720; letter-spacing: -0.04em; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.row h3 { margin: 4px 0 6px; font-size: 1.25rem; }
.row p { margin: 0; color: var(--muted); max-width: 60ch; }

/* The science: article with stat column */
.article-grid { display: grid; gap: 40px; }
@media (min-width: 1180px) { .article-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; } }
.article p { max-width: 65ch; }
.stats { display: grid; gap: 16px; align-content: start; }
@media (min-width: 1180px) { .stats { position: sticky; top: 24px; } }
.stat { background: var(--accent-soft); border-radius: var(--r-l); padding: 22px; }
.stat strong { display: block; font-size: 2.4rem; font-weight: 720; letter-spacing: -0.03em; line-height: 1.05; color: var(--accent-ink); }
.stat p { margin: 8px 0 0; font-size: .95rem; }
.stat cite { display: block; margin-top: 8px; font-style: normal; font-size: .82rem; color: var(--muted); }

/* RIASEC tiles */
.types-layout { display: grid; gap: 36px; margin-top: 32px; align-items: center; }
@media (min-width: 1180px) { .types-layout { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 40px; } }
.types-hex { margin: 0; }
.types-hex figcaption { font-size: .92rem; color: var(--muted); margin-top: 10px; max-width: 46ch; }
.types { display: grid; gap: 12px; }
@media (min-width: 600px) { .types { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.type { border-radius: var(--r-l); padding: 18px 20px; background: color-mix(in srgb, var(--t) 11%, var(--surface)); }
.type-letter { display: inline-flex; align-items: center; gap: 10px; font-size: 2rem; font-weight: 760; line-height: 1; color: var(--ink); }
.type-letter::before { content: ""; width: 14px; height: 16px; background: var(--t); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.type h3 { margin: 10px 0 4px; font-size: 1.08rem; }
.type p { margin: 0; font-size: .95rem; color: var(--muted); }

/* Majors: category rows with chips */
.cat-rows { margin-top: 32px; display: grid; gap: 22px; }
.cat-row { display: grid; gap: 10px 32px; }
@media (min-width: 760px) { .cat-row { grid-template-columns: 220px minmax(0, 1fr); align-items: baseline; } }
.cat-row h3 { margin: 0; font-size: 1rem; }
.cat-row ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.cat-row li { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 4px 13px; font-size: .92rem; }

/* FAQ */
.faq-list { max-width: 760px; margin-top: 24px; }
.faq-list details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq-list summary { font-weight: 640; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-weight: 500; font-size: 1.3rem; line-height: 1; color: var(--accent-ink); transition: transform 200ms var(--ease-out); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin: 10px 0 0; color: var(--muted); max-width: 65ch; }

.refs { font-size: .9rem; color: var(--muted); padding-left: 1.2em; max-width: 80ch; }
.refs li { margin-bottom: 8px; }

footer { border-top: 1px solid var(--line); padding: 32px 0 44px; font-size: .86rem; color: var(--muted); }
footer p { margin: 0 0 .7em; max-width: 90ch; }

/* Motion: hero entrance and section reveals, only when the visitor allows motion */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-copy > * { animation: rise 520ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms); }
  .js .hero .quiz, .js .hero-hex { animation: rise 600ms var(--ease-out) 120ms both; }
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in { animation: none; }
  .progress span, .answer, .btn { transition: none; }
}

/* Optional anonymous sharing form (results) */
.contribute { margin: 22px 0 6px; padding: 18px; border-radius: var(--r-l); background: var(--surface-2); }
.contribute h3 { margin: 0 0 6px; font-size: 1.05rem; }
.field-row { display: grid; gap: 12px; margin: 12px 0 14px; }
@media (min-width: 680px) { .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; }
.field select {
  font: inherit; font-weight: 500; color: var(--ink); background: var(--surface); min-height: 44px;
  border: 1.5px solid var(--line); border-radius: var(--r-m); padding: 8px 12px;
}
.field select:focus-visible { border-color: var(--accent); }
.field select { width: 100%; min-width: 0; }

/* Majors the visitor is considering (results) */
.picks { margin: 4px 0 10px; }
.picks .field-row { margin: 0; }
@media (min-width: 680px) { .field-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pick-rank { display: block; margin-top: 2px; font-size: .85rem; font-weight: 600; color: var(--accent); }

/* Text pages: methodology, privacy */
.page-head { padding: 40px 0 44px; }
.page-head h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.05; letter-spacing: -0.035em; margin: 0 0 12px; max-width: 22ch; }
.page-head p { color: var(--band-muted); max-width: 60ch; margin: 0; font-size: 1.08rem; }
.prose { padding: 48px 0 72px; }
.prose .wrap > * { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; font-size: clamp(1.4rem, 3vw, 1.8rem); }
.prose h3 { margin-top: 1.4em; }
.prose li { margin-bottom: 6px; }
.table-scroll { max-width: 100% !important; overflow-x: auto; margin: 14px 0 20px; }
.data-table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 640px; }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: 10px 10px; border-bottom: 1px solid var(--line); }
.data-table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.data-table td.n { white-space: nowrap; font-variant-numeric: tabular-nums; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 12px !important; }
.footer-links a { color: var(--muted); }

/* Results page: one block per item, so in-content ads can fall between major cards */
.results-page > * { margin-top: 0; }
.results-head { border-radius: 24px; padding: clamp(22px, 4vw, 40px); margin-bottom: 18px; }
.results-head h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.05; letter-spacing: -0.035em; margin: 0 0 16px; }
.results-head .code-box { background: var(--surface); color: var(--ink); border-radius: var(--r-l); padding: clamp(16px, 3vw, 28px); margin: 0; }
.results-page > h2 { font-size: 1.4rem; margin: 28px 0 12px; }
.results-page .empty { padding: 48px 0; }

/* Text pages inside the main column */
.main-col .page-head { border-radius: 24px; padding: clamp(24px, 4vw, 44px); }
.main-col .prose { padding-top: 36px; }

/* Header and footer line up with the wider page grid */
.site-header .wrap, footer .wrap { max-width: 1024px; }

/* Shorter laptop screens: compact hero so the answers sit well above any sticky bottom ad */
@media (min-width: 1024px) and (max-width: 1279px) { .hero h1 { font-size: 3.1rem; } }
@media (min-width: 1024px) and (max-height: 860px) {
  .hero { padding: 24px 32px 28px; }
  .hero .eyebrow { margin-bottom: 8px; }
  .hero h1 { font-size: 2.7rem; margin-bottom: 8px; }
  .hero .sub { font-size: 1.02rem; }
  .hero-grid { gap: 16px; }
  .quiz .progress { margin-bottom: 14px; }
  .quiz .q-text { margin-bottom: 14px; min-height: 0; }
}
.results-head .note { color: var(--ink); }
.results-head .note a { color: var(--accent-ink); }
.results-head .note { margin: 0 0 14px; }

/* Hero intro above the quiz: a short read that leads into question 1 */
.hero .sub { max-width: 60ch; }
.hero-lead { color: var(--band-muted); font-size: 1.02rem; max-width: 62ch; margin: 14px 0 0; }
.hero-tips { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; max-width: 62ch; color: var(--band-muted); font-size: 1rem; }
.hero-tips li { position: relative; padding-left: 26px; }
.hero-tips li::before { content: "✓"; position: absolute; left: 0; color: var(--band-accent); font-weight: 800; }
.hero-tips strong { color: var(--band-ink); font-weight: 650; }
@media (min-width: 1024px) and (max-height: 860px) {
  .hero-lead { margin-top: 10px; font-size: .98rem; }
  .hero-tips { font-size: .96rem; gap: 4px; }
}

/* Flow sections: headings, paragraphs and lists as direct siblings (in-content ads can sit between them) */
.section.flow > p, .section.flow > ul, .section.flow > h3 { max-width: 65ch; }
.section.flow > h3 { margin: 1.5em 0 .35em; font-size: 1.15rem; }
.check-list { list-style: none; padding: 0; margin: 14px 0 18px; display: grid; gap: 10px; }
.check-list li { padding-left: 28px; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

/* Majors at a glance: stacked full-width rows */
.glance-row { display: grid; gap: 10px 24px; padding: 18px 0; border-top: 1px solid var(--line); }
.glance-row:last-of-type { border-bottom: 1px solid var(--line); margin-bottom: 14px; }
@media (min-width: 760px) { .glance-row { grid-template-columns: 220px minmax(0, 1fr); align-items: start; } }
.glance-major h3 { margin: 0 0 2px; font-size: 1.1rem; }
.glance-facts { display: grid; gap: 8px 20px; margin: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1100px) { .glance-facts { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; } }
.glance-facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.glance-facts dd { margin: 2px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Results: interest type explanations */
.type-explain { border-left: 4px solid var(--t); padding: 4px 0 4px 16px; margin: 0 0 18px; }
.type-explain h3 { margin: 0 0 4px; font-size: 1.1rem; }
.type-explain p { margin: 0 0 6px; }
.detail .twins { margin: 8px 0 4px; padding: 8px 12px; border-radius: 8px; background: var(--surface-2); }
