:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #1a1a1a;
  --muted: #6b6b6b;
  --border: #d8d8d8;
  --card-bg: #fafafa;
  --link: #0b5fa5;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161a;
    --fg: #e8e8e8;
    --muted: #9a9a9a;
    --border: #33363c;
    --card-bg: #1b1e23;
    --link: #6cb4f5;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 2rem 1rem;
  background: var(--bg);
  color: var(--fg);
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  line-height: 1.5;
}

main {
  max-width: 42rem;
  margin: 0 auto;
}

header {
  margin-bottom: 2rem;
}

h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
}

h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
}

.tagline {
  color: var(--muted);
}

.updated {
  color: var(--muted);
  font-size: 0.875rem;
}

a {
  color: var(--link);
}

.cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1rem;
  background: var(--card-bg);
}

.card h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.meta {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0 0 0.5rem;
}

.badge {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.empty,
.note {
  color: var(--muted);
  font-size: 0.9rem;
}

.maintenance {
  color: var(--muted);
}

.maintenance h2 {
  color: var(--fg);
}

.maintenance ul {
  padding-left: 1.25rem;
}

header h1 a {
  color: inherit;
  text-decoration: none;
}

article h2,
article h3 {
  margin-top: 1.5rem;
}

.impact {
  margin: 0.5rem 0;
}

/* The "…" summary is the active ellipsis for the impact-excerpt overflow —
   no JavaScript, native <details>. Hide the default disclosure triangle so
   the "…" itself reads as the clickable affordance. */
details.impact-more {
  margin-top: 0.25rem;
}

details.impact-more > summary {
  cursor: pointer;
  display: inline-block;
  color: var(--link);
  list-style: none;
}

details.impact-more > summary::-webkit-details-marker {
  display: none;
}

details.impact-more > summary::marker {
  content: "";
}

details.impact-more > summary:hover {
  text-decoration: underline;
}

details.impact-more[open] > summary {
  margin-bottom: 0.5rem;
}

.evidence dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 0.75rem;
}

.evidence dt {
  color: var(--muted);
  font-size: 0.875rem;
}

.evidence dd {
  margin: 0;
  word-break: break-all;
}

.evidence code {
  font-size: 0.85em;
}
