@font-face { font-family: "Graphite Sans"; src: url("/assets/fonts/graphite-sans.446679e77b.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Graphite Sans"; src: url("/assets/fonts/graphite-sans-italic.6929e0f161.woff2") format("woff2"); font-weight: 400 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Graphite Mono"; src: url("/assets/fonts/graphite-mono-400.aaeeccb166.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Graphite Mono"; src: url("/assets/fonts/graphite-mono-600.ff537c4ebd.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
/* Whenproof design system: the tokens and components shared by the landing site (site/, prepended to
   site/src/styles.css by site/scripts/build.mjs) and the app's own pages (src/html.ts, inlined and allowed
   by its hash). Each surface adds its own @font-face rules (files on the site, data: URIs in the app).
   Rules and rationale: docs/DESIGN.md. Change a value here, not in a surface stylesheet. */

:root {
  /* Type: Graphite Sans and Graphite Mono are IBM Plex Sans / Plex Mono subsets (OFL, design/fonts/). */
  --font-sans: "Graphite Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Graphite Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  /* Seven steps. xs: mono labels. sm: tables, captions, meta. base: UI. md: reading body. lg: lead, h3.
     xl: section and page titles. display: the one headline per page. */
  --t-xs: 0.75rem;
  --t-sm: 0.875rem;
  --t-base: 1rem;
  --t-md: 1.0625rem;
  --t-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --t-xl: clamp(1.875rem, 1.3rem + 2.2vw, 3rem);
  --t-display: clamp(2.75rem, 1.5rem + 6vw, 6.25rem);
  --lh-tight: 1.04;
  --lh-snug: 1.3;
  --lh-body: 1.65;
  --track-display: -0.032em;
  --track-title: -0.022em;
  --track-label: 0.08em;

  /* Space: a 4px grid. */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;

  /* Colour: graphite and one amber. Greys are tinted toward blue-black. */
  --night: #0b0f15;
  --night-2: #0e131b;
  --night-3: #141b26;
  --night-line: #1f2733;
  --on-night: #e9edf3;
  --on-night-2: #b3bdcc;
  --on-night-3: #8b97a9;
  --amber: #f2a83b;
  --amber-hi: #ffbf5e;
  --amber-ink: #8a4f00;
  --amber-wash: #fcf4e7;
  --amber-line: #e8c995;
  --paper: #f5f6f8;
  --paper-2: #eceff3;
  --card: #ffffff;
  --ink: #0f141b;
  --ink-2: #485365;
  --ink-3: #5a6576;
  --line: #dfe3ea;
  --line-2: #c8cfda;
  --danger: #a1271a;
  --danger-wash: #fcf2f0;
  --danger-line: #eec7bf;
  --focus: var(--amber-ink);

  --radius-sm: 6px;
  --radius: 10px;
  --control: 2.75rem; /* button and field height */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow-panel: 0 1px 2px rgba(15, 20, 27, 0.04), 0 24px 48px -32px rgba(15, 20, 27, 0.32);
}

*, *::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(--t-md) / var(--lh-body) var(--font-sans);
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; font-kerning: normal;
}
h1, h2, h3, h4 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0 0 var(--s-4); text-wrap: pretty; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
strong, b { font-weight: 600; }
code, kbd, samp, pre { font-family: var(--font-mono); font-size: 0.875em; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
.on-night { --focus: var(--amber); }
::selection { background: rgba(242, 168, 59, 0.32); }

/* Labels: the one mono uppercase style (eyebrows, kickers, panel and table captions). */
.label { font: 500 var(--t-xs) / 1.4 var(--font-mono); letter-spacing: var(--track-label); text-transform: uppercase; }

/* --- Buttons: one system. Primary (amber, one per screen), secondary (outline), quiet (text link). --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: var(--control); padding: 0 1.15rem; border: 1px solid transparent; border-radius: var(--radius-sm);
  font: 600 0.9375rem / 1 var(--font-sans); letter-spacing: -0.005em; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.btn-primary { background: var(--amber); color: #1a1104; box-shadow: inset 0 -1px 0 rgba(26, 17, 4, 0.14); }
.btn-primary:hover { background: var(--amber-hi); }
.btn-primary:active { background: #e89a2a; }
.btn-secondary { background: var(--card); color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--ink-3); }
.on-night .btn-secondary { background: transparent; color: var(--on-night); border-color: rgba(233, 237, 243, 0.24); }
.on-night .btn-secondary:hover { border-color: rgba(233, 237, 243, 0.55); }
.btn-lg { min-height: 3rem; padding: 0 1.4rem; font-size: 1rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.link-quiet { display: inline-flex; align-items: center; gap: 0.4em; font-weight: 500; text-decoration: none; }
.link-quiet .arrow { display: inline-block; transition: transform 240ms var(--ease-out); }
.link-quiet:hover .arrow { transform: translateX(3px); }

/* --- Badge: statuses only. Neutral, accent (needs a person), danger (must act). --- */
.badge {
  display: inline-flex; align-items: center; gap: 0.35em; vertical-align: 0.1em;
  padding: 0.12rem 0.45rem; border: 1px solid var(--line); border-radius: 4px; background: var(--paper);
  font: 500 var(--t-xs) / 1.35 var(--font-sans); color: var(--ink-2); white-space: nowrap;
}
.badge-accent { background: var(--amber-wash); border-color: var(--amber-line); color: var(--amber-ink); }
.badge-danger { background: var(--danger-wash); border-color: var(--danger-line); color: var(--danger); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* --- Tables: a quiet header, hairline rows, aligned numbers, the first column carries the row. --- */
.table { border-collapse: collapse; width: 100%; font-size: var(--t-sm); line-height: 1.5; font-variant-numeric: tabular-nums; }
.table th, .table td { padding: 0.6rem 0.8rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table thead th { font: 500 var(--t-xs) / 1.4 var(--font-sans); letter-spacing: 0.02em; color: var(--ink-3); background: transparent; border-bottom-color: var(--line-2); white-space: nowrap; }
.table tbody tr:last-child > * { border-bottom: 0; }
.table tbody tr:hover > * { background: rgba(15, 20, 27, 0.022); }
.table tbody th, .table td:first-child { color: var(--ink); font-weight: 500; }
.table .num { text-align: right; white-space: nowrap; }
.table code { font-size: 0.86em; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }

/* --- Code blocks: night panels, the same token colours everywhere. --- */
.code {
  margin: 0; padding: var(--s-4) var(--s-5); overflow: auto; border-radius: var(--radius);
  background: var(--night-2); color: #cdd5e1; font: 400 0.8125rem / 1.7 var(--font-mono); tab-size: 2;
}
.code code { font-size: inherit; }
.j-key { color: #9db3d4; }
.j-str { color: #dfe5ee; }
.j-num, .j-lit { color: #e8c48d; }
.j-punct { color: #6f7c90; }
.j-fold { color: #6f7c90; }

/* --- Callouts: a note beside the text. Neutral by default; accent for "a person must decide". --- */
.callout { margin: 0 0 var(--s-5); padding: var(--s-3) var(--s-4); border-left: 2px solid var(--line-2); background: var(--card); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink-2); font-size: var(--t-sm); line-height: 1.6; }
.callout-accent { border-left-color: var(--amber); background: var(--amber-wash); color: var(--ink); }
.callout-danger { border-left-color: var(--danger); background: var(--danger-wash); color: var(--danger); }

/* Placeholders a person must fill: {{field}} and TODO. */
.ph { font: 500 0.82em var(--font-mono); color: var(--amber-ink); background: var(--amber-wash); border-radius: 3px; padding: 0.05em 0.3em; }

/* --- Facts: label / value pairs (artifact metadata, record fields). --- */
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--s-2) var(--s-6); margin: 0; font-size: var(--t-sm); font-variant-numeric: tabular-nums; }
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.facts .mono { font-family: var(--font-mono); font-size: 0.92em; }

/* --- Rendered Markdown (reports and drafts): GitHub's structure, Whenproof's type. --- */
.md { font-size: var(--t-base); line-height: 1.65; overflow-wrap: break-word; }
.md > :first-child { margin-top: 0; }
.md > :last-child { margin-bottom: 0; }
.md h1 { font-size: 1.5rem; line-height: 1.25; letter-spacing: var(--track-title); margin: 0 0 var(--s-4); }
.md h2 { font-size: 1.1875rem; line-height: 1.3; letter-spacing: -0.012em; margin: var(--s-6) 0 var(--s-3); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.md h1 + h2, .md h1 + p + h2 { border-top: 0; padding-top: 0; }
.md h3 { font-size: var(--t-base); margin: var(--s-5) 0 var(--s-2); }
.md h4 { font-size: var(--t-sm); margin: var(--s-4) 0 var(--s-2); }
.md p, .md ul, .md ol, .md blockquote, .md details { margin: 0 0 var(--s-4); }
.md ul, .md ol { padding-left: 1.3rem; }
.md li { margin: 0.2rem 0; }
.md li::marker { color: var(--ink-3); }
.md blockquote { padding: var(--s-3) var(--s-4); border-left: 2px solid var(--amber); background: var(--amber-wash); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink); font-size: var(--t-sm); }
.md blockquote p { margin: 0; }
.md table { border-collapse: collapse; margin: 0 0 var(--s-5); font-size: var(--t-sm); line-height: 1.5; font-variant-numeric: tabular-nums; }
.md .table-scroll table { margin: 0; }
/* Wide tables scroll sideways inside a fading edge (scroll shadows: no script). */
.table-scroll {
  margin: 0 0 var(--s-5); overflow-x: auto; -webkit-overflow-scrolling: touch;
  background:
    linear-gradient(to right, var(--card) 30%, rgba(255, 255, 255, 0)) left / 2.5rem 100% no-repeat local,
    linear-gradient(to left, var(--card) 30%, rgba(255, 255, 255, 0)) right / 2.5rem 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(15, 20, 27, 0.18), transparent) left / 0.8rem 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(15, 20, 27, 0.18), transparent) right / 0.8rem 100% no-repeat scroll;
}
.table-scroll:focus-visible { outline-offset: 0; }
.scroll-hint { display: none; margin: 0 0 var(--s-2); font: 400 var(--t-xs) / 1.4 var(--font-sans); color: var(--ink-3); }
.scroll-hint::after { content: " →"; }
.md th, .md td { padding: 0.55rem 0.9rem 0.55rem 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.md th:last-child, .md td:last-child { padding-right: 0; }
.md thead th { font: 500 var(--t-xs) / 1.4 var(--font-sans); letter-spacing: 0.02em; color: var(--ink-3); border-bottom-color: var(--line-2); white-space: nowrap; }
.md tbody tr:last-child > * { border-bottom: 0; }
.md td.num, .md th.num { text-align: right; padding-left: 1.25rem; white-space: nowrap; }
.md td:first-child { color: var(--ink); }
.md code { font-size: 0.84em; background: var(--paper-2); padding: 0.12em 0.36em; border-radius: 4px; overflow-wrap: anywhere; }
.md a { color: #0b5cad; text-decoration-color: rgba(11, 92, 173, 0.35); }
.md a:hover { text-decoration-color: currentColor; }
.md em.todo { font: normal 500 0.8em var(--font-mono); color: var(--amber-ink); background: var(--amber-wash); border: 1px solid var(--amber-line); padding: 0.02em 0.35em; border-radius: 3px; }
.md details summary { cursor: pointer; color: var(--ink-2); font-size: var(--t-sm); }
.md hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-5) 0; }

/* Narrow screens: tables keep their rows intact and scroll sideways, like GitHub's, instead of breaking
   identifiers and versions mid-token. */
@media (max-width: 40rem) {
  /* Wide tables keep rows intact and scroll; the hint says so. */
  .table-scroll td, .table-scroll th { white-space: nowrap; overflow-wrap: normal; }
  .scroll-hint { display: block; }
  /* Counts, deadlines and two- or three-column tables become label / value pairs. */
  .md table.stack, .md table.stack tbody, .md table.stack tr { display: block; width: 100%; }
  .md table.stack thead { display: none; }
  .md table.stack tr { padding: var(--s-2) 0; border-bottom: 1px solid var(--line); }
  .md table.stack tr:last-child { border-bottom: 0; }
  .md table.stack td { display: grid; grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr); gap: var(--s-3); padding: 0.2rem 0; border: 0; text-align: left; white-space: normal; }
  .md table.stack td.num { padding-left: 0; text-align: left; white-space: normal; }
  .md table.stack td::before { content: attr(data-label); color: var(--ink-3); font-size: var(--t-xs); line-height: 1.9; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
}

/* Site layout (home, form, guides, legal). The tokens and components (type, colour, space, buttons, badges,
   tables, code, callouts, rendered Markdown) come from ../../design/system.css, which the build puts in
   front of this file. House rules: ../../../DESIGN.md (ventures). Product notes: ../../docs/DESIGN.md.
   Dark, atmospheric first screen (the dependency-graph stage), then a light "reading" page, then a dark close. */

:root {
  --wrap: 72rem;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(5rem, 12vw, 9rem);
}

html { scroll-behavior: smooth; background: var(--night); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 10; background: var(--on-night); color: var(--ink); padding: 0.6rem 1rem; border-radius: var(--radius-sm); }
.skip:focus { top: 1rem; }
.wrap { max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.nowrap { white-space: nowrap; }

/* --- Header: sits on the stage, no bar --------------------------------------------------------------- */
.site-head {
  position: absolute; inset: 0 0 auto; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: var(--s-5) var(--pad);
  color: var(--on-night);
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font-weight: 600; letter-spacing: -0.012em; font-size: 1.0625rem; }
.brand-mark { color: var(--on-night-2); }
.nav { display: flex; gap: var(--s-6); }
.nav a { text-decoration: none; color: var(--on-night-2); font-size: 0.9375rem; transition: color 160ms var(--ease-out); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--on-night); }

/* --- Stage: the full-screen first view ---------------------------------------------------------------- */
.stage {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: grid; align-items: center;
  padding: 7rem var(--pad);
  background:
    radial-gradient(60% 55% at 82% 28%, rgba(242, 168, 59, 0.06) 0%, transparent 60%),
    radial-gradient(120% 90% at 70% 0%, #141d2b 0%, transparent 65%),
    var(--night);
  color: var(--on-night);
}
.stage-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; animation: fade-in 1.8s var(--ease-out) both; }
@keyframes fade-in { from { opacity: 0; } }
/* Calm the graph behind the words and fade it into the edges. */
.stage::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 52rem 30rem at 22% 52%, rgba(11, 15, 21, 0.92) 0%, rgba(11, 15, 21, 0.7) 45%, rgba(11, 15, 21, 0) 100%),
    linear-gradient(180deg, rgba(11, 15, 21, 0.8) 0%, rgba(11, 15, 21, 0) 20%, rgba(11, 15, 21, 0) 72%, rgba(11, 15, 21, 0.92) 100%);
}
.stage-inner { width: 100%; max-width: var(--wrap); margin: 0 auto; }
.stage-inner > * { max-width: 40rem; }
.eyebrow { color: var(--amber); margin-bottom: var(--s-5); }
.stage .eyebrow { font-size: 0.8125rem; }
.stage h1 {
  font-size: var(--t-display); line-height: 0.98; letter-spacing: var(--track-display); font-weight: 600;
  max-width: 13.5ch; margin: 0 0 var(--s-6);
}
.stage-lead { font-size: var(--t-lg); line-height: 1.55; color: var(--on-night-2); max-width: 34rem; margin: 0 0 var(--s-6); }
.stage-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-6); }
.stage-link { color: var(--on-night); }
.cta-with-note { display: inline-flex; flex-direction: column; align-items: flex-start; gap: var(--s-2); }
.stage-note { font: 400 0.8125rem / 1.4 var(--font-sans); color: var(--on-night-3); }
.stage-actions { align-items: flex-start; }
.stage-actions .stage-link { margin-top: 0.85rem; }
.stage-link:hover { color: var(--amber-hi); }

.stage-cue { position: absolute; left: 50%; bottom: 2rem; width: 1px; height: 3.5rem; transform: translateX(-50%); overflow: hidden; background: rgba(214, 223, 236, 0.14); }
.stage-cue span { position: absolute; inset: 0; background: var(--amber); animation: cue 2.6s var(--ease-out) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* --- Reading part ------------------------------------------------------------------------------------- */
.section { padding: var(--section) 0; }
.section.alt { background: var(--paper-2); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
.copy { max-width: 40rem; }
.copy.narrow { max-width: 44rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.kicker { color: var(--amber-ink); margin-bottom: var(--s-4); }
.kicker .n { color: var(--ink-3); }
.section h2 { font-size: var(--t-xl); line-height: var(--lh-tight); letter-spacing: var(--track-display); margin-bottom: var(--s-5); }
.muted, .copy p.muted { color: var(--ink-2); font-size: var(--t-base); }
.copy a, .faq a, .sources a, figcaption a { color: var(--ink); text-decoration-color: rgba(15, 20, 27, 0.32); }
.copy a:hover, .faq a:hover, .sources a:hover, figcaption a:hover { text-decoration-color: var(--amber-ink); }

/* Files a scan writes */
.files { list-style: none; margin: var(--s-6) 0 0; padding: 0; border-top: 1px solid var(--line); }
.files li { display: grid; grid-template-columns: 14rem 1fr; gap: var(--s-4); padding: var(--s-3) 0; border-bottom: 1px solid var(--line); font-size: var(--t-sm); color: var(--ink-2); }
.files code { color: var(--ink); font-size: 0.8125rem; }
.files a { text-decoration-color: rgba(15, 20, 27, 0.3); }
.files a:hover { text-decoration-color: var(--amber-ink); }

/* --- Product panels: real output, set as product UI ---------------------------------------------------- */
.panel { margin: 0; }
.panel figcaption { font-size: 0.8125rem; color: var(--ink-3); line-height: 1.55; padding: var(--s-3) 0.1rem 0; max-width: 40rem; }
.window { background: var(--night-2); color: #cdd5e1; border-radius: var(--radius); box-shadow: var(--shadow-panel); overflow: hidden; outline: 1px solid rgba(15, 20, 27, 0.6); outline-offset: -1px; }
.panel-bar { display: flex; align-items: center; gap: var(--s-3); padding: 0 var(--s-4); min-height: 2.75rem; border-bottom: 1px solid var(--night-line); background: var(--night-3); font: 400 0.75rem / 1 var(--font-mono); color: var(--on-night-3); }
.panel-title { color: #dfe5ee; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.panel-title .dim { color: var(--on-night-3); }
.panel-meta { margin-left: auto; white-space: nowrap; }
.file-icon { flex: none; width: 12px; height: 14px; color: var(--on-night-3); }
.panel pre { margin: 0; padding: var(--s-4) var(--s-5) var(--s-5); overflow: auto; font: 400 0.75rem / 1.7 var(--font-mono); tab-size: 2; }
.panel pre code { font-size: inherit; }
.panel pre:focus-visible { outline-offset: -2px; }
.j-hl { display: block; margin: 0 calc(-1 * var(--s-5)); padding: 0 var(--s-5); background: rgba(242, 168, 59, 0.08); box-shadow: inset 2px 0 0 var(--amber); }
.j-note { color: var(--amber); font-style: normal; }

/* Field lists in a dark panel: the record schema and the draft's fields */
.ledger { margin: 0; padding: var(--s-2) var(--s-5) var(--s-4); font: 400 0.78rem / 1.55 var(--font-mono); }
.ledger div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: var(--s-4); padding: 0.3rem 0 0.3rem var(--s-4); }
.ledger dt { color: #9db3d4; }
.ledger dd { margin: 0; color: #cdd5e1; overflow-wrap: anywhere; }
.ledger .ledger-group { grid-template-columns: 10rem minmax(0, 1fr); padding-left: 0; margin-top: var(--s-2); padding-top: var(--s-3); border-top: 1px solid var(--night-line); }
.ledger .ledger-group:first-child { margin-top: 0; border-top: 0; }
.ledger .ledger-group dt { color: #eef1f5; font-weight: 600; }
.ledger .ledger-group dd { color: var(--on-night-3); }
.ledger-note { color: var(--on-night-3); margin-left: 0.4rem; }
.t-ph { color: var(--amber); }
.ledger dd.calc { color: var(--amber); }
.ledger.fields div { grid-template-columns: 12.5rem minmax(0, 1fr); padding-left: 0; }
.ledger.fields .ledger-group dt { color: var(--on-night-3); font-weight: 500; font-size: 0.6875rem; letter-spacing: var(--track-label); text-transform: uppercase; }
.ledger.fields dd strong { color: #eef1f5; font-weight: 600; }

/* The GitHub check run, as the app posts it */
.panel.check .window { background: var(--card); color: var(--ink); outline-color: var(--line); }
.check-head { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); background: #f8f9fb; }
.check-status { flex: none; width: 16px; height: 16px; margin-top: 0.2rem; color: var(--ink-3); }
.check-name { margin: 0; font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); line-height: 1.4; }
.check-title { margin: 0.1rem 0 0; color: var(--ink-2); font-size: var(--t-sm); }
.check-where { margin-left: auto; font: 400 0.75rem / 1.6 var(--font-mono); color: var(--ink-3); white-space: nowrap; }
.check-body > .md { padding: var(--s-5) var(--s-6); font-size: var(--t-sm); }
.check-body > .md + .md { border-top: 1px solid var(--line); }
.check-body .md h3 { font-size: var(--t-sm); margin-top: var(--s-5); }
.check-body .md h3:first-child { margin-top: 0; }
.md .link { color: #0b5cad; }
.panel.check figcaption { padding: var(--s-3) 0.1rem 0; }

/* The Article 14 clock */
.clock { list-style: none; margin: 0 0 var(--s-6); padding: 0; position: relative; }
.clock::before { content: ""; position: absolute; left: 3.6rem; top: 1.1rem; bottom: 1.1rem; width: 1px; background: var(--line-2); }
.clock li { display: grid; grid-template-columns: 2.8rem 1fr; gap: var(--s-6); padding: var(--s-2) 0; position: relative; }
.clock li::before { content: ""; position: absolute; left: calc(3.6rem - 4px); top: 1.05rem; width: 9px; height: 9px; border-radius: 50%; background: var(--paper-2); border: 1.5px solid var(--ink-3); }
.clock li:first-child::before { background: var(--amber); border-color: var(--amber-ink); }
.clock .t { font: 600 0.875rem / 1.9 var(--font-mono); color: var(--ink); text-align: right; white-space: nowrap; }
.clock .d { color: var(--ink-2); line-height: 1.55; padding-top: 0.2rem; }
.clock strong { color: var(--ink); }
.ref { font: 400 0.75rem var(--font-mono); color: var(--ink-3); white-space: nowrap; }

/* Permissions */
.perms { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.perms .table { font-size: var(--t-base); }
.perms .table th, .perms .table td { padding: var(--s-4) var(--s-5); }
.perms .table thead th { padding-top: var(--s-3); padding-bottom: var(--s-3); }
.perms .table td:last-child { color: var(--ink-2); font-weight: 400; }
.sources { margin-top: var(--s-4); font-size: var(--t-sm); color: var(--ink-2); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-6) var(--s-6) var(--s-6); }
.plan-main { border-color: #d9b679; }
.plan h3 { font-size: var(--t-base); margin-bottom: var(--s-4); display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.price { margin: 0 0 var(--s-2); display: flex; align-items: baseline; gap: var(--s-2); flex-wrap: wrap; }
.amount { font-size: 2.5rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.per { color: var(--ink-3); font-size: var(--t-sm); }
.plan-for { color: var(--ink-2); font-size: var(--t-base); min-height: 3.3rem; margin: 0; }
.plan ul { list-style: none; margin: var(--s-5) 0 0; padding: var(--s-5) 0 0; border-top: 1px solid var(--line); font-size: var(--t-sm); }
.plan li { padding: 0.35rem 0 0.35rem 1.4rem; position: relative; line-height: 1.5; }
.plan li::before { content: ""; position: absolute; left: 0.1rem; top: 0.82rem; width: 0.6rem; height: 0.32rem; border-left: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3); transform: rotate(-45deg); }
.plan li.planned { color: var(--ink-3); }
.plan li.planned::before { border-color: var(--line-2); }
.plan li.planned { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); }
.plan li .badge { flex: none; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2.5rem, 6vw, 5.5rem); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: var(--s-5) 2.5rem var(--s-5) 0; font-weight: 600; position: relative; font-size: var(--t-md); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 0.4rem; top: 1.75rem; width: 8px; height: 8px; border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3); transform: rotate(45deg); transition: transform 240ms var(--ease-out); }
.faq details[open] summary::after { transform: translateY(4px) rotate(-135deg); }
.faq details p { color: var(--ink-2); max-width: 40rem; padding-bottom: var(--s-2); }
.faq strong { color: var(--ink); }

/* Closing band mirrors the stage */
.close {
  background: radial-gradient(70% 120% at 50% 0%, #17202e 0%, transparent 65%), var(--night);
  color: var(--on-night); padding: var(--section) 0; text-align: center;
}
.close-inner { display: grid; justify-items: center; gap: var(--s-6); }
.close h2 { font-size: clamp(2rem, 1.2rem + 3.2vw, 3.75rem); letter-spacing: var(--track-display); line-height: var(--lh-tight); margin: 0; max-width: 16ch; }
.close-note { color: var(--on-night-2); margin: calc(-1 * var(--s-3)) 0 0; font-size: var(--t-sm); }
.site-foot { background: var(--night); color: var(--on-night-3); border-top: 1px solid #1a2230; font-size: 0.8125rem; }
.foot-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-3) var(--s-6); padding-top: var(--s-6); padding-bottom: var(--s-6); }
.foot-inner > p:last-child { grid-column: 1 / -1; }
.foot-inner p { margin: 0; }

.guide-links { list-style: none; margin: var(--s-5) 0 0; padding: 0; border-top: 1px solid var(--line); font-size: var(--t-base); }
.guide-links li { border-bottom: 1px solid var(--line); }
.guide-links a { display: block; padding: var(--s-3) 1.75rem var(--s-3) 0; text-decoration: none; position: relative; line-height: 1.45; }
.guide-links a::after { content: "→"; position: absolute; right: 0.2rem; top: var(--s-3); color: var(--ink-3); transition: transform 240ms var(--ease-out); }
.guide-links a:hover::after { transform: translateX(3px); color: var(--amber-ink); }

/* --- Inner pages: a quiet version of the stage as the page head --------------------------------------- */
.page-head {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(7.5rem, 14vw, 10rem) 0 clamp(3.5rem, 7vw, 5rem);
  background: radial-gradient(120% 120% at 80% 0%, #141d2b 0%, transparent 65%), var(--night);
  color: var(--on-night);
}
.page-head .stage-canvas { opacity: 0.9; }
.page-head::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(11, 15, 21, 0.94) 0%, rgba(11, 15, 21, 0.75) 45%, rgba(11, 15, 21, 0.1) 100%),
    linear-gradient(180deg, rgba(11, 15, 21, 0.7) 0%, rgba(11, 15, 21, 0) 30%, rgba(11, 15, 21, 0) 70%, rgba(11, 15, 21, 0.85) 100%);
}
.page-head-inner > * { max-width: 44rem; }
.page-head .eyebrow { margin-bottom: var(--s-4); }
.page-head .eyebrow a { color: inherit; text-decoration-color: rgba(242, 168, 59, 0.45); }
.page-head h1 { font-size: clamp(2.25rem, 1.3rem + 3.6vw, 3.75rem); line-height: var(--lh-tight); letter-spacing: var(--track-display); margin: 0 0 var(--s-4); }
.page-lead { font-size: var(--t-lg); line-height: 1.55; color: var(--on-night-2); margin: 0; }
.page-meta { margin: var(--s-5) 0 0; font: 400 0.8125rem / 1.5 var(--font-mono); color: var(--on-night-3); }
.page-head.guide h1 { font-size: clamp(1.875rem, 1.2rem + 2.8vw, 3.25rem); }
.page-head.guide .page-meta { margin-top: var(--s-3); }

/* --- Reading layout: guides, privacy, thanks ----------------------------------------------------------- */
.article { padding: clamp(3rem, 7vw, 5rem) 0 clamp(5rem, 10vw, 7rem); }
.reading { display: grid; grid-template-columns: minmax(0, 40rem) minmax(0, 1fr); gap: clamp(3rem, 8vw, 7rem); align-items: start; }
.reading > * { grid-column: 1; }
.toc { grid-column: 2; grid-row: 1 / span 9; position: sticky; top: var(--s-6); max-width: 16rem; font-size: var(--t-sm); }
.toc h2 { color: var(--ink-3); margin: 0 0 var(--s-3); }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 0.3rem 0 0.3rem var(--s-4); margin-left: -1px; border-left: 1px solid transparent; color: var(--ink-2); text-decoration: none; line-height: 1.4; }
.toc a:hover { color: var(--ink); border-left-color: var(--amber); }
.prose { max-width: 40rem; font-size: var(--t-md); line-height: 1.7; }
.prose h2 { font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem); line-height: var(--lh-snug); letter-spacing: var(--track-title); margin: var(--s-7) 0 var(--s-3); scroll-margin-top: var(--s-6); }
.prose h3 { font-size: var(--t-md); margin: var(--s-6) 0 var(--s-2); }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose .table-wrap, .prose address { margin: 0 0 1.15rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: 0.45rem 0; padding-left: 0.2rem; }
.prose li::marker { color: var(--ink-3); }
.prose a { text-decoration-color: rgba(15, 20, 27, 0.32); }
.prose a:hover { text-decoration-color: var(--amber-ink); }
.prose code { background: var(--paper-2); padding: 0.1em 0.35em; border-radius: 4px; }
.prose blockquote { margin-left: 0; padding: var(--s-4) var(--s-5); border-left: 2px solid var(--amber); background: var(--card); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose blockquote p { margin: 0 0 var(--s-2); font-size: var(--t-base); line-height: 1.65; }
.prose cite { font: normal 400 0.75rem var(--font-mono); color: var(--ink-3); }
.prose table { border-collapse: collapse; width: 100%; font-size: var(--t-sm); line-height: 1.55; font-variant-numeric: tabular-nums; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); }
.prose thead th { font: 500 var(--t-xs) / 1.4 var(--font-sans); letter-spacing: 0.02em; color: var(--ink-3); border-bottom-color: var(--line-2); }
.prose tbody tr:last-child > * { border-bottom: 0; }
.prose tbody th { font-weight: 600; white-space: nowrap; }
.prose .timeline td:last-child { font: 400 0.75rem / 1.65 var(--font-mono); color: var(--ink-3); }
.prose .timeline tr.now > * { background: var(--amber-wash); }
.prose .timeline tr.now th { box-shadow: inset 2px 0 0 var(--amber); }
.tldr { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-5); margin: 0 0 var(--s-6); }
.tldr .label { display: block; color: var(--amber-ink); margin-bottom: var(--s-2); }
.tldr p { margin: 0; }
.lead-in { font-size: var(--t-lg); line-height: 1.6; color: var(--ink); }
.address { font-style: normal; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-4) var(--s-5); line-height: 1.65; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); margin-top: var(--s-6); }

/* Guide end matter */
.cta-aside { max-width: 40rem; margin: var(--s-8) 0 0; padding: var(--s-6); border-radius: var(--radius); color: var(--on-night); background: radial-gradient(90% 140% at 100% 0%, #17202e 0%, transparent 70%), var(--night); }
.cta-aside .kicker { color: var(--amber); }
.cta-aside h2 { font-size: 1.5rem; line-height: 1.2; letter-spacing: var(--track-title); margin: 0 0 var(--s-3); }
.cta-aside p { color: var(--on-night-2); margin: 0 0 var(--s-5); }
.sources-block, .more-guides { max-width: 40rem; margin-top: var(--s-8); }
.sources-block h2, .more-guides h2 { color: var(--ink-3); margin: 0 0 var(--s-4); }
.source-list { margin: 0; padding-left: 1.5rem; font-size: var(--t-sm); line-height: 1.5; }
.source-list li { margin: 0 0 var(--s-3); padding-left: 0.2rem; }
.source-list li::marker { font: 400 0.75rem var(--font-mono); color: var(--ink-3); }
.source-list a { text-decoration-color: rgba(15, 20, 27, 0.32); }
.source-list span { display: block; color: var(--ink-3); font-size: 0.8125rem; }
.disclaimer { margin: var(--s-5) 0 0; padding-top: var(--s-4); border-top: 1px solid var(--line); font-size: 0.8125rem; color: var(--ink-2); }
.more-guides ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.more-guides li { border-bottom: 1px solid var(--line); }
.more-guides a { display: block; padding: var(--s-3) 0; text-decoration: none; }
.more-guides a:hover { color: var(--amber-ink); }

/* Guides index */
.guides-index { padding-top: clamp(3rem, 7vw, 5rem); }
.guide-cards { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); max-width: 56rem; }
.guide-cards li { border-bottom: 1px solid var(--line); }
.guide-cards a { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) auto; gap: var(--s-4); align-items: baseline; padding: var(--s-5) 0; text-decoration: none; }
.guide-cards a:hover .g-title { text-decoration: underline; text-decoration-color: var(--amber-ink); text-underline-offset: 0.2em; }
.g-n { font: 500 0.75rem / 1 var(--font-mono); color: var(--ink-3); }
.g-main { display: grid; gap: var(--s-1); }
.g-title { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.012em; line-height: 1.35; text-wrap: balance; }
.g-desc { color: var(--ink-2); font-size: var(--t-base); line-height: 1.55; }
.g-meta { font: 400 0.75rem / 1.5 var(--font-mono); color: var(--ink-3); white-space: nowrap; }
.guides-note { margin-top: var(--s-6); max-width: 40rem; }

/* --- Early-access form ---------------------------------------------------------------------------------- */
.signup { padding-top: clamp(3rem, 7vw, 5rem); }
.signup-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
/* The form comes first in the document (phones reach it at once); on wide screens the list sits left. */
.signup-grid > .copy { order: -1; }
.section h2.lift { font-size: 1.375rem; letter-spacing: var(--track-title); margin-bottom: var(--s-4); }
.ticks { list-style: none; margin: 0 0 var(--s-5); padding: 0; }
.ticks li { position: relative; padding: var(--s-3) 0 var(--s-3) 1.9rem; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: var(--t-base); }
.ticks li:first-child { border-top: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 0.15rem; top: 1.25rem; width: 0.7rem; height: 0.38rem; border-left: 1.5px solid var(--amber-ink); border-bottom: 1.5px solid var(--amber-ink); transform: rotate(-45deg); }
.ticks strong { color: var(--ink); }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow-panel); scroll-margin-top: var(--s-5); }
.form-card h2 { font-size: var(--t-md); margin: 0 0 var(--s-1); letter-spacing: -0.01em; }
.form-intro { color: var(--ink-3); font-size: var(--t-sm); margin: 0 0 var(--s-5); }
.form { display: grid; gap: var(--s-4); }
.field { display: grid; gap: 0.35rem; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); align-items: end; }
.field label { font-weight: 500; font-size: var(--t-sm); }
.hint { font-weight: 400; color: var(--ink-3); }
.field input, .field select {
  width: 100%; min-height: var(--control); font: inherit; font-size: var(--t-base); color: var(--ink); background: #fff;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 0.55rem 0.75rem;
  transition: border-color 140ms var(--ease-out), box-shadow 140ms var(--ease-out);
}
.field input:hover, .field select:hover { border-color: #aeb7c4; }
.field select { appearance: none; color: var(--ink); background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 1.05rem) 52%, calc(100% - 0.75rem) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2rem; }
.field select:has(option[value=""]:checked) { color: var(--ink-3); }
.field input:focus, .field select:focus { outline: none; border-color: var(--amber-ink); box-shadow: 0 0 0 3px rgba(242, 168, 59, 0.25); }
.field input:user-invalid, .field input[aria-invalid="true"] { border-color: var(--danger); }
.consent input[aria-invalid="true"] { outline: 2px solid var(--danger); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: var(--s-3); align-items: start; font-size: var(--t-sm); color: var(--ink-2); line-height: 1.55; }
.consent input { width: 1.05rem; height: 1.05rem; margin: 0.15rem 0 0; accent-color: var(--amber-ink); }
.form .btn { justify-self: start; }
.fine { margin: 0; font-size: 0.8125rem; color: var(--ink-3); line-height: 1.55; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* Errors come back as #error-<code> (no script): only the targeted message shows. Proportional: a field to
   fix is the visitor's to act on (danger); a limit or our own failure is a calm note. */
.form-msg { display: none; margin: 0; padding: var(--s-3) var(--s-4); border-radius: var(--radius-sm); font-size: var(--t-sm); line-height: 1.55; border-left: 2px solid var(--line-2); background: var(--paper); color: var(--ink); }
.form-msg:target, .form-msg.is-shown { display: block; }
.form-msg:focus { outline: none; }
.form-msg strong { display: block; }
.form-msg.fix { border-left-color: var(--danger); background: var(--danger-wash); color: var(--danger); }
.form-msg.fix strong { color: var(--danger); }

.next-steps { list-style: none; counter-reset: step; margin: 0 0 var(--s-6); padding: 0; border-top: 1px solid var(--line); }
.next-steps li { counter-increment: step; display: grid; grid-template-columns: 2rem 1fr; gap: var(--s-3); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.next-steps li::before { content: counter(step, decimal-leading-zero); font: 500 0.75rem / 1.9 var(--font-mono); color: var(--amber-ink); }
.next-steps strong { color: var(--ink); }

/* Footer */
.foot-nav { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.foot-nav a, .foot-inner a { color: var(--on-night-2); text-decoration: none; }
.foot-nav a:hover, .foot-inner a:hover { color: var(--on-night); text-decoration: underline; }

/* Sections rise in once as they enter (scroll-driven, no JS; static where unsupported). */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 30%; }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .stage-cue span { animation: none; transform: none; }
  .stage-canvas { animation: none; }
}

@media (max-width: 64rem) {
  .reading { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
}
@media (max-width: 60rem) {
  .split, .faq-grid, .signup-grid { grid-template-columns: minmax(0, 1fr); }
  .guide-cards { grid-template-columns: minmax(0, 1fr); }
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 32rem; }
  .plan-for { min-height: 0; }
}
@media (max-width: 60rem) {
  .signup-grid > .copy { order: 0; }
}
@media (max-width: 40rem) {
  .page-head { padding: 6rem 0 var(--s-6); }
  .page-head.compact { padding: 5.25rem 0 var(--s-5); }
  .page-head.compact h1 { font-size: 1.875rem; margin-bottom: var(--s-2); }
  .page-head.compact .page-lead { font-size: var(--t-base); }
  .page-head.guide h1 { font-size: 1.75rem; }
  .page-head.guide .eyebrow { margin-bottom: var(--s-3); }
  .signup { padding-top: var(--s-5); }
  .guide-cards a { grid-template-columns: 2rem minmax(0, 1fr); }
  .g-meta { grid-column: 2; }
  .stage { align-items: end; padding-bottom: 6.5rem; }
  .stage::after {
    background: linear-gradient(180deg, rgba(11, 15, 21, 0.7) 0%, rgba(11, 15, 21, 0.15) 22%, rgba(11, 15, 21, 0.82) 52%, rgba(11, 15, 21, 0.96) 100%);
  }
  .nav { gap: var(--s-5); }
  .files li { grid-template-columns: 1fr; gap: 0.1rem; }
  .stage-cue { display: none; }
  .panel-meta, .check-where { display: none; }
  .panel pre { font-size: 0.6875rem; padding-left: var(--s-4); padding-right: var(--s-4); }
  .j-hl { margin: 0 calc(-1 * var(--s-4)); padding: 0 var(--s-4); }
  .ledger { padding-left: var(--s-4); padding-right: var(--s-4); }
  .ledger div, .ledger.fields div { grid-template-columns: minmax(0, 1fr); gap: 0.05rem; padding-left: var(--s-3); }
  .ledger .ledger-group, .ledger.fields div { padding-left: 0; }
  .check-head { padding: var(--s-4); }
  .check-body > .md { padding: var(--s-4); }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .foot-inner { grid-template-columns: minmax(0, 1fr); }
  .page-head::after { background: linear-gradient(180deg, rgba(11, 15, 21, 0.75) 0%, rgba(11, 15, 21, 0.82) 100%); }
  .prose tbody th { white-space: normal; }
  .perms .table th, .perms .table td { padding: var(--s-3) var(--s-4); }
  .perms .table thead th:last-child, .perms .table td:last-child { display: none; }
  .perms-why { display: block; color: var(--ink-2); font-weight: 400; font-size: var(--t-sm); margin-top: 0.15rem; }
}
@media (min-width: 40.01rem) { .perms-why { display: none; } }

/* Trackpads and mice: no rubber-band overscroll past the page edges (it shows a strip of the wrong
   colour behind the dark stage). Touch screens keep it, so pull-to-refresh still works there. */
@media (hover: hover) and (pointer: fine) { html, body { overscroll-behavior: none; } }

/* --- Print: guides and legal pages handed to a boss or an auditor ----------------------------------------- */
@media print {
  @page { margin: 18mm 16mm; }
  html, body { background: #fff; }
  body { font-size: 10.5pt; color: #000; }
  .skip, .site-head, .stage-canvas, .cta-aside, .more-guides, .toc, .site-foot .foot-nav, .actions { display: none !important; }
  .page-head { padding: 0 0 8mm; background: none; color: #000; border-bottom: 1px solid #000; }
  .page-head::after { display: none; }
  .page-head .eyebrow, .page-head .eyebrow a { color: #444; text-decoration: none; }
  .page-lead, .page-meta { color: #333; }
  .article { padding: 8mm 0 0; }
  .wrap { max-width: none; padding: 0; }
  .reading { display: block; }
  .prose { max-width: none; font-size: 10.5pt; line-height: 1.55; }
  .prose a { color: inherit; text-decoration: none; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8.5pt; color: #555; overflow-wrap: anywhere; }
  .prose h2 { break-after: avoid; margin-top: 8mm; }
  .tldr, .table-wrap, .prose blockquote { border-color: #999; background: none; break-inside: avoid; }
  .prose tr { break-inside: avoid; }
  .source-list a::after { content: " " attr(href); font-size: 8.5pt; color: #555; overflow-wrap: anywhere; }
  .site-foot { background: none; color: #333; border-top: 1px solid #999; }
  .site-foot a { color: inherit; }
}
