/* Official Lines: deliberately plain. One accent colour, no red/green: nothing here is "good" or "bad". */
:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1d1d1b;
  --muted: #6b6a66;
  --line: #e4e2dc;
  --accent: #2f5d8a;
  --accent-soft: #dce6f0;
  --land: #e9e7e1;
  --floor: #eef3ea;
  --contested: #f6efe3;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161615; --surface: #1f1f1d; --text: #ecebe6; --muted: #a09e97; --line: #34332f;
    --accent: #8db4dc; --accent-soft: #2a3a4b; --land: #2c2b28; --floor: #233024; --contested: #3a3122;
  }
}
:root[data-theme="dark"] {
  --bg: #161615; --surface: #1f1f1d; --text: #ecebe6; --muted: #a09e97; --line: #34332f;
  --accent: #8db4dc; --accent-soft: #2a3a4b; --land: #2c2b28; --floor: #233024; --contested: #3a3122;
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.55 Georgia, "Iowan Old Style", "Times New Roman", serif;
}
a { color: var(--accent); }
main, .top, footer { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding-top: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.brand { font-weight: bold; font-size: 1.3rem; color: var(--text); text-decoration: none; letter-spacing: .02em; }
.tag { color: var(--muted); font-style: italic; }
.top nav { margin-left: auto; display: flex; gap: 16px; font-family: system-ui, sans-serif; font-size: .9rem; }
h1 { font-size: 1.9rem; line-height: 1.2; margin: 24px 0 8px; }
h2 { font-size: 1.25rem; margin: 32px 0 8px; }
h2.small, .small { font-size: .85rem; }
h2.small { font-family: system-ui, sans-serif; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.muted { color: var(--muted); }
.lead { font-size: 1.1rem; }
.intro p { max-width: 720px; }
code { font-size: .9em; }

.map { width: 100%; aspect-ratio: 2 / 1; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.map svg { width: 100%; height: 100%; display: block; }
.map path { fill: var(--land); stroke: var(--bg); stroke-width: .4; }
.map path.lit { fill: var(--accent); }

.filters { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: 24px 0 8px; font-family: system-ui, sans-serif; font-size: .9rem; }
.filters input[type=search] { flex: 1 1 240px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); }
.filters select { padding: 7px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); }

.events, .statements, .sources { list-style: none; padding: 0; margin: 0; }
.event { padding: 16px 0; border-bottom: 1px solid var(--line); }
.event.featured { border-left: 3px solid var(--accent); padding-left: 12px; }
.event-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
.event-title { font-size: 1.1rem; font-weight: bold; text-decoration: none; color: var(--text); }
.event-title:hover { color: var(--accent); }
.summary { margin: 4px 0 8px; max-width: 760px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip, .badge { font-family: system-ui, sans-serif; font-size: .78rem; padding: 2px 8px; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.chip.country { background: var(--accent-soft); color: var(--text); }
.chip.org { border: 1px solid var(--accent); color: var(--text); }
.badge { border: 1px dashed var(--muted); color: var(--muted); }

.grid-2 { display: grid; grid-template-columns: 3fr 2fr; gap: 24px; align-items: start; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }

.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; background: var(--surface); }
th, td { border-bottom: 1px solid var(--line); padding: 8px; text-align: left; vertical-align: top; }
th { font-family: system-ui, sans-serif; font-size: .8rem; color: var(--muted); font-weight: 600; }
.matrix td.cell { text-align: center; font-size: 1.2rem; width: 1%; white-space: nowrap; }
.matrix th:not(:first-child) { text-align: center; min-width: 72px; }
.matrix tr.floor td:first-child { background: var(--floor); }
.matrix tr.contested td:first-child { background: var(--contested); }
.stance { cursor: help; }
.term { display: inline-block; margin-right: 16px; }
.notes li { margin-bottom: 6px; }
.statements li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.statements .summary { font-size: .95rem; }
.coverage tr.off td { color: var(--muted); }
.coverage tr.err td:nth-child(4) { font-weight: bold; }
.prose { max-width: 760px; }
footer { margin-top: 48px; padding-top: 16px; padding-bottom: 32px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
