/* -- Design Tokens -- */
:root {
  /* Brand */
  --swiss-red: #d8232a;
  --swiss-red-dark: #b91c22;
  --swiss-red-tint: rgba(216, 35, 42, 0.06);
  --federal-blue: #1a365d;
  --federal-blue-light: #2d4a7a;
  --federal-blue-hover: rgba(26, 54, 93, 0.04);
  --federal-blue-selected: rgba(26, 54, 93, 0.08);
  --federal-blue-ring: rgba(26, 54, 93, 0.2);
  --federal-blue-tint: rgba(26, 54, 93, 0.03);
  --interactive-blue: #005ea8;

  /* Surfaces */
  --color-white: #fff;
  --overlay-bg: rgba(0, 0, 0, 0.4);
  --overlay-bg-dark: rgba(0, 0, 0, 0.5);
  --accent-panel: #6C757D;
  --hover-overlay: rgba(0, 0, 0, 0.08);

  /* Status */
  --color-good: #22c55e;
  --color-good-bg: #f0fdf4;
  --color-good-text: #15803d;
  --color-poor: #ef4444;
  --color-poor-bg: #fef2f2;
  --color-poor-text: #dc2626;
  --color-warn: #eab308;
  --color-warn-bg: #fefce8;
  --color-warn-text: #a16207;

  /* Neutrals */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Typography — families */
  --font-family: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, sans-serif;
  --font-mono: "SF Mono", "Cascadia Code", "Consolas", monospace;

  /* Typography — sizes */
  --text-2xs: 0.75rem;
  --text-xs: 0.875rem;
  --text-sm: 1rem;
  --text-base: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;

  /* Typography — weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Typography — line heights */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;

  /* Letter spacing */
  --tracking-wide: 0.05em;

  /* Spacing */
  --space-px: 1px;
  --space-0\.5: 0.125rem;
  --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;

  /* Controls & touch targets */
  --control-sm: 32px;
  --control-md: 36px;
  --control-lg: 40px;
  --touch-target-min: 44px;

  /* Icon sizes */
  --icon-xs: 14px;
  --icon-sm: 16px;
  --icon-md: 18px;
  --icon-lg: 20px;
  --icon-xl: 24px;

  /* Borders */
  --border-width: 1px;
  --border-width-thick: 2px;
  --border-color: var(--gray-200);
  --border-color-strong: var(--gray-300);

  /* Layout */
  --header-height: 60px;
  --footer-height: 36px;
  --summary-width: 340px;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 4px 16px rgba(0, 0, 0, 0.2);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.2s ease;
  --transition-slow: 0.3s ease;
  /* Keep old names for compat */
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;

  /* Z-index scale */
  --z-base: 1;
  --z-sticky: 10;
  --z-dropdown: 100;
  --z-accordion: 500;
  --z-context-menu: 600;
  --z-overlay: 1000;
  --z-modal: 2000;

  /* Checkbox accent */
  accent-color: var(--swiss-red);
}
