/* Server-rendered pages (results, history, statistics). The interactive chart
   has its own stylesheet, styles.css. */
:root {
  --bg: #ffffff; --ink: #1f2328; --muted: #59636e; --line: #d8dee4; --tint: #f6f8fa;
  --accent: #b23a2e; --link: #0b57b0; --ball: #b23a2e; --ball-ink: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117; --ink: #e6edf3; --muted: #9aa4af; --line: #30363d; --tint: #161b22;
    --accent: #e0796d; --link: #79b0f2; --ball: #c0503f; --ball-ink: #ffffff;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.55 "Source Sans 3", "Inter", "Helvetica Neue", system-ui, sans-serif;
}
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 28px; line-height: 1.25; font-weight: 600; margin: 20px 0 8px; text-wrap: balance; }
h2 { font-size: 20px; line-height: 1.3; font-weight: 600; margin: 32px 0 8px; }
p { margin: 8px 0 12px; }
.lead { font-size: 17px; color: var(--muted); }
.muted { color: var(--muted); font-size: 14px; }
.note { border-left: 3px solid var(--line); padding: 2px 0 2px 12px; color: var(--muted); font-size: 15px; }
.mono, .num { font-family: "Fira Code", "JetBrains Mono", "SF Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }

.top { border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.logo { font-weight: 600; font-size: 18px; color: var(--ink); }
.top-nav { display: flex; gap: 16px; font-size: 15px; }
.top-nav a[aria-current] { color: var(--ink); font-weight: 600; }

.crumbs { font-size: 14px; color: var(--muted); margin-top: 14px; }
.crumbs span { margin: 0 6px; }
.crumbs span:last-child { display: none; }

.tabs { display: flex; gap: 4px 20px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-top: 10px; font-size: 15px; }
.tabs a { padding: 8px 0; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a[aria-current] { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }

.balls { display: inline-flex; gap: 4px; vertical-align: middle; }
.balls b {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--ball); color: var(--ball-ink);
  font: 500 15px/1 "Fira Code", "JetBrains Mono", "SF Mono", ui-monospace, monospace;
}

.latest { display: flex; gap: 12px 40px; flex-wrap: wrap; margin: 16px 0 8px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.latest-item { display: flex; flex-direction: column; gap: 8px; color: var(--ink); }
a.latest-item:hover { text-decoration: none; }
a.latest-item:hover .latest-name { text-decoration: underline; }
.latest-name { font-weight: 600; }
.latest .balls b { width: 44px; height: 44px; font-size: 22px; }

.scroll { overflow-x: auto; }
.tbl { border-collapse: collapse; width: 100%; font-size: 15px; }
.tbl.narrow { width: auto; min-width: min(100%, 420px); }
.tbl th, .tbl td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.tbl thead th { font-weight: 600; font-size: 14px; color: var(--muted); background: var(--tint); }
.tbl tbody th { font-weight: 400; }
.tbl .num { text-align: right; }
.tbl .muted { font-size: 12px; margin-left: 4px; }

.links { padding-left: 20px; }
.links li { margin: 6px 0; }
.links strong { font-weight: 600; }
.years { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 15px; }
.pager { display: flex; gap: 20px; margin-top: 24px; }

.foot { margin-top: 48px; border-top: 1px solid var(--line); background: var(--tint); padding: 16px 0 24px; color: var(--muted); font-size: 13px; }
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; }
.foot-short { display: none; }
/* Phones: the whole footer is one line (user decision 2026-11-14) — the
   not-affiliated statement plus links to the full notice and privacy page. */
@media (max-width: 640px) {
  .foot { margin-top: 24px; padding: 8px 0 10px; font-size: 12px; }
  .foot p { margin: 0; }
  .foot-full, .foot-links { display: none; }
  .foot-short { display: block; }
}
@media (max-width: 480px) {
  h1 { font-size: 24px; }
  .tbl th, .tbl td { padding: 6px 8px; }
  .latest .balls b { width: 38px; height: 38px; font-size: 19px; }
}
