/* Open Indus site. Look: fired steatite and baked brick, set like an excavation report.
   Warm steatite-white paper (kiln-dark in dark mode), lapis-blue links, carnelian only for motifs.
   Two motifs, used sparingly: brick courses in the 1:2:4 Indus ratio as section dividers, carnelian beads as list markers. */

:root {
  --paper: #F4F0E7; --surface: #FAF7F0; --plate: #E7E1D4; --ink: #1E1A16; --muted: #594F45; --faint: #675D52;
  --line: #DED6C7; --line-strong: #C3B9A7; --rule: #8A7F70;
  --accent: #2A4D84; --accent-ink: #223F6D; --accent-soft: #DCE3EE; --on-accent: #FFFFFF;
  --chance: #857A6D; --clay: #A9482C; --brick: #D2BCA4;
  --img-edge: rgb(0 0 0 / 0.1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --warn: #7E5300; --warn-soft: #F0E3C8;
  /* The project's typeface, two cuts (site/font/, copied to assets/fonts/ by build.py). No external font requests.
     --oi-display: drawn capitals and figures. ONLY for text set in capitals (caps titles, labels, kickers, big figures).
     --oi-text: Instrument Sans shapes with our spacing. Everything in mixed case. --display and --body both point at Text,
     so any heading or label not in capitals can never pick up the Display capitals. */
  --oi-display: "Open Indus Display", "Open Indus Text", system-ui, sans-serif;
  --oi-text: "Open Indus Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: var(--oi-text);
  --body: var(--oi-text);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --head-h: 68px;
  --section: clamp(44px, 5vw, 72px); /* section rhythm: the same space above and below every divider */
  /* Optical tracking, defined once and resolved against each element's own size (em = that element's font size).
     Mixed case in Open Indus Text, which already carries +12 units (0.012em) of built-in spacing: 0.4px - 0.018em gives
     +0.013em at 13px, +0.007em at 16px, +0.004em at 18px, +0.002em at 20px, 0 at 22px, -0.006em at 32px, -0.013em at 80px, floored at -0.015em.
     Caps titles: 1.4px clamped to 0.02-0.04em gives +0.04em at 28-35px, +0.03em at 48px, +0.02em at 64px+.
     Small all-caps labels: +0.065em. Word spacing opens slightly at body sizes and falls to 0 at headline sizes. */
  --track: clamp(-0.015em, calc(0.4px - 0.018em), 0.02em); /* by size: smaller text gets a little more, 0 at 22px, tighter above */
  --track-caps: clamp(0.02em, 1.4px, 0.04em);
  --track-label: 0.065em;
  --word: clamp(0px, calc(1.2px - 0.025em), 0.06em);
  /* the carved seal and the pressed sign band */
  --seal-side-hi: #DCD0BD; --seal-side-lo: #A38E74; --seal-shadow: rgb(70 45 25 / 0.42); --seal-dim: 0;
  --field-op: 0.85; --press-bg: #E9E2D4; --press-hi: rgb(255 255 255 / 0.75); --press-lo: rgb(70 45 25 / 0.2); --band-op: 1;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #14110E; --surface: #1B1713; --plate: #0C0A08; --ink: #EDE6DA; --muted: #ADA292; --faint: #8F8475;
    --line: #2D2721; --line-strong: #433A31; --rule: #706657;
    --accent: #93B2E2; --accent-ink: #ADC5EC; --accent-soft: #1B2436; --on-accent: #0D1625;
    --chance: #766B5E; --clay: #D9805F; --brick: #3D3027; --img-edge: rgb(255 255 255 / 0.1);
    --warn: #E2B05A; --warn-soft: #382B12;
    --seal-side-hi: #C2B198; --seal-side-lo: #6F5D4A; --seal-shadow: rgb(0 0 0 / 0.75); --seal-dim: 0.1;
    --field-op: 0.5; --press-bg: #0F0C0A; --press-hi: rgb(255 255 255 / 0.06); --press-lo: rgb(0 0 0 / 0.55); --band-op: 0.55;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #14110E; --surface: #1B1713; --plate: #0C0A08; --ink: #EDE6DA; --muted: #ADA292; --faint: #8F8475;
  --line: #2D2721; --line-strong: #433A31; --rule: #706657;
  --accent: #93B2E2; --accent-ink: #ADC5EC; --accent-soft: #1B2436; --on-accent: #0D1625;
  --chance: #766B5E; --clay: #D9805F; --brick: #3D3027; --img-edge: rgb(255 255 255 / 0.1);
  --warn: #E2B05A; --warn-soft: #382B12;
  --seal-side-hi: #C2B198; --seal-side-lo: #6F5D4A; --seal-shadow: rgb(0 0 0 / 0.75); --seal-dim: 0.1;
  --field-op: 0.5; --press-bg: #0F0C0A; --press-hi: rgb(255 255 255 / 0.06); --press-lo: rgb(0 0 0 / 0.55); --band-op: 0.55;
  color-scheme: dark;
}

@font-face { font-family: "Open Indus Display"; src: url("fonts/OpenIndus-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Indus Display"; src: url("fonts/OpenIndus-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Indus Text"; src: url("fonts/OpenIndusText-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Indus Text"; src: url("fonts/OpenIndusText-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html { scroll-padding-top: calc(var(--head-h) + 20px); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; }
a { color: var(--accent-ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
code { font-family: var(--mono); font-size: 0.86em; background: var(--surface); border: 1px solid var(--line); padding: 0.05em 0.35em; border-radius: 3px; overflow-wrap: anywhere; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(40px, 6.6vw, 88px); line-height: 1.02; font-weight: 700; font-stretch: 112%; letter-spacing: -0.02em; }
h2 { font-size: clamp(25px, 3.1vw, 36px); line-height: 1.1; font-weight: 700; font-stretch: 108%; letter-spacing: -0.012em; }
h3 { font-size: 19px; line-height: 1.3; font-weight: 650; font-stretch: 104%; margin-top: 12px; }
p { margin: 0; }
p, li, dd, figcaption { text-wrap: pretty; }
.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
main { display: block; outline: none; }

/* header */
.site-head { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line); background: var(--paper); }
.head-row { display: flex; align-items: center; gap: 12px 28px; min-height: var(--head-h); flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand .mark { width: 42px; height: 42px; flex: none; }
.brand .wordmark { height: 32px; width: auto; flex: none; stroke-width: 13; }
.brand-name { font-family: var(--display); font-weight: 700; font-stretch: 118%; font-size: 19px; letter-spacing: 0.04em; text-transform: uppercase; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 17px; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; display: inline-flex; align-items: center; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--clay); }
.ext-ic { margin-left: 3px; }
.theme, .menu-btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 15px; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer; min-height: 40px; }
.theme:hover, .menu-btn:hover { color: var(--ink); border-color: var(--line-strong); }
.menu-btn { display: none; color: var(--ink); border-color: var(--line-strong); }
.menu-btn path { transition: transform 160ms var(--ease-out), opacity 120ms; transform-origin: 10px 10px; }
.menu-btn[aria-expanded="true"] .m1 { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .m2 { opacity: 0; }
.menu-btn[aria-expanded="true"] .m3 { transform: translateY(-4px) rotate(-45deg); }

/* footer */
.site-foot { border-top: 1px solid var(--line); margin-top: var(--section); padding: 32px 0 48px; font-size: 14.5px; color: var(--muted); }
.foot-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px 48px; }
.foot-brand { display: flex; gap: 12px; align-items: flex-start; }
.foot-brand .mark { width: 40px; height: 40px; flex: none; color: var(--ink); }
.foot-brand b { font-family: var(--display); font-stretch: 118%; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink); }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.foot-links a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.foot-links { display: flex; flex-direction: column; gap: 2px; }
.foot-links a { padding: 3px 0; }
.foot-h { white-space: nowrap; font-family: var(--body); font-variant-numeric: tabular-nums; font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.foot-note { grid-column: 1 / -1; font-size: 13px; border-top: 1px solid var(--line); padding-top: 14px; }

/* hero */
.hero, .page-head { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 32px 56px; align-items: center; padding-top: clamp(32px, 6vw, 72px); padding-bottom: 0; }
.page-head.one { grid-template-columns: minmax(0, 1fr); }
.page-head h1 { font-size: clamp(32px, 4.4vw, 54px); }
.hero-text { display: flex; flex-direction: column; gap: 20px; min-width: 0; max-width: 760px; }
.kicker { font-family: var(--body); font-variant-numeric: tabular-nums; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.state { font-size: clamp(19px, 1.9vw, 24px); line-height: 1.4; color: var(--ink); font-weight: 500; max-width: 46ch; }
.hero .lede { font-size: clamp(16px, 1.3vw, 18px); }
.lede b { color: var(--ink); font-weight: 600; }
.foot-goal { color: var(--ink); font-weight: 600; }
/* Hero object: a carved steatite seal (build.py seal_object; site.js turns it). Thickness = 15 stacked slices of the
   same rounded square as the face, so the sides meet the front edge exactly and the corners stay closed at any tilt. */
.stage { position: relative; display: grid; place-items: center; min-height: clamp(400px, 38vw, 520px); min-width: 0; }
.field { position: absolute; inset: -24px -48px 0 -16px; opacity: var(--field-op); pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side at 55% 50%, #000 35%, transparent 100%); mask-image: radial-gradient(closest-side at 55% 50%, #000 35%, transparent 100%); }
.field svg { width: 100%; height: 100%; display: block; }
@media (max-width: 760px) { .field { inset: -24px 0 0 -16px; } }  /* no sideways scroll on phones */
.seal-fig { margin: 0; position: relative; display: flex; flex-direction: column; align-items: center; gap: 30px; }
.scene { position: relative; perspective: 1400px; width: min(340px, 70vw); aspect-ratio: 1; }
.seal { --depth: 34px; position: absolute; inset: 0; transform-style: preserve-3d; transform-origin: 50% 50% calc(var(--depth) / -2);
  transform: rotateX(var(--rx, 12deg)) rotateY(var(--ry, -18deg)); }
.seal .sl { position: absolute; inset: 0; border-radius: 7%; transform: translateZ(calc(var(--z) * -1));
  background: linear-gradient(rgb(40 25 12 / var(--a)), rgb(40 25 12 / var(--a))), linear-gradient(135deg, var(--seal-side-hi) 30%, var(--seal-side-lo) 75%); }
.seal .face { position: absolute; inset: 0; border-radius: 7%; overflow: hidden; transform: translateZ(0.01px); background: #E9DFCD; }
.seal .face svg { display: block; width: 100%; height: 100%; }
.seal .face::after { content: ""; position: absolute; inset: 0; background: rgb(20 12 6 / var(--seal-dim)); pointer-events: none; }
.seal .rim { position: absolute; inset: 0; border-radius: 7%; transform: translateZ(0.6px); pointer-events: none;
  box-shadow: inset 3px 3px 1px rgb(255 255 255 / 0.55), inset 6px 6px 10px rgb(255 255 255 / 0.2), inset -3px -3px 2px rgb(90 62 40 / 0.35), inset -8px -8px 14px rgb(90 62 40 / 0.16); }
.contact { position: absolute; left: 4%; right: -2%; bottom: -13%; height: 18%; border-radius: 50%; display: block;
  background: radial-gradient(closest-side, var(--seal-shadow), transparent); filter: blur(12px); transform: translateX(var(--sx, 14px)); }
.seal-note { font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .stage { min-height: 340px; } .scene { width: min(250px, 66vw); } .seal { --depth: 26px; } }

/* Section divider: a recessed band with signs pressed into it */
.band { margin-top: var(--section); }
.band-in { height: 60px; border-radius: 0; background: var(--press-bg); position: relative; overflow: hidden;
  box-shadow: inset 2px 3px 6px var(--press-lo), inset -1px -1px 0 var(--press-hi); }
.band-in svg { position: absolute; top: 0; left: 0; height: 100%; width: auto; aspect-ratio: 5824 / 64; max-width: none; opacity: var(--band-op); }
@keyframes band-run { to { transform: translateX(-25%); } }
@media (prefers-reduced-motion: no-preference) { .band-in svg { animation: band-run 90s linear infinite; will-change: transform; } }
.band + .block::before { display: none; }  /* the sign strip is the divider; .block padding-top gives the space below it */
@media (max-width: 760px) { .band-in { height: 44px; } }

/* Goal: ten slots, one per sign that needs a tested sound value */
.goal-fig { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.slots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; max-width: 520px; }
.slot { aspect-ratio: 1; border: 1px solid var(--rule); border-radius: 3px; }
.slot.on { background: var(--accent); border-color: var(--accent); }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--muted); max-width: 60ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 20px; border-radius: 4px; border: 1px solid var(--ink); color: var(--ink); text-decoration: none; font-weight: 600; }
.btn, .theme, .filters button { transition: transform 160ms var(--ease-out); }
.btn:active, .theme:active, .filters button:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--surface); } }
.btn.primary { background: var(--ink); color: var(--paper); }
@media (hover: hover) and (pointer: fine) { .btn.primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--paper); } }
.jump a { padding: 6px 0; }
.jump { display: flex; flex-wrap: wrap; gap: 0 18px; font-size: 15px; border-top: 1px solid var(--line); padding-top: 14px; }

/* plates: photographs from the 1930s reports */
.plate { margin: 0; display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: calc(var(--w) + 32px); min-width: 0; }
.plate-ground { background: var(--plate); padding: 16px; border-radius: 2px; }
.plate img { display: block; width: 100%; height: auto; max-width: var(--w); margin: 0 auto; filter: grayscale(1); outline: 1px solid var(--img-edge); outline-offset: -1px; }
.hero .plate-ground { position: relative; }
.hero .plate-ground::before, .hero .plate-ground::after { content: ""; position: absolute; width: 14px; height: 14px; border: 0 solid var(--rule); pointer-events: none; }
.hero .plate-ground::before { top: -7px; left: -7px; border-top-width: 1px; border-left-width: 1px; }
.hero .plate-ground::after { bottom: -7px; right: -7px; border-bottom-width: 1px; border-right-width: 1px; }
:root[data-theme="dark"] .plate img { filter: grayscale(1) brightness(0.86) contrast(1.06); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .plate img { filter: grayscale(1) brightness(0.86) contrast(1.06); } }
figcaption { font-size: 13px; line-height: 1.45; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
figcaption .cat { font-family: var(--body); font-variant-numeric: tabular-nums; font-size: 12px; letter-spacing: 0.02em; color: var(--ink); }
.hero .plate { justify-self: end; }
.figs { display: flex; flex-direction: column; gap: 20px; min-width: 0; align-items: flex-start; }
.head-figs { align-items: flex-end; }

/* ladder */
.ladder-fig { margin: 8px 0 0; border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.claim { font-family: var(--display); font-weight: 650; font-stretch: 104%; font-size: 17px; color: var(--ink); }
.ladder { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; align-items: end; border-bottom: 2px solid var(--ink); max-width: 880px; }
.rung { border: 1.5px solid var(--rule); border-bottom: 0; border-radius: 3px 3px 0 0; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13.5px; line-height: 1.3; }
.rung b { font-family: var(--display); font-stretch: 106%; font-size: 15.5px; }
.rung span { color: var(--muted); }
.rung.done { background: var(--accent); border-color: var(--accent); }
.rung.done b, .rung.done span { color: var(--on-accent); }
.rung.part { background: linear-gradient(var(--paper), var(--paper)) top / 100% 62% no-repeat, repeating-linear-gradient(135deg, var(--accent) 0 2px, transparent 2px 6px); border-color: var(--accent); }
.r1 { height: 62px; } .r2 { height: 88px; } .r3 { height: 114px; } .r4 { height: 140px; } .r5 { height: 166px; }
.ladder-key, .legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; color: var(--muted); }
.key { display: inline-block; width: 14px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }
.key.obs { background: var(--accent); }
.key.half { background: repeating-linear-gradient(135deg, var(--accent) 0 2px, transparent 2px 4px); border: 1px solid var(--accent); }
.key.open { border: 1.5px solid var(--rule); }
.key.chance { background: repeating-linear-gradient(135deg, var(--chance) 0 2px, transparent 2px 4px); border: 1px solid var(--chance); }

/* sections with a catalogue rail */
/* Section rhythm, one token: every section is [divider][--section][rail + content], and starts --section below the end of the
   previous one. So the divider sits exactly midway, and nothing at the edges of .content may add margin or padding of its own. */
.block { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 0 40px; padding-top: var(--section); padding-bottom: 0; }
.content > :first-child { margin-top: 0; }
.content > :last-child, .content > :last-child > :last-child, .split > * > :last-child { margin-bottom: 0; }
.flow > .step:last-child { padding-bottom: 0; }
/* Brick course: one row of stretchers (4 units long) over one row of headers (2 units), each 1 unit high, as in Indus baked brick. */
.block::before { content: ""; grid-column: 1 / -1; height: 13px; margin-bottom: var(--section); background: var(--brick);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='13'%3E%3Cpath d='M0 0h23v6H0zM24 0h23v6H24zM0 7h11v6H0zM12 7h11v6H12zM24 7h11v6H24zM36 7h11v6H36z'/%3E%3C/svg%3E") 0 0 / 48px 13px repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='13'%3E%3Cpath d='M0 0h23v6H0zM24 0h23v6H24zM0 7h11v6H0zM12 7h11v6H12zM24 7h11v6H24zM36 7h11v6H36z'/%3E%3C/svg%3E") 0 0 / 48px 13px repeat-x; }
.block + .block { border-top: 0; }
.rail { font-family: var(--body); font-variant-numeric: tabular-nums; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding-top: 0; align-self: start; display: flex; flex-direction: column; gap: 2px; }
.rail span { line-height: 1; font-size: 28px; font-family: var(--display); font-stretch: 112%; font-weight: 700; color: var(--ink); letter-spacing: 0; }
.content { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.intro { color: var(--muted); max-width: 68ch; }
.note { font-size: 15px; color: var(--muted); max-width: 72ch; }
.split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px 44px; align-items: start; }
.split.narrow-fig { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }

/* method rules */
.rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: r; border-top: 1px solid var(--line); }
.rules li { counter-increment: r; padding: 16px 20px 16px 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 15.5px; }
.rules li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.rules li::before { content: counter(r, decimal-leading-zero); font-family: var(--body); font-variant-numeric: tabular-nums; font-size: 12.5px; color: var(--muted); }
.rules b { font-family: var(--display); font-stretch: 104%; font-size: 17px; line-height: 1.25; }
.rules span { color: var(--muted); }
.rules.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rules.compact li:nth-child(3n+1) { padding-left: 0; border-left: 0; }
.rules.compact li:nth-child(n+4) { border-top: 1px solid var(--line); }
.figures { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }
.figures a { color: inherit; text-decoration: none; }
.figures a:hover span, .figures a:hover { color: var(--ink); }
.figures b { font-family: var(--display); font-stretch: 108%; font-size: 24px; color: var(--ink); margin-right: 6px; font-variant-numeric: tabular-nums; }

/* charts: bars to scale from zero */
.chart { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.pair { display: flex; flex-direction: column; gap: 5px; }
.pl { font-weight: 600; font-size: 15.5px; line-height: 1.35; }
.bar { display: grid; grid-template-columns: 124px minmax(0, 1fr) 76px; gap: 12px; align-items: center; font-size: 13.5px; color: var(--muted); }
.bar .bl { min-width: 0; }
.bar .bl em { font-style: normal; font-family: var(--body); font-variant-numeric: tabular-nums; font-size: 11.5px; color: var(--accent-ink); white-space: nowrap; }
.track { height: 12px; background: transparent; border-left: 1.5px solid var(--ink); position: relative; display: block; }
.track::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; border-left: 1px dashed var(--line-strong); pointer-events: none; }
.fill { display: block; height: 100%; background: var(--accent); position: relative; z-index: 1; min-width: 1.5px; }
.fill.chance { background: repeating-linear-gradient(135deg, var(--chance) 0 2px, transparent 2px 4px); border: 1px solid var(--chance); }
.bv { font-family: var(--body); font-variant-numeric: tabular-nums; font-size: 13px; color: var(--ink); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.axis { display: grid; grid-template-columns: 124px minmax(0, 1fr) 76px; column-gap: 12px; font-family: var(--body); font-variant-numeric: tabular-nums; font-size: 11.5px; color: var(--faint); position: relative; }
.axis span:nth-child(1) { grid-column: 2; grid-row: 1; justify-self: start; }
.axis span:nth-child(2) { grid-column: 2; grid-row: 1; justify-self: center; }
.axis span:nth-child(3) { grid-column: 2; grid-row: 1; justify-self: end; }
.minis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 44px; }
.mini { margin: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mini .bar, .mini .axis { grid-template-columns: 92px minmax(0, 1fr) 48px; }

/* inline sign glyphs */
.sig { display: inline-block; width: 1.5em; height: 1.5em; vertical-align: -0.42em; background: currentColor; -webkit-mask: var(--g) center / contain no-repeat; mask: var(--g) center / contain no-repeat; }

/* lists */
.closed, .groups, .levels { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.closed > div, .groups > div, .levels > div { border-top: 1px solid var(--line); padding: 12px 0; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.closed dt, .groups dt { font-weight: 650; }
.closed dd, .groups dd, .levels dd { margin: 0; color: var(--muted); font-size: 15.5px; }
.levels { grid-template-columns: minmax(0, 1fr); }
.levels > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.caveats, .ticks { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: 15.5px; max-width: 70ch; }
.ticks { list-style: none; padding-left: 0; }
.ticks li { position: relative; padding-left: 22px; }
/* Carnelian bead: a short barrel with a drilled hole, lit from the upper left. */
.ticks li::before { content: ""; position: absolute; left: 1px; top: 0.62em; width: 11px; height: 7px; border-radius: 3.5px;
  background: radial-gradient(circle at 50% 50%, var(--paper) 0 1px, transparent 1.4px), linear-gradient(180deg, color-mix(in oklab, var(--clay) 70%, white) 0, var(--clay) 55%, color-mix(in oklab, var(--clay) 75%, black) 100%); }
.caveats li::marker { color: var(--faint); }
.plainlist { list-style: none; margin: 0; padding: 0; }
.plainlist li { border-top: 1px solid var(--line); padding: 14px 0; display: flex; flex-direction: column; gap: 4px; }
.plainlist .pt { font-weight: 650; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.plainlist p { color: var(--muted); font-size: 15.5px; max-width: 72ch; }
.plainlist .why { font-size: 14px; color: var(--faint); }
.asks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }

/* tags */
.tag, .lvl { font-family: var(--body); font-variant-numeric: tabular-nums; font-size: 11.5px; letter-spacing: 0.03em; text-transform: uppercase; padding: 2px 8px; border-radius: 3px; white-space: nowrap; border: 1px solid var(--line-strong); color: var(--muted); font-weight: 500; line-height: 1.6; display: inline-block; }
.tag.good, .tag.ok, .lvl.strong { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.lvl.moderate, .tag.run, .tag.next { border-color: var(--accent); color: var(--accent-ink); }
.tag.weak, .tag.fail, .lvl.weak { border-color: var(--warn); color: var(--warn); }
.tag.out { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.tag.wait, .lvl.exploratory, .lvl.descriptive { border-style: dashed; }
.legend-row { list-style: none; margin: 0; padding: 0; font-size: 14.5px; color: var(--muted); display: flex; flex-direction: column; gap: 8px; }
.legend-row li { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }

/* plan flow */
.flow { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 16px; padding-bottom: 20px; position: relative; }
.step:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: var(--line); }
.dot { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--body); font-variant-numeric: tabular-nums; font-size: 13px; border: 1.5px solid var(--rule); background: var(--paper); color: var(--muted); }
.step.ok .dot { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.step.fail .dot { border-color: var(--warn); color: var(--warn); }
.step.next .dot { border: 2px solid var(--accent); color: var(--accent-ink); }
.flow.plain .dot { border-color: var(--ink); color: var(--ink); }
.step .sh { font-weight: 650; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; padding-top: 3px; }
.step p { color: var(--muted); font-size: 15.5px; max-width: 64ch; }
.odds { border-top: 2px solid var(--ink); padding-top: 14px; max-width: 72ch; }

/* findings */
.findings { list-style: none; margin: 0; padding: 0; }
.finding { border-top: 1px solid var(--line); display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; padding: 10px 0; }
.finding .num, .route .rn, .sid { font-family: var(--body); font-variant-numeric: tabular-nums; font-size: 12.5px; color: var(--muted); }
.finding .ft { font-weight: 600; min-width: 0; }
.finding details { grid-column: 1 / -1; }
.finding:has(details) { display: block; padding: 0; }
.finding summary { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; padding: 12px 0; cursor: pointer; list-style: none; }
.fbody { padding: 0 0 18px 46px; display: flex; flex-direction: column; gap: 8px; max-width: 80ch; }
.fbody .nums { font-family: var(--mono); font-size: 13.5px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); padding: 8px 10px; border-radius: 3px; }
.caveat { color: var(--warn); font-size: 15px; }
.where { font-size: 14.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; }
a.file { font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; }
summary::-webkit-details-marker { display: none; }
summary { list-style: none; }
details > summary { position: relative; }
.finding summary::after, .group summary::after, .starter summary::after, .more > summary::before {
  content: ""; width: 8px; height: 8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); align-self: center; justify-self: end; margin-right: 4px; transition: transform 200ms var(--ease-out); }
details[open] > summary::after { transform: rotate(225deg); }
.finding summary { grid-template-columns: 34px minmax(0, 1fr) auto 16px; }
.more { border-top: 1px solid var(--line); }
.more > summary { cursor: pointer; padding: 12px 0; font-weight: 600; color: var(--accent-ink); display: flex; align-items: center; gap: 12px; }
.more > summary::before { justify-self: start; margin: 0 2px; transform: rotate(-45deg); }
.more[open] > summary::before { transform: rotate(45deg); }
.more > .findings, .more > .rev { margin-bottom: 14px; }

/* closed routes */
.group { border-top: 1px solid var(--line); }
.group > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto 16px; gap: 12px; align-items: center; padding: 14px 0; cursor: pointer; }
.gt { font-family: var(--display); font-stretch: 104%; font-weight: 650; font-size: 18px; }
.gc { font-family: var(--body); font-variant-numeric: tabular-nums; font-size: 12.5px; color: var(--muted); }
.routes { list-style: none; margin: 0 0 16px; padding: 0; }
.route { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; padding: 10px 0 10px 16px; border-top: 1px dashed var(--line); align-items: baseline; }
.rt { font-weight: 600; min-width: 0; }
.rt .rn { margin-right: 10px; }
.rd { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; color: var(--muted); }
.rev { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 15.5px; color: var(--muted); }
.rev b { color: var(--ink); }

/* tasks */
.starters { list-style: none; margin: 0; padding: 0; }
.starters + .starters { margin-top: -18px; }
.starter { border-top: 1px solid var(--line); }
.starter summary, .starter .row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 16px; gap: 4px 12px; align-items: baseline; padding: 12px 0; cursor: pointer; }
.starter .row { grid-template-columns: 40px minmax(0, 1fr) auto; cursor: default; padding-bottom: 2px; }
.st { font-weight: 600; min-width: 0; }
.sw { font-size: 13px; color: var(--muted); text-align: right; }
.sb { padding: 0 0 16px 52px; display: flex; flex-direction: column; gap: 8px; max-width: 80ch; font-size: 15.5px; }
.sb p { color: var(--muted); }
.sb b { color: var(--ink); font-weight: 600; }
.starter .sub { padding: 0 0 12px 52px; color: var(--muted); font-size: 14.5px; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 48px; }
.steps-small { margin: 8px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 15.5px; }

/* tracker */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stat { padding: 14px 16px 14px 0; display: flex; flex-direction: column; gap: 2px; }
.stat + .stat { padding-left: 16px; border-left: 1px solid var(--line); }
.stat b { font-family: var(--display); font-stretch: 108%; font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 14px; color: var(--muted); }
.ms { display: grid; grid-template-columns: minmax(0, 1fr) minmax(80px, 260px) 64px; gap: 8px 14px; align-items: center; font-size: 15px; max-width: 760px; }
.ms .mtrack { height: 10px; border-left: 1.5px solid var(--ink); display: block; background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 100%); }
.ms .mfill { height: 100%; background: var(--accent); display: block; }
.ms .n { font-family: var(--body); font-variant-numeric: tabular-nums; font-size: 13px; text-align: right; white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { font: inherit; font-size: 14px; min-height: 36px; padding: 5px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tasks { display: flex; flex-direction: column; }
.task { border-top: 1px solid var(--line); }
.task summary { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 8px 12px; align-items: baseline; padding: 12px 0; cursor: pointer; }
.task .id { font-family: var(--body); font-variant-numeric: tabular-nums; font-size: 12.5px; color: var(--muted); }
.task .t { min-width: 0; }
.task .more-t { font-size: 15px; color: var(--muted); padding: 0 0 14px 52px; max-width: 76ch; display: flex; flex-direction: column; gap: 6px; }

@media (max-width: 960px) {
  .block { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .rail { flex-direction: row; align-items: baseline; gap: 12px; padding-bottom: 6px; }
  .rail span { font-size: 20px; }
  .content { padding-top: 6px; }
  .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rules li:nth-child(3) { padding-left: 0; border-left: 0; }
  .rules li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .rules.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rules.compact li { padding-left: 20px; border-left: 1px solid var(--line); border-top: 0; }
  .rules.compact li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .rules.compact li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .hero, .page-head { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 28px; }
  .hero .plate, .head-figs .plate { justify-self: start; max-width: min(calc(var(--w) + 32px), 300px); }
  .head-figs { align-items: flex-start; }
  .split, .split.narrow-fig, .minis, .closed, .groups, .asks, .two-col, .foot-row { grid-template-columns: minmax(0, 1fr); }
  .figs { flex-direction: row; flex-wrap: wrap; }
  .figs .plate { max-width: min(calc(var(--w) + 32px), 100%); }
  .rules, .rules.compact { grid-template-columns: minmax(0, 1fr); }
  .rules li, .rules li + li, .rules.compact li, .rules.compact li:nth-child(odd) { padding: 14px 0; border-left: 0; border-top: 1px solid var(--line); }
  .rules li:first-child { border-top: 0; }
  .bar, .axis { grid-template-columns: 96px minmax(0, 1fr) 64px; gap: 8px; }
  .mini .bar, .mini .axis { grid-template-columns: 84px minmax(0, 1fr) 44px; }
  .ladder { gap: 3px; }
  .rung { padding: 6px 5px; font-size: 11px; }
  .rung b { font-size: 12px; overflow-wrap: anywhere; }
  .rung span { display: none; }
  .r1 { height: 50px; } .r2 { height: 76px; } .r3 { height: 98px; } .r4 { height: 120px; } .r5 { height: 142px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ms { grid-template-columns: minmax(0, 1fr) 64px 56px; }
  .fbody, .sb, .starter .sub, .task .more-t { padding-left: 0; }
  .levels > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .sw { display: none; }
  .starter summary { grid-template-columns: 34px minmax(0, 1fr) 16px; }
  .starter .row { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .finding summary { grid-template-columns: 28px minmax(0, 1fr) 16px; }
  .finding summary .lvl { grid-column: 2; grid-row: 2; justify-self: start; }
  .finding summary::after { grid-column: 3; grid-row: 1; }
  :root { --head-h: 60px; }
  .brand .mark { width: 36px; height: 36px; }
  .brand .wordmark { height: 28px; }
  .theme { padding: 6px 10px; }
  .theme #theme-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .route { padding-left: 0; }
}
/* Compact header: below 900px the page links fold into a menu (without JS they wrap under the brand instead). */
@media (max-width: 900px) {
  .head-row { gap: 6px 8px; flex-wrap: nowrap; }
  .site-nav ul { gap: 2px 16px; font-size: 16px; }
  html:not(.js) .head-row { flex-wrap: wrap; }
  html:not(.js) .site-nav { order: 3; width: 100%; }
  .js .menu-btn { display: inline-flex; }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line-strong);
    box-shadow: 0 14px 24px -16px rgb(0 0 0 / 0.35); padding: 4px max(var(--gutter), env(safe-area-inset-left, 0px)) 14px; max-height: calc(100dvh - var(--head-h)); overflow-y: auto; }
  .js .site-head.open .site-nav { display: block; }
  .js .site-nav ul { flex-direction: column; gap: 0; font-size: 19px; }
  .js .site-nav li + li { border-top: 1px solid var(--line); }
  .js .site-nav a { display: flex; min-height: 50px; padding: 12px 0; border-bottom: 0; }
  .js .site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--clay); text-decoration-thickness: 2px; text-underline-offset: 6px; }
}
/* Motion: opt-in only. Disclosure bodies settle in; the landing hero rises once on load. */
@media (prefers-reduced-motion: no-preference) {
  details[open] > :not(summary) { transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
  @starting-style { details[open] > :not(summary) { opacity: 0; transform: translateY(-4px); } }
  .hero .hero-text > *, .hero .stage { animation: rise 320ms var(--ease-out) both; }
  .hero .hero-text > :nth-child(2) { animation-delay: 50ms; }
  .hero .hero-text > :nth-child(3) { animation-delay: 100ms; }
  .hero .hero-text > :nth-child(4) { animation-delay: 150ms; }
  .hero .hero-text > :nth-child(5) { animation-delay: 200ms; }
  .hero .stage { animation-delay: 100ms; }
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@media (forced-colors: active) {
  .fill, .mfill, .rung.done, .key.obs, .sig { forced-color-adjust: none; background: CanvasText; }
  .fill.chance, .key.chance, .rung.part, .key.half { forced-color-adjust: none; background: repeating-linear-gradient(135deg, CanvasText 0 2px, Canvas 2px 5px); }
  .track, .ms .mtrack { border-color: CanvasText; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .theme, .filters button, summary::after, summary::before, .menu-btn path { transition: none; }
  .btn:active, .theme:active, .filters button:active { transform: none; }
  details[open] > :not(summary) { transition: opacity 150ms ease; }
  @starting-style { details[open] > :not(summary) { opacity: 0; } }
}

/* ---------------------------------------------------------------- Open Indus Display
   Landing page (body.oi-page), the shared header and footer, and the Resources specimen. Titles are set in capitals with
   text-transform, so the source text stays in sentence case for screen readers and copying. */
:where(body) :where(*:not(code, pre, code *)) { letter-spacing: var(--track); word-spacing: var(--word); }
.oi-page { font-size: 19px; line-height: 1.6; }
.oi-page h1, .oi-page h2 { font-family: var(--oi-display); text-transform: uppercase; font-weight: 700; letter-spacing: var(--track-caps); }
.oi-page h1 { font-size: clamp(36px, 5.6vw, 80px); line-height: 1.04; }
.oi-page h2 { font-size: clamp(24px, 2.7vw, 34px); line-height: 1.08; }
.oi-page h3 { font-size: 21px; font-weight: 700; }
.oi-page :is(.kicker, .rail, .tag, .lvl), .site-foot .foot-h { letter-spacing: var(--track-label); }
/* Everything set in capitals takes the Display cut, on every page */
:is(.kicker, .rail, .rail span, .tag, .lvl, .foot-h, .brand-name, .foot-brand b, .spec-name, .spec-set, .spec-cap, .figures b, .stat b) { font-family: var(--oi-display); }
.oi-page .rail span { letter-spacing: 0; }
.oi-page .state { font-size: clamp(21px, 2vw, 26px); line-height: 1.35; max-width: 40ch; }
.oi-page .hero .lede { font-size: clamp(18px, 1.4vw, 20px); line-height: 1.55; }
.oi-page :is(.intro, .note, .caveats, .ticks, .step p, .plainlist p, .closed dd, .groups dd, .rules li, .figures, .odds, .starter .sub) { font-size: 18px; line-height: 1.58; }
.oi-page .rules b, .oi-page .gt, .oi-page .pl { font-size: 19px; }
.oi-page .btn { font-size: 18px; font-weight: 700; }
.site-foot { font-size: 16px; }
.site-foot .foot-note { font-size: 14.5px; }
@media (max-width: 760px) {
  .oi-page { font-size: 18px; }
  .oi-page :is(.intro, .note, .caveats, .ticks, .step p, .plainlist p, .closed dd, .groups dd, .rules li, .figures, .odds, .starter .sub) { font-size: 17px; }
}

/* ---------------------------------------------------------------- Resources */
.spec { display: flex; flex-direction: column; gap: 18px; padding: 28px 0 32px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 8px 0 28px; color: var(--ink); }
.spec-name { font-weight: 700; text-transform: uppercase; font-size: clamp(56px, 11vw, 148px); line-height: 0.98; letter-spacing: var(--track-caps); }
.spec-head { font-size: clamp(28px, 4.2vw, 52px); line-height: 1.1; }
.spec-set { font-size: clamp(26px, 4vw, 48px); line-height: 1.15; letter-spacing: var(--track-caps); overflow-wrap: anywhere; }
.spec-fig { font-weight: 700; }
.spec-text { font-size: 20px; line-height: 1.55; max-width: 34em; }
.spec-cap { font-size: 14px; color: var(--muted); letter-spacing: var(--track-label); text-transform: uppercase; }
.res-body { display: flex; flex-direction: column; gap: 14px; max-width: 68ch; }
.res-body h3 { margin-top: 14px; }
.dl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.dl li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.dl a { font-weight: 600; overflow-wrap: anywhere; }
.dl span { color: var(--muted); font-size: 15px; }
.dl.later li { flex-direction: column; gap: 2px; }
pre.code { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 14px 16px; overflow-x: auto; font-size: 14px; line-height: 1.5; }
pre.code code { background: none; border: 0; padding: 0; font-size: inherit; overflow-wrap: normal; }
.logo-show { display: flex; flex-wrap: wrap; gap: 16px; margin: 8px 0 24px; }
.logo-tile { border: 1px solid var(--line); border-radius: 6px; background: var(--surface); padding: 28px; display: grid; place-items: center; color: var(--ink); }
.logo-tile .mark-big { width: 120px; height: 120px; }
.logo-tile.wide { flex: 1 1 320px; }
.logo-tile .wordmark-big { width: min(100%, 380px); height: auto; stroke-width: 11; }

/* Footer column headings stay small labels on every page (the landing page's large caps h2 rule must not reach them) */
.site-foot h2.foot-h, .oi-page .site-foot h2.foot-h { font-size: 13px; line-height: 1.4; font-weight: 600; letter-spacing: var(--track-label); margin: 0 0 6px; }

/* ---------------------------------------------------------------- Broad landing sections and short overviews */
.broad .content { gap: 22px; }
.say { display: flex; flex-direction: column; gap: 14px; max-width: 36em; }
.say h2 { margin-bottom: 4px; }
.found { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; max-width: 40em; border-top: 1px solid var(--line); }
.found li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.found b { font-weight: 700; }
.more-link a { font-weight: 600; text-underline-offset: 3px; }
.more-link a::after { content: " \2192"; }
.overview { gap: 12px; max-width: 40em; }
.overview p { color: var(--ink); }
.oi-page .say p, .oi-page .found li { text-wrap: pretty; }
@media (max-width: 480px) {
  .rung { padding: 6px 4px; }
  .rung b { font-size: 12px; letter-spacing: 0; }
}
.nw { white-space: nowrap; }
.dirs .st { display: block; width: fit-content; margin-top: 2px; font-size: 15px; }
.dirs span.st { color: var(--muted); }

/* ---------------------------------------------------------------- Newsletter (footer) */
.foot-row { grid-template-rows: auto 1fr auto; grid-template-areas: "brand cols" "news cols" "note note"; }
.foot-brand { grid-area: brand; }
.foot-news { grid-area: news; max-width: 34rem; }
.foot-cols { grid-area: cols; align-self: start; }
.foot-note { grid-area: note; }
.nl-what { margin: 0 0 14px; color: var(--ink); }
.nl-label { display: block; font-size: 14.5px; margin-bottom: 6px; }
.nl-row { display: flex; gap: 8px; }
.nl-input { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 0 12px; font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 4px; }
.nl-input::placeholder { color: var(--faint); opacity: 1; }
.nl-input[aria-invalid="true"] { border-color: var(--warn); }
.site-foot .nl-btn { flex: none; font-size: 16px; font-weight: 600; cursor: pointer; font-family: inherit; }
.nl-btn:disabled { opacity: 0.6; cursor: progress; }
.nl-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.nl-status { margin: 8px 0 0; min-height: 1.5em; font-size: 14.5px; color: var(--ink); }
.nl[data-state="error"] .nl-status { color: var(--warn); }
.nl[data-state="success"] .nl-status { font-weight: 600; }
.site-foot .nl-privacy { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
@media (max-width: 760px) {
  .foot-row { grid-template-rows: none; grid-template-areas: "brand" "news" "cols" "note"; }
  .foot-news { max-width: none; }
}
@media (max-width: 380px) { .nl-row { flex-wrap: wrap; } .nl-btn { width: 100%; justify-content: center; } }

/* Open-data illustration (index, section 05) */
.data-split { align-items: center; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.data-fig { margin: 0; width: 100%; max-width: 600px; justify-self: end; }
.data-fig svg { display: block; width: 100%; height: auto; overflow: visible; }
.data-fig figcaption { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.data-fig { --dv-shadow: rgb(70 45 25 / 0.16); }
.dv-card { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1; }
.dv-line { fill: var(--line-strong); }
.dv-rule { stroke: var(--line-strong); stroke-width: 1; }
.dv-imp { fill: var(--plate); stroke: var(--line-strong); }
.dv-animal { fill: var(--rule); opacity: .8; }
.dv-animal .dv-horn, .dv-animal .dv-legs { fill: none; stroke: var(--rule); stroke-width: 2.2; stroke-linecap: round; }
.dv-sign { filter: brightness(0); opacity: .82; }
.dv-scratch { filter: brightness(0) invert(.95); opacity: .8; }
.dv-label { paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; }
.dv-cap { font-family: var(--oi-display); font-weight: 700; font-size: 12px; letter-spacing: .06em; fill: var(--ink); }
.dv-capsm { font-size: 10.5px; fill: var(--muted); }
.dv-small { font-family: var(--oi-text); font-size: 9.5px; fill: var(--muted); }
.dv-head { font-family: var(--oi-display); font-size: 9px; letter-spacing: .08em; fill: var(--muted); }
.dv-mono { font-family: var(--mono); font-size: 10.5px; fill: var(--ink); }
.dv-hl { fill: var(--accent-soft); }
.dv-sherd { fill: var(--clay); opacity: .9; }
.dv-sherd-rim { fill: none; stroke: rgb(0 0 0 / .18); stroke-width: 2; stroke-linecap: round; }
.dv-coast { fill: none; stroke: var(--rule); stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; }
.dv-river { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; opacity: .8; }
.dv-trade { fill: none; stroke: var(--clay); stroke-width: 1.2; stroke-dasharray: 3 4; }
.dv-dot { fill: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .data-fig { --dv-shadow: rgb(0 0 0 / 0.5); } :root:not([data-theme="light"]) .dv-sign { filter: url(#oi-ink); } }
:root[data-theme="dark"] .data-fig { --dv-shadow: rgb(0 0 0 / 0.5); }
:root[data-theme="dark"] .dv-sign { filter: url(#oi-ink); }
@media (max-width: 960px) { .data-split { grid-template-columns: minmax(0, 1fr); } .data-fig { justify-self: start; } }

/* Findings: article sections (what is known / disputed) */
.article { max-width: 40em; }
.article h2 { margin-bottom: 10px; }
.article h3 { font-family: var(--oi-text); font-size: 19px; font-weight: 650; margin: 28px 0 6px; color: var(--ink); }
.article p { margin: 0 0 12px; text-wrap: pretty; }

/* Findings: article rows with figures */
.article.wide { max-width: none; }
.art-row { display: grid; grid-template-columns: minmax(0, 38em) minmax(0, 320px); gap: 16px 56px; align-items: start; padding: 4px 0 18px; }
.art-row.solo { grid-template-columns: minmax(0, 38em); }
.art-row + .art-row { border-top: 1px solid var(--line); padding-top: 18px; }
.art-row .art-text h3:first-child { margin-top: 6px; }
.art-row > .figs, .art-row > figure { margin-top: 12px; }
.art-row > .plate + .plate { margin-top: 0; }
.art-fig { margin: 0; width: 100%; max-width: 320px; }
.art-fig svg { display: block; width: 100%; height: auto; }
.art-fig figcaption { margin-top: 8px; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.ag-card { fill: var(--surface); stroke: var(--line-strong); }
.ag-seal { fill: var(--seal-side-hi); stroke: var(--seal-side-lo); }
.ag-imp { fill: var(--plate); stroke: var(--line-strong); }
.ag-sign { filter: brightness(0); opacity: .85; }
.ag-animal { fill: var(--rule); opacity: .85; }
.ag-legs { fill: none; stroke: var(--rule); stroke-width: 1.6; stroke-linecap: round; opacity: .85; }
.ag-arrow, .ag-read { fill: none; stroke: var(--clay); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ag-lab { font-family: var(--oi-display); font-weight: 700; font-size: 10.5px; letter-spacing: .08em; fill: var(--ink); }
.ag-small { font-family: var(--oi-text); font-size: 10px; fill: var(--muted); }
.ag-halo { paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; }
.ag-region { font-family: var(--oi-display); font-size: 10px; letter-spacing: .14em; fill: var(--faint); }
.ag-coast { fill: none; stroke: var(--rule); stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; }
.ag-river { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; opacity: .8; }
.ag-route { fill: none; stroke: var(--clay); stroke-width: 1.4; stroke-dasharray: 3 4; }
.ag-dot { fill: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ag-sign { filter: url(#oi-ink); } :root:not([data-theme="light"]) .ag-seal { fill: var(--brick); stroke: var(--rule); } }
:root[data-theme="dark"] .ag-sign { filter: url(#oi-ink); }
:root[data-theme="dark"] .ag-seal { fill: var(--brick); stroke: var(--rule); }
@media (max-width: 960px) { .art-row { grid-template-columns: minmax(0, 1fr); } }

/* Findings: closed-route tiles */
.rmap { margin: 6px 0 22px; display: flex; flex-direction: column; gap: 8px; max-width: 760px; }
.rmap-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 14px; align-items: center; }
.rmap-lab { font-size: 13.5px; color: var(--muted); line-height: 1.3; }
.rmap-tiles { display: flex; flex-wrap: wrap; gap: 4px; }
.rmap i { display: inline-block; width: 16px; height: 16px; border-radius: 3px; }
.rt-out { background: var(--ink); }
.rt-wait { border: 1.5px dashed var(--rule); }
.rt-weak { border: 1.5px solid var(--warn); background: var(--warn-soft); }
.rmap-key { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.rmap-key span { display: inline-flex; align-items: center; gap: 7px; }
@media (max-width: 640px) { .rmap-row { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* Approach: the path every claim takes */
.pipe { list-style: none; margin: 4px 0 28px; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; counter-reset: p; }
.pipe li { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px 14px 14px; border-top: 2px solid var(--line-strong); }
.pipe li:first-child { border-top-color: var(--ink); }
.pipe li:last-child { border-top-color: var(--clay); }
.pipe li::before { content: ""; position: absolute; top: -6px; left: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line-strong); }
.pipe li:first-child::before { border-color: var(--ink); background: var(--ink); }
.pipe li:last-child::before { border-color: var(--clay); background: var(--clay); }
.pipe svg { width: 28px; height: 28px; margin: 4px 0 6px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pipe li:nth-child(5) svg { stroke: var(--clay); }
.pipe b { font-size: 15px; color: var(--ink); }
.pipe span { font-size: 13px; color: var(--muted); line-height: 1.4; }
@media (max-width: 960px) { .pipe { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; } }
@media (max-width: 560px) { .pipe { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* homepage 04: how we try to read it */
.how-fig { margin: 8px 0 24px; }
.how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: h; }
.how li { counter-increment: h; display: flex; flex-direction: column; gap: 4px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.how svg { width: 100%; max-width: 190px; height: auto; margin-bottom: 8px; overflow: visible; }
.how b { font-size: 15px; color: var(--ink); }
.how b::before { content: counter(h) ". "; color: var(--faint); }
.how span { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.hw-card { fill: var(--paper); stroke: var(--line-strong); }
.hw-lock { stroke-dasharray: 3 3; fill: var(--plate); }
.hw-lk { fill: var(--clay); } .hw-lk2 { fill: none; stroke: var(--clay); stroke-width: 1.6; }
.hw-ln { stroke: var(--rule); stroke-width: 1.4; stroke-linecap: round; }
.hw-mark { fill: none; stroke: var(--clay); stroke-width: 1.6; }
.hw-arrow { fill: none; stroke: var(--rule); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.hw-shield { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.5; }
.hw-ok { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hw-t { font: 11px var(--oi-text); fill: var(--faint); }
.hw-guess { font: italic 600 17px var(--oi-text); fill: var(--clay); }
.how-key { display: flex; gap: 14px; align-items: center; margin-top: 12px; padding: 14px 16px; border: 1px dashed var(--line-strong); border-radius: 10px; }
.how-key svg { flex: none; width: 92px; height: auto; }
.how-key p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.how-key b { color: var(--ink); }
.how .ag-sign, .how-key .ag-sign { filter: brightness(0); opacity: .85; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .how .ag-sign, :root:not([data-theme="light"]) .how-key .ag-sign { filter: url(#oi-ink); } }
:root[data-theme="dark"] .how .ag-sign, :root[data-theme="dark"] .how-key .ag-sign { filter: url(#oi-ink); }
@media (max-width: 960px) { .how { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .how { grid-template-columns: 1fr; } .how-key { flex-direction: column; align-items: flex-start; } }

/* findings: plain head + gist, grouped by strength */
.fgroup { display: flex; align-items: center; gap: 10px; margin: 28px 0 6px; font-size: 15px; }
.fgroup:first-of-type { margin-top: 8px; }
.fgn { font-size: 13px; color: var(--faint); font-weight: 500; }
.meter { display: inline-flex; align-items: center; gap: 8px; font-family: var(--oi-text); font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: 0; text-transform: none; white-space: nowrap; }
.meter .pips { display: inline-flex; gap: 3px; }
.meter .pips i { width: 14px; height: 6px; border-radius: 2px; background: var(--line-strong); }
.meter.strong .pips i.on, .meter.moderate .pips i.on { background: var(--accent); }
.meter.weak .pips i.on { background: var(--warn); }
.meter.exploratory .pips i { background: none; border: 1px dashed var(--line-strong); }
.meter.descriptive { color: var(--muted); }
.findings .finding summary { grid-template-columns: minmax(0, 1fr) 16px; padding: 14px 0; }
.fh { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fh .ft { font-size: 17px; font-weight: 600; color: var(--ink); }
.fh .fg { font-size: 15px; color: var(--muted); line-height: 1.45; }
.findings .fbody { padding-left: 0; }
.ftech { font-size: 14px; color: var(--faint); font-style: italic; }
@media (max-width: 720px) { .findings .finding summary { grid-template-columns: minmax(0, 1fr) 16px; } .fh .ft { font-size: 16px; } }
.meter.descriptive .pips { display: none; }

/* findings as illustrated cards */
.findings .fcard { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px 28px; align-items: start; padding: 22px 0; border-top: 1px solid var(--line); }
.ffig { width: 100%; height: auto; overflow: visible; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px; box-sizing: border-box; }
.fcard .fh { gap: 6px; }
.fcard .ft { margin: 0; font-size: 18px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.fcard .fg { margin: 0; font-size: 15.5px; color: var(--muted); line-height: 1.55; max-width: 68ch; }
.tech { margin-top: 6px; }
.tech > summary { cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--accent-ink); padding: 4px 0; }
.tech > summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 200ms var(--ease-out); }
.tech[open] > summary::after { transform: rotate(225deg); }
.tech .fbody { padding: 10px 0 0; }
.tech .ftech { font-style: normal; font-weight: 600; color: var(--ink); font-size: 15px; }
.hw-no { fill: none; stroke: var(--clay); stroke-width: 2; stroke-linecap: round; }
.hw-bar { fill: var(--line-strong); } .hw-bar.hi { fill: var(--accent); }
.hw-pill { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.hw-slot { fill: var(--paper); stroke: var(--line-strong); stroke-dasharray: 3 3; } .hw-slot.hi { stroke: var(--clay); stroke-dasharray: none; stroke-width: 1.6; }
.hw-pic { fill: none; stroke: var(--rule); stroke-width: 1.3; }
.hw-arrow.hi { stroke: var(--clay); }
@media (max-width: 640px) { .findings .fcard { grid-template-columns: minmax(0, 1fr); gap: 14px; } .ffig { max-width: 280px; } }

/* novelty tags */
.nov { display: inline-block; align-self: flex-start; font-family: var(--oi-text); font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); white-space: nowrap; }
.nov.new { background: var(--clay); border-color: var(--clay); color: var(--paper); }
.nov.partly { border-color: var(--clay); color: var(--clay); }
.nov.tests { border-color: var(--accent); color: var(--accent-ink); }
.nov.known { border-style: dashed; }
.prior { font-size: 15px; color: var(--muted); }
.prior b { color: var(--ink); }
.key-h { margin: 26px 0 8px; font-size: 16px; }

/* grouped navbar (Research, Resources) */
.site-nav ul { align-items: center; }
.site-nav .dd { position: relative; }
.site-nav .dd > button { display: inline-flex; align-items: center; gap: 6px; font: inherit; color: var(--muted); background: none; border: 0; border-bottom: 2px solid transparent; padding: 6px 0; cursor: pointer; }
.site-nav .dd > button:hover, .site-nav .dd.open > button { color: var(--ink); }
.site-nav .dd.here > button { color: var(--ink); font-weight: 700; border-bottom-color: var(--clay); }
.site-nav .caret { transition: transform 160ms var(--ease-out); }
.site-nav .dd.open .caret { transform: rotate(180deg); }
.ddm { display: none; position: absolute; top: calc(100% + 8px); left: -14px; z-index: 40; width: 320px; padding: 8px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: 0 12px 32px rgb(0 0 0 / .12); }
.ddm::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
@media (hover: hover) and (min-width: 901px) { .site-nav .dd:hover .ddm { display: grid; } }
.site-nav .dd.open .ddm, .site-nav .dd:focus-within .ddm { display: grid; }
.ddm a { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 8px; border: 0; color: var(--ink); }
.ddm a:hover, .ddm a[aria-current="page"] { background: var(--paper); }
.ddm i { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); }
.ddm i svg { width: 18px; height: 18px; fill: none; stroke: var(--clay); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ddm span { display: flex; flex-direction: column; gap: 2px; }
.ddm b { font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.ddm small { font-size: 13px; color: var(--muted); line-height: 1.35; }
.site-nav .nav-cta a { color: var(--on-accent); background: var(--accent); border: 0; border-radius: 999px; padding: 7px 16px; font-weight: 600; }
.site-nav .nav-cta a:hover { color: var(--on-accent); filter: brightness(1.08); }
@media (max-width: 900px) {
  .js .site-nav .dd { width: 100%; }
  .js .site-nav .dd > button { width: 100%; font-size: 13px; letter-spacing: var(--track-label); text-transform: uppercase; font-family: var(--oi-display); color: var(--faint); padding: 18px 0 6px; border: 0; cursor: default; pointer-events: none; }
  .js .site-nav .dd > button .caret { display: none; }
  .js .ddm { display: grid; position: static; width: auto; padding: 0; background: none; border: 0; box-shadow: none; }
  .js .ddm a { padding: 10px 0; min-height: 0; }
  .js .site-nav li + li { border-top: 0; }
  .js .site-nav .nav-cta { padding: 16px 0 8px; }
  .js .site-nav .nav-cta a { justify-content: center; min-height: 46px; }
}

/* news */
.ideas { list-style: none; margin: 0; padding: 0; }
.ideas li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 6px 16px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); }
.ideas li > div { display: flex; flex-direction: column; gap: 4px; }
.ideas b { font-weight: 600; color: var(--ink); font-size: 16px; line-height: 1.45; }
.ideas li span:not(.tag) { font-size: 14px; color: var(--muted); }
.ideas .tag { justify-self: start; }
.news-feeds { position: relative; }
/* Full-width opaque rail closes the gaps around the controls while it is stuck. */
.zoombar { position: sticky; top: var(--head-h); z-index: 25; width: 100%; margin: 0; padding: 12px var(--gutter); background: var(--paper); border-bottom: 1px solid var(--line); }
.zoom-controls { display: flex; align-items: center; justify-content: center; gap: 6px; width: fit-content; max-width: 100%; margin: 0 auto; padding: 5px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); }
.zoombar span { font-size: 13px; color: var(--faint); padding: 0 8px 0 10px; }
.zoombar button { font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); background: none; border: 0; border-radius: 999px; padding: 7px 14px; cursor: pointer; min-height: 36px; }
.zoombar button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.ncard { position: relative; padding: 24px 0; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.news-feed h2 { scroll-margin-top: 96px; }
.nmeta { display: flex; gap: 12px; align-items: baseline; margin-bottom: 10px; font-size: 13px; color: var(--faint); }
.nkind { font-family: var(--oi-display); letter-spacing: var(--track-label); text-transform: uppercase; font-size: 12px; color: var(--clay); }
.nrow { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px 28px; align-items: start; }
.nbody { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.nh { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.nsrc { margin: 0; font-size: 14px; color: var(--muted); }
.nsrc a { overflow-wrap: anywhere; }
.z { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--muted); max-width: 70ch; }
.z-plain, .z-tech { display: none; }
html:not(.js) .z-plain { display: block; }
.news-feed[data-zoom="gist"] .z-gist, .news-feed[data-zoom="plain"] .z-plain, .news-feed[data-zoom="tech"] .z-tech { display: block; }
.news-feed[data-zoom="plain"] .z-gist, .news-feed[data-zoom="tech"] .z-gist { display: none; }
.news-feed[data-zoom="gist"] .nborrow { display: none; }

.news-feed[data-zoom="gist"] .ncard { padding: 16px 0; }
.news-feed[data-zoom="tech"] .z-tech { color: var(--ink); font-size: 15px; }
.nborrow { display: flex; gap: 12px; align-items: baseline; margin-top: 4px; padding: 10px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); }
.nborrow p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.nborrow b { color: var(--ink); }
@media (max-width: 640px) {
  .nrow { grid-template-columns: minmax(0, 1fr); }
  .ideas li { grid-template-columns: minmax(0, 1fr); }
  .nborrow { flex-direction: column; gap: 6px; }
  .zoombar span { display: none; }
}
.js .ddm a[aria-current="page"] { text-decoration: none; } .ddm a[aria-current="page"] b { color: var(--clay); }
.ideas .ires { color: var(--muted); font-size: 14.5px; line-height: 1.5; }

/* News artwork is a complete 3:2 composition at every viewport size. */
.illustration-note { margin-top: 12px; color: var(--faint); font-size: 14px; }
.nvisual { display: block; min-width: 0; border-radius: 10px; }
.nthumb { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; border: 1px solid var(--img-edge); background: #f3efe7; }
.nfallback { display: block; width: 100%; max-width: none; height: auto; padding: 10px; overflow: visible; }
.nh a { color: inherit; text-decoration: none; }
.nh a::after { content: ""; position: absolute; inset: 0; border-radius: 10px; }
.nh a:hover { text-decoration: underline; text-underline-offset: .15em; }
.nh a:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 4px; }
.nsrc a, .nread { position: relative; z-index: 1; }
.nread { align-self: start; font-size: 14px; margin-top: 6px; }
.news-article { max-width: 856px; padding-top: 40px; padding-bottom: 64px; }
.news-article header .kicker { margin: 28px 0 14px; }
.news-article h1 { font-size: clamp(34px, 4.8vw, 58px); line-height: 1.1; }
.article-source { color: var(--muted); margin-top: 20px; overflow-wrap: anywhere; }
.article-visual { margin: 32px 0; }
.article-visual figcaption { color: var(--faint); font-size: 13px; margin-top: 8px; }
.news-article section { margin: 32px 0; }
.news-article section h2 { font-size: 25px; margin-bottom: 16px; }
.news-article section p { margin: 12px 0; overflow-wrap: anywhere; }
.news-article section h3 { margin-top: 24px; }
.news-article section ul { margin: 12px 0; padding-left: 22px; }
.news-article section li { margin: 8px 0; overflow-wrap: anywhere; }
.news-article section li small { display: block; color: var(--muted); margin-top: 4px; }
.article-neighbors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 32px; }
.article-neighbors a { display: flex; flex-direction: column; gap: 8px; line-height: 1.5; }
.article-neighbors small { color: var(--faint); }
@media (max-width: 640px) {
  .nvisual, .nthumb { width: 100%; max-width: none; }
  .zoombar { padding-top: 12px; padding-bottom: 12px; }
  .zoom-controls { gap: 2px; width: 100%; }
  .zoombar button { padding: 7px 10px; font-size: 13px; white-space: nowrap; }
  .article-neighbors { grid-template-columns: minmax(0, 1fr); }
}

/* Family banner at the foot of every page: names the parent site, Open Citizen Science. */
.ocs-banner { display: flex; align-items: center; gap: 14px; margin-top: 28px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; }
.ocs-banner:hover { border-color: var(--muted); }
.ocs-banner > svg { width: 30px; height: 30px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; }
.ocs-banner > svg .dot { fill: currentColor; stroke: none; }
.ocs-banner .ocs-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.ocs-banner b { font-weight: 700; font-size: 16px; }
.ocs-banner small { font-size: 14px; color: var(--muted); }
.ocs-banner .ocs-go { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; white-space: nowrap; flex: none; }
@media (max-width: 640px) { .ocs-banner { flex-wrap: wrap; align-items: flex-start; } .ocs-banner .ocs-txt { flex-basis: calc(100% - 44px); } .ocs-banner .ocs-go { margin-left: 44px; } }

/* News: the landscape snapshot (site/landscape_view.py). Library page. */
.landscape { --ls-sans: var(--body); --ls-mono: var(--mono); --ls-track: var(--plate); --ls-up: #2F6B3F; --ls-down: #9B2C2C; }
:root[data-theme="dark"] .landscape { --ls-up: #8CCB9B; --ls-down: #EE9A94; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .landscape { --ls-up: #8CCB9B; --ls-down: #EE9A94; } }
.landscape .ls-q code, .landscape .ls-how p { overflow-wrap: anywhere; }
.landscape { container-type: inline-size; }
.ls-kicker { font-family: var(--ls-sans); font-weight: 600; font-size: 12.5px; line-height: 1.4; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 8px; }
.landscape h2 { margin: 0 0 8px; font-size: clamp(20px, 2.3vw, 25px); line-height: 1.25; max-width: 36ch; }
.ls-meta { color: var(--muted); font-size: 14.5px; margin: 0 0 4px; max-width: 80ch; }
.ls-how summary, .ls-q summary { cursor: pointer; font-family: var(--ls-sans); font-weight: 600; font-size: 13.5px; color: var(--accent); width: fit-content; }
.ls-how p { font-size: 14.5px; color: var(--muted); margin: 6px 0 0; max-width: 80ch; }
.ls-list { list-style: none; margin: 14px 0 0; padding: 0; }
.ls-row { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px 28px; padding: 16px 0 14px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.ls-name h3 { margin: 0; font-size: 17px; line-height: 1.3; display: flex; gap: 10px; align-items: baseline; }
.ls-rank { font: 600 12px/1 var(--ls-mono); color: var(--muted); min-width: 1.4em; flex: none; }
.ls-bet { margin: 4px 0 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.ls-bar { height: 10px; border-radius: 999px; background: var(--ls-track); overflow: hidden; }
.ls-bar span { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.ls-num { margin: 6px 0 0; font-family: var(--ls-sans); font-size: 14px; line-height: 1.45; font-variant-numeric: tabular-nums; }
.ls-num b { font-size: 16px; } .ls-num span { color: var(--muted); }
.ls-trend { display: grid; grid-template-columns: 120px auto; column-gap: 12px; align-items: center; }
.ls-spark { width: 120px; height: 34px; display: block; overflow: visible; }
.ls-sl, .ls-sp { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ls-sp { stroke-dasharray: 2.5 3; opacity: 0.85; }
.ls-sa { fill: var(--accent); opacity: 0.12; stroke: none; }
.ls-sd { fill: var(--accent); } .ls-so { fill: var(--surface); stroke: var(--accent); stroke-width: 1.4; }
.ls-years { grid-column: 1; display: flex; justify-content: space-between; font: 11px/1.3 var(--ls-mono); color: var(--muted); }
.ls-tw { grid-column: 2; grid-row: 1; margin: 0; font-family: var(--ls-sans); font-weight: 600; font-size: 12.5px; line-height: 1.3; color: var(--muted); }
.ls-tw span { display: block; font-weight: 400; color: var(--muted); }
.ls-rising { color: var(--ls-up); } .ls-falling { color: var(--ls-down); }
.ls-more { display: grid; gap: 5px; font-size: 14.5px; line-height: 1.5; }
.ls-more p { margin: 0; max-width: 100ch; }
.ls-k { font-family: var(--ls-sans); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin-right: 8px; }
.ls-inst { color: var(--muted); }
.ls-q p { font-size: 13.5px; color: var(--muted); margin: 4px 0; } .ls-q code { font-size: 12.5px; }
@container (min-width: 700px) {
  .ls-row { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 124px; align-items: start; }
  .ls-bet { margin-left: calc(1.4em + 10px); }
  .ls-size { padding-top: 6px; }
  .ls-trend { grid-template-columns: 120px; }
  .ls-tw { grid-column: 1; grid-row: auto; margin-top: 2px; }
  .ls-more { grid-column: 1 / -1; margin-left: calc(1.4em + 10px); }
}
.lfilter { display: grid; gap: 10px; margin: 0 0 8px; }
.lfilter label { font-size: 14px; color: var(--muted); }
.lfilter input { font: inherit; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); max-width: 480px; }
.ltopics { display: flex; flex-wrap: wrap; gap: 8px; }
.ltopics button { font: inherit; font-size: 14px; padding: 6px 12px; min-height: 36px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.ltopics button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.ltopics small { opacity: .75; margin-left: 2px; }
.lcount { font-size: 14px; color: var(--muted); margin: 4px 0 0; }
.lcard { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 12px 24px; padding: 22px 0; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.lcard[hidden] { display: none; }
.lthumb { width: 100%; height: auto; aspect-ratio: 3 / 2; border-radius: 10px; border: 1px solid var(--img-edge); background: #f3efe7; }
.lbody > p { margin: 6px 0; }
.lbody .nmeta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-bottom: 6px; }
.lcard details { margin-top: 8px; }
.lcard summary { cursor: pointer; color: var(--accent-ink); font-weight: 500; min-height: 32px; }
.lcard dl { margin: 8px 0 0; display: grid; gap: 4px; }
.lcard dt { font-weight: 600; font-size: 14px; margin-top: 8px; }
.lcard dd { margin: 0; }
@media (max-width: 640px) { .lcard { grid-template-columns: minmax(0, 1fr); } .lthumb { max-width: 320px; } }

/* News: three-column card grid (matches Open Mind and Open Origins); 2 columns on tablets, 1 on phones. */
.ngrid { display: grid; gap: 40px 28px; grid-template-columns: minmax(0, 1fr); margin-top: 22px; }
@media (min-width: 640px) { .ngrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .ngrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ngrid .ncard, .news-feed[data-zoom="gist"] .ngrid .ncard { display: flex; flex-direction: column; padding: 0; border-top: 0; }
.ngrid .nmeta { order: 2; margin: 12px 0 4px; }
.ngrid .nrow { display: contents; }
.ngrid .nrow > :first-child { order: 1; }
.ngrid .nbody { order: 3; }
.ngrid .nh { font-size: 17.5px; line-height: 1.3; margin: 0 0 6px; }
.ngrid .z { font-size: 15px; }
.ngrid .nborrow { flex-direction: column; gap: 6px; }
.ngrid .nborrow p { font-size: 14px; }

/* footer: tertiary Join Slack button */
.slack-btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 7px 12px 7px 10px; margin-left: -10px; border-radius: 999px; font-size: 14.5px; font-weight: 600; line-height: 1.2; color: var(--ink); text-decoration: none; background: transparent; transition: background-color .15s; }
.slack-btn:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.slack-btn svg { width: 16px; height: 16px; flex: none; }

/* ---------------------------------------------------------------- sign catalogue (site/build_signs.py) */
/* Mahadevan's drawings are black on transparent: ink-coloured in light mode, light ink in dark mode. */
.sg { filter: brightness(0); opacity: .86; display: block; }
.sg-none { display: grid; place-items: center; filter: none; opacity: 1; font-size: 11px; color: var(--faint); border: 1px dashed var(--line-strong); border-radius: 6px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sg:not(.sg-none) { filter: brightness(0) invert(.9); } }
:root[data-theme="dark"] .sg:not(.sg-none) { filter: brightness(0) invert(.9); }
.sg-xs { width: 20px; height: 20px; } .sg-sm { width: 28px; height: 28px; } .sg-md { width: 64px; height: 64px; } .sg-lg { width: 154px; height: 154px; }
.sg-none.sg-lg { width: 154px; height: 154px; font-size: 18px; }

.sgf { display: grid; gap: 12px; }
.sgf-q { display: grid; gap: 6px; max-width: 420px; }
.sgf label { font-size: 14px; color: var(--muted); }
.sgf input[type=search], .sgf select { font: inherit; font-size: 15px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); }
.sgf-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sgf-row select { flex: 0 1 auto; max-width: 100%; }
.sgf-chk { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px; cursor: pointer; }
.sgf-chk input { width: 18px; height: 18px; accent-color: var(--accent); }
.sgf-count { font-size: 14px; color: var(--muted); margin: 0; }
.sg-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.sg-grid li[hidden] { display: none; }
.sg-grid a { display: grid; justify-items: center; gap: 4px; padding: 14px 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color 160ms var(--ease-out); }
.sg-grid a:hover, .sg-grid a:focus-visible { border-color: var(--accent); }
.sg-grid b { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sg-grid small { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sg-credit { margin-top: 8px; }
@media (max-width: 480px) { .sg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sgf-row select { flex: 1 1 140px; } }

.sg-crumb { padding-top: 20px; font-size: 14px; }
.sg-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px 40px; align-items: start; padding-top: 16px; padding-bottom: 8px; }
.sg-big { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.sg-intro h1 { font-size: clamp(36px, 5vw, 56px); margin: 4px 0 4px; font-variant-numeric: tabular-nums; }
.sg-meta { color: var(--muted); font-size: 15px; margin: 0 0 12px; }
.sg-looks { font-size: 16px; margin: 0 0 2px; max-width: 60ch; }
.sg-looks span { color: var(--muted); }
.sg-looks-src { color: var(--muted); font-size: 13.5px; margin: 0 0 12px; max-width: 60ch; }
.sg-intro .lede { font-size: clamp(17px, 1.5vw, 19px); }
.sg-est { margin: 12px 0 0; max-width: 60ch; }
@media (max-width: 640px) { .sg-head { grid-template-columns: minmax(0, 1fr); } .sg-big { justify-self: start; padding: 14px; } .sg-lg, .sg-none.sg-lg { width: 120px; height: 120px; } }

.sg-secs { padding-top: 24px; max-width: 920px; margin-left: 0; }
.sg-sec { border-top: 1px solid var(--line); }
.sg-sec:last-child { border-bottom: 1px solid var(--line); }
.sg-sec > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto 16px; gap: 12px; align-items: center; min-height: 56px; padding: 8px 0; cursor: pointer; font-size: 18px; font-weight: 600; }
.sg-sec > summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 200ms var(--ease-out); justify-self: center; }
.sg-sec[open] > summary::after { transform: rotate(225deg); }
.sg-count { font-size: 14px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.sg-body { padding: 0 0 24px; display: grid; gap: 12px; }
.sg-body p { margin: 0; max-width: 70ch; }
.sg-body .small, .sg-refs .small, .sg-pairs .small { font-size: 14px; color: var(--muted); }
.sg-h3 { font-size: 15px; font-weight: 600; margin: 8px 0 0; }
.sg-tables { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 28px; }
.sg-tables table { border-collapse: collapse; width: 100%; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.sg-tables caption { text-align: left; font-weight: 600; padding-bottom: 6px; }
.sg-tables th, .sg-tables td { text-align: left; padding: 5px 8px 5px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.sg-tables thead th { color: var(--muted); font-size: 13px; }
.sg-tables td { text-align: right; }
.sg-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 28px; }
.sg-refs, .sg-pairs, .sg-reads, .sg-tests, .sg-ment, .sg-ex, .sg-merge { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sg-refs li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sref { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; margin-right: 6px; }
.sg-pairs li { display: grid; gap: 2px; }
.sg-pairs li > span:first-child { display: inline-flex; flex-wrap: wrap; }
.sg-merge li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.sg-merge li > span { color: var(--muted); font-size: 14px; margin-right: 6px; min-width: 12em; }
.sg-reads li, .sg-tests li { padding: 10px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.sg-reads li:last-child, .sg-tests li:last-child { border-bottom: 0; }
.sg-read-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.sg-read-h .tag { margin-left: auto; }
.sg-sub > summary { cursor: pointer; color: var(--accent-ink); font-weight: 500; min-height: 36px; display: flex; align-items: center; }
.sg-dl { margin: 0; display: grid; gap: 4px; }
.sg-dl dt { font-weight: 600; font-size: 14px; margin-top: 6px; }
.sg-dl dd { margin: 0; }
.sg-ment li { display: grid; gap: 2px; }
.sg-ex li { display: grid; gap: 4px; padding: 8px 0; }
.sg-seq { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.sg-tok { display: inline-grid; place-items: center; padding: 3px; border-radius: 6px; border: 1px solid transparent; }
.sg-tok.sg-cur { border-color: var(--accent); }
.sg-brk { color: var(--faint); padding: 0 4px; }
.sg-pn { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; padding-top: 28px; padding-bottom: 8px; }
.sg-pn a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; }
.sg-pn a[rel=next] { justify-self: end; text-align: right; }
.sg-pn span { display: grid; font-size: 13px; color: var(--muted); }
.sg-pn span b { font-size: 16px; color: var(--ink); font-variant-numeric: tabular-nums; }
.sg-all { justify-self: center; font-size: 14px; }

/* latest updates: a dated timeline on the home page and the updates page */
.upd { list-style: none; margin: 0; padding: 0; max-width: 46em; }
.upd li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 0 18px; }
.upd time { font-family: var(--oi-text); font-variant-numeric: tabular-nums; font-size: 14px; color: var(--muted); padding-top: 3px; white-space: nowrap; }
.upd-b { position: relative; border-left: 1px solid var(--line-strong); padding: 0 0 26px 22px; }
.upd li:last-child .upd-b { padding-bottom: 4px; }
.upd-b::before { content: ""; position: absolute; left: -5px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--rule); }
.upd li:first-child .upd-b::before { background: var(--accent); border-color: var(--accent); }
.upd-h { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.upd-h b { font-weight: 600; font-size: 17px; line-height: 1.35; text-wrap: balance; }
.upd-h a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.upd-h a:hover { text-decoration-color: currentColor; }
.upd-t { margin: 6px 0 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; text-wrap: pretty; }
@media (max-width: 560px) {
  .upd li { grid-template-columns: minmax(0, 1fr); }
  .upd time { padding: 0 0 4px 22px; border-left: 1px solid var(--line-strong); }
  .upd li:first-child time { padding-top: 0; }
  .upd-b::before { top: -23px; }
}

/* hero kicker: "<Project>, part of Open Citizen Science" */
.kicker a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); } .kicker a:hover { text-decoration-color: currentColor; }
