* { box-sizing: border-box; }
:root {
  color-scheme: dark;
  --paper: #0e1726;
  --panel: #162336;
  --muted: #afc2d1;
  --line: #3b5167;
  --accent: #7ce8e8;
}
body {
  margin: 0;
  background: var(--paper);
  color: #eff6fa;
  font: 1rem/1.55 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
main {
  max-width: 82rem;
  margin: auto;
  padding: clamp(0.85rem, 3.5vw, 2.5rem);
}
header {
  max-width: 68ch;
  margin: 1.25rem 0 1.5rem;
}
h1 {
  font-size: clamp(1.85rem, 4.8vw, 3.2rem);
  line-height: 1.06;
  margin: 0.35rem 0 0.7rem;
  letter-spacing: -0.03em;
}
h2 { margin: 0; font-size: 1.1rem; }
p { margin: 0.45rem 0; }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.9rem;
}
.eyebrow {
  color: var(--accent);
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
}
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
section, details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: clamp(0.75rem, 2.2vw, 1.35rem);
  margin: 1rem 0;
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.evidence-badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 650;
  background: #173b3a;
  color: #93f2df;
  border: 1px solid #357b72;
}
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.55rem 0;
}
.controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
  margin: 0.6rem 0;
}
button {
  font: inherit;
  font-size: 0.92rem;
  color: #eff6fa;
  background: #233c4f;
  border: 1px solid #668ea2;
  border-radius: 6px;
  min-height: 44px;
  padding: 0.35rem 0.75rem;
}
button:enabled { cursor: pointer; }
button:disabled { opacity: 0.55; }
button.pill-btn[aria-pressed="true"] {
  background: #22545d;
  border-color: var(--accent);
  color: #ffffff;
  font-weight: 650;
}
input[type="range"] {
  width: 100%;
  min-height: 44px;
  accent-color: var(--accent);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
#full { display: block; margin: 0.6rem 0; }
img {
  display: block;
  width: 100%;
  height: auto;
  background: #0b1320;
  border-radius: 6px;
}
.muted { color: var(--muted); font-size: 0.9rem; }
summary { cursor: pointer; font-weight: 650; min-height: 44px; display: flex; align-items: center; }
.provenance-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.35rem 1rem;
  margin: 0.75rem 0;
  font-size: 0.88rem;
}
.provenance-grid dt { color: var(--muted); font-weight: 600; }
.provenance-grid dd { margin: 0; overflow-wrap: anywhere; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85em;
  color: #cbe7ef;
}
.artifact-links { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
}
@media (max-width: 520px) {
  .provenance-grid { grid-template-columns: 1fr; }
  .controls { grid-template-columns: 1fr 1fr; }
  .controls input[type="range"] { grid-column: 1 / -1; order: -1; }
}
