/* ============================================================
   MuniPro Design System — Token Sheet
   DL2 (design hub tokens 2.0.4, 10/18/2026): action #0265D9,
   sapphire #012A63 for logo, nav, footer and dark bands, ink
   #0C2140 for titles and key numbers, slate #1E293B for body,
   muted #5B6B82, cool page ground #F7F9FC, opaque focus ring
   #3D84EA, Inter. Gold is a rule or a mark only, never text
   and never a control.
   ============================================================ */

:root {
  /* ── Brand v2 ───────────────────────────────────────────── */
  --mp-ink:          #0C2140;   /* Headings, numbers, accent words on light */
  --mp-sapphire:     #012A63;   /* Logo, nav, footer, dark bands */
  --mp-sky:          #F3F7FE;   /* Hero ground only            */
  --mp-sky-soft:     #A2C8F0;   /* Accent words on sapphire    */
  --mp-action:       #0265D9;   /* Primary control fill        */
  --mp-action-hover: #145EC1;
  --mp-action-text:  #FFFFFF;
  --mp-action-on-dark:       #FFFFFF;   /* Primary control fill on sapphire */
  --mp-action-on-dark-text:  var(--mp-sapphire);
  --mp-action-on-dark-hover: var(--mp-primary-100);
  --mp-chart-hero:   #286099;   /* The one series a chart is about */
  --mp-chart-context: #CBD5E1;  /* Context series               */
  --mp-chart-context-strong: #94A3B8;
  --mp-accent-text:  var(--mp-ink);       /* Was gold text on light */
  --mp-accent-text-on-dark: var(--mp-sky-soft); /* Was gold text on dark */

  /* ── DL2 roles ──────────────────────────────────────────── */
  --mp-text:           #1E293B;   /* Body and table cells        */
  --mp-muted:          #5B6B82;   /* Labels, feet; 4.5:1 on every ground */
  --mp-faint:          #94A3B8;   /* Placeholders, disabled marks only */
  --mp-rule:           #E2E8F0;   /* Card borders, row rules     */
  --mp-rule-strong:    #CBD5E1;   /* Table head rule; never a control */
  --mp-control-border: #7D8CA2;   /* Form control boundaries, 3:1 */
  --mp-page:           #F7F9FC;   /* Page ground                 */
  --mp-tint:           #F1F5F9;   /* Hovered row, quiet band     */
  --mp-focus-ring:     #3D84EA;   /* Opaque, 2px + 2px offset; 3:1 on white and sapphire */

  /* ── Primary (Blue) ─────────────────────────────────────── */
  --mp-primary-900: #012A63;   /* Sapphire — footer, CTA bands */
  --mp-primary-800: #012A63;   /* Sapphire — nav bar, hero bg  */
  --mp-primary-700: #0265D9;   /* Action — links, buttons      */
  --mp-primary-600: #145EC1;   /* Hover states                */
  --mp-primary-500: #0265D9;   /* Active (focus: --mp-focus-ring) */
  --mp-primary-400: #3D84EA;   /* Large accents and icons only */
  --mp-primary-300: #A2C8F0;   /* Tags, badges (chart-hero-soft) */
  --mp-primary-200: #C6D9F6;   /* Light tints, card accents   */
  --mp-primary-100: #E2ECFA;   /* Section backgrounds         */
  --mp-primary-50:  #F3F7FE;   /* Sky — subtle wash           */

  /* ── Accent (Gold) — rules and marks only, never text ───── */
  --mp-accent-600:  #AB8E53;   /* Gold edge                   */
  --mp-accent-500:  #DCC184;   /* Gold — rules, underlines    */
  --mp-accent-400:  #DCC184;   /* Gold — rules on dark bands  */
  --mp-accent-300:  #F4EAD5;   /* Champagne                   */
  --mp-accent-100:  #F4EAD5;   /* Champagne wash              */

  /* ── Neutrals ───────────────────────────────────────────── */
  --mp-neutral-900: #0C2140;   /* Ink: titles, key numbers    */
  --mp-neutral-800: #1E293B;   /* Secondary headings          */
  --mp-neutral-700: #1E293B;   /* Paragraph text              */
  --mp-neutral-600: #5B6B82;   /* Captions (muted)            */
  --mp-neutral-500: #5B6B82;   /* Muted / meta text           */
  --mp-neutral-400: #94A3B8;   /* Placeholders (faint)        */
  --mp-neutral-300: #CBD5E1;   /* Borders                     */
  --mp-neutral-200: #E2E8F0;   /* Dividers                    */
  --mp-neutral-100: #F1F5F9;   /* Card backgrounds            */
  --mp-neutral-50:  #F7F9FC;   /* Page background alt (page)  */

  /* ── Page grounds (cool; the cream palette is retired) ──── */
  --mp-warm-bg:     #F7F9FC;   /* Primary page background     */
  --mp-warm-bg-alt: #FFFFFF;   /* Alternating section bg      */
  --mp-warm-card:   rgba(255,255,255,0.55); /* Frosted card   */

  /* ── Semantic (text-safe on white) ──────────────────────── */
  --mp-success:     #15803D;
  --mp-warning:     #B45309;
  --mp-error:       #B91C1C;
  --mp-info:        var(--mp-primary-500);

  /* ── Typography ─────────────────────────────────────────── */
  --mp-font-display: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  --mp-font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mp-font-mono:    "JetBrains Mono", ui-monospace, Consolas, monospace;

  /* Scale (desktop) */
  --mp-text-xs:    0.75rem;    /* 12px */
  --mp-text-sm:    0.875rem;   /* 14px */
  --mp-text-base:  1rem;       /* 16px */
  --mp-text-lg:    1.125rem;   /* 18px */
  --mp-text-xl:    1.25rem;    /* 20px */
  --mp-text-2xl:   1.5rem;     /* 24px */
  --mp-text-3xl:   1.875rem;   /* 30px */
  --mp-text-4xl:   2.25rem;    /* 36px */
  --mp-text-5xl:   2.75rem;    /* 44px — h2 */
  --mp-text-6xl:   3.75rem;    /* 60px */
  --mp-text-7xl:   4.5rem;     /* 72px — h1 hero */

  /* ── Spacing ────────────────────────────────────────────── */
  --mp-space-1:  0.25rem;
  --mp-space-2:  0.5rem;
  --mp-space-3:  0.75rem;
  --mp-space-4:  1rem;
  --mp-space-5:  1.25rem;
  --mp-space-6:  1.5rem;
  --mp-space-8:  2rem;
  --mp-space-10: 2.5rem;
  --mp-space-12: 3rem;
  --mp-space-16: 4rem;
  --mp-space-20: 5rem;
  --mp-space-24: 6rem;

  /* ── Borders & Radii ────────────────────────────────────── */
  --mp-radius-sm:  4px;
  --mp-radius-md:  6px;
  --mp-radius-lg:  8px;
  --mp-radius-xl:  8px;        /* Nothing rounder than 8px    */
  --mp-radius-full: 9999px;

  /* ── Shadows ────────────────────────────────────────────── */
  /* Two elevations: md for raised cards, lg/xl for overlays. */
  --mp-shadow-sm:  none;
  --mp-shadow-md:  0 6px 18px rgba(12,33,64,0.12);
  --mp-shadow-lg:  0 12px 32px rgba(12,33,64,0.14);
  --mp-shadow-xl:  0 12px 32px rgba(12,33,64,0.14);

  /* ── Layout ─────────────────────────────────────────────── */
  --mp-max-width:    1200px;
  --mp-nav-height:   72px;
  --mp-section-pad:  var(--mp-space-24) var(--mp-space-6);
}

/* DL2 focus: one opaque ring on every ground (light and sapphire). */
:focus-visible { outline: 2px solid var(--mp-focus-ring); outline-offset: 2px; }
