/* OpsLodge showcase. Plain CSS, no build step.
   Tokens: the platform's own navy and greys, plus one highlighter yellow that marks the job number. */

@font-face { font-family: "Jost"; font-weight: 500; font-display: swap; src: url("fonts/jost-500.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 600; font-display: swap; src: url("fonts/jost-600.woff2") format("woff2"); }
@font-face { font-family: "Plex Sans"; font-weight: 400; font-display: swap; src: url("fonts/plexsans-400.woff2") format("woff2"); }
@font-face { font-family: "Plex Sans"; font-weight: 500; font-display: swap; src: url("fonts/plexsans-500.woff2") format("woff2"); }
@font-face { font-family: "Plex Sans"; font-weight: 600; font-display: swap; src: url("fonts/plexsans-600.woff2") format("woff2"); }
@font-face { font-family: "Plex Mono"; font-weight: 500; font-display: swap; src: url("fonts/plexmono-500.woff2") format("woff2"); }

:root {
  --paper: #FFFFFF;
  --band: #F3F5F8;
  --ink: #172B4D;
  --ink-2: #44546F;
  --ink-3: #626F86;
  --line: #DCDFE4;
  --line-2: #B3B9C4;
  --marker: #FFE45C;
  --marker-ink: #172B4D;
  --link: #0C66E4;
  --built: #216E4E;
  --designing: #5E4DB2;
  --planned: #626F86;
  --ticket: #172B4D;
  --ticket-ink: #FFFFFF;
  --ticket-dim: #B6C2D6;
  --ticket-line: #3A4D72;
  --shade: rgba(23, 43, 77, 0.78);

  --display: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --text: "Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: 1.953rem;
  --step-4: clamp(2.1rem, 3.4vw, 2.75rem);
  --step-5: clamp(2.5rem, 6vw, 4.5rem);

  --gutter: clamp(16px, 4vw, 48px);
  --rail: 232px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0E1A30;
    --band: #14233F;
    --ink: #E8ECF3;
    --ink-2: #B9C3D3;
    --ink-3: #93A0B5;
    --line: #263756;
    --line-2: #3A4D72;
    --link: #8AB8FF;
    --built: #62D3A2;
    --designing: #B9ACF7;
    --planned: #93A0B5;
    --ticket: #1B2D50;
    --ticket-line: #3A4D72;
    --shade: rgba(4, 10, 22, 0.86);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0E1A30; --band: #14233F; --ink: #E8ECF3; --ink-2: #B9C3D3; --ink-3: #93A0B5;
  --line: #263756; --line-2: #3A4D72; --link: #8AB8FF; --built: #62D3A2; --designing: #B9ACF7;
  --planned: #93A0B5; --ticket: #1B2D50; --ticket-line: #3A4D72; --shade: rgba(4, 10, 22, 0.86);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0)/1.55 var(--text);
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--marker); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -0.012em; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: 1400px; margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: 66ch; }
.skip { position: absolute; left: -999px; top: 0; background: var(--marker); color: var(--marker-ink); padding: 8px 12px; z-index: 20; }
.skip:focus { left: 8px; top: 8px; }

/* The job number, wherever it appears in running text */
.job {
  font: 500 0.92em/1 var(--mono);
  background: var(--marker);
  color: var(--marker-ink);
  padding: 0.14em 0.36em 0.1em;
  border-radius: 3px 7px 4px 8px / 6px 3px 7px 4px;
  white-space: nowrap;
}

/* ---------- Top ---------- */
.top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-block: 22px; flex-wrap: wrap; }
.wordmark { font: 600 1.25rem/1 var(--display); letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.wordmark small { font: 400 var(--step--1)/1 var(--text); color: var(--ink-3); letter-spacing: 0; margin-left: 8px; }
.top-note { font-size: var(--step--1); color: var(--ink-2); }

.hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr); gap: clamp(28px, 5vw, 88px); align-items: start; padding-block: clamp(28px, 5vw, 72px) clamp(36px, 5vw, 72px); }
.hero h1 { font-size: var(--step-5); letter-spacing: -0.028em; line-height: 0.98; max-width: 12ch; }
.byline { margin-top: 12px; font-size: var(--step-0); color: var(--ink-2); }
.hero-lede { font-size: var(--step-1); line-height: 1.45; color: var(--ink-2); margin-top: clamp(18px, 2.4vw, 30px); max-width: 52ch; }
.hero-facts { margin: clamp(22px, 3vw, 36px) 0 0; padding: 0; list-style: none; display: grid; gap: 14px; max-width: 58ch; }
.hero-facts li { border-top: 1px solid var(--line-2); padding-top: 12px; font-size: 1rem; line-height: 1.5; color: var(--ink-2); }
.hero-facts strong { color: var(--ink); font-weight: 600; }

/* The one-minute read: the eight stops, on a job ticket */
.slip { position: relative; background: var(--band); border: 1px solid var(--line-2); border-radius: 14px 14px 6px 6px; padding: 44px clamp(18px, 2vw, 28px) 8px; }
.slip::before { content: ""; position: absolute; top: 14px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); }
.slip-job { font-size: var(--step--1); color: var(--ink-2); display: flex; align-items: center; gap: 10px; }
.slip-job { flex-wrap: wrap; }
.slip-job .job { font-size: 1.4rem; padding: 7px 10px 5px; }
.slip-job span:last-child { flex-basis: 100%; font-size: var(--step--1); color: var(--ink-3); }
.slip h2 { font-size: var(--step-1); margin-top: 16px; }
.slip ol { list-style: none; margin: 12px 0 0; padding: 0; counter-reset: slip; }
.slip li { counter-increment: slip; border-top: 1px solid var(--line-2); padding: 9px 0 10px 34px; position: relative; font-size: 0.9375rem; line-height: 1.42; color: var(--ink-2); }
.slip li::before { content: counter(slip); position: absolute; left: 2px; top: 9px; font: 600 1.05rem/1.3 var(--display); color: var(--ink-3); }
.slip li a { color: var(--ink); font-weight: 600; text-decoration: none; display: block; }
.slip li a:hover { text-decoration: underline; }

.hero.is-second { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.hero.is-second h1 { max-width: 16ch; font-size: clamp(2.2rem, 4.4vw, 3.5rem); }
.hero.is-second .shot-frame { cursor: pointer; }
@media (max-width: 960px) { .hero.is-second { grid-template-columns: minmax(0, 1fr); } }

.pair { margin-top: clamp(20px, 2.6vw, 32px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; }
.pair.is-one { grid-template-columns: minmax(0, 0.62fr); }
@media (max-width: 720px) { .pair, .pair.is-one { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 960px) { .hero { grid-template-columns: minmax(0, 1fr); } }

/* ---------- The tour ---------- */
.tour { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); gap: clamp(28px, 4.5vw, 72px); align-items: start; padding-top: clamp(32px, 5vw, 72px); }

.ticket {
  position: sticky; top: 20px;
  background: var(--ticket); color: var(--ticket-ink);
  border-radius: 10px 10px 6px 6px;
  padding: 34px 18px 18px;
  font-size: 0.9375rem; line-height: 1.35;
}
.ticket::before { /* the punched hole of a job tag */
  content: ""; position: absolute; top: 11px; left: 50%; width: 14px; height: 14px; margin-left: -7px;
  border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 3px var(--ticket-line);
}
.ticket-label { color: var(--ticket-dim); font-size: var(--step--1); }
.ticket-id { margin-top: 6px; min-height: 2.6rem; display: flex; align-items: center; }
.ticket-job { font: 500 1.5rem/1 var(--mono); background: var(--marker); color: var(--marker-ink); padding: 7px 9px 5px; border-radius: 3px 8px 4px 9px / 7px 3px 8px 4px; letter-spacing: -0.01em; }
.ticket-pre { display: none; color: var(--ticket-ink); font-weight: 500; }
.js .ticket[data-phase="tactic"] .ticket-job, .js .ticket[data-phase="line"] .ticket-job { display: none; }
.js .ticket[data-phase="tactic"] .ticket-pre.is-tactic, .js .ticket[data-phase="line"] .ticket-pre.is-line { display: block; }
.ticket-job.is-stamped { animation: stamp 360ms cubic-bezier(.2, .9, .3, 1.2) 1; }
@keyframes stamp { from { transform: scale(1.7) rotate(-5deg); opacity: 0; } to { transform: none; opacity: 1; } }
.ticket-what { color: var(--ticket-dim); font-size: var(--step--1); margin-top: 8px; min-height: 2.7em; }
.ticket ol { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--ticket-line); counter-reset: t; }
.ticket li { counter-increment: t; }
.ticket li a { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: baseline; padding: 5px 4px; color: var(--ticket-dim); text-decoration: none; border-radius: 4px; }
.ticket li a::before { content: counter(t); font: 500 0.8125rem/1.5 var(--mono); width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--ticket-line); text-align: center; color: var(--ticket-dim); }
.ticket li a:hover { color: var(--ticket-ink); }
.ticket li.is-done a::before { content: "\2713"; background: transparent; border-color: var(--ticket-dim); color: var(--ticket-ink); }
.ticket li.is-here a { color: var(--ticket-ink); font-weight: 600; }
.ticket li.is-here a::before { content: counter(t); background: var(--marker); border-color: var(--marker); color: var(--marker-ink); }
.ticket-more { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--ticket-line); display: grid; gap: 4px; }
.ticket-more a { color: var(--ticket-dim); text-decoration: none; font-size: var(--step--1); padding: 2px 4px; }
.ticket-more a:hover { color: var(--ticket-ink); text-decoration: underline; }

.stops { min-width: 0; }
.stop { padding-bottom: clamp(56px, 9vw, 128px); scroll-margin-top: 24px; }
.stop-head { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: baseline; margin-bottom: clamp(16px, 2vw, 26px); }
.stop-n { font: 500 var(--step-4)/1 var(--display); color: var(--ink-3); min-width: 1.1ch; }
.stop h2 { font-size: var(--step-4); max-width: 24ch; }
.stop-sub { grid-column: 2; color: var(--ink-2); font-size: var(--step-1); line-height: 1.4; max-width: 56ch; }

/* A capture */
.shot { margin: 0; }
.shot-frame { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; background: #F7F8F9; cursor: zoom-in; line-height: 0; }
.shot-frame img { width: 100%; }
.shot figcaption { margin-top: 10px; font-size: var(--step--1); color: var(--ink-3); max-width: 80ch; }
.mark { /* highlighter over the job number inside a capture */
  position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h);
  background: var(--marker); mix-blend-mode: multiply; opacity: 0.85;
  border-radius: 3px 8px 4px 9px / 7px 3px 8px 4px; transform: rotate(-0.6deg) scale(1.12, 1.25); pointer-events: none;
}
.pin { position: absolute; left: var(--x); top: var(--y); width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: #172B4D; color: #fff; font: 600 0.75rem/22px var(--text); text-align: center; box-shadow: 0 0 0 2px #fff; pointer-events: none; }
.legend { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 28px; counter-reset: pin; }
.legend li { counter-increment: pin; position: relative; padding-left: 34px; font-size: 0.9375rem; line-height: 1.45; color: var(--ink-2); }
.legend li::before { content: counter(pin); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: #172B4D; color: #fff; box-shadow: 0 0 0 1px var(--line-2); font: 600 0.75rem/22px var(--text); text-align: center; }

.notes { margin: clamp(18px, 2.4vw, 30px) 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px 36px; }
.notes > div { border-top: 1px solid var(--line-2); padding-top: 10px; }
.notes dt { font-weight: 600; font-size: 0.9375rem; color: var(--ink); }
.notes dd { margin: 4px 0 0; color: var(--ink-2); font-size: 1rem; line-height: 1.5; }

/* A sequence: the same screen at each step of one action */
.seq { margin-top: clamp(22px, 3vw, 40px); }
.seq-title { font: 600 var(--step-1)/1.2 var(--display); margin-bottom: 12px; }
.seq-frames { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.js .seq-frames { display: grid; }
.js .seq-frames > li { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 420ms ease, visibility 0s linear 420ms; }
.js .seq-frames > li.is-on { opacity: 1; visibility: visible; transition: opacity 420ms ease; }
.seq-ctl { display: none; }
.js .seq-ctl { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.seq-ctl button { font: 500 0.9375rem/1 var(--text); color: var(--ink); background: var(--paper); border: 1px solid var(--line-2); border-radius: 5px; padding: 9px 13px; cursor: pointer; min-height: 38px; }
.seq-ctl button:hover { border-color: var(--ink); }
.seq-ctl button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.seq-pos { font-size: var(--step--1); color: var(--ink-3); min-width: 5.5em; }
.seq-dots { display: flex; gap: 6px; margin-left: auto; }
.seq-dots span { width: 26px; height: 4px; border-radius: 2px; background: var(--line-2); }
.seq-dots span.is-on { background: var(--ink); }

/* His words */
.said { margin: clamp(26px, 4vw, 52px) 0 0; padding-left: 20px; border-left: 4px solid var(--marker); max-width: 62ch; }
.said blockquote { margin: 0; font: 500 var(--step-2)/1.28 var(--display); letter-spacing: -0.01em; }
.said figcaption { margin-top: 10px; font-size: var(--step--1); color: var(--ink-3); }

/* ---------- Sections after the tour ---------- */
.sect { padding-block: clamp(48px, 7vw, 104px); border-top: 1px solid var(--line); }
.sect.is-band { background: var(--band); }
.sect > .wrap > h2 { font-size: var(--step-4); max-width: 22ch; }
.sect-lede { margin-top: 14px; font-size: var(--step-1); line-height: 1.45; color: var(--ink-2); max-width: 62ch; }

.ledger { width: 100%; border-collapse: collapse; margin-top: clamp(22px, 3vw, 38px); font-size: 1rem; }
.ledger caption { text-align: left; color: var(--ink-3); font-size: var(--step--1); padding-bottom: 10px; }
.ledger th, .ledger td { text-align: left; vertical-align: top; padding: 12px 20px 12px 0; border-top: 1px solid var(--line-2); line-height: 1.45; }
.ledger thead th { font-weight: 600; font-size: 0.9375rem; color: var(--ink-3); border-top: 0; padding-bottom: 8px; }
.ledger tbody th { font-weight: 600; width: 26%; }
.ledger td.st { white-space: nowrap; font-weight: 600; width: 13%; }
.ledger td { color: var(--ink-2); }
.st-built { color: var(--built) !important; }
.st-designing { color: var(--designing) !important; }
.st-planned { color: var(--planned) !important; }
.st::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; border: 2px solid currentColor; vertical-align: -1px; }
.st-built::before { background: currentColor; }
.st-designing::before { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }

/* A status word outside the table: same dot, same three colours */
span.st { font: 600 var(--step--1)/1.2 var(--text); white-space: nowrap; }

/* "See the design": a button that opens the full-size view, and a plain link when scripts are off */
.see { font: inherit; color: var(--link); text-decoration: underline; text-underline-offset: 0.18em; }
.see:hover { text-decoration-thickness: 2px; }
.see-btn { display: none; background: none; border: 0; margin: 0; padding: 0; text-align: left; cursor: pointer; }
.js .see-btn { display: inline; }
.js .see-link { display: none; }
.js.no-zoom .see-btn { display: none; }
.js.no-zoom .see-link { display: inline; }

/* ---------- The Lodge and its cabins ---------- */
.lm { --lm-gap: clamp(40px, 5vw, 76px); margin: clamp(26px, 3.4vw, 44px) 0 0; max-width: 1240px; }
.lm figcaption { margin-top: 16px; font-size: var(--step--1); color: var(--ink-3); max-width: 80ch; }
.lm-name { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; font: 600 var(--step-0)/1.25 var(--display); color: var(--ink); }
.lm-lodge { background: var(--band); border: 1px solid var(--line-2); border-top: 3px solid var(--ink); border-radius: 0 0 6px 6px; padding: 20px 22px 22px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.lm-lodge .lm-name { font-size: var(--step-2); }
.lm-lodge p:not(.lm-name) { color: var(--ink-2); line-height: 1.5; }
.lm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lm-list li { position: relative; border: 1px solid var(--line-2); border-radius: 6px; background: var(--paper); padding: 11px 14px 12px; }
.lm-list li p:not(.lm-name) { margin-top: 3px; font-size: 0.9375rem; line-height: 1.4; color: var(--ink-2); }
.lm-list.is-planned li { border-style: dashed; padding-block: 8px; }
.lm-list.is-planned .lm-name { font-weight: 500; }

/* stacked: the Lodge on top, the cabins on a rail that points up into it */
.lm-cabins { position: relative; margin-left: 16px; padding: 26px 0 0 22px; border-left: 1px solid var(--ink-3); }
.lm-cabins::before { content: ""; position: absolute; left: -5.5px; top: 0; border: 5px solid transparent; border-top: 0; border-bottom: 9px solid var(--ink-3); }
.lm-list.is-planned { margin-top: 10px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

/* wide: the Lodge in the middle, a publish arrow from every cabin */
@media (min-width: 1080px) {
  .lm-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr) minmax(0, 1fr); column-gap: var(--lm-gap); align-items: stretch; }
  .lm-cabins { display: contents; }
  .lm-lodge { grid-column: 2; grid-row: 1; }
  .lm-list { align-self: center; grid-row: 1; }
  .lm-list.is-designed { grid-column: 1; }
  .lm-list.is-planned { grid-column: 3; margin-top: 0; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .lm-list li::after { content: ""; position: absolute; top: 50%; width: calc(var(--lm-gap) + 1px); border-top: 1px solid var(--ink-3); }
  .lm-list li::before { content: ""; position: absolute; top: calc(50% - 4.5px); border: 5px solid transparent; }
  .lm-list.is-designed li::after { left: 100%; }
  .lm-list.is-designed li::before { left: calc(100% + var(--lm-gap) - 8px); border-right: 0; border-left: 9px solid var(--ink-3); }
  .lm-list.is-planned li::after { right: 100%; border-top-style: dashed; }
  .lm-list.is-planned li::before { right: calc(100% + var(--lm-gap) - 8px); border-left: 0; border-right: 9px solid var(--ink-3); }
}

.exists { list-style: none; margin: clamp(16px, 2vw, 24px) 0 0; padding: 0; max-width: 1040px; border-bottom: 1px solid var(--line-2); }
.exists li { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 4px 20px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line-2); }
.exists p { color: var(--ink-2); line-height: 1.5; max-width: 78ch; }
.exists strong { color: var(--ink); font-weight: 600; }
@media (max-width: 560px) { .exists li { grid-template-columns: minmax(0, 1fr); } }

/* The path of one change */
.path { list-style: none; margin: clamp(24px, 3vw, 40px) 0 0; padding: 0; counter-reset: p; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--line-2); max-width: 1120px; }
.path li { counter-increment: p; display: grid; grid-template-columns: 2rem minmax(120px, 170px) minmax(150px, 200px) minmax(0, 1fr); gap: 4px 24px; align-items: baseline; padding: 14px 0; }
.path li + li { border-top: 1px solid var(--line-2); }
.path li::before { content: counter(p); font: 500 1.1rem/1.3 var(--display); color: var(--ink-3); }
.path h3 { font-size: var(--step-1); }
.path .who { justify-self: start; font-size: var(--step--1); font-weight: 600; background: var(--marker); color: var(--marker-ink); padding: 2px 8px; border-radius: 3px; }
.path .who.is-ai { background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.path p { font-size: 1rem; line-height: 1.5; color: var(--ink-2); }
@media (max-width: 760px) {
  .path li { grid-template-columns: 2rem minmax(0, 1fr); }
  .path .who, .path p { grid-column: 2; }
}

.rules { margin: clamp(28px, 4vw, 52px) 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 56px; max-width: 1040px; }
.rules.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
@media (max-width: 860px) { .rules, .rules.is-3 { grid-template-columns: minmax(0, 1fr); } }
.rules > div { border-top: 1px solid var(--line-2); padding-top: 12px; }
.rules dt { font: 600 var(--step-1)/1.2 var(--display); }
.rules dd { margin: 6px 0 0; color: var(--ink-2); line-height: 1.5; }

.sub-h { font-size: var(--step-2); margin-top: clamp(40px, 6vw, 80px); }
.excerpts { margin-top: clamp(20px, 3vw, 32px); display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px 32px; align-items: start; }
.evidence { margin-top: clamp(22px, 3vw, 36px); padding-top: 14px; border-top: 1px solid var(--line-2); color: var(--ink-2); max-width: 70ch; }
.excerpt { margin: 0; border: 1px solid var(--line-2); border-radius: 6px; background: var(--paper); }
.excerpt figcaption { padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: var(--step--1); color: var(--ink-3); }
.excerpt blockquote { margin: 0; padding: 16px; font-size: 0.9375rem; line-height: 1.55; color: var(--ink); }
.excerpt blockquote p + p { margin-top: 10px; }

.split { margin-top: clamp(22px, 3vw, 38px); display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px 56px; }
.split h3 { font-size: var(--step-2); padding-bottom: 10px; border-bottom: 3px solid var(--ink); }
.split ul { margin: 12px 0 0; padding-left: 1.1em; color: var(--ink-2); }
.split li { margin-top: 8px; line-height: 1.5; }

.foot { border-top: 1px solid var(--line); padding-block: 32px 56px; font-size: var(--step--1); color: var(--ink-3); }
.foot p { max-width: 80ch; }
.foot p + p { margin-top: 8px; }

/* Full-size view of a capture */
dialog.zoom { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100vw; height: 100vh; }
dialog.zoom::backdrop { background: var(--shade); }
.zoom-in { width: 100%; height: 100%; display: grid; grid-template-rows: auto 1fr; padding: 14px; gap: 10px; }
.zoom-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: #fff; font-size: var(--step--1); }
.zoom-bar button { font: 500 0.9375rem/1 var(--text); background: #fff; color: #172B4D; border: 0; border-radius: 5px; padding: 10px 14px; cursor: pointer; }
.zoom-pane { overflow: auto; display: grid; place-items: start center; }
.zoom-pane img { max-width: none; width: min(1440px, max(100%, 1000px)); border-radius: 4px; background: #F7F8F9; }

/* ---------- Narrow screens: the ticket becomes a bar ---------- */
@media (max-width: 960px) {
  .tour { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .ticket { top: env(safe-area-inset-top, 0px); z-index: 5; border-radius: 0 0 8px 8px; margin-inline: calc(var(--gutter) * -1); padding: 10px var(--gutter); display: flex; align-items: center; gap: 12px; }
  .ticket::before, .ticket-label, .ticket ol, .ticket-more { display: none; }
  .ticket-id { margin: 0; min-height: 0; }
  .ticket-job { font-size: 1.05rem; padding: 5px 7px 4px; }
  .ticket-what { margin: 0; min-height: 0; color: var(--ticket-ink); font-size: 0.9375rem; }
  html:not(.js) .ticket { position: static; }
  .ledger, .ledger tbody, .ledger tr, .ledger th, .ledger td { display: block; width: auto !important; }
  .ledger thead { display: none; }
  .ledger tr { border-top: 1px solid var(--line-2); padding: 12px 0; }
  .ledger th, .ledger td { border: 0; padding: 2px 0; }
  .stop-head { grid-template-columns: 1fr; }
  .stop { scroll-margin-top: 84px; }
  .sect { scroll-margin-top: 64px; }
  .stop-sub { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticket-job.is-stamped { animation: none; }
  .js .seq-frames > li, .js .seq-frames > li.is-on { transition: none; }
}

@media print {
  .ticket, .seq-ctl, .skip, dialog, .see { display: none !important; }
  .tour { display: block; }
  .js .seq-frames > li { opacity: 1; visibility: visible; grid-area: auto; }
  .stop, .sect { break-inside: avoid; padding-block: 18px; }
  body { font-size: 11pt; }
}
