/*
 * NINJA MEDIA design tokens (docs/DESIGN_SYSTEM.md), the one definition of
 * colour, type and spacing for everything Ninja ID shows. Read by:
 *   - the sign-in pages (styles.css), as CSS custom properties;
 *   - the admin UI, which generates its MUI theme from this file
 *     (admin-ui/scripts/tokens.mjs), so there is no second copy to drift.
 *
 * Add a token only as DESIGN_SYSTEM.md section 27 allows: no existing token
 * serves, it is a new semantic need, and more than one product needs it.
 */
:root {
  --surface-canvas: #F8F9FC;
  --surface-primary: #FFFFFF;
  --surface-subtle: #F5F6FA;
  --surface-blue-mist: #F1F0F8;
  --surface-disabled: #F1F2F5;

  --text-primary: #111827;
  --text-secondary: #374151;
  --text-body: #6B7280;
  --text-muted: #9CA3AF;
  --text-link: #2F2482;
  --text-inverse: #FFFFFF;

  --border-subtle: #E5E7EB;
  --border-medium: #D1D5DB;
  --focus-primary: #3B82F6;

  --action-primary: #5147B8;
  --action-primary-pressed: #44399E;
  --action-primary-soft: #EEECFA;
  --brand-blue: #2F2482;

  --danger-50: #FEF3F2;
  --danger-600: #D92D20;
  --danger-700: #B42318;
  --success-bg: #F0FDF4;
  --success-600: #16A34A;
  --success-text: #166534;
  --info-bg: #EFF6FF;
  --info-500: #3B82F6;
  --info-text: #1D4ED8;
  --warning-bg: #FFFBEB;
  --warning-500: #F59E0B;
  --warning-text: #92400E;

  --font: "Inter", "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* Only for genuinely technical text: permission keys, ids, log references. */
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius-card: 16px;
  --radius-control: 10px;

  /* Type scale (DESIGN_SYSTEM.md section 12): size / line height / weight. */
  --type-h1-size: 28px;
  --type-h1-line: 36px;
  --type-h1-weight: 700;
  --type-h2-size: 24px;
  --type-h2-line: 32px;
  --type-h2-weight: 700;
  --type-h3-size: 20px;
  --type-h3-line: 28px;
  --type-h3-weight: 600;
  --type-title-size: 18px;
  --type-title-line: 26px;
  --type-title-weight: 600;
  --type-body-lg-size: 16px;
  --type-body-lg-line: 24px;
  --type-body-md-size: 14px;
  --type-body-md-line: 20px;
  --type-label-md-size: 14px;
  --type-label-md-line: 20px;
  --type-label-md-weight: 600;
  --type-label-sm-size: 12px;
  --type-label-sm-line: 16px;
  --type-label-sm-weight: 600;
  --type-caption-size: 12px;
  --type-caption-line: 16px;
  --type-regular-weight: 400;

  /* Spacing and touch targets (section 13: 48px targets). */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --target-min: 48px;
  --row-height: 56px;

  /* App frame. */
  --app-bar-height: 64px;
  --nav-width: 264px;
  --content-max-width: 1200px;
}
