/**
 * Mzimba South Luwerezi Constituency — Design System Tokens
 * Refined Public Service Visual Identity derived from the Official Constituency Crest.
 * 
 * Brand Palette:
 * - Deep Parliamentary Navy: #0b2341 (Primary Brand & Authority)
 * - Radiant Golden Sun: #c69214 (Accents, Highlights, Ribbon Trim)
 * - Luwerezi Emerald Green: #1b5e2b (Verified Badges, Landscape, Integrity)
 * - Foundation Slates: #090e17 to #f8fafc
 */

:root {
  /* ==========================================================================
     1. COLOR SYSTEM (Logo-Derived Brand Palette + Neutral Slates)
     ========================================================================== */
  /* Base Monochromes */
  --color-black: #090e17;
  --color-white: #ffffff;

  /* Logo-Derived Brand Primary (Deep Parliamentary Navy) */
  --brand-navy-900: #061528;
  --brand-navy-800: #0b2341;
  --brand-navy-700: #10325d;
  --brand-navy-600: #17457e;
  --brand-navy-100: #e8eef6;
  --brand-navy-50:  #f2f6fa;

  /* Logo-Derived Accent (Radiant Golden Sun / Ribbon Gold) */
  --brand-gold-700: #9a700d;
  --brand-gold-600: #b8860f;
  --brand-gold-500: #c69214;
  --brand-gold-400: #dfa824;
  --brand-gold-100: #fbf3dc;
  --brand-gold-50:  #fdf9ee;

  /* Logo-Derived Civic / Verified (Luwerezi Emerald) */
  --brand-green-800: #123e1d;
  --brand-green-700: #1b5e2b;
  --brand-green-600: #247c39;
  --brand-green-100: #e6f3e9;
  --brand-green-50:  #f1f8f3;

  /* Refined Neutral Slate Scale */
  --color-gray-50:  #f8fafc;
  --color-gray-100: #f1f5f9;
  --color-gray-200: #e2e8f0;
  --color-gray-300: #cbd5e1;
  --color-gray-400: #94a3b8;
  --color-gray-500: #64748b;
  --color-gray-600: #475569;
  --color-gray-700: #334155;
  --color-gray-800: #1e293b;
  --color-gray-900: #0f172a;
  --color-gray-950: #090e17;

  /* Semantic Theme Aliases */
  --bg-page: #ffffff;
  --bg-surface: #f8fafc;
  --bg-surface-subtle: #f1f5f9;
  --bg-dark: var(--brand-navy-900);
  --bg-modal-overlay: rgba(9, 14, 23, 0.65);

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-light: #ffffff;
  --text-brand: var(--brand-navy-800);

  --border-subtle: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-strong: #94a3b8;
  --border-focus: var(--brand-navy-800);
  --border-solid: var(--color-black);

  /* Status Colors (Civic & Public Transparency Standards) */
  --status-verified: var(--brand-green-700);
  --status-verified-bg: var(--brand-green-50);
  --status-verified-border: var(--brand-green-600);

  --status-in-progress: var(--brand-navy-700);
  --status-in-progress-bg: var(--brand-navy-50);

  --status-delayed: #991b1b;
  --status-delayed-bg: #fef2f2;
  --status-delayed-border: #fca5a5;

  --status-proposed: #475569;
  --status-proposed-bg: #f8fafc;

  --status-safeguard: #7c2d12;
  --status-safeguard-bg: #fff7ed;

  /* Live Match Dot */
  --color-live-dot: #dc2626;

  /* ==========================================================================
     2. TYPOGRAPHY SYSTEM
     ========================================================================== */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* Type Scale */
  --font-size-2xs: 0.6875rem; /* 11px */
  --font-size-xs:  0.75rem;    /* 12px */
  --font-size-sm:  0.875rem;   /* 14px */
  --font-size-base: 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 */
  --font-size-4xl: 2.25rem;    /* 36px */
  --font-size-5xl: 3rem;       /* 48px */

  /* Font Weights */
  --font-weight-normal:   400;
  --font-weight-medium:   500;
  --font-weight-semibold: 600;
  --font-weight-bold:     700;

  /* Line Heights */
  --line-height-tight:   1.2;
  --line-height-snug:    1.375;
  --line-height-normal:  1.5;
  --line-height-relaxed: 1.65;

  /* ==========================================================================
     3. SPACING & LAYOUT METRICS
     ========================================================================== */
  --space-0: 0;
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.25rem;  /* 20px */
  --space-6: 1.5rem;   /* 24px */
  --space-8: 2rem;     /* 32px */
  --space-10: 2.5rem;  /* 40px */
  --space-12: 3rem;    /* 48px */
  --space-16: 4rem;    /* 64px */
  --space-20: 5rem;    /* 80px */
  --space-24: 6rem;    /* 96px */

  /* Input & Button Standard Heights */
  --input-height-base: 46px;
  --input-height-sm:   38px;
  --input-height-lg:   52px;

  /* Containers */
  --container-max: 1220px;
  --container-narrow: 860px;
  --container-padding: var(--space-4);

  /* Geometry & Radii */
  --border-width-thin:   1px;
  --border-width-medium: 2px;
  --border-width-thick:  3px;

  --radius-none: 0;
  --radius-xs:   3px;
  --radius-sm:   5px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-full: 9999px;

  /* Refined Elevation & Shadows */
  --shadow-none:   none;
  --shadow-xs:     0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm:     0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-card:   0 2px 6px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-card-hover: 0 8px 20px rgba(11, 35, 65, 0.1), 0 2px 6px rgba(11, 35, 65, 0.04);
  --shadow-modal:  0 20px 40px -8px rgba(11, 35, 65, 0.22), 0 8px 16px -4px rgba(11, 35, 65, 0.12);

  /* Motion & Transitions */
  --transition-fast:   140ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 220ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-Index Hierarchy */
  --z-base:           1;
  --z-dropdown:       50;
  --z-sticky:         100;
  --z-fixed:          200;
  --z-modal-backdrop: 400;
  --z-modal:          500;
  --z-toast:          600;
  --z-skip-link:      1000;
}