/* Open Origins site. Structure follows the Open Indus site: a sticky header, sections with a numbered rail, figures
   that each make one point. Colours, the divider and the list marker live in brand.css (appended by build.py). */

:root {
  --serif: "Iowan Old Style", "Charter", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --head-h: 64px;
  --section: clamp(44px, 5vw, 72px);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; scroll-padding-top: calc(var(--head-h) + 20px); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: 18px; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; }
a { color: var(--accent); 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.82em; background: var(--surface); border: 1px solid var(--line); padding: 0.05em 0.35em; border-radius: 3px; overflow-wrap: anywhere; }
h1, h2, h3, h4 { font-family: var(--sans); margin: 0; text-wrap: balance; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: clamp(36px, 5.4vw, 68px); line-height: 1.04; font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: clamp(24px, 2.9vw, 34px); line-height: 1.14; font-weight: 700; letter-spacing: -0.018em; }
h3 { font-size: 19px; line-height: 1.3; font-weight: 650; }
h4 { font-size: 17px; line-height: 1.3; font-weight: 650; }
p { margin: 0; }
p, li, dd, figcaption { text-wrap: pretty; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.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: 50; }
.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); font-family: var(--sans); }
.head-row { display: flex; align-items: center; gap: 10px 22px; min-height: var(--head-h); padding-top: 8px; padding-bottom: 8px; }
.crumbs { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; min-width: 0; }
.parent { color: var(--muted); text-decoration: none; font-size: 14px; white-space: nowrap; }
.parent:hover { color: var(--ink); }
.slash { color: var(--line-strong); }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; white-space: nowrap; }
.brand .mark { width: 30px; height: 30px; flex: none; fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 15.5px; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; display: inline-flex; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 650; border-bottom-color: var(--rust); }
.theme, .menu-btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 14px; 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); }
@media (max-width: 1100px) {
  .head-row { gap: 6px 8px; }
  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: 18px; }
  .js .site-nav li + li { border-top: 1px solid var(--line); }
  .js .site-nav a { display: flex; min-height: 48px; padding: 12px 0; border-bottom: 0; }
  .js .site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--rust); text-decoration-thickness: 2px; text-underline-offset: 6px; }
}
@media (max-width: 520px) {
  .parent { font-size: 0; } .parent::before { content: "OCS"; font-size: 13px; }
  .theme #theme-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .theme { padding: 6px 10px; }
}

/* footer */
.site-foot { border-top: 1px solid var(--line); margin-top: var(--section); padding: 32px 0 48px; font-family: var(--sans); font-size: 15px; 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: 36px; height: 36px; flex: none; fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.foot-brand b { color: var(--ink); }
.foot-goal { color: var(--ink); }
.foot-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.foot-links { display: flex; flex-direction: column; gap: 2px; }
.foot-links a { padding: 3px 0; }
.foot-h { font-size: 12px; font-weight: 600; 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 and page heads */
.hero, .page-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px 56px; align-items: center; padding-top: clamp(32px, 6vw, 72px); }
.page-head.one { grid-template-columns: minmax(0, 1fr); }
.page-head h1 { font-size: clamp(32px, 4.2vw, 52px); }
.hero-text { display: flex; flex-direction: column; gap: 20px; min-width: 0; max-width: 760px; }
.kicker { font-family: var(--sans); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.state { font-size: clamp(19px, 1.8vw, 23px); line-height: 1.4; color: var(--ink); max-width: 44ch; }
.lede { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.5; color: var(--muted); max-width: 62ch; }
.lede strong { color: var(--ink); }
.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-family: var(--sans); font-weight: 600; font-size: 16px; transition: transform 160ms var(--ease-out); }
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--ink); color: var(--paper); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--surface); } .btn.primary:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); } }
.jump { display: flex; flex-wrap: wrap; gap: 0 18px; font-family: var(--sans); font-size: 15px; border-top: 1px solid var(--line); padding-top: 14px; }
.jump a { padding: 6px 0; }
.hero-art { margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.hero-art svg { display: block; width: 100%; height: auto; }
figcaption { font-family: var(--sans); font-size: 13px; line-height: 1.45; color: var(--muted); }

/* sections with a numbered rail */
.block { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 0 40px; padding-top: var(--section); }
.block::before { content: ""; grid-column: 1 / -1; height: 12px; margin-bottom: var(--section); }
.rail { font-family: var(--sans); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); align-self: start; display: flex; flex-direction: column; gap: 4px; }
.rail span { line-height: 1; font-size: 28px; font-weight: 700; color: var(--ink); letter-spacing: 0; }
.content { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.content > :first-child { margin-top: 0; }
.say { display: flex; flex-direction: column; gap: 14px; max-width: 38em; }
.intro { color: var(--muted); max-width: 66ch; }
.note { font-size: 16px; color: var(--muted); max-width: 70ch; }
.more-link { font-family: var(--sans); font-size: 16px; }
.more-link a { font-weight: 600; }
.more-link a::after { content: " \2192"; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px 48px; align-items: start; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 48px; }

/* figures */
.fig { margin: 0; display: flex; flex-direction: column; gap: 14px; min-width: 0; max-width: 880px; }
.fig-t { font-family: var(--sans); font-weight: 650; font-size: 17px; line-height: 1.35; color: var(--ink); max-width: 52ch; }
.fig figcaption .src { display: block; margin-top: 2px; font-family: var(--mono); font-size: 11.5px; color: var(--faint); overflow-wrap: anywhere; }
.key { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--sans); font-size: 13px; color: var(--muted); }
.key li { display: inline-flex; align-items: center; gap: 6px; }
.key.big { flex-direction: column; font-size: 14.5px; gap: 8px; }
.ng, .lg { flex: none; display: inline-block; vertical-align: middle; overflow: visible; }
.chart { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.bar { display: grid; grid-template-columns: 200px minmax(0, 1fr) 70px; gap: 12px; align-items: center; font-family: var(--sans); font-size: 14px; color: var(--muted); }
.bar.goal { grid-template-columns: 260px minmax(0, 1fr) 64px; }
.track { height: 12px; border-left: 1.5px solid var(--ink); position: relative; display: block; background: var(--line-soft); }
.fill { display: block; height: 100%; background: var(--accent); min-width: 0; }
.fill.alt { background: repeating-linear-gradient(135deg, var(--accent) 0 2px, transparent 2px 5px); box-shadow: inset 0 0 0 1px var(--accent); }
.bv { font-variant-numeric: tabular-nums; font-size: 13.5px; color: var(--ink); text-align: right; white-space: nowrap; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-family: var(--sans); font-size: 14.5px; }
.checks li { display: flex; align-items: center; gap: 10px; }
.ck { width: 16px; height: 16px; border-radius: 50%; flex: none; position: relative; }
.ck.yes { background: var(--accent); }
.ck.yes::after { content: ""; position: absolute; left: 5px; top: 3px; width: 4px; height: 7px; border: solid var(--paper); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ck.no { border: 1.5px dashed var(--muted); }
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.score, table.cov { border-collapse: collapse; width: 100%; font-family: var(--sans); font-size: 14.5px; }
.score th, .score td, .cov th, .cov td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-top: 1px solid var(--line); }
.score thead th, .cov thead th { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 600; border-top: 0; }
.score tbody th { font-weight: 650; min-width: 9em; }
.score .sub { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.score td { color: var(--muted); }

/* units: steps vs joins */
.units { display: flex; flex-direction: column; gap: 18px; }
.urow { display: flex; flex-direction: column; gap: 8px; }
.ul { font-family: var(--sans); font-size: 15px; color: var(--muted); }
.ul b { color: var(--ink); font-size: 17px; }
.ucells { display: flex; flex-wrap: wrap; gap: 6px; max-width: 640px; }
.ucells.joins { gap: 4px 6px; }
.ucell { display: inline-flex; }

/* ladder */
.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: 820px; }
.rung { border: 1.5px solid var(--line-strong); border-bottom: 0; border-radius: 3px 3px 0 0; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; font-family: var(--sans); font-size: 12.5px; line-height: 1.3; }
.rung b { font-size: 14.5px; font-weight: 650; }
.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% 64% no-repeat, repeating-linear-gradient(135deg, var(--accent) 0 2px, transparent 2px 6px); border-color: var(--accent); }
.rung.part span { background: var(--paper); align-self: flex-start; padding-right: 4px; }
.r1 { height: 66px; } .r2 { height: 92px; } .r3 { height: 118px; } .r4 { height: 144px; } .r5 { height: 170px; }
.ladder-key { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--sans); font-size: 13px; color: var(--muted); }
.ladder-key li { display: inline-flex; align-items: center; gap: 6px; }
.k { display: inline-block; width: 14px; height: 10px; border-radius: 2px; }
.k.done { background: var(--accent); }
.k.part { background: repeating-linear-gradient(135deg, var(--accent) 0 2px, transparent 2px 4px); border: 1px solid var(--accent); }
.k.open { border: 1.5px solid var(--line-strong); }
.ladder-list { list-style: none; margin: 0; padding: 0; max-width: 820px; }
.ladder-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 4px 14px; padding: 12px 0; border-top: 1px solid var(--line); align-items: baseline; }
.ladder-list .lv { font-family: var(--sans); font-size: 13px; color: var(--muted); }
.ladder-list p { color: var(--muted); font-size: 16px; }
.ladder-list b { font-family: var(--sans); }

/* compact pathway map */
.cmap { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.cmap li { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 6px 16px; align-items: center; }
.cm-name { font-family: var(--sans); font-size: 14.5px; line-height: 1.3; display: flex; flex-direction: column; }
.cm-name span { color: var(--muted); font-size: 13px; }
.cm-row { display: flex; align-items: center; min-width: 0; }
.cm-start { width: 4px; height: 18px; border-radius: 2px; background: var(--ink); flex: none; }
.cm-l { flex: 1 1 24px; min-width: 10px; display: flex; border-radius: 999px; }
.cm-l .lg { width: 100%; }
.cm-l.first { outline: 2px solid var(--rust); outline-offset: 1px; }
.cm-n { display: inline-flex; flex: none; }
.ring-key { width: 18px; height: 10px; border-radius: 999px; outline: 2px solid var(--rust); outline-offset: -1px; display: inline-block; }

/* full pathway map */
.pmap { display: grid; grid-template-columns: 120px repeat(4, minmax(0, 1fr)); grid-template-rows: auto repeat(5, auto); gap: 0 16px; font-family: var(--sans); }
.pm-corner { grid-row: 1; }
.pm-stage { grid-column: 1; border-top: 1px solid var(--line); padding: 12px 0; font-size: 13px; color: var(--muted); display: flex; flex-direction: column; line-height: 1.3; }
.pm-stage b { color: var(--ink); font-size: 14px; }
.pm-col { grid-row: 1 / span 6; display: grid; grid-template-rows: subgrid; min-width: 0; }
.pm-head { padding-bottom: 12px; }
.pm-head h3 { font-size: 17px; }
.pm-head p { font-size: 13px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.pm-cell { border-top: 1px solid var(--line); padding: 10px 0 12px; display: flex; flex-direction: column; align-items: stretch; }
.pm-st { display: none; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.pm-none { font-size: 13px; color: var(--faint); padding: 4px 0 4px 30px; }
.pm-entry { font-size: 12.5px; color: var(--muted); padding: 0 0 0 30px; position: relative; }
.pm-entry::before { content: ""; position: absolute; left: 4px; top: 50%; width: 12px; height: 3px; border-radius: 2px; background: var(--ink); }
.pm-h { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; align-items: center; padding-left: 3px; min-height: 30px; }
.pm-h .lg { justify-self: center; }
.pm-h p { font-size: 12.5px; line-height: 1.3; color: var(--muted); }
.pm-h.v-broken p { color: var(--bad); }
.pm-h.first .lg { border-radius: 999px; outline: 2px solid var(--rust); outline-offset: 1px; }
.pm-h.first p b { color: var(--ink); }
.pm-s { border-radius: 6px; }
.pm-s > summary { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; align-items: start; padding: 4px 4px 4px 2px; cursor: pointer; list-style: none; border-radius: 6px; }
.pm-s > summary::-webkit-details-marker { display: none; }
.pm-s > summary:hover { background: var(--surface); }
.pm-s > summary .ng { margin-top: 1px; }
.pm-s summary span { display: flex; flex-direction: column; min-width: 0; }
.pm-s summary b { font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.pm-s summary small { font-size: 12px; color: var(--faint); }
.pm-s.y-missing summary b, .pm-s.y-unread summary b { color: var(--muted); font-weight: 500; }
.pm-s[open] { background: var(--surface); }
.pm-b { padding: 2px 8px 10px 32px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.pm-full { color: var(--ink); }
@media (max-width: 1000px) {
  .pmap { display: flex; flex-direction: column; gap: 28px; }
  .pm-corner, .pm-stage { display: none; }
  .pm-col { display: flex; flex-direction: column; border-top: 2px solid var(--ink); padding-top: 10px; }
  .pm-st { display: block; }
  .pm-none { padding-left: 0; }
}

/* gaps */
.gaps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; max-width: 760px; }
.gaps li { border-top: 1px solid var(--line); padding: 12px 0; display: flex; flex-direction: column; gap: 6px; }
.gp-n { font-family: var(--sans); font-size: 15.5px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.gp-r, .gp-s { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.gp-r { min-width: 3.4em; }
.gaps .bar { grid-template-columns: 170px minmax(0, 1fr) 54px; }

/* finding cards */
.findings { list-style: none; margin: 0; padding: 0; }
.fcard { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px 28px; align-items: start; padding: 22px 0; border-top: 1px solid var(--line); }
.mini { display: block; width: 100%; max-width: 260px; height: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-family: var(--sans); }
.fh { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fh .ft { font-size: 19px; line-height: 1.3; }
.fh .fg { font-size: 16.5px; color: var(--muted); max-width: 66ch; }
.fmeta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tech { margin-top: 2px; }
.tech > summary { cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 14.5px; font-weight: 600; color: var(--accent); padding: 4px 0; list-style: none; }
.tech > summary::-webkit-details-marker { display: none; }
.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); }
.fbody { padding: 10px 0 0; display: flex; flex-direction: column; gap: 10px; max-width: 72ch; font-size: 16.5px; }
.ftech { font-family: var(--sans); font-weight: 600; font-size: 15px; }
.prior { color: var(--muted); }
.nums { font-family: var(--mono); font-size: 13.5px; background: var(--surface); border: 1px solid var(--line); padding: 8px 10px; border-radius: 3px; }
.caveat { color: var(--warn); font-size: 16px; }
.where { font-family: var(--sans); font-size: 14px; color: var(--muted); }
.found-list { list-style: none; margin: 0; padding: 0; }
.found-list .fcard { grid-template-columns: 260px minmax(0, 1fr); }
@media (max-width: 700px) { .fcard, .found-list .fcard { grid-template-columns: minmax(0, 1fr); } }

/* meters, tags */
.fgroup { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; font-size: 15px; }
.fgn { font-size: 13px; color: var(--faint); font-weight: 500; }
.meter { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--ink); 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); }
.meter.descriptive .pips { display: none; }
.nov { display: inline-block; font-family: var(--sans); font-size: 12.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); white-space: nowrap; }
.nov.nov-new { background: var(--rust); border-color: var(--rust); color: var(--paper); }
.nov.nov-partly { border-color: var(--rust); color: var(--rust); }
.nov.nov-tests { border-color: var(--accent); color: var(--accent); }
.nov.nov-known { border-style: dashed; }
.tag { font-family: var(--sans); font-size: 11.5px; letter-spacing: 0.04em; text-transform: uppercase; padding: 2px 8px; border-radius: 3px; white-space: nowrap; border: 1px solid var(--line-strong); color: var(--muted); font-weight: 600; line-height: 1.6; display: inline-block; }
.tag.ok, .tag.done { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.tag.part, .tag.run { border-color: var(--accent); color: var(--accent); }
.tag.weak, .tag.warn { border-color: var(--warn); color: var(--warn); }
.tag.bad, .tag.out { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.tag.wait, .tag.open { border-style: dashed; }
.levels { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.levels > div { border-top: 1px solid var(--line); padding: 10px 0; display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.levels dt { margin: 0; } .levels dd { margin: 0; color: var(--muted); font-size: 16px; }
.key-h { margin: 22px 0 6px; font-size: 16px; }

/* articles (known, disputed) */
.art-row { display: grid; grid-template-columns: minmax(0, 38em) minmax(0, 360px); 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-text h3 { margin: 6px 0 8px; }
.art-text p { margin: 0 0 12px; }
.art-row .fig { margin-top: 8px; }
@media (max-width: 960px) { .art-row { grid-template-columns: minmax(0, 1fr); } }
.dt, .tl { display: block; width: 100%; max-width: 360px; height: auto; font-family: var(--sans); }
.tl { max-width: 520px; }

/* tried */
.tried-list { list-style: none; margin: 0; padding: 0; max-width: 46em; }
.tried-list > li { border-top: 1px solid var(--line); padding: 14px 0; display: flex; flex-direction: column; gap: 6px; }
.tr-head { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; justify-content: space-between; }
.tr-meta { font-family: var(--sans); font-size: 13.5px; color: var(--muted); }
.tried-list p { font-size: 16.5px; }
.legend-row { list-style: none; margin: 0; padding: 0; font-size: 15px; color: var(--muted); display: flex; flex-direction: column; gap: 8px; }
.legend-row li { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }

/* pipeline */
.pipe { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.pipe li { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px 14px 14px 0; border-top: 2px solid var(--line-strong); font-family: var(--sans); }
.pipe li::before { content: ""; position: absolute; top: -6px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line-strong); }
.pipe svg { width: 28px; height: 28px; margin: 2px 0 6px; fill: none; stroke: currentColor; color: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pipe b { font-size: 15.5px; }
.pipe span { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
@media (max-width: 860px) { .pipe { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; } }

/* rules */
.rules { list-style: none; margin: 0; padding: 0; counter-reset: r; border-top: 1px solid var(--line); max-width: 52em; }
.rules li { counter-increment: r; padding: 14px 0 14px 44px; border-bottom: 1px solid var(--line); position: relative; }
.rules li::before { content: counter(r, decimal-leading-zero); position: absolute; left: 0; top: 16px; font-family: var(--sans); font-size: 13px; color: var(--muted); }
.rules b { font-family: var(--sans); font-weight: 650; }
.rules span { color: var(--muted); }
.mk { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; max-width: 48em; }
.mk > li { position: relative; padding-left: 22px; }
.mk > li::before { content: ""; position: absolute; left: 0; }
.crit { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; max-width: 48em; }

/* compat figure */
.compat { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.cp-n { font-family: var(--sans); font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.cp-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(90px, 1.1fr) minmax(0, 1fr) 120px; gap: 10px; align-items: center; font-family: var(--sans); font-size: 14px; }
.cp-s { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 6px; padding: 8px 10px; line-height: 1.3; }
.cp-p { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.cp-p .lg { width: 100%; }
.cp-p small { font-size: 12px; color: var(--muted); line-height: 1.3; }
.cp-v { font-weight: 650; }
.cp.bad .cp-v { color: var(--bad); }
.cp.ok .cp-v { color: var(--ok); }
@media (max-width: 640px) { .cp-row { grid-template-columns: minmax(0, 1fr); } .cp-p { flex-direction: row; } .cp-p .lg { width: 40px; transform: rotate(90deg); } }

/* ledger and data */
.ledger { display: flex; flex-direction: column; gap: 14px; }
.lrow { display: flex; flex-direction: column; gap: 6px; }
.ptiles { display: flex; flex-wrap: wrap; gap: 4px; max-width: 560px; }
.pt { width: 14px; height: 18px; border-radius: 2px; display: inline-block; }
.pt.full { background: var(--accent); }
.pt.abstract { background: repeating-linear-gradient(135deg, var(--accent) 0 2px, transparent 2px 5px); box-shadow: inset 0 0 0 1px var(--accent); }
.pt.meta { box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.dl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); font-family: var(--sans); }
.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, .dl code + span { color: var(--muted); font-size: 14.5px; }

/* board */
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; font-family: var(--sans); max-width: 860px; }
.bcol { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.bh { font-size: 14px; color: var(--muted); border-bottom: 2px solid var(--ink); padding-bottom: 6px; }
.bh b { font-size: 22px; color: var(--ink); margin-right: 4px; }
.bcol ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.bc { font-size: 13px; line-height: 1.3; padding: 6px 8px; border-radius: 4px; border: 1px solid var(--line); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc span { color: var(--faint); font-variant-numeric: tabular-nums; }
.bc.open { border-color: var(--accent); color: var(--ink); background: var(--surface); }
.bc.claimed { border-style: dashed; border-color: var(--line-strong); }
@media (max-width: 640px) { .board { grid-template-columns: minmax(0, 1fr); } .bc { white-space: normal; } }

/* tracker */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); font-family: var(--sans); max-width: 860px; }
.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-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-family: var(--sans); font-size: 15px; max-width: 760px; }
.mtrack { height: 10px; border-left: 1.5px solid var(--ink); display: block; background: var(--line-soft); }
.mfill { height: 100%; background: var(--accent); display: block; }
.ms .n { font-size: 13px; text-align: right; white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
.tasks { list-style: none; margin: 0; padding: 0; max-width: 60em; }
.task { border-top: 1px solid var(--line); }
.task summary { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 8px 12px; align-items: baseline; padding: 12px 0; cursor: pointer; list-style: none; font-family: var(--sans); font-size: 15.5px; }
.task summary::-webkit-details-marker { display: none; }
.task .id { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.task .more-t { font-size: 16px; color: var(--muted); padding: 0 0 14px 56px; max-width: 72ch; display: flex; flex-direction: column; gap: 6px; }
.landed { list-style: none; margin: 0; padding: 0; max-width: 60em; }
.landed li { border-top: 1px solid var(--line); padding: 12px 0; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px; }
.landed .id { font-family: var(--sans); font-size: 13px; color: var(--muted); }
.landed p { font-size: 16px; }
.landed .lt { font-family: var(--sans); font-size: 13.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }

/* contribute */
.starters { list-style: none; margin: 0; padding: 0; max-width: 60em; }
.starter { border-top: 1px solid var(--line); }
.starter summary { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; padding: 14px 0; cursor: pointer; list-style: none; font-family: var(--sans); }
.starter summary::-webkit-details-marker { display: none; }
.st { font-weight: 600; font-size: 16px; }
.sid { font-size: 13px; color: var(--muted); }
.sb { padding: 0 0 16px 56px; display: flex; flex-direction: column; gap: 10px; max-width: 72ch; font-size: 16.5px; }
.sb p { color: var(--muted); }
.sb b { color: var(--ink); }
pre.code { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 12px 14px; overflow-x: auto; font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; }
pre.code code { background: none; border: 0; padding: 0; font-size: inherit; }
.asks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; max-width: 60em; }
.asks li { border-top: 1px solid var(--line); padding: 14px 0; display: flex; flex-direction: column; gap: 4px; }
.asks b { font-family: var(--sans); }
.asks span { color: var(--muted); font-size: 16px; }

/* theories */
.settings { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; max-width: 960px; }
.settings li { display: flex; flex-direction: column; gap: 6px; font-family: var(--sans); }
.settings svg { width: 100%; height: auto; border-radius: 8px; display: block; border: 1px solid var(--line); }
.settings b { font-size: 15px; }
.settings span { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
@media (max-width: 860px) { .settings { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cov th, .cov td { padding-right: 10px; }
.cov thead th span { display: block; font-size: 11px; text-transform: none; letter-spacing: 0; font-weight: 500; }
.cov thead abbr { text-decoration: none; }
.cov td { vertical-align: middle; }
.cov td.ex { color: var(--muted); font-size: 13.5px; min-width: 14em; vertical-align: top; }
.cov .na { font-size: 11.5px; color: var(--faint); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; max-width: 60em; }
.cards .card { border-top: 1px solid var(--line); padding: 14px 0; display: flex; flex-direction: column; gap: 6px; }
.cards .card p { color: var(--muted); font-size: 16px; }
.chip { font-family: var(--sans); font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); white-space: nowrap; }
.chip-ok { border-color: var(--ok); color: var(--ok); }
.chip-warn { border-color: var(--warn); color: var(--warn); }
.chip-bad { border-color: var(--bad); color: var(--bad); }
.chip-open { border-style: dashed; }

/* news */
.news-feeds { position: relative; }
.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); font-family: var(--sans); }
.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); }
html:not(.js) .zoombar { display: none; }
.ncard { position: relative; padding: 24px 0; border-top: 1px solid var(--line); }
.nmeta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin-bottom: 10px; font-family: var(--sans); font-size: 13px; color: var(--faint); }
.nkind { letter-spacing: 0.06em; text-transform: uppercase; font-size: 12px; color: var(--rust); font-weight: 600; }
.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 { font-size: 19px; font-weight: 650; line-height: 1.3; }
.nh a { color: inherit; text-decoration: none; }
.nh a::after { content: ""; position: absolute; inset: 0; }
.nh a:hover { text-decoration: underline; text-underline-offset: .15em; }
.nsrc { font-family: var(--sans); font-size: 14px; color: var(--muted); }
.nsrc a { position: relative; z-index: 1; overflow-wrap: anywhere; }
.z { font-size: 16.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="tech"] .z-tech { color: var(--ink); font-size: 15.5px; }
.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 { font-size: 15px; color: var(--muted); line-height: 1.5; }
.nborrow b { color: var(--ink); font-family: var(--sans); }
.nthumb { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; border: 1px solid var(--img-edge); background: var(--stone); }
.illustration-note { color: var(--faint); font-family: var(--sans); font-size: 14px; }
@media (max-width: 640px) { .nrow { grid-template-columns: minmax(0, 1fr); } .nborrow { flex-direction: column; gap: 6px; } .zoombar span { display: none; } .zoombar button { padding: 7px 10px; font-size: 13px; } .zoom-controls { gap: 2px; } }
.news-article { max-width: 856px; padding-top: 36px; }
.nback { font-family: var(--sans); font-size: 15px; }
.news-article header .kicker { margin: 24px 0 12px; }
.news-article h1 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.1; }
.article-source { color: var(--muted); margin-top: 18px; font-family: var(--sans); font-size: 15px; overflow-wrap: anywhere; }
.article-visual { margin: 28px 0; }
.article-visual img { display: block; width: 100%; max-width: 600px; height: auto; border-radius: 10px; border: 1px solid var(--img-edge); }
.article-visual figcaption { margin-top: 8px; }
.news-article section { margin: 30px 0; }
.news-article section h2 { font-size: 24px; margin-bottom: 12px; }
.news-article section p { margin: 10px 0; overflow-wrap: anywhere; }
.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; font-family: var(--sans); }
.article-neighbors a { display: flex; flex-direction: column; gap: 6px; line-height: 1.45; }
.article-neighbors small { color: var(--faint); }
@media (max-width: 640px) { .article-neighbors { grid-template-columns: minmax(0, 1fr); } }

/* resources */
.logo-show { display: flex; flex-wrap: wrap; gap: 16px; }
.logo-tile { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 28px; display: grid; place-items: center; }
.logo-tile.wide { flex: 1 1 320px; }
.logo-tile svg { display: block; }
.logo-tile .mark-big { width: 110px; height: 110px; fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.logo-tile .word-big { width: min(100%, 360px); height: auto; }
.hashes { list-style: none; margin: 0; padding: 0; font-family: var(--sans); max-width: 60em; }
.hashes li { border-top: 1px solid var(--line); padding: 10px 0; display: flex; flex-direction: column; gap: 2px; }
.hashes code { font-size: 12px; }

@media (max-width: 960px) {
  .block { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .rail { flex-direction: row; align-items: baseline; gap: 12px; padding-bottom: 8px; }
  .rail span { font-size: 20px; }
  .split, .two-col, .foot-row, .asks, .cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .hero, .page-head { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 28px; }
  :root { --head-h: 58px; }
  .bar, .bar.goal { grid-template-columns: minmax(0, 1fr) 64px; row-gap: 4px; }
  .bar .bl { grid-column: 1 / -1; }
  .gaps .bar { grid-template-columns: minmax(0, 1fr) 54px; }
  .cmap li { grid-template-columns: minmax(0, 1fr); }
  .ladder { display: flex; flex-direction: column-reverse; gap: 4px; border-bottom: 0; border-left: 2px solid var(--ink); }
  .rung { height: auto; border: 1.5px solid var(--line-strong); border-left: 0; border-radius: 0 3px 3px 0; padding: 7px 10px; flex-direction: row; justify-content: space-between; align-items: baseline; gap: 10px; }
  .rung b { font-size: 13.5px; }
  .rung.part { background: linear-gradient(var(--paper), var(--paper)) left / 62% 100% no-repeat, repeating-linear-gradient(135deg, var(--accent) 0 2px, transparent 2px 6px); }
  .rung.part b { background: var(--paper); }
  .rung.part span { padding: 0 5px; border-radius: 2px; align-self: auto; }
  .r1 { width: 100%; } .r2 { width: 92%; } .r3 { width: 84%; } .r4 { width: 76%; } .r5 { width: 68%; }
  .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; }
  .levels > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .sb, .task .more-t { padding-left: 0; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ladder-list li { grid-template-columns: 36px minmax(0, 1fr); }
  .ladder-list li .chip { grid-column: 2; justify-self: start; }
}
@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); } }
}
@media (prefers-reduced-motion: reduce) { .btn, .menu-btn path, .tech > summary::after { transition: none; } .btn:active { transform: none; } }
@media (forced-colors: active) {
  .fill, .mfill, .rung.done, .k.done, .pt.full { forced-color-adjust: none; background: CanvasText; }
}

/* news: topic filter and newsletter signup */
.nfilter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.nfilter button { font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); background: transparent; border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 13px; cursor: pointer; }
.nfilter button span { font-weight: 500; color: var(--muted); margin-left: 2px; font-variant-numeric: tabular-nums; }
.nfilter button:hover { border-color: var(--ink); }
.nfilter button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.nfilter button[aria-pressed="true"] span { color: inherit; opacity: .75; }
.nsignup { display: grid; gap: 14px 32px; align-items: center; margin: 22px 0 6px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
@media (min-width: 860px) { .nsignup { grid-template-columns: 1fr auto; } }
.nsu-h { margin: 0; font-weight: 700; font-size: 17px; }
.nsu-p { margin: 4px 0 0; font-size: 14.5px; color: var(--muted); max-width: 56ch; }
.nsu-row { display: flex; gap: 8px; flex-wrap: wrap; }
.nsu-row input[type=email] { font: inherit; font-size: 15px; min-width: 0; flex: 1 1 220px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); }
.nsu-row button { font: inherit; font-size: 15px; font-weight: 600; padding: 9px 18px; border-radius: 999px; border: 0; background: var(--ink); color: var(--paper); cursor: pointer; }
.nsu-row button:disabled { opacity: .6; cursor: default; }
.nsu-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.nsu-msg { grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--muted); min-height: 0; }
.nsu-msg:empty { display: none; }
.nsignup.done .nsu-row { display: none; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.news-tools { margin-top: 26px; }
.news-tools .nsignup { margin: 0 0 22px; }
@media (min-width: 860px) { .nsu-row { flex-wrap: nowrap; } .nsu-row input[type=email] { width: 260px; flex: none; } }

/* news as a grid of cards */
.newsblock.block { grid-template-columns: minmax(0, 1fr); }
.newsblock .rail { display: flex; gap: 10px; align-items: baseline; } .newsblock .rail span { font-size: 18px; display: inline; }
.ngrid { display: grid; gap: 36px 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 { 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 .nborrow { flex-direction: column; gap: 6px; }
.ngrid .nborrow p { font-size: 14px; }

/* the landscape snapshot (news page; site/landscape_view.py) */
.landscape { --ls-sans: var(--sans); --ls-mono: var(--mono); --ls-track: var(--line); --ls-up: var(--ok); --ls-down: var(--bad); }
.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); }
}

/* library page */
.ltools { display: grid; gap: 12px; margin-bottom: 8px; }
.ltools input[type="search"] { font: inherit; font-size: 16px; width: 100%; max-width: 560px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--paper); color: var(--ink); }
.lflab { font-size: 14px; font-weight: 600; color: var(--muted); align-self: center; margin-right: 4px; }
.lgrid { display: grid; gap: 28px 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .lgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .lgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lcard { display: flex; flex-direction: column; min-width: 0; }
.lcard[hidden] { display: none; }
.lthumb { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: cover; border-radius: 8px; border: 1px solid var(--img-edge); background: var(--stone); }
.lcard .nmeta { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 10px 0 4px; font-size: 13px; color: var(--muted); }
.lrel { font-weight: 600; }
.lrel-core { color: var(--accent); }
.lh { font-size: 16.5px; line-height: 1.3; margin: 0 0 4px; overflow-wrap: anywhere; }
.lcard .nsrc { font-size: 13.5px; color: var(--muted); margin: 0 0 6px; overflow-wrap: anywhere; }
.llead { font-size: 14.5px; margin: 0 0 6px; }
.ltasks { margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 4px; }
.ltask { font-size: 12px; font-weight: 600; border: 1px solid var(--line-strong); border-radius: 999px; padding: 1px 8px; color: var(--muted); }
.lcard details summary { cursor: pointer; font-weight: 600; font-size: 14.5px; color: var(--accent); }
.ldl { margin: 8px 0 0; font-size: 14.5px; }
.ldl dt { font-weight: 600; margin-top: 8px; }
.ldl dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.lcard .note { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.libblock.block { grid-template-columns: minmax(0, 1fr); }
.ltools { margin-top: 20px; }

/* latest updates: a dated timeline, newest first (site/updates.json) */
.updates { list-style: none; margin: 8px 0 0; padding: 0; max-width: 46rem; }
.upd { position: relative; padding: 0 0 22px 26px; }
.upd::before { content: ""; position: absolute; left: 5px; top: 14px; bottom: -6px; width: 1px; background: var(--line-strong); }
.upd:last-child { padding-bottom: 0; }
.upd:last-child::before { display: none; }
.upd::after { content: ""; position: absolute; left: 0; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); border: 2px solid var(--faint); box-sizing: border-box; }
.upd-ok::after { border-color: var(--ok); background: var(--ok); }
.upd-bad::after { border-color: var(--bad); }
.upd-warn::after { border-color: var(--warn); }
.upd-meta { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.upd-meta time { font-weight: 600; color: var(--ink); }
.upd h3 { margin: 6px 0 0; font-size: 18px; line-height: 1.3; letter-spacing: -0.005em; text-wrap: balance; }
.upd h3 a { color: inherit; text-decoration: none; }
.upd h3 a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 0.18em; }
.upd > p:last-child { margin: 4px 0 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; text-wrap: pretty; }
.upd-page { padding-top: 8px; padding-bottom: 56px; }
.upd-page .updates { max-width: 48rem; }

/* 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; }

/* Family layer shared by the Open Citizen Science projects, modelled on Open Indus's structure (header, grouped menus,
   numbered sections, short homepage). Same file in open-mind/site and open-origins/site; keep them identical. build.py
   appends it after site.css and before brand.css, so each project's brand.css sets its own colours, divider and marker.
   Type: one body typeface, Open Indus Text (Instrument Sans base, OFL), in sentence case. No display cut. */
@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; }
:root {
  --fam-text: "Open Indus Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sans: var(--fam-text); --serif: var(--fam-text);
  --track-label: 0.06em;
  --fam-head-h: 68px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}
body { font-family: var(--fam-text); font-size: 18px; line-height: 1.6; }
:is(h1, h2, h3, h4, .brand, nav, .kicker, .chip, .meta, th, .tid, .foot, .rail, .btn, .claim, figcaption, .theme, .menu-btn, .jump, .more-link, summary, .lede, .state) { font-family: var(--fam-text); }
h1, h2 { font-family: var(--fam-text); text-transform: none; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(36px, 5.4vw, 72px); line-height: 1.04; }
h2 { font-size: clamp(25px, 2.8vw, 36px); line-height: 1.12; }
h3 { font-family: var(--fam-text); font-size: 20px; font-weight: 700; letter-spacing: 0; }
.page-head h1, .hero:not(.home-hero) h1 { font-size: clamp(32px, 4.4vw, 60px); }
:is(.kicker, .rail, .foot-h) { font-family: var(--fam-text); letter-spacing: var(--track-label); }
.kicker { font-size: 13px; text-transform: uppercase; color: var(--muted); font-weight: 400; margin: 0; }
.rail { font-size: 13px; text-transform: uppercase; color: var(--muted); font-weight: 400; display: flex; flex-direction: column; gap: 2px; align-self: start; }
.rail span { display: block; line-height: 1; font-size: 28px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
@media (max-width: 899px) { .rail { flex-direction: row; align-items: baseline; gap: 12px; padding-bottom: 6px; } .rail span { font-size: 20px; display: inline; } }
.state { font-size: clamp(21px, 2vw, 26px); line-height: 1.35; color: var(--ink); font-weight: 500; max-width: 40ch; margin: 0; }
.btn { font-family: var(--fam-text); font-weight: 700; }

/* ---------------------------------------------------------------- header */
.site-head { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line); background: var(--paper); font-family: var(--fam-text); }
.site-head .head-row { display: flex; align-items: center; gap: 12px 28px; min-height: var(--fam-head-h); padding-top: 10px; padding-bottom: 10px; flex-wrap: nowrap; }
.site-head .brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; margin-right: auto; min-width: 0; }
.site-head .brand .wordmark { height: 34px; width: auto; flex: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; align-items: center; gap: 4px 26px; font-size: 17px; }
.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(--motif, var(--accent)); }
.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: 330px; 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; }
.site-nav .ddm a { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 8px; border: 0; color: var(--ink); text-decoration: none; box-shadow: none; }
.ddm a:hover, .ddm a[aria-current="page"] { background: var(--paper); }
.ddm a[aria-current="page"] b { color: var(--motif, var(--accent)); }
.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(--motif, var(--accent)); 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; }
.ext-ic { margin-left: 3px; }
.site-nav .nav-cta a { display: inline-flex; color: var(--on-accent, var(--paper)); background: var(--accent); border: 0; border-radius: 999px; padding: 7px 16px; font-weight: 600; text-decoration: none; box-shadow: none; }
.site-nav .nav-cta a:hover { color: var(--on-accent, var(--paper)); filter: brightness(1.08); }
.site-head .theme, .site-head .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; }
.site-head .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); }
@media (min-width: 901px) {
  .js .site-head .site-nav { display: block; position: static; background: none; border: 0; padding: 0; margin: 0; box-shadow: none; }
  .js .site-head .site-nav ul { flex-direction: row; font-size: 17px; gap: 4px 26px; }
  .js .site-head .site-nav li + li { border-top: 0; }
}
@media (max-width: 900px) {
  .site-head .head-row { gap: 6px 8px; }
  .site-head .brand .wordmark { height: 30px; }
  html:not(.js) .site-head .head-row { flex-wrap: wrap; }
  html:not(.js) .site-nav { order: 3; width: 100%; }
  .js .site-head .menu-btn { display: inline-flex; }
  .js .site-head .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line-strong);
    padding: 4px max(16px, env(safe-area-inset-left, 0px)) 16px; max-height: calc(100dvh - var(--fam-head-h)); overflow-y: auto; }
  .js .site-head.open .site-nav { display: block; }
  .js .site-head .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; font-size: 18px; }
  .js .site-nav li + li { border-top: 0; }
  .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(--fam-text); color: var(--muted); padding: 18px 0 6px; border: 0; cursor: default; pointer-events: none; font-weight: 400; }
  .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 .site-nav .ddm a { padding: 10px 0; min-height: 0; }
  .js .site-nav .nav-cta { padding: 16px 0 8px; }
  .js .site-nav .nav-cta a { display: flex; justify-content: center; min-height: 46px; align-items: center; }
}
@media (max-width: 420px) { .site-head .theme span { display: none; } }

/* ---------------------------------------------------------------- footer */
.site-foot { border-top: 1px solid var(--line); margin-top: clamp(44px, 5vw, 72px); padding: 32px 0 48px; font-family: var(--fam-text); font-size: 15px; color: var(--muted); }
.site-foot .foot-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px 48px; }
.site-foot .foot-brand { display: flex; gap: 12px; align-items: flex-start; }
.site-foot .foot-brand .mark { width: 40px; height: 40px; flex: none; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.site-foot .foot-brand .wordmark { height: 28px; width: auto; display: block; }
.site-foot .foot-brand p { margin: 4px 0 0; }
.site-foot .foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.site-foot .foot-links { display: flex; flex-direction: column; gap: 2px; }
.site-foot .foot-links a { padding: 3px 0; color: var(--muted); }
.site-foot .foot-links a:hover { color: var(--ink); }
.site-foot .foot-h { font-size: 12px; font-weight: 400; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; white-space: nowrap; }
.site-foot .foot-note { grid-column: 1 / -1; font-size: 13.5px; border-top: 1px solid var(--line); padding-top: 14px; margin: 0; max-width: none; }
@media (max-width: 760px) { .site-foot .foot-row { grid-template-columns: 1fr; } .site-foot .foot-cols { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------------------------- home: hero, frieze, short sections */
.home-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px 48px; align-items: center; padding-top: clamp(32px, 6vw, 72px); }
.home-hero h1 { font-size: clamp(34px, 4.8vw, 64px); }
.home-hero .hero-text { display: flex; flex-direction: column; gap: 20px; min-width: 0; max-width: 760px; }
.home-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 4px 0 0; }
.home-hero .btn { font-size: 18px; }
.home-hero figcaption { font-size: 13px; }
@media (max-width: 900px) { .home-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 28px; } }
.band { margin-top: clamp(44px, 5vw, 72px); margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); color: var(--motif, var(--accent)); }
.band-in { height: 60px; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; position: relative; }
.band-in svg { position: absolute; top: 0; left: 0; height: 100%; width: auto; max-width: none; opacity: 0.85; }
@media (prefers-reduced-motion: no-preference) { .band-in svg { animation: band-run 120s linear infinite; will-change: transform; } }
@keyframes band-run { to { transform: translateX(-33.333%); } }
@media (max-width: 760px) { .band-in { height: 44px; } }
.band + section::before, .band + .block::before { display: none !important; }
.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); max-width: none; }
.found li::before { display: none; }
.found b { font-weight: 700; color: var(--ink); }
.home .say p { font-size: 19px; line-height: 1.6; }
.home .say p + p { margin-top: 12px; }
.plate { margin: 0; }
.plate figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.plate figcaption .cat { display: block; color: var(--ink); font-size: 12.5px; letter-spacing: 0.02em; }

/* 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; } }

/* 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; }

/* Open Origins brand: deep time in rock. Pale limestone paper, basalt-dark text, deep-sea teal for links and data.
   Iron-oxide rust is the one motif colour (ribose-ring list markers, the current page, a first break). Section dividers
   are a strip of banded iron formation, the way Open Indus uses brick courses. Appended after site.css by build.py. */
:root {
  --paper: #F1EEE6; --surface: #F9F7F1; --ink: #1C1B17; --muted: #575449; --faint: #6A665A; --line: #DCD6C9; --line-strong: #BFB7A6; --line-soft: #E7E2D7;
  --accent: #1D6670; --on-accent: #FFFFFF; --ok: #1D6A44; --ok-soft: #DCEFE4; --warn: #7A5200; --warn-soft: #F3E6C8; --bad: #9B2C2C; --bad-soft: #F6DEDC;
  --rust: #A4512B; --stone: #E2D9C6; --sea: #DAE7E4; --ice: #E6EEF0; --band-a: #CB9471; --band-b: #E0D3BA; --band-c: #BBAA90; --lam: rgb(70 45 20 / 0.22); --grain: #9C8D76;
  --img-edge: rgb(0 0 0 / 0.1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --paper: #11110E; --surface: #1A1A16; --ink: #E9E6DD; --muted: #A39E91; --faint: #8C877B; --line: #2A2924; --line-strong: #403D35; --line-soft: #201F1B;
  --accent: #79C2C9; --on-accent: #0C1A1C; --ok: #7FD1A5; --ok-soft: #15281F; --warn: #E3B862; --warn-soft: #2E2512; --bad: #EE9A94; --bad-soft: #341A19;
  --rust: #D98257; --stone: #26231D; --sea: #12201F; --ice: #18211F; --band-a: #6B3D26; --band-b: #39332A; --band-c: #4B4236; --lam: rgb(0 0 0 / 0.35); --grain: #5C5345;
  --img-edge: rgb(255 255 255 / 0.1);
  color-scheme: dark; } }
:root[data-theme="dark"] {
  --paper: #11110E; --surface: #1A1A16; --ink: #E9E6DD; --muted: #A39E91; --faint: #8C877B; --line: #2A2924; --line-strong: #403D35; --line-soft: #201F1B;
  --accent: #79C2C9; --on-accent: #0C1A1C; --ok: #7FD1A5; --ok-soft: #15281F; --warn: #E3B862; --warn-soft: #2E2512; --bad: #EE9A94; --bad-soft: #341A19;
  --rust: #D98257; --stone: #26231D; --sea: #12201F; --ice: #18211F; --band-a: #6B3D26; --band-b: #39332A; --band-c: #4B4236; --lam: rgb(0 0 0 / 0.35); --grain: #5C5345;
  --img-edge: rgb(255 255 255 / 0.1);
  color-scheme: dark; }

/* divider: a plain hairline between sections */
.block::before { height: 1px; background: var(--line); }

/* list marker: a five-sided ribose ring, the sugar in RNA */
.mk > li::before { width: 10px; height: 10px; top: 0.5em; background: var(--rust);
  clip-path: polygon(50% 0, 100% 38%, 81% 100%, 19% 100%, 0 38%); }

/* hero: a stromatolite cut in half */
.hero-art svg { border-radius: 12px; }
.hero-art .sed { fill: var(--stone); } .hero-art .sea { fill: var(--sea); }
.hero-art .ba { fill: var(--band-a); } .hero-art .bb { fill: var(--band-b); } .hero-art .bc { fill: var(--band-c); }
.hero-art .lam { fill: none; stroke: var(--lam); stroke-width: 0.7; } .hero-art .gr { fill: var(--grain); }
.hero-art .tl { font: 600 11.5px -apple-system, "Inter", system-ui, sans-serif; fill: var(--ink); paint-order: stroke; stroke: var(--stone); stroke-width: 3px; stroke-linejoin: round; }
.hero-art .ar { fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; paint-order: stroke; }

/* pathway glyphs: steps */
.g-yes { fill: var(--accent); }
.g-pur { fill: none; stroke: var(--accent); stroke-width: 2; }
.g-pdot { fill: var(--accent); }
.g-miss { fill: none; stroke: var(--muted); stroke-width: 1.4; stroke-dasharray: 2.6 2.4; }
.g-unread { fill: none; stroke: var(--muted); stroke-width: 1.4; stroke-dasharray: 0.5 2.4; stroke-linecap: round; }
.g-q { font: 700 10px -apple-system, system-ui, sans-serif; fill: var(--muted); }
/* pathway glyphs: hand-offs */
.l-broken { stroke: var(--bad); stroke-width: 2; }
.l-x { stroke: var(--bad); stroke-width: 2.2; stroke-linecap: round; fill: none; }
.l-blocked { stroke: var(--muted); stroke-width: 1.6; stroke-dasharray: 3 3; }
.l-unv { stroke: var(--accent); stroke-width: 2; }
.l-dot { fill: var(--paper); stroke: var(--accent); stroke-width: 1.6; }
.l-ok { stroke: var(--accent); stroke-width: 2.4; }

/* finding minis */
.m-t { font-size: 11px; font-weight: 600; fill: var(--ink); }
.m-s { font-size: 10px; fill: var(--muted); }
.m-n { font-size: 18px; font-weight: 700; fill: var(--ink); }
.m-cell { fill: var(--paper); stroke: var(--line-strong); }
.m-cellbad { fill: var(--bad-soft); stroke: var(--bad); }
.m-x { stroke: var(--bad); stroke-width: 1.8; stroke-linecap: round; fill: none; }
.m-x2 { stroke: var(--bad); stroke-width: 2; stroke-linecap: round; fill: none; }
.m-ok { stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.m-blk { stroke: var(--muted); stroke-width: 1.6; stroke-dasharray: 3 2; }
.m-unv { fill: none; stroke: var(--accent); stroke-width: 1.6; }
.m-axis { stroke: var(--ink); stroke-width: 1.2; fill: none; }
.m-even { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 4 3; fill: none; }
.m-line { stroke: var(--accent); stroke-width: 2.2; fill: none; stroke-linejoin: round; }
.m-alt { stroke: var(--muted); stroke-width: 1.4; stroke-dasharray: 5 3; fill: none; }
.m-dot { fill: var(--accent); }

/* deep time and tried timelines */
.d-axis { stroke: var(--ink); stroke-width: 1.2; fill: none; }
.d-axis.dash { stroke-dasharray: 2 3; }
.d-s { font-size: 10.5px; fill: var(--muted); }
.d-t { font-size: 11.5px; fill: var(--ink); }
.d-dot { fill: var(--accent); }
.d-disp { fill: var(--paper); stroke: var(--accent); stroke-width: 1.6; }
.d-lead { stroke: var(--line-strong); fill: none; }
.d-life { fill: var(--accent); opacity: .35; }
.t-part { fill: var(--accent); }
.t-weak { fill: var(--paper); stroke: var(--warn); stroke-width: 1.5; }
.t-weakf { fill: var(--warn); }
.t-open { fill: var(--paper); stroke: var(--accent); stroke-width: 1.5; }
.t-wait { fill: none; stroke: var(--muted); stroke-width: 1.4; stroke-dasharray: 2 2; }

/* scenario settings (illustration) */
.s-sky { fill: var(--surface); } .s-sea { fill: var(--sea); } .s-ice { fill: var(--ice); }
.s-b1 { fill: var(--band-b); } .s-b2 { fill: var(--band-c); } .s-b3 { fill: var(--band-a); }
.s-water { fill: var(--sea); stroke: var(--accent); stroke-width: 1; }
.s-tide { fill: none; stroke: var(--accent); stroke-width: 1; stroke-dasharray: 3 3; }
.s-sun { fill: none; stroke: var(--rust); stroke-width: 1.6; }
.s-ray { stroke: var(--rust); stroke-width: 1.2; stroke-dasharray: 2 3; }
.s-chain { stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.s-min { fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; }
.s-cryst { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1; }
.s-brine { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.s-chim { fill: var(--band-a); stroke: var(--ink); stroke-width: 1; }
.s-lam { stroke: var(--lam); stroke-width: 1.2; }
.s-plume { fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-dasharray: 3 3; stroke-linecap: round; }
