/* ── Tokens ────────────────────────────────────────────────────────────────
   Print paper, drawing ink, paint-stick yellow, hold-tag red.
   The yellow is ONLY ever a hand mark (rings, highlights); the red only ever
   means hold / issued. Everything else is ink on paper. */
:root {
  --paper: #EDF0EF; --sheet: #F9FAF9; --ink: #15181B; --graphite: #59626A; --faint: #8A949B;
  --rule: #CBD2D5; --rule2: #9AA4AA; --marker: #F2BE0F; --marker-ink: #15181B; --tag: #CF311D;
  --shot-edge: #15181B; --blend: multiply;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, -apple-system, sans-serif;
  --mono: "Martian Mono", ui-monospace, Menlo, monospace;
  --gut: clamp(16px, 4vw, 48px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0E1113; --sheet: #15191C; --ink: #E7EBED; --graphite: #A2ABB2; --faint: #6F7A82;
    --rule: #283035; --rule2: #46515A; --marker: #F2BE0F; --marker-ink: #15181B; --tag: #FF5B44;
    --shot-edge: #46515A; --blend: normal; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0E1113; --sheet: #15191C; --ink: #E7EBED; --graphite: #A2ABB2; --faint: #6F7A82;
  --rule: #283035; --rule2: #46515A; --marker: #F2BE0F; --marker-ink: #15181B; --tag: #FF5B44;
  --shot-edge: #46515A; --blend: normal; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; padding-bottom: 64px; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--marker); outline-offset: 3px; }
.wrap { max-width: 1320px; margin: 0 auto; padding-inline: var(--gut); }
.mono { font-family: var(--mono); font-stretch: 87.5%; font-size: 11px; line-height: 1.5; letter-spacing: .06em; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
h1 { font-stretch: 116%; font-weight: 780; font-size: clamp(38px, 5.4vw, 82px); line-height: .98; letter-spacing: -.028em; }
h2 { font-stretch: 112%; font-weight: 740; font-size: clamp(30px, 3.7vw, 54px); line-height: 1.02; letter-spacing: -.022em; }
h3 { font-stretch: 104%; font-weight: 650; font-size: 20px; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0; }
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--graphite); max-width: 52ch; }
.hl { background: linear-gradient(transparent 58%, color-mix(in srgb, var(--marker) 70%, transparent) 58% 92%, transparent 92%); padding-inline: 2px; }

/* ── The sheet frame: drawing zones along the viewport edges (wide screens) ── */
.zones { position: fixed; inset: 0; pointer-events: none; z-index: 40; display: none; }
@media (min-width: 1100px) { .zones { display: block; } }
.zones .band { position: absolute; display: flex; justify-content: space-around; align-items: center; color: var(--faint); font: 500 9px/1 var(--mono); }
.zones .t { top: 0; left: 18px; right: 18px; height: 18px; border-bottom: 1px solid var(--rule); background: var(--paper); }
.zones .l, .zones .r { top: 18px; bottom: 46px; width: 18px; flex-direction: column; background: var(--paper); }
.zones .l { left: 0; border-right: 1px solid var(--rule); }
.zones .r { right: 0; border-left: 1px solid var(--rule); }
.zones .corner { position: absolute; top: 0; width: 18px; height: 18px; background: var(--paper); }
.zones .c1 { left: 0; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.zones .c2 { right: 0; border-left: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.zones .band span { flex: 1; text-align: center; position: relative; }
.zones .t span + span::before { content: ""; position: absolute; left: 0; top: 5px; height: 8px; border-left: 1px solid var(--rule2); }
.zones .l span + span::before, .zones .r span + span::before { content: ""; position: absolute; top: 0; left: 5px; width: 8px; border-top: 1px solid var(--rule2); }
.zones .band span { display: flex; align-items: center; justify-content: center; }
@media (min-width: 1100px) { body { padding-top: 18px; } .page { margin-inline: 18px; } }

/* ── Header ── */
.top { display: flex; align-items: center; gap: 28px; padding-block: 22px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 13px/1 var(--mono); font-stretch: 87.5%; letter-spacing: .1em; }
.brand svg { width: 26px; height: 26px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { font-size: 15px; text-decoration: none; color: var(--graphite); }
.nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--marker); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper); text-decoration: none; font: 700 15px/1 var(--body); cursor: pointer; border-radius: 0; }
.btn:hover { background: transparent; color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
@media (max-width: 1060px) { .nav { display: none; } .top .btn { margin-left: auto; } }

/* ── Sheet headings ── */
.sheet { padding-block: clamp(72px, 9vw, 132px) 0; }
.sheethead { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); color: var(--graphite); }
.sheethead::after { content: ""; grid-column: 2; grid-row: 1; height: 1px; background: var(--ink); opacity: .55; }
.sheethead .no { grid-column: 1; }
.sheethead .ttl { grid-column: 3; }
.intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 4vw, 64px); align-items: end; margin-bottom: clamp(32px, 4.5vw, 56px); }
.intro .lede { justify-self: end; }
@media (max-width: 900px) { .intro { grid-template-columns: 1fr; } .intro .lede { justify-self: start; } }

/* ── Hero + walkthrough ── */
.hero { padding-top: clamp(28px, 4vw, 56px); }
.hero h1 { font-size: clamp(34px, 4.25vw, 64px); line-height: 1; max-width: 23ch; }
.hero-sub { display: flex; justify-content: space-between; align-items: end; gap: 24px 48px; margin: clamp(16px, 2vw, 24px) 0 clamp(24px, 3vw, 36px); }
.hero-sub .lede { max-width: 64ch; }
.hero .who { color: var(--graphite); text-align: right; flex: none; }
@media (max-width: 760px) { .hero-sub { flex-direction: column; align-items: start; } .hero .who { text-align: left; } }
.walk { border: 1.5px solid var(--ink); background: var(--sheet); }
.walk-bar { display: flex; justify-content: space-between; gap: 16px; padding: 10px 16px; border-bottom: 1px solid var(--ink); color: var(--graphite); }
.walk-grid { display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.route { list-style: none; margin: 0; padding: 18px 0 18px; border-right: 1px solid var(--ink); position: relative; counter-reset: s; }
.route::before { content: ""; position: absolute; left: 31px; top: 34px; bottom: 34px; border-left: 1.5px dashed var(--rule2); }
.route .fill { position: absolute; left: 30px; top: 34px; width: 3.5px; background: var(--ink); height: var(--fill, 0px); transition: height .5s cubic-bezier(.6,0,.2,1); }
.stop { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 26px 1fr; column-gap: 12px; align-items: center; width: 100%; padding: 6px 14px 6px 19px; position: relative; }
.stop .node { width: 25px; height: 25px; border: 1.5px solid var(--rule2); background: var(--sheet); border-radius: 50%; display: grid; place-items: center; font: 600 9.5px/1 var(--mono); color: var(--faint); position: relative; z-index: 1; transition: background .3s, border-color .3s, color .3s; }
.stop .st { display: grid; gap: 1px; min-width: 0; }
.stop .st-title { font: 600 15px/1.25 var(--display); font-stretch: 100%; color: var(--graphite); }
.stop .st-who { font: 500 9.5px/1.3 var(--mono); font-stretch: 87.5%; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.stop:hover .st-title { color: var(--ink); }
.stop:focus-visible { outline: 3px solid var(--marker); outline-offset: -3px; }
.stop.seen .node { border-color: var(--ink); background: var(--ink); color: var(--sheet); }
.stop.on .node { border-color: var(--ink); background: var(--marker); color: var(--marker-ink); box-shadow: 0 0 0 4px var(--sheet), 0 0 0 5.5px var(--ink); }
.stop.on .st-title { color: var(--ink); }
.stop.on .st-who { color: var(--graphite); }
.screen { margin: 0; display: grid; grid-template-rows: auto auto 1fr; min-width: 0; }
.detail-bar { display: flex; justify-content: space-between; gap: 12px; padding: 9px 16px; border-bottom: 1px solid var(--rule); color: var(--graphite); }
.vp { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #E9ECEE; border-bottom: 1px solid var(--ink); }
.vp .shot { position: absolute; left: 0; top: 0; width: 100%; height: auto; max-width: none; transform-origin: 0 0; user-select: none; -webkit-user-drag: none; }
.vp .shot.enter { animation: wipe .6s cubic-bezier(.7,0,.2,1) both; z-index: 2; }
.vp .scan { position: absolute; top: 0; bottom: 0; width: 2px; left: 0; background: var(--ink); z-index: 3; opacity: 0; pointer-events: none; }
.vp .scan.go { animation: scan .6s cubic-bezier(.7,0,.2,1) both; }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes scan { 0% { left: 0; opacity: 1; } 92% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.mark { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; overflow: visible; }
.mark .ring { fill: none; stroke: var(--marker); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; mix-blend-mode: var(--blend); opacity: .95; }
.mark .ring.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .75s .5s cubic-bezier(.4,0,.2,1) forwards; }
.mark .leader { stroke: #15181B; stroke-width: 1.4; fill: none; }
.mark .leader.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .35s .35s ease-out forwards; }
.mark .dot { fill: #15181B; }
.mark .balloon { fill: #FFFFFF; stroke: #15181B; stroke-width: 1.6; }
.mark .bn { font: 700 11px var(--mono); fill: #15181B; text-anchor: middle; dominant-baseline: central; }
.mark .pop { animation: pop .35s .25s cubic-bezier(.3,1.5,.5,1) both; transform-box: fill-box; transform-origin: center; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
.hot { position: absolute; z-index: 5; background: transparent; border: 0; cursor: pointer; padding: 0; border-radius: 40%; }
.hot:focus-visible { outline: 3px dashed var(--ink); outline-offset: 4px; }
.cap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 28px; padding: 18px 20px 20px; align-items: start; }
.cap-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; grid-column: 1 / -1; }
.cap-n { color: var(--graphite); }
.cap h3 { font-size: clamp(22px, 2vw, 28px); font-stretch: 110%; font-weight: 720; }
.cap-who { color: var(--graphite); border: 1px solid var(--rule2); padding: 3px 7px 2px; }
.cap p { color: var(--graphite); max-width: 62ch; min-height: 3.1em; }
.ctrl { display: flex; gap: 8px; align-items: center; }
.ctrl button { min-height: 44px; min-width: 44px; padding: 0 14px; border: 1.5px solid var(--ink); background: var(--sheet); cursor: pointer; font: 700 14px/1 var(--body); }
.ctrl button:hover { background: var(--ink); color: var(--sheet); }
.ctrl .play { min-width: 96px; }
.prog { grid-column: 1 / -1; height: 3px; background: var(--rule); position: relative; overflow: hidden; }
.prog i { position: absolute; inset: 0 auto 0 0; width: calc(var(--p, 0) * 100%); background: var(--ink); }
@media (max-width: 960px) {
  .walk-grid { grid-template-columns: 1fr; }
  .route { display: flex; gap: 6px; overflow-x: auto; padding: 12px 14px; border-right: 0; border-bottom: 1px solid var(--ink); scrollbar-width: thin; }
  .route::before, .route .fill { display: none; }
  .route li { flex: none; }
  .stop { grid-template-columns: 26px auto; padding: 4px 8px 4px 4px; border: 1px solid var(--rule); }
  .stop .st-who { display: none; }
  .stop .st-title { font-size: 13px; white-space: nowrap; }
  .stop.on { border-color: var(--ink); }
  .stop.on .node { box-shadow: none; }
  .cap { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .vp { aspect-ratio: 1 / 1; }
  .walk-bar .hint { display: none; }
  .detail-bar span + span { display: none; }
  .ctrl { width: 100%; } .ctrl button { flex: 1; }
}

/* ── Figures with a single marked detail ── */
.fig { margin: 0; border: 1.5px solid var(--ink); background: var(--sheet); }
.fig .fv { position: relative; overflow: hidden; border-bottom: 1px solid var(--ink); }
.fig .fv img { width: 100%; height: auto; }
.fig figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 9px 14px; color: var(--graphite); }

/* ── Schedules (drawing-style tables) ── */
.sched { width: 100%; border-collapse: collapse; border: 1.5px solid var(--ink); background: var(--sheet); }
.sched caption { text-align: left; padding: 0 0 10px; color: var(--graphite); }
.sched th { text-align: left; font: 600 10.5px/1.4 var(--mono); font-stretch: 87.5%; letter-spacing: .06em; text-transform: uppercase; color: var(--graphite); padding: 9px 14px; border-bottom: 1px solid var(--ink); }
.sched td { padding: 12px 14px; border-top: 1px solid var(--rule); vertical-align: top; font-size: 15.5px; line-height: 1.45; color: var(--graphite); }
.sched td:first-child { font: 650 16px/1.3 var(--display); font-stretch: 102%; color: var(--ink); width: 30%; }
.sched tr:first-child td { border-top: 0; }
@media (max-width: 640px) { .sched td { display: block; width: auto !important; border-top: 0; padding-block: 4px; } .sched tr { display: block; border-top: 1px solid var(--rule); padding-block: 8px; } .sched tr:first-child { border-top: 0; } .sched thead { display: none; } }

/* ── Office ── */
.office { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.office .stack { display: grid; gap: clamp(20px, 3vw, 32px); }
.people { margin-top: clamp(20px, 3vw, 32px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1.5px solid var(--ink); background: var(--sheet); }
.people > div { padding: 18px 20px 20px; display: grid; gap: 8px; align-content: start; }
.people > div + div { border-left: 1px solid var(--rule); }
.people p { color: var(--graphite); font-size: 15.5px; }
.badge { display: inline-flex; gap: 6px; align-items: center; font: 600 10.5px/1 var(--mono); font-stretch: 87.5%; letter-spacing: .04em; text-transform: uppercase; padding: 5px 7px; border: 1px solid var(--rule2); margin: 2px 4px 2px 0; }
.badge i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
@media (max-width: 960px) { .office { grid-template-columns: 1fr; } .people { grid-template-columns: 1fr; } .people > div + div { border-left: 0; border-top: 1px solid var(--rule); } }

/* ── Board ── */
.board { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.board ul { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.board li { padding-left: 26px; position: relative; color: var(--graphite); }
.board li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; border-top: 1.5px solid var(--ink); }
.board li b { color: var(--ink); }
.flow { margin-top: clamp(28px, 4vw, 44px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.flow::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 21px; border-top: 1.5px dashed var(--rule2); }
.flow .fl { position: absolute; left: 12.5%; top: 20px; height: 3.5px; background: var(--ink); width: 0; }
.flow.in .fl { animation: flowline 2.4s .3s cubic-bezier(.5,0,.3,1) forwards; }
@keyframes flowline { to { width: 75%; } }
.flow > div { display: grid; justify-items: center; text-align: center; gap: 8px; padding-inline: 10px; position: relative; }
.flow .n { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--sheet); display: grid; place-items: center; font: 700 11px var(--mono); position: relative; z-index: 1; }
.flow.in > div:nth-of-type(1) .n { animation: lit .3s .2s forwards; }
.flow.in > div:nth-of-type(2) .n { animation: lit .3s 1s forwards; }
.flow.in > div:nth-of-type(3) .n { animation: lit .3s 1.8s forwards; }
.flow.in > div:nth-of-type(4) .n { animation: lit .3s 2.6s forwards; }
@keyframes lit { to { background: var(--marker); color: var(--marker-ink); } }
.flow h3 { font-size: 17px; }
.flow p { font-size: 14.5px; color: var(--graphite); line-height: 1.4; }
@media (max-width: 960px) { .board { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .flow { grid-template-columns: 1fr 1fr; row-gap: 24px; } .flow::before, .flow .fl { display: none; } }

/* ── Workpacks + JSA ── */
.wpj { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.panel { border: 1.5px solid var(--ink); background: var(--sheet); }
.panel > .ph { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--ink); color: var(--graphite); }
.panel > .pb { padding: 20px 20px 22px; display: grid; gap: 14px; }
.panel .pb > p { color: var(--graphite); }
.rev { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.rev th { text-align: left; font: 600 10px/1.4 var(--mono); font-stretch: 87.5%; letter-spacing: .06em; text-transform: uppercase; color: var(--graphite); border: 1px solid var(--ink); padding: 6px 8px; }
.rev td { border: 1px solid var(--ink); padding: 9px 8px; vertical-align: middle; }
.rev td.r { font: 700 16px var(--display); text-align: center; width: 52px; }
.rev tr.sup td { color: var(--faint); }
.rev tr.new { animation: rowin .45s cubic-bezier(.2,.8,.2,1); }
@keyframes rowin { from { opacity: 0; transform: translateY(-6px); } }
.stamp { display: inline-block; font: 800 12px/1 var(--display); font-stretch: 120%; letter-spacing: .12em; padding: 5px 8px 4px; border: 2px solid currentColor; }
.stamp.issued { color: var(--tag); transform: rotate(-4deg); animation: stamp .4s cubic-bezier(.3,1.6,.5,1); }
.stamp.draft { color: var(--graphite); border-style: dashed; }
.stamp.priced { color: var(--ink); }
@keyframes stamp { from { transform: rotate(-4deg) scale(2.2); opacity: 0; } }
.wpbtns { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.wpnote { font-size: 15px; color: var(--graphite); border-left: 3px solid var(--marker); padding: 2px 0 2px 12px; min-height: 3em; }
.jsa-fig .fv img { aspect-ratio: 16 / 9; object-fit: cover; object-position: 0 18%; }
@media (max-width: 960px) { .wpj { grid-template-columns: 1fr; } }

/* ── Reports ── */
.rep { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.recipe .grp { display: grid; gap: 8px; padding-block: 12px; border-top: 1px solid var(--rule); }
.recipe .grp:first-of-type { border-top: 0; padding-top: 0; }
.recipe .lab { color: var(--graphite); }
.seg { display: flex; flex-wrap: wrap; border: 1.5px solid var(--ink); width: fit-content; }
.seg button { border: 0; background: transparent; min-height: 40px; padding: 0 13px; cursor: pointer; font: 600 14px/1 var(--body); }
.seg button + button { border-left: 1px solid var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--sheet); }
.seg button:disabled { color: var(--faint); cursor: not-allowed; }
.checks { display: flex; flex-wrap: wrap; gap: 6px; }
.chk { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 11px; border: 1px solid var(--rule2); cursor: pointer; font-size: 14.5px; user-select: none; }
.chk input { appearance: none; width: 16px; height: 16px; border: 1.5px solid var(--ink); margin: 0; display: grid; place-items: center; background: var(--sheet); }
.chk input:checked { background: var(--ink); }
.chk input:checked::after { content: ""; width: 8px; height: 4px; border: solid var(--sheet); border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.chk:has(input:checked) { border-color: var(--ink); }
.chk:has(input:focus-visible) { outline: 3px solid var(--marker); outline-offset: 2px; }
.dates { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dates input { min-height: 40px; border: 1.5px solid var(--ink); background: var(--sheet); color: var(--ink); padding: 0 10px; font: 500 14px var(--body); }
.preview { position: relative; }
.preview .pg { border: 1.5px solid var(--ink); background: #fff; aspect-ratio: 8.5 / 7.2; overflow: hidden; position: relative; }
.preview .pg img { width: 100%; height: auto; position: absolute; inset: 0 0 auto 0; transition: opacity .35s; }
.preview .pg .xl { position: absolute; inset: 0; padding: 18px; display: grid; grid-template-columns: 34px repeat(4, minmax(0, 1fr)); grid-auto-rows: 34px; font: 500 11px/1.2 var(--mono); color: #3B4248; background: #fff; transition: opacity .35s; }
.xl > div { border-right: 1px solid #DDE2E5; border-bottom: 1px solid #DDE2E5; padding: 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.xl .hd { background: #F1F3F4; color: #7A848B; text-align: center; }
.xl .tg { color: #1D5FB7; }
.xl .big { grid-column: span 4; font: 700 15px/1.2 var(--display); color: #15181B; }
.recipe-line { margin-top: 14px; font: 500 13px/1.6 var(--mono); font-stretch: 87.5%; color: var(--ink); border: 1.5px solid var(--ink); background: var(--sheet); padding: 12px 14px; }
.recipe-line b { background: color-mix(in srgb, var(--marker) 55%, transparent); color: var(--ink); font-weight: 600; padding-inline: 2px; }
.ways { margin-top: clamp(24px, 3vw, 36px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1.5px solid var(--ink); background: var(--sheet); }
.ways > div { padding: 16px 18px 18px; display: grid; gap: 6px; align-content: start; }
.ways > div + div { border-left: 1px solid var(--rule); }
.ways p { font-size: 15px; color: var(--graphite); }
.ways code { font: 500 12.5px var(--mono); background: color-mix(in srgb, var(--marker) 35%, transparent); padding: 0 3px; color: var(--ink); }
@media (max-width: 960px) { .rep { grid-template-columns: 1fr; } .ways { grid-template-columns: 1fr 1fr; } .ways > div:nth-child(3) { border-left: 0; } .ways > div:nth-child(n+3) { border-top: 1px solid var(--rule); } }
@media (max-width: 560px) { .ways { grid-template-columns: 1fr; } .ways > div + div { border-left: 0; border-top: 1px solid var(--rule); } }

/* ── Setup ── */
.setup { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.tree { padding: 6px 0 4px; display: grid; }
.tr { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: stretch; min-height: 40px; }
.tr .tier { font: 600 10px/1 var(--mono); font-stretch: 87.5%; letter-spacing: .06em; text-transform: uppercase; color: var(--graphite); display: flex; align-items: center; border-right: 1px solid var(--rule); padding-right: 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tr .node { position: relative; display: flex; align-items: center; padding-left: calc(18px + var(--d) * 26px); }
.tr .node::before { content: ""; position: absolute; left: calc(var(--d) * 26px - 13px); top: 0; height: 50%; width: 22px; border-left: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); opacity: var(--line, 1); }
.tr.d0 .node::before { display: none; }
.tr .nm { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--ink); background: var(--sheet); padding: 5px 10px; font-size: 15px; min-height: 32px; }
.tr .nm small { font: 600 9.5px/1 var(--mono); font-stretch: 87.5%; letter-spacing: .06em; color: var(--faint); text-transform: uppercase; }
.tr.el .nm { border-style: dashed; color: var(--graphite); }
.tree.swap .tr { animation: rowin .45s cubic-bezier(.2,.8,.2,1) both; }
.tree.swap .tr:nth-child(2) { animation-delay: .04s; } .tree.swap .tr:nth-child(3) { animation-delay: .08s; } .tree.swap .tr:nth-child(4) { animation-delay: .12s; } .tree.swap .tr:nth-child(5) { animation-delay: .16s; } .tree.swap .tr:nth-child(6) { animation-delay: .2s; } .tree.swap .tr:nth-child(7) { animation-delay: .24s; } .tree.swap .tr:nth-child(8) { animation-delay: .28s; }
.own { display: none; gap: 8px; flex-wrap: wrap; }
.own.show { display: flex; }
.own input { min-height: 40px; width: 140px; border: 1.5px solid var(--ink); background: var(--sheet); color: var(--ink); padding: 0 10px; font: 500 15px var(--body); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; color: var(--graphite); font-size: 14px; }
.legend span { display: inline-flex; gap: 8px; align-items: center; }
.legend i { width: 22px; height: 14px; border: 1.5px solid var(--ink); display: inline-block; }
.legend i.d { border-style: dashed; }
.twoshots { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 24px); margin-top: clamp(20px, 3vw, 32px); }
@media (max-width: 960px) { .setup { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .twoshots { grid-template-columns: 1fr; } .tr { grid-template-columns: 78px minmax(0, 1fr); } }

/* ── Record + quantities ── */
.recq { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.also { columns: 2; column-gap: 28px; margin: 0; padding: 0; list-style: none; }
.also li { break-inside: avoid; padding: 10px 0 10px 26px; border-top: 1px solid var(--rule); position: relative; color: var(--graphite); font-size: 15.5px; }
.also li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 10px solid var(--ink); }
.also li b { color: var(--ink); }
.qty td:last-child { text-align: right; font: 700 20px/1.2 var(--display); font-stretch: 108%; color: var(--ink); white-space: nowrap; }
.qty td:first-child { font: 400 15.5px/1.4 var(--body); color: var(--graphite); width: auto; }
.qnote { margin-top: 10px; color: var(--graphite); font-size: 13.5px; }
@media (max-width: 960px) { .recq { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .also { columns: 1; } .qty td { display: table-cell !important; } .qty tr { display: table-row !important; } }

/* ── About + contact (the title block) ── */
.about { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.about img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 1.5px solid var(--ink); filter: grayscale(1) contrast(1.05); }
.about p { color: var(--graphite); max-width: 60ch; margin-top: 14px; }
.creds { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tblock { margin-top: clamp(40px, 6vw, 72px); border: 2px solid var(--ink); background: var(--sheet); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.tblock .say { padding: clamp(22px, 3vw, 36px); border-right: 1.5px solid var(--ink); display: grid; gap: 16px; align-content: start; }
.tblock .say p { color: var(--graphite); }
.tblock .cells { display: grid; grid-template-columns: 1fr 1fr; }
.tblock .cell { padding: 12px 16px 14px; border-bottom: 1px solid var(--ink); display: grid; gap: 4px; align-content: start; }
.tblock .cell:nth-child(odd) { border-right: 1px solid var(--ink); }
.tblock .cell .mono { color: var(--graphite); }
.tblock .cell b { font: 650 17px/1.3 var(--display); font-stretch: 104%; overflow-wrap: anywhere; }
.tblock .cell a { text-decoration-color: var(--marker); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.tblock .cell.wide { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--graphite); padding-block: 28px 12px; font-size: 14px; }
@media (max-width: 900px) { .about { grid-template-columns: 140px minmax(0, 1fr); } .tblock { grid-template-columns: 1fr; } .tblock .say { border-right: 0; border-bottom: 1.5px solid var(--ink); } }
@media (max-width: 520px) { .about { grid-template-columns: 1fr; } .about img { width: 160px; } .tblock .cells { grid-template-columns: 1fr; } .tblock .cell:nth-child(odd) { border-right: 0; } }

/* ── Bottom title strip: the drawing set's sheet index, and the page's nav ── */
.strip { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; height: 46px; background: var(--sheet); border-top: 1.5px solid var(--ink); display: flex; align-items: stretch; }
.strip > * { display: flex; align-items: center; padding: 0 16px; border-right: 1px solid var(--rule); white-space: nowrap; }
.strip .s-brand { font: 600 11px var(--mono); font-stretch: 87.5%; letter-spacing: .1em; }
.strip .s-now { gap: 10px; min-width: 0; flex: 1; overflow: hidden; }
.strip .s-now b { font: 650 15px/1 var(--display); font-stretch: 104%; overflow: hidden; text-overflow: ellipsis; }
.strip .s-idx { gap: 0; padding: 0; }
.strip .s-idx a { width: 38px; height: 100%; display: grid; place-items: center; text-decoration: none; font: 600 10.5px var(--mono); color: var(--graphite); border-left: 1px solid var(--rule); }
.strip .s-idx a[aria-current="true"] { background: var(--ink); color: var(--sheet); }
.strip .s-idx a:hover { background: var(--marker); color: var(--marker-ink); }
.strip .s-cta { border-right: 0; padding: 0; }
.strip .s-cta a { height: 100%; display: flex; align-items: center; padding: 0 18px; background: var(--ink); color: var(--sheet); text-decoration: none; font: 700 14px var(--body); }
.strip .s-cta a:hover { background: var(--marker); color: var(--marker-ink); }
@media (max-width: 900px) { .strip .s-brand, .strip .s-idx { display: none; } }


/* ── Multi-page additions ─────────────────────────────────────────────────── */
.nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--marker); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.menu-btn { display: none; margin-left: auto; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--ink); background: var(--sheet); font: 700 14px/1 var(--body); cursor: pointer; }
.mnav { border: 1.5px solid var(--ink); background: var(--sheet); margin-bottom: 18px; }
.mnav a { display: block; padding: 14px 16px; border-top: 1px solid var(--rule); text-decoration: none; font: 650 17px/1.2 var(--display); }
.mnav a:first-child { border-top: 0; }
.mnav a[aria-current="page"] { background: var(--marker); color: var(--marker-ink); }
@media (max-width: 1060px) { .menu-btn { display: inline-flex; align-items: center; } .top .btn { margin-left: 0; } }
@media (max-width: 520px) { .top .btn { display: none; } }
@media (min-width: 1061px) { .mnav { display: none !important; } }

.phero { padding-top: clamp(28px, 4vw, 56px); }
.phero .tag { color: var(--graphite); }
.phero h1 { font-size: clamp(34px, 4.6vw, 70px); margin-top: 12px; max-width: 20ch; }
.phero .lede { margin-top: 20px; max-width: 64ch; }
.phero .jump { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--rule2); text-decoration: none; font: 600 11px/1 var(--mono); font-stretch: 87.5%; letter-spacing: .05em; text-transform: uppercase; color: var(--ink); background: var(--sheet); }
.chip:hover { border-color: var(--ink); background: var(--marker); color: var(--marker-ink); }
.sub { margin-top: clamp(28px, 4vw, 48px); }
.sub > h3 { font-size: clamp(22px, 2vw, 28px); font-stretch: 110%; font-weight: 720; margin-bottom: 14px; }
.cols2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); align-items: start; }
@media (max-width: 960px) { .cols2, .cols3 { grid-template-columns: 1fr; } }
.facts { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.facts li { padding-left: 26px; position: relative; color: var(--graphite); }
.facts li::before { content: ""; position: absolute; left: 0; top: .62em; width: 14px; border-top: 1.5px solid var(--ink); }
.facts li b { color: var(--ink); }
.prose p + p { margin-top: 12px; }
.prose p { color: var(--graphite); max-width: 66ch; }
.note { font-size: 14px; color: var(--graphite); border-left: 3px solid var(--marker); padding: 2px 0 2px 12px; }

/* Lifecycle strip */
.life { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1.5px solid var(--ink); background: var(--sheet); counter-reset: st; }
.life > a { display: grid; gap: 8px; align-content: start; padding: 18px 18px 20px; text-decoration: none; color: inherit; position: relative; }
.life > a + a { border-left: 1px solid var(--rule); }
.life > a::after { content: ""; position: absolute; right: -9px; top: 26px; width: 16px; height: 16px; border-top: 1.5px solid var(--ink); border-right: 1.5px solid var(--ink); transform: rotate(45deg); background: var(--sheet); z-index: 1; }
.life > a:last-child::after { display: none; }
.life > a:hover { background: color-mix(in srgb, var(--marker) 22%, var(--sheet)); }
.life .n { font: 700 11px var(--mono); color: var(--graphite); }
.life h3 { font-size: 19px; }
.life p { font-size: 14.5px; color: var(--graphite); line-height: 1.45; }
@media (max-width: 960px) { .life { grid-template-columns: 1fr; } .life > a + a { border-left: 0; border-top: 1px solid var(--rule); } .life > a::after { display: none; } }

/* Comparison by category */
.cmp { width: 100%; border-collapse: collapse; border: 1.5px solid var(--ink); background: var(--sheet); font-size: 15px; }
.cmp caption { text-align: left; padding: 0 0 10px; color: var(--graphite); }
.cmp th, .cmp td { padding: 11px 12px; border-top: 1px solid var(--rule); text-align: center; vertical-align: middle; }
.cmp thead th { font: 600 10.5px/1.35 var(--mono); font-stretch: 87.5%; letter-spacing: .05em; text-transform: uppercase; color: var(--graphite); border-top: 0; border-bottom: 1px solid var(--ink); }
.cmp tbody th { text-align: left; font: 600 15.5px/1.3 var(--display); font-stretch: 102%; color: var(--ink); width: 34%; }
.cmp td.us, .cmp th.us { background: color-mix(in srgb, var(--marker) 16%, var(--sheet)); }
.cmp .m { font: 700 18px/1 var(--display); }
.cmp .m.p { color: var(--graphite); }
.cmp .m.n { color: var(--faint); }
.cmp small { display: block; font-size: 12.5px; color: var(--graphite); margin-top: 3px; font-family: var(--body); }
.legend2 { margin-top: 10px; color: var(--graphite); font-size: 14px; }
.scrollx { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.scrollx > table { min-width: 680px; }

/* Standards */
.std td:first-child { width: 26%; }
.std td:nth-child(2) { color: var(--ink); }
.std .does { font: 600 10.5px/1.3 var(--mono); font-stretch: 87.5%; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.std .does.c { background: var(--marker); color: var(--marker-ink); padding: 3px 6px; }
.std .does.r { border: 1px solid var(--rule2); padding: 2px 6px; color: var(--graphite); }
.grp-h td { background: var(--paper); font: 600 11px/1.4 var(--mono) !important; font-stretch: 87.5% !important; letter-spacing: .08em; text-transform: uppercase; color: var(--graphite) !important; }

/* Calculator */
.calc .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.calc label { display: grid; gap: 6px; font: 600 10.5px/1.3 var(--mono); font-stretch: 87.5%; letter-spacing: .06em; text-transform: uppercase; color: var(--graphite); }
.calc input { min-height: 44px; border: 1.5px solid var(--ink); background: var(--sheet); color: var(--ink); padding: 0 10px; font: 600 18px/1 var(--body); width: 100%; }
.calc .outs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1.5px solid var(--ink); }
.calc .outs > div { padding: 12px 14px; display: grid; gap: 4px; }
.calc .outs > div + div { border-left: 1px solid var(--rule); }
.calc .outs b { font: 750 26px/1.1 var(--display); font-stretch: 108%; }
.verdict { padding: 12px 14px; border: 1.5px dashed var(--rule2); color: var(--graphite); font-size: 15.5px; }
.verdict.ok { border-style: solid; border-color: var(--ink); color: var(--ink); }
.verdict.short { border-style: solid; border-color: var(--tag); color: var(--ink); box-shadow: inset 4px 0 0 var(--tag); }
@media (max-width: 520px) { .calc .outs { grid-template-columns: 1fr; } .calc .outs > div + div { border-left: 0; border-top: 1px solid var(--rule); } }

/* Industry and role blocks */
.ind { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(16px, 3vw, 40px); padding-block: clamp(22px, 3vw, 32px); border-top: 1px solid var(--ink); }
.ind:last-child { border-bottom: 1px solid var(--ink); }
.ind h3 { font-size: clamp(22px, 2.2vw, 30px); font-stretch: 110%; font-weight: 720; }
.ind .chain { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font: 600 11px/1 var(--mono); font-stretch: 87.5%; letter-spacing: .05em; text-transform: uppercase; }
.ind .chain span { border: 1.5px solid var(--ink); padding: 6px 8px; background: var(--sheet); }
.ind .chain span.el { border-style: dashed; color: var(--graphite); }
.ind .chain i { font-style: normal; color: var(--graphite); }
.ind .body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.ind .body .prose p { font-size: 16px; }
@media (max-width: 900px) { .ind, .ind .body { grid-template-columns: 1fr; } }

/* Downloads */
.dl { display: flex; gap: 10px; flex-wrap: wrap; }
.dl a { display: inline-grid; gap: 4px; padding: 12px 16px; border: 1.5px solid var(--ink); background: var(--sheet); text-decoration: none; min-width: 220px; }
.dl a b { font: 700 16px/1.2 var(--display); }
.dl a span { font: 500 11px/1.4 var(--mono); font-stretch: 87.5%; letter-spacing: .04em; text-transform: uppercase; color: var(--graphite); }
.dl a:hover { background: var(--marker); color: var(--marker-ink); }
.dl a:hover span { color: var(--marker-ink); }

/* Page index (contents) */
.contents { columns: 3; column-gap: 0; border: 1.5px solid var(--ink); background: var(--sheet); margin: 0; padding: 6px 0; list-style: none; }
.contents li { break-inside: avoid; }
.contents a { display: grid; grid-template-columns: 36px 1fr; gap: 6px; padding: 9px 16px; text-decoration: none; color: var(--ink); font-size: 15.5px; }
.contents a span { font: 600 11px/1.6 var(--mono); color: var(--graphite); }
.contents a:hover { background: color-mix(in srgb, var(--marker) 30%, var(--sheet)); }
@media (max-width: 900px) { .contents { columns: 2; } }
@media (max-width: 560px) { .contents { columns: 1; } }

/* Site footer */
.sitefoot { margin-top: clamp(64px, 8vw, 110px); border-top: 1.5px solid var(--ink); padding-block: 26px 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 40px; color: var(--graphite); font-size: 14px; }
.sitefoot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.sitefoot a { color: var(--ink); }
@media (max-width: 760px) { .sitefoot { grid-template-columns: 1fr; } }

[hidden] { display: none !important; }
.cmp .m, .legend2 .m { display: inline-block; width: 15px; height: 15px; border-radius: 50%; border: 1.6px solid var(--ink); background: var(--ink); vertical-align: middle; font-size: 0; }
.cmp .m.p, .legend2 .m.p { background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); }
.cmp .m.n, .legend2 .m.n { width: 15px; height: 0; border: 0; border-top: 2px solid var(--faint); border-radius: 0; background: none; }
.legend2 .m { margin: 0 6px 0 0; }

/* Sample-report pop-up */
dialog.sample { width: min(1080px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 2px solid var(--ink); background: var(--sheet); color: var(--ink); overflow: auto; }
dialog.sample::backdrop { background: rgba(14, 17, 19, .62); }
.sample .sh { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--ink); background: var(--sheet); color: var(--graphite); }
.sample .sh .x { min-height: 40px; padding: 0 14px; border: 1.5px solid var(--ink); background: var(--sheet); color: var(--ink); font: 700 14px/1 var(--body); cursor: pointer; }
.sample .sb { padding: 16px 16px 0; display: grid; gap: 12px; }
.sample h2 { font-size: clamp(24px, 2.6vw, 34px); }
.sample .warn { margin: 0; padding: 12px 14px; background: var(--marker); color: #15181B; border: 1.5px solid #15181B; font-size: 15.5px; line-height: 1.5; max-width: none; }
.sample .pv { position: relative; margin: 16px; border: 1.5px solid var(--ink); background: #fff; max-height: min(62vh, 760px); overflow: auto; }
.sample .pv img { display: block; width: 100%; height: auto; }
.sample .pvcap { margin: -8px 16px 14px; color: var(--graphite); font-size: 14px; }
.sample .stampx { position: absolute; top: 16px; right: 22px; transform: rotate(-6deg); font: 800 15px/1 var(--display); font-stretch: 118%; letter-spacing: .14em; text-transform: uppercase; color: #CF311D; border: 2.5px solid #CF311D; padding: 7px 10px 6px; background: rgba(255, 255, 255, .9); pointer-events: none; }
.sample .acts { display: flex; gap: 10px; flex-wrap: wrap; padding: 0 16px 16px; }
@media (max-width: 760px) { .sample .pv { max-height: none; } }

/* Legal pages */
.legal-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: start; }
.legal-toc { columns: 1 !important; position: sticky; top: 24px; max-height: calc(100vh - 110px); overflow: auto; }
.legal-toc a { padding: 7px 14px; font-size: 14.5px; }
.legal { max-width: 74ch; }
.lsec { padding: 26px 0; border-top: 1px solid var(--rule); scroll-margin-top: 24px; }
.lsec:first-child { border-top: 0; padding-top: 0; }
.lsec h2 { font-size: clamp(21px, 2vw, 26px); font-stretch: 106%; font-weight: 720; display: flex; gap: 14px; align-items: baseline; margin-bottom: 12px; }
.lsec h2 .mono { color: var(--graphite); }
.lsec p { color: var(--ink); max-width: 74ch; }
.lsec p + p, .lsec p + ul, .lsec ul + p { margin-top: 12px; }
.lsec .facts li { color: var(--ink); }
.lsec .caps { font-weight: 700; font-size: 15px; line-height: 1.6; letter-spacing: .01em; border: 1.5px solid var(--ink); border-left: 6px solid var(--ink); background: var(--sheet); padding: 14px 16px; }
.lsec .sched td:first-child { width: 22%; }
@media (max-width: 960px) { .legal-grid { grid-template-columns: minmax(0, 1fr); } .legal-toc { position: static; max-height: none; columns: 2 !important; } }
@media (max-width: 560px) { .legal-toc { columns: 1 !important; } }
