/* Texas Stepping Stone — design concept. Law: ../../DESIGN.md
   Three voices: Gambarino (display), Switzer (text/UI), IBM Plex Mono (data). Flat, ruled, radius 0. */

@font-face { font-family: "Gambarino"; src: url("../fonts/Gambarino-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("../fonts/Switzer-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/IBMPlexMono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/IBMPlexMono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
/* Metric-matched fallbacks so the swap does not shift the layout */
@font-face { font-family: "Gambarino Fallback"; src: local("Georgia"); size-adjust: 88%; ascent-override: 92%; descent-override: 24%; line-gap-override: 0%; }
@font-face { font-family: "Switzer Fallback"; src: local("Helvetica Neue"), local("Arial"); size-adjust: 99%; ascent-override: 96%; descent-override: 24%; }

:root {
  --paper: #FBF8EC;
  --paper-2: #F2EDDB;
  --ink: #0B2E59;
  --ink-deep: #081F3D;
  --gold: #C8A04D;
  --gold-ink: #7A5A12;
  --rule: rgba(11, 46, 89, .22);
  --rule-dark: rgba(251, 248, 236, .24);
  --mute: #55688A;
  --cream-soft: rgba(251, 248, 236, .78);

  --f-display: "Gambarino", "Gambarino Fallback", Georgia, serif;
  --f-text: "Switzer", "Switzer Fallback", system-ui, sans-serif;
  --f-mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --margin: 64px;
  --gap: 24px;
  --sec: 120px;
  --header-h: 88px;
  --ease: cubic-bezier(.23, 1, .32, 1);
}

*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-text); font-size: 18px; line-height: 1.5; font-weight: 400;
  font-synthesis: none; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
h1, h2, h3, h4, h5, h6, th, b, strong, summary { font-weight: 400; }
strong, b { font-weight: 500; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; -webkit-appearance: none; appearance: none; border-radius: 0; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.on-navy :focus-visible { outline-color: var(--gold); }

.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: var(--paper); padding: 12px 16px; font-weight: 500; text-decoration: none; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- type ---------- */
.display, .h1, .h2, .h3 { font-family: var(--f-display); font-weight: 400; text-wrap: balance; }
.h1 { font-size: clamp(3.5rem, 1.4rem + 7.6vw, 8.5rem); line-height: .94; letter-spacing: -0.015em; }
.h1--page { font-size: clamp(3.25rem, 1.6rem + 5.6vw, 7rem); }
.h2 { font-size: clamp(2.4rem, 1.5rem + 3.4vw, 4.5rem); line-height: 1; letter-spacing: -0.01em; }
.h3 { font-size: clamp(2rem, 1.7rem + .9vw, 2.25rem); line-height: 1.04; letter-spacing: -0.005em; }
.lead { font-size: 21px; line-height: 1.42; max-width: 34em; text-wrap: pretty; }
p { text-wrap: pretty; }
.prose p { max-width: 62ch; }
.prose p + p { margin-top: .9em; }
.mono, .label {
  font-family: var(--f-mono); font-size: 12.5px; line-height: 1.45; letter-spacing: .06em;
  text-transform: uppercase; font-weight: 400;
}
.mono b, .label b { font-weight: 500; }
.mute { color: var(--mute); }
.tag { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-ink); font-weight: 500; white-space: nowrap; }

/* ---------- layout ---------- */
.wrap { max-width: calc(1296px + var(--margin) * 2); margin-inline: auto; padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.sec { padding-block: var(--sec); }
.sec:not(.band):not(.alt) + .sec:not(.band):not(.alt) { padding-top: 0; }
.alt { background: var(--paper-2); }
.sec-head { border-top: 4px solid var(--ink); padding-top: 14px; }
.sec-head .label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
.sec-head .h2 { margin-top: 40px; max-width: 15ch; }
.sec-body { margin-top: 64px; }

/* ---------- links & buttons ---------- */
.arr { width: 18px; height: 12px; flex: none; transition: transform .25s var(--ease); }
.btn {
  display: inline-flex; align-items: center; gap: 14px; height: 48px; padding: 0 22px;
  background: var(--ink); color: var(--paper); border: 0; cursor: pointer;
  font-family: var(--f-text); font-weight: 500; font-size: 16px; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.btn:hover { background: var(--ink-deep); }
.btn:hover .arr, .tlink:hover .arr, .row-link:hover .arr, .task a:hover .arr { transform: translateX(3px); }
.btn:active { background: var(--ink-deep); }
.btn--sm { height: 44px; padding: 0 18px; }
.btn--gold { background: var(--gold); color: var(--ink-deep); }
.btn--gold:hover { background: var(--paper); color: var(--ink-deep); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.tlink {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: currentColor;
}
.tlink:hover { text-decoration-thickness: 2px; }

/* ---------- top line + header ---------- */
.topline { border-bottom: 1px solid var(--rule); }
.topline .wrap { display: flex; justify-content: space-between; gap: 16px; padding-block: 9px; }
.topline a { text-decoration: none; }
.topline a:hover { text-decoration: underline; text-underline-offset: 3px; }
.topline .status { color: var(--gold-ink); }

.header { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid transparent; transition: border-color .25s var(--ease); }
.header .wrap { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.is-compact .header { border-bottom-color: var(--rule); }
.is-compact { --header-h: 60px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 500; font-size: 18px; letter-spacing: -0.005em; white-space: nowrap; min-height: 44px; }
.brand svg { width: 44px; height: 29px; }
.nav { margin-left: auto; display: flex; gap: 32px; }
.nav a { font-size: 16px; text-decoration: none; padding-block: 10px; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.menu-btn { display: none; margin-left: auto; align-items: center; min-height: 44px; padding: 0 4px; font-weight: 500; font-size: 16px; text-decoration: underline; text-underline-offset: 5px; background: none; border: 0; cursor: pointer; color: var(--ink); }

/* full-screen menu sheet (works with :target when JS is off) */
.sheet { position: fixed; inset: 0; z-index: 60; background: var(--paper); display: none; overflow-y: auto; }
.sheet:target, .sheet.is-open { display: block; }
.sheet .wrap { padding-block: 16px 40px; }
.sheet-top { display: flex; justify-content: space-between; align-items: center; min-height: 56px; border-bottom: 1px solid var(--rule); }
.sheet-close { min-height: 44px; display: inline-flex; align-items: center; font-weight: 500; text-decoration: underline; text-underline-offset: 5px; background: none; border: 0; cursor: pointer; color: var(--ink); padding: 0 4px; }
.sheet nav ol { counter-reset: m; margin-top: 8px; }
.sheet nav li { border-bottom: 1px solid var(--rule); }
.sheet nav a { display: flex; align-items: baseline; gap: 16px; padding: 18px 0; text-decoration: none; font-family: var(--f-display); font-size: 44px; line-height: 1; }
.sheet nav a .mono { color: var(--mute); }
.sheet .sheet-foot { margin-top: 32px; display: grid; gap: 20px; }

/* ---------- hero ---------- */
.hero { padding-top: 64px; padding-bottom: 112px; }
.hero .label { color: var(--mute); }
.hero .h1 { margin-top: 28px; grid-column: 1 / span 11; }
.hero-text { grid-column: 1 / span 5; margin-top: 56px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 36px; }
.facts { margin-top: 48px; display: grid; }
.facts div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; border-top: 1px solid var(--rule); padding: 12px 0; }
.facts div:last-child { border-bottom: 1px solid var(--rule); }
.facts dt { color: var(--mute); }
.facts dd { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; }
.hero-fig { grid-column: 7 / span 6; margin-top: 64px; }

figure.photo img { width: 100%; background: var(--paper-2); }
figure.photo figcaption { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 2px 24px; justify-content: space-between; color: var(--mute); border-top: 1px solid var(--rule); padding-top: 10px; }

/* ---------- status band (navy) ---------- */
.band { background: var(--ink); color: var(--paper); }
.band .sec-head { border-top-color: var(--gold); }
.band .label { color: var(--cream-soft); }
.band .h2 { max-width: 17ch; }
.path { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap); }
.path::before { content: ""; position: absolute; left: 0; right: 12%; top: 23px; height: 1px; background: var(--rule-dark); }
.path li { position: relative; padding-right: 16px; }
.mark { height: 48px; display: flex; align-items: center; }
.mark svg { overflow: visible; }
.path .when { margin-top: 22px; color: var(--gold); font-weight: 500; }
.path .when--muted { color: var(--cream-soft); font-weight: 400; }
.path h3 { margin-top: 10px; font-size: 20px; line-height: 1.3; font-weight: 500; font-family: var(--f-text); }
.path p { margin-top: 8px; color: var(--cream-soft); font-size: 17px; max-width: 26ch; }

/* ---------- task grid ---------- */
.tasks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.task + .task { border-left: 1px solid var(--rule); }
.task a { display: flex; flex-direction: column; height: 100%; min-height: 260px; padding: 28px 28px 28px 28px; text-decoration: none; transition: background-color .25s var(--ease); }
.task:first-child a { padding-left: 0; }
.task a:hover { background: var(--paper-2); }
.task:first-child a:hover { background: none; }
.task .mono { color: var(--mute); }
.task .h3 { margin-top: 20px; }
.task p { margin-top: 14px; font-size: 17px; max-width: 26ch; }
.task .arr { margin-top: auto; padding-top: 0; width: 22px; height: 14px; }
.task a:hover .h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }

/* ---------- exam lists (home) ---------- */
.intro-row { grid-column: 1 / span 6; }
.intro-note { grid-column: 9 / span 4; align-self: end; color: var(--mute); border-left: 1px solid var(--rule); padding-left: 20px; }
.family { margin-top: 72px; }
.family-meta { grid-column: 1 / span 3; }
.family-meta h3 { font-family: var(--f-text); font-weight: 500; font-size: 22px; line-height: 1.25; }
.family-meta .mono { margin-top: 8px; color: var(--mute); }
.family-rows { grid-column: 4 / span 9; border-top: 1px solid var(--ink); }
.row-link { display: grid; grid-template-columns: minmax(0, 1fr) 190px 120px 22px; gap: 20px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.row-link .name { font-weight: 500; font-size: 20px; line-height: 1.3; }
.row-link .mono { color: var(--mute); }
.row-link .arr { align-self: center; }
.row-link:hover .name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.row-more { padding: 16px 0; color: var(--mute); }
.exams-cta { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; }

/* ---------- how it works (stones) ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap); }
.steps::before { content: ""; position: absolute; left: 0; right: 14%; top: 31px; height: 1px; background: var(--ink); transform-origin: 0 50%; transition: transform 1.1s var(--ease); }
.js .steps:not(.is-drawn)::before { transform: scaleX(0); }
.steps li { position: relative; padding-right: 20px; }
.steps .mark { height: 64px; }
.steps .num { margin-top: 24px; color: var(--mute); }
.steps .h3 { margin-top: 12px; max-width: 13ch; }
.steps p { margin-top: 14px; font-size: 17px; max-width: 28ch; }

/* ---------- test day ---------- */
.td-fig { grid-column: 1 / span 4; }
.td-lists { grid-column: 6 / span 7; display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; align-content: start; }
.list-title { font-family: var(--f-text); font-weight: 500; font-size: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.marks li { display: grid; grid-template-columns: 52px 1fr; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 17px; line-height: 1.45; }
.marks .mono { color: var(--mute); padding-top: 3px; }
.td-more { grid-column: 1 / -1; margin-top: 40px; }

/* ---------- what you leave with ---------- */
.doc-col { grid-column: 1 / span 6; }
.doc {
  position: relative; aspect-ratio: 8.5 / 11; max-width: 500px; background: var(--paper); border: 1px solid var(--ink);
  padding: 9% 9% 8%; display: flex; flex-direction: column;
}
.doc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.doc .h3 { font-size: clamp(2rem, 1.4rem + 1.6vw, 2.75rem); }
.doc-fields { margin-top: 8%; display: grid; }
.doc-fields div { display: grid; grid-template-columns: 38% 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.doc-fields dt { color: var(--mute); }
.doc-fields dd { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .04em; }
.blank { display: inline-block; width: 100%; height: 1px; background: var(--rule); vertical-align: middle; }
.doc-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.seal { width: 76px; height: 76px; flex: none; }
.doc-col figcaption { margin-top: 12px; max-width: 500px; color: var(--mute); }
.leave-facts { grid-column: 8 / span 5; align-self: center; border-top: 1px solid var(--ink); }
.leave-facts li { display: grid; grid-template-columns: 52px 1fr; gap: 8px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.leave-facts .mono { color: var(--mute); padding-top: 4px; }
.leave-facts strong { display: block; font-size: 20px; line-height: 1.3; }
.leave-facts p { margin-top: 6px; font-size: 17px; }

/* ---------- why here ---------- */
.why { grid-column: 1 / span 7; border-top: 1px solid var(--ink); }
.why li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.why .mono { color: var(--mute); padding-top: 10px; }
.why p { margin-top: 10px; max-width: 46ch; }
.why-fig { grid-column: 9 / span 4; align-self: start; }

/* ---------- about ---------- */
.about-text { grid-column: 1 / span 7; }
.about-text p { font-size: 21px; line-height: 1.45; }
.about-facts { grid-column: 9 / span 4; align-self: start; border-top: 1px solid var(--ink); }
.about-facts div { padding: 12px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 4px; }
.about-facts dt { color: var(--mute); }
.about-facts dd { font-size: 17px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) 40px; gap: 24px; align-items: baseline; padding: 26px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .q { font-family: var(--f-display); font-size: clamp(1.75rem, 1.45rem + 1vw, 2.25rem); line-height: 1.08; text-wrap: balance; max-width: 26ch; }
.faq summary .pm { font-family: var(--f-mono); font-size: 22px; text-align: right; color: var(--ink); }
.faq summary .pm::before { content: "+"; }
.faq details[open] summary .pm::before { content: "–"; }
.faq summary:hover .q { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.faq .a { padding: 0 64px 32px 0; }
.faq .a p { max-width: 62ch; }
.faq .a p + p { margin-top: .8em; }

/* ---------- closing panel ---------- */
.closing { background: var(--ink-deep); color: var(--paper); text-align: center; padding-block: 128px 96px; }
.closing .label { color: var(--cream-soft); }
.closing .h2 { margin: 28px auto 0; max-width: 13ch; font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5.5rem); line-height: .98; }
.closing .sub { margin: 24px auto 0; max-width: 40ch; color: var(--cream-soft); }
.notify { margin: 48px auto 0; max-width: 560px; text-align: left; }
.notify label { display: block; color: var(--cream-soft); }
.notify-row { display: flex; gap: 16px; align-items: flex-end; margin-top: 6px; }
.notify input {
  flex: 1; min-width: 0; height: 48px; background: transparent; border: 0; border-bottom: 1px solid var(--cream-soft);
  color: var(--paper); font-size: 20px; padding: 0 2px;
}
.notify input::placeholder { color: rgba(251, 248, 236, .58); }
.notify input:hover { border-bottom-color: var(--paper); }
.notify input[aria-invalid="true"] { border-bottom: 2px solid var(--gold); }
.notify .err { min-height: 22px; margin-top: 10px; color: var(--gold); font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .04em; }
.notify .fine { margin-top: 6px; color: var(--cream-soft); font-size: 15px; }
.done { margin: 48px auto 0; max-width: 560px; border-top: 1px solid var(--gold); padding-top: 24px; }
.done .h3 { color: var(--paper); }
.done p { margin-top: 12px; color: var(--cream-soft); }
.visit { margin-top: 88px; border-top: 1px solid var(--rule-dark); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); text-align: left; }
.visit div { padding: 18px 20px 0 0; }
.visit dt { color: var(--cream-soft); }
.visit dd { margin-top: 6px; font-size: 13px; line-height: 1.6; }
.visit a { text-underline-offset: 4px; }

/* ---------- footer ---------- */
.footer { background: var(--ink-deep); color: var(--paper); border-top: 1px solid var(--rule-dark); padding-block: 56px 32px; }
.footer .brand { color: var(--paper); }
.foot-cols { margin-top: 0; }
.foot-brand { grid-column: 1 / span 4; }
.foot-brand p { margin-top: 16px; color: var(--cream-soft); font-size: 16px; max-width: 34ch; }
.foot-col { grid-column: span 2; }
.foot-col:nth-child(2) { grid-column: 7 / span 2; }
.foot-col h2 { color: var(--cream-soft); }
.foot-col ul { margin-top: 12px; display: grid; gap: 2px; }
.foot-col a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; font-size: 16px; }
.foot-col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-col li { font-size: 16px; }
.foot-legal { margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--rule-dark); display: flex; justify-content: space-between; gap: 24px; color: var(--cream-soft); }

/* ---------- mobile action bar ---------- */
.mbar { display: none; }

/* ---------- catalogue page ---------- */
.page-head { padding-top: 64px; padding-bottom: 72px; }
.page-head .label { color: var(--mute); }
.page-head .h1 { margin-top: 24px; max-width: 12ch; }
.page-head .lead { margin-top: 32px; }
.page-head .facts { max-width: 640px; }
.controls { position: relative; border-top: 4px solid var(--ink); padding-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px 48px; align-items: end; }
.filters { font-size: 20px; line-height: 1.6; }
.filters .label { display: block; color: var(--mute); margin-bottom: 6px; }
.filters a, .filters button { font: inherit; color: var(--ink); background: none; border: 0; padding: 0 0 2px; cursor: pointer; text-decoration: none; border-bottom: 2px solid transparent; }
.filters a:hover, .filters button:hover { border-bottom-color: var(--rule); }
.filters [aria-pressed="true"] { border-bottom-color: var(--gold); font-weight: 500; }
.search label { display: block; color: var(--mute); }
.search input { width: 100%; height: 48px; border: 0; border-bottom: 1px solid var(--ink); background: transparent; font-size: 20px; padding: 0 2px; color: var(--ink); }
.search input::placeholder { color: var(--mute); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.count { margin-top: 28px; color: var(--mute); }
.cat-family { margin-top: 72px; }
.cat-family > header { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
.cat-family > header .h2 { grid-column: 1 / span 7; font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.75rem); }
.cat-family > header p { grid-column: 9 / span 4; color: var(--mute); font-size: 17px; }
.thead { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 1fr) 200px 170px 130px 40px; gap: 20px; padding: 10px 0; background: var(--paper-2); border-top: 1px solid var(--ink); color: var(--mute); }
.thead span:first-child { padding-left: 12px; }
.exam { border-bottom: 1px solid var(--rule); }
.exam summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) 200px 170px 130px 40px; gap: 20px; align-items: baseline; padding: 18px 0; }
.exam summary::-webkit-details-marker { display: none; }
.exam summary > :first-child { padding-left: 12px; }
.exam .name { font-weight: 500; font-size: 20px; line-height: 1.3; }
.exam .mono { color: var(--mute); }
.exam .pm { font-family: var(--f-mono); font-size: 20px; text-align: right; }
.exam .pm::before { content: "+"; }
.exam[open] .pm::before { content: "–"; }
.exam summary:hover .name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.exam .panel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding: 4px 52px 32px 12px; }
.exam .panel h4 { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); font-weight: 400; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
.exam .panel p { margin-top: 10px; font-size: 17px; }
.empty { margin-top: 48px; border-top: 1px solid var(--ink); padding-top: 24px; }
.empty p { margin-top: 12px; max-width: 52ch; }
.ask { margin-top: 112px; }

/* ---------- test-day page ---------- */
.day { border-top: 1px solid var(--ink); }
.day li { display: grid; grid-template-columns: 88px 200px minmax(0, 1fr); gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--rule); position: relative; }
.day .mark { height: 40px; justify-content: flex-start; }
.day .when { color: var(--mute); padding-top: 12px; }
.day .h3 { max-width: 16ch; }
.day p { margin-top: 12px; max-width: 58ch; }
.rules-room { grid-column: 1 / span 7; }
.rules-side { grid-column: 9 / span 4; }

/* ---------- motion (one fade-up per section) ---------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .steps:not(.is-drawn)::before { transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  :root { --margin: 40px; }
  .nav { gap: 24px; }
  .row-link { grid-template-columns: minmax(0, 1fr) 170px 110px 22px; }
  .thead, .exam summary { grid-template-columns: minmax(0, 1fr) 170px 150px 120px 32px; }
}
@media (max-width: 960px) {
  :root { --sec: 88px; }
  .nav, .header .btn { display: none; }
  .menu-btn { display: inline-flex; }
  .hero .h1 { grid-column: 1 / -1; }
  .hero-text { grid-column: 1 / -1; max-width: 620px; }
  .hero-fig { grid-column: 1 / -1; margin-top: 56px; }
  .path { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .path::before { display: none; }
  .tasks { grid-template-columns: 1fr 1fr; }
  .task:nth-child(3) { border-left: 0; }
  .task:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .task:nth-child(3) a { padding-left: 0; }
  .task:nth-child(3) a:hover { background: none; }
  .intro-row { grid-column: 1 / -1; }
  .intro-note { grid-column: 1 / -1; margin-top: 24px; }
  .family-meta { grid-column: 1 / -1; margin-bottom: 16px; }
  .family-rows { grid-column: 1 / -1; }
  .td-fig { grid-column: 1 / span 5; }
  .td-lists { grid-column: 7 / span 6; grid-template-columns: 1fr; row-gap: 40px; }
  .doc-col { grid-column: 1 / span 7; }
  .leave-facts { grid-column: 8 / span 5; }
  .why { grid-column: 1 / -1; }
  .why-fig { grid-column: 1 / span 8; margin-top: 48px; }
  .about-text { grid-column: 1 / -1; }
  .about-facts { grid-column: 1 / span 8; margin-top: 40px; }
  .visit { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; margin-bottom: 40px; }
  .foot-col, .foot-col:nth-child(2) { grid-column: span 4; }
  .controls { grid-template-columns: 1fr; }
  .cat-family > header .h2, .cat-family > header p { grid-column: 1 / -1; }
  .cat-family > header p { margin-top: 16px; }
  .thead { display: none; }
  .exam summary { grid-template-columns: minmax(0, 1fr) 28px; gap: 6px 16px; }
  .exam summary > :first-child { padding-left: 0; }
  .exam summary .c-owner, .exam summary .c-format, .exam summary .c-status { grid-column: 1; }
  .exam summary .c-owner { display: none; }
  .exam summary .pm { grid-column: 2; grid-row: 1; }
  .exam summary .meta-m { display: flex !important; }
  .exam summary .c-format, .exam summary .c-status.desk { display: none; }
  .exam .panel { grid-template-columns: 1fr; gap: 20px; padding: 0 0 28px; }
  .day li { grid-template-columns: 64px minmax(0, 1fr); }
  .day .when { grid-column: 2; padding-top: 0; }
  .day .body { grid-column: 2; }
  .rules-room, .rules-side { grid-column: 1 / -1; }
  .rules-side { margin-top: 48px; }
}
.meta-m { display: none; gap: 14px; flex-wrap: wrap; align-items: baseline; }

@media (max-width: 768px) {
  :root { --margin: 20px; --sec: 64px; --gap: 16px; }
  body { font-size: 17px; }
  .lead { font-size: 19px; }
  .topline .hide-s { display: none; }
  .topline .wrap > span:last-child { white-space: nowrap; }
  .hero { padding-top: 36px; padding-bottom: 64px; }
  .hero .h1 { margin-top: 20px; }
  .hero-text { margin-top: 32px; }
  .hero-actions { margin-top: 28px; }
  .facts div { grid-template-columns: 84px 1fr; }
  .sec-head .h2 { margin-top: 28px; }
  .sec-body { margin-top: 44px; }
  .path { grid-template-columns: 1fr; row-gap: 0; }
  .path li { display: grid; grid-template-columns: 56px 1fr; column-gap: 12px; padding: 0 0 28px; }
  .path li::before { content: ""; position: absolute; left: 23px; top: 48px; bottom: 0; width: 1px; background: var(--rule-dark); }
  .path li:last-child::before { display: none; }
  .path .mark { grid-row: 1 / span 3; align-items: flex-start; height: auto; }
  .path .when { margin-top: 2px; }
  .tasks { grid-template-columns: 1fr 1fr; }
  .task a { min-height: 220px; padding: 20px 16px 20px 16px; }
  .task:first-child a, .task:nth-child(3) a { padding-left: 0; }
  .task .h3 { font-size: 28px; margin-top: 14px; }
  .task p { font-size: 15.5px; }
  .family { margin-top: 48px; }
  .row-link { grid-template-columns: auto minmax(0, 1fr) 22px; gap: 4px 16px; padding: 14px 0; }
  .row-link .name { grid-column: 1 / span 2; }
  .row-link .c-owner { grid-column: 1; grid-row: 2; }
  .row-link .tag { grid-column: 2; grid-row: 2; }
  .row-link .arr { grid-column: 3; grid-row: 1 / span 2; }
  .row-link .name { font-size: 19px; }
  .steps { grid-template-columns: 1fr; }
  .steps::before { left: 31px; right: auto; top: 0; bottom: 40px; width: 1px; height: auto; transform-origin: 50% 0; }
  .js .steps:not(.is-drawn)::before { transform: scaleY(0); }
  .steps li { display: grid; grid-template-columns: 64px 1fr; column-gap: 16px; padding: 0 0 36px; }
  .steps .mark { grid-row: 1 / span 4; height: 64px; justify-content: center; background: var(--paper-2); align-self: start; }
  .steps .num { margin-top: 4px; }
  .steps .h3 { max-width: none; }
  .td-fig, .td-lists { grid-column: 1 / -1; }
  .td-fig { margin-bottom: 40px; }
  .doc-col, .leave-facts { grid-column: 1 / -1; }
  .leave-facts { margin-top: 40px; }
  .doc { padding: 8% 8% 7%; }
  .doc-fields div { grid-template-columns: 42% 1fr; padding: 9px 0; }
  .seal { width: 56px; height: 56px; }
  .why li { grid-template-columns: 44px 1fr; }
  .why-fig, .about-facts { grid-column: 1 / -1; }
  .faq summary { padding: 22px 0; gap: 12px; grid-template-columns: minmax(0, 1fr) 28px; }
  .faq .a { padding-right: 0; }
  .closing { padding-block: 80px 64px; }
  .notify-row { flex-direction: column; align-items: stretch; }
  .notify .btn { justify-content: space-between; }
  .visit { grid-template-columns: 1fr; margin-top: 56px; }
  .foot-col, .foot-col:nth-child(2) { grid-column: span 6; margin-bottom: 28px; }
  .foot-legal { flex-direction: column; gap: 10px; margin-top: 24px; }
  .footer { padding-bottom: 104px; }
  .page-head { padding-top: 36px; padding-bottom: 48px; }
  .filters { font-size: 18px; }
  .cat-family { margin-top: 56px; }
  .exam .name { font-size: 19px; }
  .ask { margin-top: 72px; }
  .day li { grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding: 26px 0; }

  .js .mbar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--ink);
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--rule-dark);
    transform: translateY(110%); transition: transform .25s var(--ease); visibility: hidden;
  }
  .js .mbar.is-on { transform: none; visibility: visible; }
  .mbar .btn { width: 100%; justify-content: space-between; }
}
@media (max-width: 400px) {
  .brand { font-size: 17px; gap: 10px; }
  .brand svg { width: 38px; height: 25px; }
  .sheet nav a { font-size: 38px; }
}

/* mono stays mono-sized even inside components that size their paragraphs */
p.mono, p.label, .path p.when, .steps p.num, .day p.when { font-size: 12.5px; max-width: none; }
.nw { white-space: nowrap; }
@media (max-width: 400px) { .topline .phone-s { display: none; } }
