/* Open Mind: a quiet research report on chart paper. Colour tokens, the divider trace and the list marker
   live in site/brand.css, which build.py appends after this file. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 "Iowan Old Style", "Charter", Georgia, serif; overflow-x: hidden; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 44px; } }
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; }
main:focus { outline: none; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
h1, h2, h3, h4, .brand, nav, .kicker, .chip, .meta, th, .tid, .foot, .rail, .btn, .claim, figcaption, .theme, .menu-btn, .jump, .more-link, summary { font-family: -apple-system, "Inter", "Segoe UI", system-ui, sans-serif; }
h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -0.015em; }
h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1.06; font-weight: 700; }
h2 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.18; margin-bottom: 12px; }
h3 { font-size: 18px; line-height: 1.3; margin: 22px 0 6px; }
p, li { text-wrap: pretty; max-width: 70ch; }
code { font: 0.84em ui-monospace, "SF Mono", Menlo, monospace; background: var(--surface); border: 1px solid var(--line); padding: 0.05em 0.35em; border-radius: 4px; overflow-wrap: anywhere; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ---------- header */
.head { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.head-in { display: flex; align-items: center; gap: 14px; min-height: 60px; }
.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; font-weight: 700; color: var(--ink); text-decoration: none; font-size: 17px; white-space: nowrap; }
.mark { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px 16px; flex-wrap: wrap; font-size: 14.5px; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 6px 0; display: block; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--ink); }
.site-nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--accent); }
.theme, .menu-btn { font-size: 13px; color: var(--muted); background: none; border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px 11px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; }
.theme:hover, .menu-btn:hover { color: var(--ink); }
.menu-btn { display: none; margin-left: auto; }
@media (max-width: 1000px) {
  .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); padding: 8px 16px 14px; margin: 0; }
  .js .head.open .site-nav { display: block; }
  .js .site-nav ul { flex-direction: column; }
  .js .site-nav a { padding: 10px 0; font-size: 16px; }
  .js .site-nav a[aria-current] { box-shadow: none; color: var(--accent); font-weight: 600; }
  .head-in { flex-wrap: nowrap; }
  html:not(.js) .head-in { flex-wrap: wrap; padding: 8px 0; }
}
@media (max-width: 560px) {
  .head-in { flex-wrap: wrap !important; row-gap: 0; padding-bottom: 6px; }
  .parent { flex-basis: 100%; font-size: 12px; padding-top: 7px; }
  .slash { display: none; } #theme-label { display: none; } .theme { padding: 5px 8px; }
}

/* ---------- page structure */
main > section { padding: clamp(32px, 5vw, 60px) 0; }
.hero { padding-top: clamp(40px, 7vw, 92px) !important; }
.hero.has-art { display: grid; gap: 28px 48px; align-items: center; }
@media (min-width: 940px) { .hero.has-art { grid-template-columns: 1fr 1.05fr; } }
.kicker { text-transform: uppercase; letter-spacing: 0.08em; font-size: 12.5px; color: var(--muted); margin: 0 0 14px; font-weight: 600; }
.lede { font-size: clamp(18px, 2vw, 20.5px); color: var(--muted); margin-top: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn { display: inline-flex; align-items: center; min-height: 42px; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; background: var(--surface); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.btn:hover { border-color: var(--ink); }
.btn.primary:hover { filter: brightness(1.08); }
.jump { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 22px; font-size: 14px; }
.jump a { color: var(--muted); }
.jump a:hover { color: var(--ink); }
.note { font-size: 14.5px; color: var(--muted); }
.more-link { margin: 18px 0 0; font-size: 15px; font-weight: 600; }
.more-link a::after { content: " →"; }
.intro { color: var(--muted); margin: 0 0 18px; }

.block { display: grid; grid-template-columns: 1fr; gap: 8px 40px; }
@media (min-width: 900px) { .block { grid-template-columns: 150px minmax(0, 1fr); } }
.rail { margin: 4px 0 0; font-size: 12.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; }
.rail span { display: block; font-size: 28px; color: var(--accent); letter-spacing: -0.02em; text-transform: none; font-weight: 600; }
@media (max-width: 899px) { .rail { display: flex; gap: 10px; align-items: baseline; } .rail span { font-size: 18px; display: inline; } }
.content { min-width: 0; }
.content > p { margin: 10px 0; }
.split { display: grid; gap: 24px 40px; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } .data-split { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } }
.say p:first-child { margin-top: 0; }
.figs { display: grid; gap: 16px; min-width: 0; }

/* ---------- figures (shared) */
figure { margin: 0; }
.fig, .ladder-fig, .pipe-fig { background: var(--chart); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px 14px; margin: 0; min-width: 0; }
.fig.narrow { max-width: 460px; margin-bottom: 18px; }
.claim { margin: 0 0 12px; font-size: 15px; font-weight: 650; line-height: 1.35; color: var(--ink); letter-spacing: -0.005em; }
figcaption { font-size: 12.5px; line-height: 1.45; color: var(--muted); margin-top: 12px; max-width: none; }
.fsvg { display: block; width: 100%; height: auto; max-height: 300px; overflow: visible; }
.fsvg text, .ffig text, .thy svg text, .how svg text { font-family: -apple-system, "Inter", system-ui, sans-serif; fill: var(--ink); }
.t { font-size: 13px; } .t-s { font-size: 12px; } .t-xs { font-size: 10px; fill: var(--muted) !important; } .t-b { font-size: 13px; font-weight: 650; }
.t-s.t-b { font-size: 12px; } .t-q { font-size: 26px; font-weight: 600; fill: var(--muted) !important; } .acc { fill: var(--accent) !important; } .mono { font-family: ui-monospace, Menlo, monospace !important; }
.s-ink, .s-mute, .s-acc, .s-line, .s-glow, .br, .zone { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.s-ink { stroke: var(--ink); stroke-width: 1.6; } .s-mute { stroke: var(--trace); stroke-width: 1.4; } .s-acc { stroke: var(--accent); stroke-width: 1.8; }
.s-line { stroke: var(--line-strong); stroke-width: 1; } .s-glow { stroke: var(--glow); stroke-width: 2; } .thin { stroke-width: 0.9; }
.dash { stroke-dasharray: 4 4; } .arr { marker-end: none; }
.f-acc { fill: var(--accent); stroke: none; } .f-soft { fill: color-mix(in srgb, var(--accent) 14%, var(--chart)); } .f-ink { fill: var(--ink); stroke: none; } .f-mute { fill: var(--line-strong); stroke: none; }
.card { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.2; }
.card.dash { stroke-dasharray: 4 4; } .card.s-acc { stroke: var(--accent); }
.br { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.4; } .br.dash { stroke: var(--muted); }
.zone { fill: color-mix(in srgb, var(--accent) 12%, transparent); stroke: none; }
.ffig { display: block; width: 100%; max-width: 240px; height: auto; overflow: visible; }
.ffig text { font-size: 12px; }
.key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font: 12.5px -apple-system, system-ui, sans-serif; color: var(--muted); }
.key span { display: inline-flex; align-items: center; gap: 6px; }
.k { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.k.done { background: var(--accent); } .k.part { background: color-mix(in srgb, var(--accent) 35%, var(--chart)); border: 1px solid var(--accent); } .k.open { border: 1.5px dashed var(--line-strong); }

/* ladder: five steps rising left to right */
.ladder { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; align-items: end; }
.rung { display: flex; flex-direction: column; gap: 2px; padding: 10px 10px 12px; border-radius: 8px 8px 4px 4px; font: 13px/1.3 -apple-system, system-ui, sans-serif; max-width: none; min-width: 0; }
.rung b { font-size: 12px; color: var(--muted); font-weight: 600; } .rung .nm { font-weight: 650; font-size: 14px; color: var(--ink); overflow-wrap: anywhere; } .rung .st { font-size: 12px; color: var(--muted); margin-top: auto; }
.r1 { min-height: 84px; } .r2 { min-height: 112px; } .r3 { min-height: 140px; } .r4 { min-height: 168px; } .r5 { min-height: 196px; }
.rung.done { background: var(--accent); } .rung.done b, .rung.done .nm, .rung.done .st { color: var(--paper); }
.rung.part { background: color-mix(in srgb, var(--accent) 22%, var(--chart)); border: 1px solid var(--accent); }
.rung.open { border: 1.5px dashed var(--line-strong); }
@media (max-width: 600px) {
  .ladder { grid-template-columns: 1fr; gap: 6px; }
  .rung { min-height: 0 !important; flex-direction: row; align-items: baseline; gap: 10px; padding: 9px 12px; border-radius: 6px; }
  .rung .st { margin: 0 0 0 auto; white-space: nowrap; }
  .r1 { margin-right: 40%; } .r2 { margin-right: 30%; } .r3 { margin-right: 20%; } .r4 { margin-right: 10%; }
  .ladder { display: flex; flex-direction: column-reverse; }
}

/* pipeline (home) and rule drawings (approach) */
.pipe, .how { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; counter-reset: s; }
.pipe { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pipe li, .how li { position: relative; display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px; max-width: none; font-family: -apple-system, system-ui, sans-serif; }
.pipe li:not(:last-child)::after { content: ""; position: absolute; right: -9px; top: 26px; width: 8px; height: 8px; border-top: 1.5px solid var(--line-strong); border-right: 1.5px solid var(--line-strong); transform: rotate(45deg); }
.pipe svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 4px; }
.pipe b, .how b { font-size: 14.5px; } .pipe span, .how span { font-size: 13px; color: var(--muted); line-height: 1.4; }
.how { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.how svg { width: 100%; max-width: 180px; height: auto; margin-bottom: 8px; }
.how li { counter-increment: s; } .how b::before { content: counter(s) ". "; color: var(--accent); }
@media (max-width: 860px) { .pipe { grid-template-columns: 1fr; } .pipe li { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 10px; } .pipe svg { margin: 0; align-self: center; } .pipe span { flex-basis: 100%; padding-left: 36px; } .pipe li:not(:last-child)::after { right: auto; left: 25px; top: auto; bottom: -9px; transform: rotate(135deg); } }

/* data matrix (home) */
.dmx { display: grid; gap: 6px; font-family: -apple-system, system-ui, sans-serif; }
.hrow, .drow { display: grid; grid-template-columns: 104px 1fr 1fr; gap: 6px; }
.hrow span { font-size: 12.5px; font-weight: 650; line-height: 1.3; padding: 0 2px 4px; }
.hrow em { display: block; font-style: normal; font-weight: 400; color: var(--muted); }
.fam { font-size: 13.5px; font-weight: 650; align-self: center; }
.cell { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 9px 11px; display: flex; flex-direction: column; min-width: 0; }
.cell b { font-size: 19px; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; } .cell span { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.cell.hi { background: var(--accent); border-color: var(--accent); } .cell.hi b, .cell.hi span { color: var(--paper); }
.cell.gap { background: transparent; border: 1.5px dashed var(--line-strong); } .cell.gap b { font-size: 14px; color: var(--muted); padding-top: 3px; }
@media (max-width: 460px) { .hrow, .drow { grid-template-columns: 74px 1fr 1fr; } .fam { font-size: 12.5px; } .cell { padding: 7px 8px; } .cell b { font-size: 16px; } }

/* home finding minis and findings cards */
.minis { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.mini { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; max-width: none; display: flex; flex-direction: column; gap: 10px; }
.mini .ffig { background: var(--chart); border-radius: 8px; padding: 8px; max-width: none; }
.mini h3 { margin: 0 0 4px; font-size: 16px; } .mini h3 a { color: var(--ink); text-decoration: none; } .mini h3 a:hover { color: var(--accent); }
.mini p { font-size: 15px; margin: 0; color: var(--muted); }

/* theory grid */
.thys { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.thy { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; max-width: none; font-family: -apple-system, system-ui, sans-serif; }
.thy svg { width: 100%; max-width: 168px; height: auto; margin-bottom: 4px; overflow: visible; }
.thy b { font-size: 14px; line-height: 1.3; } .thy span:not(.chip) { font-size: 13px; color: var(--muted); line-height: 1.35; margin-bottom: 6px; }
.thy .chip { margin-top: auto; } .thy.ours { border-style: dashed; background: transparent; }

/* odds and spectrum bars */
.oddbars { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-family: -apple-system, system-ui, sans-serif; }
.oddbars li { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) 82px; gap: 12px; align-items: center; max-width: none; }
.ol { font-size: 13.5px; line-height: 1.3; } .ov { font-size: 13px; font-weight: 650; text-align: right; font-variant-numeric: tabular-nums; }
.track { position: relative; display: block; height: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.track.none { border-style: dashed; background: transparent; }
.rng { position: absolute; top: -1px; bottom: -1px; background: var(--accent); border-radius: 999px; min-width: 6px; }
.axis { display: flex; justify-content: space-between; font: 11px -apple-system, system-ui, sans-serif; color: var(--muted); margin-top: 6px; }
.oddbars + .axis { margin-left: calc((100% - 82px - 24px) * 1.25 / 2.25 + 12px); margin-right: calc(82px + 12px); }
@media (max-width: 560px) { .oddbars li { grid-template-columns: 1fr 74px; } .oddbars .track { grid-column: 1 / -1; grid-row: 2; } .oddbars + .axis { margin: 6px 0 0; } }
.hbars { display: grid; gap: 10px; font-family: -apple-system, system-ui, sans-serif; }
.hb { display: grid; grid-template-columns: 130px 1fr 64px; gap: 10px; align-items: center; }
.bl { font-size: 13px; } .bv { font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.hb .track { height: 16px; } .fill { position: absolute; left: 0; top: -1px; bottom: -1px; border-radius: 999px; background: var(--line-strong); } .fill.hi { background: var(--accent); }
.hbars .axis { margin-left: 140px; margin-right: 74px; }

/* flows (track B, agent loop) */
.flow { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 30px 1fr; gap: 14px; position: relative; padding-bottom: 16px; max-width: none; }
.step:not(:last-child)::before { content: ""; position: absolute; left: 14px; top: 30px; bottom: 0; border-left: 1.5px solid var(--line-strong); }
.dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--accent); color: var(--accent); font: 600 13px -apple-system, system-ui, sans-serif; background: var(--chart); }
.sh { font: 650 15px/1.35 -apple-system, system-ui, sans-serif; padding-top: 4px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.step p { margin: 4px 0 0; font-size: 15px; color: var(--muted); }

/* board map */
.bmap { display: grid; gap: 8px; font-family: -apple-system, system-ui, sans-serif; }
.bm-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.bm-lab { font-size: 13px; color: var(--muted); line-height: 1.3; } .bm-lab b { color: var(--ink); margin-right: 4px; }
.bm-tiles { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.bm-tiles i { width: 16px; height: 16px; border-radius: 3px; display: block; }
.bt-done { background: var(--accent); } .bt-run { background: color-mix(in srgb, var(--accent) 35%, var(--chart)); border: 1px solid var(--accent); } .bt-open { border: 1.5px dashed var(--line-strong); }

/* ---------- chips and tags */
.chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; white-space: nowrap; border: 1px solid transparent; line-height: 1.5; vertical-align: 1px; }
.chip-ok { background: var(--ok-soft); color: var(--ok); }
.chip-warn { background: var(--warn-soft); color: var(--warn); }
.chip-bad { background: var(--bad-soft); color: var(--bad); }
.chip-open { background: transparent; color: var(--muted); border-color: var(--line-strong); }

/* ---------- lists, cards, tables */
.crit li, .rules li { margin-bottom: 8px; }
.crit { padding-left: 22px; } .crit + figure { margin: 22px 0 6px; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
table.score { border-collapse: collapse; width: 100%; min-width: 720px; font-size: 15px; }
.score th, .score td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.score thead th { font-size: 13px; color: var(--muted); font-weight: 600; }
.score tbody tr:last-child > * { border-bottom: 0; }
.score tbody th { font-weight: 650; width: 18%; }
.sub { display: block; font-weight: 400; color: var(--muted); font-size: 13px; margin-top: 2px; }
@media (max-width: 640px) {
  .tablewrap { border: 0; background: none; overflow: visible; }
  table.score { min-width: 0; }
  .score thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .score tr { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
  .score th, .score td { display: block; border: 0; padding: 0; width: auto !important; }
  .score td { margin-top: 10px; }
  .score td[data-l]::before { content: attr(data-l); display: block; font: 600 12.5px -apple-system, system-ui, sans-serif; color: var(--muted); margin-bottom: 2px; }
}
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.cards .card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.cards h3 { margin: 0 0 6px; font-size: 15.5px; }
.tasks { list-style: none; padding: 0; margin: 0; }
.tasks li { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 15px; max-width: none; }
.tasks li:last-child { border-bottom: 0; }
.tid { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; margin-right: 4px; }
.steps-small li { margin-bottom: 8px; }

/* ---------- findings page */
.art-row { display: grid; gap: 18px 36px; align-items: start; margin-bottom: 18px; }
@media (min-width: 900px) { .art-row { grid-template-columns: minmax(0, 1fr) 340px; } .art-row.solo { grid-template-columns: 1fr; } }
.art-text h3:first-child { margin-top: 6px; }
.article h3:first-child { margin-top: 0; }
.tried-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.tried, .route { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; max-width: none; }
.tried p, .route p { font-size: 16px; margin: 6px 0; }
.tr-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.tried h4, .route h4, .ft { margin: 0; font: 650 17px/1.35 -apple-system, system-ui, sans-serif; letter-spacing: -0.01em; }
.tr-meta { color: var(--muted); font: 13px -apple-system, system-ui, sans-serif !important; margin-top: 2px !important; }
.reopen { color: var(--muted); }
.tag, .nov { flex: none; display: inline-block; font: 600 12px -apple-system, system-ui, sans-serif; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.tag-out, .tag-ns { background: var(--bad-soft); color: var(--bad); }
.tag-weak, .tag-wait { background: var(--warn-soft); color: var(--warn); }
.tag-open { border: 1px solid var(--line-strong); color: var(--muted); }
.tag-part { background: var(--ok-soft); color: var(--ok); }
.nov { border: 1px solid var(--line-strong); color: var(--muted); }
.nov-new { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.legend-row { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--muted); }
.levels { display: grid; gap: 8px; margin: 12px 0; }
.levels div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: baseline; }
.levels dd { margin: 0; font-size: 15.5px; color: var(--muted); }
.key-h { font-size: 16px; }
.fmeter { display: inline-flex; align-items: center; gap: 8px; font: 600 13.5px -apple-system, system-ui, sans-serif; }
.pips { display: inline-flex; gap: 3px; }
.pips i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--accent); }
.pips i.on { background: var(--accent); }
.fgroup { display: flex; align-items: center; gap: 10px; margin-top: 28px !important; }
.fgn { font: 600 12px -apple-system, system-ui, sans-serif; color: var(--muted); }
.findings { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 12px; }
.fcard { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; max-width: none; display: grid; gap: 14px 22px; align-items: start; }
@media (min-width: 720px) { .fcard { grid-template-columns: 220px minmax(0, 1fr); } }
.fcard > .ffig { background: var(--chart); border: 1px solid var(--line); border-radius: 8px; padding: 8px; max-width: 260px; }
.fbodywrap { min-width: 0; }
.fh { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.fg { font-size: 16.5px; margin: 8px 0 0; }
.tech summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--accent); margin-top: 10px; }
.fbody p { font-size: 15.5px; }
.ftech { font-weight: 650; }
.prior, .where { color: var(--muted); }
.nums { font: 13.5px/1.55 ui-monospace, "SF Mono", Menlo, monospace; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; overflow-wrap: anywhere; }
.caveat { color: var(--warn); }
@media (max-width: 560px) { .levels div { grid-template-columns: 1fr; gap: 2px; } .tr-head, .fh { flex-direction: column; gap: 6px; } }

/* ---------- news */
.ncard { display: grid; gap: 14px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; }
.ncard:first-child { padding-top: 0; } .ncard:last-child { border-bottom: 0; }
@media (min-width: 720px) { .ncard { grid-template-columns: 210px minmax(0, 1fr); } }
.nvisual { display: block; }
.nthumb { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; border-radius: 10px; border: 1px solid var(--line); background: var(--chart); }
@media (max-width: 719px) { .nvisual { max-width: 360px; } }
.nbody h3 { margin: 2px 0 6px; font-size: 18px; } .nbody h3 a { color: var(--ink); text-decoration: none; } .nbody h3 a:hover { color: var(--accent); }
.nbody p { margin: 6px 0; font-size: 16px; }
.meta { font-size: 13px; color: var(--muted); margin: 0 0 4px; }
.why { color: var(--muted); font-size: 15px !important; }
.news-article { max-width: 760px; padding: clamp(32px, 6vw, 72px) 0; }
.nback { font: 600 14px -apple-system, system-ui, sans-serif; text-decoration: none; display: inline-block; margin-bottom: 22px; }
.h-article { font-size: clamp(28px, 4.2vw, 44px); margin-bottom: 10px; }
.article-visual { margin: 22px 0 26px; }
.article-visual img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.article-visual figcaption { margin-top: 8px; }
.levels-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 28px; }
.levels-tabs label { font: 600 14px -apple-system, system-ui, sans-serif; padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; cursor: pointer; color: var(--muted); min-height: 36px; display: inline-flex; align-items: center; }
.levels-tabs input:checked + label { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.levels-tabs input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.pane { display: none; width: 100%; font-size: 19px; }
#lvl-gist:checked ~ .pane-gist, #lvl-plain:checked ~ .pane-plain, #lvl-tech:checked ~ .pane-tech { display: block; }
.news-article h2 { margin-top: 30px; font-size: 22px; }
.article-neighbors { display: grid; gap: 10px; margin-top: 36px; border-top: 1px solid var(--line); padding-top: 22px; }
@media (min-width: 640px) { .article-neighbors { grid-template-columns: 1fr 1fr; } .article-neighbors a[rel=next] { text-align: right; grid-column: 2; } }
.article-neighbors a { text-decoration: none; font: 600 15px/1.35 -apple-system, system-ui, sans-serif; color: var(--ink); }
.article-neighbors small { display: block; font-weight: 500; color: var(--muted); font-size: 12.5px; margin-bottom: 2px; }

/* ---------- contribute */
.starters { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.starter { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; max-width: none; }
.starter summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 12px 16px; font-size: 15px; }
.starter summary::-webkit-details-marker { display: none; }
.sid { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; } .st { font-weight: 600; }
.sb { padding: 0 16px 14px 66px; } .sb p { margin: 4px 0; font-size: 15.5px; } .sb .sub { font: 13px -apple-system, system-ui, sans-serif; }
@media (max-width: 560px) { .starter summary { grid-template-columns: 34px 1fr; } .starter summary .chip { grid-column: 2; justify-self: start; } .sb { padding-left: 16px; } }
.content .fig + .fig { margin-top: 16px; }

/* ---------- resources */
.logo-show { display: grid; grid-template-columns: 160px 1fr; gap: 12px; margin: 4px 0 18px; }
.logo-tile { background: var(--chart); border: 1px solid var(--line); border-radius: 12px; display: grid; place-items: center; min-height: 150px; padding: 20px; }
.mark-big { width: 88px; height: 88px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.wm-big { width: 100%; max-width: 420px; height: auto; fill: none; stroke: var(--accent); stroke-width: 4.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 560px) { .logo-show { grid-template-columns: 1fr; } }
.dl { list-style: none; padding: 0; margin: 12px 0; border-top: 1px solid var(--line); }
.dl li { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 4px 20px; padding: 11px 0; border-bottom: 1px solid var(--line); max-width: none; font-size: 15px; }
.dl li > span { color: var(--muted); }
.dl.res li { grid-template-columns: minmax(0, 330px) minmax(0, 1fr); }
@media (max-width: 640px) { .dl li, .dl.res li { grid-template-columns: 1fr; } }

/* ---------- footer */
.foot { border-top: 1px solid var(--line); padding: 32px 0 44px; font-size: 13.5px; color: var(--muted); margin-top: 24px; }
.foot-in { display: grid; gap: 18px 40px; }
@media (min-width: 820px) { .foot-in { grid-template-columns: 1fr 1fr; } .foot-note { grid-column: 1 / -1; } }
.foot-brand { display: flex; gap: 12px; align-items: flex-start; } .foot-brand b { color: var(--ink); font-size: 15px; } .foot-brand p { margin: 2px 0 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; align-content: flex-start; } .foot-links a { color: var(--muted); }
.foot-note { margin: 0; max-width: 80ch; }

/* ---------- brand hooks: colours, divider trace and list marker come from brand.css */
main > section + section::before { content: ""; display: block; grid-column: 1 / -1; margin-bottom: clamp(32px, 5vw, 56px); }
main > section + section { padding-top: 0; }
main ul.mk { list-style: none; padding-left: 24px; }
main ul.mk > li { position: relative; margin-bottom: 6px; }
main ul.mk > li::before { content: ""; position: absolute; left: -22px; }
.hero-art { margin: 0; min-width: 0; }
.hero-art svg { width: 100%; height: auto; display: block; }
.hero-art figcaption { font-size: 13.5px; line-height: 1.5; color: var(--muted); margin-top: 10px; max-width: 62ch; }
/* the drawn thumbnails are on light chart paper; dim them a little at night */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nthumb, :root:not([data-theme="light"]) .article-visual img { filter: brightness(0.86); } }
:root[data-theme="dark"] .nthumb, :root[data-theme="dark"] .article-visual img { filter: brightness(0.86); }
@media print { .head, .foot, .theme { display: none; } }

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

/* the tables we made */
.opentables tbody th { width: 26%; }
.nowrap { white-space: nowrap; }
.tfacts { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 10px 32px; font-size: 15px; }
.tfacts b { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.actions .btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.coltab tbody th { width: 22%; font-weight: 500; }
.coltab code { font-size: 13.5px; }
.coltab td.ex { color: var(--muted); font-size: 14px; }
.preview { max-height: 70vh; overflow: auto; }
table.ptab { border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.ptab th, .ptab td { text-align: left; vertical-align: top; padding: 7px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; max-width: 420px; overflow: hidden; text-overflow: ellipsis; }
.ptab thead th { position: sticky; top: 0; background: var(--surface); font-weight: 600; color: var(--muted); z-index: 1; }
.jsonview { max-height: 70vh; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; font-size: 13px; line-height: 1.5; }
.tback { margin-top: 28px; }
@media (max-width: 720px) { .coltab thead, .opentables thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } }

/* news as a grid of cards */
.block.newsblock { grid-template-columns: minmax(0, 1fr); }
.block.newsblock .rail { display: flex; gap: 10px; align-items: baseline; } .block.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; gap: 12px; padding: 0; border: 0; }
.ngrid .nvisual { max-width: none; }
.ngrid .nbody h3 { font-size: 17.5px; line-height: 1.3; }
.ngrid .nbody p { font-size: 15px; }
.ngrid .nbody .meta { font-size: 13px; }
.ngrid .why { font-size: 14px !important; color: var(--muted); }

/* ---------- landscape snapshot (news; open-mind/site/landscape_view.py) and library */
main > section.landscape { margin: 8px 0 36px; padding: 24px 24px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
main > section.landscape::before { display: none; }
.landscape { --ls-sans: -apple-system, "Inter", "Segoe UI", system-ui, sans-serif; --ls-mono: ui-monospace, "SF Mono", Menlo, monospace; --ls-track: var(--grid); --ls-up: var(--ok); --ls-down: var(--bad); }
@media (max-width: 640px) { main > section.landscape { padding: 18px 16px 6px; } }
.landscape { container-type: inline-size; }
.ls-kicker { font-family: var(--ls-sans); font-weight: 600; font-size: 12.5px; line-height: 1.4; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 8px; }
.landscape h2 { margin: 0 0 8px; font-size: clamp(20px, 2.3vw, 25px); line-height: 1.25; max-width: 36ch; }
.ls-meta { color: var(--muted); font-size: 14.5px; margin: 0 0 4px; max-width: 80ch; }
.ls-how summary, .ls-q summary { cursor: pointer; font-family: var(--ls-sans); font-weight: 600; font-size: 13.5px; color: var(--accent); width: fit-content; }
.ls-how p { font-size: 14.5px; color: var(--muted); margin: 6px 0 0; max-width: 80ch; }
.ls-list { list-style: none; margin: 14px 0 0; padding: 0; }
.ls-row { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px 28px; padding: 16px 0 14px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.ls-name h3 { margin: 0; font-size: 17px; line-height: 1.3; display: flex; gap: 10px; align-items: baseline; }
.ls-rank { font: 600 12px/1 var(--ls-mono); color: var(--muted); min-width: 1.4em; flex: none; }
.ls-bet { margin: 4px 0 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.ls-bar { height: 10px; border-radius: 999px; background: var(--ls-track); overflow: hidden; }
.ls-bar span { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.ls-num { margin: 6px 0 0; font-family: var(--ls-sans); font-size: 14px; line-height: 1.45; font-variant-numeric: tabular-nums; }
.ls-num b { font-size: 16px; } .ls-num span { color: var(--muted); }
.ls-trend { display: grid; grid-template-columns: 120px auto; column-gap: 12px; align-items: center; }
.ls-spark { width: 120px; height: 34px; display: block; overflow: visible; }
.ls-sl, .ls-sp { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ls-sp { stroke-dasharray: 2.5 3; opacity: 0.85; }
.ls-sa { fill: var(--accent); opacity: 0.12; stroke: none; }
.ls-sd { fill: var(--accent); } .ls-so { fill: var(--surface); stroke: var(--accent); stroke-width: 1.4; }
.ls-years { grid-column: 1; display: flex; justify-content: space-between; font: 11px/1.3 var(--ls-mono); color: var(--muted); }
.ls-tw { grid-column: 2; grid-row: 1; margin: 0; font-family: var(--ls-sans); font-weight: 600; font-size: 12.5px; line-height: 1.3; color: var(--muted); }
.ls-tw span { display: block; font-weight: 400; color: var(--muted); }
.ls-rising { color: var(--ls-up); } .ls-falling { color: var(--ls-down); }
.ls-more { display: grid; gap: 5px; font-size: 14.5px; line-height: 1.5; }
.ls-more p { margin: 0; max-width: 100ch; }
.ls-k { font-family: var(--ls-sans); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin-right: 8px; }
.ls-inst { color: var(--muted); }
.ls-q p { font-size: 13.5px; color: var(--muted); margin: 4px 0; } .ls-q code { font-size: 12.5px; }
@container (min-width: 700px) {
  .ls-row { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 124px; align-items: start; }
  .ls-bet { margin-left: calc(1.4em + 10px); }
  .ls-size { padding-top: 6px; }
  .ls-trend { grid-template-columns: 120px; }
  .ls-tw { grid-column: 1; grid-row: auto; margin-top: 2px; }
  .ls-more { grid-column: 1 / -1; margin-left: calc(1.4em + 10px); }
}
.lfilter { align-items: center; margin-bottom: 18px; }
.lcore { font-size: 14px; display: inline-flex; gap: 6px; align-items: center; margin-left: 4px; }
.lfilter #lcount { flex-basis: 100%; margin: 4px 0 0; }
.lgrid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .lgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lcard { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: start; scroll-margin-top: 90px; }
.lthumb { width: 96px; height: auto; aspect-ratio: 3 / 2; border-radius: 8px; border: 1px solid var(--line); background: var(--chart); }
.lbody h3 { margin: 2px 0 6px; font-size: 16.5px; line-height: 1.3; } .lbody h3 a { color: var(--ink); text-decoration: none; } .lbody h3 a:hover { color: var(--accent); }
.lbody p { margin: 4px 0; font-size: 15px; } .lbody .meta { font-size: 13px; }
.lmore summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--accent); margin-top: 6px; }
.lmore dl { margin: 8px 0 0; font-size: 14.5px; } .lmore dt { font-weight: 600; margin-top: 8px; } .lmore dd { margin: 2px 0 0; }
.lcard:target .lbody h3 a { color: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lthumb { filter: brightness(0.86); } }
:root[data-theme="dark"] .lthumb { filter: brightness(0.86); }
.lsearch { flex-basis: 100%; margin: 4px 0 2px; } .lsearch input { font: inherit; font-size: 15px; width: 100%; max-width: 420px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--ink); }
.lsearch input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pane h3 { font-size: 16px; margin: 18px 0 4px; } .pane h3:first-child { margin-top: 0; } .pane p { margin: 0 0 10px; }

/* ---------- latest updates: a dated timeline */
.upds { list-style: none; margin: 8px 0 0; padding: 0; max-width: 68ch; }
.upd { position: relative; padding: 0 0 22px 26px; }
.upd::before { content: ""; position: absolute; left: 5px; top: 18px; bottom: -2px; width: 1px; background: var(--line); }
.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(--line-strong); box-sizing: border-box; }
.upd-ok::after { border-color: var(--ok); } .upd-bad::after { border-color: var(--bad); } .upd-warn::after { border-color: var(--warn); } .upd-open::after { border-color: var(--accent); }
.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; min-width: 3.6em; }
.upd h3 { margin: 6px 0 4px; font-size: 18px; line-height: 1.3; text-wrap: balance; }
.upd h3 a { color: var(--ink); text-decoration: none; }
.upd h3 a:hover { color: var(--accent); text-decoration: underline; }
.upd-body { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; text-wrap: pretty; }
.updpage { padding-bottom: clamp(40px, 6vw, 80px); }
.updpage .upds { margin-top: 0; }
@media (max-width: 600px) { .upd { padding-left: 22px; } .upd h3 { font-size: 17px; } .upd-body { font-size: 15.5px; } }

/* 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 Mind brand: a sleep-lab recording. Pale chart paper with a faint green grid, pen-ink text, night indigo links.
   Dawn amber is the one motif colour (electrode list markers, the dreaming-sleep band). Section dividers are a short
   brain-wave trace, the way Open Indus uses brick courses. Appended after site.css by build.py. */
:root {
  --paper: #F3F4EF; --surface: #FAFBF7; --ink: #15171C; --muted: #4F5560; --line: #DDE0D8; --line-strong: #BCC1B6;
  --accent: #4B3A9C; --ok: #1D6A44; --ok-soft: #DCEFE4; --warn: #7A5200; --warn-soft: #F3E6C8; --bad: #9B2C2C; --bad-soft: #F6DEDC;
  --chart: #F8F9F3; --grid: #E3EADC; --grid-b: #CBD7C2; --glow: #B06A12; --glow-soft: rgb(214 150 50 / 0.16); --trace: #9AA394;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --paper: #0E1014; --surface: #161920; --ink: #E6E8EC; --muted: #9AA0AC; --line: #252932; --line-strong: #3A404B;
  --accent: #B3A6F2; --ok: #7FD1A5; --ok-soft: #15281F; --warn: #E3B862; --warn-soft: #2E2512; --bad: #EE9A94; --bad-soft: #341A19;
  --chart: #12151A; --grid: #1C2229; --grid-b: #29313A; --glow: #E5A54B; --glow-soft: rgb(229 165 75 / 0.11); --trace: #4A525E;
  color-scheme: dark; } }
:root[data-theme="dark"] {
  --paper: #0E1014; --surface: #161920; --ink: #E6E8EC; --muted: #9AA0AC; --line: #252932; --line-strong: #3A404B;
  --accent: #B3A6F2; --ok: #7FD1A5; --ok-soft: #15281F; --warn: #E3B862; --warn-soft: #2E2512; --bad: #EE9A94; --bad-soft: #341A19;
  --chart: #12151A; --grid: #1C2229; --grid-b: #29313A; --glow: #E5A54B; --glow-soft: rgb(229 165 75 / 0.11); --trace: #4A525E;
  color-scheme: dark; }

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

/* list marker: an EEG electrode, a ring with a contact in the middle */
main ul.mk > li::before { width: 10px; height: 10px; border-radius: 50%; top: 0.5em;
  background: radial-gradient(circle, var(--glow) 0 1.8px, transparent 2.3px); box-shadow: inset 0 0 0 1.6px var(--glow); }

/* hero: the night's recording on chart paper */
.hero-art svg { background: var(--chart); border: 1px solid var(--line); border-radius: 12px; }
.hero-art .g { stroke: var(--grid); stroke-width: 0.6; } .hero-art .gb { stroke: var(--grid-b); stroke-width: 0.8; }
.hero-art .st { font: 600 12.5px -apple-system, "Inter", system-ui, sans-serif; fill: var(--ink); }
.hero-art .ch { font: 500 11px -apple-system, "Inter", system-ui, sans-serif; fill: var(--muted); text-anchor: end; }
.hero-art .sep { stroke: var(--line-strong); stroke-dasharray: 2 3; }
.hero-art .tr { fill: none; stroke: var(--ink); stroke-width: 1.15; stroke-linejoin: round; }
.hero-art .rem { fill: var(--glow-soft); }
.hero-art .hyp { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.hero-art .hyp-rem { stroke: var(--glow); stroke-width: 5; stroke-linecap: round; }
