:root {
  color-scheme: dark;
  --bg: #070b14;
  --panel: #0d1320;
  --line: #1a2435;
  --ink: #eaf0fa;
  --muted: #8c9ab3;
  --live: #6fe3ff;
  --survivor: #ffb64d;
  --quiet: #4a5a74;
  --unexplained: #ff5fa8;
  --focus: #a8edff;
  --page-width: 1120px;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  font-synthesis: none;
  font-variant-numeric: tabular-nums;
  text-rendering: optimizeLegibility;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}

.title-muted {
  color: var(--muted);
  font-weight: 500;
}

.later-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

a {
  color: var(--live);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--focus);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

img,
svg {
  max-width: 100%;
}

.skip-link {
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  border: 1px solid var(--live);
  border-radius: 6px;
  background: var(--panel);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  width: min(100% - 48px, var(--page-width));
  margin: 0 auto;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 42px 0 28px;
  border-bottom: 1px solid var(--line);
}

.header-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--live);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 8px;
  font-size: clamp(1.85rem, 4vw, 2.85rem);
  font-weight: 620;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

h2 {
  margin-bottom: 4px;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

h3 {
  margin-bottom: 6px;
  font-size: 1.05rem;
  font-weight: 600;
}

.subtitle,
.section-heading p,
.page-footer,
.metric-label,
.metric-unit,
.hit-metrics,
.map-legend,
.ticker-panel span {
  color: var(--muted);
}

.subtitle {
  margin-bottom: 0;
  font-size: 1rem;
}

.status-pill {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  font-size: 0.88rem;
}

.status-pill--live {
  border-color: rgb(111 227 255 / 45%);
}

.status-pill--warning {
  border-color: rgb(255 182 77 / 48%);
}

.status-pill--muted {
  color: var(--muted);
}

.status-dot,
.legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--quiet);
}

.status-dot--live,
.legend-dot--running {
  background: var(--live);
}

.status-dot--live {
  animation: heartbeat 1.8s ease-in-out infinite;
}

@keyframes heartbeat {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.38;
  }
}

.demo-banner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  margin: 22px 0 12px;
  padding: 12px 16px;
  border: 1px solid rgb(255 182 77 / 45%);
  border-radius: var(--radius);
  background: #17130d;
  color: var(--ink);
}

.demo-banner strong {
  color: var(--survivor);
  font-weight: 650;
}

.demo-banner span {
  color: var(--muted);
  font-size: 0.9rem;
}

.ticker-panel,
.metric-card,
.plot-card,
.hero-card,
.hit-card,
.empty-panel,
.read-this {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.ticker-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 34px;
  padding: 13px 16px;
}

.ticker-panel p {
  margin: 0;
  color: var(--ink);
}

.ticker-panel span {
  flex: 0 0 auto;
  font-size: 0.82rem;
}

.section-block {
  margin: 36px 0;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 14px;
}

.section-heading p {
  margin: 0;
  font-size: 0.9rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.metric-card {
  display: flex;
  min-width: 0;
  min-height: 126px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 16px;
  color: var(--ink);
  text-decoration: none;
}

.metric-card:hover {
  border-color: #31415b;
  color: var(--ink);
}

.metric-label {
  font-size: 0.84rem;
  line-height: 1.35;
}

.metric-value {
  margin-top: 7px;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 620;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.metric-unit {
  margin-top: 3px;
  font-size: 0.82rem;
}

.metric-card--review .metric-value {
  color: var(--unexplained);
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(220px, 1fr);
  overflow: hidden;
}

.hero-image-link {
  display: block;
  min-width: 0;
  background: #060a12;
}

.hero-image-link img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
}

.hero-copy {
  padding: 20px;
}

.hero-copy p:not(.eyebrow) {
  margin-bottom: 8px;
}

.text-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.9rem;
}

.empty-panel {
  padding: 22px;
}

.empty-panel h3 {
  margin-bottom: 5px;
}

.empty-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.plot-card {
  overflow: hidden;
  padding: 12px;
}

.sky-card {
  padding: 14px;
}

.sky-map,
.floor-map {
  display: block;
  width: 100%;
  height: auto;
}

.command-block {
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 10px 2px 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
}

.map-legend li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-dot--searched {
  background: #b8c5da;
}

.legend-dot--survivor {
  background: var(--survivor);
}

.legend-dot--failed {
  border: 1px solid var(--quiet);
  background: transparent;
}

.floor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
  align-items: center;
  gap: 18px;
}

.floor-copy {
  padding: 8px 4px;
}

.floor-copy p {
  color: var(--muted);
}

.floor-copy .eyebrow {
  color: var(--live);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hit-card {
  min-width: 0;
  overflow: hidden;
}

.hit-thumbnail {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #060a12;
}

.hit-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hit-copy {
  padding: 14px;
}

.verdict-badge {
  display: inline-block;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.8rem;
}

.verdict-badge--on_only {
  color: var(--survivor);
}

.verdict-badge--unexplained {
  color: var(--unexplained);
}

.hit-metrics {
  margin-bottom: 8px;
  font-size: 0.82rem;
}

.hit-copy > p:not(.verdict-badge, .hit-metrics) {
  color: var(--muted);
  font-size: 0.9rem;
}

.read-this {
  padding: 18px;
}

.read-this p {
  max-width: 82ch;
  margin-bottom: 0;
  color: var(--muted);
}

.page-footer {
  margin: 42px 0 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
}

.page-footer p {
  margin-bottom: 6px;
}

.manifest-index {
  max-width: 820px;
  margin: 36px auto;
  padding: 0 24px;
}

.manifest-index section {
  margin: 28px 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.manifest-index ul {
  padding-left: 20px;
}

.manifest-index li {
  margin: 8px 0;
}

.manifest-index .empty {
  color: var(--muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (max-width: 900px) {
  .metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .page-shell {
    width: min(100% - 32px, var(--page-width));
  }

  .page-header {
    flex-direction: column;
    gap: 14px;
    padding-top: 26px;
  }

  .status-pill {
    max-width: 100%;
  }

  .demo-banner,
  .ticker-panel,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .demo-banner {
    gap: 4px;
  }

  .ticker-panel {
    gap: 7px;
  }

  .section-block {
    margin: 30px 0;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-card {
    min-height: 112px;
    padding: 13px;
  }

  .metric-card--review {
    grid-column: 1 / -1;
  }

  .metric-value {
    font-size: clamp(1.7rem, 10vw, 2.2rem);
  }

  .hero-card,
  .floor-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-image-link img {
    min-height: 170px;
  }

  .gallery-grid,
  .later-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .status-dot--live {
    animation: none;
  }
}

/* Public evidence edition: spacious typography, readable plots and explicit provenance. */
:root { --page-width: 1240px; --line: #253348; --muted: #a5b3c9; }
html { scroll-behavior: smooth; }
body { overflow-wrap: anywhere; }
.top-nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.top-nav a { text-decoration: none; color: var(--muted); font-size: .86rem; }
.top-nav .wordmark { color: var(--ink); font-size: 1.2rem; font-weight: 650; letter-spacing: -.04em; }
.wordmark span { color: var(--live); font-size: 1.5rem; margin-right: 7px; }
.top-nav > div { display: flex; flex-wrap: wrap; gap: 24px; }
.page-header { padding: 64px 0 32px; flex-wrap: wrap; border: 0; }
h1 { font-size: clamp(2.5rem, 5.8vw, 5.1rem); max-width: 950px; letter-spacing: -.065em; font-weight: 550; line-height: 1.06; margin: 20px 0 24px; }
.title-muted { color: var(--live); font-weight: inherit; }
.subtitle { max-width: 620px; font-size: 1.05rem; line-height: 1.8; }
.status-pill { align-self: flex-start; font-size: .76rem; }
.eyebrow { letter-spacing: .06em; font-size: .75rem; }
.snapshot-note, .figure-note { font-size: .79rem; color: var(--muted); margin: 12px 0; }
.ticker-panel { background: transparent; border-radius: 4px; font-family: ui-monospace, monospace; font-size: .8rem; }
.section-block { margin: 64px 0; scroll-margin-top: 24px; }
.section-heading { align-items: flex-start; gap: 32px; margin-bottom: 22px; }
.section-heading h2 { flex: 1 0 36%; }
.section-heading > p { max-width: 560px; flex: 1; line-height: 1.75; }
h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 520; letter-spacing: -.045em; }
.metric-grid { gap: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.metric-card { border: 0; border-right: 1px solid var(--line); border-radius: 0; padding: 24px; min-height: 150px; }
.metric-card:last-child { border: 0; }
.metric-value { font-weight: 450; font-size: clamp(2rem, 3.8vw, 3.25rem); order: -1; margin: 0 0 12px; }
.metric-label { font-size: .78rem; }
.hero-card { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); border-radius: 8px; }
.hero-image-link { display: flex; align-items: center; }
.hero-image-link img { object-fit: contain; height: auto; min-height: 0; }
.hero-copy { padding: 32px; align-self: center; }
.hero-copy h3 { font-size: 1.55rem; font-weight: 500; letter-spacing: -.04em; margin: 16px 0; }
.hero-copy p { font-size: .86rem; color: var(--muted); }
.hero-copy strong { color: var(--ink); }
.hero-copy .text-link { margin-top: 20px; }
.cadence-diagram { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.scan { padding: 20px 16px; text-align: center; background: var(--panel); border-right: 1px solid var(--line); }
.scan:last-child { border: 0; }
.scan > span, .scan small { display: block; font-size: .7rem; color: var(--muted); }
.scan > strong { display: block; font-size: 2rem; font-weight: 400; margin: 8px 0; color: var(--quiet); }
.scan--on > strong { color: var(--live); }
.scan-trace { height: 62px; background: repeating-linear-gradient(0deg, transparent, transparent 14px, #253348 15px); position: relative; margin: 12px 0; }
.scan--on .scan-trace::after { content: ''; position: absolute; height: 100%; width: 2px; background: var(--live); left: 50%; transform: rotate(12deg); }
.method-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 30px; }
.method-steps p { color: var(--muted); font-size: .85rem; }
.method-steps strong { display: block; color: var(--ink); font-weight: 500; margin-bottom: 8px; font-size: 1.1rem; }
.sky-card { padding: 24px; }
.sky-map { max-height: 430px; }
.graticule { stroke: #33445e; stroke-width: .65; fill: none; }
.map-outline { fill: #0a101c; stroke: #41516a; }
.galactic-band { stroke: #526480; stroke-width: 12; stroke-opacity: .13; fill: none; }
.floor-card svg { width: 100%; display: block; }
.plot-frame { fill: #0d1320; stroke: #253348; }
.axis-label, .axis-title, .plot-empty-copy { fill: #b4c3d9; font-family: system-ui, sans-serif; font-size: 10px; }
.plot-empty-title { fill: #eaf0fa; font-family: system-ui, sans-serif; font-size: 17px; }
.floor-copy { padding: 24px; font-size: .9rem; }
.verdict-chart { padding: 20px 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.verdict-row { display: grid; grid-template-columns: 220px minmax(0, 1fr) 45px; align-items: center; gap: 24px; padding: 12px 0; text-decoration: none; font-size: .85rem; color: var(--muted); }
.verdict-row strong { text-align: right; color: var(--ink); font-weight: 500; }
.bar-track { height: 10px; background: #1a2435; overflow: hidden; border-radius: 2px; }
.bar-fill { height: 100%; display: block; background: #859bb8; }
.bar-fill--known_source { background: var(--live); }
.bar-fill--on_only { background: var(--survivor); }
.bar-fill--unexplained { background: var(--unexplained); }
.hit-thumbnail { border-bottom: 1px solid var(--line); }
.hit-thumbnail img { object-fit: contain; }
.hit-copy { padding: 22px; }
.hit-copy .text-link { margin-right: 12px; }
.hit-card:hover { border-color: #526480; }
.later-grid { gap: 20px; }
.later-grid .empty-panel { padding: 28px; }
.later-grid h3 { margin: 16px 0; font-size: 1.3rem; letter-spacing: -.025em; }
.later-grid p { font-size: .85rem; margin: 10px 0; }
.contribute-panel { padding: 32px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.contribute-panel p { max-width: 650px; color: var(--muted); font-size: .9rem; margin-bottom: 0; }
.button-link { padding: 12px 18px; border: 1px solid var(--live); border-radius: 4px; text-decoration: none; font-size: .85rem; flex-shrink: 0; }
.footer-motto { font-size: 1.3rem; color: var(--ink); letter-spacing: -.03em; }
summary { cursor: pointer; }
summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.detail-shell { padding-top: 32px; padding-bottom: 48px; max-width: 980px; }
.detail-shell h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
.detail-shell article, .command-block { border: 1px solid var(--line); background: var(--panel); padding: 20px; border-radius: 8px; margin: 20px 0; }
.detail-shell h2 { margin-top: 36px; }
.detail-shell > p { color: var(--muted); }
@media (max-width: 900px) {
  .top-nav > div { gap: 16px; }
  .metric-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .metric-card { padding: 16px 12px; }
  .hero-copy { padding: 20px; }
  .contribute-panel { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 620px) {
  .top-nav { align-items: flex-start; flex-direction: column; gap: 14px; }
  .top-nav > div { gap: 16px; }
  .top-nav a { font-size: .74rem; }
  .page-header { padding: 32px 0 24px; }
  h1 { font-size: clamp(2.4rem, 9vw, 3.5rem); }
  .subtitle { font-size: .95rem; }
  .section-heading { gap: 10px; }
  .section-block { margin: 42px 0; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-card { border-bottom: 1px solid var(--line); }
  .hero-card, .method-steps { grid-template-columns: 1fr; }
  .cadence-diagram { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .scan { border-bottom: 1px solid var(--line); padding: 14px 8px; }
  .scan-trace { height: 44px; }
  .method-steps { gap: 4px; }
  .sky-card { padding: 8px; }
  .verdict-chart { padding: 16px; }
  .verdict-row { grid-template-columns: minmax(0, 1fr) 60px 28px; gap: 10px; font-size: .72rem; }
  .floor-copy { padding: 8px; }
  .button-link { flex-shrink: 1; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.searched-dot { fill: #b8c5da; stroke: #eaf0fa; stroke-width: 1; }
.search-dot { fill: #6fe3ff; }
.search-ring { fill: none; stroke: #6fe3ff; stroke-width: 1; }
.survivor-ring { fill: none; stroke: #ffb64d; stroke-width: 1.5; }
.failed-dot { fill: none; stroke: #8c9ab3; stroke-width: 1; }
.sky-map a:focus .searched-dot, .sky-map a:hover .searched-dot { fill: #6fe3ff; stroke-width: 3; }

/* Guided investigations: evidence-led editorial pages and a measured-data workbench. */
.lab-shell { max-width: 1240px; }
.lab-header { padding: 66px 0 42px; }
.lab-header h1 { max-width: 960px; }
.lead { max-width: 740px; color: var(--muted); font-size: 1.1rem; line-height: 1.85; }
.back-link { display: inline-block; margin-bottom: 32px; color: var(--muted); font-size: .82rem; text-decoration: none; }
.action-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 26px 0 0; }
.button-primary { background: var(--live); color: #07121d; border-color: var(--live); }
.button-primary:hover { color: #07121d; background: #b0f0ff; }
button, input, select { font: inherit; }
button { cursor: pointer; }
input, select { color: var(--ink); background: #101b2b; border: 1px solid #40516b; border-radius: 5px; padding: 10px 12px; min-height: 44px; width: 100%; }
input:focus-visible, select:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }
.investigation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.investigation-card { display: flex; flex-direction: column; text-decoration: none; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: linear-gradient(145deg, #101c2c, #0b111e); transition: border-color .2s, transform .2s; color: var(--ink); }
.investigation-card:hover { border-color: #73c8dc; transform: translateY(-4px); color: var(--ink); }
.investigation-art { height: 215px; position: relative; display: flex; align-items: center; justify-content: center; background: #080f1b; border-bottom: 1px solid var(--line); overflow: hidden; }
.investigation-art img { width: 100%; height: 100%; object-fit: contain; }
.investigation-card--voyager .investigation-art img { padding: 12px; }
.investigation-card--recovery .investigation-art img { padding: 8px; }
.chapter-number { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border: 1px solid #40516b; background: #08101ee8; border-radius: 4px; color: #c7d6e9; font: .75rem ui-monospace, monospace; }
.investigation-card-copy { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.investigation-card h3 { font-size: 1.65rem; line-height: 1.15; font-weight: 500; letter-spacing: -.04em; margin: 6px 0 18px; }
.investigation-card-copy > p:not(.eyebrow) { color: var(--muted); font-size: .88rem; line-height: 1.8; flex: 1; }
.card-link { display: flex; justify-content: space-between; color: var(--live); margin-top: 18px; font-size: .85rem; }
.home-investigations { margin-top: 24px; }
.callout-note { padding: 22px 26px; border: 1px solid var(--line); border-left: 3px solid var(--live); background: #0e1725; border-radius: 5px; margin: 26px 0; }
.callout-note p { color: var(--muted); margin: 8px 0 0; font-size: .9rem; }
.warning-note { border-left-color: var(--survivor); }
.story-meta { display: flex; gap: 12px; flex-wrap: wrap; font: .75rem ui-monospace, monospace; color: var(--muted); }
.story-meta span { padding: 7px 12px; border: 1px solid var(--line); border-radius: 3px; }
.chapter-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 24px 0; border-block: 1px solid var(--line); }
.chapter-nav a { text-decoration: none; color: var(--muted); font-size: .82rem; }
.chapter-nav span { display: block; color: var(--live); font-family: ui-monospace, monospace; margin-bottom: 8px; }
.story-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 60px; margin: 60px 0; align-items: start; }
.story-step { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 20px; margin-bottom: 38px; scroll-margin-top: 30px; }
.step-number { font: .8rem ui-monospace, monospace; color: var(--live); padding-top: 8px; }
.story-step h2 { font-size: 1.45rem; margin-bottom: 14px; }
.story-step p { color: var(--muted); font-size: .95rem; line-height: 1.85; }
.story-evidence { position: sticky; top: 24px; padding: 28px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.story-waterfall { display: block; width: 100%; border-radius: 5px; }
.measurement-list { margin: 22px 0; }
.measurement-list > div { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.measurement-list dt { color: var(--muted); font-size: .8rem; }
.measurement-list dd { margin: 0; font-family: ui-monospace, monospace; font-size: 1rem; text-align: right; }
.measurement-list small { color: var(--muted); font-size: .7rem; }
.large-reading { font-size: 6rem; line-height: 1; letter-spacing: -.07em; margin: 26px 0; }
.large-reading span { display: block; color: var(--muted); font-size: .8rem; letter-spacing: 0; margin-top: 15px; }
.outcome-track { display: flex; border-radius: 4px; overflow: hidden; }
.outcome-track span { background: var(--live); color: #07121d; padding: 10px 14px; font-family: ui-monospace, monospace; }
.outcome-track span+span { background: #ffc477; }
.plot-key { display: flex; flex-wrap: wrap; gap: 14px 24px; margin: 15px 0; color: var(--muted); font-size: .77rem; }
.plot-key > span { display: flex; align-items: center; gap: 8px; }
.plot-key i { width: 8px; height: 8px; display: inline-block; border-radius: 50%; }
.key-off { background: var(--live); }
.key-single { background: #ffc477; }
.cadence-mini { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; margin-top: 30px; }
.cadence-mini span { text-align: center; background: #101c2c; padding: 12px 5px; border: 1px solid var(--line); font-size: 1.4rem; border-radius: 5px; }
.cadence-mini small { display: block; font: .65rem ui-monospace, monospace; color: var(--muted); }
.cadence-mini .on { color: var(--live); border-color: #347080; }
.warning-copy { color: #ffce8c; font-size: .85rem; margin: 24px 0; }
.conclusion-panel { padding: 40px; background: radial-gradient(ellipse at top right, #17313b, #0e1725 70%); border: 1px solid #315361; border-radius: 10px; margin: 50px 0; }
.conclusion-panel h2 { max-width: 900px; font-size: clamp(1.35rem, 2.5vw, 2rem); line-height: 1.5; margin: 16px 0 30px; }
.recovery-scroll { overflow-x: auto; }
.recovery-interactive { border-collapse: separate; border-spacing: 3px; width: 100%; min-width: 380px; font-size: .7rem; }
.recovery-interactive caption { text-align: left; color: var(--muted); margin: 12px 0; }
.recovery-interactive th { color: var(--muted); font-weight: 500; padding: 4px; white-space: nowrap; }
.recovery-cell { width: 100%; min-width: 27px; min-height: 35px; border: 1px solid #3b6074; border-radius: 3px; background: color-mix(in srgb, #1c3348, #6fe3d8 calc(var(--recovery) * 100%)); color: var(--cell-ink); font-size: .75rem; }
.recovery-cell[aria-pressed="true"] { outline: 2px solid #fff; outline-offset: 2px; }
.selection-readout { padding: 16px; color: var(--live); background: #08121f; border-radius: 5px; font-size: .85rem; min-height: 90px; margin: 20px 0 0; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 24px 0; }
.check-card { padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.check-card h3 { font-weight: 500; font-size: 1.3rem; margin: 12px 0; }
.check-card p:not(.eyebrow) { color: var(--muted); font-size: .86rem; line-height: 1.8; }
.check-card a { font-size: .85rem; }
.provenance-chain { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin: 25px 0; }
.provenance-chain > div { display: flex; flex-direction: column; background: var(--panel); gap: 10px; padding: 28px; }
.provenance-chain small { color: var(--live); }
.provenance-chain strong { font-weight: 500; }
.provenance-chain span { color: var(--muted); font-size: .8rem; }
.source-list details, .artifact-list details { padding: 17px 0; border-bottom: 1px solid var(--line); }
.source-list code, .artifact-list code { font-size: .77rem; color: var(--muted); word-break: break-all; }
.source-list p, .artifact-list p { font-size: .8rem; margin: 12px 0 0; }
.artifact-list summary > span { margin-left: 20px; color: var(--muted); font-size: .75rem; }
.run-notes { color: var(--muted); padding-left: 20px; font-size: .9rem; }
.run-notes li { margin-bottom: 15px; }
.research-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 26px 0; }
.explorer-header h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
.explorer-workbench { padding: 28px; border: 1px solid var(--line); border-radius: 10px; background: #0b1320; }
.explorer-controls { display: grid; grid-template-columns: 1.3fr .8fr 1.2fr 1fr auto; gap: 16px; align-items: end; }
.explorer-controls label, .waterfall-controls label { color: var(--muted); font-size: .75rem; display: flex; flex-direction: column; gap: 8px; }
.explorer-controls .button-link { background: transparent; color: var(--live); min-height: 44px; }
.scatter-frame { margin-top: 22px; }
.scatter-frame svg { width: 100%; display: block; overflow: visible; }
.chart-grid { stroke: #26364b; stroke-width: 1; stroke-dasharray: 3 5; }
.chart-label { fill: #aebcd0; font-size: 11px; font-family: ui-monospace, monospace; }
.signal-point { opacity: .7; stroke: #08101c; stroke-width: .7; }
.point-off { fill: #6fe3ff; }
.point-single { fill: #ffc477; }
#scatter-points a:hover circle, #scatter-points a:focus circle, #scatter-points .is-selected circle { opacity: 1; stroke: #fff; stroke-width: 2; r: 6; }
.explorer-inspect { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 2fr); gap: 24px; align-items: start; }
.selection-panel { border: 1px solid var(--line); border-radius: 8px; padding: 24px; background: var(--panel); position: sticky; top: 20px; }
.selection-panel h3 { font-size: 1.6rem; font-weight: 500; letter-spacing: -.04em; }
.selection-verdict { color: var(--live); font-size: .85rem; }
.selection-panel > p:not(.eyebrow, .selection-verdict) { color: var(--muted); font-size: .83rem; line-height: 1.8; }
.selection-panel .measurement-list dd { font-size: .85rem; }
.selected-checks details { border-bottom: 1px solid var(--line); padding: 13px 0; font-size: .75rem; }
.selected-checks summary { display: flex; justify-content: space-between; gap: 12px; }
.selected-checks summary span+span { color: var(--muted); text-align: right; }
.selected-checks summary .check-open { color: #ffc477; }
.selected-checks p { color: var(--muted); margin: 12px 0 0; }
.waterfall-workbench { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: #0b1320; }
.waterfall-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tag { font: .65rem ui-monospace, monospace; border: 1px solid var(--line); border-radius: 4px; padding: 4px 8px; color: var(--muted); }
.waterfall-controls { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin: 22px 0; }
.waterfall-controls input[type="range"] { padding: 0; min-height: 24px; accent-color: var(--live); }
.waterfall-controls output { font-family: ui-monospace, monospace; }
.waterfall-controls select { font-size: .76rem; }
.waterfall-axis { display: flex; justify-content: space-between; color: var(--muted); font: .65rem ui-monospace, monospace; padding-left: 92px; margin-bottom: 12px; gap: 6px; }
.waterfall-scan { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 12px; margin: 10px 0; align-items: center; }
.scan-label { display: flex; flex-direction: column; gap: 3px; font-size: .7rem; }
.scan-label strong { color: var(--live); font-weight: 500; }
.scan-label span, .scan-label small { color: var(--muted); }
.scan-label small { font-size: .6rem; }
.measured-waterfall { display: block; width: 100%; height: 86px; background: #08101c; border: 1px solid #27374a; image-rendering: pixelated; }
.colour-key { display: flex; gap: 12px; align-items: center; font: .65rem ui-monospace, monospace; color: var(--muted); justify-content: flex-end; margin: 20px 0; }
.colour-ramp { display: inline-block; width: 150px; height: 8px; background: linear-gradient(90deg,#060d1d,#16395c,#1a8495,#6fe3dd,#ffe19c); }
.table-scroll { overflow: auto; max-height: 650px; border: 1px solid var(--line); border-radius: 8px; }
.hit-table { border-collapse: collapse; width: 100%; white-space: nowrap; font: .8rem ui-monospace, monospace; }
.hit-table caption { text-align: left; padding: 18px; font: .8rem system-ui, sans-serif; color: var(--muted); white-space: normal; }
.hit-table th, .hit-table td { padding: 12px 18px; border-bottom: 1px solid #1e2c3f; text-align: left; }
.hit-table thead th { background: #152033; color: #c2d0e2; position: sticky; top: 0; font: .75rem system-ui, sans-serif; z-index: 1; }
.hit-table .is-selected { background: #133142; }
.hit-table tbody tr:hover { background: #152235; }
.row-select { background: none; border: 0; color: var(--live); padding: 8px 5px; min-height: 36px; text-decoration: underline; text-underline-offset: 3px; }
.table-verdict { font: .75rem system-ui, sans-serif; }
.table-verdict.off { color: var(--live); }
.table-verdict.single { color: #ffc477; }
.empty-results { padding: 24px; color: var(--muted); }
@media (max-width: 1000px) {
 .investigation-grid { gap: 12px; }
 .investigation-card-copy { padding: 20px; }
 .investigation-card h3 { font-size: 1.4rem; }
 .investigation-art { height: 175px; }
 .story-layout { gap: 28px; }
 .story-evidence { padding: 18px; }
 .explorer-controls { grid-template-columns: 1fr 1fr; }
 .explorer-inspect { grid-template-columns: minmax(0, 1fr); }
 .selection-panel { position: static; }
 .selection-panel .measurement-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
}
@media (max-width: 700px) {
 .lab-header { padding: 36px 0; }
 .lead { font-size: .96rem; }
 .investigation-grid, .research-grid, .story-layout { grid-template-columns: 1fr; }
 .investigation-art { height: 230px; }
 .investigation-card h3 { font-size: 1.8rem; }
 .story-layout { margin: 32px 0; }
 .story-evidence { position: static; }
 .chapter-nav { grid-template-columns: 1fr 1fr; }
 .chapter-nav a { font-size: .75rem; }
 .conclusion-panel { padding: 24px; }
 .provenance-chain { grid-template-columns: 1fr; }
 .check-grid { grid-template-columns: 1fr 1fr; }
 .check-card { padding: 18px; }
 .explorer-workbench, .waterfall-workbench { padding: 16px; }
 .waterfall-controls { grid-template-columns: 1fr 1fr; }
 .waterfall-controls label:nth-child(2) { grid-column: 1 / -1; order: 3; }
 .waterfall-axis { padding-left: 60px; font-size: .57rem; }
 .waterfall-scan { grid-template-columns: 54px minmax(0, 1fr); gap: 6px; }
 .scan-label { font-size: .6rem; }
 .scan-label small { font-size: .52rem; }
 .measured-waterfall { height: 72px; }
 .selection-panel .measurement-list { display: block; }
 .action-row .button-link { padding: 12px; }
 .callout-note { padding: 18px; }
 .lab-header h1 { font-size: clamp(2.4rem, 10vw, 4rem); }
}
@media (prefers-reduced-motion: reduce) { .investigation-card { transition: none; } .investigation-card:hover { transform: none; } }

/* Research report: readable evidence, with the table as a text alternative. */
.report-feature { scroll-margin-top: 2rem; }
.report-feature h2 { font-size: clamp(2.2rem, 5vw, 4.5rem); line-height: 1.05; }
.report-figure { margin: 2rem 0; padding: clamp(.75rem, 2vw, 1.5rem); background: #fff; border-radius: 1rem; }
.report-figure img { width: 100%; height: auto; display: block; }
.report-figure .figure-note { color: #394c59; }
.report-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin: 1.5rem 0; }

.report-figure a { color: #075466; text-decoration: underline; }

/* The processing ledger stays legible while an archive pass is between runs. */
.observatory-panel { border: 1px solid var(--line, #293240); border-radius: 18px; padding: clamp(20px, 4vw, 40px); background: linear-gradient(120deg, #10212b, #0d111a 70%); }
.observatory-progress { height: 8px; overflow: hidden; border-radius: 6px; background: #26303d; margin: 24px 0; }
.observatory-progress span { display: block; height: 100%; background: #8bdff4; }
.observatory-counts { display: flex; flex-wrap: wrap; gap: 24px; }
.observatory-counts strong { display: block; color: #a6e8f7; font-size: 1.8rem; }
.observatory-panel details, .observatory-panel li { overflow-wrap: anywhere; }
.observatory-panel [hidden] { display: none; }
