/* ==========================================================================
   Celero Design Tokens
   Centralised colour, typography, spacing, radius, shadow, and motion tokens.
   Load before theme and product stylesheets.
   ========================================================================== */

:root {
  /* Brand */
  --color-primary: #0B2A4A;
  --color-primary-hover: #083656;
  --color-primary-active: #062A44;
  --color-primary-soft: #E8EFF6;
  --color-secondary: #475569;
  --color-secondary-hover: #334155;
  --color-accent: #1B6FB5;
  --color-accent-hover: #155A94;
  --color-accent-soft: #E6F1FA;

  /* Surfaces */
  --color-background: #F1F5F9;
  --color-surface: #FFFFFF;
  --color-surface-raised: #FFFFFF;
  --color-surface-muted: #F8FAFC;
  --color-surface-sunken: #EEF2F7;

  /* Text */
  --color-text: #0F172A;
  --color-text-secondary: #334155;
  --color-text-muted: #64748B;
  --color-text-inverse: #FFFFFF;
  --color-text-disabled: #94A3B8;
  --color-placeholder: #94A3B8;

  /* Borders & dividers */
  --color-border: #E2E8F0;
  --color-border-strong: #CBD5E1;
  --color-divider: #E2E8F0;

  /* Semantic */
  --color-success: #15803D;
  --color-success-hover: #166534;
  --color-success-soft: #DCFCE7;
  --color-success-border: #86EFAC;
  --color-warning: #B45309;
  --color-warning-hover: #92400E;
  --color-warning-soft: #FEF3C7;
  --color-warning-border: #FCD34D;
  --color-error: #B91C1C;
  --color-error-hover: #991B1B;
  --color-error-soft: #FEE2E2;
  --color-error-border: #FCA5A5;
  --color-info: #1B6FB5;
  --color-info-soft: #E6F1FA;

  /* Chrome (header / sidebar) */
  --color-chrome: #0B2A4A;
  --color-chrome-elevated: #0E3558;
  --color-chrome-border: #163A5C;
  --color-nav-active: #1B6FB5;
  --color-nav-hover: rgba(27, 111, 181, 0.16);
  --color-nav-text: #E2E8F0;
  --color-nav-text-muted: #94A3B8;

  /* Focus */
  --color-focus: #1B6FB5;
  --focus-ring: 0 0 0 3px rgba(27, 111, 181, 0.35);
  --focus-ring-inset: inset 0 0 0 2px rgba(27, 111, 181, 0.55);

  /* Typography */
  --font-sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
  --font-display: "DM Sans", "Source Sans 3", "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-md: 1rem;       /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.25rem;    /* 20px */
  --font-size-2xl: 1.5rem;    /* 24px */
  --font-size-3xl: 1.875rem;  /* 30px */

  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.65;

  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-xl: 14px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08), 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 28px rgba(15, 23, 42, 0.12), 0 4px 8px rgba(15, 23, 42, 0.06);
  --shadow-focus: var(--focus-ring);

  /* Motion */
  --duration-fast: 120ms;
  --duration-normal: 180ms;
  --duration-slow: 280ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-emphasized: cubic-bezier(0.2, 0, 0, 1);

  /* Layout */
  --header-height: 56px;
  --sidebar-width: 260px;
  --content-padding: var(--space-6);
  --z-modal: 1050;
  --z-loading: 2000;

  /* Form controls */
  --control-height: 38px;
  --control-padding-x: 0.75rem;
  --control-border-width: 1px;

  /* Legacy aliases (map older Celero hex to tokens) */
  --celero-navy: var(--color-primary);
  --celero-accent: var(--color-accent);
  --celero-charcoal: #1E293B;
}
