/* Design tokens — swap brand colours here (PRD: primary #006B43, secondary #FFFFFF, light-grey bg). */
:root {
  --brand: #006B43;
  --brand-600: #005a38;
  --brand-700: #004a2e;
  --brand-50: #e8f4ee;
  --brand-100: #cfe8db;
  --accent: #F59E0B;      /* saffron */
  --info: #2563EB;
  --danger: #DC2626;
  --success: #16A34A;
  --warning: #D97706;
  --critical: #9F1239;

  --slate-50: #f8fafc; --slate-100: #f1f5f9; --slate-200: #e2e8f0; --slate-300: #cbd5e1; --slate-400: #94a3b8;
  --slate-500: #64748b; --slate-600: #475569; --slate-700: #334155; --slate-800: #1e293b; --slate-900: #0f172a; --slate-950: #020617;

  --bg: #f2f4f3;
  --surface: #ffffff;
  --surface-2: #f8faf9;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --border: #e3e8e6;
  --border-strong: #cfd8d4;
  --text: #0f1f18;
  --text-2: #475569;
  --text-3: #64748b;
  --focus: #2563EB;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow-1: 0 1px 2px rgba(15, 31, 24, 0.06), 0 1px 1px rgba(15, 31, 24, 0.04);
  --shadow-2: 0 4px 16px rgba(15, 31, 24, 0.08), 0 1px 3px rgba(15, 31, 24, 0.06);
  --shadow-3: 0 18px 48px rgba(15, 31, 24, 0.18), 0 4px 12px rgba(15, 31, 24, 0.08);
  --blur: 12px;

  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', 'Noto Sans Tamil', sans-serif;
  --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
  --fs: 14px;
  --fs-xs: 11.5px;
  --fs-sm: 12.5px;
  --fs-lg: 16px;
  --fs-xl: 20px;
  --fs-2xl: 26px;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur: 200ms;
  --sidebar-w: 248px;
  --sidebar-w-collapsed: 68px;
  --topbar-h: 60px;

  /* chart palette (ECharts) */
  --c1: #006B43; --c2: #2563EB; --c3: #F59E0B; --c4: #7C3AED; --c5: #DB2777; --c6: #0891B2; --c7: #65A30D; --c8: #EA580C;
}

[data-theme='dark'] {
  --bg: #0b1210;
  --surface: #121b18;
  --surface-2: #17221e;
  --surface-glass: rgba(18, 27, 24, 0.78);
  --border: #22312c;
  --border-strong: #2f413b;
  --text: #e8f0ec;
  --text-2: #a7b6b0;
  --text-3: #8a9a94;
  --brand-50: #0f2a20;
  --brand-100: #123526;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-3: 0 18px 48px rgba(0, 0, 0, 0.55);
  --focus: #60a5fa;
}

[data-presenter='true'] { --fs: 16px; --fs-xs: 13px; --fs-sm: 14px; --fs-lg: 18px; --fs-xl: 23px; --fs-2xl: 30px; }
[data-density='compact'] { --fs: 13px; }

@media (prefers-reduced-motion: reduce) {
  :root { --dur: 0ms; }
}
