/* ── Design Tokens ── */
:root {
  /* Brand */
  --swiss-red: #d8232a;
  --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);

  /* Surfaces */
  --color-white: #fff;
  --overlay-bg: rgba(0, 0, 0, 0.4);
  --img-border: rgba(0, 0, 0, 0.1);

  /* Match score colors */
  --color-good: #22c55e;
  --color-good-bg: #f0fdf4;
  --color-good-text: #15803d;
  --color-partial: #eab308;
  --color-partial-bg: #fefce8;
  --color-partial-text: #a16207;
  --color-poor: #ef4444;
  --color-poor-bg: #fef2f2;
  --color-poor-text: #dc2626;
  --color-none: #9ca3af;
  --color-none-bg: #f9fafb;

  /* 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;
  --text-2xl: 1.75rem;
  --text-3xl: 2.25rem;

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

  /* Typography — line heights */
  --leading-none: 1;
  --leading-tight: 1.3;
  --leading-normal: 1.5;
  --leading-relaxed: 1.6;

  /* Spacing */
  --space-0: 0;
  --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;

  /* Control heights */
  --control-sm: 32px;
  --control-md: 36px;
  --control-lg: 40px;

  /* Layout */
  --header-height: 60px;
  --footer-height: 36px;
  --summary-width: 320px;
  --search-panel-width: 280px;

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

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl: 0 8px 32px rgba(0, 0, 0, 0.2);
  --shadow-ring: 0 0 0 2px var(--img-border);
  --shadow-focus: 0 0 0 2px var(--federal-blue-ring);

  /* Transitions */
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;

  /* Z-index scale */
  --z-base: 1;
  --z-sticky: 10;
  --z-dropdown: 100;
  --z-overlay: 1000;
}
