@font-face {
  font-family: "AH Next";
  src: url("/assets/atkinson-hyperlegible-next.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "AH Mono";
  src: url("/assets/atkinson-hyperlegible-mono.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --y: #ffd200;         /* signal yellow */
  --y-hi: #ffe14d;
  --board: #111;
  --deep: #0a0a0a;
  --ink: #000;
  --w: #fff;
  --text: #f2f2f2;
  --mute: #bdbdbd;      /* 10.6:1 on board */
  --rule: #353535;
  --strip: #262626;     /* summary strip */
  --gut: 16px;
  --col: 720px;
  --ring: var(--y);
  --f-word: "AH Next", system-ui, sans-serif;
  --f-num: "AH Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--board);
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--y) var(--deep);
  scroll-padding-top: 16px;
}
body {
  margin: 0;
  background: var(--board);
  color: var(--text);
  font: 400 1.125rem/1.5 var(--f-word);
  caret-color: var(--y);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
::selection { background: var(--y); color: var(--ink); }
.band ::selection, .gate ::selection, .hdr ::selection { background: var(--ink); color: var(--y); }

h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 750; }
p { margin: 0; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .14em; }
.n { font-family: var(--f-num); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; }
.hdr, .band, .gate, .go { --ring: var(--ink); }

.i { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: square; stroke-linejoin: miter; }

/* ---------- header: yellow wayfinding band ---------- */
.skip {
  position: absolute; left: 8px; top: -100px; z-index: 10;
  background: var(--ink); color: var(--y); padding: 12px 16px; font-weight: 700;
}
.skip:focus { top: 8px; }
.hdr { background: var(--y); color: var(--ink); }
.hdr__in {
  max-width: 1120px; margin: 0 auto; padding: 0 var(--gut);
  display: flex; align-items: center; gap: 24px; min-height: 48px;
}
.brand {
  font-weight: 800; font-size: 1.1875rem; letter-spacing: -.02em; text-decoration: none;
  display: inline-flex; align-items: center; min-height: 48px;
}
.brand span { font-weight: 500; }
.hdr__nav { display: none; margin-left: auto; }
.hdr__nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.hdr__nav a {
  display: flex; align-items: center; min-height: 52px; padding: 0 14px;
  font-weight: 650; font-size: 1rem; text-decoration: none;
}
.hdr__nav a:hover { background: var(--ink); color: var(--y); }
.hdr__nav a[aria-current="page"] { background: var(--ink); color: var(--y); }
.hdr__yr {
  margin-left: auto; background: var(--ink); color: var(--y);
  font-weight: 700; font-size: 1.0625rem; padding: 6px 10px; line-height: 1.2;
}
.hdr__nav + .hdr__yr { margin-left: 0; }

/* ---------- column ---------- */
.wrap { max-width: calc(var(--col) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut) 72px; }
.q { padding: 14px 0 14px; }
.q h1 {
  color: var(--w);
  font-size: clamp(1.875rem, 1.25rem + 2.7vw, 3.25rem);
  line-height: 1.06; letter-spacing: -.025em; font-weight: 780;
}
.q__sub { margin-top: 8px; color: var(--mute); font-size: 1.0625rem; line-height: 1.4; }

/* ---------- input bands ---------- */
.rc { display: grid; gap: 3px; margin: 0 calc(-1 * var(--gut)); }
.band {
  background: var(--y); color: var(--ink);
  padding: 10px var(--gut) 12px; border: 0; margin: 0; min-width: 0;
}
.band__top { display: flex; align-items: center; gap: 12px; min-height: 32px; }
.pict {
  width: 32px; height: 32px; flex: none; display: grid; place-items: center;
  background: var(--ink); color: var(--y); font-size: 1.25rem; font-weight: 700; line-height: 1;
}
.band__q { font-size: 1.1875rem; font-weight: 750; line-height: 1.2; letter-spacing: -.01em; }
.band__row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.band__row .fld { flex: 1 1 9rem; }
.band__h { margin-top: 5px; font-size: 1rem; line-height: 1.35; color: #1a1a1a; }
.band > .seg, .band > .fld { margin-top: 8px; }
.band > .fld--sel { display: flex; }

.fld {
  display: flex; align-items: center; min-height: 52px;
  background: var(--board); color: var(--w);
}
.fld:focus-within { outline: 3px solid var(--ink); outline-offset: 3px; }
.fld input, .fld select {
  flex: 1; min-width: 0; width: 100%; height: 52px; border: 0; border-radius: 0; margin: 0;
  background: transparent; color: inherit; padding: 0 12px; outline: none;
}
.fld input { font: 600 1.375rem/1 var(--f-num); letter-spacing: -.01em; }
.fld__u { padding-right: 12px; font: 500 1rem/1 var(--f-num); color: var(--mute); white-space: nowrap; }
.fld--pre .fld__u { padding: 0 0 0 12px; }
.fld--pre input { padding-left: 6px; }
.fld select {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  font: 600 1.125rem/1 var(--f-word); padding-right: 44px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffd200' stroke-width='2.5' stroke-linecap='square'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E") no-repeat right 12px center / 22px;
}
.fld select option { background: var(--board); color: var(--w); }
.fld:has([aria-invalid="true"]) { box-shadow: inset 0 -4px 0 var(--w); }

.seg { display: flex; flex: 1 1 11rem; gap: 0; border: 2px solid var(--ink); }
.seg label { flex: 1; display: flex; position: relative; cursor: pointer; }
.seg label + label { border-left: 2px solid var(--ink); }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 10px; font-weight: 700; font-size: 1.0625rem; text-align: center; line-height: 1.15;
}
.seg span::before {
  content: ""; width: 12px; height: 12px; flex: none; border: 2px solid currentColor;
}
.seg input:checked + span { background: var(--ink); color: var(--y); }
.seg input:checked + span::before { background: currentColor; }
.seg label:hover input:not(:checked) + span { background: rgb(0 0 0 / .08); }
.seg input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; position: relative; z-index: 1; box-shadow: inset 0 0 0 2px var(--y); }

.band__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 8px; margin-top: 10px; }
.sub { min-width: 0; }
.sub--wide { grid-column: 1 / -1; }
.more { margin: 6px var(--gut) 0; border-bottom: 1px solid var(--rule); }
.more summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px;
  color: var(--y); font-weight: 700; cursor: pointer; list-style: none;
}
.more summary::-webkit-details-marker { display: none; }
.more__b { padding: 4px 0 18px; display: grid; gap: 6px; max-width: 22rem; }
.more__l { font-weight: 650; }
.more .fld:focus-within { outline-color: var(--y); }
.more__h { color: var(--mute); font-size: 1rem; }

.err {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 8px;
  background: var(--ink); color: var(--w); padding: 10px 12px; font-size: 1rem; font-weight: 600; line-height: 1.35;
}
.err .i { color: var(--y); width: 22px; height: 22px; margin-top: -1px; }
.rc > .err { margin: 0 var(--gut); background: var(--strip); }

.go {
  display: flex; align-items: stretch; justify-content: space-between; width: 100%;
  margin-top: 9px; padding: 0; border: 0; border-radius: 0; cursor: pointer;
  background: var(--y); color: var(--ink); min-height: 60px;
  font: 800 1.3125rem/1.1 var(--f-word); letter-spacing: -.01em; text-align: left;
}
.go__t { display: flex; align-items: center; padding: 0 var(--gut); }
.go__p { display: grid; place-items: center; width: 60px; background: var(--ink); color: var(--y); overflow: hidden; }
.go__p .i { width: 28px; height: 28px; stroke-width: 3; transition: transform .25s var(--ease); }
.go:hover { background: var(--y-hi); }
.go:hover .go__p .i { transform: translateX(5px); }
.go:active { transform: translateY(1px); }
.go:focus-visible { outline: 3px solid var(--y); outline-offset: 3px; }

/* ---------- collapsed summary ---------- */
.sum {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0 calc(-1 * var(--gut)); padding: 4px 4px 4px var(--gut);
  background: var(--strip); color: #e4e4e4; min-height: 56px;
}
.sum__t { font-size: 1rem; line-height: 1.35; }
.sum__t .n { color: var(--w); }
.sum__edit {
  flex: none; min-height: 48px; min-width: 48px; padding: 0 14px; border: 0; border-radius: 0; cursor: pointer;
  background: transparent; color: var(--y); font: 700 1.0625rem/1 var(--f-word);
  text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .22em;
}
.sum__edit:hover { background: var(--board); }

/* ---------- gate verdict ---------- */
.res { margin-top: 20px; }
.gate {
  background: var(--y); color: var(--ink); margin: 0 calc(-1 * var(--gut));
  padding: 14px var(--gut) 20px; container-type: inline-size;
}
.gate:focus { outline: none; }
.gate:focus-visible { outline: 3px solid var(--y); outline-offset: 4px; }
.gate__word {
  /* OVERWEEG is ~5.2em wide: 18cqi keeps the longest word inside the gate, words never break mid-word */
  font-size: min(clamp(3.25rem, 17.5vw, 4.5rem), 18cqi); line-height: .9; letter-spacing: -.045em; font-weight: 820;
  text-wrap: balance; overflow-wrap: normal; hyphens: manual;
}
.gate__say { margin-top: 14px; padding-top: 14px; border-top: 3px solid var(--ink); }
.gate__title { font-size: 1.625rem; line-height: 1.12; letter-spacing: -.02em; font-weight: 780; }
.gate__line { margin-top: 8px; font-size: 1.1875rem; line-height: 1.4; max-width: 34em; }
.has-plain .gate__title { font-size: 1.5rem; line-height: 1.25; letter-spacing: -.01em; font-weight: 720; max-width: 30em; }
.has-plain .gate__line { font-size: 1.0625rem; }

/* the seller's promise vs our number: informational, white on the board */
.claim {
  margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--rule);
  color: var(--w); font-size: 1.375rem; font-weight: 700; line-height: 1.3;
}
.note { margin-top: 14px; color: var(--mute); font-size: 1rem; line-height: 1.45; max-width: 65ch; }
.key, .ask { margin-top: 24px; }
.key__h { color: var(--w); font-size: 1.1875rem; font-weight: 750; line-height: 1.25; }
.key .legend { margin-top: 8px; }
.key .legend li { font-size: 1rem; line-height: 1.4; }
@media (max-width: 599px) {
  .key .legend li { grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 8px 0; }
  .key .legend .chip { min-width: 6.5rem; }
}
.ask p { margin-top: 8px; max-width: 65ch; }
.ask ol { margin: 10px 0 0; padding-left: 1.4em; max-width: 65ch; }
.ask li + li { margin-top: 10px; }
.ask li::marker { color: var(--y); font-family: var(--f-num); font-weight: 700; }
.ask li strong { display: block; color: var(--w); }
.ask li span { color: var(--mute); font-size: 1rem; }
.ask .ask__deur { margin-top: 14px; color: var(--w); font-weight: 700; }

/* ---------- departure board ---------- */
.board { margin-top: 20px; }
.row {
  display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-areas: "p o e" "p o s";
  column-gap: 12px; row-gap: 6px; align-items: start;
  padding: 14px 0; border-top: 1px solid var(--rule);
}
.row:last-child { border-bottom: 1px solid var(--rule); }
.c-p { grid-area: p; width: 36px; height: 36px; display: grid; place-items: center; background: var(--ink); color: var(--y); outline: 1px solid var(--rule); }
.c-p .i { width: 22px; height: 22px; stroke-width: 2.25; }
.row--head .c-p { background: none; outline: 0; height: 0; }
.c-o { grid-area: o; min-width: 0; }
.c-e { grid-area: e; justify-self: end; }
.c-s { grid-area: s; justify-self: end; }
.row--head { padding: 0 0 8px; border-top: 0; row-gap: 2px; align-items: end; }
.row--head span {
  color: var(--y); font-size: .875rem; font-weight: 750; letter-spacing: .14em; line-height: 1.2;
}
.row--head .c-o { align-self: end; }
.r-l { display: block; color: var(--w); font-size: 1.1875rem; font-weight: 700; line-height: 1.25; }
.r-s { display: block; margin-top: 4px; color: var(--mute); font-size: 1rem; line-height: 1.35; }
.c-e { color: var(--w); font-size: 1.3125rem; font-weight: 600; white-space: nowrap; line-height: 1.2; }

.chip {
  display: inline-block; min-width: 7.75rem; padding: 6px 8px 5px; border: 2px solid currentColor;
  font: 800 .875rem/1.2 var(--f-word); letter-spacing: .07em; text-align: center; white-space: nowrap;
}
.chip--go { background: var(--y); border-color: var(--y); color: var(--ink); }
.chip--wait { color: var(--y); }
.chip--ok { color: var(--w); }
.chip--stop { background: var(--w); border-color: var(--w); color: var(--ink); }

/* split-flap: rows swing down one by one, chips flip once. Transform only: every frame stays readable. */
.is-flap .board__body .row {
  animation: flap .46s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 90ms);
  transform-origin: 50% 0;
}
.is-flap .board__body .chip {
  animation: flip .4s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 90ms + 260ms);
}
@keyframes flap {
  from { transform: perspective(700px) rotateX(-55deg); }
  to { transform: none; }
}
@keyframes flip {
  from { transform: perspective(300px) rotateX(70deg); }
  to { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .is-flap .board__body .row, .is-flap .board__body .chip { animation: none; }
  .go__p .i { transition: none; }
}
@media print {
  .is-flap .board__body .row, .is-flap .board__body .chip { animation: none; }
  .hdr__nav, .sum__edit, .share, #money, .ft nav { display: none; }
}

/* ---------- sources ---------- */
.src { margin-top: 24px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.src summary, .faq__i summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; cursor: pointer; list-style: none;
}
.src summary::-webkit-details-marker, .faq__i summary::-webkit-details-marker { display: none; }
.src summary { color: var(--y); font-weight: 700; }
.src summary:hover, .faq__i summary:hover { text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .2em; }
details[open] > summary .i--chev { transform: rotate(180deg); }
.i--chev { transition: transform .2s var(--ease); }
.src__list { list-style: none; margin: 0; padding: 0 0 8px; }
.src__list li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px;
  padding: 12px 0; border-top: 1px solid var(--rule);
}
.a-l { color: var(--w); font-size: 1.0625rem; line-height: 1.35; }
.a-v { color: var(--w); font-size: 1.0625rem; white-space: nowrap; text-align: right; }
.a-m { grid-column: 1 / -1; margin-top: 2px; color: var(--mute); font-size: .9375rem; line-height: 1.4; }
.src__credit { padding: 12px 0 18px; color: var(--mute); font-size: 1rem; border-top: 1px solid var(--rule); }

/* ---------- share ---------- */
.share { margin-top: 24px; }
.share__btns { display: grid; gap: 10px; }
.copy {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%;
  min-height: 56px; padding: 0 18px; border: 2px solid var(--w); border-radius: 0; cursor: pointer;
  background: transparent; color: var(--w); font: 750 1.125rem/1.2 var(--f-word); text-decoration: none; text-align: center;
}
.copy:hover { background: var(--strip); }
.copy .i--check, .copy.is-done .i--copy { display: none; }
.copy.is-done .i--check { display: block; }
.copy.is-done { background: var(--w); color: var(--ink); }
.share__h { margin-top: 8px; color: var(--mute); font-size: 1rem; text-align: center; }
.who { margin-top: 24px; color: var(--mute); font-size: 1rem; line-height: 1.45; }
.who a { color: var(--text); overflow-wrap: anywhere; }
.share__fb { margin-top: 12px; }
.share__fb label { display: block; margin-bottom: 6px; font-size: 1rem; }
.share__fb textarea {
  width: 100%; background: var(--deep); color: var(--w); border: 2px solid var(--w); border-radius: 0;
  padding: 10px; font: 400 .9375rem/1.45 var(--f-num);
}

/* ---------- money: always last ---------- */
#money { margin-top: 44px; }
.money { border-top: 1px solid var(--rule); padding-top: 18px; }
.money__tag {
  display: inline-block; border: 1px solid var(--mute); color: var(--mute);
  padding: 3px 8px; font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.money__why { margin-top: 10px; font-size: 1rem; color: var(--text); }
.money__go {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; margin-top: 4px;
  color: var(--y); font-weight: 700;
}
.money__go .i { width: 20px; height: 20px; }
.money__how, .money__none { color: var(--mute); font-size: 1rem; line-height: 1.45; overflow-wrap: break-word; }
.money__none { border-top: 1px solid var(--rule); padding-top: 18px; }
.money__how a, .money__none a { color: var(--text); }

.nojs { margin-top: 16px; padding: 14px var(--gut); background: var(--strip); }

/* ---------- prose below the tool ---------- */
.intro, .faq, .read { margin-top: 64px; }
.intro h2, .faq h2, .read h2 {
  color: var(--w); margin-bottom: 16px;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); line-height: 1.15; letter-spacing: -.02em;
}
.intro h2::before, .faq h2::before, .read h2::before {
  content: ""; display: block; width: 48px; height: 4px; margin-bottom: 14px; background: var(--y);
}
.intro p, .read > p { max-width: 65ch; }
.intro p + p, .read > p + p { margin-top: 12px; }
.intro a, .read a, .faq a { color: var(--y); }
.faq__i { border-top: 1px solid var(--rule); }
.faq__i:last-child { border-bottom: 1px solid var(--rule); }
.faq__i summary { color: var(--w); font-weight: 700; line-height: 1.3; padding: 10px 0; }
.faq__i summary .i { color: var(--y); }
.faq__i p { padding: 0 0 18px; max-width: 65ch; color: var(--text); }

/* ---------- read mode ---------- */
.toc ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; }
.toc a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px;
  border: 2px solid var(--y); color: var(--y); font-weight: 700; text-decoration: none;
}
.toc a:hover { background: var(--y); color: var(--ink); }
.read { scroll-margin-top: 16px; }
.fx { margin: 20px 0 0; }
.fx dt { color: var(--y); font-weight: 750; margin-top: 18px; }
.fx dd { margin: 4px 0 0; max-width: 65ch; }
.legend { list-style: none; margin: 16px 0 0; padding: 0; }
.legend li {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start;
  padding: 12px 0; border-top: 1px solid var(--rule);
}
.legend li { grid-template-columns: 8.75rem minmax(0, 1fr); }
.legend__c { display: grid; gap: 6px; justify-items: start; }
.legend .chip { min-width: 8.75rem; }
.plain { margin: 12px 0 0; padding-left: 1.2em; max-width: 65ch; }
.plain li + li { margin-top: 8px; }
.plain li::marker { color: var(--y); }

.tbl { width: 100%; border-collapse: collapse; margin-top: 24px; }
.tbl caption { text-align: left; color: var(--w); font-weight: 750; padding-bottom: 10px; caption-side: top; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 11px 12px 11px 0; border-top: 1px solid var(--rule); }
.tbl th:last-child, .tbl td:last-child { padding-right: 0; }
.tbl thead th {
  color: var(--y); font-size: .875rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase;
  border-top: 0; padding-bottom: 8px;
}
.tbl tbody th { font-weight: 650; color: var(--w); }
.tbl .t-num { text-align: right; white-space: nowrap; }
.t-sub { display: block; margin-top: 2px; color: var(--mute); font-weight: 400; font-size: .9375rem; line-height: 1.35; }
.tbl tbody tr:last-child > * { border-bottom: 1px solid var(--rule); }
.tbl td { font-size: 1rem; }
.tbl td.n { font-size: 1.0625rem; color: var(--w); }
.tbl--rank td:first-child { color: var(--y); width: 2ch; }
.credit { margin-top: 14px; color: var(--mute); font-size: 1rem; }

/* 404 link bands */
.band--link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 60px; text-decoration: none;
}
.band--link:hover { background: var(--y-hi); }
.band--link .i { width: 26px; height: 26px; stroke-width: 3; }

/* ---------- footer ---------- */
.ft { background: var(--deep); border-top: 6px solid var(--y); color: var(--mute); font-size: 1rem; }
.ft__in { max-width: calc(var(--col) + 2 * var(--gut)); margin: 0 auto; padding: 28px var(--gut) 40px; display: grid; gap: 12px; }
.ft__brand { color: var(--w); font-weight: 800; font-size: 1.125rem; }
.ft__nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; column-gap: 4px; }
.ft__nav a { display: inline-flex; align-items: center; min-height: 48px; padding-right: 16px; color: var(--text); }
.ft a { color: var(--text); }

/* ---------- wider screens ---------- */
@media (max-width: 359px) {
  .chip { min-width: 0; }
  .row { column-gap: 10px; }
}
@media (min-width: 600px) {
  :root { --gut: 24px; }
  .rc { margin: 0; }
  .sum { margin: 0; }
  .band { padding-left: 20px; padding-right: 20px; }
  .go__t { padding: 0 20px; }
  .row { grid-template-columns: 40px minmax(0, 1fr) 8.5rem 9rem; grid-template-areas: "p o e s"; align-items: center; column-gap: 18px; }
  .c-p { width: 40px; height: 40px; }
  .gate { margin: 0; padding: 18px 24px 24px; }
  .gate__title { font-size: 1.875rem; }
  .c-e, .c-s { justify-self: end; }
  .share__btns { grid-template-columns: 1fr 1fr; }
  .row--head { align-items: end; }
}
@media (min-width: 900px) {
  body { font-size: 1.1875rem; }
  .hdr__in { min-height: 60px; }
  .hdr__nav { display: block; }
  .hdr__nav a { min-height: 60px; }
  .hdr__yr { margin-left: 8px; }
  .q { padding: 48px 0 28px; }
  .q__sub { font-size: 1.1875rem; }
  .band { display: grid; grid-template-columns: 15rem minmax(0, 1fr); column-gap: 24px; align-items: start; padding: 18px 24px; }
  .band__top { grid-column: 1; grid-row: 1 / span 4; align-self: start; padding-top: 8px; }
  .band > :not(.band__top) { grid-column: 2; }
  .band > .seg, .band > .fld, .band__row, .band__grid { margin-top: 0; }
  .band > .seg + .err, .band > .fld + .band__h { margin-top: 8px; }
  .band > .err + .fld, .band > .err + .sr + .fld { margin-top: 10px; }
  .band--link { display: flex; }
  .pict { width: 40px; height: 40px; font-size: 1.375rem; }
  .go { min-height: 68px; font-size: 1.5rem; }
  .go__p { width: 68px; }
  .res { margin-top: 32px; }
}

/* overhead display: gate + board run wider than the input column */
@media (min-width: 900px) {
  .res, .sum { width: min(1040px, 100vw - 48px); margin-left: calc(50% - min(1040px, 100vw - 48px) / 2); }
  .res { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px; align-items: start; }
  .gate, .board { grid-column: 1 / -1; }
  .src { grid-column: 1 / -1; margin-top: 28px; }
  .res > * { grid-column: 1 / -1; }
  .share { margin-top: 28px; }
  .share__btns { max-width: 720px; }
  #money { margin-top: 36px; max-width: 720px; }
  /* result state: the question lines up with the overhead display */
  :has(> #sum:not([hidden])) > .q { width: min(1040px, 100vw - 48px); margin-left: calc(50% - min(1040px, 100vw - 48px) / 2); }
  .gate { display: grid; grid-template-columns: fit-content(50%) minmax(0, 1fr); column-gap: 40px; align-items: end; padding: 28px 32px 30px; }
  .gate__word { font-size: min(clamp(5rem, 7.4vw, 7rem), 9cqi); line-height: .86; }
  .gate__say { margin: 0; padding: 0 0 0 28px; border-top: 0; border-left: 3px solid var(--ink); align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; }
  .gate__title { font-size: 2.125rem; }
  .has-plain .gate__title { font-size: 1.5rem; }
  .row { grid-template-columns: 44px minmax(0, 1fr) 11rem 10rem; column-gap: 24px; padding: 16px 0; }
  .c-p { width: 44px; height: 44px; }
  .c-p .i { width: 26px; height: 26px; }
  .c-e { font-size: 1.5rem; }
  .share__h { text-align: left; }
}
