/* @itc/design-system — design tokens.
 * Custom property declarations only: no selectors, no rules, nothing framework-specific.
 * This is the file a token reader or a non-Angular consumer should take.
 *
 * Importing this ALONE is valid and gives you every token, but it is not the whole stylesheet.
 * Components that render markup outside their own encapsulation are styled by rules in globals.css
 * and appear unstyled without it: the overlay surfaces of modal, dropdown-menu, select, chips-select,
 * command-palette, tooltip and date-picker (rendered into the CDK overlay container), the globe and
 * flat-map pins, the skeleton shimmer and the timeline glow. The glass and elevation utility classes
 * live there too. Import tokens.css instead to get both.
 *
 * Don't add scale steps without grepping first (historical gaps). */

/* @itc/design-system — theme tokens. @import '@itc/design-system/theme/tokens.css';
 * Ported 1:1 from codebases/lcr/angular/ — mirror any change back until lcr/angular/ is archived (post-Phase-J).
 * Conformance: docs/liquid-glass.md (R1–R11). Don't add scale steps without grepping first (historical gaps). */

:root {
  --font-size: 16px;
  /* Max width of the centered content column. The header bar matches this so
     the brand + nav align with the page content edges. */
  --content-max-width: 1440px;

  /* Material 3 × Liquid Glass — dark mode is primary; all tokens applied at :root. */
  --primary-0: #000000;
  --primary-10: #230612;
  --primary-20: #4B0723;
  --primary-30: #760534;
  --primary-40: #9B0342;
  --primary-50: #B8014C;  /* ITC brand pink — call-to-action anchor */
  --primary-60: #E6196E;
  --primary-70: #E65692;
  --primary-80: #EB94B8;
  --primary-90: #F2CADB;
  --primary-95: #F7E3EC;
  --primary-99: #FCF8FA;
  --primary-100: #FFFFFF;

  --secondary-0: #000000;
  --secondary-10: #001529;
  --secondary-20: #002A52;
  --secondary-30: #002B54;  /* ITC Dark Blue — brand anchor / foreground / icons */
  --secondary-40: #044A8B;
  --secondary-50: #0B75D3;  /* ITC Persian Blue — links, tile-header hover */
  --secondary-60: #338FE6;
  --secondary-70: #65A8E6;
  --secondary-80: #9BC3E9;
  --secondary-90: #CBDEF1;
  --secondary-95: #E4EDF6;
  --secondary-99: #F8FAFB;
  --secondary-100: #FFFFFF;

  --neutral-0: #000000;
  --neutral-10: #05090D;   /* ITC blue-tinted near-black */
  --neutral-20: #0A1016;
  --neutral-25: #0F151B;
  --neutral-30: #13191E;
  --neutral-35: #1B2126;
  --neutral-40: #20262C;
  --neutral-50: #2B3238;
  --neutral-60: #3F454B;
  --neutral-70: #5A6066;
  --neutral-80: #767C82;
  --neutral-90: #93999E;
  --neutral-95: #DDE1E5;
  --neutral-99: #F4F6F8;
  --neutral-100: #FFFFFF;

  /* Lifecycle tokens — 3 per state: --lifecycle-{name}, --lifecycle-{name}-container, --lifecycle-{name}-on-container.
     Hues: draft=slate, pending=amber, review=blue, country_review=cyan, feedback=violet, approved=emerald,
     published=brand-blue, flagged=red.
     Chrome severity (--status-*) is a parallel family for Banner/Toast/Badge — decoupled from lifecycle by name
     so info banners don't visually collide with "review" pills. Hex values mirror lifecycle but are independently tunable. */
  --lifecycle-draft:              #94A3B8;
  --lifecycle-draft-container:    #1E293B;
  --lifecycle-draft-on-container: #CBD5E1;

  --lifecycle-pending:              #FBBF24;
  --lifecycle-pending-container:    #451A03;
  --lifecycle-pending-on-container: #FDE68A;

  --lifecycle-review:              #338FE6;  /* ITC Persian Blue (dark-mode tuned) */
  --lifecycle-review-container:    #044A8B;
  --lifecycle-review-on-container: #9BC3E9;

  --lifecycle-country_review:              #22D3EE;  /* cyan — distinct from ITC-blue "review" */
  --lifecycle-country_review-container:    #164E63;
  --lifecycle-country_review-on-container: #A5F3FC;

  --lifecycle-feedback:              #A78BFA;
  --lifecycle-feedback-container:    #4C1D95;
  --lifecycle-feedback-on-container: #DDD6FE;

  --lifecycle-approved:              #34D399;
  --lifecycle-approved-container:    #064E3B;
  --lifecycle-approved-on-container: #A7F3D0;

  --lifecycle-published:              var(--secondary-70);  /* ITC Dark Blue family — official/final, decoupled from action primary */
  --lifecycle-published-container:    var(--secondary-30);
  --lifecycle-published-on-container: var(--secondary-90);

  --lifecycle-flagged:              #F87171;
  --lifecycle-flagged-container:    #7F1D1D;
  --lifecycle-flagged-on-container: #FECACA;

  /* On-accent text (FR-009) — fixed black/white per WCAG contrast vs the vivid fill, not --foreground.
     Dark-mode: all accents are light so black clears AA (6.2:1–12.6:1, verified in decision doc). */
  --lifecycle-draft-on-accent:     #000000;
  --lifecycle-pending-on-accent:   #000000;
  --lifecycle-review-on-accent:    #000000;
  --lifecycle-country_review-on-accent: #000000;
  --lifecycle-feedback-on-accent:  #000000;
  --lifecycle-approved-on-accent:  #000000;
  --lifecycle-published-on-accent: #000000;
  --lifecycle-flagged-on-accent:   #000000;

  /* Content-type accent — teal sits outside every spoken-for lane (pink=CTA, blue=primary/auth, 7 lifecycle hues).
     Both content types share this hue; the glyph differentiates. */
  --content-accent: #2DD4BF;

  --status-info:              #338FE6;
  --status-info-container:    #044A8B;
  --status-info-on-container: #9BC3E9;

  --status-success:              #34D399;
  --status-success-container:    #064E3B;
  --status-success-on-container: #A7F3D0;

  --status-warning:              #FBBF24;
  --status-warning-container:    #451A03;
  --status-warning-on-container: #FDE68A;

  --status-error:              #F87171;
  --status-error-container:    #7F1D1D;
  --status-error-on-container: #FECACA;

  --surface-dim: var(--neutral-10);
  --surface: var(--neutral-25);
  --surface-bright: var(--neutral-35);
  --surface-container-lowest: var(--neutral-0);
  --surface-container-low: var(--neutral-20);
  --surface-container: var(--neutral-35);
  --surface-container-high: var(--neutral-40);
  --surface-container-highest: var(--neutral-50);

  --background: var(--neutral-10);
  --foreground: var(--secondary-95);   /* ITC blue-tinted near-white for body+headers */
  --card: var(--surface-container);
  --card-foreground: var(--secondary-95);
  --popover: var(--surface-container-high);
  --popover-foreground: var(--secondary-95);
  /* Dark mode: Persian Blue anchors --primary (pink reserved for CTA/destructive). Light reverses — see .light. */
  --primary: var(--secondary-60);
  /* Dark text on this fill, not white: white reaches only 3.38:1 here and fails AA for button
     labels. neutral-10 gives 5.15:1 and leaves the fill — and its 5.91:1 separation from the
     page — untouched. Light mode keeps white; its own fill is dark. */
  --primary-foreground: var(--neutral-10);
  /* ITC Persian-blue action family for auth + contribute — distinct from --cta (pink) and --primary (dark blue).
     --itc-action-text lifts brighter than fill so outline/text buttons keep AA on dark surfaces. */
  --itc-action: var(--secondary-50); /* #0B75D3 — filled bg */
  --itc-action-foreground: var(--neutral-100); /* white text on fill */
  --itc-action-text: var(--secondary-70); /* #65A8E6 — outline/text, AA on dark */
  --secondary: var(--secondary-40);
  --secondary-foreground: var(--neutral-99);
  --muted: var(--neutral-30);
  --muted-foreground: var(--neutral-90);
  /* Shifted up one step to remain distinct from --primary at secondary-60. */
  --accent: var(--secondary-70);
  --accent-foreground: var(--neutral-10);
  --destructive: var(--status-error);
  /* CTA token — ITC pink call-to-action anchor, decoupled from --primary (blue "voice" for text/links).
     --cta: base pink. --cta-foreground: on solid --cta. --cta-text: pink AS text on other surfaces
     (theme-aware: lighter on dark for 4.5:1 AA, standard on light). Per Liquid Glass R4 + M3 convention. */
  --cta: var(--primary-60);
  /* Black, not white: white is 4.44:1 here and misses AA. Dropping the fill to the mandated
     #B8014C would pass for text but leave only 2.99:1 against the page, failing non-text
     contrast, so the fill stays and the label darkens. 4.73:1. */
  --cta-foreground: var(--neutral-0);
  --cta-text: var(--primary-80);
  /* Disclaimer treatments (approved reference, 2026-08-31): critical outlines in brand pink,
     guidance in the ITC dark-blue family. Same hue in both themes, lifted tonally where the
     surface is dark — the --cta-text pattern. */
  --banner-critical: var(--cta);
  --banner-critical-text: var(--cta-text);
  --banner-guidance: var(--secondary-60);
  --banner-guidance-text: var(--secondary-70);
  /* Neutral sits outside the brand pair, on the muted ramp: the cases neither disclaimer voice
     fits, where the banner carries information rather than a warning. */
  --banner-neutral: var(--neutral-70);
  --border: var(--neutral-40);
  /* Dividers inside a card need more weight than an outline around one: --border reaches only
     1.06:1 against the card here and reads as nothing. Separate token so strengthening the
     divider does not thicken every border in the app. */
  --separator: var(--neutral-60);
  --input: var(--neutral-30);
  --ring: var(--secondary-60);

  --elevation-0: none;
  /* Dark-mode elevation: 3 layers — cast shadow, 1px rim-light, and full-surface inset white overlay (stronger at higher levels).
     The overlay is the primary depth cue; cast shadows are nearly invisible on dark surfaces (M3 surface-tone pattern). */
  --elevation-1:
    0 1px 2px rgba(0, 0, 0, 0.4),
    0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 0 1000px rgba(255, 255, 255, 0.03);
  --elevation-2:
    0 2px 4px rgba(0, 0, 0, 0.4),
    0 4px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 0 1000px rgba(255, 255, 255, 0.06);
  --elevation-3:
    0 4px 8px rgba(0, 0, 0, 0.45),
    0 8px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    inset 0 0 0 1000px rgba(255, 255, 255, 0.09);
  --elevation-4:
    0 8px 16px rgba(0, 0, 0, 0.5),
    0 16px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 0 0 1000px rgba(255, 255, 255, 0.12);
  --elevation-5:
    0 16px 24px rgba(0, 0, 0, 0.55),
    0 24px 48px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 0 0 1000px rgba(255, 255, 255, 0.16);

  --text-display-lg: 3.5rem;    /* 56px */
  --text-display-md: 2.75rem;   /* 44px */
  --text-display-sm: 2.25rem;   /* 36px */

  --text-headline-lg: 2rem;     /* 32px */
  --text-headline-md: 1.75rem;  /* 28px */
  --text-headline-sm: 1.5rem;   /* 24px */

  --text-title-lg: 1.375rem;    /* 22px */
  --text-title-md: 1.125rem;    /* 18px */
  --text-title-sm: 0.875rem;    /* 14px */

  --text-body-lg: 1rem;         /* 16px */
  --text-body-md: 0.875rem;     /* 14px */
  --text-body-sm: 0.75rem;      /* 12px */

  --text-label-lg: 0.875rem;    /* 14px */
  --text-label-md: 0.75rem;     /* 12px */
  --text-label-sm: 0.6875rem;   /* 11px */

  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Display — ITC slab serif for hero/page-title/section heads. NOT for card titles or below ~22px. */
  --font-display: "Zilla Slab", "Roboto Slab", "Source Serif Pro",
                  "Iowan Old Style", "Cambria", Georgia, serif;
  /* Body — everything that isn't display or mono. */
  --font-body: "Public Sans", "Inter", -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* Mono — codes, IDs, version strings, hex values. */
  --font-mono: "Recursive", "JetBrains Mono", "SF Mono", ui-monospace,
               "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  /* Motion grammar: Entry=200ms ease-out, Exit=150ms ease-in, Modal=300ms ease-out, Stagger=35ms/item (max 6). Reduced-motion disables all. */

  /* Curve-only tokens — for @keyframes consumers that need duration baked separately. */
  --motion-curve-standard:   cubic-bezier(0.4, 0, 0.2, 1);
  --motion-curve-emphasize:  cubic-bezier(0.2, 0, 0, 1);
  --motion-curve-decelerate: cubic-bezier(0, 0, 0.2, 1);
  --motion-curve-accelerate: cubic-bezier(0.4, 0, 1, 1);

  --motion-duration-fast:   150ms;
  --motion-duration-base:   200ms;
  --motion-duration-slow:   300ms;
  --motion-stagger-step:     35ms;

  /* Shorthand tokens — duration + curve in one string, for `transition: …`. */
  --transition-standard:   300ms var(--motion-curve-standard);
  --transition-emphasized: 500ms var(--motion-curve-emphasize);
  --transition-decelerate: 400ms var(--motion-curve-decelerate);
  --transition-accelerate: 200ms var(--motion-curve-accelerate);

  /* Surface motion — what a menu or an expanding region uses, rather than each one picking its own
     duration. Enter decelerates in; exit accelerates out and is shorter, so dismissal gets out of
     the way. Zeroed under reduced motion below, which makes every consumer inert at once. */
  --motion-menu-enter: var(--motion-duration-base) var(--motion-curve-decelerate);
  --motion-menu-exit:  var(--motion-duration-fast) var(--motion-curve-accelerate);
  --motion-expand:     var(--motion-duration-base) var(--motion-curve-standard);

  /* Dwell — how long a transient confirmation stays before it goes. Not motion: reduced motion
     leaves it alone, because a message that vanishes instantly is worse, not calmer.
     Mirrored for scripted consumers as MOTION_DWELL_MS in the library's motion export. */
  --motion-dwell: 1200ms;

  --radius-xs: 0.25rem;   /* 4px */
  --radius-sm: 0.375rem;  /* 6px */
  --radius-md: 0.5rem;    /* 8px */
  --radius-lg: 0.75rem;   /* 12px */
  --radius-xl: 1rem;      /* 16px */
  --radius-2xl: 1.5rem;   /* 24px */
  --radius-full: 9999px;

  /* Legacy support */
  --radius: var(--radius-lg);

  --spacing-0: 0;
  --spacing-1: 0.25rem;   /* 4px */
  --spacing-2: 0.5rem;    /* 8px */
  --spacing-3: 0.75rem;   /* 12px */
  --spacing-4: 1rem;      /* 16px */
  --spacing-5: 1.25rem;   /* 20px */
  --spacing-6: 1.5rem;    /* 24px */
  --spacing-8: 2rem;      /* 32px */
  --spacing-10: 2.5rem;   /* 40px */
  --spacing-12: 3rem;     /* 48px */
  --spacing-16: 4rem;     /* 64px */
  --spacing-20: 5rem;     /* 80px */
  --spacing-24: 6rem;     /* 96px */

  --chart-1: var(--primary-70);
  --chart-2: var(--lifecycle-review);
  --chart-3: var(--lifecycle-pending);
  --chart-4: var(--primary-80);
  --chart-5: var(--secondary-40);

  /* Sidebar tokens (legacy support). */
  --sidebar: var(--neutral-20);
  --sidebar-foreground: var(--secondary-95);
  --sidebar-primary: var(--primary-60);
  /* Same pairing as --cta, so the same rule: white on this fill is 4.44:1 and misses AA.
     No component renders a sidebar today; this stays aligned so adopting one cannot inherit
     a failing pair. */
  --sidebar-primary-foreground: var(--neutral-0);
  --sidebar-accent: var(--neutral-30);
  --sidebar-accent-foreground: var(--neutral-90);
  --sidebar-border: var(--neutral-40);
  --sidebar-ring: var(--primary-60);

  /* Liquid Glass (Block 4) — top→bottom meniscus gradient + specular highlight + hairline edge + saturate boost.
     Always a white wash that ADDS light (never a dark stain). Shadows reuse elevation tokens. */

  /* Variant gradient stops (top, bottom) */
  --glass-top-subtle:    rgba(255, 255, 255, 0.06);
  --glass-bottom-subtle: rgba(255, 255, 255, 0.02);
  --glass-top:           rgba(255, 255, 255, 0.10);
  --glass-bottom:        rgba(255, 255, 255, 0.04);
  --glass-top-strong:    rgba(255, 255, 255, 0.16);
  --glass-bottom-strong: rgba(255, 255, 255, 0.06);

  /* Modal — opaque enough to anchor content on its own */
  --glass-modal-bg: linear-gradient(180deg, rgba(19, 25, 30, 0.82), rgba(15, 21, 27, 0.72));  /* ITC blue-tinted dark surface */

  --glass-border:        rgba(255, 255, 255, 0.10);
  --glass-border-strong: rgba(255, 255, 255, 0.16);
  --glass-highlight-top: rgba(255, 255, 255, 0.14);

  /* Sheen for solid surfaces (CTA/fields) — subtler than --glass-highlight-top (glass-on-glass).
     Dark: mirrors highlight-top. Light: 20% white — polish on colored CTAs, invisible on white. */
  --surface-sheen-top:  rgba(255, 255, 255, 0.14);

  /* Field glass — dark: frosted gradient + blur on inputs. Light: none (white-on-white reads as fog). */
  --field-glass-image:  linear-gradient(180deg, var(--glass-top-subtle), var(--glass-bottom-subtle));
  --field-glass-filter: blur(var(--glass-blur-subtle)) saturate(var(--glass-saturate));

  /* Card glass — R2 caps Frost at 25% opacity (>30% = milky plastic). Dark: 10%/4% fine.
     Light: explicit Frost-25; global --glass-top (70%) on white surfaces produces milky banding. */
  --card-glass-top:    var(--glass-top);
  --card-glass-bottom: var(--glass-bottom);

  /* Saturate boost — what makes glass feel "alive" not "dimmed" */
  --glass-saturate:        160%;
  --glass-saturate-strong: 180%;

  --glass-blur-subtle: 12px;
  --glass-blur:        20px;
  --glass-blur-strong: 28px;
  --glass-blur-modal:  40px;

  /* Aurora — varied-scale blobs with one cool + one warm accent outside the primary family, soft edges. Dark-mode tuning. */
  --aurora-base: var(--neutral-10);
  --aurora-primary-1: rgba(184, 1, 76, 0.18);      /* ITC pink, large, top-left */
  --aurora-primary-2: rgba(11, 117, 211, 0.18);    /* Persian blue, medium, mid-right */
  --aurora-primary-3: rgba(0, 43, 84, 0.30);       /* Dark blue, large, bottom (anchor weight) */
  --aurora-cool:      rgba(48, 129, 200, 0.12);    /* Cyan, small, top-right corner */
  --aurora-warm:      rgba(206, 224, 15, 0.06);    /* ITC green-yellow, small, bottom-left */

  --shimmer-base: rgba(255, 255, 255, 0.04);
  --shimmer-peak: rgba(255, 255, 255, 0.14);

  /* Glow (Block 7) — composed shadow strings; light/dark tune intensity independently. Dark: primary-60, reads as halo not noise. */
  --glow-rest: 0 0 20px rgba(230, 25, 110, 0.30), 0 0 40px rgba(230, 25, 110, 0.10);  /* ITC pink (primary-60) */
  --glow-peak: 0 0 30px rgba(230, 25, 110, 0.50), 0 0 60px rgba(230, 25, 110, 0.20);

  /* Emboss (Block 8) — soft raised/pressed depth for the "official record" content language
     (distinct from Liquid Glass, which stays the chrome/overlay language). Highlight + shadow are
     semi-transparent so the effect adapts to any surface; only these two colors change per theme.
     Utilities `.emboss-raised` / `.emboss-pressed` + a forced-colors fallback live in @layer components. */
  --emboss-highlight: rgba(255, 255, 255, 0.06);
  --emboss-shadow: rgba(0, 0, 0, 0.45);
  --emboss-raised:
    -3px -3px 6px var(--emboss-highlight),
    3px 3px 7px var(--emboss-shadow);
  --emboss-pressed:
    inset 2px 2px 5px var(--emboss-shadow),
    inset -2px -2px 5px var(--emboss-highlight);
}

/* Light theme overrides — add .light to <html> or any ancestor. */

.light {
  /* Surface hierarchy (Block 2, M3 light) — lowest=white, each step +2-4% L*, ITC-blue tint. Page=container-low so cards lift. */
  --surface-container-lowest: #FFFFFF;  /* L*≈100 — elevated cards lifted off page */
  --surface-container-low:    #F7F9FA;  /* L*≈98  — page background (ITC blue-tinted) */
  --surface-container:        #ECF0F3;  /* L*≈95  — default card */
  --surface-container-high:   #E2E7EB;  /* L*≈92  — raised / popover */
  --surface-container-highest:#D7DDE2;  /* L*≈88  — modal / dialog */

  --surface:        #FFFFFF;            /* default content surface (reading) */
  --surface-bright: #FFFFFF;            /* brightest non-elevated surface */
  --surface-dim:    #ECF0F3;            /* recessed / subdued zones */

  /* Semantic tokens bind surface tokens, not raw hex: page=container-low, card=lowest(white), popover=lowest, muted→container. */
  --background:           var(--surface-container-low);
  --foreground:           var(--secondary-30);  /* ITC Dark Blue — headers + body + icons per ITC spec */
  --card:                 var(--surface-container-lowest);
  --card-foreground:      var(--secondary-30);
  --popover:              var(--surface-container-lowest);
  --popover-foreground:   var(--secondary-30);
  /* Light: Dark Blue anchors --primary (buttons/links). Pink stays defined but unreferenced here (status/CTA only). */
  --primary:              var(--secondary-30);  /* ITC Dark Blue — brand anchor */
  --primary-foreground:   var(--primary-100);   /* white — works on Dark Blue */
  --itc-action:            var(--secondary-50);  /* ITC Persian Blue #0B75D3 — filled bg */
  --itc-action-foreground: #ffffff;              /* white text on fill */
  --itc-action-text:       var(--secondary-50);  /* #0B75D3 — outline/text, AA on light */
  --secondary:            var(--secondary-90);
  --secondary-foreground: var(--secondary-10);
  --muted:                var(--surface-container);
  --muted-foreground:     var(--neutral-50);
  --accent:               var(--secondary-95);  /* pale ITC blue */
  --accent-foreground:    var(--secondary-10);
  --destructive:          #B91C1C;
  /* CTA (light) — pink-50 (#B8014C). --cta-text stays at primary-50 (clears 4.5:1 on light glass). */
  --cta:                  var(--primary-50);
  --cta-foreground:       #FFFFFF;
  --cta-text:             var(--primary-50);
  --banner-critical:      var(--cta);
  --banner-critical-text: var(--cta-text);
  --banner-guidance:      var(--secondary-30);  /* ITC Dark Blue */
  --banner-guidance-text: var(--secondary-30);
  --banner-neutral:       var(--neutral-80);
  --border:               rgba(0, 43, 84, 0.10);
  /* Light already reads at this weight, so the divider keeps the border's value here and
     only the dark theme changes. */
  --separator:            rgba(0, 43, 84, 0.10);
  --input:                var(--surface-container-lowest);
  --ring:                 var(--secondary-30);  /* ring follows new primary */

  /* Lifecycle (light) — containers: low-chroma tints; on-container: same hue darkened to AA. */
  --lifecycle-draft:              #64748B;
  --lifecycle-draft-container:    #EEF1F5;
  --lifecycle-draft-on-container: #475569;

  --lifecycle-pending:              #B45309;  /* amber-700 — darkened so white-on-accent passes AA (2026-06-30) */
  --lifecycle-pending-container:    #FEF6E0;
  --lifecycle-pending-on-container: #92400E;

  --lifecycle-review:              #0B75D3;  /* ITC Persian Blue */
  --lifecycle-review-container:    #E4EDF6;
  --lifecycle-review-on-container: #044A8B;

  --lifecycle-country_review:              #0E7490;  /* cyan-700 — darkened so white-on-accent passes AA, same treatment as pending/approved */
  --lifecycle-country_review-container:    #CFFAFE;
  --lifecycle-country_review-on-container: #155E75;

  --lifecycle-feedback:              #7C3AED;
  --lifecycle-feedback-container:    #EFE7FB;
  --lifecycle-feedback-on-container: #5B21B6;

  --lifecycle-approved:              #047857;  /* emerald-700 — darkened so white-on-accent passes AA (2026-06-30) */
  --lifecycle-approved-container:    #E0F2EE;
  --lifecycle-approved-on-container: #065F46;

  --lifecycle-published:              var(--secondary-30);  /* ITC Dark Blue — authoritative final state */
  --lifecycle-published-container:    var(--secondary-90);
  --lifecycle-published-on-container: var(--secondary-30);

  --lifecycle-flagged:              #DC2626;
  --lifecycle-flagged-container:    #FCE7E7;
  --lifecycle-flagged-on-container: #991B1B;

  /* On-accent (FR-009, light) — white on all hues; pending+approved accents darkened (amber-700/emerald-700) so white clears AA (2026-06-30, replacing the prior black-on-bright pair). Ratios in decision doc. */
  --lifecycle-draft-on-accent:     #FFFFFF;  /* 4.76:1 */
  --lifecycle-pending-on-accent:   #FFFFFF;  /* 5.02:1 on amber-700 */
  --lifecycle-review-on-accent:    #FFFFFF;  /* 4.67:1 */
  --lifecycle-country_review-on-accent: #FFFFFF;  /* on cyan-700 */
  --lifecycle-feedback-on-accent:  #FFFFFF;  /* 5.70:1 */
  --lifecycle-approved-on-accent:  #FFFFFF;  /* 5.49:1 on emerald-700 */
  --lifecycle-published-on-accent: #FFFFFF;  /* 14.25:1 */
  --lifecycle-flagged-on-accent:   #FFFFFF;  /* 4.83:1 */

  /* Content-type accent (light) — teal-600; categorical, outside every status/action lane. Glyph differentiates. */
  --content-accent: #0D9488;

  /* Chrome severity (light) — paired family for Banner/Toast/Badge/etc. */
  --status-info:              #0B75D3;
  --status-info-container:    #E4EDF6;
  --status-info-on-container: #044A8B;

  --status-success:              #10B981;
  --status-success-container:    #E0F2EE;
  --status-success-on-container: #065F46;

  --status-warning:              #D97706;
  --status-warning-container:    #FEF6E0;
  --status-warning-on-container: #92400E;

  --status-error:              #DC2626;
  --status-error-container:    #FCE7E7;
  --status-error-on-container: #991B1B;

  --sidebar: #FFFFFF;
  --sidebar-foreground: var(--secondary-30);
  --sidebar-primary: var(--primary-50);
  --sidebar-primary-foreground: #FFFFFF;
  --sidebar-accent: #ECF0F3;
  --sidebar-accent-foreground: var(--secondary-30);
  --sidebar-border: rgba(0, 43, 84, 0.10);
  --sidebar-ring: var(--primary-50);

  /* Elevation (Block 3, light) — shadow-based depth (not surface tint). Key + ambient layers per level.
     Shadow uses ITC Dark Blue ink (not black) so it reads brand-aligned, not "bruising".
     Map: 1=card, 2=hover, 3=popover/tooltip, 4=modal, 5=toast/critical. */
  --elevation-ink: 0, 43, 84;          /* ITC Dark Blue — base for shadow rgba */
  --elevation-0: none;
  --elevation-1:
    0 1px 1px rgba(var(--elevation-ink), 0.05),
    0 2px 4px rgba(var(--elevation-ink), 0.04);
  --elevation-2:
    0 1px 2px rgba(var(--elevation-ink), 0.06),
    0 4px 8px rgba(var(--elevation-ink), 0.06);
  --elevation-3:
    0 2px 4px rgba(var(--elevation-ink), 0.07),
    0 8px 16px rgba(var(--elevation-ink), 0.08);
  --elevation-4:
    0 4px 8px rgba(var(--elevation-ink), 0.08),
    0 16px 32px rgba(var(--elevation-ink), 0.10);
  --elevation-5:
    0 8px 16px rgba(var(--elevation-ink), 0.10),
    0 24px 48px rgba(var(--elevation-ink), 0.14);

  /* Liquid glass (light) — white wash, strong meniscus. Borders are deep-teal hairlines (not gray). */
  --glass-top-subtle:    rgba(255, 255, 255, 0.55);
  --glass-bottom-subtle: rgba(255, 255, 255, 0.40);
  --glass-top:           rgba(255, 255, 255, 0.70);
  --glass-bottom:        rgba(255, 255, 255, 0.50);
  --glass-top-strong:    rgba(255, 255, 255, 0.82);
  --glass-bottom-strong: rgba(255, 255, 255, 0.62);

  /* Modal — almost opaque white so dialog content is unconditionally readable */
  --glass-modal-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 249, 250, 0.85));  /* ITC blue-tinted light surface */

  --glass-border:        rgba(0, 43, 84, 0.08);
  --glass-border-strong: rgba(0, 43, 84, 0.12);
  --glass-highlight-top: rgba(255, 255, 255, 0.95);

  /* Light: sheen-top 20% = polish on dark-blue CTA, invisible on white. Field glass dropped — blur would fog bright inputs. */
  --surface-sheen-top:  rgba(255, 255, 255, 0.20);
  --field-glass-image:  none;
  --field-glass-filter: none;

  /* Card glass (light) — explicit Frost-25; global 70%/50% reads as milky-plastic on light surfaces (R2 violation). */
  --card-glass-top:    rgba(255, 255, 255, 0.25);
  --card-glass-bottom: rgba(255, 255, 255, 0.15);

  --glass-saturate:        140%;
  --glass-saturate-strong: 160%;

  /* Aurora (light) — paler stops. Cool + warm accents outside primary family prevent the "spa flyer" effect. */
  --aurora-base: #F7F9FA;
  --aurora-primary-1: rgba(242, 202, 219, 0.45);   /* pale ITC pink (primary-90) */
  --aurora-primary-2: rgba(155, 195, 233, 0.50);   /* light Persian blue (secondary-80) */
  --aurora-primary-3: rgba(203, 222, 241, 0.45);   /* pale ITC blue (secondary-90) */
  --aurora-cool:      rgba(115, 180, 237, 0.20);   /* ITC medium cyan, accent */
  --aurora-warm:      rgba(232, 240, 130, 0.18);   /* pale ITC green-yellow */

  /* Shimmer stops — subtle dark sweep on light surfaces */
  --shimmer-base: rgba(0, 43, 84, 0.04);
  --shimmer-peak: rgba(0, 43, 84, 0.10);

  /* Glow (light) — ~50% lower opacity + smaller spread; dark-mode values read as radioactive on white. */
  --glow-rest: 0 0 14px rgba(184, 1, 76, 0.14), 0 0 28px rgba(184, 1, 76, 0.06);  /* ITC pink (primary-50) */
  --glow-peak: 0 0 20px rgba(184, 1, 76, 0.22), 0 0 40px rgba(184, 1, 76, 0.10);

  /* Emboss (light) — bright highlight + ITC Dark Blue ink shadow (brand-aligned, matches --elevation-ink; not a black "bruise"). */
  --emboss-highlight: rgba(255, 255, 255, 0.75);
  --emboss-shadow: rgba(0, 43, 84, 0.13);
}

/* Conditional overrides. The same conditions govern global rules in globals.css; the token
   declarations live here so this file is the complete token source on its own. */

/* prefers-reduced-motion — the surface-motion tokens collapse to zero duration, so every consumer
   of them goes inert at once instead of each one needing its own override. Per-component blocks
   elsewhere in this file stay: they cover the animations that predate these tokens.
   --motion-dwell is deliberately untouched — it is a reading duration, not motion. */
@media (prefers-reduced-motion: reduce) {
  :root,
  .light {
    --motion-menu-enter: 0ms var(--motion-curve-standard);
    --motion-menu-exit:  0ms var(--motion-curve-standard);
    --motion-expand:     0ms var(--motion-curve-standard);
  }
}

/* prefers-reduced-transparency — glass surfaces drop to opaque. */
@media (prefers-reduced-transparency: reduce) {
  :root,
  .light {
    --field-glass-image: transparent;
    --field-glass-filter: none;
  }
}

/* @supports not (backdrop-filter) — older Edge/Safari; same glass-to-opaque fallback. */
@supports not (backdrop-filter: blur(1px)) {
  :root,
  .light {
    --field-glass-image: transparent;
    --field-glass-filter: none;
  }
}
