/*
 * CAAF NASP Dashboard — design tokens (CONSTITUTION Article VIII).
 * Components consume only these tokens. Brand colours and typeface are CAAF
 * inputs (Section 16.8); the values below are a restrained, professional,
 * AA-contrast placeholder set, clearly provisional until CAAF brand is applied.
 */
:root {
  /* Neutral palette */
  --color-bg: #f4f6f9;
  --color-surface: #ffffff;
  --color-surface-2: #f8fafc;
  --color-text: #18212f;
  --color-muted: #586273;
  --color-border: #d7dde7;
  --color-border-strong: #b9c2d0;

  /* Primary (provisional, not CAAF brand) */
  --color-primary: #134d72;
  --color-primary-hover: #0f3f5e;
  --color-primary-ink: #ffffff;
  --color-focus: #1d6fb8;

  /* Status — meaning carried by colour + text + shape (never colour alone) */
  --status-green: #1f7a4d;
  --status-amber: #a86a00;
  --status-red: #c0271f;
  --status-neutral: #5d6877;

  --status-green-bg: #e6f4ec;
  --status-amber-bg: #fbeed0;
  --status-red-bg: #fbe7e5;
  --status-neutral-bg: #eaeef3;

  /* Reference lines on charts */
  --ref-target: #134d72;
  --ref-trigger: #a86a00;
  --series: #134d72;

  /* Typography (provisional; CAAF brand typeface per Section 16.8) */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-mono: "SFMono-Regular", ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;

  --fs-display: 1.75rem;  /* page title */
  --fs-h2: 1.15rem;
  --fs-h3: 1rem;
  --fs-metric: 2rem;      /* KPI value */
  --fs-body: 0.95rem;
  --fs-small: 0.82rem;
  --fs-tiny: 0.74rem;

  --lh-tight: 1.2;
  --lh-body: 1.5;

  --fw-regular: 400;
  --fw-medium: 600;
  --fw-bold: 700;

  /* Spacing — 8-point scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.08);
  --shadow-md: 0 4px 12px rgba(16, 24, 40, 0.08);

  /* Layout */
  --topbar-h: 60px;
  --sidenav-w: 264px;
  --content-max: 1180px;

  /* Breakpoints (documented; used in media queries) */
  --bp-tablet: 900px;
}
