/* Late Entry theme: "Pit Lane". The only place a color is defined.
   Screens in design/screens/ and the UI use these names; no literal colors elsewhere.
   Every text token clears 4.5:1 on the surface its comment names. */

:root {
  color-scheme: dark;

  /* Surfaces, darkest to lightest. Depth comes from lightness, not shadows. */
  --le-bg-0: #0B1319;         /* Window background, plot canvas */
  --le-bg-1: #111A22;         /* Top bar, side panels, table headers */
  --le-bg-2: #19252E;         /* Cards, tiles, table rows */
  --le-bg-3: #212F3B;         /* Inputs, chips, hover and pressed states */
  --le-border: #2A3C4B;       /* Dividers and hairlines */
  --le-border-strong: #3C5467; /* Outlines on inputs, chips and buttons */

  /* Text */
  --le-text-1: #E4ECF1;       /* Primary text: 11:1 or better on every surface */
  --le-text-2: #AEBFCB;       /* Secondary text, labels, inactive tabs: 7:1 on bg-3 */
  --le-text-3: #7D92A1;       /* Muted text and placeholders: 4.8:1 on bg-2 */

  /* Brand blue and its working tints */
  --le-brand: #025684;        /* Late Entry blue, used as given: primary buttons, team tiles */
  --le-on-brand: #E4ECF1;     /* Text on --le-brand (6.6:1) */
  --le-on-brand-muted: #BADFF3; /* Secondary text on --le-brand */
  --le-accent: #1C89C4;       /* Sliders, the cursor, selection handles */
  --le-accent-text: #52AEE0;  /* Links, the active tab and its underline, lap 1 traces: 6.9:1 on bg-0 */
  --le-accent-soft: #123649;  /* Selected row and nav item fill */

  /* Status. Each has a solid for dots, bars and outlines; a lighter tone for text; a dark tint for pills and rows. */
  --le-good: #3BBA7A;        --le-good-text: #61D199;  --le-good-bg: #142E21;
  --le-warn: #F08519;        --le-warn-text: #F6A951;  --le-warn-bg: #372410;
  --le-bad: #DF3F3A;         --le-bad-text: #F47671;   --le-bad-bg: #371615;

  /* Lap colors for Lap Compare, in the order laps are added. Lap 2 shares the warning orange on purpose:
     it is the long-standing convention and Lap Compare shows no status pills. Delta numbers take the
     color of the lap that is ahead. */
  --le-lap-1: #52AEE0;
  --le-lap-2: #F08519;
  --le-lap-3: #3BBA7A;
  --le-lap-4: #C78BEA;
  --le-lap-5: #F47671;
  --le-lap-ref: #7D92A1;      /* A reference or target lap drawn dashed */

  /* Outside the window: the desk behind screen drawings, the phone bezel */
  --le-desk: #06090D;
  --le-veil: rgba(6, 9, 13, 0.72);   /* laid over the page behind a panel that must be answered first */
  --le-bezel: #26343F;

  /* The plate under the logo and under a QR code. The logo keeps its original colors on every
     surface and is never recolored; the plate is the white of its own background. */
  --le-plate: #FFFFFF;

  /* Paper, for the PDF reports: printed dark text on white, never the screen's dark field.
     Ink clears 15:1 on paper and ink-2 clears 6:1. */
  --le-print-paper: #FFFFFF;
  --le-print-ink: #0B1319;
  --le-print-ink-2: #4A5D6B;
  --le-print-rule: #C9D3DA;
  --le-print-shade: #EEF2F5;  /* tiles and the marked row of a table */

  /* Focus ring */
  --le-focus: 0 0 0 2px var(--le-accent-soft), 0 0 0 3px var(--le-accent-text);
}
