/* Self-hosted faces. CSP is font-src 'self' with no external font host, so
   an external <link> would be blocked silently. Shared with the inline
   sheet in index.html - same files, one cache entry. */
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/IBMPlexSans-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/IBMPlexSans-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/IBMPlexSans-600-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/IBMPlexSans-600-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/IBMPlexMono-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/IBMPlexMono-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/IBMPlexMono-500-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/IBMPlexMono-500-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Archivo Narrow';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/ArchivoNarrow-600-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Archivo Narrow';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/ArchivoNarrow-600-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'IBM Plex Sans';font-style:italic;font-weight:400;font-display:swap;src:url(/fonts/IBMPlexSans-400italic-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'IBM Plex Sans';font-style:italic;font-weight:400;font-display:swap;src:url(/fonts/IBMPlexSans-400italic-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

/* Who Funded Genocide — standalone stylesheet.
   Self-contained on purpose: this domain has no dependency on the archive's
   style.css / nav.css / nav.js, so the site stands up even if that host is
   unreachable. System font stack only — no external font hosts, which keeps
   the CSP to 'self' with no exceptions. */

:root {
  --bg:        #0c0e0f;
  --panel:     #13171a;
  --panel2:    #0f1315;
  --line:      #232a2d;
  --line2:     #191f22;
  --ink:       #e0e5e7;
  --ink-dim:   #8b969b;
  --ink-dimmer:#6a747a;
  --white:     #ffffff;
  --accent:    #a8221a;
  --accent2:   #c4382f;
  --accent-ink:#d9695f;
  --gold:      #c9a227;
  --for:       #5f8ba6;
  --mono: 'IBM Plex Mono', ui-monospace, Consolas, 'Courier New', monospace;
  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --label: 'Archivo Narrow', 'Archivo', var(--sans);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-text-size-adjust: 100%;
}

a { color: var(--ink); border-bottom: 1px solid var(--line); }
a:hover { border-bottom-color: var(--accent); }
/* real italic face is shipped, so emphasis is drawn rather than slanted */
em, i, cite { font-style: italic; }

/* ---------------------------------------------------------------- header */

.site-head {
  display: flex; align-items: center; gap: 28px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
  background: #0c0e10;
  position: sticky; top: 0; z-index: 20;
  flex-wrap: wrap;
}
.brand {
  font-family: var(--mono);
  font-size: 1.5rem; font-weight: 700; letter-spacing: .01em;
  color: var(--white); text-decoration: none; white-space: nowrap;
  line-height: 1.1;
}
/* Only "Genocide" carries the accent; "WhoFunded" stays white. */
.brand span { color: var(--accent2); }
.site-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-nav a {
  color: var(--ink-dim); text-decoration: none; font-size: .88rem;
  padding: 4px 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a.active { color: var(--white); border-bottom-color: var(--accent); }

/* ------------------------------------------------------------------ main */

main { padding: 24px 28px 60px; max-width: 1400px; margin: 0 auto; }
h1 { font-size: 2rem; margin: 18px 0 6px; color: var(--white); }
.sub { color: var(--ink-dim); font-size: .95rem; margin: 0 0 22px; max-width: 78ch; line-height: 1.6; }

.notice {
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  background: var(--panel); border-radius: 0;
  padding: 14px 18px; margin: 0 0 24px; max-width: 100ch;
}
.notice h2 {
  font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  color: #e74c3c; margin: 0 0 8px; font-family: var(--mono);
}
.notice p { margin: 6px 0; font-size: .88rem; line-height: 1.65; color: #b9bfc5; }
.notice a { color: var(--ink); }

/* ------------------------------------------------------------------ stats */

.stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 24px; }
.stat {
  background: var(--panel); border: 1px solid var(--line); border-radius: 0;
  padding: 14px 18px; min-width: 150px; flex: 1 1 150px;
}
.stat-v { font-size: 1.5rem; font-weight: 500; color: var(--ink); font-family: var(--mono);
  font-variant-numeric: tabular-nums; letter-spacing: -.025em; }
.stat-l { font-size: .82rem; color: #c9ced3; margin-top: 4px; }
.stat-s { font-size: .74rem; color: var(--ink-dimmer); margin-top: 2px; }

/* ------------------------------------------------------------------- tabs */

.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin: 0 0 18px; }
.tab {
  background: transparent; border: 0; border-bottom: 2px solid transparent;
  color: var(--ink-dim); padding: 10px 16px; cursor: pointer;
  font-size: .9rem; font-family: inherit;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--white); border-bottom-color: var(--accent); }

/* --------------------------------------------------------------- controls */

.controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 14px; }
.controls input, .controls select {
  background: #1a1e21; color: var(--ink); border: 1px solid #333a40;
  border-radius: 0; padding: 8px 11px; font-size: .88rem; font-family: inherit;
}
.controls input { min-width: 280px; flex: 1 1 280px; }
.controls input:focus, .controls select:focus { outline: 1px solid var(--accent); border-color: var(--accent); }
#resultCount { color: var(--ink-dim); font-size: .84rem; font-family: var(--mono); }

/* ------------------------------------------------------------------ table */

.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 0; background: var(--panel2); }
table { border-collapse: collapse; width: 100%; font-size: .85rem; }
thead th {
  position: sticky; top: 0; background: #191d21; color: #c9ced3; text-align: left;
  padding: 10px 12px; font-weight: 600; white-space: nowrap;
  border-bottom: 1px solid var(--line);
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  font-family: var(--label);
}
tbody td { padding: 9px 12px; border-bottom: 1px solid var(--line2); vertical-align: top; }
tbody tr:hover { background: #181c20; }
td.name { color: var(--white); font-weight: 600; white-space: nowrap; }
td.num { text-align: right; font-family: var(--mono); white-space: nowrap;
  font-variant-numeric: tabular-nums; }
td.amt { color: var(--ink); }
td.dim { color: #868d94; }
td.empty { text-align: center; padding: 34px; color: #868d94; }
td.empty.err { color: #f66; }
.tag {
  display: inline-block; padding: 2px 8px; border-radius: 0; font-size: .7rem;
  white-space: nowrap; background: rgba(192,57,43,.14); color: var(--accent-ink);
  border: 1px solid rgba(192,57,43,.3);
}

/* ------------------------------------------------------------- pagination */

.pagination { text-align: center; margin: 18px 0 0; }
.pagination button {
  padding: 7px 13px; margin: 0 3px; background: #1a1e21; color: #ddd;
  border: 1px solid #333a40; border-radius: 0; cursor: pointer;
  font-family: inherit; font-size: .84rem;
}
.pagination button:hover:not(:disabled) { border-color: var(--accent); }
.pagination button.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination button:disabled { opacity: .35; cursor: default; }
.pagination .gap { color: #5c6369; padding: 0 4px; }

/* --------------------------------------------------------------- download */

.dl-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0 0; }
.dl-btn {
  display: inline-flex; align-items: center; padding: 9px 18px;
  border: 1px solid var(--accent2); border-radius: 0; color: #e8e8e8;
  text-decoration: none; font-family: var(--mono); font-size: .8rem;
  background: transparent; transition: background .15s, color .15s;
}
.dl-btn:hover { background: var(--accent2); color: #fff; }

/* ----------------------------------------------------------------- footer */

.site-foot {
  border-top: 1px solid var(--line); margin-top: 40px;
  padding: 22px 28px 40px; color: var(--ink-dimmer); font-size: .84rem;
}
.site-foot p { margin: 6px 0; }
.site-foot a { color: var(--ink-dim); }
.site-foot .fine { font-size: .76rem; color: #5c6369; max-width: 90ch; }

/* ------------------------------------------------------- methodology page */

.doc { max-width: 860px; }
.doc h2 {
  font-size: 1.1rem; color: var(--white); margin: 34px 0 10px;
  padding-bottom: 7px; border-bottom: 1px solid var(--line);
}
.doc p, .doc li { color: #c2c8ce; line-height: 1.72; font-size: .94rem; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc code {
  background: #1a1e21; border: 1px solid var(--line); border-radius: 0;
  padding: 1px 5px; font-family: var(--mono); font-size: .85em; color: #dcdfe2;
}
.doc .box {
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  background: var(--panel); border-radius: 0; padding: 14px 18px; margin: 20px 0;
}
.doc .box p { margin: 6px 0; font-size: .9rem; }

@media (max-width: 760px) {
  html, body { overflow-x: hidden; max-width: 100%; }
  .site-head { padding: 12px 14px; gap: 12px; }
  .site-nav { gap: 14px; flex-wrap: wrap; }
  .site-nav a { min-height: 44px; display: inline-flex; align-items: center; }
  main { padding: 16px 12px 40px; }
  h1 { font-size: 1.5rem; }
  .doc { max-width: 100%; }
  .stats { gap: 10px; }
  .stat { flex: 1 1 44%; min-width: 0; padding: 12px 14px; }
  .stat-v { font-size: 1.24rem; }
  .controls input, .controls select { min-width: 0; width: 100%; min-height: 44px;
    font-size: 16px; }
  .tab { min-height: 44px; }
  /* tables scroll in their own box, never the page */
  .tablewrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { font-size: .82rem; }
  thead th, tbody td { white-space: nowrap; }
  .dl-btn { min-height: 44px; }
  .site-foot { padding: 18px 14px 32px; }
}
