:root {
  --bg:      #eceae3;  --bg2: #e2e1d8;  --surface: #f8f7f2;
  --ink:     #1b2026;  --muted: #56606b; --faint: #7d8590;
  --line:    rgba(20,30,45,0.15);  --line2: rgba(20,30,45,0.08);
  --accent:  #2672a6;  --accent-ink: #1d5f8d;  --accent-soft: rgba(38,114,166,0.12);
  --glow:    rgba(38,114,166,0.20);
  --sun:     #d98a1f;  --earth: #2f7fc9;  --moon: #8c929c;  --mars: #c45a2c;  --ok: #2f8f6a; --bad: #c0443a;
  --code-bg: #121820;  --code-ink: #dfe6ee;  --code-c: #7f8b99;  --code-kw: #78b9e8; --code-str:#9cc59c; --code-num:#e3a85a;
  --eq-bg:   #f2f1ea;
  --shadow:  0 1px 2px rgba(20,30,45,.06), 0 8px 30px rgba(20,30,45,.08);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1117; --bg2: #121821; --surface: #161d27;
    --ink: #e8edf3; --muted: #9ba7b4; --faint: #76818e;
    --line: rgba(232,237,243,0.13); --line2: rgba(232,237,243,0.06);
    --accent: #6cb8ea; --accent-ink: #8ccaf2; --accent-soft: rgba(108,184,234,0.14);
    --glow: rgba(108,184,234,0.22);
    --sun: #f0b04a; --earth: #5aa7ee; --moon: #b4bac4; --mars: #e5794a; --ok: #57c49a; --bad: #ec6d61;
    --code-bg: #080b10; --code-ink: #dfe6ee; --code-c: #6c7886; --code-kw: #7cc4f0; --code-str:#8fbf8f; --code-num:#ebb46a;
    --eq-bg: #121922;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 40px rgba(0,0,0,.45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1117; --bg2: #121821; --surface: #161d27;
  --ink: #e8edf3; --muted: #9ba7b4; --faint: #76818e;
  --line: rgba(232,237,243,0.13); --line2: rgba(232,237,243,0.06);
  --accent: #6cb8ea; --accent-ink: #8ccaf2; --accent-soft: rgba(108,184,234,0.14);
  --glow: rgba(108,184,234,0.22);
  --sun: #f0b04a; --earth: #5aa7ee; --moon: #b4bac4; --mars: #e5794a; --ok: #57c49a; --bad: #ec6d61;
  --code-bg: #080b10; --code-ink: #dfe6ee; --code-c: #6c7886; --code-kw: #7cc4f0; --code-str:#8fbf8f; --code-num:#ebb46a;
  --eq-bg: #121922;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 40px rgba(0,0,0,.45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 18px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: var(--accent-soft); }
.wrap { max-width: 740px; margin: 0 auto; padding: 0 24px; }
.wide { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
p { margin: 0 0 1.1em; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
strong { font-weight: 700; color: var(--ink); }
h1,h2,h3,h4 { font-family: "Fraunces", Georgia, serif; text-wrap: balance; line-height: 1.12; margin: 0; }

.topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 11px 24px; background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line2); }
.brand { font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.brand b { color: var(--ink); font-weight: 600; }
.topbar .right { display: flex; gap: 10px; align-items: center; }
.toggle { font: inherit; font-size: 13px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px;
  cursor: pointer; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.toggle:hover { border-color: var(--accent); }
.toggle { white-space: nowrap; }
.toggle .short { display: none; }
@media (max-width: 520px) { .toggle .long { display: none; } .toggle .short { display: inline; } .brand { font-size: 11px; letter-spacing: .08em; } }
.toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.hero { padding: 60px 0 30px; position: relative; overflow: hidden; }
.hero::before { content:""; position:absolute; inset:-30% 0 auto 0; height: 560px;
  background: radial-gradient(60% 100% at 72% 0%, var(--glow), transparent 70%); pointer-events:none; z-index:-1; }
.eyebrow { font-family: "IBM Plex Mono", monospace; font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 20px; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); font-weight: 600; letter-spacing: -0.02em; margin-bottom: 22px; }
h1 em { font-style: normal; color: var(--accent-ink); font-weight: 500; }
.byline { font-size: 1.05rem; color: var(--muted); margin: -8px 0 0; }
.byline b { color: var(--ink); font-weight: 600; }

figure { margin: 0; }
.stage { margin: 34px 0 8px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #05070a; box-shadow: var(--shadow); position: relative; aspect-ratio: 16/9; }
.stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.1s ease; }
.stage img.on { opacity: 1; }
.stage-hud { position: absolute; left: 14px; top: 12px; font-family: "IBM Plex Mono", monospace; font-size: 12px; color: #eef3f8; text-shadow: 0 1px 4px rgba(0,0,0,.85); pointer-events: none; }
.stage-hud b { color: #9fd3f5; font-weight: 500; }
.chips { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font: inherit; font-size: 12px; padding: 5px 11px; cursor: pointer; color: #eef3f8; background: rgba(10,14,20,.55); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; backdrop-filter: blur(4px); }
.chip.on { background: #e8edf3; color: #0d1117; border-color: #e8edf3; }
.chip:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
figcaption { font-size: 14px; color: var(--faint); margin-top: 12px; font-style: italic; }
figcaption b { font-style: normal; font-weight: 600; color: var(--muted); }
.credit { font-style: normal; font-family: "IBM Plex Mono", monospace; font-size: 11px; color: var(--faint); display: block; margin-top: 4px; }

section { padding: 24px 0; }
.section-head { margin: 40px 0 6px; scroll-margin-top: 70px; }
.kicker { font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 12px; display: block; }
h2 { font-size: clamp(1.75rem, 3.8vw, 2.45rem); font-weight: 500; letter-spacing: -0.015em; }
h3 { font-size: 1.38rem; font-weight: 600; margin: 34px 0 6px; letter-spacing: -0.01em; }
h4 { font-family: "Fraunces", serif; font-size: 1.06rem; margin: 26px 0 4px; font-weight: 600; letter-spacing: -0.01em; }
.lede { font-size: 1.2rem; color: var(--muted); margin-top: 12px; }
hr.rule { border: 0; border-top: 1px solid var(--line); margin: 54px auto; max-width: 740px; }
.part { margin: 70px 0 10px; text-align: left; scroll-margin-top: 70px; }
.part-tab { font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-ink); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; display: inline-block; margin-bottom: 14px; }
.part h2 { font-size: clamp(2rem, 4.6vw, 3rem); font-weight: 600; }
.part p { color: var(--muted); font-size: 1.12rem; margin-top: 12px; }

code { font-family: "IBM Plex Mono", monospace; font-size: 0.84em; background: var(--accent-soft); color: var(--accent-ink); padding: 1px 6px; border-radius: 5px; }

.math { background: var(--eq-bg); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; padding: 18px 20px; margin: 22px 0; }
.math .tag, .aside .tag { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); display: block; margin-bottom: 10px; }
.eqline { font-family: "Fraunces", Georgia, serif; font-size: 1.3rem; text-align: center; margin: 14px 0; line-height: 1.5; overflow-x: auto; }
.eqline i, .math i { font-style: italic; font-family: "Fraunces", Georgia, serif; }
.eqline .op { color: var(--accent-ink); padding: 0 .12em; font-style: normal; }
.where { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 0.95rem; color: var(--muted); }
.where li { display: grid; grid-template-columns: minmax(46px, auto) 1fr; gap: 12px; align-items: baseline; }
.where .sym { font-family: "Fraunces", serif; font-style: italic; color: var(--ink); font-size: 1.05rem; text-align: right; }
.frac { display: inline-flex; flex-direction: column; vertical-align: middle; text-align: center; margin: 0 .18em; }
.frac .num { border-bottom: 1.5px solid currentColor; padding: 0 .35em; }
.frac .den { padding: 0 .35em; }

.code { background: var(--code-bg); border-radius: 10px; margin: 22px 0; overflow: hidden; box-shadow: var(--shadow); }
.code .filelabel { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .06em; color: var(--code-c);
  padding: 9px 16px; border-bottom: 1px solid rgba(255,255,255,.07); display: flex; justify-content: space-between; gap: 12px; }
.code .filelabel .lang { color: var(--code-kw); }
.code pre { margin: 0; padding: 16px; overflow-x: auto; max-height: 560px; }
.code code { background: none; color: var(--code-ink); padding: 0; font-size: 13px; line-height: 1.6; }
.code .c { color: var(--code-c); font-style: italic; }
.code .k { color: var(--code-kw); }
.code .s { color: var(--code-str); }
.code .n { color: var(--code-num); }

.aside { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin: 24px 0; box-shadow: var(--shadow); }
.aside p:last-child { margin-bottom: 0; }
.aside.warn { border-left: 3px solid var(--sun); }
.aside.warn .tag { color: var(--sun); }
.note { border-left: 2px solid var(--accent); padding: 2px 0 2px 16px; color: var(--muted); margin: 20px 0; font-size: .98em; }
.mono { font-family: "IBM Plex Mono", monospace; font-size: .82em; }

.pipe { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 24px 0; }
.pipe.five { grid-template-columns: repeat(5,1fr); }
.pipe.four { grid-template-columns: repeat(4,1fr); }
.pipe .card { background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 15px; }
.pipe .card .n { font-family: "IBM Plex Mono", monospace; font-size: 10.5px; color: var(--accent-ink); letter-spacing: .1em; }
.pipe .card h4 { font-family: "Fraunces", serif; font-weight: 600; font-size: 1.02rem; margin: 5px 0; }
.pipe .card p { margin: 0; font-size: .86em; color: var(--muted); }

.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; margin: 30px 0; box-shadow: var(--shadow); }
.toc .tag { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); display: block; margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 0; list-style: none; columns: 2; column-gap: 32px; font-size: .95rem; }
.toc li { break-inside: avoid; margin: 0 0 12px; }
.toc li > a { font-weight: 600; text-decoration: none; color: var(--ink); }
.toc li > a:hover { color: var(--accent-ink); }
.toc li span { display: block; color: var(--faint); font-size: .88em; line-height: 1.45; }
@media (max-width: 720px) { .toc ol { columns: 1; } }

.shot { margin: 26px 0; }
.shot img { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); background: #05070a; }
.shots2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 26px 0; }
.shots3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 26px 0; }
.shots2 img, .shots3 img { width: 100%; height: auto; display: block; border-radius: 10px; border: 1px solid var(--line); background: #05070a; }
.shots2 .lbl, .shots3 .lbl { font-family: "IBM Plex Mono", monospace; font-size: 11px; color: var(--faint); margin-top: 5px; display: block; }
@media (max-width: 720px) { .shots2, .shots3 { grid-template-columns: 1fr; } }

/* before/after slider */
.ba { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #05070a; aspect-ratio: 16/9; user-select: none; touch-action: pan-y; cursor: ew-resize; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .after { clip-path: inset(0 0 0 50%); }
.ba .bar { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; box-shadow: 0 0 6px rgba(0,0,0,.6); }
.ba .bar::after { content: "⇆"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); background: #fff; color: #111; font-size: 13px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; }
.ba .tagl, .ba .tagr { position: absolute; top: 10px; font-family: "IBM Plex Mono", monospace; font-size: 11.5px; color: #fff; background: rgba(0,0,0,.55); padding: 3px 8px; border-radius: 5px; }
.ba .tagl { left: 10px; } .ba .tagr { right: 10px; }

/* interactive demos */
.demo { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 26px 0; box-shadow: var(--shadow); }
.demo .dhead { font-family:"IBM Plex Mono",monospace; font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:var(--accent-ink); margin-bottom:12px; display:flex; align-items:center; gap:8px; }
.demo .dhead::before { content:"▶"; font-size:9px; }
.demo canvas { width:100%; height:auto; display:block; border-radius:8px; border:1px solid var(--line); background: var(--bg2); touch-action: none; }
.demo canvas.dark { background:#05070a; }
.panels { display:flex; gap:12px; flex-wrap:wrap; }
.panel { flex:1 1 0; min-width:220px; display:flex; flex-direction:column; gap:6px; }
.panel .plabel { font-family:"IBM Plex Mono",monospace; font-size:11px; color:var(--faint); }
.controls { display:flex; align-items:center; gap:10px 18px; flex-wrap:wrap; margin-top:14px; font-size:13px; color:var(--muted); }
.controls label { display:flex; align-items:center; gap:9px; }
.controls .cval { font-family:"IBM Plex Mono",monospace; color:var(--ink); min-width:52px; font-size:12.5px; }
.controls select { font: inherit; font-size: 13px; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 7px; padding: 4px 8px; }
.btn { font: inherit; font-size: 12.5px; padding: 5px 12px; cursor: pointer; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; }
.btn:hover, .btn.on { border-color: var(--accent); color: var(--accent-ink); }
.btn.on { background: var(--accent-soft); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input[type=range] { -webkit-appearance:none; appearance:none; height:4px; border-radius:2px; background:var(--line); outline:none; width:150px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance:none; width:16px; height:16px; border-radius:50%; background:var(--accent); cursor:pointer; border:2px solid var(--surface); }
input[type=range]::-moz-range-thumb { width:16px; height:16px; border-radius:50%; background:var(--accent); cursor:pointer; border:2px solid var(--surface); }
input[type=range]:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
input[type=checkbox] { accent-color: var(--accent); }
.readout { font-family:"IBM Plex Mono",monospace; font-size:12.5px; color:var(--muted); margin-top:12px; line-height:1.7; display:grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 2px 18px; }
.readout b { color:var(--ink); font-weight:500; }
.demo figcaption { margin-top:12px; }

table.data { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .9rem; }
table.data th, table.data td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); font-weight: 500; }
table.data td.num { font-family: "IBM Plex Mono", monospace; font-size: .85em; white-space: nowrap; }
.tablewrap { overflow-x: auto; }

.diagram { margin: 24px 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; box-shadow: var(--shadow); }
.diagram svg { width: 100%; height: auto; display: block; }
.diagram text { font-family: "IBM Plex Mono", monospace; fill: var(--muted); font-size: 12px; }
.diagram .ink { fill: var(--ink); }
.diagram .acc { fill: var(--accent-ink); }

.prose ol, .prose ul { margin: 0 0 1.1em; padding-left: 1.35em; }
.prose li { margin: 0 0 .5em; }
ol.mech { counter-reset: mech; list-style: none; padding-left: 0; margin: 20px 0; display:flex; flex-direction:column; gap:14px; }
/* Not a grid: the items hold mixed inline text, and each bare text run would become its own grid cell. */
ol.mech > li { position: relative; padding-left: 45px; margin: 0; }
ol.mech > li::before { counter-increment: mech; content: counter(mech); position: absolute; left: 0; top: 0; font-family: "IBM Plex Mono", monospace; font-size: 13px; color: var(--accent-ink); border: 1px solid var(--line); border-radius: 7px; width: 28px; height: 28px; display: grid; place-items: center; margin-top: 2px; }
ol.mech .h { font-weight: 600; color: var(--ink); }
.kv { list-style:none; margin: 14px 0; padding: 0; display:flex; flex-direction:column; gap:8px; }
.kv li { display:grid; grid-template-columns: 190px 1fr; gap:14px; font-size:.95em; margin: 0; }
.kv .k { font-family:"IBM Plex Mono",monospace; font-size:12.5px; color:var(--accent-ink); }
.kv .v { color:var(--muted); }
.refs ol { padding-left: 1.4em; margin: 12px 0 0; display: flex; flex-direction: column; gap: 10px; font-size: .92rem; color: var(--muted); }
.refs ol li::marker { color: var(--accent-ink); font-family: "IBM Plex Mono", monospace; font-size: .85em; }
.refs .refnote { display: block; color: var(--faint); font-size: .92em; }

footer { border-top: 1px solid var(--line); margin-top: 64px; padding: 38px 0 68px; color: var(--faint); font-size: 14px; }
footer p { margin: 0 0 6px; }

@media (max-width: 720px) {
  body { font-size: 17px; }
  .pipe, .pipe.five, .pipe.four { grid-template-columns: 1fr; }
  .eqline { font-size: 1.1rem; }
  .kv li { grid-template-columns: 1fr; gap: 2px; }
  .stage { aspect-ratio: 4/3; }
  .wrap, .wide { padding: 0 16px; }
  .topbar { padding: 10px 16px; }
}

/* ── Technology series additions ─────────────────────────────────────────── */
.crumbs { font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: .08em; color: var(--faint); margin: 0 0 18px; }
.crumbs a { color: var(--accent-ink); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.brand a { color: inherit; text-decoration: none; }

/* "At a glance" fact strip under the hero */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 26px 0 6px; }
.facts .f { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; }
.facts .f b { display: block; font-family: "IBM Plex Mono", monospace; font-size: 15px; color: var(--ink); font-weight: 600; }
.facts .f span { font-size: 12.5px; color: var(--muted); line-height: 1.4; display: block; margin-top: 2px; }

/* Source pointers: "where this lives in the code" */
.src { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--faint); margin: -6px 0 18px; }
.src a, .src code { color: var(--accent-ink); }
.src code { background: none; padding: 0; }

/* Ordered pass lists */
table.passes td:first-child { font-family: "IBM Plex Mono", monospace; font-size: .8em; color: var(--faint); width: 34px; }
table.passes td.pass { font-family: "IBM Plex Mono", monospace; font-size: .86em; color: var(--ink); white-space: nowrap; }
table.passes tr.group td { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); padding-top: 16px; border-bottom: 1px solid var(--line); }

/* Deep-dive cards on the index */
.dives { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin: 22px 0 10px; }
.dive { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
a.dive:hover { border-color: var(--accent); transform: translateY(-2px); }
.dive img { width: 100%; aspect-ratio: 16/8; object-fit: cover; display: block; background: #05070a; }
.dive .body { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.dive .n { font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.dive h3 { margin: 0; font-size: 1.2rem; }
.dive p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.5; }
.dive .tags { font-family: "IBM Plex Mono", monospace; font-size: 11px; color: var(--faint); margin-top: 4px; }
.dive.soon { opacity: .62; box-shadow: none; border-style: dashed; }
.dive.soon .n { color: var(--faint); }

/* Previous / next between deep dives */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 54px 0 0; }
.pager a { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; text-decoration: none; color: var(--ink); }
.pager a:hover { border-color: var(--accent); }
.pager .dir { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); display: block; }
.pager .next { text-align: right; grid-column: 2; }
@media (max-width: 720px) { .pager { grid-template-columns: 1fr; } .pager .next { grid-column: 1; } }

/* A diagram's SVG strokes/fills from the theme tokens */
.diagram .stroke { stroke: var(--muted); fill: none; }
.diagram .box { fill: var(--bg2); stroke: var(--line); }
.diagram .abox { fill: var(--accent-soft); stroke: var(--accent); }
.diagram .aline { stroke: var(--accent); fill: none; }

/* Long source paths and identifiers must wrap on phones */
.src, .prose p code, .prose li code, table.data td code { overflow-wrap: anywhere; }
.code .filelabel { flex-wrap: wrap; }
.code .filelabel > span:first-child { overflow-wrap: anywhere; min-width: 0; }
