/* 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: 1240px; 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:first-child { border-top-color: var(--ink); }
.pipe li:last-child { border-top-color: var(--accent); }
.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 li:first-child::before { border-color: var(--ink); background: var(--ink); }
.pipe li:last-child::before { border-color: var(--accent); background: var(--accent); }
.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 li:nth-child(4) svg { color: var(--rust); }
.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: 2.6; 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; }
}

/* 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 strip of banded iron formation, rust and chert in thin wavy layers */
.block::before {
  background: linear-gradient(var(--band-a) 0 30%, var(--band-b) 30% 48%, var(--band-a) 48% 66%, var(--band-c) 66% 100%);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12'%3E%3Cpath d='M0 2c25 0 25 2 50 2s25-3 50-3 25 2 50 2 25-1 50-1v9c-25 0-25-2-50-2s-25 2-50 2-25-3-50-3S25 10 0 10z'/%3E%3C/svg%3E") repeat-x left center / 200px 12px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12'%3E%3Cpath d='M0 2c25 0 25 2 50 2s25-3 50-3 25 2 50 2 25-1 50-1v9c-25 0-25-2-50-2s-25 2-50 2-25-3-50-3S25 10 0 10z'/%3E%3C/svg%3E") repeat-x left center / 200px 12px; }

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