/* DJAX AdOps brand theme - v0.2.7 design system (djax #36 spec, approved direction: dark-first).
   Token vocabulary is IDENTICAL across repos (theme/djax.css here, theme/revive.css in adops-copilot);
   only values differ per brand. Dark is the default (:root); [data-theme="light"] overrides; the theme
   controller resolves "system" to an explicit data-theme before first paint, so CSS keys only on it. */

:root {
  /* V4 dark palette (base) */
  --bg: #0f1115;
  --sidebar: #12141a;
  --panel: #171a21;
  --panel-alt: #1e222b;
  --line: #2a2f3a;
  --fg: #e8eaed;
  --muted: #9aa2b1;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  /* DJAX brand: blue #2f6fed is a FILL only (3.55:1 as text on dark cards - fails AA);
     the lighter tint carries links/text (>= 4.5:1). */
  --brand: #2f6fed;
  --brand-ink: #ffffff;
  --accent: #2f6fed;
  --accent-dim: #2559c4;
  --link: #6c9bff;
  /* Status text on dark surfaces */
  --ok: #34c77b;
  --danger: #e8606b;
  /* Badge fills: white text failed AA on the V4 amber/orange (2.7-2.9:1), so warn + amber
     severities take a dark ink; critical is darkened so white ink passes >= 4.5:1. */
  --warn: #e8833a;
  --warn-ink: #1f1408;
  --warn-text: #e5a94f;
  --sev-critical: #c03540;
  --sev-critical-ink: #ffffff;
  --sev-warning: #c98a1a;
  --sev-warning-ink: #1f1408;
  --sev-info: #4d9de0;
  --sev-info-ink: #10161f;
  /* Charts (categorical, legible on --panel) */
  --chart-1: #6c9bff;
  --chart-2: #34c77b;
  --chart-3: #e8833a;
  --chart-4: #c98a1a;
  --chart-5: #b07fe8;
  --chart-6: #4dc3d0;
  --chart-7: #e86a92;
  --chart-8: #9aa2b1;
  /* Legacy aliases (migration): old component rules keep working. */
  --card: var(--panel);
}

[data-theme="light"] {
  --bg: #f6f7f9;
  --sidebar: #eceff3;
  --panel: #ffffff;
  --panel-alt: #f0f2f5;
  --line: #d9dde3;
  --radius: 12px;
  --fg: #1b1f24;
  --muted: #5b6470;
  --shadow: 0 8px 24px rgba(15, 17, 21, 0.12);
  --brand: #2f6fed;
  --brand-ink: #ffffff;
  --accent: #2f6fed;
  --accent-dim: #2559c4;
  --link: #2559c4;
  --ok: #1a7a48;
  --danger: #b3261e;
  --warn: #e8833a;
  --warn-ink: #1f1408;
  --warn-text: #7d580b;
  --sev-critical: #b3261e;
  --sev-critical-ink: #ffffff;
  --sev-warning: #c98a1a;
  --sev-warning-ink: #1f1408;
  --sev-info: #2f6fed;
  --sev-info-ink: #ffffff;
  --chart-1: #2f6fed;
  --chart-2: #1e8a52;
  --chart-3: #c26a24;
  --chart-4: #9a6d10;
  --chart-5: #7d4fc2;
  --chart-6: #1e8a94;
  --chart-7: #c2436b;
  --chart-8: #5b6470;
}
