/* brief — dark twilight briefing page */

:root {
  --bg: #141420;
  --ink: #e6e3d8;
  --muted: #8b88a0;
  --gold: #c9a227;
  --hairline: #2a2a3d;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 75rem; /* ~1200px: room for 2-3 story columns */
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
  animation: settle 0.6s ease-out both;
}

/* legacy/empty briefs (no category sections) keep a reading column */
.narrow {
  max-width: 42rem;
  margin: 0 auto;
}

@keyframes settle {
  from { opacity: 0; transform: translateY(0.5rem); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  main { animation: none; }
}

/* ---- masthead ---- */

.masthead { text-align: center; }

.wordmark {
  display: inline-block;
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.55em;
  margin-left: 0.55em; /* optically recenter the letterspaced word */
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none; /* it's a home link, but reads as a wordmark */
  transition: color 0.15s ease;
}

/* home link from any page — discrete: only a colour shift on hover, so the
   big gold field below still carries "where am I", not the wordmark */
a.wordmark:hover, a.wordmark:focus-visible {
  color: var(--gold);
}

.date {
  font-family: "Newsreader", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2rem, 6vw, 2.9rem);
  line-height: 1.15;
  color: var(--gold);
  margin: 1rem 0 0.75rem;
}

.meta {
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- site navigation (masthead) ---- */

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  margin-top: 1.4rem;
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-bottom-color 0.15s ease;
}

.site-nav a:hover, .site-nav a:focus-visible {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.search-form input {
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  padding: 0.35rem 0.6rem;
  width: 11rem;
}

.search-form input::placeholder { color: var(--muted); }

.search-form input:focus {
  outline: none;
  border-color: var(--gold);
}

/* ---- newspaper double rule ---- */

.double-rule {
  border: none;
  border-top: 2px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  height: 5px;
  margin: 2.25rem 0;
  opacity: 0.85;
}

/* ---- briefing prose ---- */

.prose p { margin: 0 0 1.35rem; }

.prose p:last-child { margin-bottom: 0; }

.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--gold) 55%, transparent);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease;
}

.prose a:hover { text-decoration-color: var(--gold); color: #fff; }

.prose strong { font-weight: 600; color: #f2efe4; }

.prose ul, .prose ol { margin: 0 0 1.35rem 1.25rem; }

.prose li { margin-bottom: 0.5rem; }

.prose em { color: var(--muted); }

.prose h1, .prose h2 {
  font-weight: 600;
  margin: 1.6rem 0 0.8rem;
}

/* ---- category sections ---- */

.preamble {
  margin-bottom: 2rem;
  color: var(--muted);
}

.category { margin-bottom: 3.25rem; }

.cat-head,
.models-block h2 {
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  margin-bottom: 1.75rem;
}

.story-grid {
  display: grid;
  /* min() guards against horizontal overflow on viewports under 340px */
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 2.5rem;
}

.story {
  font-size: 1.05rem;
  max-width: 65ch; /* keep line length readable when a section has one story */
}

.story h3 {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.5rem;
}

/* headline links to the primary source — reads as a headline, not a link */
.story h3 a,
.story h3 a:visited {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.story h3 a:hover,
.story h3 a:focus-visible {
  color: var(--gold);
}

.story p { margin: 0 0 0.55rem; }

/* the whole-brief coda spans full width under all sections */
.signal-wrap { margin-top: 1rem; }

/* deterministic footnote under the coda — a narrower column than the story
   grid, so it reads as an appendix rather than another category */
.models-block {
  margin-top: 2.5rem;
  max-width: 65ch;
  font-size: 0.95rem;
}

.models-block ul { margin: 0 0 1rem; padding-left: 1.15rem; }
.models-block li { margin-bottom: 0.35rem; }
.models-block p { margin: 0 0 0.6rem; }

/* ---- legacy single-column story blocks (.narrow path) ---- */

.narrow h3 {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.25;
  margin: 2.75rem 0 0.55rem;
}

.narrow h3:first-child { margin-top: 0; }

/* the story body sits tight under its headline */
.narrow h3 + p { margin-bottom: 0.55rem; }

.prose .kilder {
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 0;
}

.prose .kilder a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
  transition: color 0.15s ease, border-bottom-color 0.15s ease;
}

.prose .kilder a:hover, .prose .kilder a:focus-visible {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* the pipeline's closing line — "Dagens signal: …" */
.prose .signal {
  margin-top: 2.5rem;
  padding-left: 1.1rem;
  border-left: 3px solid var(--gold);
  font-style: italic;
  color: color-mix(in srgb, var(--ink) 80%, var(--gold));
}

/* ---- tag chips ---- */

.tags { margin-top: 0.55rem; }

.chip {
  display: inline-block;
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
  margin: 0 0.35rem 0.35rem 0;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.chip:hover, .chip:focus-visible {
  color: var(--gold);
  border-color: var(--gold);
}

/* ---- prev/next day navigation ---- */

.prevnext {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.prevnext a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.prevnext a:hover, .prevnext a:focus-visible { color: var(--gold); }

/* ---- search results ---- */

.empty-state, .result-count {
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.result { margin-bottom: 2.25rem; }

.result h3 {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.4rem;
}

.result h3 a,
.result h3 a:visited {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.result h3 a:hover, .result h3 a:focus-visible { color: var(--gold); }

.result .snippet { margin: 0 0 0.5rem; color: var(--ink); }

.result mark {
  background: color-mix(in srgb, var(--gold) 28%, transparent);
  color: #f2efe4;
  padding: 0 0.15em;
  border-radius: 2px;
}

.result-meta {
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.75rem;
  color: var(--muted);
}

.result-meta a:not(.chip) {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
}

.result-meta a:not(.chip):hover { color: var(--gold); }

/* filter box on the research list — reuses the masthead search styling */
.filter-form { margin: 0 0 2rem; }
.filter-form input {
  width: 100%;
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.85rem;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hairline);
  padding: 0.4rem 0;
}
.filter-form input::placeholder { color: var(--muted); }
.filter-form input:focus { outline: none; border-bottom-color: var(--gold); }

/* diskret slet-knap — sits inline in the meta line, not a loud red button */
.inline-delete { display: inline; margin: 0; }
.delete-link {
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.75rem;
  color: var(--muted);
  background: none;
  border: none;
  padding: 0;
  margin-left: 0.5rem;
  cursor: pointer;
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
}
.delete-link:hover, .delete-link:focus-visible {
  color: #d98c8c;
  border-bottom-color: #d98c8c;
}
.research-meta .inline-delete { margin-left: 0.25rem; }

/* ---- model evaluation page ---- */

.eval-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.5rem;
  padding: 0.75rem 0;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--hairline);
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.eval-nav a {
  color: var(--muted);
  text-decoration: none;
}

.eval-nav a:hover, .eval-nav a:focus-visible { color: var(--gold); }

.eval-model {
  margin-top: 4rem;
  padding-top: 1rem;
  border-top: 2px solid var(--gold);
}

.eval-model-name {
  font-family: "Spline Sans Mono", monospace;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.eval-metrics, .eval-note {
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.eval-note { color: var(--gold); margin-bottom: 0.3rem; }

/* ---- archive index ---- */

.archive-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.archive-list li { margin-bottom: 0.45rem; }

.archive-list a {
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-bottom-color 0.15s ease;
}

.archive-list a:hover, .archive-list a:focus-visible {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ---- archive ---- */

.archive { margin-top: 3.5rem; }

.archive h2 {
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.archive ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: 0.4rem 1.5rem;
}

.archive a {
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.archive a:hover, .archive a:focus-visible {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ---- footer ---- */

footer { margin-top: 3.5rem; }

footer .double-rule { margin-bottom: 1.25rem; }

footer p {
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: var(--muted);
}

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

/* ---- audio briefing player ---- */
.audio-brief {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0 auto 2rem;
  max-width: 34rem;
}
.audio-brief audio {
  flex: 1;
  height: 2.2rem;
}
.audio-brief .audio-download {
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.audio-brief .audio-download:hover {
  color: var(--gold);
}

/* ---- spoken script, kept beside the audio ---- */
.radio-script {
  margin: -1rem auto 2rem;
  max-width: 34rem;
}
.radio-script > summary {
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  text-align: center;
  list-style: none;
}
.radio-script > summary::-webkit-details-marker {
  display: none;
}
.radio-script > summary::before {
  content: "▸ ";
}
.radio-script[open] > summary::before {
  content: "▾ ";
}
.radio-script > summary:hover {
  color: var(--gold);
}
.radio-script pre {
  margin-top: 1rem;
  padding: 1.2rem 1.4rem;
  border-left: 2px solid var(--gold);
  background: rgba(127, 127, 127, 0.06);
  font-family: inherit;
  font-size: 0.94rem;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

/* ---- research report ---- */
.research-question {
  font-size: 1.7rem;
  line-height: 1.2;
  margin-bottom: 0.3rem;
}
.research-meta {
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 2rem;
}
.prose.research h2 {
  font-size: 1.15rem;
  margin: 1.8rem 0 0.6rem;
  color: var(--gold);
}

/* ---- follow-up question thread on a single report ---- */
/* full width + left-aligned, exactly like the report article above, so the
   thread, answers and ask box line up flush with the report text */
.followups {
  margin: 3rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
}
.followups > h2 {
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.5rem;
}
.followup {
  margin-bottom: 1.8rem;
  padding-left: 1rem;
  border-left: 2px solid color-mix(in srgb, var(--gold) 45%, transparent);
}
/* "9 kilder, 3 uafhængige" — a note about how the story spread, so it sits
   quieter than the body it qualifies. Never styled as a warning: carrying
   wire copy is ordinary journalism, not a fault. */
.echo {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.4rem 0 0;
}
.followup-q {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  color: #f2efe4;
}
.followup-a { font-size: 0.95rem; }
.followup-a > :first-child { margin-top: 0; }
.followup-meta {
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.6rem;
}
.ask-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.ask-form textarea {
  width: 100%;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 3px;
  padding: 0.6rem 0.7rem;
  resize: vertical;
}
.ask-form textarea::placeholder { color: var(--muted); }
.ask-form textarea:focus { outline: none; border-color: var(--gold); }
.ask-form button {
  align-self: flex-start;
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.78rem;
  color: var(--bg);
  background: var(--gold);
  border: none;
  border-radius: 3px;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
}
.ask-form button:hover, .ask-form button:focus-visible {
  background: color-mix(in srgb, var(--gold) 85%, #fff);
}
.ask-form button:disabled { opacity: 0.7; cursor: default; }

/* suggested follow-up chips (above the ask box) — pill links in the site
   aesthetic, NOT the big gold submit button. Each is its own tiny form so a
   click POSTs straight to /ask; they reuse ask-form.js's disable + dots. */
.suggest { margin-top: 1.5rem; }
.suggest-label {
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.6rem;
}
.suggest-chips { display: flex; flex-wrap: wrap; }
.suggest-form { display: inline; margin: 0; }
.suggest-chips .suggest-chip {
  align-self: auto;
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.72rem;
  line-height: 1.35;
  text-align: left;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 0.3rem 0.7rem;
  margin: 0 0.4rem 0.4rem 0;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.suggest-chips .suggest-chip:hover,
.suggest-chips .suggest-chip:focus-visible {
  color: var(--gold);
  border-color: var(--gold);
  background: transparent;
}
.suggest-chips .suggest-chip:disabled { opacity: 0.7; cursor: default; }

/* "start ny research" box on /research — visually distinct from the thin
   "filtrér rapporter" input below it (a bordered card with a heading) */
.start-research {
  margin-bottom: 2.5rem;
  padding: 1.1rem 1.2rem 1.2rem;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  background: color-mix(in srgb, var(--gold) 4%, transparent);
}
.start-research h2 {
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.8rem;
}
.start-research .ask-form { margin-top: 0; }
/* what the box is for, above the field. Same muted register as .empty-state
   so it reads as guidance, not as content. */
.start-hint {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 0.9rem;
}

/* research pending (background job) page */
.pending { margin-top: 1rem; }
.pending-label {
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.6rem;
}
.pending-phase {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.1rem;
  color: var(--ink);
  margin: 0 0 1.5rem;
}
.pending-phase strong { color: #f2efe4; }
.research-error {
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.8rem;
  color: #d98c8c;
  white-space: pre-wrap;
  word-break: break-word;
  border-left: 2px solid #d98c8c;
  padding-left: 0.8rem;
  margin: 0 0 1.5rem;
}

/* ---- per-story feedback controls ---- */
.fb {
  display: inline-flex;
  gap: 0.35rem;
  margin-top: 0.6rem;
  align-items: center;
  position: relative;  /* anchor for the absolute mute popup */
}
.story .fb { margin-top: 0.8rem; }
.fb-btn {
  background: none;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  color: var(--muted);
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.8rem;
  line-height: 1;
  padding: 0.2rem 0.4rem;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.15s, border-color 0.15s, color 0.15s;
}
.fb-btn:hover, .fb-btn:focus-visible {
  opacity: 1;
  border-color: var(--gold);
  color: var(--gold);
}
.fb-btn.is-saved {
  opacity: 1;
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 162, 39, 0.12);
}
.fb-btn.fb-flash { border-color: var(--gold); opacity: 1; }
.fb-btn.fb-error { border-color: #b4544e; color: #b4544e; opacity: 1; }
.fb-btn:disabled { cursor: wait; }

/* ---- settings / mutes ---- */
.settings-block { margin-top: 1rem; }
.settings-hint { color: var(--muted); font-size: 0.85rem; margin-bottom: 1rem; }
.mute-add { display: flex; gap: 0.5rem; margin-bottom: 1.4rem; }
.mute-add input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  color: var(--ink);
  padding: 0.4rem 0.6rem;
  font-family: inherit;
}
.mute-add button, .mute-remove button {
  background: none;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  color: var(--muted);
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.8rem;
  padding: 0.3rem 0.7rem;
  cursor: pointer;
}
.mute-add button:hover, .mute-remove button:hover {
  border-color: var(--gold); color: var(--gold);
}
.mute-list { list-style: none; }
.mute-list li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.4rem 0; border-bottom: 1px solid var(--hairline);
}

/* ---- selected feedback state (persistent, not flash) ---- */
.fb-btn.is-selected {
  opacity: 1;
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 162, 39, 0.12);
}
.fb-mute:hover { border-color: #b4544e; color: #b4544e; }

/* ---- topic-mute picker ---- */
/* popup overlay — absolute so it never reflows the page content */
.mute-picker {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  z-index: 30;
  width: 17rem;
  max-width: 78vw;
  padding: 0.7rem 0.75rem 0.75rem;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: #1b1b29;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.5);
}
.mute-picker[hidden] { display: none; }
.mute-close {
  position: absolute;
  top: 0.3rem;
  right: 0.45rem;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}
.mute-close:hover { color: var(--gold); }
.mute-picker-label {
  display: block;
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.mute-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.55rem;
}
.mute-row { display: flex; gap: 0.4rem; }
.mute-row .mute-free { flex: 1; min-width: 0; }
.mute-chip {
  background: none;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--ink);
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.72rem;
  padding: 0.15rem 0.6rem;
  cursor: pointer;
}
.mute-chip:hover { border-color: var(--gold); }
.mute-chip.chosen { border-color: var(--gold); color: var(--gold);
  background: rgba(201, 162, 39, 0.14); }
.mute-chip.mute-common { opacity: 0.5; border-style: dashed; }
.mute-chip.mute-common::after { content: " ⚠"; }
.mute-free {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.78rem;
  padding: 0.15rem 0.5rem;
  min-width: 8rem;
}
.mute-confirm {
  background: none;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  color: var(--muted);
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.72rem;
  padding: 0.2rem 0.7rem;
  cursor: pointer;
}
.mute-confirm:hover { border-color: #b4544e; color: #b4544e; }

/* ---- collapsed (muted) story ---- */
.story.story-muted > :not(.muted-note) {
  opacity: 0.28;
  filter: grayscale(0.7);
  pointer-events: none;
  max-height: 3.2rem;
  overflow: hidden;
}
.muted-note {
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.78rem;
  color: var(--muted);
  padding: 0.4rem 0;
}
.muted-note a { color: var(--gold); }

/* ---- masthead date navigator ---- */
.datenav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;  /* padding on the arrows provides the visual spacing */
  margin: 0.4rem 0 0.9rem;
}
.datenav-current {
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--gold);  /* match the large date heading above */
}
/* bare thick chevrons — no box/border; gold, ~2x the date text; the
   padding gives a generous click target while it reads as just a glyph */
.datenav-arrow {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--gold);
  padding: 0.4rem 0.9rem;
  transition: color 0.15s ease;
}
.datenav-arrow:hover, .datenav-arrow:focus-visible { color: #ecc85a; }
.datenav-arrow.is-disabled { color: var(--muted); cursor: default; }
.datenav-chev {
  width: 1.75rem;
  height: 1.75rem;
  display: block;
}
.datenav-chev polyline {
  fill: none;
  stroke: currentColor;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- archive month calendar ---- */
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  margin: 0.5rem 0 1.4rem;
}
.cal-label {
  font-family: "Newsreader", serif;
  font-size: 1.2rem;
  color: var(--ink);
  min-width: 9rem;
  text-align: center;
}
.cal-arrow {
  font-size: 1.1rem;
  color: var(--gold);
  text-decoration: none;
  padding: 0.1rem 0.55rem;
  border: 1px solid var(--hairline);
  border-radius: 4px;
}
.cal-arrow:hover { border-color: var(--gold); }
.cal-arrow.is-disabled { color: var(--hairline); border-color: transparent; cursor: default; }
.calendar {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.calendar th {
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.68rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--hairline);
}
.calendar td {
  height: 3rem;
  text-align: center;
  vertical-align: middle;
  border: 1px solid var(--hairline);
  font-family: "Spline Sans Mono", monospace;
  font-size: 0.9rem;
}
.cal-empty { border: none !important; }
.cal-day.is-dim { color: var(--hairline); }
.cal-day.has-brief { background: rgba(201, 162, 39, 0.07); }
.cal-day.has-brief a {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 3rem;
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
}
.cal-day.has-brief:hover { background: rgba(201, 162, 39, 0.16); }

/* ---- doctor: one row per check, sorted worst-first ---- */
.doctor-summary {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}
/* on the summary line only — the row classes below share the status names,
   so these are deliberately spelled differently */
.count-warn { color: var(--gold); }
.count-fail { color: #c0392b; }
.doctor-mode {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}
.doctor-table {
  width: 100%;
  border-collapse: collapse;
}
.doctor-row {
  border-top: 1px solid var(--hairline);
  vertical-align: baseline;
}
.doctor-row td { padding: 0.7rem 0.6rem 0.7rem 0; }
.doctor-status {
  font-family: "Spline Sans Mono", ui-monospace, monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
  width: 6.5rem;
}
.doctor-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  margin-right: 0.5rem;
  background: var(--muted);
}
.doctor-fail .doctor-dot { background: #c0392b; }
.doctor-warn .doctor-dot { background: var(--gold); }
.doctor-name {
  font-family: "Spline Sans Mono", ui-monospace, monospace;
  font-size: 0.9rem;
  color: var(--ink);
  white-space: nowrap;
  padding-right: 1.2rem !important;
}
.doctor-detail { color: var(--ink); font-size: 0.98rem; }
.doctor-fix {
  display: block;
  color: var(--gold);
  font-size: 0.92rem;
  margin-top: 0.2rem;
}
.doctor-ok .doctor-detail,
.doctor-skip .doctor-detail { color: var(--muted); }
.doctor-ok .doctor-name,
.doctor-skip .doctor-name { color: var(--muted); }

@media (max-width: 40rem) {
  .doctor-row td { display: block; padding: 0.15rem 0; }
  .doctor-row { padding: 0.7rem 0; }
  .doctor-name { white-space: normal; }
}

/* ---- /models: daily model snapshots ---------------------------------- */
.model-deltas {
  border-left: 2px solid var(--gold);
  padding-left: 1.2rem;
  margin: 0 0 2.5rem;
}
.model-deltas h2 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.model-deltas h3 {
  font-family: "Spline Sans Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin: 1.1rem 0 0.35rem;
}
.model-deltas ul { margin: 0; padding-left: 1.1rem; }
.model-deltas li { margin-bottom: 0.3rem; }
.model-index, .model-families { margin-bottom: 3rem; }
.model-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.model-table th {
  font-family: "Spline Sans Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  text-align: left;
  font-weight: 400;
  padding: 0 0.6rem 0.5rem 0;
  border-bottom: 1px solid var(--hairline);
}
.model-table td {
  padding: 0.55rem 0.6rem 0.55rem 0;
  border-top: 1px solid var(--hairline);
  vertical-align: baseline;
}
.model-table .num {
  font-family: "Spline Sans Mono", ui-monospace, monospace;
  font-size: 0.88rem;
  text-align: right;
  white-space: nowrap;
}
.model-variants, .model-repo {
  display: block;
  font-family: "Spline Sans Mono", ui-monospace, monospace;
  font-size: 0.76rem;
  color: var(--muted);
}
.model-repo { color: var(--gold); }
/* Repo links read as the row's title, the same way .story h3 a and
   .result h3 a do — inherited ink, gold on hover. Scoped to the family
   table so .model-repo in the index table keeps its own colour. */
.model-families a,
.model-families a:visited {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}
.model-families a:hover,
.model-families a:focus-visible { color: var(--gold); }
.model-caveat {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 0.9rem;
}
