/* css/tokens.css - DSP design tokens (custom properties only; no selectors besides :root).
   Loaded BEFORE style.css / admin.css on every page. See docs/DESIGN-SYSTEM.md.
   Presentation only: nothing here affects authentication, roles or data access. */
:root {
  /* Brand */
  --c-primary: #0b5d75;
  --c-primary-hover: #084a5e;
  --c-primary-soft: #e5f3f7;
  --c-secondary: #042940;
  --c-accent: #c69255;

  /* Surfaces */
  --c-bg: #f6f8fa;
  --c-surface: #ffffff;
  --c-surface-elevated: #ffffff;
  --c-border: #e3e8ee;
  --c-border-strong: #c9d2dc;

  /* Text (each pair checked >= 4.5:1 on --c-surface by tests/unit/design-tokens.test.mjs) */
  --c-text: #0f1b2a;
  --c-text-secondary: #4b5a6b;
  --c-text-muted: #5f6e7e;
  --c-text-on-primary: #ffffff;

  /* Status */
  --c-success: #157347;
  --c-success-bg: #e6f4ec;
  --c-warning: #8a5a00;
  --c-warning-bg: #fff4dc;
  --c-danger: #b42318;
  --c-danger-bg: #fdecea;
  --c-info: #0b5d75;
  --c-info-bg: #e5f3f7;

  /* Focus */
  --c-focus: #1a8fb0;
  --focus-ring: 0 0 0 2px var(--c-surface), 0 0 0 4px var(--c-focus);

  /* Role shell accents (presentation only) */
  --shell-admin-bg: #0f2a38;
  --shell-developer-bg: #111c26;

  /* Spacing (4px base) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-7: 32px;
  --s-8: 48px;
  --s-9: 64px;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-pill: 999px;

  /* Elevation */
  --e-1: 0 1px 2px rgba(15, 27, 42, 0.06);
  --e-2: 0 4px 12px rgba(15, 27, 42, 0.08);
  --e-3: 0 12px 32px rgba(15, 27, 42, 0.14);

  /* Motion */
  --t-fast: 120ms;
  --t-base: 200ms;
  --t-slow: 280ms;
  --ease: cubic-bezier(0.2, 0, 0, 1);

  /* Layout */
  --gutter: 16px;
  --tap: 44px;
}

@media (min-width: 768px) { :root { --gutter: 24px; } }
@media (min-width: 1100px) { :root { --gutter: 32px; } }

@media (prefers-reduced-motion: reduce) {
  :root { --t-fast: 0ms; --t-base: 0ms; --t-slow: 0ms; }
}
