/* =====================================================================
   VID 3.0 — IIRF type
   Approved by Kyle Wisdom, 2 Nov 2026.
   Poppins is IIRF's own web font (self-hosted on iirf.global).
   All four families are SIL Open Font License — free to self-host.
   Files live in static/fonts/ (latin subset, woff2). No Google Fonts
   requests: subscribers' browsers never contact a third party.
   Load AFTER palette.css and BEFORE every other stylesheet.
   ===================================================================== */

/* ---------- Poppins — headings, page titles, headline figures, buttons */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2"); }

/* ---------- Source Sans 3 — body, tables, filters, chart text */
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/source-sans-3-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }

/* ---------- DM Mono — small uppercase labels, IDs, dates, pills */
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/dm-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/dm-mono-latin-500-normal.woff2") format("woff2"); }

/* Source Serif 4 is part of the brand kit for long-form reports and PDFs.
   It is NOT loaded on the dashboard. */

:root {
  /* ---------- Families */
  --font-display: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --font-label:   "DM Mono", ui-monospace, Menlo, Consolas, monospace;

  /* ---------- Type scale (Poppins runs wide: sizes are ~10% below the old serif) */
  --type-page-title:   600 34px/1.15 var(--font-display);   /* "Incident Overview" */
  --type-card-title:   600 19px/1.3  var(--font-display);   /* "Incidents by Religion" */
  --type-kpi:          600 38px/1.1  var(--font-display);   /* headline figure cards */
  --type-tile:         600 26px/1.15 var(--font-display);   /* violation-type tile numbers */
  --type-button:       600 14px/1    var(--font-display);   /* matches iirf.global buttons */
  --type-body:         400 15px/1.5  var(--font-body);
  --type-body-strong:  600 15px/1.5  var(--font-body);
  --type-small:        400 13px/1.45 var(--font-body);      /* subtitles, notes, legends */
  --type-label:        600 12px/1.3  var(--font-body);      /* uppercase labels: Source Sans 3 (changed 2 Nov 2026 from DM Mono); DM Mono stays for IDs, dates, numbers */
  --type-mono:         400 13px/1.4  var(--font-label);     /* IDs, dates */
  --label-tracking:    0.1em;
}

/* ---------- Base assignments */
body { font: var(--type-body); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.005em; }
button, .btn { font: var(--type-button); letter-spacing: 0.01em; }
input, select, textarea { font: var(--type-body); }

/* Numbers that line up in columns */
table, .tabular, .chart-axis { font-variant-numeric: tabular-nums; }
