/* Coding Coach site styles. Started as design/mockups/site.css (approved mockups);
   site-only additions are at the bottom. Everything reads from tokens.css. */

@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 400 800; font-stretch: 75% 100%; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 var(--text-base)/var(--leading-body) var(--font-body);
  overflow-x: clip; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, table { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-sm); }

.wrap { max-width: var(--page); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); border-top: 1px solid var(--border); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---- Type roles ---- */
h1, h2, h3, .display {
  font-family: var(--font-display); font-variation-settings: "wdth" var(--display-width);
  color: var(--ink); letter-spacing: var(--tracking-display); font-weight: 800; text-wrap: balance;
}
h1 { font-size: var(--text-3xl); line-height: var(--leading-tight); }
h2 { font-size: var(--text-2xl); line-height: 1.04; max-width: 20ch; }
h3 { font-size: var(--text-xl); line-height: var(--leading-snug); font-weight: 700; letter-spacing: -0.015em; }
.lead { font-size: var(--text-lg); max-width: var(--measure); }
.prose { max-width: var(--measure); }
.prose p + p { margin-top: var(--space-4); }
.note { font-size: var(--text-sm); color: var(--subtle); line-height: 1.5; }
.eyebrow {
  font: 500 var(--text-xs)/1.3 var(--font-mono); letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase; color: var(--subtle);
}
/* The highlighter: one phrase per headline, and every blank. */
mark, .blank {
  background: var(--accent); color: var(--on-accent);
  padding: 0.02em 0.16em; margin-inline: -0.04em; border-radius: var(--radius-sm);
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}

/* ---- Header ---- */
.header {
  position: sticky; top: 0; z-index: 20; background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 3.75rem; }
.wordmark {
  display: inline-flex; align-items: center; gap: 0.5rem; color: var(--ink); text-decoration: none;
  font: 800 1.25rem/1 var(--font-display); font-variation-settings: "wdth" 80; letter-spacing: -0.02em;
  min-height: var(--tap); white-space: nowrap;
}
/* The mark (logo H, src/logo.js). Colours are tokens, so it follows the theme:
   Paper: green cap, ink underside and base. Chalkboard: paper cap, muted underside. The bulb is the highlighter in both. */
.logo { display: block; flex: none; width: 1.9375rem; height: 2.25rem; margin-block: -0.25rem; }
.logo .lg-b { fill: var(--accent); }
.logo .lg-f { stroke: var(--on-accent); }
.logo .lg-t { fill: var(--link); } .logo .lg-ts { stroke: var(--link); }
.logo .lg-u, .logo .lg-k { fill: var(--ink); } .logo .lg-ks { stroke: var(--ink); }
[data-theme="dark"] .logo .lg-t { fill: var(--ink); } [data-theme="dark"] .logo .lg-ts { stroke: var(--ink); }
[data-theme="dark"] .logo .lg-u { fill: var(--muted); }
.wordmark { gap: 0.45rem; }
/* The wordmark reads "codingcoach.app": one name, the ending in the text-safe accent (7.3:1 on Paper, 13.1:1 on Chalkboard). */
.wordmark__name { display: block; }
.wordmark__tld { color: var(--link); }
@media (max-width: 359px) { .logo { width: 1.6875rem; height: 1.9375rem; } .wordmark { gap: 0.3rem; } .header .wordmark { font-size: 1.0625rem; letter-spacing: -0.025em; } }
.nav { display: none; gap: var(--space-8); }
.nav a { color: var(--text); text-decoration: none; font-size: 0.9375rem; font-weight: 500; }
@media (min-width: 860px) { .nav { display: flex; } }

/* ---- Button ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3.25rem; padding: 0 1.5rem; border-radius: var(--radius-md);
  background: var(--accent); color: var(--on-accent); border: 1.5px solid var(--on-accent);
  box-shadow: var(--shadow-key); text-decoration: none; cursor: pointer;
  font: 700 1.0625rem/1 var(--font-body); white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.btn .mono { font-weight: 700; }
.btn--sm { min-height: var(--tap); padding: 0 1rem; font-size: 0.9375rem; }
.btn .wide { display: none; }
@media (min-width: 480px) { .btn .wide { display: inline; } }
.btn--quiet { background: transparent; color: var(--ink); border-color: var(--border-strong); box-shadow: none; font-weight: 600; }
.btn--block { width: 100%; }
.textlink { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 600; }

/* ---- Hero ---- */
.hero { padding-block: clamp(2rem, 1rem + 4vw, 4.5rem) var(--section); }
.hero__grid { display: grid; gap: var(--space-10); }
.hero h1 { margin-top: var(--space-4); }
.hero .lead { margin-top: var(--space-5); }
.cta { margin-top: var(--space-8); display: flex; flex-direction: column; gap: var(--space-2); }
.cta .btn { width: 100%; }
.seatline { margin-top: var(--space-3); font: 500 0.8125rem/1.5 var(--font-mono); color: var(--muted); }
.seatline b { color: var(--ink); font-weight: 700; }
@media (min-width: 560px) { .cta { flex-direction: row; align-items: center; gap: var(--space-6); } .cta .btn { width: auto; } }
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr); gap: var(--space-16); align-items: end; }
}

/* ---- Class card: the facts, in the first viewport ---- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.classcard { border-color: var(--ink); border-width: 1.5px; overflow: hidden; }
.classcard__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem 1.125rem; border-bottom: 1.5px solid var(--ink); background: var(--sunk);
}
.classcard dl > div {
  display: grid; grid-template-columns: 6.25rem 1fr; gap: var(--space-3);
  padding: 0.7rem 1.125rem; border-bottom: 1px solid var(--border); align-items: baseline;
}
.classcard dl > div:last-child { border-bottom: 0; }
.classcard dt { font: 500 var(--text-xs)/1.4 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--subtle); }
.classcard dd { color: var(--ink); font-weight: 600; line-height: 1.4; }
.classcard dd small { display: block; font-size: var(--text-sm); font-weight: 400; color: var(--muted); }
.classcard dd .mono { font-size: 0.9375rem; }
.total { padding: 0.9rem 1.125rem; background: var(--sunk); border-top: 1.5px solid var(--ink); }

/* ---- Signature: the ask goes in on the board, the app comes out on paper ---- */
.pane { display: grid; border-radius: var(--radius-lg); overflow: hidden; border: 1.5px solid var(--ink); box-shadow: var(--shadow-pane); }
[data-theme="dark"] .pane { border-color: var(--border-strong); }
.pane__ask { background: var(--board); color: var(--board-ink); padding: clamp(1.25rem, 0.8rem + 2vw, 2.25rem); }
.pane__app { background: var(--paper); color: var(--paper-ink); padding: clamp(1.25rem, 0.8rem + 2vw, 2.25rem); border-top: 1.5px solid var(--ink); }
.pane .eyebrow { color: var(--board-muted); display: flex; justify-content: space-between; gap: var(--space-4); }
.pane__app .eyebrow { color: var(--paper-muted); }
.ask { margin-top: var(--space-5); font: 500 clamp(1.25rem, 1rem + 1.2vw, 1.75rem)/1.4 var(--font-mono); letter-spacing: -0.01em; }
.ask-rest { margin-top: var(--space-5); padding-top: var(--space-5); border-top: 1px dashed var(--board-border); color: var(--board-muted); font: 400 0.875rem/1.65 var(--font-mono); }
.ask-rest b { color: var(--board-ink); font-weight: 500; }
@media (min-width: 860px) {
  .pane { grid-template-columns: 1fr 1fr; }
  .pane__app { border-top: 0; border-left: 1.5px solid var(--ink); }
}
/* The example app (static, drawn in HTML) */
.app { margin-top: var(--space-5); border: 1px solid var(--paper-border); border-radius: var(--radius-md); background: #fff; overflow: hidden; }
.app__bar { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--paper-border); background: #F1F0E8; font: 400 0.75rem/1 var(--font-mono); color: var(--paper-muted); }
.app__bar i { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #C9C8BA; display: block; }
.app__body { padding: 1rem; }
.app__title { font: 800 1.25rem/1.1 var(--font-display); font-variation-settings: "wdth" 80; color: var(--paper-ink); }
.app__field { margin-top: 0.75rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: 0.875rem; color: var(--paper-muted); }
.app__field b { font: 600 0.9375rem/1 var(--font-mono); color: var(--paper-ink); border: 1px solid var(--paper-border); border-radius: var(--radius-sm); padding: 0.45rem 0.6rem; min-width: 5.5rem; text-align: right; }
.app__rows { margin-top: 0.9rem; border-top: 1px solid var(--paper-border); }
.app__rows li { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid var(--paper-border); font-size: 0.875rem; color: var(--paper-ink); }
.app__rows li span:last-child { font: 600 0.875rem/1.4 var(--font-mono); font-variant-numeric: tabular-nums; }
.app__rows li small { color: var(--paper-muted); font: 400 0.75rem/1 var(--font-mono); margin-left: 0.4rem; }
.pane__cap { margin-top: var(--space-4); font-size: var(--text-sm); color: var(--paper-muted); line-height: 1.5; }
.undernote { margin-top: var(--space-4); }

/* ---- Section head ---- */
.head { display: grid; gap: var(--space-3); margin-bottom: var(--space-10); align-content: start; }
.head p { color: var(--muted); max-width: var(--measure); }
.split { display: grid; gap: var(--space-10); }
@media (min-width: 900px) { .split { align-items: start; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--space-16); } .split .head { margin-bottom: 0; } }

/* ---- Numbered rows (what you'll have, what you need, what it is not) ---- */
.rows > li { display: grid; grid-template-columns: 2.5rem 1fr; gap: var(--space-3); padding: 1.1rem 0; border-top: 1px solid var(--border); }
.rows > li:last-child { border-bottom: 1px solid var(--border); }
.rows .n { font: 500 0.8125rem/1.9 var(--font-mono); color: var(--subtle); }
.rows b { display: block; color: var(--ink); font-weight: 700; font-size: 1.125rem; line-height: 1.35; }
.rows span { color: var(--muted); }
.rows--plain > li { grid-template-columns: 1.5rem 1fr; padding: 0.8rem 0; }
.rows--plain .n { color: var(--muted); }

[data-theme="dark"] .classcard { border-color: var(--border-strong); }
[data-theme="dark"] .classcard__head, [data-theme="dark"] .total { border-color: var(--border-strong); }

/* ---- Big figure (five seats) ---- */
.figure { font: 800 clamp(6rem, 4rem + 10vw, 11rem)/0.8 var(--font-display); font-variation-settings: "wdth" 75; color: var(--ink); letter-spacing: -0.04em; }
.figure + .eyebrow { margin-top: var(--space-4); }
.pledge { padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); border-left: 6px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; border-block: 1px solid var(--border); border-right: 1px solid var(--border); }
.pledge p { font-size: var(--text-lg); color: var(--ink); max-width: 56ch; }
.pledge .note { margin-top: var(--space-3); font-size: var(--text-sm); color: var(--subtle); }

/* ---- FAQ ---- */
.faq details { border-top: 1px solid var(--border); }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); min-height: 3.5rem; padding: 0.75rem 0; color: var(--ink); font-weight: 700; font-size: 1.0625rem; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.5rem/1 var(--font-mono); color: var(--subtle); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 2.5rem 1.1rem 0; color: var(--muted); max-width: var(--measure); }

/* ---- Final CTA + footer ---- */
.final { background: var(--board); color: var(--board-ink); border-top: 0; }
.final h2 { color: var(--board-ink); max-width: none; font-size: var(--text-3xl); line-height: var(--leading-tight); }
.final .seatline { color: var(--board-muted); }
.final .seatline b { color: var(--board-ink); }
.footer { padding-block: var(--space-12); border-top: 1px solid var(--border); font-size: var(--text-sm); color: var(--muted); }
.footer__grid { display: grid; gap: var(--space-8); }
.footer nav { display: flex; flex-wrap: wrap; gap: 0 var(--space-6); }
.footer nav a { color: var(--text); display: inline-flex; align-items: center; min-height: var(--tap); }
.footer .legal { max-width: 70ch; color: var(--subtle); line-height: 1.55; }
@media (min-width: 860px) { .footer__grid { grid-template-columns: 1fr 1.4fr; } }

/* ---- Welcome page ---- */
.confirm { padding-block: clamp(2rem, 1rem + 4vw, 4rem) var(--space-12); }
.confirm h1 { font-size: clamp(2.5rem, 1.8rem + 3.6vw, 4.5rem); margin-top: var(--space-4); max-width: 16ch; }
.welcome { display: grid; gap: var(--space-10); padding-bottom: var(--section); }
@media (min-width: 960px) { .welcome { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr); gap: var(--space-16); align-items: start; } .welcome aside { position: sticky; top: 5rem; } }
.progress { display: flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-5); font: 500 0.8125rem/1 var(--font-mono); color: var(--muted); }
.progress__track { flex: 1; height: 0.5rem; background: var(--sunk); border: 1px solid var(--border); border-radius: 2px; overflow: hidden; }
.progress__track i { display: block; height: 100%; background: var(--accent); border-right: 1px solid var(--on-accent); }
.steps > li { border-top: 1px solid var(--border); }
.steps > li:last-child { border-bottom: 1px solid var(--border); }
.step { display: grid; grid-template-columns: 1.75rem 1fr; gap: var(--space-4); padding: 1.1rem 0; cursor: pointer; align-items: start; }
.step input { appearance: none; -webkit-appearance: none; margin: 0.15rem 0 0; width: 1.75rem; height: 1.75rem; border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; display: grid; place-items: center; }
.step input:checked { background: var(--accent); border-color: var(--on-accent); }
.step input:checked::after { content: ""; width: 0.45rem; height: 0.8rem; border: solid var(--on-accent); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }
.step b { display: block; color: var(--ink); font-size: 1.125rem; line-height: 1.35; }
.step b .n { font: 500 0.8125rem/1 var(--font-mono); color: var(--subtle); margin-right: 0.5rem; }
.step div > span { color: var(--muted); display: block; margin-top: 0.2rem; }
.step input:checked + div b { text-decoration: line-through; text-decoration-thickness: 1px; color: var(--muted); }
code, .chip { font: 500 0.875em/1 var(--font-mono); background: var(--sunk); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.12em 0.4em; color: var(--ink); white-space: nowrap; }
.stack { display: grid; gap: var(--space-6); }
.box { padding: 1.25rem; }
.box h3 { font-size: 1.25rem; }
.box p { margin-top: var(--space-2); color: var(--muted); font-size: 0.9375rem; }
.box .btn { margin-top: var(--space-4); }
.box .btnrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 0 var(--space-3); }
.starters { margin-top: var(--space-3); }
.starters li { font: 400 0.8125rem/1.5 var(--font-mono); color: var(--muted); padding: 0.45rem 0; border-top: 1px dashed var(--border); }
.box .ask { color: var(--ink); font-size: 1.0625rem; margin-top: var(--space-3); }

/* One rise on load. Nothing loops. */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise var(--dur-rise) var(--ease-out) both; }
  .rise:nth-child(2) { animation-delay: 40ms; } .rise:nth-child(3) { animation-delay: 80ms; } .rise:nth-child(4) { animation-delay: 120ms; }
  @keyframes rise { from { opacity: 0; transform: translateY(var(--rise)); } }
}


/* ================= Site-only additions (not in the mockups) ================= */
html { scroll-padding-top: 4.75rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { padding-bottom: env(safe-area-inset-bottom); }
.header .wrap, .footer .wrap { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }

.skip { position: absolute; left: -999px; top: 0.5rem; z-index: 30; background: var(--ink); color: var(--bg); padding: 0.75rem 1rem; border-radius: var(--radius-md); }
.skip:focus { left: 0.5rem; }

/* Kept for any inline form; the Reserve button itself is now a link to /signup. */
form.inline { display: contents; }
button.btn { appearance: none; -webkit-appearance: none; margin: 0; }
.btn--quiet:active { transform: translateY(1px); }

.section--flush { border-top: 0; padding-top: 0; }
.mono.inherit { color: inherit; }
.blank--empty { display: inline-block; width: 7.5em; max-width: 100%; height: 1.25em; vertical-align: text-bottom; border-bottom: 2px solid var(--on-accent); }
.box .note { font-size: var(--text-sm); color: var(--subtle); }
.prose .note { margin-top: var(--space-4); }
.pledge .eyebrow { font-size: var(--text-xs); color: var(--subtle); }

/* Preview notice on pages that are open to anyone as a preview (/welcome). */
.devbar { background: var(--sunk); border-bottom: 1px solid var(--border); color: var(--text); font-size: var(--text-sm); line-height: 1.5; padding: 0.75rem var(--gutter); text-align: center; }
.devbar b { color: var(--ink); }

/* Terms and privacy. */
.doc { padding-bottom: var(--section); }
.doc section { padding-block: var(--space-6); border-top: 1px solid var(--border); }
.doc h2 { font-size: var(--text-xl); line-height: var(--leading-snug); max-width: none; letter-spacing: -0.015em; }
.doc p { margin-top: var(--space-3); max-width: var(--measure); }
.box .eyebrow { font-size: var(--text-xs); margin-top: 0; color: var(--subtle); }

/* ---- Review 1 fixes ---- */
[hidden] { display: none !important; }

/* Landscape phones: keep every gutter clear of the notch, not only the header and footer. */
.wrap { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.devbar { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }

/* One gap, not two, between a section head and its content when the split stacks. */
.split .head { margin-bottom: 0; }

/* Small phones (320 to 359): the header button fits beside the wordmark. */
@media (max-width: 359px) {
  .header .wrap { gap: var(--space-2); }
  .header .btn--sm { padding: 0 0.625rem; gap: 0.3rem; }
}

/* /welcome: where the join button would be. A plain statement, set off by a rule, not a control that looks broken. */
.box .classlink { margin-top: var(--space-4); padding: 0.7rem 0.9rem; border-left: 3px solid var(--accent); background: var(--surface-2, transparent); color: var(--ink); font-weight: 600; font-size: 0.9375rem; line-height: 1.45; }

/* ---- 90-minute session: two-part checklist and the compact timeline ---- */
.steps__h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; margin: var(--space-8) 0 var(--space-4); }
.steps__h:first-child { margin-top: 0; }
.steps__h small { font: 500 var(--text-xs)/1.3 var(--font-mono); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--subtle); }
/* Steps done together have no tick box: a dashed square holds the place. */
.steps--together .step { cursor: default; }
.steps--together .step > i { display: block; width: 1.75rem; height: 1.75rem; margin-top: 0.15rem; border: 1.5px dashed var(--border-strong); border-radius: var(--radius-sm); }


/* ================= Polish pass 1 (design/polish-1.md, numbered P1 to P9 to match) ================= */
/* ---------- P1. The highlighter: no overlap, and it gets drawn ---------- */
.nb { white-space: nowrap; }
h1 mark, h2 mark {
  display: inline-block; position: relative; isolation: isolate; white-space: nowrap;
  background: none; margin-inline: -0.03em; padding: 0.04em 0.14em 0.07em; line-height: 0.9;
}
h1 mark::before, h2 mark::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--accent); border-radius: var(--radius-sm);
  transform: rotate(-0.6deg); transform-origin: 0 60%;
}
@media (prefers-reduced-motion: no-preference) {
  /* above the fold: plain CSS, no script needed */
  h1 mark { animation: mark-ink var(--dur-swipe) linear var(--delay-swipe) both; }
  h1 mark::before { animation: swipe var(--dur-swipe) var(--ease-out) var(--delay-swipe) both; }
  /* below the fold: motion.js adds .pre, then removes it when the heading scrolls in */
  h2 mark::before { transition: transform var(--dur-swipe) var(--ease-out) 120ms; }
  h2.pre mark::before { transform: rotate(-0.6deg) scaleX(0); }
  h2.pre mark { color: inherit; }
  h2 mark { transition: color var(--dur-swipe) linear 120ms; }
  @keyframes swipe { from { transform: rotate(-0.6deg) scaleX(0); } }
  @keyframes mark-ink { from { color: var(--ink); } }  /* matters on Chalkboard, where ink is light */
}

/* ---------- P2. The 90-minute plan ---------- */
.plan { border: 1.5px solid var(--ink); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
[data-theme="dark"] .plan { border-color: var(--border-strong); }
.plan__head { padding: 1rem 1.125rem 0.75rem; border-bottom: 1.5px solid var(--ink); }
[data-theme="dark"] .plan__head { border-color: var(--border-strong); }
.plan__legend, .plan__ticks { position: relative; }
.plan__legend { height: 2.5rem; }
.plan__ticks { height: 1.125rem; margin-top: 0.375rem; font: 500 var(--text-xs)/1.5 var(--font-mono); color: var(--subtle); font-variant-numeric: tabular-nums; }
.plan__legend span, .plan__ticks span { position: absolute; left: calc(var(--at) / var(--total, 90) * 100%); white-space: nowrap; }
.plan__ticks span:last-child { left: auto; right: 0; }
.plan__legend span { font: 700 0.9375rem/1.25 var(--font-body); color: var(--ink); }
.plan__legend b { display: block; font: 500 var(--text-xs)/1.5 var(--font-mono); color: var(--subtle); }
/* the bar: one strip, 90 minutes wide, a segment per block */
.plan__bar { display: flex; height: 2rem; gap: 0; }
.plan__seg {
  flex: var(--m) 1 0; min-width: 0; position: relative; display: grid; place-items: center;
  border: 1.5px solid var(--on-accent); margin-left: -1.5px; font-style: normal;
}
.plan__seg::before { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: 0 50%; }
.plan__seg b { position: relative; font: 600 var(--text-xs)/1 var(--font-mono); color: var(--on-accent); }
.plan__seg:first-child { margin-left: 0; border-radius: 3px 0 0 3px; }
.plan__seg:last-child { border-radius: 0 3px 3px 0; }
.plan__seg--pre { border: 1.5px dashed var(--border-strong); margin-right: 5.5px; border-radius: 3px !important; }
.plan__seg--pre::before { background: repeating-linear-gradient(-45deg, var(--sunk) 0 5px, var(--border) 5px 6.5px); }
.plan__seg--pre b { color: var(--ink); background: var(--surface); padding: 0.2rem 0.3rem; border-radius: 2px; }
.plan__seg--pre + .plan__seg { border-radius: 3px 0 0 3px; }
.plan__bar--mini { height: 0.625rem; }
/* rows on one spine */
.plan__rows { list-style: none; }
.plan__row {
  --pad-y: 0.95rem; --time: 3.25rem; --gap: 0.75rem; --node: 0.875rem;
  position: relative; display: grid; grid-template-columns: var(--time) var(--node) minmax(0, 1fr);
  column-gap: var(--gap); padding: var(--pad-y) 1.125rem; border-top: 1px solid var(--border);
}
.plan__row:first-child { border-top: 0; }
.plan__row--pre { background: var(--sunk); }
.plan__row::before { /* the spine */
  content: ""; position: absolute; top: 0; bottom: 0; width: 2px; background: var(--ink);
  left: calc(1.125rem + var(--time) + var(--gap) + var(--node) / 2 - 1px);
}
.plan__row:first-child::before { top: calc(var(--pad-y) + 0.75rem); }
.plan__row--pre::before { background: repeating-linear-gradient(to bottom, var(--border-strong) 0 4px, transparent 4px 8px); }
.plan__row--end::before { bottom: auto; height: calc(var(--pad-y) + 0.75rem); }
.plan__time { font: 600 0.875rem/1.52rem var(--font-mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.plan__time small { display: block; font-weight: 400; font-size: 0.75rem; line-height: 1.3; color: var(--subtle); white-space: nowrap; }
.plan__node {
  position: relative; z-index: 1; width: var(--node); height: var(--node); margin-top: 0.32rem;
  background: var(--accent); border: 1.5px solid var(--on-accent); border-radius: 3px;
}
.plan__row--pre .plan__node { background: var(--surface); border: 1.5px dashed var(--border-strong); }
.plan__row--end .plan__node { background: var(--ink); border-color: var(--ink); }
.plan__what b { display: block; color: var(--ink); font-size: 1.125rem; line-height: 1.35; }
.plan__what span { display: block; color: var(--muted); margin-top: 0.1rem; max-width: var(--measure); }
@media (min-width: 860px) {
  .plan__head { padding: 1.25rem 1.5rem 0.875rem; }
  .plan__row { --time: 4.5rem; --gap: 1.25rem; padding-inline: 1.5rem; }
  .plan__row::before { left: calc(1.5rem + var(--time) + var(--gap) + var(--node) / 2 - 1px); }
  .plan__time { font-size: 1rem; }
  .plan__time small { display: inline; margin-left: 0.5rem; }
  .plan__row { --time: 8.25rem; }
  /* title and description side by side: time | node | title | what happens */
  .plan__what { display: grid; grid-template-columns: 17rem minmax(0, 1fr); column-gap: var(--space-8); align-items: baseline; }
  .plan__what span { margin-top: 0; }
  .plan__row--end .plan__what { display: block; }
}
/* inside a narrow column (/welcome): always the phone layout */
.plan--compact .plan__row { --time: 3.25rem; --gap: 0.75rem; padding-inline: 1.125rem; }
.plan--compact .plan__row::before { left: calc(1.125rem + var(--time) + var(--gap) + var(--node) / 2 - 1px); }
.plan--compact .plan__time { font-size: 0.875rem; }
.plan--compact .plan__time small { display: block; margin-left: 0; }
.plan--compact .plan__what { display: block; }
.plan--compact .plan__head { padding: 1rem 1.125rem 0.75rem; }
@media (prefers-reduced-motion: no-preference) {
  /* the bar fills like a clock: 10ms per minute, so 900ms for the session */
  .plan:not(.pre) .plan__seg::before, .heroclock .plan__seg::before {
    animation: fill calc(var(--m) * 10ms) linear calc(var(--at) * 10ms + var(--delay-fill, 200ms)) both;
  }
  .plan:not(.pre) .plan__seg b { animation: fade 200ms linear calc(var(--at) * 10ms + var(--m) * 10ms + 120ms) both; }
  .heroclock { --delay-fill: 620ms; }
  @keyframes fill { from { transform: scaleX(0); } }
  @keyframes fade { from { opacity: 0; } }
}

/* ---------- P3. Hero: shorter lead, the clock drawn, a seat line that breaks on purpose ---------- */
.heroclock { margin-top: var(--space-5); max-width: 27rem; }
.heroclock .plan__ticks { color: var(--muted); }
.heroclock .plan__ticks b { color: var(--ink); font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.prose p, .head p, .faq details p, .doc p { text-wrap: pretty; }
.hero .cta { margin-top: var(--space-6); }
.seatline span { display: block; }
@media (min-width: 560px) {
  .seatline span { display: inline; }
  .seatline__tail::before { content: " · "; }
}
.hero .textlink { display: inline-block; min-height: 0; padding-block: 0.55rem; }
.textlink__arrow { display: inline-block; margin-left: 0.45em; transition: transform var(--dur-fast) var(--ease-out); }
@media (hover: hover) { .textlink:hover .textlink__arrow { transform: translateY(3px); } }
/* load order: eyebrow 0, h1 40, lead 80, clock 120, cta 160, seat line 200, card 240 */
@media (prefers-reduced-motion: no-preference) {
  .hero .rise:nth-child(5) { animation-delay: 160ms; }
  .hero .rise:nth-child(6) { animation-delay: 200ms; }
  .hero .classcard.rise { animation-delay: 240ms; }
}

/* ---------- P4. The pane types itself, once ---------- */
.ask__todo { color: transparent; }          /* untyped text keeps its space: no layout shift */
.ask .blank:empty { padding-inline: 0.22em; } /* the empty blank is the caret */
@media (prefers-reduced-motion: no-preference) {
  .pane .app__title, .pane .app__field, .pane .app__rows li { transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out); }
  .pane.is-waiting .app__title, .pane.is-waiting .app__field, .pane.is-waiting .app__rows li { opacity: 0; transform: translateY(6px); }
  .pane .app__rows { transition: border-color 240ms linear; }
  .pane.is-waiting .app__rows { border-color: transparent; }
  .pane .app__field { transition-delay: 70ms; }
  .pane .app__rows li:nth-child(1) { transition-delay: 140ms; }
  .pane .app__rows li:nth-child(2) { transition-delay: 210ms; }
  .pane .app__rows li:nth-child(3) { transition-delay: 280ms; }
  .pane .app__rows li:nth-child(4) { transition-delay: 350ms; }
  .pane.is-typing .blank::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 1px; background: var(--on-accent); vertical-align: -0.12em; }
}

/* ---------- P5. Buttons, links, focus ---------- */
.btn { --key: var(--ink); box-shadow: 0 2px 0 0 var(--key); }
[data-theme="dark"] .btn, .final .btn { --key: var(--accent-deep); }
@media (hover: hover) { .btn:hover { transform: translateY(1px); box-shadow: 0 1px 0 0 var(--key); } }
.btn:active { transform: translateY(2px); box-shadow: 0 0 0 0 var(--key); transition-duration: 60ms; }
.btn:focus-visible { outline-offset: 3px; }
.btn--quiet { box-shadow: none; transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
@media (hover: hover) { .btn--quiet:hover { transform: none; box-shadow: none; background: var(--sunk); border-color: var(--ink); } }
.btn--quiet:active { transform: translateY(1px); box-shadow: none; }
/* waiting for the next page: same width, new words */
.btn__swap { display: inline-grid; }
.btn__swap > * { grid-area: 1 / 1; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; }
.btn__busy { visibility: hidden; }
.btn.is-busy { pointer-events: none; transform: translateY(2px); box-shadow: 0 0 0 0 var(--key); }
.btn.is-busy .btn__label { visibility: hidden; }
.btn.is-busy .btn__busy { visibility: visible; }
/* focus ring that shows on the dark surfaces too */
.final :focus-visible, .pane__ask :focus-visible { outline-color: var(--accent); }
/* header links: 44px tall, underline slides in */
.nav a { display: inline-flex; align-items: center; min-height: var(--tap); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 6px; text-decoration-thickness: 2px; transition: text-decoration-color var(--dur-fast) var(--ease-out); }
.nav a:hover { text-decoration-color: var(--accent); }
/* phone: the header button steps aside while a full-size Reserve button is on screen */
.header .btn--sm { transition: opacity var(--dur-fast) var(--ease-out), visibility 0s linear 0s, transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
@media (max-width: 859px) { .header .btn--sm.is-dup { opacity: 0; visibility: hidden; transition-delay: 0s, var(--dur-fast), 0s, 0s; } }

/* ---------- P6. Examples: the sentence once, six blanks under it ---------- */
.starter__lead { font: 500 clamp(1.25rem, 1rem + 1.2vw, 1.75rem)/1.4 var(--font-mono); letter-spacing: -0.01em; color: var(--ink); }
.starter__lead .blank--empty { width: 4.5em; height: 1.1em; vertical-align: -0.2em; }
.starter__list { margin-top: var(--space-5); }
.starter__list li { padding: 0.7rem 0; border-top: 1px solid var(--border); font: 500 clamp(1rem, 0.92rem + 0.4vw, 1.125rem)/1.9 var(--font-mono); letter-spacing: -0.01em; }
.starter__list li:last-child { border-bottom: 1px solid var(--border); }
.starter__list small { display: block; font: 500 var(--text-xs)/1.3 var(--font-mono); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--subtle); }

/* ---------- P7. Class card total as a three-line sum ---------- */
.classcard .ledger > div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); padding: 0.1rem 0; border: 0; }
.classcard .ledger dt { font: 500 0.875rem/1.5 var(--font-mono); letter-spacing: 0; text-transform: none; color: var(--muted); }
.classcard .ledger dd { font: 700 0.9375rem/1.5 var(--font-mono); font-variant-numeric: tabular-nums; color: var(--ink); }
.classcard .ledger .ledger__sum { margin-top: 0.4rem; padding-top: 0.5rem; border-top: 1.5px solid var(--ink); }
[data-theme="dark"] .classcard .ledger .ledger__sum { border-color: var(--border-strong); }
.classcard .ledger .ledger__sum dt { color: var(--ink); font-weight: 700; }
.classcard .ledger .ledger__sum dd { font-size: 1.25rem; line-height: 1.2; }
.total .note { margin-top: 0.6rem; }
/* 320 to 359: label above value, so the date stays on one line */
@media (max-width: 359px) { .classcard dl:not(.ledger) > div { grid-template-columns: 1fr; gap: 0.1rem; } }

/* ---------- P8. Rhythm ---------- */
.subhead { margin: var(--space-8) 0 var(--space-3); }
.pledge { margin-top: var(--space-8); }
.confirm .lead { margin-top: var(--space-5); }
@media (min-width: 900px) { .split > .head { position: sticky; top: 5.75rem; } }
.rows--plain .n { font-size: 1rem; line-height: 1.6; color: var(--subtle); }
.faq summary { transition: color var(--dur-fast) var(--ease-out); }
.faq summary::after { transition: transform var(--dur-fast) var(--ease-out); }
@media (hover: hover) { .faq summary:hover::after { transform: scale(1.2); color: var(--ink); } }
@supports (interpolate-size: allow-keywords) {
  @media (prefers-reduced-motion: no-preference) {
    .faq { interpolate-size: allow-keywords; }
    .faq details::details-content { block-size: 0; overflow: clip; transition: block-size 240ms var(--ease-out), content-visibility 240ms allow-discrete; }
    .faq details[open]::details-content { block-size: auto; }
  }
}
/* one rise per block as it scrolls in; motion.js adds and removes .pre */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] { transition: opacity var(--dur-rise) var(--ease-out), transform var(--dur-rise) var(--ease-out); }
  [data-reveal].pre { opacity: 0; transform: translateY(var(--rise)); }
}
@media print { .pre { opacity: 1 !important; transform: none !important; } }

/* ---------- P9. Inner pages and footer ---------- */
body { min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
.doc { counter-reset: doc; }
.doc section { counter-increment: doc; }
.doc h2::before { content: counter(doc, decimal-leading-zero); display: block; margin-bottom: 0.35rem; font: 500 0.8125rem/1.3 var(--font-mono); letter-spacing: 0; color: var(--subtle); }
@media (min-width: 900px) {
  .doc section { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); column-gap: var(--space-16); padding-block: var(--space-8); }
  .doc section > h2 { grid-row: 1 / span 9; }
  .doc section > :not(h2) { grid-column: 2; }
  .doc section > h2 + p { margin-top: 0; }
}
.footer nav { gap: 0 var(--space-5); }
@media (max-width: 479px) { .footer nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-6); } }
@media (min-width: 860px) { .footer .legal { margin-top: 0.7rem; } }
/* checklist: space for the progress line is held before the script shows it */
.progress { min-height: 1.25rem; }
.progress[hidden] { display: flex !important; visibility: hidden; }
.progress__track i { transition: width 240ms var(--ease-out); }
.step input { transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); }
@media (prefers-reduced-motion: no-preference) {
  .step input:checked::after { animation: tick 180ms var(--ease-out) both; }
  @keyframes tick { from { opacity: 0; transform: rotate(45deg) translate(-1px, -1px) scale(0.4); } }
}

/* ---------- Polish 1, carried through the inner and city pages (site-builder) ---------- */
/* Inline styles moved to classes (P8). */
.split .head.head--tight, .head.head--tight { margin-bottom: var(--space-6); }
.head.head--next { margin-top: var(--space-12); }
.box .box__note { margin-top: var(--space-3); }
.pledge .eyebrow { margin-bottom: 0.6rem; }
.rows--after { margin-top: var(--space-6); }
.confirm .seatline--date { margin-top: var(--space-5); font-size: 0.875rem; }
.textlink__arrow--side { margin-left: 0.4em; }
@media (hover: hover) { .textlink:hover .textlink__arrow--side, .hero--city .textlink[href^="/"]:hover .textlink__arrow { transform: translateX(3px); } }

/* A long headline phrase must never push the page sideways: the mark may wrap on the smallest phones. */
h1 mark, h2 mark { max-width: 100%; }
/* City pages carry a full sentence in the H1, so it is set one step smaller than the home promise. */
.hero--city h1 { font-size: clamp(2.25rem, 1.55rem + 3.4vw, 4.25rem); line-height: 1; }

/* Header Reserve is a real submit button now: keep the two-part label on one line. */
.header .btn__label { gap: 0.4rem; }
@media (max-width: 359px) { .header .btn__label { gap: 0.3rem; } }

/* "Where this fits": what you want, where to look, what it is. One row each, this class last. */
.fit > li { display: grid; gap: 0.35rem; padding: 1.1rem 0; border-top: 1px solid var(--border); }
.fit > li:last-child { border-bottom: 1px solid var(--border); }
.fit__want { color: var(--ink); font-weight: 700; font-size: 1.0625rem; line-height: 1.35; }
.fit__want small { display: block; margin-bottom: 0.2rem; font: 500 var(--text-xs)/1.3 var(--font-mono); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--subtle); }
.fit__look b { display: block; color: var(--ink); font-weight: 600; line-height: 1.5; }
.fit__look > span { display: block; color: var(--muted); margin-top: 0.15rem; }
.fit__look a { display: inline-block; padding-block: 0.6rem; margin-block: -0.6rem; }
.fit__row--us .fit__look b { font-family: var(--font-mono); font-weight: 500; letter-spacing: -0.01em; }
@media (min-width: 640px) {
  .fit > li { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); column-gap: var(--space-8); }
}
.fit__closing { margin-top: var(--space-5); max-width: var(--measure); color: var(--text); text-wrap: pretty; }
.checked { margin-top: var(--space-2); font-family: var(--font-mono); }
.starter__h { margin-bottom: var(--space-4); }
.starter__list small { margin-bottom: 0.1rem; }

/* Footer: the site links, then the four city pages on their own line. */
.footer nav { margin-top: var(--space-2); }
.footer__cities { align-items: center; }
.footer__cities .eyebrow { flex-basis: 100%; margin-top: var(--space-3); }
@media (max-width: 479px) { .footer__cities .eyebrow { grid-column: 1 / -1; } }

/* ================= Review 2 ================= */
/* Hero eyebrow, no lone "CENTRAL" on a line of its own. City pages: place and date are two groups
   that stack on a phone and join with the dot from 560px. Home: one line, and its lead group
   ("Live online") drops out under 390px, where the card and the seat line already say it. */
.eyebrow--stack > span { display: block; }
.eyebrow--stack > .eyebrow__sep { display: none; }
@media (min-width: 560px) { .eyebrow--stack > span, .eyebrow--stack > .eyebrow__sep { display: inline; } }
@media (max-width: 389px) { .eyebrow__lead { display: none; } }
/* Seat line: the date and zone stay on one line on the smallest phones. */
@media (max-width: 359px) { .seatline { font-size: 0.75rem; letter-spacing: -0.02em; } }

/* ================= Schedule and sign-up sheet ================= */
/* A sheet on a clipboard: ink outline, a clip at the top, ruled lines. Open seats are blanks
   (the highlighter), taken seats are struck boxes. Every number on it is counted, not typed. */
.sheet { position: relative; margin-top: 1.25rem; background: var(--surface); border: 1.5px solid var(--ink); border-radius: var(--radius-lg); box-shadow: var(--shadow-pane); }
[data-theme="dark"] .sheet { border-color: var(--border-strong); }
.sheet__clip { position: absolute; top: -0.95rem; left: 50%; width: 6.5rem; height: 1.7rem; margin-left: -3.25rem; background: var(--ink); border-radius: 6px 6px 9px 9px; display: block; }
.sheet__clip::after { content: ""; position: absolute; left: 50%; top: 0.4rem; width: 2.25rem; height: 0.5rem; margin-left: -1.125rem; border-radius: 99px; background: var(--surface); opacity: 0.9; }
[data-theme="dark"] .sheet__clip { background: var(--border-strong); }
.sheet__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem; padding: 1.6rem 1.125rem 0.85rem; border-bottom: 1.5px solid var(--ink); background: var(--sunk); border-radius: calc(var(--radius-lg) - 2px) calc(var(--radius-lg) - 2px) 0 0; }
[data-theme="dark"] .sheet__head { border-color: var(--border-strong); }
.sheet__when { color: var(--ink); font-weight: 600; line-height: 1.4; }
.sheet__when .mono { font-size: 0.9375rem; }
.sheet__when small { display: block; font-size: var(--text-sm); font-weight: 400; color: var(--muted); }
.sheet__when small .mono { font-size: 0.8125rem; }
/* 320px: "Mondays ·" does not fit beside the time, so the day takes its own line and the dot goes. */
@media (max-width: 359px) { .sheet__day { display: block; } .sheet__dot { display: none; } }
.sheet__row { display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); gap: 0.6rem 0.75rem; padding: 1rem 1.125rem 1.1rem; border-bottom: 1px solid var(--border); align-items: center; }
.sheet__row > :not(.sheet__n):not(.sheet__date) { grid-column: 2; }
.sheet__n { font: 500 0.8125rem/1 var(--font-mono); color: var(--subtle); }
.sheet__date b { display: block; color: var(--ink); font: 800 1.5rem/1.1 var(--font-display); font-variation-settings: "wdth" var(--display-width); letter-spacing: -0.02em; }
.sheet__date .mono { display: block; margin-top: 0.3rem; font-size: 0.8125rem; color: var(--muted); }
.sheet__seats { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem 0.7rem; }
.sheet__open { color: var(--ink); font-weight: 700; }
.sheet__row--full .sheet__open { color: var(--muted); font-weight: 600; }
.slots { display: inline-flex; gap: 0.25rem; }
.slots i { display: block; width: 1.15rem; height: 1.15rem; border-radius: 3px; background: var(--accent); border: 1.5px solid var(--on-accent); border-bottom-width: 3px; }
.slots i.is-gone { background: linear-gradient(to top right, transparent calc(50% - 1px), var(--border-strong) calc(50% - 1px), var(--border-strong) calc(50% + 1px), transparent calc(50% + 1px)); border: 1.5px solid var(--border-strong); }
.sheet__row .btn { justify-self: stretch; }
.sheet__cal { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1rem; font-size: var(--text-sm); color: var(--subtle); }
.sheet__cal a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 600; }
.sheet__foot { padding: 0.8rem 1.125rem; font: 500 0.75rem/1.5 var(--font-mono); letter-spacing: 0.04em; color: var(--subtle); }
.sheet__rows > li:last-child { border-bottom: 1.5px solid var(--ink); }
[data-theme="dark"] .sheet__rows > li:last-child { border-color: var(--border-strong); }
.sheet__none { padding: 1.25rem 1.125rem 1.5rem; color: var(--muted); }
.sheetpage { padding-bottom: var(--section); }
@media (min-width: 700px) {
  .sheet__head, .sheet__row, .sheet__foot, .sheet__none { padding-inline: 1.5rem; }
  .sheet__row { grid-template-columns: 2rem minmax(11rem, 1.1fr) minmax(0, 1.2fr) 10.5rem; gap: 0.25rem 1.25rem; padding-block: 1.05rem; }
  .sheet__row > :not(.sheet__n):not(.sheet__date) { grid-column: auto; }
  .sheet__row > .sheet__cal:not(.sheet__n):not(.sheet__date) { grid-column: 2 / -1; margin-top: -0.2rem; }
  .sheet__row .btn { justify-self: end; width: 100%; }
}

/* The form is the same sheet: one ruled line per answer. */
.fields { display: grid; gap: 1.1rem; padding: 1.25rem 1.125rem 0.25rem; }
.field label { display: block; font: 500 var(--text-xs)/1.4 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--subtle); margin-bottom: 0.4rem; }
.field label small { font-size: inherit; letter-spacing: 0.06em; color: var(--subtle); text-transform: none; }
.field input[type="text"], .field input[type="email"], .field select {
  display: block; width: 100%; min-height: 3.25rem; padding: 0.5rem 0.85rem; margin: 0;
  font: 500 1.0625rem/1.3 var(--font-body); color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--border-strong); border-bottom-width: 3px; border-radius: var(--radius-md);
  appearance: none; -webkit-appearance: none;
}
.field select { padding-right: 2.5rem; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 1.25rem) 50%, calc(100% - 0.9rem) 50%; background-size: 0.36rem 0.36rem; background-repeat: no-repeat; text-overflow: ellipsis; }
.field input:focus-visible, .field select:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__err { margin-top: 0.4rem; font-size: var(--text-sm); font-weight: 600; color: var(--danger); }
.field--hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.field--hp * { position: absolute; }
.tick { display: grid !important; grid-template-columns: 1.75rem 1fr; gap: 0.85rem; align-items: start; cursor: pointer; font: 400 var(--text-base)/1.5 var(--font-body) !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--text) !important; margin: 0 !important; padding: 0.35rem 0; }
.tick input { appearance: none; -webkit-appearance: none; margin: 0.1rem 0 0; width: 1.75rem; height: 1.75rem; border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--bg); cursor: pointer; display: grid; place-items: center; }
.tick input:checked { background: var(--accent); border-color: var(--on-accent); }
.tick input:checked::after { content: ""; width: 0.45rem; height: 0.8rem; border: solid var(--on-accent); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }
.tick input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sheet__alert { margin: 1.1rem 1.125rem 0; padding: 0.7rem 0.85rem; border: 1.5px solid var(--danger); border-radius: var(--radius-md); color: var(--danger); font-weight: 600; font-size: 0.9375rem; background: var(--bg); }
.sheet__send { padding: 1rem 1.125rem 1.35rem; }
.sheet__send .note { margin-top: 0.85rem; }
@media (min-width: 700px) { .fields, .sheet__send { padding-inline: 1.5rem; } .sheet__alert { margin-inline: 1.5rem; } }
.lead--after { margin-top: var(--space-5); }
.rows__links { display: flex !important; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.75rem; }
/* Four header links: a little tighter until there is room. */
@media (min-width: 860px) and (max-width: 1019px) { .nav { gap: var(--space-5); } }
@media (max-width: 699px) { .sheet__callabel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } .sheet__cal { margin-top: -0.35rem; } }
@media (max-width: 359px) { .field select { font-size: 1rem; padding-left: 0.6rem; padding-right: 1.9rem; background-position: calc(100% - 1rem) 50%, calc(100% - 0.65rem) 50%; } .sheet__head, .sheet__row, .sheet__foot, .fields, .sheet__send { padding-inline: 0.9rem; } .sheet__alert { margin-inline: 0.9rem; } }

/* ---- Review 3 ---- */
/* A card heading that is an h2 in the outline but keeps the small card-heading look. */
.box .box__h { font-size: 1.25rem; line-height: var(--leading-snug); font-weight: 700; letter-spacing: -0.015em; }
.sheet__closed { font: 500 var(--text-xs)/1.4 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--subtle); }
.sheet__alert a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.sheet__alert:focus { outline: none; }
.sheet__none a { color: var(--link); }
.field--check { min-height: 4.1rem; }
:target { scroll-margin-top: 5rem; }

/* The owner's sign-ups page (src/pages/admin.js). Dense rows inside the same sheet. */
.desk__key { display: grid; gap: 1rem; max-width: 24rem; margin-top: var(--space-6); justify-items: start; }
.desk__key .field { width: 100%; }
.desk__key .field input[type="password"] { width: 100%; min-height: 3rem; padding: 0 0.85rem; font: 400 var(--text-base)/1.2 var(--font-body); color: var(--ink); background: var(--surface); border: 1.5px solid var(--border-strong); border-radius: var(--radius-md); }
.desk__key .field input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.desk__key .sheet__alert { margin: 0; }
.desk .lead b { color: var(--ink); }
.desk__wrap { display: grid; gap: var(--space-8); padding-bottom: var(--section); justify-items: start; }
.desk__wrap > * { width: 100%; }
.desk__wrap > form { width: auto; }
.desk__class { margin-top: 0; }
.desk__class .sheet__head { padding-top: 1rem; }
.desk__class .sheet__when { font-weight: 400; color: var(--text); font-size: 0.9375rem; }
.desk__class .sheet__when b { color: var(--ink); font-weight: 700; }
.desk__rows { list-style: none; margin: 0; padding: 0; }
.desk__row { display: grid; gap: 0.5rem; padding: 0.9rem 1.125rem 1rem; border-bottom: 1px solid var(--border); }
.desk__rows > li:last-child { border-bottom: 0; }
.desk__row--off { background: var(--sunk); }
.desk__row--off .desk__who b { text-decoration: line-through; color: var(--muted); }
.desk__row:target { box-shadow: inset 4px 0 0 var(--accent); }
.desk__who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.1rem 0.75rem; min-width: 0; }
.desk__who b { color: var(--ink); font-size: 1.125rem; }
.desk__who a { color: var(--link); overflow-wrap: anywhere; min-height: 1.75rem; }
.desk__who span { color: var(--muted); font-size: 0.9375rem; }
.desk__chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.desk__chip { font: 500 0.75rem/1.3 var(--font-mono); letter-spacing: 0.02em; padding: 0.22rem 0.5rem; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); color: var(--text); background: var(--bg); }
.desk__chip.is-seat, .desk__chip.is-done { border-color: var(--ok); color: var(--ok); font-weight: 700; }
.desk__chip.is-offer, .desk__chip.is-todo { background: var(--accent); border-color: var(--on-accent); color: var(--on-accent); font-weight: 700; }
.desk__chip.is-off { color: var(--muted); border-style: dashed; }
.desk__notes { font: 400 0.8125rem/1.5 var(--font-mono); color: var(--subtle); }
.desk__acts { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: flex-start; }
.desk__acts form { margin: 0; }
.desk__more { flex: 1 1 100%; }
.desk__more summary { display: inline-flex; align-items: center; min-height: var(--tap); cursor: pointer; color: var(--muted); font-size: 0.9375rem; text-decoration: underline; text-underline-offset: 3px; list-style: none; }
.desk__more summary::-webkit-details-marker { display: none; }
.desk__more summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.desk__more[open] { padding: 0.25rem 0 0.25rem 0.85rem; border-left: 2px solid var(--danger); }
.desk__more .note { margin: 0 0 0.6rem; max-width: 46ch; }
.desk__more .btn { border-color: var(--danger); color: var(--danger); }
.desk__offer { display: grid; gap: 0.75rem; padding: 0.9rem 1.125rem; border-bottom: 1.5px solid var(--ink); background: var(--accent); color: var(--on-accent); justify-items: start; }
.desk__offer p { font-weight: 600; max-width: 60ch; }
.desk__offer .btn { background: var(--on-accent); color: var(--accent); border-color: var(--on-accent); box-shadow: none; }
.desk__past > summary { cursor: pointer; min-height: var(--tap); display: flex; align-items: center; color: var(--muted); font-weight: 600; }
.desk__past .desk__class { margin-top: var(--space-6); }
.desk__log ul { list-style: none; margin: var(--space-2) 0 0; padding: 0; color: var(--text); font-size: 0.9375rem; }
.desk__log .note { margin-top: var(--space-3); }
@media (min-width: 760px) {
  .desk__row { grid-template-columns: minmax(0, 1fr) auto; column-gap: 1.5rem; align-items: start; }
  .desk__who, .desk__chips, .desk__notes { grid-column: 1; }
  .desk__acts { grid-column: 2; grid-row: 1 / span 3; justify-content: flex-end; max-width: 22rem; }
  .desk__more { text-align: right; }
  .desk__more[open] { text-align: left; }
}
