/* Codex v4 tokens — generated from codex/tokens.json; tile: vine */
:root {
  color-scheme: light;
  --ink: #26292e;
  --night: #1b1d21;
  --plate-dark: #e8e5de;
  --plate-light: #f1efe9;
  --slate: #4f535a;
  --stone: #e8e5de;
  --white: #ffffff;
  --bg-block: #26292e;
  --bg-desk: #dcd9d2;
  --bg-inset: #dfdcd4;
  --bg-page: #e8e5de;
  --border: #7d7e7d;
  --fg-1: #26292e;
  --fg-2: #4f535a;
  --fg-ghost: #aeada9;
  --link-rule: #4f535a;
  --plate: #f1efe9;
  --rule: #bdbcb7;
  --rule-strong: #26292e;
  --fig-ash: #7c7e82;
  --fig-emphasis: #2a5c4d;
  --fig-ink: #26292e;
  --fig-slate: #4f535a;
  --fig-stone-2: #d3d0c8;
  --tile-size: 144px;
  --tile-1x: url("/codex/tiles/vine-stone.png");
  --tile-2x: url("/codex/tiles/vine-stone@2x.png");
  --font-text: "Tiempos Text", Charter, "Iowan Old Style", Georgia, serif;
  --font-display: "Tiempos Headline", Charter, Georgia, serif;
  --font-sans: "Forma DJR", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "Forma DJR Mono", "SF Mono", Menlo, Consolas, monospace;
  --abstract-fs: 1.125rem;
  --abstract-lh: 1.75rem;
  --blurb-fs: 1rem;
  --blurb-lh: 1.5rem;
  --body-fs: 1.25rem;
  --body-lh: 2rem;
  --body-small-fs: 1.0625rem;
  --body-small-lh: 1.6875rem;
  --code-fs: 0.875rem;
  --code-lh: 1.55;
  --entry-fs: 1.3125rem;
  --entry-lh: 1.6875rem;
  --fnmark-fs: 0.75rem;
  --h1-lh: 1.06;
  --h1-ls: -0.015em;
  --h1-cover-lh: 1.06;
  --h1-cover-ls: -0.015em;
  --h2-fs: 1.625rem;
  --h2-lh: 2rem;
  --h2-ls: -0.005em;
  --h2-small-fs: 0.75rem;
  --h2-small-ls: 0.08em;
  --h3-fs: 1.3125rem;
  --h3-lh: 1.6875rem;
  --kicker-fs: 0.75rem;
  --kicker-ls: 0.08em;
  --label-fs: 0.75rem;
  --label-ls: 0.08em;
  --lede-fs: 1.625rem;
  --lede-lh: 2.125rem;
  --lede-ls: -0.01em;
  --meta-fs: 0.8125rem;
  --meta-lh: 1.1875rem;
  --nav-fs: 0.8125rem;
  --nav-ls: 0.06em;
  --next-fs: 1.5rem;
  --next-lh: 1.875rem;
  --numeral-fs: 9.375rem;
  --numeral-lh: 0.9;
  --numeral-ls: -0.04em;
  --part-fs: 0.6875rem;
  --part-ls: 0.07em;
  --plate-title-fs: 1.375rem;
  --plate-title-lh: 1.75rem;
  --quote-fs: 1.375rem;
  --quote-lh: 1.875rem;
  --refs-fs: 1rem;
  --refs-lh: 1.5rem;
  --strip-fs: 0.75rem;
  --strip-ls: 0.06em;
  --table-fs: 0.8125rem;
  --table-lh: 1.1875rem;
  --tagline-fs: 0.6875rem;
  --tagline-ls: 0.14em;
  --toc-book-fs: 1.0625rem;
  --toc-book-lh: 1.5rem;
  --toc-paper-fs: 1.25rem;
  --toc-paper-lh: 1.625rem;
  --toc-side-fs: 0.875rem;
  --toc-side-lh: 1.3125rem;
  --phone-body-fs: 1.125rem;
  --phone-body-lh: 1.8125rem;
  --phone-body-after: 0.875rem;
  --phone-h1-fs: 1.75rem;
  --phone-h1-lh: 1.1;
  --phone-h2-fs: 1.4375rem;
  --phone-h2-lh: 1.8125rem;
  --phone-kicker-fs: 0.6875rem;
  --tablet-body-fs: 1.1875rem;
  --tablet-body-lh: 1.875rem;
  --h1-fs: clamp(1.875rem, 3.2vw, 2.5rem);
  --h1-cover-fs: clamp(1.75rem, 3vw, 2.5rem);
  --body-after: 1rem;
  --s-1: 0.25rem;
  --s-10: 2.5rem;
  --s-12: 3rem;
  --s-16: 4rem;
  --s-2: 0.5rem;
  --s-20: 5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.25rem;
  --s-6: 1.5rem;
  --s-8: 2rem;
  --col: 31rem;
  --wide: 66rem;
  --content-max: 80rem;
  --rail-max: 25rem;
  --measure-one: 35rem;
  --z-rail: 5; --z-strip: 10; --z-dialog: 20; --z-skip: 30;
}@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg-block: #e8e5de;
    --bg-desk: #121417;
    --bg-inset: #24262b;
    --bg-page: #1b1d21;
    --border: #828180;
    --fg-1: #e8e5de;
    --fg-2: #a09f9c;
    --fg-ghost: #58595a;
    --link-rule: #a09f9c;
    --plate: #e8e5de;
    --rule: #48494b;
    --rule-strong: #e8e5de;
    --tile-1x: url("/codex/tiles/vine-ink.png");
    --tile-2x: url("/codex/tiles/vine-ink@2x.png");
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg-block: #e8e5de;
  --bg-desk: #121417;
  --bg-inset: #24262b;
  --bg-page: #1b1d21;
  --border: #828180;
  --fg-1: #e8e5de;
  --fg-2: #a09f9c;
  --fg-ghost: #58595a;
  --link-rule: #a09f9c;
  --plate: #e8e5de;
  --rule: #48494b;
  --rule-strong: #e8e5de;
  --tile-1x: url("/codex/tiles/vine-ink.png");
  --tile-2x: url("/codex/tiles/vine-ink@2x.png");
}
/* Inverted blocks: the ground/ink pair swaps on the element, so every child token resolves. */
.block {
  --bg-page: #26292e;
  --border: #8a8987;
  --fg-1: #e8e5de;
  --fg-2: #c9c7c2;
  --link-rule: #c9c7c2;
  --rule: #515255;
  --rule-strong: #e8e5de;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .block {
    --bg-page: #e8e5de;
    --border: #7d7e7d;
    --fg-1: #26292e;
    --fg-2: #4b4f56;
    --link-rule: #4b4f56;
    --rule: #bdbcb7;
    --rule-strong: #26292e;
  }
}
:root[data-theme="dark"] .block {
  --bg-page: #e8e5de;
  --border: #7d7e7d;
  --fg-1: #26292e;
  --fg-2: #4b4f56;
  --link-rule: #4b4f56;
  --rule: #bdbcb7;
  --rule-strong: #26292e;
}
/* The figure plate keeps light values in both themes. */
.plate, .fig__plate {
  --border: #7d7e7d;
  --fg-1: #26292e;
  --fg-2: #4f535a;
  --link-rule: #4f535a;
  --rule: #bdbcb7;
  --rule-strong: #26292e;
}
/* ============================================================================
   Codex v4 (draft 2, 24 Oct 2026) — supersedes Antique Ink v3.6.
   One material (stone and ink), one type scale, four brands. The :root and
   dark token blocks are generated from static/codex/tokens.json and prepended
   to this file at build time (assets/css/tokens.tpl.css); this sheet only
   uses the tokens. Sizes in rem (1 rem = 16 px); px only for rules, tiles and
   the layout geometry of §2.2. Theme folder keeps its name: antique-ink.
   ============================================================================ */

/* ---- Fonts: the licensed WOFF2 set (no OTF is ever served) ------------- */
@font-face {
  font-family: "Tiempos Text";
  src: url("/fonts/TiemposText-VF-Roman.woff2") format("woff2-variations"),
       url("/fonts/TiemposText-VF-Roman.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Tiempos Text";
  src: url("/fonts/TiemposText-VF-Italic.woff2") format("woff2-variations"),
       url("/fonts/TiemposText-VF-Italic.woff2") format("woff2");
  font-weight: 300 700; font-style: italic; font-display: swap;
}
@font-face { font-family: "Tiempos Headline"; src: url("/fonts/TiemposHeadline-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Tiempos Headline"; src: url("/fonts/TiemposHeadline-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Tiempos Headline"; src: url("/fonts/TiemposHeadline-Semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Tiempos Headline"; src: url("/fonts/TiemposHeadline-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Tiempos Headline"; src: url("/fonts/TiemposHeadline-Black.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face {
  font-family: "Forma DJR";
  src: url("/fonts/FormaDJR-VF.woff2") format("woff2-variations"),
       url("/fonts/FormaDJR-VF.woff2") format("woff2");
  font-weight: 275 900; font-style: oblique 0deg 12deg; font-display: swap;
}
@font-face {
  font-family: "Forma DJR Mono";
  src: url("/fonts/FormaDJRMono-VF.woff2") format("woff2-variations"),
       url("/fonts/FormaDJRMono-VF.woff2") format("woff2");
  font-weight: 100 900; font-style: oblique 0deg 12deg; font-display: swap;
}

/* ---- Regimes (§2.2): margins and gap ---------------------------------- */
:root {
  /* ≥ 1296: 112; shrinks linearly to 56 at 980 (the stated regime values) */
  --margin: clamp(3.5rem, calc(18.6667vw - 7.933rem), 7rem);
  --gap: clamp(2rem, 5vw, 4rem);
  --head-h: 3rem;
}
@media (max-width: 979px) { :root { --margin: 2rem; } }
@media (max-width: 600px) { :root { --margin: 1.25rem; --head-h: 2.75rem; } }

/* ---- Reset & base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  color: var(--fg-1); background: var(--bg-page);
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  scroll-padding-top: var(--s-4);
}
body {
  margin: 0;
  font-family: var(--font-text); font-weight: 400;
  font-size: var(--body-fs); line-height: var(--body-lh);
  font-variant-numeric: oldstyle-nums proportional-nums;
  color: var(--fg-1); background: var(--bg-page);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
  overflow-wrap: break-word;
}
@media (max-width: 979px) { body { font-size: var(--tablet-body-fs); line-height: var(--tablet-body-lh); } }
@media (max-width: 600px) { body { font-size: var(--phone-body-fs); line-height: var(--phone-body-lh); } }
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
hr { border: 0; border-top: 1px solid var(--rule); margin: var(--s-8) 0; }
p, li, dd, blockquote { hyphens: auto; -webkit-hyphens: auto; text-wrap: pretty; }
h1, h2, h3, h4 { hyphens: manual; text-wrap: balance; color: var(--fg-1); }
p { margin: 0 0 var(--body-after); }
ul, ol { margin: 0 0 var(--body-after); padding-left: 1.4em; }
li { margin-bottom: var(--s-1); }
li::marker { color: var(--fg-2); }
strong, b { font-weight: 600; }
em { font-style: italic; }
abbr[title] { text-decoration: none; }

/* Forma in every apparatus setting: lining tabular figures */
.sans, .label, .meta, .rail, .nav, .cx-foot, .cx-head, table, figcaption, .caption,
time, .count, .ledger__label, .toc, .contents { font-variant-numeric: lining-nums tabular-nums; }

/* URLs, DOIs and handles break anywhere */
.mono, .rail a[href^="http"], .rail a[href^="mailto"], .refs a, .doi { overflow-wrap: anywhere; }

/* ---- Links: fg-1 with a 1 px link-rule underline ------------------------ */
a {
  color: var(--fg-1);
  text-decoration-line: underline; text-decoration-thickness: 1px;
  text-decoration-color: var(--link-rule); text-underline-offset: 0.2em;
  text-decoration-skip-ink: auto;
  transition: text-decoration-color 120ms ease;
}
a:hover, a:focus-visible { text-decoration-color: var(--fg-1); }
:focus-visible { outline: 2px solid var(--fg-1); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }
main:focus { outline: none; }

code, kbd, samp { font-family: var(--font-mono); font-size: 0.9em; background: var(--bg-inset); padding: 0.1em 0.3em; border-radius: 2px; font-variant-numeric: normal; }
pre { font-family: var(--font-mono); font-size: var(--code-fs); line-height: var(--code-lh); background: var(--bg-inset); border-radius: 2px; padding: var(--s-4) var(--s-5); overflow-x: auto; margin: var(--s-6) 0; }
pre code { background: none; padding: 0; font-size: inherit; }

button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

/* ---- Apparatus atoms ---------------------------------------------------- */
.label {
  font-family: var(--font-sans); font-weight: 500;
  font-size: var(--label-fs); line-height: 1rem; letter-spacing: var(--label-ls);
  text-transform: uppercase; color: var(--fg-2);
}
.meta { font-family: var(--font-sans); font-size: var(--meta-fs); line-height: var(--meta-lh); color: var(--fg-2); }
.meta b, .meta strong { font-weight: 500; color: var(--fg-1); }
.mono { font-family: var(--font-mono); font-size: 0.92em; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.linklike {
  font: inherit; color: var(--fg-1); background: none; cursor: pointer;
  border: 1px solid var(--border); border-radius: 0; padding: 0.125rem 0.5rem;
  font-family: var(--font-sans); font-size: var(--meta-fs); line-height: var(--meta-lh);
}
.linklike:hover { border-color: var(--fg-1); }
.linklike.is-done { color: var(--fg-2); }
.btn {
  display: inline-block; font-family: var(--font-sans); font-weight: 500; font-size: var(--label-fs);
  letter-spacing: var(--label-ls); text-transform: uppercase; color: var(--fg-1);
  border: 1px solid var(--border); padding: 0.375rem 0.75rem; text-decoration: none; background: none;
}
.btn:hover { border-color: var(--fg-1); }

/* ---- Layout shell -------------------------------------------------------- */
.wrap {
  width: 100%; max-width: var(--content-max); margin-inline: auto;
  padding-inline: var(--margin);
}
.cols2 {
  display: grid; grid-template-columns: minmax(0, var(--col)) minmax(0, var(--col));
  column-gap: var(--gap); align-items: start;
}
@media (max-width: 979px) {
  .cols2 { grid-template-columns: minmax(0, 1fr); max-width: var(--measure-one); }
}
.content { display: block; padding: var(--s-10) 0 var(--s-16); }
@media (max-width: 600px) { .content { padding-top: var(--s-6); } }

/* ---- Inverted block + tile (rule 3) ------------------------------------ */
.block {
  background-color: var(--bg-block); color: var(--fg-1);
  --tile-on: 1;
}
.tile {
  background-image: var(--tile-1x);
  background-image: -webkit-image-set(var(--tile-1x) 1x, var(--tile-2x) 2x);
  background-image: image-set(var(--tile-1x) 1x, var(--tile-2x) 2x);
  background-size: var(--tile-size) var(--tile-size);
  background-repeat: repeat;
}
.block a { color: var(--fg-1); text-decoration-color: var(--link-rule); }
.block a:hover { text-decoration-color: var(--fg-1); }

/* ---- Skip link (z 30) --------------------------------------------------- */
.skip-link {
  position: absolute; left: var(--s-4); top: var(--s-2); z-index: var(--z-skip);
  transform: translateY(-200%);
  font-family: var(--font-sans); font-size: 0.875rem; line-height: 1.25rem;
  background: var(--bg-page); color: var(--fg-1); border: 1px solid var(--rule-strong);
  padding: var(--s-2) var(--s-3); text-decoration: none;
}
.skip-link:focus { transform: none; }


/* ---- Reduced motion ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* =========================================================================
   Step 2 — the paper page (§3)
   ========================================================================= */

/* ---- Headings ----------------------------------------------------------- */
h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--h1-fs); line-height: var(--h1-lh); letter-spacing: var(--h1-ls);
  margin: 0 0 var(--s-4);
}
h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--h2-fs); line-height: var(--h2-lh); letter-spacing: var(--h2-ls);
  margin: var(--s-12) 0 var(--s-4);
}
h2 .kicker {
  display: block; margin-bottom: var(--s-2);
  font-family: var(--font-sans); font-weight: 400; font-size: var(--kicker-fs); line-height: 1rem;
  letter-spacing: var(--kicker-ls); color: var(--fg-2); font-variant-numeric: lining-nums;
}
h2.h2-small, .h2-small {
  font-family: var(--font-sans); font-weight: 500; font-size: var(--h2-small-fs); line-height: 1rem;
  letter-spacing: var(--h2-small-ls); text-transform: uppercase; color: var(--fg-2);
  margin: var(--s-12) 0 0.875rem;
}
h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--h3-fs); line-height: var(--h3-lh); margin: var(--s-8) 0 var(--s-2); }
h4 { font-family: var(--font-text); font-weight: 600; font-size: 1em; margin: var(--s-6) 0 var(--s-2); }
@media (max-width: 600px) {
  h1 { font-size: var(--phone-h1-fs); line-height: var(--phone-h1-lh); }
  h2 { font-size: var(--phone-h2-fs); line-height: var(--phone-h2-lh); margin-top: var(--s-10); }
  h2 .kicker { font-size: var(--phone-kicker-fs); margin-bottom: 0.375rem; }
  p { margin-bottom: var(--phone-body-after); }
}


/* ---- Writing / venture head -------------------------------------------- */
.article-head { margin-bottom: var(--s-12); max-width: var(--wide); }
.article-head .label { margin: 0 0 var(--s-4); }
.article-head h1 { max-width: 52rem; }
.standfirst { font-family: var(--font-text); font-size: var(--abstract-fs); line-height: var(--abstract-lh); color: var(--fg-1); max-width: 40rem; margin: 0; text-wrap: pretty; }


/* ---- The flow: running text ---------------------------------------------- */
.flow ul, .flow ol { margin-bottom: var(--body-after); }
.flow p + ul, .flow p + ol { margin-top: calc(-0.5 * var(--body-after)); }
.flow hr { border-top-color: var(--rule); margin: var(--s-8) 0; }
.flow img { height: auto; margin: var(--s-6) 0; }
.flow blockquote {
  margin: var(--s-2) 0 var(--s-6); padding: var(--s-1) 0 var(--s-1) var(--s-6);
  border-left: 1px solid var(--rule-strong);
}
.flow blockquote p:last-child { margin-bottom: 0; }
/* Pull quote (rule 3): <blockquote class="pull block tile"> in Markdown */
.pull, .flow blockquote.pull {
  border: 0; margin: var(--s-2) 0 var(--s-6); padding: 1.25rem 1.5rem 1.125rem;
  font-family: var(--font-display); font-weight: 500; font-size: var(--quote-fs); line-height: var(--quote-lh); letter-spacing: -0.005em;
}
/* References under the small h2 */
.refs p {
  font-size: var(--refs-fs); line-height: var(--refs-lh); padding-left: 1.5rem; text-indent: -1.5rem; margin-bottom: 0.625rem;
  hyphens: manual; overflow-wrap: anywhere;
}
.refs ul, .refs ol { list-style: none; padding: 0; font-size: var(--refs-fs); line-height: var(--refs-lh); }
.refs li { padding-left: 1.5rem; text-indent: -1.5rem; margin-bottom: 0.625rem; }

/* ---- Footnote marks and notes -------------------------------------------- */
sup { line-height: 0; }
.footnote-ref {
  position: relative; margin-left: 2px; text-decoration: none;
  font-family: var(--font-sans); font-weight: 500; font-size: var(--fnmark-fs); line-height: 0;
  color: var(--fg-1); font-variant-numeric: lining-nums; vertical-align: super;
}
sup .footnote-ref { vertical-align: baseline; }
.footnote-ref::after { content: ""; position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; transform: translate(-50%, -50%); }
.footnotes {
  margin-top: var(--s-10); padding-top: var(--s-4); border-top: 1px solid var(--rule-strong);
  font-family: var(--font-sans); font-size: var(--meta-fs); line-height: var(--meta-lh); color: var(--fg-2);
}
.footnotes hr { display: none; }
.footnotes ol { padding-left: 1.4em; margin: 0; }
.footnotes li { margin-bottom: var(--s-2); }
.footnotes p { display: inline; margin: 0; }
.flow .sidenote--named { display: block; background: var(--bg-inset); padding: var(--s-3); margin: var(--s-2) 0; font-family: var(--font-sans); font-size: var(--meta-fs); line-height: var(--meta-lh); color: var(--fg-2); }
.sidenote__label { display: block; font-weight: 500; font-size: var(--label-fs); letter-spacing: var(--label-ls); text-transform: uppercase; color: var(--fg-1); }

/* ---- Rail ---------------------------------------------------------------- */
.rail { font-family: var(--font-sans); font-size: var(--meta-fs); line-height: var(--meta-lh); color: var(--fg-2); }
.rail__block { margin: 0 0 var(--s-3); }
.rail__block > b { display: block; font-weight: 500; color: var(--fg-1); }
.rail__block .mono { font-size: 0.75rem; }
.rail__list { list-style: none; margin: 0; padding: 0; }
.rail__list li { margin: 0 0 var(--s-1); }
.rail__v { font-weight: 500; color: var(--fg-1); }
.rail__note p { display: inline; margin: 0; }
.rail__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-2); }
.rail__actions .linklike { text-decoration: none; min-height: 24px; display: inline-flex; align-items: center; }
.rail a { position: relative; display: inline-block; max-width: 100%; line-height: 1.5rem; vertical-align: baseline; } /* 24 px targets (WCAG 2.5.8) */
.rail__toc { margin-top: var(--s-6); padding-top: var(--s-3); border-top: 1px solid var(--rule); }
.rail__toc a { color: var(--fg-2); text-decoration: none; display: inline-block; padding: 2px 0; }
.rail__toc a:hover { color: var(--fg-1); text-decoration: underline; }
.rail__toc a.is-current { color: var(--fg-1); font-weight: 500; }

/* ---- Figures and plates ----------------------------------------------------- */
.fig, .chapter-figure { margin: var(--s-2) 0 var(--s-6); border-top: 1px solid var(--rule-strong); }
.fig__plate {
  background: var(--plate); color: var(--fg-1); padding: var(--s-3);
  border-bottom: 1px solid var(--rule);
}
.fig__svg { display: block; width: 100%; height: auto; }
.fig > img, .chapter-figure > img { margin: 0; background: var(--plate); padding: var(--s-3); width: 100%; }
.fig figcaption, .chapter-figure figcaption, .caption {
  margin-top: 0.625rem; font-family: var(--font-sans); font-size: var(--meta-fs); line-height: var(--meta-lh); color: var(--fg-2);
  hyphens: auto;
}
.fig figcaption strong, .fig figcaption b, .chapter-figure figcaption strong { font-weight: 500; color: var(--fg-1); }
.flow .fig + p:has(> em:only-child) {
  margin-top: calc(-1 * var(--s-6) + 0.625rem); font-family: var(--font-sans); font-size: var(--meta-fs); line-height: var(--meta-lh); color: var(--fg-2);
}
.flow .fig + p:has(> em:only-child) em { font-style: normal; }
.fig--wide { border-top: 1px solid var(--rule-strong); padding-top: var(--s-3); }
.fig__title { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); margin-bottom: var(--s-3); }
.fig__title b { font-family: var(--font-display); font-weight: 500; font-size: var(--plate-title-fs); line-height: var(--plate-title-lh); color: var(--fg-1); }
.fig--wide figcaption { max-width: 45rem; }
.fig--wide .fig__plate { overflow-x: auto; }

/* ---- Tables: labelled scroll regions with a right-edge fade ---------------- */
.table-wrap {
  margin: var(--s-2) 0 var(--s-6); overflow-x: auto; overscroll-behavior-x: contain;
  background:
    linear-gradient(to right, var(--bg-page) 40%, transparent) left center / 2rem 100% no-repeat local,
    linear-gradient(to left, var(--bg-page) 40%, transparent) right center / 2rem 100% no-repeat local,
    linear-gradient(to right, var(--rule), transparent) left center / 0.75rem 100% no-repeat scroll,
    linear-gradient(to left, var(--rule), transparent) right center / 0.75rem 100% no-repeat scroll;
}
table { width: 100%; border-collapse: collapse; font-family: var(--font-sans); font-size: var(--table-fs); line-height: var(--table-lh); }
th, td { text-align: left; padding: 0.4375rem var(--s-3) 0.4375rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; hyphens: auto; }
th { white-space: nowrap; font-weight: 500; font-size: var(--label-fs); letter-spacing: var(--table-head-ls, 0.06em); text-transform: uppercase; color: var(--fg-2); border-bottom-color: var(--rule-strong); }
td:last-child, th:last-child { padding-right: 0; }
.table-wrap table { min-width: 32rem; }
.table-wrap--wide table { font-size: var(--label-fs); }


/* ---- Contents dialog (z 20) --------------------------------------------------- */
.contents {
  position: fixed; inset: 0; width: 100%; max-width: none; height: auto; max-height: none; margin: 0;
  padding: var(--s-10) 0 var(--s-12); border: 0; border-top: 1px solid var(--rule-strong);
  background: var(--bg-page); color: var(--fg-1); overflow: auto; z-index: var(--z-dialog);
}
.contents::backdrop { background: transparent; }
.contents__grid { row-gap: var(--s-8); }
.contents__main .label { margin: 0 0 var(--s-4); }
.contents__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.contents__list li { margin: 0; }
.contents__list a {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4);
  padding-bottom: 0.625rem; border-bottom: 1px solid var(--rule); text-decoration: none;
  font-family: var(--font-display); font-weight: 500; font-size: var(--toc-paper-fs); line-height: var(--toc-paper-lh);
}
.contents__list a:hover .contents__t { text-decoration: underline; text-decoration-thickness: 1px; }
.contents__n { font-family: var(--font-sans); font-weight: 400; font-size: var(--meta-fs); color: var(--fg-2); font-variant-numeric: lining-nums tabular-nums; }
.contents__side { font-family: var(--font-sans); font-size: var(--toc-side-fs); line-height: var(--toc-side-lh); color: var(--fg-2); display: grid; gap: var(--s-5); align-content: start; }
.contents__side b { display: block; font-weight: 500; font-size: var(--label-fs); letter-spacing: var(--label-ls); text-transform: uppercase; color: var(--fg-2); margin-bottom: 0.375rem; }
.contents__side form { margin: 0; }
.contents__side .btn { min-height: 2.75rem; }

/* =========================================================================
   Step 3 — home, index pages, writing, about (§3.1)
   ========================================================================= */
.lede {
  font-family: var(--font-display); font-weight: 500; font-size: var(--lede-fs); line-height: var(--lede-lh);
  letter-spacing: var(--lede-ls); color: var(--fg-1); margin: 0 0 1.375rem; text-wrap: balance; hyphens: manual;
}

/* ---- Ledger -------------------------------------------------------------- */
.ledger { min-width: 0; }
.ledger .ledger__year { margin: var(--s-10) 0 0.875rem; }
.ledger .ledger__year:first-child { margin-top: 0.375rem; }
.entry { border-top: 1px solid var(--rule); padding-top: var(--s-3); margin: 0 0 1.375rem; }
.entry__label { margin: 0 0 0.375rem; }
.entry__label a { color: var(--fg-2); position: relative; }
.entry__label a::after { content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 24px); height: max(100%, 24px); min-height: 24px; transform: translate(-50%, -50%); }
.entry__title {
  font-family: var(--font-display); font-weight: 500; font-size: var(--entry-fs); line-height: var(--entry-lh);
  letter-spacing: -0.005em; margin: 0 0 0.375rem; text-wrap: pretty;
}
.entry__title a { text-decoration: none; }
.entry__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--fg-1); }
.entry__blurb { font-size: var(--blurb-fs); line-height: var(--blurb-lh); color: var(--fg-2); margin: 0; }
.entry__formats { margin: var(--s-1) 0 0; }

/* ---- Index pages --------------------------------------------------------- */
.index__head .label { margin: 0.375rem 0 var(--s-4); }
.index__intro { font-size: var(--body-small-fs); line-height: var(--body-small-lh); color: var(--fg-2); }
.index__intro p { margin-bottom: var(--s-3); }
.index__intro img { display: inline; vertical-align: middle; margin: 0 4px 0 0; }
@media (min-width: 980px) and (min-height: 760px) {
  .index__head { position: sticky; top: var(--s-6); }
}
.index__imprint { grid-column: 1; }
@media (min-width: 980px) { .index__imprint { grid-row: 2; margin-top: var(--s-8); } }

/* imprint (papers) */
.imprint { font-family: var(--font-sans); font-size: var(--meta-fs); line-height: var(--meta-lh); color: var(--fg-2); border-top: 1px solid var(--rule); padding-top: var(--s-4); }
.imprint h2 { font-family: var(--font-sans); font-weight: 500; font-size: var(--label-fs); line-height: 1rem; letter-spacing: var(--label-ls); text-transform: uppercase; color: var(--fg-2); margin: 0 0 var(--s-3); }
.imprint__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: var(--s-3) var(--s-6); margin-bottom: var(--s-3); }
.imprint p { margin: 0 0 var(--s-2); }
.imprint strong { font-weight: 500; color: var(--fg-1); }

/* ---- About and small prose (17 / 27) ---------------------------------------- */
.about { max-width: var(--measure-one); }
.about h1 { margin-bottom: var(--s-8); }
.prose-small { font-size: var(--body-small-fs); line-height: var(--body-small-lh); }
.prose-small p { margin-bottom: var(--s-4); }
.about .motto, .prose-small .motto {
  font-family: var(--font-sans); font-weight: 500; font-size: var(--label-fs); line-height: 1rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fg-2); margin: 0 0 var(--s-8);
}
.paper-links { font-family: var(--font-sans); font-size: var(--meta-fs); line-height: var(--meta-lh); color: var(--fg-2); }


/* =========================================================================
   Step 4 — the book (PoT)
   ========================================================================= */
.opener__numeral {
  margin: auto 0 0; font-family: var(--font-display); font-weight: 400;
  font-size: var(--numeral-fs); line-height: var(--numeral-lh); letter-spacing: var(--numeral-ls);
  color: var(--fg-1); font-variant-numeric: lining-nums;
}
.opener__numeral + .opener__title { margin-top: var(--s-6); }
.opener .cover__top .label + .label { margin-left: auto; }
@media (max-width: 600px) { .opener__numeral { font-size: 6rem; } }
.opener__intro .abstract__text p { margin-bottom: var(--s-4); }

/* What to watch / Dig deeper */
.chapter-endmatter { margin-top: var(--s-4); }
.flow > .chapter-endmatter { display: block; }
.chapter-endmatter h2 { margin-top: var(--s-10); }
.chapter-endmatter ul { list-style: none; padding: 0; margin: 0 0 var(--s-4); display: grid; gap: var(--s-3); }
.chapter-endmatter li { margin: 0; }
.chapter-endmatter h2[data-head="What to watch"] + ul { font-size: var(--abstract-fs); line-height: var(--abstract-lh); }
.chapter-endmatter h2[data-head="What to watch"] + ul li { position: relative; padding-left: 1.25rem; }
.chapter-endmatter h2[data-head="What to watch"] + ul li::before { content: "·"; position: absolute; left: 0.25rem; color: var(--fg-2); }
.chapter-endmatter h2[data-head="Dig deeper"] + ul { font-family: var(--font-sans); font-size: 0.9375rem; line-height: 1.4375rem; color: var(--fg-2); gap: var(--s-3); font-variant-numeric: lining-nums; }
.chapter-endmatter h2[data-head="Dig deeper"] + ul a { color: var(--fg-1); }

/* Next-chapter outlined plate: border, no tile */
.chapter-nav { margin-top: var(--s-12); display: grid; gap: var(--s-5); }
.next-plate {
  display: flex; flex-direction: column; gap: var(--s-2); min-height: 10rem; justify-content: space-between;
  border: 1px solid var(--fg-1); padding: var(--s-6) var(--s-6) var(--s-5); text-decoration: none; color: var(--fg-1);
}
.next-plate__title { font-family: var(--font-display); font-weight: 500; font-size: var(--next-fs); line-height: var(--next-lh); letter-spacing: -0.005em; text-wrap: balance; }
.next-plate:hover .next-plate__title { text-decoration: underline; text-decoration-thickness: 1px; }
.chapter-nav__prev { margin: 0; font-family: var(--font-sans); font-size: var(--meta-fs); line-height: var(--meta-lh); color: var(--fg-2); }
.chapter-nav__prev .label { margin-right: var(--s-2); }

/* Contents by part */
.booktoc { display: grid; gap: var(--s-6); }
.booktoc .booktoc__head { margin: 0 0 var(--s-2); }
.booktoc__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.booktoc__list li { margin: 0; }
.booktoc__list a {
  display: grid; grid-template-columns: 1.75rem minmax(0, 1fr) auto; column-gap: 0.875rem; align-items: baseline;
  padding: 0 0 0.375rem; border-bottom: 1px solid var(--rule); text-decoration: none;
  font-family: var(--font-text); font-size: var(--toc-book-fs); line-height: var(--toc-book-lh); color: var(--fg-1);
}
.booktoc__list a[aria-current] { border-bottom: 2px solid var(--fg-1); }
.booktoc__list a:hover .booktoc__t { text-decoration: underline; text-decoration-thickness: 1px; }
.booktoc__n, .booktoc__m { font-family: var(--font-sans); font-size: var(--meta-fs); color: var(--fg-2); font-variant-numeric: lining-nums tabular-nums; }
.booktoc__m { white-space: nowrap; }
.booktoc__list a[aria-current] .booktoc__n { color: var(--fg-1); font-weight: 500; }


.entry--venture .entry__blurb, .entry--service .entry__blurb { font-size: var(--blurb-fs); }


/* =========================================================================
   Fix round 1
   ========================================================================= */
/* C28: titles and title links never hyphenate */
.post-footer a, .entry__title, .entry__title a, .next-plate__title, .contents__list a, .statement__text, .booktoc__t, .lede { hyphens: manual; -webkit-hyphens: manual; }
/* strip: numbers for every section; the current section carries its label */
/* A4/B8: figures with small type scroll inside their plate in one column */
@media (max-width: 979px) {
  .fig__plate[data-small-type] { overflow-x: auto; overscroll-behavior-x: contain; }
  .fig__plate[data-small-type] .fig__svg { min-width: var(--fig-minw); }
}
.fig__plate[role="region"]:focus-visible { outline-offset: 2px; }
/* 200 % text at 320: long words in the chapter navigation wrap instead of widening the page */
.chapter-nav, .next-plate, .chapter-nav__prev, .post-footer, .post-footer p, .post-footer .label { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.post-footer .label { white-space: normal; }
/* round 2: cover titles may hyphenate (narrow phones), headings elsewhere stay manual */
.cover__title, .cover h1 { hyphens: auto; -webkit-hyphens: auto; }
/* ============================================================================
   Codex board, vertical (codex3, 25 Oct 2026). The board of codex2 — desk, a 1280
   stone board centred on it, a fixed head and a fixed foot — with a stage that
   scrolls vertically: no spreads, no paging. Reading pages open on the cover |
   abstract spread, then the reading grid: the text as one 496 column left, the
   apparatus right (the rail, sidenotes placed by notes.js beside the paragraph
   that cites them), wide figures and tables across both columns. The foot holds
   the section labels (or the book's part bar) over the 3 px map, filled by the
   scroll position, and the running title. Type and spacing in rem; px only for
   rules, tiles and the board width.
   ============================================================================ */

:root { --bm: clamp(1.25rem, 8.75vw, 7rem); --head-h: 3rem; --foot-h: 5rem; }

/* ---- desk and board ------------------------------------------------------ */
@media screen {
  html { height: 100%; }
  body { height: 100%; min-height: 100vh; min-height: 100dvh; margin: 0; background: var(--bg-desk); overflow: hidden; display: grid; align-content: center; }
}
.cx-board {
  position: relative; width: min(1280px, 100vw); /* the screen height less the desk margin (no cap, 3 Nov 2026) */
  height: calc(100vh - 2rem); height: calc(100dvh - 2rem);
  margin: 0 auto; overflow: hidden;
  background: var(--bg-page); color: var(--fg-1);
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto;
}

/* ---- head ---------------------------------------------------------------- */
.cx-head {
  display: flex; flex-wrap: wrap; align-items: center; column-gap: 1.5rem; min-width: 0;
  min-height: var(--head-h); padding: 0 var(--bm); font-family: var(--font-sans);
}
.brand { display: flex; align-items: center; gap: 0.75rem; flex: none; position: relative; color: var(--fg-1); text-decoration: none; min-height: 2.75rem; }
.brand__seal { display: none; }
.brand__seal svg { display: block; width: 1.375rem; height: 1.375rem; }
.brand__name svg { display: block; height: 0.6875rem; width: auto; }
.brand__short { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.site-mark__text, .site-logo__name { fill: currentColor; }
.site-logo__tagline { fill: var(--fg-2); }
.site-logo__tagline--motto { display: none; }
.nav { display: flex; flex-wrap: wrap; column-gap: 1.25rem; align-items: center; min-width: 0; }
.nav a, .head__btn {
  position: relative; white-space: nowrap; text-decoration: none;
  font-family: var(--font-sans); font-weight: 400; font-size: var(--label-fs); line-height: 2.75rem;
  letter-spacing: var(--label-ls); text-transform: uppercase; color: var(--fg-2);
}
.nav a:hover, .head__btn:hover { color: var(--fg-1); }
.nav a.is-current { color: var(--fg-1); text-decoration: underline; text-decoration-color: var(--fg-1); text-decoration-thickness: 1px; text-underline-offset: 0.35em; }
.head__right { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; column-gap: 1.125rem; min-width: 0; }
.head__short { display: none; }
.head__btn[data-contents-open] { color: var(--fg-1); }
.head__menu { display: none; }
/* 44 × 44 hit areas: the head controls are 2.75rem tall; the brand by pseudo-element */
.brand::after { content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: 44px; transform: translate(-50%, -50%); }
.theme-toggle .label-dark { display: none; }
:root[data-theme="dark"] .theme-toggle .label-light { display: none; }
:root[data-theme="dark"] .theme-toggle .label-dark { display: inline; }
html:not(.js) .cx-js-only { display: none; }

/* ---- the stage: scrolls vertically --------------------------------------- */
.cx-stage-wrap { position: relative; min-height: 0; overflow: hidden; }
.cx-stage {
  position: absolute; inset: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  padding: 2.5rem var(--bm) 4rem; box-sizing: border-box; scroll-padding: 1.5rem 0 2rem;
}
.cx-stage:focus-visible { outline-offset: -2px; }
.cx-page { max-width: var(--wide); }
/* index spreads: every page kind uses the full stage at ≥ 980; one column keeps the 560 measure */
.cx-page--about, .cx-page--list { max-width: var(--wide); }
@media (max-width: 979px) { .cx-page--about, .cx-page--list { max-width: var(--measure-one); } }
/* the cover fills the first screen of the home stage: stage height less its padding */
.cx-board--home { --cover-h: max(22rem, calc(100vh - 2rem - var(--head-h) - var(--foot-h) - 2.5rem)); }
@supports (height: 100dvh) { .cx-board--home { --cover-h: max(22rem, calc(100dvh - 2rem - var(--head-h) - var(--foot-h) - 2.5rem)); } }

/* ---- spread 1: cover | abstract ---------------------------------------------- */
.spread { align-items: start; margin-bottom: var(--s-16); }
.abstract { display: flex; flex-direction: column; padding-top: 0.375rem; min-width: 0; }
.abstract__label { margin: 0 0 var(--s-4); }
.abstract__text p { font-size: var(--abstract-fs); line-height: var(--abstract-lh); margin: 0 0 0.875rem; }
.abstract__meta { margin: auto 0 0; padding-top: var(--s-4); display: grid; gap: 0.1875rem; }
.abstract__meta b { font-weight: 500; color: var(--fg-1); }
/* ---- cover (paper), opener (chapter), title column (writing) ---------------- */
.cx-cover {
  position: relative; min-height: 35rem; box-sizing: border-box;
  padding: var(--s-8) var(--s-8) 1.75rem; display: flex; flex-direction: column;
}
.cx-cover__top { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); }
.cx-cover__top .label { color: var(--fg-2); }
.cx-cover__mark { color: var(--fg-1); flex: none; }
.cx-cover__mark svg { display: block; width: 30px; height: 28px; }
.cx-cover h1 {
  margin: auto 0 1.375rem; color: var(--fg-1);
  font-size: var(--h1-cover-fs); line-height: var(--h1-cover-lh); letter-spacing: var(--h1-cover-ls);
  text-wrap: balance; hyphens: auto; -webkit-hyphens: auto;
}
.cx-cover__sub { margin: -0.75rem 0 1.375rem; font-size: var(--abstract-fs); line-height: var(--abstract-lh); color: var(--fg-1); }
.cx-cover__byline {
  margin: 0; display: grid; gap: 2px;
  font-family: var(--font-sans); font-size: var(--meta-fs); line-height: var(--meta-lh); color: var(--fg-2);
  font-variant-numeric: lining-nums tabular-nums; overflow-wrap: anywhere;
}
.cx-cover__byline span:first-child { color: var(--fg-1); }
.cx-opener__numeral {
  margin: auto 0 0; color: var(--fg-1); font-variant-numeric: lining-nums;
  font-family: var(--font-display); font-weight: 400; font-size: var(--numeral-fs); line-height: var(--numeral-lh); letter-spacing: var(--numeral-ls);
}
.cx-opener__numeral + h1 { margin-top: var(--s-6); }
.cx-opener .cx-cover__top .label + .label { margin-left: auto; }

/* ---- writing head -------------------------------------------------------------- */
.article-head { margin-bottom: var(--s-12); max-width: var(--wide); border-top: 1px solid var(--rule-strong); padding-top: var(--s-3); }
.article-head .label { margin: 0 0 var(--s-6); }
.article-head h1 { max-width: 52rem; }
.standfirst { font-family: var(--font-text); font-size: var(--abstract-fs); line-height: var(--abstract-lh); color: var(--fg-1); max-width: 40rem; margin: 0; text-wrap: pretty; }

/* ---- the reading grid: flow + apparatus ------------------------------------------ */
.reading { align-items: stretch; }
.flow { grid-column: 1 / -1; grid-row: 1; min-width: 0; }
.flow > * { max-width: var(--col); }
@supports (grid-template-columns: subgrid) {
  .flow { display: grid; grid-template-columns: subgrid; align-content: start; }
  .flow > * { grid-column: 1; max-width: none; min-width: 0; }
}
.flow > .fig--wide, .flow > .table-wrap--wide, .flow > .wide { grid-column: 1 / -1; width: min(var(--wide), 100%); max-width: none; }
.flow > :first-child { margin-top: 0; }
.flow h2 { break-after: avoid; }
.flow figure, .flow .fig { break-inside: avoid; }
.apparatus { grid-column: 2; grid-row: 1; position: relative; z-index: var(--z-rail); min-width: 0; pointer-events: none; }
.apparatus > *, .apparatus .note { pointer-events: auto; }
.rail-wrap { position: relative; display: flex; flex-direction: column; }
.rail { max-width: var(--rail-max); flex: 1 0 auto; display: flex; flex-direction: column; }
@media (min-width: 980px) { .rail__toc { position: sticky; top: 0; max-height: calc(100% - 1rem); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; } }
.footnotes.is-lifted, .sidenote--named.is-lifted, .flow .sidenote--named.is-lifted { display: none; }
.notes { position: static; }
.note {
  position: absolute; left: 0; right: 0; max-width: var(--rail-max);
  display: grid; grid-template-columns: 18px minmax(0, 1fr); column-gap: 6px; align-items: baseline;
  font-family: var(--font-sans); font-size: var(--meta-fs); line-height: var(--meta-lh); color: var(--fg-2);
  hyphens: auto; font-variant-numeric: lining-nums tabular-nums;
}
.note__num { font-weight: 500; color: var(--fg-1); text-decoration: none; position: relative; }
.note__num::after { content: ""; position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; transform: translate(-50%, -50%); }
.note__body p { margin: 0 0 var(--s-1); }
.note__body p:last-child { margin-bottom: 0; }
.note--named { grid-template-columns: minmax(0, 1fr); }
.note__label { display: block; font-weight: 500; font-size: var(--label-fs); letter-spacing: var(--label-ls); text-transform: uppercase; color: var(--fg-1); margin-bottom: 2px; }
.note:focus { outline: 2px solid var(--fg-1); outline-offset: 4px; }
.note--folded { position: static; background: var(--bg-inset); padding: var(--s-3); margin: 0 0 var(--body-after); max-width: none; }
.flow .sidenote--named { display: block; background: var(--bg-inset); padding: var(--s-3); margin: var(--s-2) 0; font-family: var(--font-sans); font-size: var(--meta-fs); line-height: var(--meta-lh); color: var(--fg-2); }
.sidenote__label { display: block; font-weight: 500; font-size: var(--label-fs); letter-spacing: var(--label-ls); text-transform: uppercase; color: var(--fg-1); }
.rail { font-family: var(--font-sans); font-size: var(--meta-fs); line-height: var(--meta-lh); color: var(--fg-2); }
.rail__block { margin: 0 0 var(--s-3); }
.rail__block > b { display: block; font-weight: 500; color: var(--fg-1); }
.rail__block .mono { font-size: 0.75rem; }
.rail__list { list-style: none; margin: 0; padding: 0; }
.rail__list li { margin: 0 0 var(--s-1); }
.rail__v { font-weight: 500; color: var(--fg-1); }
.rail__note p { display: inline; margin: 0; }
.rail__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-2); }
.rail__actions .linklike { text-decoration: none; min-height: 24px; display: inline-flex; align-items: center; }
.rail a { position: relative; display: inline-block; max-width: 100%; line-height: 1.5rem; vertical-align: baseline; }
.rail__toc { margin-top: var(--s-6); padding-top: var(--s-3); border-top: 1px solid var(--rule); }
.rail__toc a { color: var(--fg-2); text-decoration: none; display: inline-block; padding: 2px 0; }
.rail__toc a:hover { color: var(--fg-1); text-decoration: underline; }
.rail__toc a.is-current { color: var(--fg-1); font-weight: 500; }
.contents__rail .rail__toc { display: none; }

/* Next / previous */
.cx-nextblock { margin-top: var(--s-12); padding-top: var(--s-3); border-top: 1px solid var(--rule-strong); }
.cx-nextblock .cx-next-label { margin: 0 0 var(--s-2); }
.cx-next { display: block; text-decoration: none; text-wrap: balance; hyphens: manual; font-family: var(--font-display); font-weight: 500; font-size: var(--next-fs); line-height: var(--next-lh); letter-spacing: -0.005em; }
.cx-next:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.cx-nextblock .cx-prev { margin: var(--s-5) 0 0; font-family: var(--font-sans); font-size: var(--meta-fs); line-height: var(--meta-lh); color: var(--fg-2); }
.cx-prev .label { margin-right: var(--s-2); }

/* ---- home: the cover (concept A) -------------------------------------------- */
.cx-coverA {
  position: relative; min-height: var(--cover-h, 35rem); box-sizing: border-box;
  padding: 2.5rem 3rem 2.25rem; display: flex; flex-direction: column;
}
.cx-coverA__top { display: flex; align-items: center; gap: 1.25rem; color: var(--fg-1); }
.cx-seal svg { display: block; width: 3.5rem; height: 3.25rem; }
.cx-coverA__name svg { display: block; height: 14px; width: auto; }
.cx-coverA__statement {
  margin: auto 0 0; max-width: 53.75rem; color: var(--fg-1);
  font-family: var(--font-display); font-weight: 500; font-size: 2.75rem; line-height: 1.06; letter-spacing: -0.015em;
  text-wrap: balance; hyphens: manual; -webkit-hyphens: manual; overflow-wrap: normal; word-break: normal;
}
.cx-latest__title { overflow-wrap: normal; word-break: normal; }
.cx-coverA__motto {
  margin: 1.125rem 0 0; color: var(--fg-2);
  font-family: var(--font-sans); font-weight: 500; font-size: var(--label-fs); line-height: 1rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.cx-coverA__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 3rem; margin-top: 3.5rem; }
.cx-latest { max-width: 37.5rem; }
.cx-latest .label { margin: 0 0 0.625rem; color: var(--fg-2); font-size: 0.8125rem; }
.cx-latest__title {
  display: block; text-decoration: none; text-wrap: balance; hyphens: manual;
  font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.005em;
}
.cx-latest__title:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.cx-latest__links { margin: 0.75rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.cx-latest__read {
  display: inline-block; text-decoration: none; padding-bottom: 1px; border-bottom: 1px solid currentColor;
  font-family: var(--font-sans); font-weight: 500; font-size: 0.8125rem; line-height: 1.25rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.cx-author {
  margin: 0; flex: none; display: grid; gap: 2px; text-align: right;
  font-family: var(--font-sans); font-size: var(--meta-fs); line-height: var(--meta-lh); color: var(--fg-2);
  font-variant-numeric: lining-nums tabular-nums;
}
.cx-author span:first-child { color: var(--fg-1); }


/* the contents on the home: entry cards in two columns, year heads across */
.cx-home-cover { margin-bottom: var(--s-12); }
.cx-flow--ledger { display: grid; grid-template-columns: minmax(0, var(--col)) minmax(0, var(--col)); column-gap: var(--gap); align-items: start; font-size: var(--blurb-fs); line-height: var(--blurb-lh); }
.cx-flow--ledger > h2, .cx-flow--ledger > .cx-about { grid-column: 1 / -1; }
.cx-flow--ledger .cx-year { margin: var(--s-8) 0 0.875rem; }
.cx-flow--ledger .cx-year:first-child { margin-top: 0; }
.cx-flow--ledger .cx-about { max-width: var(--measure-one); }
.cx-flow--ledger .cx-about p { font-size: var(--abstract-fs); line-height: var(--abstract-lh); margin-bottom: 0.875rem; }
.cx-flow--ledger .cx-about .paper-links { font-size: var(--meta-fs); line-height: 1.3125rem; }
.cx-flow--ledger .cx-about h2 { font-size: var(--h3-fs); line-height: var(--h3-lh); margin: var(--s-6) 0 var(--s-2); }
.cx-about--home .book-cover img, .cx-about--home > p:first-child + p > img, .cx-about--home img { display: none; }
.cx-about--home .standfirst { display: none; }
.book-download, .book-disclosure, .book-cite, .book-dashboard { font-family: var(--font-sans); font-size: var(--meta-fs) !important; line-height: var(--meta-lh) !important; color: var(--fg-2); }
.book-download { font-weight: 500; letter-spacing: var(--label-ls); text-transform: uppercase; }


/* ---- index spreads (3 Nov 2026) ------------------------------------------------------ */
/* home (PM): the cover leaves the top of the doors band on the first screen */
.cx-board--home .cx-home-cover--doors { --cover-h: max(20rem, calc(100vh - 2rem - var(--head-h) - var(--foot-h) - 2.5rem - 6.5rem)); }
@supports (height: 100dvh) { .cx-board--home .cx-home-cover--doors { --cover-h: max(20rem, calc(100dvh - 2rem - var(--head-h) - var(--foot-h) - 2.5rem - 6.5rem)); } }
.cx-home-cover--doors { margin-bottom: var(--s-8); }
.cx-doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.cx-door { border-top: 1px solid var(--rule-strong); padding-top: var(--s-3); min-width: 0; display: flex; flex-direction: column; }
.cx-doors .cx-door__label { margin: 0 0 var(--s-4); }
.cx-door__img { height: 11rem; margin: 0 0 var(--s-4); }
.cx-door__img > a { height: 100%; }
.cx-door__img > .cx-door__plate { display: block; }
.cx-door__plate { background: var(--plate); overflow: hidden; }
.cx-door__plate img { width: 100%; height: 100%; object-fit: contain; }
.cx-door .entry__title { font-size: var(--entry-fs); }
.cx-door .entry__blurb { margin-bottom: var(--s-4); }
.cx-door__more { margin: 0; }
/* the foot map on the home: the three doors sit side by side, so their segments share the bar equally */
.cx-board--doors .cx-seg { flex-grow: 1 !important; }

/* the thumbnail: the tiled number-cover */
.cx-wpcover {
  display: flex; flex-direction: column; justify-content: space-between; height: 100%; box-sizing: border-box;
  padding: var(--s-3) var(--s-4) var(--s-2); text-decoration: none; color: var(--fg-1);
}
.cx-wpcover .label { color: var(--fg-1); }
.cx-wpcover__n {
  font-family: var(--font-display); font-weight: 400; font-size: 4rem; line-height: 1; letter-spacing: -0.02em;
  font-variant-numeric: lining-nums; color: var(--fg-1);
}

/* index pages: the head band (label + title | intro) */
.cx-ihead {
  display: grid; grid-template-columns: minmax(0, var(--col)) minmax(0, var(--col)); column-gap: var(--gap); align-items: start;
  margin-bottom: var(--s-12);
}
.cx-ihead .label { margin: 0.375rem 0 var(--s-4); }
.cx-ihead h1 { margin: 0; }
.cx-ihead__intro { padding-top: 0.375rem; }
.cx-ihead__intro > :last-child { margin-bottom: 0; }

/* papers: one row per paper — thumbnail | text | apparatus */
.cx-wprow {
  display: grid; grid-template-columns: 19rem minmax(0, 1fr) 12rem; column-gap: var(--s-8); align-items: start;
  border-top: 1px solid var(--rule); padding: var(--s-4) 0 var(--s-6);
}
.cx-wprow__thumb { height: 9.5rem; }
.cx-wprow__main { min-width: 0; }
.cx-wprow__sub { margin: 0 0 0.375rem; font-size: var(--blurb-fs); line-height: var(--blurb-lh); font-style: italic; color: var(--fg-2); }
.cx-wprow__rail { min-width: 0; }
.cx-wprow__rail .rail__block:last-child { margin-bottom: 0; }
.cx-wpimprint { margin-top: var(--s-8); }

/* writing: the ledger by year — year | entries in two columns */
.cx-yledger__group { display: grid; grid-template-columns: 8rem minmax(0, 1fr); align-items: start; }
.cx-yledger__group + .cx-yledger__group { margin-top: var(--s-8); }
.cx-yledger .cx-yledger__year { margin: 0; padding-top: var(--s-3); border-top: 1px solid var(--rule-strong); }
.cx-yledger__entries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-16); align-items: start; }
.cx-yledger__item { min-width: 0; }

/* books: one cover-led spread per book */
.cx-book { display: grid; grid-template-columns: 19rem minmax(0, 1fr); column-gap: var(--s-16); align-items: start; border-top: 1px solid var(--rule-strong); padding-top: var(--s-6); }
.cx-book__cover { display: block; background: var(--plate); border: 1px solid var(--rule); }
.cx-book__cover img { width: 100%; height: auto; }
.cx-book__text { min-width: 0; max-width: 40rem; }
.cx-book__text > .label { margin: 0 0 var(--s-4); }
.cx-book__text > .label a { color: var(--fg-2); }
.cx-book__title { font-family: var(--font-display); font-weight: 500; font-size: 2rem; line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 var(--s-3); }
.cx-book__title a { text-decoration: none; }
.cx-book__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.cx-book__sub { margin-bottom: var(--s-6); }
.cx-book__desc { font-size: var(--body-small-fs); line-height: var(--body-small-lh); margin: 0 0 var(--s-8); }
.cx-book__rail { max-width: none; border-top: 1px solid var(--rule); padding-top: var(--s-3); }

/* about: the paper geometry — text 496 | rail 400 */
.about--spread, .cx-about-spread { display: grid; grid-template-columns: minmax(0, var(--col)) minmax(0, var(--rail-max)); column-gap: var(--gap); align-items: start; max-width: none; }
.about__text, .cx-about-spread__text { min-width: 0; }
.cx-about-rail { max-width: var(--rail-max); }
.cx-about-rail__seal { display: block; color: var(--fg-1); margin: 0.375rem 0 var(--s-6); }
.cx-about-rail__seal svg { display: block; width: 3.5rem; height: auto; }
.cx-about-spread .cx-year { margin: 0 0 0.875rem; }
.cx-about-spread .prose-small p { font-size: var(--abstract-fs); line-height: var(--abstract-lh); margin-bottom: 0.875rem; }
.cx-about-spread .motto { display: none; }

/* PoT: the cover block in two parts — the text left, the book cover right */
.cx-coverA--art { flex-direction: row; align-items: center; gap: var(--s-12); }
.cx-coverA__main { flex: 1 1 auto; min-width: 0; align-self: stretch; display: flex; flex-direction: column; }
.cx-coverA__art { flex: none; width: 19rem; height: auto; max-height: calc(var(--cover-h, 35rem) - 4.75rem); object-fit: contain; }
.cx-coverA--art .cx-coverA__statement { font-size: 2.25rem; }
.cx-author a { color: inherit; }

/* the services (Monetalis) and chapters (PoT) across the stage: already two columns of --col */

/* ---- the book reading page (PoT chapters, 3 Nov 2026) ---------------------------------- */
/* the stage grid: the 560 text column centred, the band, wide figures, end matter and nav across */
.cx-chapter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, var(--measure-one)) minmax(0, 1fr); align-items: start; }
.cx-chapter > * { grid-column: 1 / -1; min-width: 0; }
.cx-chapter > .cx-chtext { grid-column: 2; grid-row: auto; }
@supports (grid-template-columns: subgrid) {
  .cx-chapter > .cx-chtext { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; }
  .cx-chtext > * { grid-column: 2; max-width: none; }
  .cx-chtext > .fig--wide { grid-column: 1 / -1; width: 100%; }
}
.cx-chtext > * { max-width: none; }
.cx-chtext { margin-top: var(--s-12); }
/* the opener as a band across the stage */
.cx-chband { min-height: 18rem; }
.cx-chband__body { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-8); padding-top: var(--s-6); }
.cx-chband__title { max-width: 40rem; min-width: 0; }
.cx-chband .cx-opener__numeral { font-size: 6rem; line-height: 0.9; }
.cx-chband h1 { margin: var(--s-4) 0 var(--s-4); }
.cx-chband .cx-opener__numeral + h1 { margin-top: var(--s-4); }
.cx-chband__meta {
  margin: 0; flex: none; display: grid; gap: 2px; text-align: right;
  font-family: var(--font-sans); font-size: var(--meta-fs); line-height: var(--meta-lh); color: var(--fg-2);
}
.cx-chband__meta .count { color: var(--fg-1); }
/* end matter: What to watch | Dig deeper */
.cx-endmatter { display: grid; grid-template-columns: repeat(2, minmax(0, var(--col))); column-gap: var(--gap); align-items: start; margin-top: var(--s-12); }
.cx-endmatter__cell { border-top: 1px solid var(--rule-strong); padding-top: var(--s-3); min-width: 0; }
.cx-endmatter .h2-small { margin: 0 0 var(--s-4); }
.cx-endmatter ul { font-size: var(--body-small-fs); line-height: var(--body-small-lh); margin: 0; }
.cx-endmatter li { margin-bottom: var(--s-3); }
.cx-chapter > .chapter-nav { margin-top: var(--s-12); }
.cx-chapter .next-plate { min-height: 2.75rem; justify-content: flex-start; gap: var(--s-2); }

@media (max-width: 979px) {
  .cx-doors { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-10); max-width: var(--measure-one); }
  .cx-chapter { grid-template-columns: minmax(0, 1fr); max-width: var(--measure-one); }
  .cx-chapter > .cx-chtext, .cx-chtext > *, .cx-chtext > .fig--wide { grid-column: 1; }
  .cx-chband__body { flex-direction: column; align-items: flex-start; }
  .cx-chband__meta { text-align: left; }
  .cx-endmatter { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-8); }
  .cx-ihead { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-4); }
  .cx-wprow { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-4); }
  .cx-wprow__thumb { width: min(19rem, 100%); }
  .rail.cx-wprow__rail { display: block; }
  .cx-yledger__group { grid-template-columns: minmax(0, 1fr); }
  .cx-yledger .cx-yledger__year { margin-bottom: 0.875rem; }
  .cx-yledger__entries { grid-template-columns: minmax(0, 1fr); }
  .cx-book { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-6); }
  .cx-book__cover { width: min(19rem, 100%); }
  .about--spread, .cx-about-spread { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-8); }
  .rail.cx-about-rail { display: block; max-width: none; }
  .cx-coverA--art { flex-direction: column; align-items: stretch; }
  .cx-coverA--art .cx-coverA__main { display: contents; }
  .cx-coverA--art .cx-coverA__top { order: -2; }
  .cx-coverA__art { width: min(19rem, 100%); max-height: none; order: -1; align-self: flex-start; margin-top: var(--s-6); }
}
@media (max-width: 600px) {
  .cx-board--home .cx-home-cover--doors { --cover-h: max(20rem, calc(100vh - var(--head-h) - 3.5rem - 2.75rem - 4rem)); }
  @supports (height: 100dvh) { .cx-board--home .cx-home-cover--doors { --cover-h: max(20rem, calc(100dvh - var(--head-h) - 3.5rem - 2.75rem - 4rem)); } }
  .cx-door__img { height: 9rem; }
  .cx-coverA--art .cx-coverA__statement { font-size: clamp(1rem, 7vw, 1.75rem); }
  .cx-coverA__art { width: 9rem; }
}

/* ---- foot ------------------------------------------------------------------------- */
.cx-foot {
  min-height: var(--foot-h); box-sizing: border-box; padding: 0.875rem var(--bm) 1rem; border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: minmax(0, 1fr); align-content: space-between; gap: 0.625rem;
  font-family: var(--font-sans); font-size: var(--label-fs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-2);
}
.cx-map, .cx-parts { display: flex; gap: 3px; min-width: 0; }
.cx-map[hidden] { display: none; }
.cx-seg {
  flex: 1 1 0; min-width: 1.5rem; display: flex; flex-direction: column; justify-content: flex-end; gap: 0.375rem;
  color: var(--fg-2); text-decoration: none; position: relative; padding-top: 4px;
}
.cx-seg__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1rem; padding-right: 0.5rem; }
.cx-seg__bar { display: block; height: 3px; background: var(--fg-ghost); position: relative; }
.cx-seg__bar > span { position: absolute; inset: 0; background: var(--fg-1); transform-origin: left; transform: scaleX(var(--fill, 0)); }
.cx-seg.is-past .cx-seg__bar > span { background: var(--fg-2); }
.cx-seg.is-now, .cx-seg:hover { color: var(--fg-1); }
.cx-seg.is-now { font-weight: 500; }
.cx-seg:focus-visible { outline-offset: 1px; }
.cx-part { flex: var(--n, 1) 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 0.375rem; text-decoration: none; color: var(--fg-2); padding-top: 4px; }
.cx-part__name { font-size: var(--part-fs); letter-spacing: var(--part-ls); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1rem; }
.cx-part.is-now { color: var(--fg-1); font-weight: 500; }
.cx-part__segs { display: flex; gap: 3px; }
.cx-part__seg { flex: 1 1 0; height: 3px; background: var(--fg-ghost); }
.cx-part__seg.is-past { background: var(--fg-2); }
.cx-part__seg.is-now { background: var(--fg-1); }
.cx-foot__line { display: flex; justify-content: flex-end; align-items: baseline; gap: 1.5rem; min-width: 0; white-space: nowrap; }
.cx-foot__where { display: none; overflow: hidden; text-overflow: ellipsis; min-width: 0; margin-right: auto; }
.cx-running { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cx-progress { display: none; }

.service { display: grid; grid-template-columns: minmax(0, var(--col)) minmax(0, 25rem); column-gap: var(--gap); align-items: start; }
.service > .article-head { grid-column: 1 / -1; }
.service__rail { grid-column: 2; grid-row: 2; }
.service__body { min-width: 0; }
.about .lede { margin-bottom: var(--s-8); }
@media (max-width: 979px) {
  .service { grid-template-columns: minmax(0, 1fr); max-width: var(--measure-one); }
  .service__rail { grid-column: 1; grid-row: auto; margin-top: var(--s-8); }
}

/* ---- dialogs: Contents and Menu ------------------------------------------------------ */
.contents {
  position: fixed; inset: auto; top: 3rem; left: 0; width: 100%; height: calc(100dvh - 3rem);
  max-width: none; max-height: none; margin: 0; box-sizing: border-box;
  padding: 2.5rem var(--bm) 3rem; border: 0;
  background: var(--bg-page); color: var(--fg-1); overflow: auto; overscroll-behavior: contain; z-index: var(--z-dialog);
}
.contents__inner { max-width: var(--wide); }
.contents__grid { display: grid; grid-template-columns: minmax(0, var(--col)) minmax(0, var(--col)); column-gap: var(--gap); row-gap: var(--s-8); align-items: start; }
.contents__rail .rail { max-width: none; }
.contents__rail .rail__block:first-child, .contents__rail .rail__dl { display: none; }
.contents__side .btn { justify-self: start; }
.cx-menu .contents__list a { font-size: var(--entry-fs); }
@media (max-width: 979px) { .contents__grid { grid-template-columns: minmax(0, 1fr); max-width: var(--measure-one); } }


/* ---- one column (≤ 979): the rail above the text, notes folded under their paragraphs -- */
@media (max-width: 979px) {
  .brand__name { display: none; }
  .brand__seal { display: block; }
  .brand__short { position: static; width: auto; height: auto; overflow: visible; clip-path: none; font-size: 0.8125rem; color: var(--fg-2); }
  .cx-head { column-gap: 1rem; }
  .nav { column-gap: 1rem; }
  .spread { row-gap: var(--s-8); margin-bottom: var(--s-12); }
  .cx-cover { min-height: 30rem; }
  .flow { grid-column: 1; grid-row: 2; }
  .apparatus { grid-column: 1; grid-row: 1; margin-bottom: var(--s-8); pointer-events: auto; }
  .rail { max-width: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr)); gap: var(--s-4) var(--s-6); }
  .js .rail__toc { display: none; }
  .flow > .fig--wide, .flow > .table-wrap--wide, .flow > .wide { grid-column: 1; width: 100%; }
  .fig__plate[data-small-type] { overflow-x: auto; overscroll-behavior-x: contain; }
  .fig__plate[data-small-type] .fig__svg { min-width: var(--fig-minw); }
  .cx-flow--ledger { grid-template-columns: minmax(0, 1fr); max-width: var(--measure-one); }
  .cx-seg__label { display: none; }
  .cx-foot__where { display: block; }
}

/* ---- phone (≤ 600) ----------------------------------------------------------------- */
@media (max-width: 600px) {
  .cx-board { width: 100vw; height: 100vh; height: 100dvh; --foot-h: 3.5rem; }
  .cx-board--home { --cover-h: max(22rem, calc(100vh - var(--head-h) - 3.5rem - 2.75rem)); }
  @supports (height: 100dvh) { .cx-board--home { --cover-h: max(22rem, calc(100dvh - var(--head-h) - 3.5rem - 2.75rem)); } }
  .cx-head { column-gap: 0.75rem; padding: 0 1.25rem; min-height: 2.75rem; }
  .cx-head .brand { min-width: 0; flex: 1 1 auto; }
  .js .nav, .head__wide { display: none !important; }
  .head__right { column-gap: 1rem; margin-left: 0; justify-content: flex-end; }
  .head__short { display: block; font-size: 0.8125rem; letter-spacing: 0; color: var(--fg-2); }
  .js .head__menu { display: block; }
  .cx-stage { padding: 1.5rem 1.25rem 3rem; }
  .cx-cover { min-height: max(22rem, calc((100vw - 2.5rem) * 1.25)); padding: 1.5rem 1.5rem 1.375rem; }
  .cx-cover h1 { font-size: 2.125rem; }
  .cx-opener__numeral { font-size: 6rem; }
  .cx-coverA { padding: 1.5rem 1.375rem 1.375rem; }
  .cx-coverA__top { gap: 0.875rem; }
  .cx-coverA__name svg { height: 10px; }
  .cx-seal svg { width: 2.75rem; height: 2.5rem; }
  .cx-coverA__statement { font-size: clamp(1rem, 8vw, 1.9375rem); }
  .cx-coverA__bottom { flex-direction: column; align-items: flex-start; gap: 1.375rem; margin-top: 2rem; }
  .cx-latest .label { font-size: 0.6875rem; }
  .cx-latest__title { font-size: 1.3125rem; }
  .cx-author { text-align: left; }
  .cx-foot { padding: 0.5rem 1.25rem 0.75rem; font-size: 0.6875rem; align-content: end; gap: 0.5rem; }
  .cx-map, .cx-parts { display: none; }
  .cx-progress { display: block; height: 3px; background: var(--fg-ghost); order: -1; }
  .cx-progress > span { display: block; height: 100%; width: 0; background: var(--fg-1); }
  .cx-running { display: none; }
  .cx-foot__line { justify-content: flex-start; }
  .contents { padding: 1.5rem 1.25rem 2.5rem; }
}
@media (max-width: 979px) and (min-width: 601px) { .cx-map .cx-seg__label { display: none; } }

/* ---- print: one plain column, the notes as endnotes ------------------------------------- */
@page { margin: 22mm 20mm 24mm; }
@media print {
  :root, :root[data-theme="dark"] {
    color-scheme: light;
    --bg-page: #fff; --bg-desk: #fff; --bg-inset: #fff; --fg-1: #000; --fg-2: #333; --rule: #999; --rule-strong: #000; --link-rule: #999; --border: #666;
  }
  html, body { height: auto; overflow: visible; display: block; background: #fff; color: #000; font-size: 11pt; line-height: 1.5; }
  .cx-board { width: auto; height: auto; display: block; overflow: visible; background: #fff; }
  .cx-head, .cx-foot, dialog, .skip-link, .cx-js-only, .theme-toggle, .rail__toc, .rail__actions, .linklike, .chapter-nav, .cx-nextblock, .note { display: none !important; }
  .cx-stage-wrap, .cx-stage { position: static !important; overflow: visible !important; padding: 0 !important; height: auto !important; }
  .cols2, .reading, .spread, .index, .service, .cx-flow--ledger, .cx-chapter, .cx-chtext, .cx-endmatter, .cx-doors, .cx-ihead, .cx-wprow, .cx-yledger__group, .cx-yledger__entries, .cx-book, .about--spread, .cx-about-spread { display: block; max-width: none; }
  .cx-coverA--art { display: block; }
  .cx-coverA__art, .cx-door__img, .cx-wprow__thumb { max-width: 60mm; height: auto; margin: 0 0 3mm; }
  .cx-door__plate, .cx-book__cover { background: #fff; }
  .cx-wpcover { display: none; }
  .cx-doors .cx-door, .cx-wprow { margin-bottom: 6mm; }
  .block, .tile, .block * { background: none !important; color: #000 !important; }
  .cx-cover, .cx-coverA { min-height: 0 !important; padding: 0 !important; margin: 0 0 6mm; }
  .cx-cover__top { border-bottom: 1px solid #000; padding-bottom: 2mm; }
  .cx-cover h1 { font-size: 22pt; line-height: 1.15; margin: 6mm 0 3mm; }
  .cx-cover__mark, .cx-coverA__top { display: none; }
  .cx-opener__numeral { font-size: 40pt; }
  .abstract { margin-bottom: 6mm; }
  .abstract__text p { font-size: 10.5pt; line-height: 1.45; }
  .reading { display: flex; flex-direction: column; }
  .flow { display: block; }
  .flow > * { max-width: none; }
  .apparatus { position: static; margin: 0 0 8mm; order: -1; min-height: 0 !important; }
  .rail-wrap { min-height: 0 !important; }
  .rail { font-size: 9pt; line-height: 1.4; color: #333; display: grid; grid-template-columns: 1fr 1fr; gap: 2mm 8mm; border-top: 1px solid #000; padding-top: 3mm; max-width: none; }
  .rail__block b { color: #000; }
  h1, .article-head h1 { font-size: 22pt; line-height: 1.15; }
  h2 { font-size: 14pt; line-height: 1.25; break-after: avoid; margin-top: 8mm; }
  h3, h4 { break-after: avoid; }
  p, li, blockquote, figure, .fig, table { orphans: 3; widows: 3; }
  figure, .fig, table, pre, blockquote, .entry { break-inside: avoid; }
  .footnotes.is-lifted, .sidenote--named.is-lifted { display: block !important; }
  .footnote-backref { display: none !important; }
  .footnotes { font-size: 9pt; color: #000; border-top: 1px solid #000; }
  a { color: inherit; text-decoration: none; }
  .flow a[href^="http"]::after, .prose-small a[href^="http"]::after { content: " (" attr(href) ")"; font-family: var(--font-sans); font-size: 8pt; color: #555; word-break: break-all; }
  .fig__plate { background: #fff; }
  .table-wrap { overflow: visible; background: none; }
  .table-wrap table { min-width: 0; }
}
