/* Earth Trend Detective — visual system.
   Arcilla amable (see ../DESIGN.md): sky desk, white clay cards with hard shadows, navy ink, green for action. */
:root {
  /* Arcilla amable: a soft sky desk, white clay cards with a hard bottom shadow, navy ink, green for action. */
  --bg: #dce8ff;
  --surface: #ffffff;
  --surface-2: #eef3ff;
  --surface-3: #e6edfb;
  --paper: #ffffff;
  --paper-2: #e9eefb;
  --chip: #dbe4fb;
  --ink: #23305a;
  --ink-2: #3c4a78;
  --ink-3: #a9b6d6;
  --muted: #4a5680;
  --line: #d4def5;
  --rail: #23305a;
  --rail-2: #2e3d6e;
  --rail-ink: #c8d3f5;
  --rail-hi: #ffffff;
  --accent: #1a6e48;
  --accent-ink: #17603e;
  --accent-soft: #d8f3e5;
  --glow: #9fe0bf;
  --go: #1f8455;
  --go-shadow: #155c3b;
  --sun: #ffc83d;
  --clay: #b9c8ea;
  --clay-night: #16204a;
  --go-hover: #1b7449;
  --rail-hover: #3a4a80;
  --rail-hi-soft: #e6ecff;
  --lip-rose: #f2b9ad;
  --lip-tide: #a9cdf2;
  --lip-sage: #a9dcc2;
  --lip-ice: #bccdf3;
  --lip-stone: #cdbff3;
  --placeholder: #66729a;
  --ghost: #66729a;
  --artifact-ink: #4a2f8a;
  --sheet-flat: #f1f4fb;
  --block-rose: #ffe1dc;
  --block-tide: #d6eafc;
  --block-sage: #d8f3e5;
  --block-ice: #e3ecff;
  --block-stone: #ece4ff;
  --up: #b23a2a;
  --up-night: #ffb4a8;
  --down-night: #9cc8ff;
  --down: #1f5fa8;
  --neutral: #5a6488;
  --series: #3b7fd0;
  --space: #0a0e1c;
  --space-line: #232d48;
  --t-temperature: #b23a2a;
  --t-water: #1f5fa8;
  --t-vegetation: #17603e;
  --radius: 22px;
  --ring: 0 0 0 3px var(--surface), 0 0 0 6px var(--go);
  --shadow-1: 0 4px 0 var(--clay);
  --shadow-2: 0 7px 0 var(--clay);
  /* Motion, after Nielsen Norman Group: the shortest time that is not jarring, 100–400 ms; things that
     enter ease out and last a little longer than things that leave, which ease in; the more often an
     animation runs, the shorter and subtler it is. Reduced motion turns every duration to zero. */
  --dur-press: 100ms;  /* press and toggle feedback */
  --dur-fast: 150ms;   /* hover: color, background, border, shadow */
  --dur-base: 200ms;   /* small reveals: carets, fades, toasts, images */
  --dur-panel: 300ms;  /* panels and sheets entering, the rail resizing */
  --dur-leave: 200ms;  /* panels and sheets leaving */
  --dur-large: 400ms;  /* one element travelling across the screen */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-pop: cubic-bezier(0.3, 1.5, 0.5, 1);   /* clay settling: a small overshoot, for presses and reveals */
  --serif: "Baloo 2", "Nunito Sans", system-ui, sans-serif;
  --sans: "Nunito Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --rail-w: 268px;
  color-scheme: light;
  scrollbar-color: #b9c8ea transparent;
  scrollbar-gutter: stable;
}
:root[data-nav="collapsed"] { --rail-w: 72px; }

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); caret-color: var(--accent); accent-color: var(--accent); }
::selection { background: var(--accent-soft); color: var(--ink); }
a { color: var(--accent); text-underline-offset: 0.2em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 800; margin: 0; color: var(--ink); text-wrap: balance; overflow-wrap: break-word; }
/* Words longer than their box (a place name, a pasted search) break instead of pushing the page sideways.
   `anywhere` also lets a chip or a centered line shrink to its box, where `break-word` alone would not. */
.chip-x, .empty p, .place-search__msg { overflow-wrap: anywhere; }
.chip-x { max-width: 100%; }
h1 { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.04; letter-spacing: -0.01em; }
h2 { font-size: 20px; line-height: 1.2; font-weight: 800; }
h3 { font-size: 20px; line-height: 1.2; font-weight: 700; }
p { margin: 0; }
/* `hidden` always wins. Any component with its own display (grid, flex) would otherwise show what the code hid:
   a callout that must not appear, a closed drawer still reachable with Tab. */
[hidden] { display: none !important; }
.mono { font-family: var(--mono); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.small { font-size: 13px; line-height: 1.5; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 4px; }
.skip:focus { left: 8px; }
a { transition: color var(--dur-fast) var(--ease-out), text-decoration-color var(--dur-fast) var(--ease-out); }
a:hover { text-decoration-thickness: 2px; }
.ic { width: 20px; height: 20px; fill: currentColor; flex: none; vertical-align: -0.2em; }
kbd { font: 500 12px var(--mono); padding: 1px 6px; border-radius: 4px; border: 1px solid currentColor; opacity: 0.7; }

/* ---------- Rail ---------- */
.app { padding-left: var(--rail-w); }
.rail {
  position: fixed; inset: 0 auto 0 0; z-index: 30; width: var(--rail-w);
  display: flex; flex-direction: column; gap: 4px; padding: 20px 10px 14px;
  background: var(--rail); color: var(--rail-ink); overflow: hidden auto;
}
.rail__head { padding: 0 6px 14px; }
.brand { display: flex; gap: 10px; align-items: center; color: var(--rail-hi-soft); text-decoration: none; min-width: 0; }
.brand__mark { flex: none; }
.brand__text { display: flex; flex-direction: column; white-space: nowrap; }
.brand strong { font-family: var(--serif); font-weight: 500; font-size: 18px; color: #fff; }
.brand small { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--glow); }
.tool { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 40px; padding: 8px 12px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, 0.05); color: var(--rail-ink); font: 500 15px var(--sans); cursor: pointer; white-space: nowrap; text-align: left; }
.tool:hover { background: rgba(255, 255, 255, 0.09); color: #fff; }
.tool kbd { margin-left: auto; }
.tool--icon { width: 40px; padding: 0; justify-content: center; background: none; }
.rail__tools { padding: 0 2px 10px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav__group { margin: 14px 12px 4px; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rail-ink); white-space: nowrap; }
.nav a, .nav__sub a { position: relative; display: flex; gap: 12px; align-items: center; min-height: 40px; padding: 8px 12px; border-radius: 14px; color: var(--rail-ink); text-decoration: none; font-weight: 500; font-size: 15px; white-space: nowrap; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.nav a.is-active { color: var(--rail-hi); background: color-mix(in srgb, var(--glow) 14%, transparent); font-weight: 600; }
.ic--on { display: none; }
.is-active > .ic--off, [aria-pressed="true"] > .ic--off { display: none; }
.is-active > .ic--on, [aria-pressed="true"] > .ic--on { display: block; }
.nav__item { position: relative; }
.nav__item > a { padding-right: 44px; }
.nav__caret { position: absolute; right: 4px; top: 4px; width: 32px; height: 32px; display: grid; place-items: center; border: 0; background: none; color: var(--rail-ink); border-radius: 14px; cursor: pointer; }
.nav__caret:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.nav__caret .ic { width: 16px; height: 16px; transition: transform var(--dur-base) var(--ease-out); }
.nav__caret[aria-expanded="true"] .ic { transform: rotate(180deg); }
.nav__sub { list-style: none; margin: 2px 0 4px 22px; padding: 0 0 0 10px; box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.12); }
.nav__sub a { min-height: 34px; font-size: 13px; }
.nav__sub a .ic { width: 16px; height: 16px; }
.count { margin-left: auto; font: 500 12px var(--mono); color: var(--rail-ink); }
.badge { margin-left: auto; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--rail); background: var(--glow); padding: 1px 7px; border-radius: 999px; }
.rail__foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding: 12px 2px 0; }
.rail__foot p { font-size: 12px; line-height: 1.5; color: var(--rail-ink); padding: 10px 12px; border-radius: 14px; background: rgba(35, 48, 77, 0.55); white-space: normal; }
.rail__modes { display: flex; gap: 4px; }
.rail__modes [aria-pressed="true"] { color: var(--glow); }
.lang { display: inline-flex; align-self: flex-start; padding: 3px; border-radius: 14px; background: rgba(255, 255, 255, 0.07); }
.lang button { font: 600 12px var(--mono); color: var(--rail-ink); background: none; border: 0; padding: 5px 10px; border-radius: 4px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--glow); color: var(--rail); }

/* Narrow rail: icons only, labels stay available to screen readers. */
:root[data-nav="collapsed"] .rail .nav__label,
:root[data-nav="collapsed"] .rail .brand__text {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
:root[data-nav="collapsed"] .rail .nav__group { height: 1px; margin: 10px 12px; overflow: hidden; color: transparent; background: rgba(255, 255, 255, 0.1); }
:root[data-nav="collapsed"] .rail .nav__sub { display: none; }
/* Controls are not labels: squeezed to 1px like the text above, a button or a link still takes the focus,
   unseen. The themes caret has nothing to open here (the sub-list is hidden) and the investigation card
   repeats Case Files, so both leave the narrow rail. */
:root[data-nav="collapsed"] .rail :is(.nav__caret, .rail-card) { display: none; }
:root[data-nav="collapsed"] .rail__modes { flex-direction: column; }
:root[data-nav="collapsed"] .rail { overflow: visible; }
/* Tooltips only where labels are hidden and the rail does not expand. */
:root[data-nav="collapsed"] .rail [data-tip]:is(:hover, :focus-visible)::after {
  content: attr(data-tip); position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%);
  padding: 6px 10px; border-radius: 14px; background: var(--ink); color: #fff; font: 500 13px var(--sans);
  white-space: nowrap; box-shadow: var(--shadow-2); pointer-events: none; z-index: 40;
}

.mbar, .tabbar { display: none; }

/* ---------- Page ---------- */
.view { padding: 40px clamp(20px, 3.5vw, 56px) 48px; display: flex; flex-direction: column; gap: 40px; width: 100%; max-width: 1440px; margin-inline: auto; outline: none; }
.panel { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-1); padding: 24px; }
.lead { font-size: 17px; line-height: 1.65; color: var(--ink-2); max-width: 68ch; }
.label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.h-section { font-size: 26px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 20px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.page-head > div:first-child { display: flex; flex-direction: column; gap: 12px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head h2 { font-size: 26px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 4px; }
.foot { border-top: 1px solid var(--line); padding-top: 16px; font-size: 13px; color: var(--muted); }
.error { color: var(--up); }
.dir-up { color: var(--up); } .dir-down { color: var(--down); } .dir-flat { color: var(--neutral); }

.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; font: 600 15px var(--sans); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), transform var(--dur-press) var(--ease-out); }
.btn .ic { width: 18px; height: 18px; transition: transform var(--dur-fast) var(--ease-out); }
.btn:hover { border-color: var(--ink); box-shadow: 0 4px 12px -6px rgba(0, 0, 0, 0.25); }
.btn:hover .ic:last-child { transform: translateX(2px); }
.btn:active { transform: scale(0.97); box-shadow: none; }
.btn--primary { background: var(--rail); border-color: var(--rail); color: #fff; }
.btn--primary:hover { background: var(--rail-hover); border-color: var(--rail-hover); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.linklike { font: inherit; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.linklike .ic { width: 16px; height: 16px; }

/* Verdict stamp and evidence scale */
.stamp {
  display: inline-flex; align-items: center; gap: 6px; flex: none; align-self: flex-start;
  font: 700 12px var(--sans); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent-soft);
  border: 1.5px solid currentColor; border-radius: 4px; padding: 3px 9px 3px 6px; transform: rotate(-2.5deg);
}
.stamp .ic { width: 16px; height: 16px; }
.stamp--inconclusive { color: var(--neutral); background: rgba(225, 232, 255, 0.6); border-style: dashed; }
.ev { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 13px; white-space: nowrap; }
.ev__bars { display: inline-flex; align-items: flex-end; gap: 3px; }
.ev__bars i { display: block; width: 6px; border-radius: 4px; background: var(--surface-3); }
.ev__bars i:nth-child(1) { height: 7px; } .ev__bars i:nth-child(2) { height: 11px; } .ev__bars i:nth-child(3) { height: 15px; }
.ev__bars i.on { background: var(--accent); }
.ev--weak .ev__bars i.on { background: var(--neutral); }
.ev--lg { font-size: 17px; font-weight: 600; color: var(--ink); gap: 12px; }
.ev--lg .ev__bars { gap: 4px; }
.ev--lg .ev__bars i { width: 11px; }
.ev--lg .ev__bars i:nth-child(1) { height: 12px; } .ev--lg .ev__bars i:nth-child(2) { height: 19px; } .ev--lg .ev__bars i:nth-child(3) { height: 26px; }

/* ---------- Folders (case files) ---------- */
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 88px 24px; padding-top: 80px; }
.shelf--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* Folder: back panel with tab, sheets of paper (one per ~12 years of data), front cover.
   On hover or focus the cover tips forward and the sheets rise out of the folder. */
.folder { position: relative; --tab: var(--t-water); --back: var(--block-tide); padding-top: 40px; isolation: isolate; }
.folder--temperature { --tab: var(--t-temperature); --back: var(--block-rose); }
.folder--vegetation { --tab: var(--t-vegetation); --back: var(--block-sage); }
/* Back panel and its tab are one piece of card stock: same color, no seam. The sheets sit in front of both,
   so a rising sheet covers the tab, as in a real folder. At rest they stay below the tab. */
.folder { --stock: color-mix(in srgb, var(--tab) 30%, var(--back)); }
.folder__back { position: absolute; inset: 22px 0 0; z-index: 0; border-radius: 0 18px 18px 18px; background: var(--stock); }
.folder__tab {
  position: absolute; top: 0; left: 0; z-index: 0; height: 24px; padding: 0 30px 0 14px;
  border-radius: 18px 0 0 0; background: var(--stock); color: var(--ink);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 100%, 0 100%);
  font-size: 12px; font-weight: 500; line-height: 26px; letter-spacing: 0.03em;
}
.folder__papers { position: absolute; top: 28px; left: 16px; right: 12px; height: 96px; z-index: 1; pointer-events: none; }
.folder__sheet {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 6px; padding: 8px 12px;
  border-radius: 4px; background: var(--surface); box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent), 0 6px 14px -8px rgba(0, 0, 0, 0.25);
  transform: translateY(calc(-2px - var(--i) * 2px)) rotate(0deg);
  /* Closing: back sheets drop first, quicker than opening and easing in. */
  transition: transform var(--dur-leave) var(--ease-in) calc((var(--n, 1) - 1 - var(--i)) * 25ms), box-shadow var(--dur-leave) var(--ease-in);
}
/* A page of the file: a header row (the only part showing above the page in front) over a hairline. */
.folder__sheet { gap: 4px; padding: 4px 10px 8px; background: var(--paper); }
.sheet__head { border-bottom: 1px solid var(--line); padding-bottom: 3px; }
.folder__sheet:first-child { background-color: var(--surface); }
.sheet__head { display: flex; align-items: center; gap: 6px; height: 18px; min-width: 0; }
.sheet__head .sheet__val { margin-left: auto; }
.sheet__label { font: 600 12px var(--sans); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* The run-up sheet names its window ("90-day run-up") where the header row has room and says "Run-up" on
   narrow folders, so its label is never cut. 280px leaves room for the longer Spanish figure ("44 de 45 años"). */
.sheet__head { container-type: inline-size; }
.sheet__short { display: none; }
@container (max-width: 280px) { .sheet__long { display: none; } .sheet__short { display: inline; } }
.sheet__val { justify-self: end; font-size: 12px; color: var(--ink); white-space: nowrap; }
.sheet__folio { padding-left: 6px; border-left: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.sheet__rules { flex: 1; }
.folder__spark { display: block; height: 34px; margin-top: 2px; }
.folder__spark svg { width: 100%; height: 100%; display: block; }
.folder__front {
  position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; gap: 12px; padding: 20px 20px 16px;
  border-radius: 18px; background: var(--back); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), var(--shadow-2);
  --neutral: var(--neutral);
  transform-origin: 50% 100%; transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.folder:is(:hover, :focus-within) .folder__front { transform: translateY(5px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 2px 4px rgba(0, 0, 0, 0.06), 0 18px 36px -14px rgba(0, 0, 0, 0.36); }
.folder:is(:hover, :focus-within) .folder__sheet {
  /* Opening: a 60ms beat (so a cursor passing over the shelf does not open every folder), then each sheet
     rises in turn and eases to rest; all sheets are out within 460ms. The step keeps every folio visible. */
  transform: translateY(calc(-50px - var(--i) * 24px)) rotate(var(--r));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent), 0 12px 22px -10px rgba(0, 0, 0, 0.3);
  transition: transform var(--dur-panel) var(--ease-out) calc(60ms + var(--i) * 40ms), box-shadow var(--dur-panel) var(--ease-out) calc(60ms + var(--i) * 40ms);
}
/* The real series draws itself on the first sheet once it is out of the folder. */
.folder__spark .spark-line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset var(--dur-fast) var(--ease-in); }
.folder__spark .spark-area, .folder__spark .spark-trend { opacity: 0; transition: opacity var(--dur-fast) var(--ease-in); }
.folder:is(:hover, :focus-within) .folder__spark .spark-line { stroke-dashoffset: 0; transition: stroke-dashoffset var(--dur-panel) var(--ease-in-out) 180ms; }
.folder:is(:hover, :focus-within) .folder__spark :is(.spark-area, .spark-trend) { opacity: 1; transition: opacity var(--dur-base) var(--ease-out) 360ms; }
@media (hover: none) {
  /* Touch screens have no hover: the pages stay out so their headers can be read. */
  .folder__sheet { transform: translateY(calc(-50px - var(--i) * 24px)) rotate(var(--r)); }
  .folder__spark .spark-line { stroke-dashoffset: 0; }
  .folder__spark .spark-area, .folder__spark .spark-trend { opacity: 1; }
}
.folder__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 22px; }
.folder__theme { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--tab); white-space: nowrap; }
.folder__theme .ic { width: 18px; height: 18px; }
.folder h3 { font-size: 18px; }
.folder__link { color: var(--ink); text-decoration: none; }
.folder__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.folder__link:focus-visible { outline: none; }
.folder__link:focus-visible::after { outline: 3px solid var(--go); outline-offset: 3px; }
.folder:hover .folder__link { text-decoration: underline; text-decoration-color: var(--accent-soft); text-decoration-thickness: 2px; }
.folder__place { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.folder__place .ic { width: 16px; height: 16px; color: var(--tab); }
.folder__front .ev__bars i { background: color-mix(in srgb, var(--ink) 14%, transparent); }
.folder__front .ev__bars i.on { background: var(--accent); }
.folder__front .ev--weak .ev__bars i.on { background: var(--neutral); }
.folder__front .stamp { background: rgba(255, 255, 255, 0.6); }
.folder__meta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 16px; margin: auto 0 0; padding: 12px 0 0; border-top: 1px dashed color-mix(in srgb, var(--ink) 18%, transparent); }
.folder__meta dt { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.folder__meta dd { white-space: nowrap; margin: 0; min-width: 0; font-size: 15px; display: flex; align-items: center; gap: 4px; }
.folder__meta dd .ic { width: 16px; height: 16px; }
.folder__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; min-height: 30px; font-size: 13px; color: var(--muted); }
.folder__foot > span:first-child { white-space: nowrap; }
.folder__foot .stamp { flex: none; font-size: 12px; margin-left: auto; }
.folder__meta dd.folder__var { display: block; margin-top: 2px; font-size: 12px; line-height: 1.35; color: var(--muted); white-space: normal; }
.folder h3 { margin-top: 2px; }
/* Sheet state: confirmed = white paper with a check seal; inconclusive = grey, dashed, question seal. */
.folder__seal { position: static; width: 16px; height: 16px; color: var(--accent); }
.folder--inconclusive .folder__sheet { background-color: var(--sheet-flat); box-shadow: 0 6px 14px -8px rgba(0, 0, 0, 0.25); outline: 1.5px dashed color-mix(in srgb, var(--neutral) 55%, transparent); outline-offset: -1.5px; }
.folder--inconclusive .folder__seal { color: var(--neutral); }
.folder--inconclusive .folder__sheet:first-child { background-color: var(--sheet-flat); }
.read { display: inline-flex; align-items: center; gap: 4px; flex: none; font-size: 13px; color: var(--t-vegetation); font-weight: 600; }
.read .ic { width: 14px; height: 14px; }

/* ---------- Briefing ---------- */
.hero { display: flex; flex-direction: column; gap: 16px; max-width: 900px; padding-top: 8px; }
.hero h1 { font-size: clamp(32px, 4.2vw, 54px); }
.ledger { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-top: 8px; color: var(--ink-2); }
.ledger strong { font-size: 26px; font-weight: 500; color: var(--ink); margin-right: 4px; }
.ledger strong.accent { color: var(--accent); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps a { height: 100%; display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: start; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-1); text-decoration: none; color: var(--ink); transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out); }
.steps a:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.steps__ic { grid-row: span 2; width: 30px; height: 30px; color: var(--accent); }
.steps strong { font-weight: 600; }
.steps span { font-size: 13px; color: var(--muted); }
.pairs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.pair { display: flex; flex-direction: column; gap: 14px; color: var(--rail-hi-soft); }
.pair__var { display: flex; align-items: center; gap: 8px; color: var(--glow); font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.pair__var .ic { width: 18px; height: 18px; }
.pair__body { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 12px; }
.pair__side { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 14px; background: var(--rail-2); text-decoration: none; color: #fff; transition: background var(--dur-fast) var(--ease-out); }
.pair__side:hover { background: var(--rail-hover); }
.pair__side .muted { color: var(--rail-ink); }
.pair__value { display: flex; align-items: center; gap: 6px; font-size: 26px; }
.pair__value.dir-up { color: var(--up-night); } .pair__value.dir-down { color: var(--down-night); }
.pair__vs { align-self: center; color: var(--glow); }
.cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 32px 36px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-1); }
.cta h2 { font-size: 26px; margin-bottom: 4px; }

/* ---------- Evidence blocks: the color is the subject ---------- */
.block { border-radius: 28px; padding: 48px; color: var(--ink); }
.block h2 { font-size: 26px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; }
.block .lead { color: var(--ink-2); }
.block--temperature { background: var(--block-rose); }
.block--water { background: var(--block-tide); }
.block--vegetation { background: var(--block-sage); }
.block--ice { background: var(--block-ice); }
.block--stone { background: var(--block-stone); }
.block--night { background: var(--rail); color: var(--rail-hi-soft); }
.block--night h2 { color: #fff; }
.block--night .lead, .block--night .muted { color: var(--rail-ink); }
.block__head { margin-bottom: 28px; max-width: 68ch; }
.featured { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.featured__text { display: flex; flex-direction: column; gap: 14px; }
.featured__figure { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; }
.featured__figure .num { font-size: 32px; font-weight: 500; letter-spacing: -0.03em; display: inline-flex; align-items: center; gap: 8px; }
.featured__figure .num .ic { width: 26px; height: 26px; }
.featured__chart { height: 220px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.55); padding: 12px; }
.featured__chart svg { width: 100%; height: 100%; display: block; }
.featured__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.block .theme-ink { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }
.block--temperature .theme-ink { color: var(--t-temperature); }
.block--water .theme-ink { color: var(--t-water); }
.block--vegetation .theme-ink { color: var(--t-vegetation); }
.two-col .block { padding: 32px; }

/* ---------- Case Files archive ---------- */
.shelves { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.shelves__label { font-size: 13px; font-weight: 600; color: var(--muted); margin-right: 4px; }
.shelf-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 6px 8px 6px 16px; border: 1px solid var(--border, var(--line)); border-radius: 999px; background: var(--surface); color: var(--ink); font: 600 13px var(--sans); cursor: pointer; transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-press) var(--ease-out); }
.shelf-pill:hover { border-color: var(--ink); }
.shelf-pill:active { transform: scale(0.97); }
.shelf-pill__n { min-width: 24px; padding: 1px 7px; border-radius: 999px; background: var(--surface-3); color: var(--ink-2); font-size: 12px; text-align: center; }
.shelf-pill[aria-pressed="true"] { background: var(--rail); border-color: var(--rail); color: #fff; }
.shelf-pill[aria-pressed="true"] .shelf-pill__n { background: color-mix(in srgb, var(--glow) 18%, transparent); color: var(--glow); }
.shelves__surprise { margin-left: auto; font-size: 13px; }
.facet legend { display: flex; width: 100%; justify-content: space-between; align-items: baseline; gap: 8px; }
.facet__clear { border: 0; background: none; padding: 0; font: 600 12px var(--sans); color: var(--accent); cursor: pointer; }
.facet__clear:hover { text-decoration: underline; }
.facet-more summary { display: flex; align-items: center; justify-content: space-between; list-style: none; cursor: pointer; padding: 8px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-2); transition: background var(--dur-fast) var(--ease-out); }
.facet-more summary::-webkit-details-marker { display: none; }
.facet-more summary:hover { background: var(--surface-3); }
.facet-more summary .ic { width: 16px; height: 16px; transition: transform var(--dur-base) var(--ease-out); }
.facet-more[open] summary .ic { transform: rotate(180deg); }
.facet-more[open] summary { margin-bottom: 8px; }
.count-line__shelf { color: var(--ink-2); }
.archive { display: grid; grid-template-columns: 208px minmax(0, 1fr); gap: 40px; align-items: start; }
.facets-wrap { position: sticky; top: 24px; }
.facets-toggle { display: none; }
.facets {  display: flex; flex-direction: column; gap: 18px; }
.facet { border: 0; margin: 0; padding: 0; min-width: 0; }
.facet legend { font-family: var(--serif); font-size: 17px; font-weight: 500; margin-bottom: 8px; padding: 0; }
.facet__opts { display: flex; flex-direction: column; gap: 2px; }
.opt { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 6px 14px 6px 12px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font: 500 15px var(--sans); text-align: left; cursor: pointer; transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-press) var(--ease-out); }
.opt:active { transform: scale(0.98); }
.opt .ic { width: 18px; height: 18px; }
.opt:hover { background: var(--surface-3); }
.opt[aria-pressed="true"] { background: var(--rail); color: #fff; font-weight: 600; }
.opt[aria-pressed="true"] .ic { color: var(--glow); }
.opt[aria-pressed="true"] .opt__n { color: var(--rail-ink); }
.opt[aria-pressed="true"] .ev__bars i { background: rgba(255, 255, 255, 0.22); }
.opt[aria-pressed="true"] .ev__bars i.on { background: var(--glow); }
.opt__label { flex: 1; }
.opt__n { font-size: 13px; color: var(--muted); }
.opt.is-empty { opacity: 0.45; }
.results { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.search { flex: 1 1 280px; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border-radius: 999px; transition: box-shadow var(--dur-fast) var(--ease-out); background: var(--surface); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); color: var(--muted); }
.search:focus-within { box-shadow: var(--shadow-1), inset 0 0 0 2px var(--accent); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 15px var(--sans); color: var(--ink); }
.search input::placeholder { color: var(--placeholder); }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--surface-3); }
.seg button, .seg a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font: 500 13px var(--sans); cursor: pointer; text-decoration: none; transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.seg button:hover, .seg a:hover { color: var(--ink); }
.seg .ic { width: 18px; height: 18px; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-1); }
.select select { min-height: 42px; padding: 6px 36px 6px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%233f4248'%3E%3Cpath d='M213.66 101.66l-80 80a8 8 0 0 1-11.32 0l-80-80a8 8 0 0 1 11.32-11.32L128 164.69l74.34-74.35a8 8 0 0 1 11.32 11.32Z'/%3E%3C/svg%3E") no-repeat right 10px center / 14px; appearance: none; font: 500 15px var(--sans); color: var(--ink); cursor: pointer; }
.activebar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; min-height: 32px; }
.count-line { font-size: 15px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip-x { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 3px 8px 3px 12px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: 500 13px var(--sans); cursor: pointer; }
.chip-x .ic { width: 14px; height: 14px; }
.chip-x:hover { background: var(--accent); }
.shelf-group { display: flex; flex-direction: column; gap: 6px; }
.shelf-group__head { display: flex; align-items: baseline; gap: 10px; font-size: 17px; color: var(--ink-2); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.shelf-group__head .num { font-size: 13px; color: var(--muted); }
.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 56px 24px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-1); }
.empty__ic { width: 44px; height: 44px; color: var(--neutral); }
.tl { display: flex; flex-direction: column; gap: 14px; }
.tl__grid { --label: 230px; position: relative; }
.tl__axis { position: relative; height: 22px; margin-left: var(--label); border-bottom: 1px solid var(--line); }
.tl__axis span { position: absolute; transform: translateX(-50%); font-size: 12px; color: var(--muted); }
.tl__axis span:first-child { transform: none; } .tl__axis span:last-child { transform: translateX(-100%); }
.tl__rows { list-style: none; margin: 0; padding: 0; }
.tl__row { display: grid; grid-template-columns: var(--label) 1fr; align-items: center; min-height: 64px; border-bottom: 1px dashed var(--line); }
.tl__label { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); padding-right: 16px; }
.tl__label::after { display: none; }
.tl__label:hover strong { color: var(--accent); }
.tl__track { position: relative; height: 30px; }
.tl__bar { position: absolute; top: 0; height: 30px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border-radius: 999px; font-size: 13px; white-space: nowrap; overflow: hidden; }
.tl__bar .ic { width: 16px; height: 16px; }
.tl__bar--up { background: color-mix(in srgb, var(--up) 10%, transparent); color: var(--up); }
.tl__bar--down { background: color-mix(in srgb, var(--down) 12%, transparent); color: var(--down); }
.tl__bar--flat { background: color-mix(in srgb, var(--neutral) 6%, transparent); color: var(--neutral); outline: 1.5px dashed color-mix(in srgb, var(--neutral) 55%, transparent); outline-offset: -1.5px; }
.tl__dot { position: absolute; top: 0; height: 30px; transform: translateX(-15px); display: inline-flex; align-items: center; gap: 6px; padding: 0 10px 0 8px; border-radius: 999px; font-size: 13px; white-space: nowrap; }
.tl__dot .ic { width: 16px; height: 16px; }
.tl__dot--up { background: color-mix(in srgb, var(--up) 10%, transparent); color: var(--up); }
.tl__dot--down { background: color-mix(in srgb, var(--down) 12%, transparent); color: var(--down); }
.tl__dot--flat { background: color-mix(in srgb, var(--neutral) 6%, transparent); color: var(--neutral); }

/* ---------- Case file ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: -20px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.crumbs .ic { width: 14px; height: 14px; }
.case-title { view-transition-name: case-title; }
.chart { position: relative; min-height: 180px; background: var(--surface-2); border-radius: 14px; padding: 8px; }
.chart--lg { height: 340px; }
.chart--sm { height: 180px; }
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart .axis text { fill: var(--ink-2); font: 12px var(--mono); }
.chart .axis path, .chart .axis line { stroke: var(--ink-3); }
.chart .grid line { stroke: var(--line); }
.chart .grid path { display: none; }
.chart .band { fill: color-mix(in srgb, var(--series) 16%, transparent); }
.chart .annot { font: 500 12px var(--mono); fill: var(--up); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.prose h2 { margin-bottom: 10px; }
.prose p { color: var(--ink-2); line-height: 1.75; max-width: 68ch; }
.detail summary { cursor: pointer; font-family: var(--serif); font-size: 18px; font-weight: 500; }
.detail[open] summary { margin-bottom: 16px; }
.detail__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; margin: 0 0 18px; }
.detail__grid dt { font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.detail__grid dd { margin: 2px 0 0; font-size: 15px; }

/* ---------- Case file: five documents on a spine ---------- */
.dossier { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 48px; align-items: start; }
.spine { position: sticky; top: 32px; }
.spine ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.spine a { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 8px 12px; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 500; transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out); }
.spine a .num { font-size: 12px; color: var(--muted); transition: color var(--dur-fast) var(--ease-out); }
.spine a:hover { color: var(--ink); background: var(--surface-3); }
.spine a.is-active { color: var(--ink); background: var(--surface); box-shadow: var(--shadow-1); font-weight: 600; }
.spine a.is-active .num { color: var(--accent); }
.docs { display: flex; flex-direction: column; gap: 80px; min-width: 0; }
.doc { display: flex; flex-direction: column; gap: 16px; max-width: 72ch; scroll-margin-top: 32px; }
.doc h2 { font-size: 26px; font-weight: 600; letter-spacing: -0.01em; }
.doc--cover { gap: 18px; }
.doc--cover h1 { font-size: clamp(32px, 3.4vw, 46px); }
.doc__meta { font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.doc__verdict { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; padding-top: 4px; }
.doc__verdict .stamp { font-size: 13px; padding: 5px 12px 5px 8px; }
.doc__verdict .stamp .ic { width: 20px; height: 20px; }
.doc__place { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 15px; color: var(--ink-2); }
.doc__place .ic { width: 18px; height: 18px; color: var(--accent); }
.doc--evidence { max-width: none; }
.doc__figure { display: flex; align-items: baseline; gap: 10px; font-size: 32px; font-weight: 500; letter-spacing: -0.03em; margin-top: -6px; }
.doc__figure .ic { width: 28px; height: 28px; align-self: center; }
.doc__unit { font: 400 15px var(--sans); letter-spacing: 0; color: var(--muted); }
.paper { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-2); padding: 20px 20px 16px; }
.paper__caption { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--muted); }
.doc__chance { font-size: 15px; color: var(--ink-2); max-width: 72ch; }
.doc--why.block { padding: 40px; max-width: none; }
.doc--why.block .lead { max-width: 68ch; }
/* Appendix readout: the test as three questions (trend) or one dot per year (anomaly) */
.appendix__title { font-size: 26px; }
.appendix__lead { margin: 6px 0 20px; max-width: 70ch; }
.appendix__sum { font: 600 15px var(--sans); color: var(--accent); }
.readout { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 8px; }
.gauge, .strip { margin: 0; display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-1); }
.gauge figcaption, .strip figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.gauge figcaption .mono { font-size: 15px; font-weight: 600; color: var(--ink); }
.gauge__q { font: 600 15px var(--sans); color: var(--ink); }
.gauge__a { font-size: 13px; color: var(--ink-2); }
.gauge__track { position: relative; height: 10px; margin-top: 6px; border-radius: 999px; background: var(--surface-3); }
.gauge__zone { position: absolute; top: 0; bottom: 0; }
.gauge__zone--weak { background: var(--surface-3); border-radius: 999px 0 0 999px; }
.gauge__zone--moderate { background: var(--accent-soft); }
.gauge__zone--strong { background: var(--glow); border-radius: 0 999px 999px 0; }
.gauge__mark { position: absolute; top: -5px; width: 4px; height: 20px; margin-left: -2px; border-radius: 4px; background: var(--ink); box-shadow: 0 0 0 2px var(--surface); }
.gauge__mark--up { background: var(--up); } .gauge__mark--down { background: var(--down); } .gauge__mark--flat { background: var(--neutral); }
.gauge__track--axis { background: none; }
.gauge__track--axis::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }
.gauge__zero { position: absolute; top: -5px; bottom: -5px; width: 1px; background: var(--ink-3); }
.gauge__ci { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: var(--surface-3); }
.gauge__ci--up { background: var(--block-rose); } .gauge__ci--down { background: var(--block-tide); }
.gauge__ticks { position: relative; height: 16px; font-size: 12px; color: var(--muted); }
.gauge__ticks span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.gauge__ticks span:first-child { transform: none; }
.gauge__ticks span:last-child { transform: translateX(-100%); }
.gauge__ticks--zero span, .gauge__ticks--zero span:first-child, .gauge__ticks--zero span:last-child { transform: translateX(-50%); }
.gauge__bars { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 10px; align-items: center; }
.gauge__bar-label { color: var(--muted); white-space: nowrap; }
.gauge__bar { justify-self: start; width: var(--w); min-width: 4px; height: 10px; border-radius: 999px; background: var(--neutral); }
.gauge__bar--up { background: var(--up); } .gauge__bar--down { background: var(--down); }
.gauge__bar--noise { background: var(--ink-3); }
.gauge__bar-value { color: var(--ink); text-align: right; }
.strip__track { position: relative; height: 28px; }
.strip__track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }
.strip__track i { position: absolute; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 999px; background: var(--ink-3); }
.strip__mean { position: absolute; top: 3px; bottom: 3px; width: 2px; margin-left: -1px; border-radius: 4px; background: var(--muted); }
.strip__this { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 999px; background: var(--ink); box-shadow: 0 0 0 3px var(--surface), 0 1px 3px rgba(0, 0, 0, 0.25); }
.strip__this--high, .strip__this--very-high { background: var(--up); }
.strip__this--low, .strip__this--very-low { background: var(--down); }
.strip__ends { display: flex; justify-content: space-between; color: var(--muted); }
.strip__key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.strip__key > span { display: inline-block; margin-left: 8px; }
.strip__key > span:first-child { margin-left: 0; }
.strip__key-this { width: 12px; height: 12px; border-radius: 999px; background: var(--ink); }
.strip__key-year { width: 8px; height: 8px; border-radius: 999px; background: var(--ink-3); }
.strip__key-mean { width: 2px; height: 12px; border-radius: 4px; background: var(--muted); }
.doc--appendix .detail { display: flex; flex-direction: column; }
.doc--appendix summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; cursor: pointer; padding: 18px 20px; margin: 0 -20px; border-radius: 999px; transition: background var(--dur-fast) var(--ease-out); }
.doc--appendix summary::-webkit-details-marker { display: none; }
.doc--appendix summary:hover { background: var(--surface-3); }
.doc--appendix summary h2 { font-size: 20px; font-weight: 500; }
.doc--appendix summary .ic { transition: transform var(--dur-base) var(--ease-out); color: var(--muted); }
.doc--appendix .detail[open] summary .ic { transform: rotate(180deg); }
.doc--appendix .detail[open] summary { margin-bottom: 8px; }
.doc--next { gap: 20px; max-width: none; }
.next-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 28px 72px 28px 32px; border-radius: 28px; background: var(--rail); color: #fff; text-decoration: none; transition: background var(--dur-fast) var(--ease-out); }
.next-card:hover { background: var(--rail-2); }
.next-card__label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--glow); }
.next-card__title { font-family: var(--serif); font-size: 26px; font-weight: 500; line-height: 1.25; text-wrap: balance; }
.next-card__meta { font-size: 13px; color: var(--rail-ink); }
.next-card__arrow { position: absolute; right: 28px; top: 50%; width: 28px; height: 28px; transform: translateY(-50%); transition: transform var(--dur-fast) var(--ease-out); }
.next-card:hover .next-card__arrow { transform: translate(4px, -50%); }
.related { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; }
.related a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); text-decoration: none; font-weight: 500; }
.related a:hover { color: var(--accent); text-decoration: underline; }
.related .ic { width: 18px; height: 18px; color: var(--accent); }
.chart .inline { font: 500 12px var(--sans); }
.chart .inline--series { fill: var(--series); }
.chart .inline--trend { fill: var(--accent); }
.chart .inline--band { fill: var(--muted); }

.dot { width: 9px; height: 9px; border-radius: 9999px; display: inline-block; flex: none; }
.rows { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; }
.row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 10px; margin: 0 -10px; border-radius: 14px; color: var(--ink); text-decoration: none; }
.row:hover, .row:focus-visible { background: var(--surface-2); }
.row__main { display: flex; flex-direction: column; min-width: 0; }
.row__val { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; white-space: nowrap; }
.row__val .ic { width: 16px; height: 16px; }
.yours__controls { display: flex; flex-direction: column; gap: 8px; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.field select, .coords input { min-height: 40px; font: 15px var(--sans); color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 8px 10px; }
.coords { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.coords .btn { grid-column: 1 / -1; justify-content: center; }
.coords input { min-width: 0; }
.yours__body { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.yours__result { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.yours__stat { display: flex; align-items: center; gap: 6px; font-size: 20px; }
.yours__stat small { font-size: 13px; color: var(--muted); }
.spark { height: 110px; border-radius: 14px; background: var(--surface-2); padding: 8px; }
.spark svg { width: 100%; height: 100%; display: block; }
.months-detail summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.months-detail .chart { margin-top: 8px; }
.loading::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -1px; border-radius: 9999px; border: 2px solid var(--line); border-top-color: var(--accent); animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Global explorer: fullscreen globe, floating search, dock and side drawer ---------- */
.view.view--globe { padding: 0; max-width: none; gap: 0; }
.gx { position: relative; height: 100vh; height: 100dvh; overflow: hidden; background: radial-gradient(circle at 50% 50%, #0a0e1c 0%, #080c18 55%, #11102e 82%, #1a1443 100%); color: var(--rail-hi-soft); }

.gx-3d { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

@keyframes gx-panel-in { from { opacity: 0; transform: translateY(8px); } }

/* Side drawer: slides in from the right; a bottom sheet on phones. */
.gx-drawer { position: absolute; top: 16px; right: 16px; bottom: 16px; z-index: 7; width: min(400px, calc(100% - 32px)); display: flex; flex-direction: column; border-radius: 28px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.6); transform: translateX(calc(100% + 24px)); transition: transform var(--dur-leave) var(--ease-in); }
/* Enters a little slower than it leaves (NN/g): 300ms easing out, 200ms easing in. */
.gx-drawer.is-open { transform: translateX(0); transition-duration: var(--dur-panel); transition-timing-function: var(--ease-out); }
.gx-drawer__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 9999px; background: var(--surface-3); color: var(--ink); cursor: pointer; transition: background var(--dur-fast) var(--ease-out); }
.gx-drawer__close:hover { background: var(--chip); }
.gx-drawer__body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 28px 24px 24px; }
.gx-drawer__body h2 { font-size: 26px; font-weight: 600; line-height: 1.25; padding-right: 40px; outline: none; }
.gx-drawer__kind { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.gx-drawer__kind .ic { width: 18px; height: 18px; color: var(--accent); }
.gx-drawer__place { display: flex; align-items: center; gap: 6px; font-size: 15px; color: var(--ink-2); }
.gx-drawer__place .ic { width: 18px; height: 18px; color: var(--accent); }
.gx-drawer__verdict { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.gx-drawer__figure { display: flex; align-items: baseline; gap: 8px; font-size: 26px; font-weight: 500; }
.gx-drawer__figure .ic { width: 22px; height: 22px; align-self: center; }
.gx-drawer__figure span { font: 400 13px var(--sans); color: var(--muted); }
.gx-drawer__summary { font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.gx-drawer__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.gx-drawer .rows .row { width: 100%; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
.gx-drawer .row:hover { background: var(--surface-2); }

@media (max-width: 859.98px) {
  .gx { height: calc(100dvh - 56px - 76px); }
  .gx-drawer__body h2 { font-size: 20px; }
  .gx-drawer { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 58%; transform: translateY(calc(100% + 16px)); }
  .gx-drawer.is-open { transform: translateY(0); }
}

/* ---------- How we know ---------- */
.seg--jump { display: none; }
.method { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
.method__process { display: flex; flex-direction: column; gap: 28px; min-width: 0; scroll-margin-top: 24px; }
.pipeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.station { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 18px 16px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-1); }
.station:not(:last-child)::after { display: none; }
@media (min-width: 1600px) { .pipeline { grid-template-columns: repeat(5, minmax(0, 1fr)); } .station:not(:last-child)::after { display: block; } }
.station:not(:last-child)::after { content: ""; position: absolute; top: 36px; right: -12px; width: 12px; height: 2px; background: var(--accent); opacity: 0.5; }
.station__ic { width: 34px; height: 34px; color: var(--accent); }
.station h3 { display: flex; align-items: baseline; gap: 8px; font-size: 18px; }
.station__n { font-size: 13px; color: var(--muted); }
.station > p { font-size: 13px; color: var(--ink-2); }
.station details { margin-top: auto; }
.station summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--accent); }
.station details p { margin-top: 6px; color: var(--ink-2); }
.play { display: grid; grid-template-columns: minmax(250px, 320px) 1fr; gap: 24px; align-items: start; }
.play__intro { display: flex; flex-direction: column; gap: 14px; }
.range { display: flex; flex-direction: column; gap: 4px; font-size: 15px; font-weight: 500; }
.range span { display: flex; justify-content: space-between; gap: 8px; }
.range output { font: 500 13px var(--mono); color: var(--accent); }
.range input { width: 100%; }
.play__result { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 14px; background: var(--surface-2); }
.sources { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sources a { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 12px; border-radius: 14px; background: var(--surface-2); color: var(--ink); text-decoration: none; }
.sources a:hover { background: var(--surface-3); }
.sources a > span { display: flex; flex-direction: column; }
.sources .ic { width: 24px; height: 24px; color: var(--accent); }
.gloss__title { margin-top: 24px; }
.gloss { margin: 12px 0 0; display: flex; flex-direction: column; gap: 12px; }
.gloss dt { font-weight: 600; }
.gloss dd { margin: 2px 0 0; color: var(--ink-2); }

/* ---------- Tooltip ---------- */
.tooltip { position: fixed; z-index: 60; pointer-events: none; padding: 8px 12px; border-radius: 14px; font: 500 13px/1.45 var(--sans); background: rgba(10, 14, 28, 0.95); color: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.36); max-width: 280px; }
.tooltip .tip-hint { color: var(--glow); font-size: 12px; }

/* ---------- View transitions: the case title travels from folder to file ---------- */
::view-transition-old(root) { animation-duration: var(--dur-fast, 150ms); animation-timing-function: var(--ease-in, ease-in); }
::view-transition-new(root) { animation-duration: var(--dur-base, 200ms); animation-timing-function: var(--ease-out, ease-out); }
::view-transition-group(case-title) { animation-duration: var(--dur-large, 400ms); animation-timing-function: var(--ease-in-out, ease-in-out); }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .pipeline { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
  .station::after { display: none; }
}
@media (max-width: 1179.98px) {
  .shelf--3 { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
  .dossier { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .spine { position: sticky; top: var(--bar-h); z-index: 5; padding: 8px 0; background: var(--bg); }
  .dossier { --index-h: 56px; }
  .doc { scroll-margin-top: calc(var(--bar-h) + var(--index-h) + 16px); }
  .spine ol { flex-direction: row; overflow-x: auto; gap: 4px; scrollbar-width: none; }
  .spine a { white-space: nowrap; min-height: 36px; }
  .method { grid-template-columns: 1fr; }
  .seg--jump { display: inline-flex; }
}
@media (max-width: 960px) {
  .archive { grid-template-columns: 1fr; gap: 16px; }
  .facets-wrap { position: static; }
  .facets-toggle { display: inline-flex; list-style: none; }
  .facets-toggle::-webkit-details-marker { display: none; }
  .facets-wrap[open] .facets-toggle { border-color: var(--accent); }
  .facets { flex-direction: row; flex-wrap: wrap; gap: 16px 24px; margin-top: 16px; padding: 16px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-1); }
  .facet { flex: 1 1 180px; }
}
@media (max-width: 859.98px) {
  .block { border-radius: 0; margin: 0 -16px; padding: 32px 20px; }
  .spine { margin: 0 -16px; padding: 8px 16px; }
  .docs { gap: 56px; }
  .doc__figure { font-size: 26px; }
  .next-card { padding: 24px 60px 24px 24px; }
  .doc--appendix summary { margin: 0; padding: 14px 16px; }
  .next-card__title { font-size: 20px; }
  .two-col .block { padding: 28px 20px; }
  .featured { grid-template-columns: 1fr; gap: 24px; }
  .app { padding-left: 0; }
  .rail { display: none; }
  .mbar { display: flex; position: sticky; top: 0; z-index: 30; justify-content: space-between; align-items: center; gap: 12px; padding: calc(10px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) 10px calc(16px + env(safe-area-inset-left)); background: var(--rail); color: var(--rail-hi-soft); }
  .brand--m strong { font-family: var(--serif); font-weight: 500; font-size: 17px; color: #fff; }
  .tabbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; inset: auto 0 0 0; z-index: 30; padding: 6px calc(6px + env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) calc(6px + env(safe-area-inset-left)); background: var(--rail); box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.25); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 52px; padding: 6px 2px; border-radius: 18px; color: var(--rail-ink); text-decoration: none; font-size: 12px; font-weight: 500; text-align: center; line-height: 1.2; }
  .tabbar a.is-active { color: var(--rail-hi); background: color-mix(in srgb, var(--glow) 14%, transparent); }
  .tabbar .ic { width: 22px; height: 22px; }
  body { padding-bottom: 76px; }
  .view { padding: 24px 16px 32px; gap: 28px; }
  .steps, .pairs, .two-col, .play { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; padding: 24px; }
  .detail__grid { grid-template-columns: 1fr; }
  .crumbs { margin-bottom: -12px; }
}
@media (max-width: 559.98px) {
  .shelves { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; }
  .shelves__label { display: none; }
  .shelf-pill { flex: none; }
  .shelves__surprise { flex: none; margin-left: 4px; }
  .shelf { grid-template-columns: 1fr; }
  .pair__body { grid-template-columns: 1fr; }
  .pair__vs { justify-self: center; transform: rotate(90deg); }
  .tl__grid { --label: 120px; }
  .tl__bar .num { display: none; }
  .chart--lg { height: 260px; }
  .toolbar .btn, .toolbar .seg { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; transition-delay: 0ms !important; animation-duration: 0ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* ---------- Event audit (NASA EONET) ---------- */
.audit-src { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.audit-src .ic { width: 16px; height: 16px; color: var(--accent); }
.metric-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-1); }
.metric-strip > div { padding: 18px 20px; border-left: 1px solid var(--line); }
.metric-strip > div:first-child { border-left: 0; }
.metric-strip dt { font-size: 13px; color: var(--muted); }
.metric-strip dd { margin: 4px 0 0; font-size: 20px; font-weight: 500; color: var(--ink); }
.audit-key { display: flex; flex-direction: column; gap: 12px; }
.audit-key__verdicts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 24px; }
.audit-key__verdicts li { display: flex; flex-direction: column; gap: 8px; color: var(--ink-2); }
.audit-key__legend { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13px; color: var(--ink-2); list-style: none; margin: 0; padding: 0; }
.audit-key__legend li { display: inline-flex; align-items: center; gap: 8px; }
.key-span { width: 18px; height: 12px; border-radius: 4px; background: color-mix(in srgb, var(--series) 16%, transparent); }
.key-break { width: 0; height: 14px; border-left: 2px dashed var(--accent); }
.detail--inline summary { display: inline-flex; align-items: center; gap: 8px; font: 600 15px var(--sans); color: var(--accent); }
.detail--inline summary .ic { width: 18px; height: 18px; }
.detail--inline[open] summary { margin-bottom: 8px; }
.detail--inline p { max-width: 80ch; color: var(--ink-2); }
.stamp--trend { color: var(--accent-ink); }
.stamp--no-trend { color: var(--neutral); background: var(--surface); }
.stamp--artifact { color: var(--up); background: var(--block-rose); }
.stamp--insufficient { color: var(--neutral); background: rgba(225, 232, 255, 0.6); border-style: dashed; }
.audits { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 24px; }
.audit { display: flex; flex-direction: column; gap: 14px; padding: 24px; background: var(--paper); border-radius: 18px; box-shadow: var(--shadow-2); scroll-margin-top: 24px; }
.audit:target { box-shadow: var(--shadow-2), 0 0 0 2px var(--accent); }
.audit__head { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; }
.audit__ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 9999px; background: var(--surface-3); color: var(--accent); }
.audit__ic .ic { width: 24px; height: 24px; }
.audit h2 { font-size: 20px; line-height: 1.3; }
.audit__meta { font-size: 13px; color: var(--muted); margin: 2px 0 0; }
.audit__read { font-size: 15px; color: var(--ink-2); max-width: 64ch; margin: 0; }
.audit__breaks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-2); }
.audit__breaks li { display: flex; gap: 10px; align-items: baseline; }
.audit__breaks .num { color: var(--accent); font-weight: 500; min-width: 3em; }
.audit__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); }
.audit__foot p { margin: 0; }
.audit__foot abbr { text-decoration: none; font-weight: 600; color: var(--ink-2); }
.audit-small .row { margin: 0; padding: 12px 0; border-top: 1px solid var(--line); border-radius: 0; }
.audit-small .row strong { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.audit-small .row strong .ic { width: 18px; height: 18px; color: var(--accent); }
.row--static { grid-template-columns: 1fr auto; }
.chart--bars { height: 170px; min-height: 0; }
.chart .bar { fill: var(--series); transition: fill var(--dur-fast) var(--ease-out); }
.chart .bar:hover { fill: var(--accent); }
.chart .bar--partial { fill: color-mix(in srgb, var(--series) 35%, transparent); }
.chart .bars-span { fill: color-mix(in srgb, var(--series) 12%, transparent); }
.chart .bars-label { font: 600 12px var(--sans); fill: var(--down); }
.chart .bars-break { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 4 3; }
.sources__context { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; }
.sources__context .ic { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--muted); }

.gx-sec { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.gx-sec h3:not(.gx-sec__title) { display: flex; align-items: center; gap: 8px; margin: 0; font: 600 15px var(--sans); color: var(--ink); }
.gx-sec h3:not(.gx-sec__title) .ic { width: 18px; height: 18px; color: var(--accent); }
.gx-sec__title { display: flex; align-items: center; gap: 8px; font: 600 12px var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); margin-top: 4px; }
.gx-sec__title .ic { width: 16px; height: 16px; color: var(--accent); }
.gx-sec__note { margin: 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.gx-sec .gx-drawer__figure { font-size: 20px; }
.gx-sec .spark { height: 80px; }
.gx-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin: 0; }
.gx-facts dt { font-size: 12px; color: var(--muted); }
.gx-facts dd { margin: 2px 0 0; font-size: 15px; color: var(--ink); }
.gx-audit { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: var(--surface-2); color: var(--ink); text-decoration: none; transition: background var(--dur-fast) var(--ease-out); }
.gx-audit:hover { background: var(--surface-3); }
.gx-audit .stamp { transform: none; }
.gx-audit > .ic { width: 18px; height: 18px; color: var(--accent); }
.gx-anom { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.gx-anom__row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 13px; color: var(--ink-2); }
.gx-anom__row .num { font-size: 15px; color: var(--ink); text-align: right; }
.gx-anom__band { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.gx-anom__bar { position: relative; flex: none; width: 96px; height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--block-tide), var(--line) 30%, var(--line) 70%, var(--block-rose)); }
.gx-anom__bar i { position: absolute; top: -3px; width: 4px; height: 12px; margin-left: -2px; border-radius: 4px; background: var(--ink); }
.gx-anom__row--very-high .gx-anom__band, .gx-anom__row--very-low .gx-anom__band { color: var(--ink); font-weight: 600; }
.gx-context { border-top: 1px solid var(--line); padding-top: 12px; }
.gx-context summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; font: 600 15px var(--sans); color: var(--ink); }
.gx-context summary::-webkit-details-marker { display: none; }
.gx-context summary > span:first-child { display: inline-flex; align-items: center; gap: 8px; flex: 1; }
.gx-context summary .ic { width: 18px; height: 18px; color: var(--muted); }
.gx-context summary > .ic:last-child { transition: transform var(--dur-base) var(--ease-out); }
.gx-context[open] summary > .ic:last-child { transform: rotate(180deg); }
.gx-context[open] summary { margin-bottom: 8px; }
.gx-context > p { margin: 0 0 4px; }
.gx-context .gx-sec h3:not(.gx-sec__title) .ic { color: var(--muted); }
.tag-notnasa { flex: none; padding: 2px 8px; border-radius: 4px; border: 1px dashed var(--neutral); font: 600 12px var(--sans); color: var(--neutral); }
.gx-species { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.gx-species li { display: flex; flex-direction: column; }
.gx-species a { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; }
.gx-species a .ic { width: 14px; height: 14px; }
.gx-ind { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.gx-ind dt { font-size: 13px; color: var(--ink-2); }
.gx-ind dd { margin: 2px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.gx-ind dd .num { font-size: 15px; color: var(--ink); }
.gx-ind dd .small { display: inline-flex; align-items: center; gap: 4px; }
.gx-ind dd .ic { width: 14px; height: 14px; }
.spark--air { height: 72px; }
.air-who { stroke: var(--up); stroke-width: 1; stroke-dasharray: 4 3; }
.air-who__label { font: 500 12px var(--mono); fill: var(--up); }
.orbit { margin: 0; display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.orbit__title { display: flex; align-items: center; gap: 8px; font: 600 15px var(--sans); color: var(--ink); }
.orbit__title .ic { width: 18px; height: 18px; color: var(--accent); }
.orbit__frame { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--space); }
.orbit__frame img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity var(--dur-base) var(--ease-out); }
.orbit.is-loading img { opacity: 0.35; }
.orbit__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.orbit__step { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9999px; background: var(--surface); color: var(--ink); cursor: pointer; transition: border-color var(--dur-fast) var(--ease-out); }
.orbit__step:hover:not(:disabled) { border-color: var(--ink); }
.orbit__step:disabled { opacity: 0.4; cursor: not-allowed; }
.orbit__step .ic { width: 16px; height: 16px; }
.orbit__date { font-size: 13px; color: var(--ink-2); }
.orbit__note { margin: 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.orbit--compact { border-top: 0; padding-top: 0; }
.orbit--compact .orbit__note { display: none; }
.orbit-pair__title { display: flex; align-items: center; gap: 8px; font: 600 18px var(--serif); margin-bottom: 14px; }
.orbit-pair__title .ic { width: 20px; height: 20px; color: var(--accent); }
.orbit-pair__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.paper .near { border-top: 0; padding-top: 0; }
.near__cats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.near__cats a, .near__cats button { width: 100%; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: 14px; background: var(--surface-2); color: var(--ink); font: 15px var(--sans); text-align: left; text-decoration: none; cursor: pointer; transition: background var(--dur-fast) var(--ease-out); }
.near__cats a:hover, .near__cats button:hover { background: var(--surface-3); }
.near__cats .ic { width: 18px; height: 18px; color: var(--accent); }
.near__cats .num { font-size: 13px; color: var(--ink-2); }
.near__verdict { font-size: 12px; font-weight: 600; color: var(--neutral); }
.near__verdict--artifact { color: var(--up); }
.near__verdict--trend { color: var(--accent-ink); }
@media (max-width: 859.98px) {
  .metric-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-strip > div:nth-child(3) { border-left: 0; }
  .metric-strip > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .audit { padding: 18px 16px; }
  .audit__head { grid-template-columns: auto 1fr; }
  .audit__head .stamp { grid-column: 1 / -1; justify-self: start; }
  .orbit-pair__grid { gap: 10px; }
}

/* ---------- Archive v2: folders first, a quiet sidebar ---------- */
.page-head--slim .lead { font-size: 15px; max-width: 72ch; }
.kinds { display: flex; gap: 4px; flex-wrap: wrap; margin-top: -16px; border-bottom: 1px solid var(--line); }
.kinds__tab { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--ink-2); font: 500 15px var(--sans); cursor: pointer; transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); }
.kinds__tab .ic { width: 18px; height: 18px; }
.kinds__tab:hover { color: var(--ink); }
.kinds__tab[aria-pressed="true"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }
.kinds__tab[aria-pressed="true"] .ic { color: var(--accent); }
.kinds__n { font-size: 12px; padding: 1px 7px; border-radius: 999px; background: var(--surface-3); color: var(--ink-2); }
.fgroup { border-bottom: 1px solid var(--line); padding: 4px 0 10px; }
.fgroup summary { display: flex; align-items: center; gap: 8px; min-height: 40px; cursor: pointer; list-style: none; font: 600 13px var(--sans); color: var(--ink); }
.fgroup summary::-webkit-details-marker { display: none; }
.fgroup summary > span:first-child { flex: 1; }
.fgroup summary .ic { width: 14px; height: 14px; color: var(--muted); transition: transform var(--dur-base) var(--ease-out); }
.fgroup[open] summary .ic { transform: rotate(180deg); }
.fgroup__sel { min-width: 18px; font-size: 12px; color: var(--accent); text-align: center; }
.fgroup__opts { display: flex; flex-direction: column; }
.fgroup__clear { margin: 4px 0 0 26px; font-size: 12px; }
.frow { display: grid; grid-template-columns: 16px 1fr auto; align-items: center; gap: 10px; min-height: 34px; padding: 4px 6px; border: 0; border-radius: 14px; background: none; color: var(--ink-2); font: 400 14px var(--sans); text-align: left; cursor: pointer; transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.frow:hover { background: var(--surface-3); color: var(--ink); }
.frow__check { width: 14px; height: 14px; color: var(--accent); opacity: 0; }
.frow[aria-pressed="true"] { color: var(--ink); font-weight: 600; }
.frow[aria-pressed="true"] .frow__check { opacity: 1; }
.frow__label { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.frow__n { font-size: 12px; color: var(--muted); }
.btn--icon { width: 42px; padding: 0; justify-content: center; }
.shelf-group__head .ic { width: 18px; height: 18px; color: var(--accent); align-self: center; }
.shelf-group__note { margin-left: auto; font: 400 13px var(--sans); color: var(--muted); }
.shelf-group + .shelf-group { margin-top: 24px; }
.folder--ev { --tab: var(--neutral); --back: var(--block-stone); }
.folder--fam-fire { --tab: var(--t-temperature); --back: var(--block-rose); }
.folder--fam-storm { --tab: var(--accent-ink); --back: var(--block-ice); }
.folder--fam-water { --tab: var(--t-water); --back: var(--block-tide); }
.folder--fam-ice { --tab: var(--t-water); --back: var(--block-ice); }
.folder--fam-earth { --tab: var(--neutral); --back: var(--block-stone); }
.audit-intro { display: flex; flex-direction: column; gap: 10px; }
.audit-intro .h-section { margin: 0; }
#auditPane { display: flex; flex-direction: column; gap: 32px; }

/* ---------- Anomaly file ---------- */
.tag-lead { margin-left: 6px; padding: 1px 6px; border-radius: 4px; background: var(--accent-soft); color: var(--accent-ink); font: 600 12px var(--sans); }
.gx-anom--doc .gx-anom__row { font-size: 15px; padding: 6px 0; }
.gx-anom--doc .gx-anom__bar { width: 140px; }
.ctx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ctx-grid .orbit { border-top: 0; padding-top: 0; }
.gx-audit--doc { background: var(--surface); margin-bottom: 4px; }
.gx-audit--doc > span:first-child { display: flex; flex-direction: column; gap: 2px; }
.live__src { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.live__src a { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }
.live__src .ic { width: 12px; height: 12px; }
.paper .live { border-top: 1px solid var(--line); margin-top: 14px; }

.gx-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-radius: 18px; background: var(--surface-2); }
.gx-kpis > div { padding: 10px 12px; border-left: 1px solid var(--line); }
.gx-kpis > div:first-child { border-left: 0; }
.gx-kpis dt { font-size: 12px; color: var(--muted); }
.gx-kpis dd { margin: 2px 0 0; font-size: 20px; color: var(--ink); }
.row--ev { grid-template-columns: auto 1fr auto auto; }
.ev-diamond { width: 10px; height: 10px; transform: rotate(45deg); border-radius: 4px; background: var(--c); box-shadow: 0 0 0 1.5px var(--ink); }
.sec-ev__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.sec-ev__list button { width: 100%; display: grid; grid-template-columns: auto 1fr auto auto auto; align-items: center; gap: 10px; padding: 7px 10px; border: 0; border-radius: 14px; background: none; color: var(--ink); font: 14px var(--sans); text-align: left; cursor: pointer; }
.sec-ev__list button:hover { background: var(--surface-2); }
.sec-ev__list .dot { width: 10px; height: 10px; box-shadow: 0 0 0 1.5px var(--ink); }
.sec-ev__list .num { font-size: 13px; }
@media (max-width: 1099.98px) {
  .archive { grid-template-columns: 1fr; gap: 16px; }
  .facets-toggle { display: inline-flex; }
  .facets-wrap { position: static; }
  .facets-wrap[open] .facets { margin-top: 12px; padding: 12px 16px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-1); display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 24px; }
  .ctx-grid { grid-template-columns: 1fr; }
}
@media (max-width: 859.98px) {
  .kinds { margin-top: -8px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .kinds__tab { flex: none; padding: 8px 10px; }
  .shelf-group__note { display: none; }
}
.facets-toggle { list-style: none; }

/* ---------- Briefing v2: one count per kind of evidence, the false suspect ---------- */
.ledger--kinds { list-style: none; margin: 0; padding: 8px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; max-width: 880px; }
.ledger--kinds li { min-width: 0; border-left: 1px solid var(--line); }
.ledger--kinds li:first-child { border-left: 0; }
.ledger--kinds a { display: flex; flex-direction: column; gap: 2px; padding: 4px 20px; color: inherit; text-decoration: none; border-radius: 14px; transition: background var(--dur-fast) var(--ease-out); }
.ledger--kinds li:first-child a { padding-left: 0; }
.ledger--kinds a:hover { background: var(--surface-3); }
.ledger__fig { font-size: 15px; color: var(--ink-2); }
.ledger__fig strong { font-size: 32px; }
.ledger__label { font-size: 15px; color: var(--ink-2); }
.suspect { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 40px; border-radius: 28px; background: var(--block-stone); }
.suspect__kind { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font: 600 15px var(--sans); color: var(--up); }
.suspect__kind .ic { width: 20px; height: 20px; }
.suspect h2 { font-size: 26px; line-height: 1.3; margin-bottom: 12px; }
.suspect .lead { margin-bottom: 20px; }
.suspect__chart { height: 220px; background: var(--paper); }
@media (max-width: 960px) {
  .suspect { grid-template-columns: 1fr; padding: 28px 20px; }
}
@media (max-width: 859.98px) {
  .suspect { border-radius: 0; margin: 0 -16px; }
  .ledger--kinds { grid-template-columns: 1fr; }
  .ledger--kinds li { border-left: 0; border-top: 1px solid var(--line); }
  .ledger--kinds li:first-child { border-top: 0; }
  .ledger--kinds a { padding: 10px 0; flex-direction: row; align-items: baseline; gap: 10px; }
}

/* ---------- Benchmark P1 ---------- */
/* Page properties (Notion-style): one fact per row under the title */
.props { display: flex; flex-direction: column; margin: 4px 0 0; padding: 8px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.props__row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 36px; padding: 2px 6px; border-radius: 14px; }
.props__row:hover { background: var(--surface-3); }
.props dt { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.props dt .ic { width: 16px; height: 16px; }
.props dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 15px; color: var(--ink); min-width: 0; }
.props dd .stamp { transform: none; }
.doc__figure--words { font: 600 26px/1.25 var(--serif); letter-spacing: -0.01em; flex-wrap: wrap; }
.doc__figure--words .doc__unit { font: 400 15px var(--sans); }
.gx-drawer__figure--words { font: 600 20px/1.3 var(--serif); flex-wrap: wrap; }
/* Audit conclusion */
.callout-box { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; padding: 16px 18px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-1); }
.callout-box .ic { width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
.callout-box p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink); max-width: 72ch; }
/* Method: two more tests and the rare-day lab */
.tests { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.test { display: flex; flex-direction: column; gap: 8px; padding: 18px 16px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-1); }
.test h3 { font-size: 18px; }
.test p { margin: 0; color: var(--ink-2); font-size: 15px; }
.test .linklike { margin-top: auto; }
.rare { display: flex; flex-direction: column; gap: 16px; }
.rare__dots { display: grid; grid-template-columns: repeat(20, 1fr); gap: 4px; max-width: 420px; }
.rare__dots i { aspect-ratio: 1; border-radius: 4px; background: var(--surface-3); }
.rare__dots i.on { background: var(--up); }
.rare__result { margin: 0; font-size: 17px; max-width: 46ch; }
.rare__result strong { color: var(--up); }
/* Case Files: table and board views */
.tbl-tools { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.tbl-wrap { overflow-x: auto; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-1); }
.tbl { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 15px; }
.tbl th { text-align: left; font-weight: 500; font-size: 13px; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr:hover td { background: var(--surface-2); }
.tbl .stamp { transform: none; }
.tbl__title a { display: block; font-weight: 600; color: var(--ink); text-decoration: none; }
.tbl__title a:hover { color: var(--accent); }
.tbl__kind { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--ink-2); }
.tbl__kind .ic { width: 16px; height: 16px; }
.tbl__group th { background: var(--surface-2); color: var(--ink); font: 600 13px var(--sans); }
.tbl__group .num { color: var(--muted); margin-left: 6px; }
.board { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; align-items: start; }
.board__col { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 18px; background: var(--surface-3); }
.board__col h3 { display: flex; align-items: center; gap: 8px; font: 600 13px var(--sans); padding: 2px 4px; }
.board__col h3 .num { font-size: 12px; color: var(--muted); }
.board__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.board__card { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 14px; background: var(--paper); box-shadow: var(--shadow-1); color: var(--ink); text-decoration: none; }
.board__card:hover strong { color: var(--accent); }
.board__card strong { font: 500 15px/1.35 var(--serif); }
.board__card .ic { width: 14px; height: 14px; }
.board__col--confirmed h3 { color: var(--accent-ink); }
.board__col--anomalous h3 { color: var(--up); }

.gx-fold { border-top: 1px solid var(--line); }
.gx-fold summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; list-style: none; }
.gx-fold summary::-webkit-details-marker { display: none; }
.gx-fold summary > .ic:first-child { width: 18px; height: 18px; color: var(--accent); }
.gx-fold summary > .ic:last-child { width: 14px; height: 14px; color: var(--muted); transition: transform var(--dur-base) var(--ease-out); }
.gx-fold[open] summary > .ic:last-child { transform: rotate(180deg); }
.gx-fold__title { font: 600 15px var(--sans); color: var(--ink); }
.gx-fold__sum { justify-self: end; max-width: 12em; font-size: 13px; color: var(--ink-2); text-align: right; }
.gx-fold__body { display: flex; flex-direction: column; gap: 10px; padding-bottom: 14px; }
.gx-fold .orbit { border-top: 0; padding-top: 0; }
.near--bare { border-top: 0; padding-top: 0; }
.gx-kpis__sub { display: block; font: 400 12px var(--sans); color: var(--muted); }
@media (max-width: 1099.98px) {
  .props__row { grid-template-columns: 120px minmax(0, 1fr); }
}
@media (max-width: 859.98px) {
  .gx-fold__sum { display: none; }
}
.results .toolbar .search { flex-basis: 100%; }
.results .toolbar .btn--icon { margin-left: auto; }
.tbl td.mono, .tbl td.num { white-space: nowrap; }
.tbl__title { min-width: 240px; }
@media (max-width: 1439.98px) { .results .seg button span { display: none; } .results .seg button[aria-pressed="true"] span { display: inline; } }
.props dd { display: block; }
.props dd .stamp { margin-right: 12px; vertical-align: middle; }
.props dd .ev { vertical-align: middle; }
.results .toolbar .btn--icon { flex: none; width: 42px; }

/* ---------- Benchmark P2 ---------- */
.toast { position: fixed; left: 50%; bottom: 32px; z-index: 60; transform: translate(-50%, 16px); padding: 10px 18px; border-radius: 999px; background: var(--rail); color: #fff; font: 500 15px var(--sans); box-shadow: var(--shadow-2); opacity: 0; pointer-events: none; transition: opacity var(--dur-fast) var(--ease-in), transform var(--dur-fast) var(--ease-in); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); transition-duration: var(--dur-base); transition-timing-function: var(--ease-out); }
.related .btn { min-height: 36px; padding: 6px 14px; font-size: 13px; }
/* Tabs: chart, table, sources */
.tabs__bar { display: flex; gap: 2px; margin: -4px 0 12px; border-bottom: 1px solid var(--line); }
.tabs__bar button { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 12px; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--ink-2); font: 500 13px var(--sans); cursor: pointer; }
.tabs__bar button .ic { width: 16px; height: 16px; }
.tabs__bar button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }
.tbl-wrap--flat { box-shadow: none; max-height: 340px; overflow-y: auto; }
.tbl--data { min-width: 0; }
.tbl--data thead th { position: sticky; top: 0; background: var(--paper); }
.tbl--data td.num { text-align: right; }
.tbl--data th:not(:first-child) { text-align: right; }
.sources--doc { margin: 0; }
.sources--doc li > div { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 12px; border-radius: 14px; background: var(--surface-2); }
/* Outline bar (Notion-style "on this page") */
.toc-bar { position: sticky; top: calc(var(--bar-h) + 12px); z-index: 4; display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); box-shadow: var(--shadow-1); align-self: flex-start; }
.toc-bar a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 12px; border-radius: 999px; color: var(--ink-2); font: 500 13px var(--sans); text-decoration: none; }
.toc-bar a:hover { background: var(--surface-3); color: var(--ink); }
.toc-bar .ic { width: 16px; height: 16px; color: var(--accent); }
[id$="Title"].h-section, h2[id$="Title"] { scroll-margin-top: 72px; }
.audit { scroll-margin-top: 72px; }
/* The audit's outline sticks 12px under the top on every width: 12px plus its one row of links. */
#auditPane { --index-h: 56px; }
#auditPane :is(.audit, .h-section) { scroll-margin-top: calc(var(--bar-h) + var(--index-h) + 16px); }
@media (pointer: coarse) { #auditPane { --index-h: 68px; } }
@media (max-width: 1179.98px) {
  .toc-bar { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .toc-bar a { flex: none; white-space: nowrap; }
}
/* Today in EONET */
.day { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 28px; align-items: center; padding: 24px; border-radius: 28px; background: var(--surface); box-shadow: var(--shadow-1); }
.day > .loading { grid-column: 1 / -1; margin: 0; }
.day__img .orbit { border-top: 0; padding-top: 0; }
.day__kind { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font: 600 13px var(--sans); color: var(--accent); }
.day__kind .ic { width: 18px; height: 18px; }
.day h2 { font-size: 26px; line-height: 1.25; margin-bottom: 4px; }
.day__runup { font-size: 17px; margin: 12px 0 8px; }
.day__runup strong { font-family: var(--serif); font-weight: 600; color: var(--up); }
.day .stamp { transform: none; margin-left: 6px; }
.day__actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 8px; }
/* Place search on the briefing */
.cta { flex-wrap: wrap; }
.place-search { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 380px; max-width: 520px; }
.place-search .search { flex: 1 1 220px; }
.place-search__msg { flex-basis: 100%; margin: 0; min-height: 1em; }
.gx-drawer__open { align-self: flex-start; }
.field--inline { flex-direction: row; align-items: center; gap: 10px; max-width: 420px; }
.field--inline select { flex: 1; }
@media (max-width: 859.98px) {
  .day { grid-template-columns: 1fr; padding: 20px 16px; border-radius: 0; margin: 0 -16px; }
  .toc-bar { border-radius: 18px; }
}
.sources--doc li > div > span { display: flex; flex-direction: column; } .sources--doc .ic { width: 24px; height: 24px; color: var(--accent); }
.ledger__fig { white-space: nowrap; }

/* ---------- Archive views v2: table, board, timeline ---------- */
/* Table: four columns that fit; rows become cards on phones */
.tbl--files { min-width: 0; table-layout: auto; }
.tbl--files .tbl__title { min-width: 0; width: 100%; }
.tbl--files .tbl__title a { font: 600 15px/1.35 var(--serif); }
.tbl__sub { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin-top: 2px; font-size: 13px; color: var(--muted); }
.tbl__sub .ic { width: 14px; height: 14px; }
.tbl__change { white-space: nowrap; font-size: 15px; }
.tbl__change .ic { width: 16px; height: 16px; vertical-align: -3px; }
.tbl__var { display: block; font: 400 12px var(--sans); color: var(--muted); }
.tbl__ev .ev__word { display: none; }
.tbl__verdict { white-space: nowrap; }
@media (min-width: 1400px) { .tbl__ev .ev__word { display: inline; } }
@media (max-width: 760px) {
  .tbl-wrap { overflow: visible; background: none; box-shadow: none; }
  .tbl--files thead { display: none; }
  .tbl--files, .tbl--files tbody { display: block; }
  .tbl--files tr { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; margin-bottom: 10px; padding: 14px 16px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-1); }
  .tbl--files td { padding: 0; border: 0; }
  .tbl--files .tbl__title { grid-column: 1 / -1; }
  .tbl--files .tbl__verdict { justify-self: end; grid-column: 2; grid-row: 2 / 4; }
  .tbl--files tr.tbl__group { display: block; padding: 6px 2px; background: none; box-shadow: none; margin: 14px 0 4px; }
  .tbl--files tr.tbl__group th { background: none; padding: 0; }
  .tbl--files tbody tr:hover td { background: none; }
}
/* Board: columns side by side, the board scrolls sideways */
.board { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; align-items: stretch; }
.board__col { flex: 0 0 272px; scroll-snap-align: start; max-height: calc(100vh - 220px); display: flex; flex-direction: column; }
.board__col h3 { position: sticky; top: 0; }
.board__col ul { overflow-y: auto; padding: 6px; margin: -6px; } /* room for the focus ring and the clay shadow inside the scrolling edge */
.board__card { gap: 6px; }
.board__meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.board__meta .num { font-size: 13px; white-space: nowrap; }
.board__meta .ic { width: 14px; height: 14px; vertical-align: -2px; }
.board__where { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.board__hint { margin: 0 0 8px; }
@media (min-width: 1500px) { .board__hint { display: none; } }
@media (max-width: 760px) { .board__col { flex-basis: 84%; max-height: none; } .board__col ul { overflow: visible; } }
/* Timeline: bars for trends, a dated list for anomalies */
.tl-wrap { display: flex; flex-direction: column; gap: 20px; }
.tl__title { display: flex; align-items: center; gap: 8px; font: 600 17px var(--serif); }
.tl__title .ic { width: 18px; height: 18px; color: var(--accent); }
.tl__title .num { font: 500 12px var(--mono); padding: 1px 7px; border-radius: 999px; background: var(--surface-3); color: var(--ink-2); }
.tl__grid { --label: 200px; }
.tl__label strong { font-size: 15px; }
.tl__bar { min-width: 64px; }
.tl-year { display: flex; flex-direction: column; gap: 4px; }
.tl-year + .tl-year { margin-top: 10px; }
.tl-year__head { display: flex; align-items: baseline; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font: 600 20px var(--mono); }
.tl-events { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.tl-ev { display: grid; grid-template-columns: 64px 10px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 6px; border-bottom: 1px dashed var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; }
.tl-ev:hover { background: var(--surface-2); }
.tl-ev:hover strong { color: var(--accent); }
.tl-ev__date { font-size: 13px; color: var(--ink-2); }
.tl-ev__dot { width: 10px; height: 10px; border-radius: 9999px; background: var(--c); box-shadow: 0 0 0 1.5px var(--ink); }
.tl-ev__main { display: flex; flex-direction: column; min-width: 0; }
.tl-ev__main strong { font: 600 15px/1.35 var(--serif); }
.tl-ev__fig { display: flex; flex-direction: column; align-items: flex-end; font-size: 13px; white-space: nowrap; }
.tl-ev__fig .ic { width: 16px; height: 16px; }
.tl-ev .stamp { transform: none; }
@media (max-width: 900px) {
  .tl-ev { grid-template-columns: 54px 10px minmax(0, 1fr); }
  .tl-ev__fig { grid-column: 3; flex-direction: row; gap: 6px; align-items: baseline; }
  .tl-ev .stamp { grid-column: 3; justify-self: start; }
}
@media (max-width: 760px) {
  .tl__grid { --label: 0px; }
  .tl__axis { margin-left: 0; }
  .tl__row { grid-template-columns: 1fr; gap: 6px; padding: 10px 0; }
  .tl__label { padding-right: 0; }
}
.empty--page { margin-top: 40px; }
.empty--page h1 { font-size: 26px; }
.tbl--files .tbl__change, .tbl--files .tbl__ev, .tbl--files .tbl__verdict, .tbl--files thead th:not(:first-child) { width: 1%; white-space: nowrap; }
.tbl--files .stamp { font-size: 12px; letter-spacing: 0.06em; padding: 2px 8px 2px 5px; }
.tbl--files .stamp .ic { width: 14px; height: 14px; }
.tbl--files .tbl__verdict { display: table-cell; }
.tbl--files .tbl__verdict .stamp { display: flex; width: max-content; margin-bottom: 6px; }
.tbl--files .tbl__verdict .ev__word { display: none; }
@media (max-width: 760px) { .tbl--files .tbl__verdict { display: flex; flex-direction: column; align-items: flex-end; grid-row: 2; } }
@media (max-width: 760px) {
  .tbl--files .tbl__change, .tbl--files .tbl__verdict, .tbl--files .tbl__title { width: auto; }
  .tbl--files .tbl__change { grid-row: 2; align-self: center; }
}
@media (max-width: 900px) {
  .tl-ev__fig { flex-wrap: wrap; white-space: normal; }
}
@media (max-width: 760px) {
  .tl__bar .num { display: inline; }
  .tl__axis span:nth-child(5) { display: none; }
}
/* On phones the board stacks its columns: one verdict group after another. */
@media (max-width: 760px) {
  .board { flex-direction: column; overflow: visible; scroll-snap-type: none; }
  .board__col { flex: none; width: 100%; max-height: none; }
  .board__hint { display: none; }
}
.board__where, .tbl__sub { display: block; }
.board__where .ic, .tbl__sub .ic { vertical-align: -2px; margin-right: 3px; }
/* Links in table, board and timeline stay inside their own box (folders use a stretched link, these must not). */
.tbl__link { display: inline-block; padding-block: 2px; color: var(--ink); text-decoration: none; }
.tbl__link:hover { color: var(--accent); }
.tbl--files .tbl__title .tbl__link { display: block; font: 600 15px/1.35 var(--serif); }

/* At rest only the paper edges peek out; the headers fade in as the sheets rise. */
.sheet__head, .folder__spark { opacity: 0; transition: opacity var(--dur-fast) var(--ease-in); }
.folder:is(:hover, :focus-within) .sheet__head, .folder:is(:hover, :focus-within) .folder__spark { opacity: 1; transition: opacity var(--dur-base) var(--ease-out) calc(160ms + var(--i, 0) * 40ms); }
@media (hover: none) { .sheet__head, .folder__spark { opacity: 1; } }

/* ---------- How we know (document) and Team (own page) ---------- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts > div { padding: 18px 20px; border-left: 1px solid var(--line); }
.facts > div:first-child { border-left: 0; padding-left: 0; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 6px 0 0; font: 500 32px/1.1 var(--mono); letter-spacing: -0.02em; color: var(--ink); }
.method--doc { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 48px; align-items: start; }
.method__toc { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 10px; }
.method__toc-title { margin: 0; font: 600 12px var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.method__toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.method__toc ol a { display: flex; gap: 10px; align-items: baseline; padding: 6px 12px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-2); font-size: 13px; text-decoration: none; }
.method__toc ol a .num { font-size: 12px; color: var(--muted); }
.method__toc ol a:hover { color: var(--ink); }
.method__toc ol a.is-active { color: var(--ink); font-weight: 600; border-left-color: var(--accent); }
.method__toc ol a.is-active .num { color: var(--accent); }
.method__toc .linklike { margin-top: 8px; }
.method__body { display: flex; flex-direction: column; gap: 40px; min-width: 0; }
.method__body > section, .method__body .h-section { scroll-margin-top: 24px; }
/* Process as numbered rows with hairlines */
.steps-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.steps-list__row { display: grid; grid-template-columns: 64px minmax(160px, 1fr) minmax(0, 2fr); gap: 8px 24px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.steps-list__n { font: 500 26px/1 var(--mono); color: var(--accent); }
.steps-list__head { display: flex; align-items: center; gap: 10px; }
.steps-list__head h3 { font-size: 20px; }
.steps-list__ic { width: 22px; height: 22px; color: var(--accent); }
.steps-list__body p { margin: 0; color: var(--ink-2); }
.steps-list__more { margin-top: 8px; }
.steps-list__more summary { display: inline-flex; align-items: center; gap: 4px; list-style: none; cursor: pointer; font: 600 13px var(--sans); color: var(--accent); }
.steps-list__more summary::-webkit-details-marker { display: none; }
.steps-list__more summary .ic { width: 14px; height: 14px; transition: transform var(--dur-base) var(--ease-out); }
.steps-list__more[open] summary .ic { transform: rotate(180deg); }
.steps-list__more p { margin-top: 6px; font-size: 15px; }
/* Team: six people as the protagonists. Photo card after Mobbin (Monarch, Tines); side-by-side card on phones (Descript). */
.team-page { display: flex; flex-direction: column; gap: 32px; }
.team-page__intro { display: flex; flex-direction: column; gap: 12px; max-width: 70ch; }
.team-page__intro h1 { font-size: 46px; }
.team-page__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 15px; }
.team-page__meta > .ic { width: 18px; height: 18px; color: var(--accent); }
.team-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.member { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-1); }
.member__photo { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; align-content: center; gap: 8px; background-color: var(--rail); background-image: radial-gradient(color-mix(in srgb, var(--glow) 22%, transparent) 1px, transparent 1.5px); background-size: 14px 14px; color: var(--glow); }
.member__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.member__initials { font: 600 72px/1 var(--serif); letter-spacing: -0.02em; }
.member__ph { width: 48px; height: 48px; color: var(--rail-ink); }
.member__ph-label { font: 500 13px var(--sans); color: var(--rail-ink); }
.member__body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; }
.member__eyebrow { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font: 600 12px var(--sans); letter-spacing: 0.06em; text-transform: uppercase; }
.member__eyebrow .ic { width: 14px; height: 14px; }
.member__eyebrow--lead { color: var(--accent); }
.member__eyebrow--pending { padding: 2px 8px; border: 1px dashed var(--ink-3); border-radius: 999px; color: var(--muted); }
.member__name { font: 600 24px/1.2 var(--serif); }
.member__roles { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.member__roles li { padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font: 600 13px var(--sans); }
.member--pending .member__roles li { background: var(--surface-3); color: var(--muted); }
.member__bio { font-size: 15px; color: var(--ink-2); }
.member__links { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.member__in .ic { color: var(--accent); }
.member__in .member__ext { width: 14px; height: 14px; color: var(--muted); }
.member__link { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 999px; color: var(--muted); transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.member__link:hover { color: var(--ink); background: var(--chip); }
.member__link .ic { width: 20px; height: 20px; }
@media (max-width: 1099.98px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559.98px) {
  .team-grid { grid-template-columns: 1fr; gap: 12px; }
  .member { flex-direction: row; }
  .member__photo { flex: none; width: 116px; aspect-ratio: auto; background-size: 12px 12px; }
  .member__initials { font-size: 32px; }
  .member__ph { width: 32px; height: 32px; }
  .member__ph-label { display: none; }
  .member__body { padding: 14px 14px 14px 16px; gap: 8px; }
  .member__name { font-size: 20px; }
  .member__roles li { padding: 3px 10px; font-size: 12px; }
}
/* How we know: thanks and how we used AI */
.method-thanks { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; scroll-margin-top: 24px; }
.credits { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 8px; }
.credits a { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-1); color: var(--ink); text-decoration: none; transition: box-shadow var(--dur-fast) var(--ease-out); }
.credits a:hover { box-shadow: var(--shadow-2); }
.credits a > span { display: flex; flex-direction: column; min-width: 0; }
.credits .ic { width: 20px; height: 20px; color: var(--accent); }
.credits .ic:last-child { width: 14px; height: 14px; color: var(--muted); }
.method-ai { scroll-margin-top: 24px; }
.method-ai h2 { display: flex; align-items: center; gap: 8px; font-size: 20px; margin-bottom: 8px; }
.method-ai h2 .ic { color: var(--accent); }
@media (max-width: 1099.98px) {
  .method--doc { grid-template-columns: 1fr; gap: 24px; }
  .method__toc { position: sticky; top: var(--bar-h); z-index: 4; flex-direction: row; align-items: center; overflow-x: auto; padding: 8px 0; background: var(--bg); scrollbar-width: none; }
  .method--doc { --index-h: 56px; }
  .method--doc :is(.method__body > section, .h-section, .method__process, .method-thanks, .method-ai, h2[id$="Title"]) { scroll-margin-top: calc(var(--bar-h) + var(--index-h) + 16px); }
  .method__toc-title, .method__toc .linklike { display: none; }
  .method__toc ol { flex-direction: row; border-left: 0; gap: 4px; }
  .method__toc ol a { white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; margin-left: 0; }
  .method__toc ol a.is-active { border-bottom-color: var(--accent); }
}
@media (max-width: 859.98px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .facts dd { font-size: 26px; }
  .steps-list__row { grid-template-columns: 40px minmax(0, 1fr); }
  .steps-list__n { font-size: 20px; }
  .steps-list__body { grid-column: 2; }
  .method-thanks { grid-template-columns: 1fr; gap: 20px; }
  .team-page { gap: 24px; }
  .team-page__intro h1 { font-size: 32px; }
}

/* ---------- Rail v2 (Mobbin: Lindy, Cloudflare, Square, Linear patterns) ---------- */
.rail__head { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0 2px 14px 6px; }
.brand__mark { color: var(--rail-hi-soft); }
.rail__collapse { flex: none; width: 34px; min-height: 34px; color: var(--rail-ink); }
.rail__collapse:hover { background: rgba(255, 255, 255, 0.08); }
.tool--search { min-height: 38px; border: 1px solid var(--space-line); background: rgba(10, 14, 28, 0.35); color: var(--rail-ink); font-size: 13px; }
.tool--search:hover { border-color: var(--rail-hover); }
.tool--search kbd { font-size: 12px; }
.nav a { min-height: 38px; font-size: 15px; }
.nav a.is-active { box-shadow: inset 2px 0 0 var(--glow); }
.nav__sub a .count { color: var(--rail-ink); }
.nav__recent ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.nav__recent a { min-height: 34px; font-size: 13px; font-weight: 500; color: var(--rail-ink); }
.nav__recent-dot { flex: none; width: 8px; height: 8px; margin: 0 6px; border-radius: 9999px; background: var(--c); }
.nav__recent-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-card { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 18px; background: var(--rail-2); border: 1px solid var(--space-line); color: var(--rail-ink); text-decoration: none; white-space: normal; transition: border-color var(--dur-fast) var(--ease-out); }
.rail-card:hover { border-color: var(--rail-hover); }
.rail-card__head { display: flex; justify-content: space-between; font: 600 13px var(--sans); color: var(--rail-hi-soft); }
.rail-card__head .num { color: var(--glow); font-size: 12px; }
.rail-card__bar { height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.rail-card__bar i { display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--glow); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform var(--dur-large) var(--ease-out); }
.rail-card__text { font-size: 12px; color: var(--rail-ink); }
.rail-card__data { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--rail-ink); }
.rail__modes { justify-content: space-between; align-items: center; }
.rail__modes .lang { align-self: center; }
/* Collapsed rail: the mark on top, the collapse button under it */
:root[data-nav="collapsed"] .rail__head { flex-direction: column; padding: 0 0 10px; }
:root[data-nav="collapsed"] .rail__modes { justify-content: center; }
:root[data-nav="collapsed"] .tool--search { justify-content: center; padding: 0; border-color: transparent; background: none; }
:root[data-nav="collapsed"] .nav__recent { display: none; }
.nav__sub a > span:not(.count) { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nav__sub a .count { flex: none; }

/* Rail toggle motion: only while .nav-anim is set by the button (see Nav.toggle). Rail and page share
   one duration and curve so they move as one; labels fade around the width change. */
.nav-anim .rail { transition: width var(--dur-panel) var(--ease-in-out); }
.nav-anim .app { transition: padding-left var(--dur-panel) var(--ease-in-out); }
.nav-anim .rail .nav__label, .nav-anim .rail .brand__text, .nav-anim .rail .nav__group, .nav-anim .rail__collapse { transition: opacity var(--dur-fast) var(--ease-out); }
.nav-fade .rail .nav__label, .nav-fade .rail .brand__text, .nav-fade .rail .nav__group, .nav-fade .rail__collapse { opacity: 0; }

/* ---------- Iconography: one icon per concept everywhere it appears ----------
   Weights: regular for controls (buttons, tabs, toggles), duotone for content (sections, kinds, themes,
   data sources, variables), bold only for the direction glyphs. */
.lang { align-items: center; }
.lang__ic { width: 16px; height: 16px; margin: 0 4px 0 6px; color: var(--rail-ink); }
.frow__ic { width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; }
.frow__ic:not([class*="dir-"]) { color: var(--accent); }
.ledger__label .ic { width: 18px; height: 18px; margin-right: 6px; vertical-align: -3px; color: var(--accent); }
.board__col h3 .ic { width: 16px; height: 16px; }
.row__ic { width: 18px; height: 18px; }
.row__ic--temperature { color: var(--t-temperature); }
.row__ic--water { color: var(--t-water); }
.row__ic--vegetation { color: var(--t-vegetation); }
.gx-anom__ic { width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; color: var(--accent); }
.play__title { display: flex; align-items: center; gap: 8px; }
.play__title .ic { width: 22px; height: 22px; color: var(--accent); }
/* In the narrow drawer the audit link stacks: text, then its stamp, with the arrow on the right. */
.gx-drawer .gx-audit { grid-template-columns: minmax(0, 1fr) auto; row-gap: 8px; }
.gx-drawer .gx-audit > :first-child { grid-column: 1; }
.gx-drawer .gx-audit > .stamp { grid-column: 1; grid-row: 2; justify-self: start; }
.gx-drawer .gx-audit > .ic { grid-column: 2; grid-row: 1 / span 2; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Explained chart header: what is measured, unit and period, then what the chart shows and is for. */
.chart-head { display: flex; flex-direction: column; gap: 6px; margin: -4px 0 12px; max-width: 70ch; }
.chart-head__sub { font: 500 13px var(--sans); letter-spacing: 0.02em; color: var(--muted); }
.chart-head__purpose { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.chart-head__purpose .ic { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--accent); }
/* Technical terms: an (i) button that opens a short definition on click or tap. */
.term { white-space: normal; }
.term__tail { white-space: nowrap; }
.term__btn { display: inline-grid; place-items: center; width: 24px; height: 24px; margin: -4px 0 -4px 2px; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--accent); cursor: pointer; vertical-align: middle; transition: background var(--dur-fast) var(--ease-out); }
.term__btn:hover, .term__btn[aria-expanded="true"] { background: var(--accent-soft); }
.term__btn .ic { width: 16px; height: 16px; }
/* It sits inside whatever text holds the term (a mono value, an uppercase label), so it resets its own type. */
.term-pop { position: fixed; z-index: 70; display: flex; flex-direction: column; gap: 4px; width: max-content; max-width: min(300px, calc(100vw - 16px)); padding: 10px 12px; border-radius: 18px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-2); font: 400 15px/1.45 var(--sans); text-transform: none; letter-spacing: normal; text-align: left; white-space: normal; }
.term-pop strong { font-weight: 600; }

/* ---------- App shell: connection status and install ---------- */
.status-pill { position: fixed; top: calc(12px + env(safe-area-inset-top)); left: 50%; z-index: 80; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; max-width: calc(100vw - 24px); padding: 8px 16px; border-radius: 999px; background: var(--rail); color: var(--rail-hi); box-shadow: var(--shadow-2); font: 500 14px/1.35 var(--sans); }
.status-pill .ic { flex: none; width: 18px; height: 18px; color: var(--glow); }
@media (max-width: 859.98px) { .status-pill { top: calc(64px + env(safe-area-inset-top)); } }
.install-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 12px; border: 1px solid var(--space-line); border-radius: 999px; background: none; color: var(--rail-ink); font: 500 13px var(--sans); cursor: pointer; transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.install-btn:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.install-btn .ic { width: 16px; height: 16px; }
:root[data-nav="collapsed"] .install-btn { padding: 0; width: 40px; justify-content: center; }
:root[data-nav="collapsed"] .install-btn .nav__label { display: none; }
@media (display-mode: standalone) { .install-btn { display: none; } }

/* ---------- Touch targets: 24px minimum everywhere (WCAG 2.5.8), 44px for a coarse pointer ---------- */
.check, .steps-list__more summary, .linklike { min-height: 24px; }
@media (pointer: coarse) {
  .check, .steps-list__more summary, .linklike, .toc-bar a, .frow, .tabs__bar button, .term__btn { min-height: 44px; }
  .term__btn { min-width: 44px; margin: -10px -8px -10px -6px; }
  .check input { width: 22px; height: 22px; }
  .btn, .btn--icon, .install-btn, .related .btn, .related a { min-height: 44px; }
  .btn--icon { min-width: 44px; }
}

/* Phone held sideways (short and wide): thin bars, a clear globe, filters folded away, the drawer at the side. */
@media (max-height: 520px) and (orientation: landscape) {
  .mbar { padding-top: calc(4px + env(safe-area-inset-top)); padding-bottom: 4px; }
  .mbar .brand__text small, .mbar small { display: none; }
  .tabbar { padding-top: 2px; padding-bottom: calc(2px + env(safe-area-inset-bottom)); }
  .tabbar a { flex-direction: row; justify-content: center; gap: 6px; min-height: 44px; padding: 2px 4px; }
  .tabbar .ic { width: 20px; height: 20px; }
  .gx { height: calc(100dvh - 88px); min-height: 240px; }
  .gx-drawer { top: 8px; bottom: 8px; right: 8px; left: auto; width: min(380px, 46%); max-height: none; transform: translateX(calc(100% + 16px)); }
  .gx-drawer.is-open { transform: translateX(0); }
}

/* Smallest phones: five labels still fit the bar; they keep the 12px step and may wrap. */
@media (max-width: 359px) {
  .tabbar { padding-inline: calc(2px + env(safe-area-inset-left)) calc(2px + env(safe-area-inset-right)); }
  .tabbar a { padding-inline: 0; letter-spacing: -0.01em; }
  .tabbar a span { overflow-wrap: anywhere; hyphens: auto; }
}

/* =====================================================================================================
   Arcilla amable (see ../DESIGN.md): every surface is a piece of soft clay. White cards with a hard
   bottom shadow instead of a blur, big round corners, navy ink, green for the one action that moves you
   forward, pastel chips for verdicts. Pressing a control pushes it down into its shadow.
   ===================================================================================================== */

/* ---------- Rail: a white clay panel floating on the sky desk ---------- */
.app { padding-left: calc(var(--rail-w) + 24px); }
.rail { inset: 12px auto 12px 12px; border-radius: 28px; background: var(--surface); color: var(--ink-2); box-shadow: var(--shadow-2); padding: 18px 12px 14px; }
.brand, .brand__mark { color: var(--ink); }
.brand strong { font-family: var(--serif); font-weight: 800; font-size: 20px; color: var(--ink); }
.brand small { color: var(--accent); }
.tool { background: var(--surface-2); color: var(--ink-2); font-weight: 700; border-radius: 14px; }
.tool:hover { background: var(--surface-3); color: var(--ink); }
.tool--icon { background: none; }
.tool--search { border: 0; background: var(--surface-2); color: var(--muted); box-shadow: inset 0 0 0 2px var(--line); }
.tool--search:hover { border-color: transparent; box-shadow: inset 0 0 0 2px var(--clay); }
.rail__collapse { color: var(--ink-2); }
.rail__collapse:hover { background: var(--surface-3); }
.nav__group { color: var(--muted); }
.nav a, .nav__sub a { color: var(--ink-2); font-weight: 700; border-radius: 18px; }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a.is-active { color: #fff; background: var(--rail); box-shadow: 0 3px 0 var(--clay-night); font-weight: 800; }
.nav__caret { color: var(--ink-2); border-radius: 14px; }
.nav__caret:hover { background: var(--surface-3); color: var(--ink); }
.nav a.is-active + .nav__caret, .nav__item:has(> a.is-active) > .nav__caret { color: #fff; }
.nav__item:has(> a.is-active) > .nav__caret:hover { background: rgba(255, 255, 255, 0.14); }
.nav__sub { box-shadow: inset 2px 0 0 var(--line); }
.count, .nav__sub a .count { color: var(--muted); }
.nav a.is-active .count { color: var(--rail-ink); }
.badge { color: var(--ink); background: var(--sun); }
.nav__recent a { color: var(--ink-2); font-weight: 600; }
.rail-card { border: 0; border-radius: 18px; background: var(--surface-2); color: var(--ink-2); box-shadow: inset 0 0 0 2px var(--line); }
.rail-card:hover { border-color: transparent; box-shadow: inset 0 0 0 2px var(--clay); }
.rail-card__head { color: var(--ink); font-weight: 800; }
.rail-card__head .num { color: var(--accent); }
.rail-card__bar { height: 10px; background: var(--surface-3); }
.rail-card__bar i { background: var(--sun); }
.rail-card__text { color: var(--ink-2); }
.rail-card__data { color: var(--muted); }
.rail__foot p { color: var(--ink-2); background: var(--surface-2); border-radius: 14px; }
.lang { background: var(--surface-2); border-radius: 14px; }
.lang button { color: var(--ink-2); border-radius: 10px; font-weight: 700; }
.lang button[aria-pressed="true"] { background: var(--rail); color: #fff; }
.lang__ic { color: var(--ink-2); }
.rail__modes [aria-pressed="true"] { color: var(--accent); }
.install-btn { border: 0; background: var(--surface-2); color: var(--ink-2); font-weight: 700; box-shadow: inset 0 0 0 2px var(--line); }
.install-btn:hover { background: var(--surface-3); color: var(--ink); }
:root[data-nav="collapsed"] .rail .nav__group { background: var(--line); }

/* Phones: the top bar and the tab bar are clay too. */
@media (max-width: 859.98px) {
  .app { padding-left: 0; }
  .mbar { background: var(--surface); color: var(--ink); box-shadow: 0 4px 0 var(--clay); }
  .brand--m strong { font-family: var(--serif); font-weight: 800; color: var(--ink); }
  .tabbar { inset: auto 8px calc(8px + env(safe-area-inset-bottom)) 8px; padding: 6px; border-radius: 28px; background: var(--surface); box-shadow: 0 -2px 0 var(--line), 0 6px 0 var(--clay); }
  .tabbar a { color: var(--ink-2); font-weight: 700; border-radius: 18px; }
  .tabbar a.is-active { color: #fff; background: var(--rail); }
  body { padding-bottom: 96px; }
}

/* Sticky chrome above a section the reader jumps to, so its title is never under it (WCAG 2.4.11).
   --bar-h: the phone's top bar with its 4px clay shadow, plus the notch inset in a home-screen app; 0 where
   the rail is used instead. --index-h: the page's row of section links where that row sticks to the top
   (case spine, How we know's outline, the audit's outline). */
:root { --bar-h: 0px; --index-h: 0px; }
@media (max-width: 859.98px) { :root { --bar-h: calc(56px + env(safe-area-inset-top)); } }
/* Phone held sideways: the 40px top bar (44 with its shadow) and the 48px tab bar of DESIGN.md. */
@media (max-width: 859.98px) and (max-height: 520px) and (orientation: landscape) {
  :root { --bar-h: calc(44px + env(safe-area-inset-top)); }
  .tabbar { padding: 2px; }
}

/* ---------- Actions: buttons sit on their shadow and sink into it when pressed ---------- */
.btn { min-height: 46px; border: 0; border-radius: 18px; padding: 10px 20px; font: 800 15px var(--sans); background: var(--surface); color: var(--ink); box-shadow: 0 4px 0 var(--clay); transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), box-shadow var(--dur-press) var(--ease-out), transform var(--dur-press) var(--ease-out); }
.btn:hover { border-color: transparent; box-shadow: 0 5px 0 var(--clay); transform: translateY(-1px); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--clay); }
.btn--primary { background: var(--go); color: #fff; box-shadow: 0 4px 0 var(--go-shadow); }
.btn--primary:hover { background: var(--go-hover); box-shadow: 0 5px 0 var(--go-shadow); }
.btn--primary:active { box-shadow: 0 1px 0 var(--go-shadow); }
.btn--icon { width: 46px; }
.btn:disabled, .btn[aria-disabled="true"] { box-shadow: 0 4px 0 var(--clay); }
.linklike { color: var(--accent); font-weight: 800; }
/* The one focus ring (DESIGN.md): 3px go, 3px offset, never removed. Components do not restyle it. */
:focus-visible { outline: 3px solid var(--go); outline-offset: 3px; }

/* ---------- Verdict stamp: a pastel clay chip pressed onto the page ---------- */
.stamp { font: 800 13px var(--sans); letter-spacing: 0.01em; text-transform: none; border-width: 2px; border-radius: 14px; padding: 4px 11px 4px 8px; transform: rotate(-3deg); color: var(--accent-ink); background: var(--accent-soft); }
.stamp--inconclusive, .stamp--insufficient { color: var(--neutral); background: var(--surface-3); }
.stamp--no-trend { color: var(--neutral); background: var(--surface-3); }
.stamp--artifact { color: var(--artifact-ink); background: var(--block-stone); }
.ev__bars i { width: 7px; border-radius: 4px; background: var(--surface-3); }
.ev__bars i.on { background: var(--go); }

/* ---------- Cards: one radius, one hard shadow ---------- */
.panel, .steps a, .cta, .paper, .gauge, .strip, .audit, .metric-strip, .tbl-wrap, .board__col, .credits a, .callout-box, .test, .station, .day, .member, .empty, .facets-wrap[open] .facets, .gx-drawer, .term-pop { border-radius: var(--radius); }
.board__card, .row, .sources a, .sources--doc li > div, .near__cats a, .near__cats button, .gx-audit, .spark, .chart, .play__result, .tl-ev, .gx-kpis, .orbit__frame, .props__row, .frow, .sec-ev__list button { border-radius: 14px; }
.steps a:hover, .credits a:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.steps a:active, .credits a:active { box-shadow: 0 1px 0 var(--clay); transform: translateY(3px); }
.steps__ic { color: var(--go); }
.steps strong { font-family: var(--serif); font-size: 20px; font-weight: 800; }
.steps span { font-size: 14px; }
.chart { background: var(--surface-2); }
.chart .grid line { stroke: var(--line); }
.chart .band { fill: color-mix(in srgb, var(--series) 16%, transparent); }
.label, .doc__meta, .detail__grid dt, .folder__meta dt, .sheet__label, .member__eyebrow, .method__toc-title, .gx-sec__title { letter-spacing: 0.02em; text-transform: none; font-weight: 800; }

/* Figures speak in the round display face. */
.featured__figure .num, .doc__figure, .ledger__fig strong, .ledger strong, .facts dd, .pair__value, .gx-drawer__figure, .yours__stat, .metric-strip dd, .gx-kpis dd, .steps-list__n { font-family: var(--serif); font-weight: 800; letter-spacing: 0; }
.featured__figure .num, .doc__figure { font-size: 36px; }
.facts dd { font-size: 32px; }

/* ---------- Page heads and sections ---------- */
.h-section, .section-head h2, .block h2, .doc h2, .cta h2, .suspect h2, .day h2 { font-size: 28px; font-weight: 800; letter-spacing: 0; }
.hero h1 { font-size: clamp(36px, 5vw, 70px); line-height: 0.98; }
.lead { color: var(--ink-2); }

/* ---------- Evidence blocks: pastel clay slabs ---------- */
.block { border-radius: 28px; box-shadow: 0 7px 0 var(--clay); }
.block--temperature { box-shadow: 0 7px 0 var(--lip-rose); }
.block--water { box-shadow: 0 7px 0 var(--lip-tide); }
.block--vegetation { box-shadow: 0 7px 0 var(--lip-sage); }
.block--ice { box-shadow: 0 7px 0 var(--lip-ice); }
.block--stone { box-shadow: 0 7px 0 var(--lip-stone); }
.block--night { box-shadow: 0 7px 0 var(--clay-night); color: var(--rail-hi-soft); }
.block--night .lead, .block--night .muted { color: var(--rail-ink); }
.block .theme-ink { letter-spacing: 0.02em; text-transform: none; font-weight: 800; font-size: 14px; }
.featured__chart { background: rgba(255, 255, 255, 0.7); border-radius: 18px; }
.suspect { border-radius: 28px; box-shadow: 0 7px 0 var(--lip-stone); }
.pair__side { border-radius: 18px; background: var(--rail-2); }
.pair__side:hover { background: var(--rail-hover); }
.pair__var { color: var(--glow); letter-spacing: 0.02em; text-transform: none; font-weight: 800; }
.next-card { border-radius: 28px; box-shadow: 0 7px 0 var(--clay-night); }
.next-card:hover { background: var(--rail-2); }
.next-card__label { color: var(--glow); letter-spacing: 0.02em; text-transform: none; font-weight: 800; }
.next-card__title { font-weight: 800; }
.cta { box-shadow: var(--shadow-2); }
.day { box-shadow: var(--shadow-2); }

/* ---------- Ledger on the briefing: three clay counters ---------- */
.ledger--kinds { gap: 16px; max-width: none; }
.ledger--kinds li { border-left: 0; }
.ledger--kinds a, .ledger--kinds li:first-child a { height: 100%; padding: 16px 20px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-1); transition: box-shadow var(--dur-press) var(--ease-out), transform var(--dur-press) var(--ease-out); }
.ledger--kinds a:hover { background: var(--surface); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.ledger--kinds a:active { box-shadow: 0 1px 0 var(--clay); transform: translateY(3px); }
.ledger__fig strong { font-size: 36px; }
.ledger__label { font-weight: 700; }
@media (max-width: 859.98px) {
  .ledger--kinds { gap: 10px; }
  .ledger--kinds li { border-top: 0; }
  .ledger--kinds a, .ledger--kinds li:first-child a { padding: 12px 16px; }
}

/* ---------- Folders: clay card stock, a white sheet that rises with a small bounce ---------- */
.folder { --stock: color-mix(in srgb, var(--tab) 18%, var(--back)); --lip: color-mix(in srgb, var(--tab) 32%, var(--back)); }
.folder__back { border-radius: 0 22px 22px 22px; box-shadow: 0 6px 0 var(--lip); }
.folder__tab { height: 28px; border-radius: 14px 14px 0 0; clip-path: none; padding: 0 18px; font-weight: 800; font-size: 13px; line-height: 30px; letter-spacing: 0; }
.folder__sheet { border-radius: 14px; box-shadow: 0 3px 0 color-mix(in srgb, var(--ink) 12%, transparent); }
.folder:is(:hover, :focus-within) .folder__sheet { box-shadow: 0 4px 0 color-mix(in srgb, var(--ink) 14%, transparent); transition-timing-function: var(--ease-pop); }
.folder__front { border-radius: 22px; background: color-mix(in srgb, #fff 45%, var(--back)); box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.7), 0 6px 0 var(--lip); }
.folder:is(:hover, :focus-within) .folder__front { box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.7), 0 3px 0 var(--lip); transition-timing-function: var(--ease-pop); }
.folder__front .stamp { background: #fff; }
.folder__front .ev__bars i { background: color-mix(in srgb, var(--ink) 14%, transparent); }
.folder__front .ev__bars i.on { background: var(--go); }
.folder__meta { border-top: 2px dashed color-mix(in srgb, var(--ink) 16%, transparent); }
.folder h3 { font-family: var(--serif); font-size: 22px; font-weight: 800; line-height: 1.15; }
.folder:hover .folder__link { text-decoration: none; }
.folder__theme { font-weight: 800; }
.folder--inconclusive .folder__sheet, .folder--inconclusive .folder__sheet:first-child { background-color: var(--sheet-flat); outline: 2px dashed color-mix(in srgb, var(--neutral) 45%, transparent); outline-offset: -2px; box-shadow: 0 3px 0 color-mix(in srgb, var(--ink) 10%, transparent); }
.sheet__label { color: var(--ink-2); font-size: 12px; }

/* ---------- Case Files: pill tabs, pill filters ---------- */
.kinds { margin-top: -12px; padding: 5px; gap: 4px; border: 0; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-1); align-self: flex-start; }
.kinds__tab { min-height: 42px; margin: 0; padding: 6px 16px; border: 0; border-radius: 18px; font-weight: 800; color: var(--ink); }
.kinds__tab[aria-pressed="true"] { background: var(--rail); color: #fff; font-weight: 800; }
.kinds__tab[aria-pressed="true"] .ic { color: var(--glow); }
.kinds__tab[aria-pressed="true"] .kinds__n { background: rgba(255, 255, 255, 0.18); color: #fff; }
.kinds__n { font-weight: 800; }
.fgroup { border-bottom: 2px solid var(--line); }
.fgroup summary { font-weight: 800; font-size: 15px; }
.frow { font-weight: 600; }
.frow[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-ink); font-weight: 800; }
.frow__check { color: var(--accent-ink); }
@media (min-width: 1100px) { .facets-wrap { padding: 16px; border-radius: 28px; background: var(--surface); box-shadow: var(--shadow-1); } }
.shelf-pill { border: 0; border-radius: 18px; box-shadow: 0 3px 0 var(--clay); font-weight: 800; }
.shelf-pill:hover { border-color: transparent; }
.shelf-pill[aria-pressed="true"] { background: var(--rail); box-shadow: 0 3px 0 var(--clay-night); }
.shelf-pill[aria-pressed="true"] .shelf-pill__n { background: rgba(255, 255, 255, 0.18); color: #fff; }
.opt { font-weight: 700; border-radius: 18px; }
.opt[aria-pressed="true"] { background: var(--rail); }
.search { min-height: 50px; border-radius: 18px; box-shadow: var(--shadow-1); color: var(--ink-2); }
.search:focus-within { box-shadow: var(--shadow-1), inset 0 0 0 3px var(--go); }
.search input { font-weight: 600; }
.search input::placeholder { color: var(--placeholder); }
.seg { padding: 5px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-1); }
.seg button, .seg a { border-radius: 14px; font-weight: 700; }
.seg button[aria-pressed="true"] { background: var(--rail); color: #fff; box-shadow: none; }
.select select { border: 0; border-radius: 18px; box-shadow: 0 3px 0 var(--clay); font-weight: 700; }
.chip-x { border-radius: 14px; background: var(--rail); font-weight: 700; }
.chip-x:hover { background: var(--go); }
.shelf-group__head { font-family: var(--serif); font-size: 26px; font-weight: 800; color: var(--ink); border-bottom: 0; }
.tbl th { font-weight: 800; }
.tbl--files .tbl__title a, .tbl--files .tbl__title .tbl__link, .board__card strong, .tl-ev__main strong, .tl__title { font-family: var(--serif); font-weight: 700; }
.board__col { background: rgba(255, 255, 255, 0.5); }
.board__card { box-shadow: 0 3px 0 var(--clay); }
.tl__bar, .tl__dot { font-weight: 700; }
.tl__bar--up, .tl__dot--up { background: var(--block-rose); }
.tl__bar--down, .tl__dot--down { background: var(--block-tide); }

/* ---------- Case file ---------- */
.spine a { font-weight: 700; border-radius: 18px; }
.spine a.is-active { background: var(--rail); color: #fff; box-shadow: 0 3px 0 var(--clay-night); }
.spine a.is-active .num { color: var(--glow); }
.doc--cover h1 { font-size: clamp(36px, 3.8vw, 54px); line-height: 1.02; }
.doc__place .ic, .gx-drawer__place .ic, .gx-drawer__kind .ic { color: var(--go); }
.paper { box-shadow: var(--shadow-2); }
.paper__caption { border-top: 2px dashed var(--line); }
.props { border: 0; padding: 8px 12px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-1); }
.props dt { font-weight: 800; }
.gauge__zone--strong { background: var(--glow); }
.gauge__track { height: 12px; }
.doc--why.block { border-radius: 28px; }
.toc-bar { border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-1); backdrop-filter: none; }
.toc-bar a { border-radius: 14px; font-weight: 700; }
.tabs__bar { gap: 4px; padding: 4px; border: 0; border-radius: 18px; background: var(--surface-2); align-self: flex-start; }
.tabs__bar button { margin: 0; border: 0; border-radius: 14px; font-weight: 700; }
.tabs__bar button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 3px 0 var(--clay); }
.doc--appendix summary { border-radius: 22px; }
.tag-lead { border-radius: 10px; font-weight: 800; }
.tag-notnasa { border-radius: 10px; border-width: 2px; font-weight: 800; }

/* ---------- How we know and Team ---------- */
.facts { gap: 16px; border: 0; }
.facts > div, .facts > div:first-child { padding: 14px 18px; border: 0; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-1); }
.steps-list { border: 0; display: flex; flex-direction: column; gap: 14px; }
.steps-list__row { padding: 18px 20px; border: 0; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-1); }
.steps-list__n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 22px; background: var(--rail); color: #fff; font-size: 20px; }
.steps-list__ic, .station__ic { color: var(--go); }
.steps-list__head h3 { font-family: var(--serif); font-weight: 800; }
.method__toc ol { border-left: 0; gap: 2px; }
.method__toc ol a { border-left: 0; border-radius: 14px; font-weight: 700; margin-left: 0; }
.method__toc ol a.is-active { background: var(--rail); color: #fff; }
.method__toc ol a.is-active .num { color: var(--glow); }
.rare__dots i { border-radius: 4px; }
.member__photo { background-color: var(--block-tide); background-image: none; color: var(--down); }
.member__initials { font-family: var(--serif); font-weight: 800; }
.member__ph, .member__ph-label { color: var(--muted); }
.member--pending .member__photo { background-color: var(--surface-3); }
.member__name { font-family: var(--serif); font-weight: 800; }
.member__eyebrow--lead { padding: 3px 10px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-ink); }
.member__eyebrow--pending { border: 0; border-radius: 14px; background: var(--surface-3); color: var(--ink-2); }
.member__roles li { border-radius: 14px; font-weight: 700; }
@media (max-width: 859.98px) {
  .facts { gap: 10px; }
  .steps-list__row { padding: 14px 16px; }
}

.gx-drawer { border-radius: 28px; box-shadow: 0 7px 0 rgba(0, 0, 0, 0.4); }
.gx-drawer__close { border-radius: 14px; }
.gx-drawer__body h2 { font-size: 28px; font-weight: 800; line-height: 1.1; }
.gx-sec, .gx-fold, .gx-context, .orbit { border-top: 2px solid var(--line); }
.gx-sec h3:not(.gx-sec__title), .gx-fold__title, .gx-context summary, .orbit__title { font-weight: 800; }
.gx-sec h3:not(.gx-sec__title) .ic, .gx-fold summary > .ic:first-child, .orbit__title .ic { color: var(--go); }
.gx-kpis dd { font-size: 22px; }
.tooltip { border-radius: 14px; background: var(--rail); box-shadow: 0 4px 0 var(--clay-night); font-weight: 600; }
.tooltip .tip-hint { color: var(--glow); }
.toast { border-radius: 18px; box-shadow: 0 4px 0 var(--clay-night); font-weight: 700; }
.status-pill { box-shadow: 0 4px 0 var(--clay-night); font-weight: 700; }
.ledger__fig { font-family: var(--sans); font-weight: 700; }
.ledger__fig strong.accent, .ledger strong.accent { color: var(--go); }
.view:focus-visible, .view:focus { outline: none; }
@media (max-width: 859.98px) { .kinds { align-self: stretch; } }

/* ---------- Phone layouts from DESIGN.md (Responsive) ----------
   Last in the file: the clay rules above round every card and set the display sizes for every width. */
@media (max-width: 859.98px) {
  /* Mobile: evidence blocks pad 24px inside. */
  .block, .two-col .block, .doc--why.block, .suspect { padding: 24px; }
  /* The place search in the call to action: in a column, a 380px flex basis would become its height and
     stretch the field and the button to 190px each. */
  .cta .place-search { flex: none; width: 100%; max-width: none; }
}
/* Below 768px, blocks go full-bleed with square corners. */
@media (max-width: 767.98px) { .block, .doc--why.block, .suspect, .day { border-radius: 0; } }
/* Mobile-S: display-xl drops to 32px and primary pills take the full width. */
@media (max-width: 559.98px) {
  .hero h1 { font-size: 32px; }
  .btn--primary { width: 100%; justify-content: center; }
}

/* ---------- Targets (DESIGN.md, Responsive; WCAG 2.5.8) ----------
   Every viewport: stand-alone small links and the inline fold keep a 24px target. Padding grows the target,
   not the line of text around it. */
:is(.crumbs, .props dd, .detail__grid dd, .live__src, .audit-src) a { padding-block: 2px; }
.detail--inline summary { min-height: 24px; }
/* Coarse pointer: 44px for pills, buttons, tab buttons, filter rows and fold summaries. */
@media (pointer: coarse) {
  .kinds__tab, .fgroup summary, .seg button, .spine a, .method__toc ol a, .detail--inline summary, .chip-x { min-height: 44px; }
  .orbit__step, .gx-drawer__close { flex: none; width: 44px; height: 44px; }
  .seg button { min-width: 44px; }
  /* The language pill keeps its size in the top bar: an invisible strip above and below each button makes
     its target 44px tall without making the bar taller. */
  .lang button { position: relative; min-width: 44px; }
  .lang button::before { content: ""; position: absolute; inset: -9px 0; }
}
/* The taller rows of section links on touch screens (see --index-h above). */
@media (pointer: coarse) and (max-width: 1179.98px) { .dossier { --index-h: 64px; } }
@media (pointer: coarse) and (max-width: 1099.98px) { .method--doc { --index-h: 64px; } }

/* Rows of section links that scroll sideways (edgeFade() in app.js): the edge that hides links fades out. */
[data-fade="end"] { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
[data-fade="start"] { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent); }
[data-fade="both"] { -webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
