/* ============================================================================
   Cosmos — Light. The reference theme; values reproduce the pre-migration
   light rendering. See .docs/specs/2026-08-10-cosmos-theme-token-mapping.md
   for how each value was chosen where legacy names collided.
   ============================================================================ */
:root,
[data-cosmos-theme="light"] {
  /* Surfaces */
  --cosmos-canvas:         #f6f8fa;
  --cosmos-surface:        #ffffff;
  --cosmos-surface-raised: #ffffff;
  --cosmos-rail:           #0c1b2e;
  --cosmos-input:          #ffffff;

  /* Lines */
  --cosmos-border:         #e3e8ef;
  --cosmos-border-strong:  #cdd4de;

  /* Text */
  --cosmos-fg:             #0f1722;
  --cosmos-fg-muted:       #566476;
  --cosmos-fg-subtle:      #7e8a9b;
  --cosmos-fg-on-accent:   #ffffff;
  --cosmos-rail-fg:        #a9bad0;

  /* Brand */
  --cosmos-brand:          #0c7d9d;
  --cosmos-brand-muted:    #40b6ee;
  --cosmos-brand-soft:     #eff9fe;

  /* Accent */
  /* Darkened from #e27d2a (F-2/F-3). The brand orange is used as TEXT on light grounds in a
     dozen places -- links, chips, icons -- where it measured 2.92:1 on white and 2.41:1 on
     --cosmos-accent-soft, both below AA. It is also the fill under white text on the PPR and
     dashboard buttons, which fails the same way. One value serves both roles here because a
     darker orange fixes them together: 5.48:1 on white, 4.52:1 on accent-soft. The dark themes
     keep #f0913f -- there the accent sits on dark grounds and was never the problem. */
  --cosmos-accent:         #9e571d;
  --cosmos-accent-soft:    #fbe6d1;

  /* Status */
  --cosmos-status-good:           #1f9d55;
  --cosmos-status-good-soft:      #d6f0e0;
  --cosmos-status-warn:           #c98a16;
  --cosmos-status-warn-soft:      #fbe9c4;
  --cosmos-status-bad:            #c43c3c;
  --cosmos-status-bad-soft:       #fbdede;
  --cosmos-status-info:           #2563eb;
  --cosmos-status-info-soft:      #dbe7fc;

  /* Interaction */
  --cosmos-row-hover:      #eef3f6;
  --cosmos-row-selected:   #cfe9f5;
  --cosmos-focus-ring:     rgba(12, 125, 157, 0.35);

  /* Elevation */
  --cosmos-shadow-1:       0 1px 2px rgba(15, 23, 34, 0.06);
  --cosmos-shadow-2:       0 6px 18px rgba(15, 23, 34, 0.12);
  --cosmos-shadow-tint:    rgba(0, 48, 87, 0.20);

  /* Module hues — grounds and icon tints are derived with color-mix() */
  --cosmos-mod-aircraft:   #1d3556;
  --cosmos-mod-airport:    #0f766e;
  --cosmos-mod-safety:     #c43c3c;
  --cosmos-mod-weather:    #2563eb;
  --cosmos-mod-admin:      #6d28d9;
  /* Darkened from #c98a16 (F-1): the header chip and the landing hero draw a white icon on
     this ground, which measured 2.95:1. Now 4.52:1. Only fixable since the rail stopped
     reading this token -- it uses --cosmos-mod-system-icon, which stays bright. */
  --cosmos-mod-system:     #9e6d11;

  /* Module ICON tones -- the rail draws these as foreground text, and the rail ground is a
     dark navy in EVERY theme, so these stay bright in all three. They are a separate role
     from --cosmos-mod-*, which the header chip uses as a BACKGROUND under dark text. The two
     roles want opposite lightness in the light theme, which is why one token cannot serve
     both -- collapsing them made the light-theme rail icons nearly invisible. */
  --cosmos-mod-aircraft-icon: #5b8def;
  --cosmos-mod-airport-icon: #34d399;
  --cosmos-mod-safety-icon: #f87171;
  --cosmos-mod-weather-icon: #60a5fa;
  --cosmos-mod-admin-icon: #a78bfa;
  --cosmos-mod-system-icon: #fbbf24;
}
