/* Tomorrow's Edition — Soldream's Dispatch look: paper, ink, one purple, rules instead of boxes. */

@font-face { font-family: "Instrument Serif"; src: url("fonts/InstrumentSerif-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/InstrumentSerif-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("fonts/SchibstedGrotesk-Regular.ttf") format("truetype"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("fonts/SchibstedGrotesk-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("fonts/SchibstedGrotesk-Bold.ttf") format("truetype"); font-weight: 700 800; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/IBMPlexMono-Regular.ttf") format("truetype"); font-weight: 400 600; font-display: swap; }

:root {
  /* Day edition (Dispatch light). */
  --paper: #F3EFE6;
  --paper-2: #EBE5D8;
  --paper-3: #DDD5C4;
  --ink: #16130E;
  --ink-1: #4A453B;
  --ink-2: #6C6558;
  --rule: #CFC6B4;
  --accent: #5A2BD0;
  --gain: #0A7347;
  --loss: #B0261B;
  --on-ink: #F3EFE6;
  --shadow: rgba(22, 19, 14, 0.42);
  --speck: 0.09 0.07 0.05;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --f-caption: 0.8125rem;
  --f-small: 0.9rem;
  --f-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --f-dek: clamp(1.125rem, 1.02rem + 0.45vw, 1.375rem);
  --f-h3: clamp(1.5rem, 1.25rem + 0.9vw, 2rem);
  --f-h2: clamp(2.1rem, 1.5rem + 2.4vw, 3.4rem);
  --f-headline: clamp(2.75rem, 1.1rem + 6.4vw, 6.75rem);
  --f-nameplate: clamp(3.75rem, 0.8rem + 11.5vw, 10.75rem);
  --gutter: clamp(16px, 4vw, 56px);
  color-scheme: light;
}

/* Night edition (Dispatch dark): no-JS readers get it from their system; the toggle sets it. */
@media (prefers-color-scheme: dark) {
  :root:not([data-edition="day"]) {
    --paper: #14120E; --paper-2: #1D1A15; --paper-3: #2A261F;
    --ink: #EEE8DC; --ink-1: #BDB5A6; --ink-2: #9A9283; --rule: #3A352C;
    --accent: #B79CFF; --gain: #5FD39A; --loss: #FF8A7A; --on-ink: #14120E;
    --shadow: rgba(0, 0, 0, 0.7); --speck: 0.93 0.91 0.86;
    color-scheme: dark;
  }
}
:root[data-edition="night"] {
  --paper: #14120E; --paper-2: #1D1A15; --paper-3: #2A261F;
  --ink: #EEE8DC; --ink-1: #BDB5A6; --ink-2: #9A9283; --rule: #3A352C;
  --accent: #B79CFF; --gain: #5FD39A; --loss: #FF8A7A; --on-ink: #14120E;
  --shadow: rgba(0, 0, 0, 0.7); --speck: 0.93 0.91 0.86;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--f-body)/1.55 var(--sans);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}
::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 1px; }
a { color: inherit; }
[hidden] { display: none !important; }

/* ——— The paper and the city ——— */

.paper {
  background-color: var(--paper);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5 0 0 0 0 .45 0 0 0 0 .38 0 0 0 .07 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  color: var(--ink);
  outline: none;
}
html.js, html.js body { height: 100%; overflow: hidden; }
html.js .paper {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform-origin: 0 0;
  scrollbar-width: thin;
  scrollbar-color: var(--ink-2) transparent;
}
html.in-city body { background: #05040A; }
html.in-city .paper { pointer-events: none; user-select: none; }
html.boot .paper { visibility: hidden; animation: boot-reveal 0s 3s forwards; }
@keyframes boot-reveal { to { visibility: visible; } }

.stage { position: fixed; inset: 0; z-index: 3; pointer-events: none; display: none; }
html.in-city .stage { display: block; }
.city { display: block; width: 100%; height: 100%; }
.cold-open {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0 var(--gutter);
  text-align: center;
  font: italic 400 clamp(2rem, 1rem + 4vw, 4.75rem)/1.1 var(--serif);
  color: #EEE8DC;
  letter-spacing: 0.01em;
  text-shadow: 0 0 42px rgba(183, 156, 255, 0.4);
  opacity: 0;
}

.cinema-controls {
  position: fixed;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: max(22px, env(safe-area-inset-bottom));
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  justify-content: center;
  padding: 0 var(--gutter);
  pointer-events: none;
}
.cinema-controls > * { pointer-events: auto; }
.cine-btn {
  font: 600 0.95rem/1 var(--sans);
  color: #EEE8DC;
  background: rgba(20, 18, 14, 0.55);
  border: 1.5px solid rgba(238, 232, 220, 0.6);
  border-radius: 2px;
  padding: 12px 18px;
  min-height: 44px;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background-color 120ms ease-out, border-color 120ms ease-out, opacity 400ms ease-out;
}
.cine-btn:hover { background: rgba(20, 18, 14, 0.82); border-color: #EEE8DC; }
.cine-btn:focus-visible { outline-color: #B79CFF; }
.cine-primary { background: #EEE8DC; color: #14120E; border-color: #EEE8DC; }
.cine-primary:hover { background: #FFFFFF; border-color: #FFFFFF; }
.cine-hint { margin: 0; color: rgba(238, 232, 220, 0.88); font-size: 0.9rem; text-shadow: 0 1px 8px #000; transition: opacity 400ms ease-out; }
#read-again, #outside-hint { opacity: 0; }
html.outside #read-again, html.outside #outside-hint, #read-again:focus-visible { opacity: 1; }

/* ——— Sheet ——— */

.sheet { max-width: 1340px; margin: 0 auto; padding: clamp(14px, 2.4vw, 34px) var(--gutter) 56px; }

.masthead { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 12px 20px; }
.masthead p { margin: 0; }
.dateline { font-weight: 600; font-size: var(--f-small); }
.edition-line { margin-top: 4px !important; color: var(--ink-2); font-size: var(--f-caption); }
.nameplate { font: 400 var(--f-nameplate)/0.86 var(--serif); letter-spacing: -0.02em; text-align: center; white-space: nowrap; }
.nameplate a { text-decoration: none; }
.mast-right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.early { color: var(--accent); font-weight: 600; font-size: var(--f-small); }
.edition-toggle {
  font: 500 var(--f-caption) var(--sans);
  color: var(--ink-1);
  background: none;
  border: 0;
  padding: 8px 0;
  min-height: 36px;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.edition-toggle:hover { color: var(--ink); text-decoration-thickness: 2px; }
.rule-double { height: 7px; margin-top: 14px; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink); }

.sections { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.sections > a:not(.btn) {
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 8px 0;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 2px) / 0 2px no-repeat;
  transition: background-size 160ms ease-out;
}
.sections > a:not(.btn):hover { background-size: 100% 2px; }
.nav-gap { flex: 1; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: 600 0.95rem/1.15 var(--sans);
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  padding: 10px 16px;
  min-height: 42px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background-color 120ms ease-out, color 120ms ease-out, transform 80ms ease-out;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--on-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--ink) 84%, var(--accent)); border-color: color-mix(in srgb, var(--ink) 84%, var(--accent)); }
.btn-secondary { background: transparent; color: var(--ink); }
.btn-secondary:hover { background: var(--paper-2); }
.btn-secondary[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.btn-quiet { border-color: transparent; background: none; color: var(--ink-1); text-decoration: underline; text-underline-offset: 4px; padding-inline: 6px; }
.btn-quiet:hover { color: var(--ink); }
.btn-large { min-height: 50px; padding: 14px 24px; font-size: 1rem; justify-self: start; }

.ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  padding: 9px 0;
  font-size: var(--f-caption);
  font-weight: 500;
  color: var(--ink-1);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.ticker-track { display: flex; width: max-content; animation: ticker 70s linear infinite; }
.ticker-run { display: flex; }
.ticker-run span { position: relative; padding: 0 20px; white-space: nowrap; }
.ticker-run span::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 50%;
  width: 5px;
  height: 5px;
  background: var(--accent);
  transform: translateY(-50%) rotate(45deg);
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ——— Front page ——— */

.front {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(22px, 3vw, 40px) 0 clamp(28px, 3vw, 40px);
  border-bottom: 1px solid var(--rule);
}
.headline { font: 400 var(--f-headline)/0.95 var(--serif); letter-spacing: -0.015em; margin: 0 0 22px; text-wrap: balance; overflow-wrap: anywhere; }
.standfirst { font-size: var(--f-dek); line-height: 1.45; color: var(--ink-1); max-width: 62ch; margin: 0 0 14px; }
.byline { margin: 0 0 26px; font-size: var(--f-small); color: var(--ink-2); }
.byline strong { color: var(--ink); font-weight: 600; }
.fig-night { margin: 0; padding-top: 16px; border-top: 1px solid var(--rule); }
.fig-night svg { display: block; width: 100%; height: auto; overflow: visible; }
.fig-area { fill: var(--gain); fill-opacity: 0.09; }
.fig-line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.fig-dot { fill: var(--ink); }
.fig-base { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 4 5; vector-effect: non-scaling-stroke; }
.fig-base-label { font: italic 400 16px var(--serif); fill: var(--ink-2); }
.fig-tick { stroke: var(--ink-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.fig-note { font: italic 400 20px var(--serif); fill: var(--ink-1); }
figcaption { margin-top: 8px; font-size: var(--f-caption); color: var(--ink-2); line-height: 1.45; }

.lead-side { display: flex; flex-direction: column; gap: 34px; padding-left: clamp(20px, 3vw, 36px); border-left: 1px solid var(--rule); }
.name-form label { display: block; margin-bottom: 12px; font: 400 var(--f-h3)/1.05 var(--serif); }
.field-line { display: flex; gap: 10px; align-items: flex-end; }
.field-line input,
.field input[type="text"],
.field input[type="email"],
.field textarea {
  flex: 1;
  min-width: 0;
  width: 100%;
  font: 400 1.0625rem/1.35 var(--sans);
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--ink);
  border-radius: 0;
  padding: 10px 2px;
  transition: border-color 120ms ease-out, background-color 120ms ease-out;
}
.field-line input:focus-visible,
.field input:focus-visible,
.field textarea:focus-visible { outline: none; border-bottom-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); box-shadow: 0 2px 0 0 var(--accent); }
::placeholder { color: var(--ink-2); opacity: 1; }
.hint { margin: 8px 0 0; font-size: var(--f-caption); color: var(--ink-2); }
.side-head { margin: 0 0 4px; padding-bottom: 8px; font: 400 var(--f-h3)/1.05 var(--serif); border-bottom: 1.5px solid var(--ink); }
.index ol { list-style: none; margin: 0; padding: 0; }
.index li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.index-num { font: 400 1.9rem/0.9 var(--serif); color: var(--accent); }
.index a { font-weight: 600; text-decoration: none; }
.index a:hover { text-decoration: underline; text-underline-offset: 3px; }
.index p { margin: 4px 0 0; font-size: var(--f-small); color: var(--ink-1); line-height: 1.45; }

/* ——— Sections ——— */

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 24px;
  margin: clamp(44px, 6vw, 76px) 0 28px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--ink);
}
.section-head h2 { margin: 0; font: 400 var(--f-h2)/1 var(--serif); letter-spacing: -0.01em; }
.section-head p { margin: 0; font-size: var(--f-small); color: var(--ink-2); }

.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.story { padding: 0 clamp(16px, 2vw, 28px) 30px; border-left: 1px solid var(--rule); }
.story-lead { grid-column: span 2; padding-left: 0; border-left: 0; }
.story-a { padding-left: 0; border-left: 0; }
.story-a, .story-b, .story-c { padding-top: 26px; border-top: 1px solid var(--rule); }
.story h3 { margin: 14px 0 10px; font: 400 var(--f-h3)/1.08 var(--serif); text-wrap: balance; }
.story-lead h3 { font-size: clamp(2rem, 1.15rem + 2.7vw, 3.35rem); line-height: 1.02; }
.story > h3:first-child { margin-top: 0; }
.dek { margin: 0 0 12px; font-weight: 600; font-size: 1.0625rem; line-height: 1.42; }
.story-body p { margin: 0 0 12px; line-height: 1.62; color: var(--ink-1); hyphens: auto; }
.story-lead .story-body { columns: 2 240px; column-gap: 30px; column-rule: 1px solid var(--rule); }
.story-lead .story-body p:first-child::first-letter { float: left; padding: 6px 10px 0 0; font: 400 4.5em/0.8 var(--serif); color: var(--ink); }
.story-quote { margin: 16px 0 0; padding-top: 12px; border-top: 1.5px solid var(--ink); }
.story-quote p { margin: 0; font: italic 400 1.6rem/1.15 var(--serif); color: var(--ink); text-wrap: balance; }
.photo { margin: 0; }
.photo-frame {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-3) radial-gradient(circle, color-mix(in srgb, var(--ink) 42%, transparent) 1.1px, transparent 1.6px) 0 0 / 5px 5px;
}
.photo-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo.is-printed .photo-frame { background: none; }

.desk-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.5vw, 34px); }
.desk-col { padding-top: 14px; border-top: 1.5px solid var(--ink); }
.desk-num { display: block; margin-bottom: 10px; font: 400 3.1rem/0.9 var(--serif); color: var(--accent); }
.desk-col h3 { margin: 0 0 8px; font: 700 1.15rem/1.2 var(--sans); }
.desk-col p { margin: 0; color: var(--ink-1); line-height: 1.58; }
.pull-quote { max-width: 980px; margin: clamp(36px, 5vw, 60px) auto 14px; padding: 26px 0; border-block: 1px solid var(--rule); text-align: center; }
.pull-quote p { margin: 0; font: italic 400 clamp(2rem, 1.1rem + 3.2vw, 4rem)/1.04 var(--serif); text-wrap: balance; }
.looks { margin: 0; text-align: center; font-size: var(--f-small); color: var(--ink-2); }

/* ——— The press ——— */

.press-intro { max-width: 920px; columns: 2 300px; column-gap: 34px; }
.press-intro p { margin: 0 0 12px; font-size: var(--f-dek); line-height: 1.45; color: var(--ink-1); }
.lever { margin: 30px 0 8px; padding: 22px clamp(16px, 3vw, 34px) 24px; background: var(--paper-2); border-top: 1.5px solid var(--ink); }
.lever-label { display: block; margin-bottom: 16px; font: 400 var(--f-h3)/1.1 var(--serif); }
#stake {
  --stop: 0.333;
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 34px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
#stake::-webkit-slider-runnable-track { height: 3px; background: linear-gradient(90deg, var(--ink) calc(var(--stop) * 100%), var(--rule) 0); }
#stake::-moz-range-track { height: 3px; background: var(--rule); }
#stake::-moz-range-progress { height: 3px; background: var(--ink); }
#stake::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  margin-top: -12.5px;
  background: var(--ink);
  border: 4px solid var(--paper-2);
  border-radius: 2px;
  box-shadow: 0 0 0 1.5px var(--ink);
  transition: transform 120ms ease-out;
}
#stake::-moz-range-thumb { width: 20px; height: 20px; background: var(--ink); border: 4px solid var(--paper-2); border-radius: 2px; box-shadow: 0 0 0 1.5px var(--ink); }
#stake:active::-webkit-slider-thumb { transform: scale(1.08); }
#stake:focus-visible { outline: none; }
#stake:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 1.5px var(--ink), 0 0 0 5px var(--accent); }
#stake:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 1.5px var(--ink), 0 0 0 5px var(--accent); }
.lever-stops { position: relative; height: 46px; margin: 6px 14px 0; }
.lever-stop {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  font: 500 var(--f-small)/1.2 var(--sans);
  color: var(--ink-1);
  background: none;
  border: 0;
  padding: 10px 4px;
  min-height: 44px;
  white-space: nowrap;
  cursor: pointer;
}
.lever-stop:nth-child(1) { left: 0; transform: translateX(-14px); }
.lever-stop:nth-child(2) { left: 33.333%; }
.lever-stop:nth-child(3) { left: 66.667%; }
.lever-stop:nth-child(4) { left: 100%; transform: translateX(calc(-100% + 14px)); }
.lever-stop:hover { color: var(--ink); }
.lever-stop.is-you { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.lever-readout { display: block; min-height: 2.5em; margin-top: 10px; font: 400 clamp(1.3rem, 1rem + 1vw, 1.85rem)/1.2 var(--serif); text-wrap: balance; }

.boarding { margin: 30px 0 0; }
.boarding-axis { display: flex; justify-content: space-between; margin: 0 0 8px; font-size: var(--f-caption); font-weight: 600; color: var(--ink-2); }
.waves { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 0; }
.wave {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 92px;
  padding: 12px 14px 14px;
  border: 1.5px solid var(--ink);
  transition: background-color 220ms ease-out, color 220ms ease-out, border-color 220ms ease-out;
}
.wave-num { font: 400 2.1rem/1 var(--serif); }
.wave-name { font-size: var(--f-small); font-weight: 600; }
.wave-you { margin-top: auto; font-size: var(--f-caption); font-weight: 700; visibility: hidden; }
.wave.is-you { background: var(--ink); color: var(--on-ink); }
.wave.is-you .wave-you { visibility: visible; }
.wave.is-you ~ .wave { border-style: dashed; border-color: var(--ink-2); color: var(--ink-2); }

.editions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 30px); margin-top: 34px; }
.edition { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1.5px solid var(--ink); }
.edition.is-you { padding-top: 11.5px; border-top-width: 4px; }
.edition-wave { margin: 0; font-size: var(--f-caption); font-weight: 600; color: var(--ink-2); }
.edition h3 { margin: 0; font: 400 1.95rem/1.04 var(--serif); }
.edition-stake { margin: 0; font-weight: 700; }
.edition-boards { margin: 0; font-size: var(--f-small); color: var(--ink-1); }
.edition ul { margin: 4px 0 10px; padding-left: 18px; color: var(--ink-1); line-height: 1.5; }
.edition li::marker { color: var(--accent); }
.edition-pick { align-self: flex-start; margin-top: auto; }
.edition-mark { margin: 0; font-size: var(--f-caption); font-weight: 700; color: var(--accent); visibility: hidden; }
.edition.is-you .edition-mark { visibility: visible; }

/* ——— Reservation and the boarding pass ——— */

.reserve-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 60px); align-items: start; }
.reserve-form { display: grid; gap: 22px; max-width: 660px; }
.field { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label, .field > legend { padding: 0; font-size: var(--f-small); font-weight: 600; }
.field > legend { margin-bottom: 8px; }
.field textarea { resize: vertical; min-height: 3.4em; }
.field-error { margin: 0; font-size: var(--f-small); font-weight: 600; color: var(--loss); }
.field-error:empty { display: none; }
[aria-invalid="true"] { border-bottom-color: var(--loss) !important; }
.radios { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.radio {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2px 10px;
  padding: 10px 12px;
  border: 1.5px solid var(--rule);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 120ms ease-out, background-color 120ms ease-out;
}
.radio:hover { border-color: var(--ink-2); }
.radio:has(input:checked) { border-color: var(--ink); background: var(--paper-2); }
.radio input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.radio span { font-weight: 600; }
.radio small { grid-column: 2; font-size: var(--f-caption); color: var(--ink-2); }
.check { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: var(--f-small); color: var(--ink-1); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); }
.next ol { list-style: none; counter-reset: next; margin: 10px 0 0; padding: 0; }
.next li { display: grid; grid-template-columns: 32px 1fr; padding: 12px 0; border-bottom: 1px solid var(--rule); color: var(--ink-1); counter-increment: next; }
.next li::before { content: counter(next); font: 400 1.8rem/0.95 var(--serif); color: var(--accent); }

.pass {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  background: var(--paper-2);
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  box-shadow: 0 22px 44px -26px var(--shadow);
  animation: print-in 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
  outline-offset: 6px;
}
/* Movement only: a pass whose animation never runs is still a pass on the page. */
@keyframes print-in { from { transform: translateY(-18px) rotate(-0.8deg); box-shadow: 0 4px 10px -6px var(--shadow); } }
.pass-main { position: relative; padding: 22px 24px 24px; }
.pass-brand { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 10px; font-size: var(--f-caption); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.pass-mark { font: 400 1.6rem/1 var(--serif); letter-spacing: 0; text-transform: none; color: var(--ink); }
.pass-edition { margin: 0 0 18px; padding-right: 96px; font: 400 clamp(2rem, 1.4rem + 2vw, 2.9rem)/1 var(--serif); }
.pass-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; margin: 0; }
.pass-fields div:first-child { grid-column: 1 / -1; }
.pass-fields dt { font-size: var(--f-caption); font-weight: 600; color: var(--ink-2); }
.pass-fields dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.pass-fields div:first-child dd { font: 400 1.85rem/1.1 var(--serif); }
.pass-stamp {
  position: absolute;
  top: 66px;
  right: 18px;
  margin: 0;
  padding: 8px 10px;
  font: 700 0.85rem/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 3px;
  transform: rotate(-9deg);
  opacity: 0.88;
}
.pass-stub { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; padding: 22px 16px; border-left: 2px dashed var(--ink-2); }
.pass-stub::before, .pass-stub::after { content: ""; position: absolute; left: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink); }
.pass-stub::before { top: -11px; clip-path: inset(50% 0 0 0); }
.pass-stub::after { bottom: -11px; clip-path: inset(0 0 50% 0); }
.pass-serial { margin: 0; font: 400 var(--f-caption)/1.3 var(--mono); color: var(--ink-1); }
.pass-bars svg { display: block; width: 100%; height: 56px; fill: var(--ink); }
.pass-stub-wave { margin: 0; text-align: right; font: 400 3.6rem/1 var(--serif); }
.pass-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 18px; }
.pass-note { flex-basis: 100%; margin: 0; font-size: var(--f-small); color: var(--ink-1); }

/* ——— The back page ——— */

.back-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.back-col { padding: 0 clamp(16px, 2vw, 30px); border-left: 1px solid var(--rule); }
.back-col:first-child { padding-left: 0; border-left: 0; }
.back-col h3 { margin: 0 0 14px; font: 400 1.95rem/1 var(--serif); }
.classifieds p { margin: 0 0 12px; line-height: 1.5; color: var(--ink-1); }
.classifieds strong { font-size: 0.8125rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink); }
.weather-mark { display: block; width: 64px; height: 48px; margin-bottom: 6px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.weather dl { margin: 0; }
.weather dl div { display: grid; grid-template-columns: 96px 1fr; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.weather dt { font-weight: 700; font-size: var(--f-small); }
.weather dd { margin: 0; font: 400 1.3rem/1.15 var(--serif); }
.corrections p { margin: 0 0 14px; font: italic 400 1.3rem/1.3 var(--serif); color: var(--ink-1); }

.colophon { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 34px; margin-top: clamp(44px, 6vw, 76px); padding-top: 18px; border-top: 3px solid var(--ink); }
.colophon-text { columns: 2 250px; column-gap: 30px; font-size: var(--f-caption); line-height: 1.55; color: var(--ink-2); }
.colophon-text p { margin: 0 0 10px; break-inside: avoid; }
.colophon-text strong { color: var(--ink-1); }
.outro-link {
  padding: 0;
  font: 400 clamp(1.75rem, 1.2rem + 2vw, 2.6rem)/1.06 var(--serif);
  text-align: left;
  color: var(--ink);
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
}
.outro-link:hover { text-decoration-thickness: 2px; }
.type-credit { margin: 14px 0 0; font-size: var(--f-caption); color: var(--ink-2); }

/* Without the Rust, the parts that need it step aside. */
html:not(.js) .name-form,
html:not(.js) .lever,
html:not(.js) .edition-pick,
html:not(.js) .edition-toggle,
html:not(.js) .reserve-form { display: none; }

/* ——— Narrower pages ——— */

@media (max-width: 1060px) {
  .editions { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; }
  .desk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 30px; }
}
@media (max-width: 900px) {
  .front, .reserve-grid, .colophon { grid-template-columns: minmax(0, 1fr); }
  .lead-side { padding: 26px 0 0; border-left: 0; border-top: 1px solid var(--rule); }
  .story-grid, .back-grid { grid-template-columns: minmax(0, 1fr); }
  .story, .story-lead, .story-a, .story-b, .story-c { grid-column: auto; padding: 26px 0; border-left: 0; border-top: 1px solid var(--rule); }
  .story-lead { padding-top: 0; border-top: 0; }
  .back-col { padding: 22px 0; border-left: 0; border-top: 1px solid var(--rule); }
  .back-col:first-child { padding-top: 0; border-top: 0; }
}
@media (max-width: 720px) {
  .masthead { grid-template-columns: 1fr auto; }
  .nameplate { grid-column: 1 / -1; order: -1; }
  .sections { gap: 2px 16px; }
  .sections .btn { flex: 1 1 auto; }
  .nav-gap { flex-basis: 100%; height: 0; }
  .waves { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .radios { grid-template-columns: minmax(0, 1fr); }
  .lever-stop { font-size: var(--f-caption); white-space: normal; width: 25%; text-align: center; }
  .lever-stop:nth-child(1) { text-align: left; }
  .lever-stop:nth-child(4) { text-align: right; }
}
@media (max-width: 560px) {
  .editions, .desk-grid { grid-template-columns: minmax(0, 1fr); }
  .pass { grid-template-columns: minmax(0, 1fr); }
  .pass-stub { flex-direction: row; align-items: center; border-left: 0; border-top: 2px dashed var(--ink-2); }
  .pass-stub::before, .pass-stub::after { display: none; }
  .pass-bars { flex: 1; }
  .pass-edition { padding-right: 0; }
  .pass-stamp { top: 18px; }
  .story-lead .story-body { columns: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .pass { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

@media print {
  html.js, html.js body { height: auto; overflow: visible; }
  html.js .paper { position: static; overflow: visible; transform: none !important; }
  .stage, .cinema-controls, .ticker, .sections, .edition-toggle, .name-form, .lever, .edition-pick, .outro, .pass-actions { display: none !important; }
  html.printing-pass .sheet > :not(.reserve) { display: none !important; }
  html.printing-pass .reserve > :not(.reserve-grid),
  html.printing-pass .reserve-grid > :not(.pass-slot) { display: none !important; }
  .pass { box-shadow: none; animation: none; break-inside: avoid; }
}
