
:root {
  --paper: #f4efe6;
  --ink: #1c1916;
  --muted: #5e584f;
  --faint: #8a8378;
  --rule: #cfc6b6;
  --rule-strong: #2a2622;
  --accent: #16382c;
  --accent-2: #8a5a12;
  --ok: #14532d;
  --bad: #8a1f1e;
  --ok-bg: #e4efe6;
  --bad-bg: #f4e6e3;
  --thead: #ebe4d6;
  --chip: #e8e0d2;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

* { margin: 0; padding: 0; }

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding: 28px 20px 72px;
}

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

a:hover { text-decoration-thickness: 2px; }

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
}
.skip:focus {
  left: 20px;
  background: var(--paper);
  padding: 6px 10px;
  color: var(--ink);
}

.masthead {
  border-top: 3px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule);
  padding: 22px 0 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 28px;
}

.seal {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
}

.mast-copy { flex: 1 1 240px; min-width: 0; }

.kicker {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 2.05rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-top: 4px;
}

.sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.98rem;
}

.asof {
  font-size: 0.85rem;
  color: var(--faint);
  text-align: right;
  flex: 0 1 180px;
}

nav.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 12px 0 8px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 28px;
  font-size: 0.88rem;
}

nav.toc a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
nav.toc a:hover { border-bottom-color: var(--ink); }

h2 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  padding-top: 8px;
}

h3 {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
  margin: 22px 0 8px;
}

section {
  margin: 0 0 42px;
  padding-top: 6px;
  border-top: 1px solid transparent;
}

.lede { margin: 0 0 16px; max-width: 62ch; }

.metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin: 0 0 16px;
}

.metric {
  background: var(--paper);
  flex: 1 1 180px;
  padding: 16px 16px 14px;
}

.metric .val {
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.metric .lab {
  margin-top: 4px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.metric .det {
  margin-top: 4px;
  font-size: 0.88rem;
  color: var(--muted);
}

.note {
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  padding: 12px 14px;
  margin: 0 0 8px;
  background: #f7f3eb;
  max-width: 75ch;
}

.note strong { font-weight: 650; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.filters button {
  font: inherit;
  font-size: 0.9rem;
  background: var(--chip);
  color: var(--ink);
  border: 1px solid var(--rule);
  padding: 7px 12px;
  border-radius: 999px;
}

.filters button[aria-pressed="true"] {
  background: var(--accent);
  color: #f4efe6;
  border-color: var(--accent);
}

.scroll {
  overflow-x: auto;
  margin: 0 0 12px;
  border: 1px solid var(--rule);
  -webkit-overflow-scrolling: touch;
}
.scroll table { min-width: 36rem; }
table.games { min-width: 58rem; }
table.games td:nth-child(1),
table.games td:nth-child(2),
table.games th:nth-child(1),
table.games th:nth-child(2) { white-space: nowrap; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.35;
}

caption {
  text-align: left;
  font-size: 0.82rem;
  color: var(--muted);
  padding: 0 0 6px;
  caption-side: bottom;
}

th, td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--thead);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--muted);
  white-space: nowrap;
}

td.num { text-align: right; font-variant-numeric: tabular-nums; }

tr:last-child td { border-bottom: 0; }

.is-ok { color: var(--ok); font-weight: 650; }
.is-bad { color: var(--bad); font-weight: 650; }

.chart-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}

.chart-card {
  flex: 1 1 300px;
  min-width: 0;
  border: 1px solid var(--rule);
  padding: 12px 8px 8px;
  background: #f7f3eb;
}

.chart-card h3 { margin: 0 8px 8px; font-size: 1rem; }

svg.chart { width: 100%; height: auto; display: block; }
svg.chart .grid { stroke: var(--rule); stroke-width: 1; }
svg.chart .zero { stroke: var(--ink); stroke-width: 1.2; }
svg.chart .tick, svg.chart .legend, svg.chart .bar-label, svg.chart .bar-val, svg.chart .bar-val-on {
  font-family: var(--sans);
  font-size: 11px;
  fill: var(--muted);
}
svg.chart .bar-label { font-size: 11px; fill: var(--ink); }
svg.chart .bar-val { fill: var(--ink); }
svg.chart .bar-val-on { fill: #f4efe6; }
svg.chart .mark { fill: var(--accent); }
svg.chart .mark-hot { fill: #0f2a21; }
svg.chart .mark-2 { fill: var(--accent-2); }

.facts {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  margin: 0 0 14px;
}

.fact {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--rule);
}
.fact:last-child { border-bottom: 0; }
.fact .k { flex: 0 1 180px; color: var(--muted); font-size: 0.88rem; }
.fact .v { flex: 1 1 200px; }

.ledger { list-style: none; border: 1px solid var(--rule); }
.ledger li {
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
}
.ledger li:last-child { border-bottom: 0; }
.ledger .title { font-weight: 650; }
.ledger .detail { color: var(--muted); font-size: 0.95rem; margin-top: 2px; }
.pill {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 650;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--chip);
  color: var(--muted);
  margin-left: 8px;
  vertical-align: 1px;
}
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-warn { background: #f3ead3; color: #6a4b10; }

.rules { padding-left: 1.15em; max-width: 75ch; }
.rules li { margin: 0 0 8px; }

.links { list-style: none; margin-top: 14px; }
.links li { margin: 0 0 6px; }

footer {
  border-top: 3px solid var(--rule-strong);
  padding-top: 14px;
  color: var(--muted);
  font-size: 0.88rem;
}

.fine { font-size: 0.88rem; color: var(--muted); margin: 0 0 10px; max-width: 75ch; }

@media (max-width: 640px) {
  html { font-size: 16px; }
  body { padding: 16px 12px 56px; }
  h1 { font-size: 1.6rem; }
  .asof { text-align: left; }
  th, td { padding: 7px 8px; }
}

@media print {
  html, body { background: #fff; color: #000; font-size: 11pt; }
  body { max-width: none; padding: 0; }
  a { color: #000; text-decoration: none; }
  nav.toc, .filters, .skip { display: none; }
  .note, .metric, .scroll, .chart-card, .facts, .ledger, .masthead {
    border-color: #ccc;
    background: #fff;
  }
  .metrics { background: #ccc; }
  section { break-inside: avoid; }
  .chart-grid { break-inside: avoid; }
  footer { break-before: avoid; }
}
