/* Design tokens ported from docs/wireframes/shared/shell.css (D-43 — the
   Decisions MAX design language). The wireframe token names are canonical;
   the previous stub's --nav-bg/--page-bg are gone.

   Risk-tier tokens have exactly ONE consumer: the .risk-badge-* rules in
   components.css. They must NEVER be applied to a row, a card border, a
   message, or any other container — tier is barred as a prominence input
   (§07 R12), not merely as a sort key. Anything else that wants semantic
   success/warning/danger colour (a message banner, a stale-sync pill, a
   negative-number cell, ...) reaches for the decoupled --color-severity-*
   palette below instead, so a future change to tier colours can never
   silently restyle unrelated UI. Pinned by
   tests/test_design_system.py::test_risk_tokens_are_not_referenced_outside_the_risk_badge. */
:root {
  --color-navy-dark:    #14264A;
  --color-navy-mid:     #1F3A6B;

  /* Primary accent is CYAN per the Decisions MAX design language (links, active tabs,
   * focus rings, primary buttons). The brand tokens below alias to cyan so the whole
   * shell reads on the design language; the navy/amber logo mark keeps IRT brand identity. */
  --color-brand:        #2BAEC7;
  --color-brand-hover:  #1B8DA6;
  --color-brand-tint:   #EFF9FC;
  --color-cyan-tint:    #EFF9FC;

  /* Risk-tier tokens — color is NEVER the sole cue (always paired with icon + text).
   * These encode workload/priority, not a resident-quality judgment.
   * Consumed ONLY by .risk-badge-* in components.css — see the severity
   * palette below for every other success/warning/danger use. */
  --color-risk-high-bg:    #FEE2E2;
  --color-risk-high-fg:    #991B1B;
  --color-risk-high-line:  #EF4444;
  --color-risk-med-bg:     #FEF3C7;
  --color-risk-med-fg:     #92400E;
  --color-risk-med-line:   #F59E0B;
  --color-risk-low-bg:     #D1FAE5;
  --color-risk-low-fg:     #065F46;
  --color-risk-low-line:   #10B981;

  /* Severity palette — decoupled from risk tier on purpose (finding from the
   * Task 3 review: without this, "success green" had no home except the
   * risk-low token, so anything wanting a plain success/warning/danger
   * treatment was forced to reach for a tier token, making the constraint
   * above unenforceable). Literal values are identical to the risk-tier
   * triplets above so this port is a pure indirection — zero visual change —
   * but the two palettes must vary independently from here on. */
  --color-severity-success-bg:   #D1FAE5;
  --color-severity-success-fg:   #065F46;
  --color-severity-success-line: #10B981;
  --color-severity-warning-bg:   #FEF3C7;
  --color-severity-warning-fg:   #92400E;
  --color-severity-warning-line: #F59E0B;
  --color-severity-danger-bg:    #FEE2E2;
  --color-severity-danger-fg:    #991B1B;
  --color-severity-danger-line:  #EF4444;

  /* Blocker (stalled-renewal reason) — a DISTINCT indigo token, deliberately NOT the
   * High-Risk red, so a blocker is never conflated with a High-Risk tier judgment. */
  --color-blocker-bg:      #E0E7FF;
  --color-blocker-fg:      #3730A3;
  --color-blocker-line:    #6366F1;

  --color-cyan:         #2BAEC7;
  --color-amber:        #F5B82E;
  --color-red:          #E94B3C;

  --color-bg:           #FAF8F3;
  --color-surface:      #FFFFFF;
  --color-border:       #E2E8F0;
  --color-border-strong:#CBD5E1;
  --color-text-primary: #14264A;
  --color-text-muted:   #64748B;
  --color-text-subtle:  #94A3B8;

  --font-display: 'Archivo Black', system-ui, sans-serif;
  --font-body:    'Manrope', system-ui, sans-serif;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;

  /* The sticky nav's height. A TOKEN because two rules need the same number:
     `.app-nav` sets it, and every other sticky element offsets by it
     (`.detail-tabs`). Hardcoding it twice is how a sticky element ends up
     parked half-behind the header. `.app-nav` is `flex-wrap: nowrap`
     specifically so this stays true at every viewport width. */
  --nav-height: 56px;
}

@font-face {
  font-family: 'Archivo Black';
  src: url('../fonts/archivo-black-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-variable.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}
