/* Solaar design tokens: the nomination sheet. Ink on paper, teal for energy, a red rule for the gate.
   Light is the designed appearance (daytime desk use); dark keeps the same roles. Mirrored in theme.ts. Documented in DESIGN.md. */
:root {
  --font: Barlow, "Helvetica Neue", Arial, sans-serif;
  /* Geometry, motion and a fixed 1.15 type scale. */
  --radius-card: 4px;
  --radius-control: 4px;
  --radius-pill: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.2s;
  --fs-hero: 40px;
  --fs-metric: 28px;
  --fs-title: 19px;
  --fs-body: 14px;
  --fs-label: 13px;
  --fs-micro: 12px;
  /* Backing plate for official exchange logos, which are dark on transparent. Same in both themes. */
  --logo-plate: #ffffff;
  color-scheme: light;
  --ground: #eff5f4;
  --surface: #fdffff;
  --surface-solid: #fdffff;
  --raised: #e1e8e8;
  --grid-line: transparent;
  --glass-border: #080c0c2e;
  --glass-highlight: transparent;
  --glass-shadow: none;
  --ink: #080c0c;
  --muted: #3d4444;
  --faint: #747c7c;
  --line: #ced6d6;
  --line-strong: #9da7a6;
  --hover: #080c0c0a;
  --rail: #080c0c;
  --on-rail: #eff5f4;
  --rail-muted: #747c7c;
  /* Teal is energy only; --gate is the deadline; slate is cloud. */
  --solar-a: #009d9d;
  --solar-b: #009d9d;
  --accent: #009d9d;
  --accent-hover: #003f48;
  --accent-text: #007474;
  --data-accent: #009d9d;
  --gate: #b02f2b;
  --cyan: #747c7c;
  --rain: #266cac;
  --green: #407b29;
  --amber: #8e6300;
  --red: #b02f2b;
  --night: #080c0c08;
  --band: #009d9d2e;
  --chart-grid: #e1e8e8;
  --on-accent: #080c0c;
  --primary-fill: #07505b;
  --on-primary: #fdffff;
  --overlay-shadow: 0 6px 20px #080c0c1f;
  --notice-ground: #feedd3;
  --notice-line: #8e630066;
  --review-ink: #8e6300;
  --scroll-thumb: #9da7a6;
  --blue: #266cac;
  /* Markets: one hue per auction (indigo, orange, magenta, sky), distinct from the energy teal (OKLab difference >= 0.12), red, slate and rain. >= 3:1 on --ground and --surface. */
  --market-dam: #3b2f9e;
  --market-crida1: #c4610a;
  --market-crida2: #9c1a62;
  --market-crida3: #3a8fe0;
  /* IDA (intraday auctions): their own olive, steel and brown, apart from every CRIDA hue and from --series-*. */
  --market-ida1: #5f7f00;
  --market-ida2: #1f6f8b;
  --market-ida3: #8c5a2b;
  /* Categorical series for compare overlays; never the energy teal (energy) or --gate (deadline). Each holds 3:1 on --surface. */
  --series-1: #365386;
  --series-2: #913900;
  --series-3: #097fc4;
  --series-4: #916a00;
  --series-5: #7a5ad7;
  --series-6: #719942;
  --series-7: #c36695;
  --series-8: #224251;
  --yellow: #8e6300;
  color: var(--ink);
  font-family: var(--font);
  font-synthesis: none;
}
:root[data-mantine-color-scheme="dark"] {
  color-scheme: dark;
  --ground: #080c0c;
  --surface: #171c1c;
  --surface-solid: #171c1c;
  --raised: #262d2d;
  --glass-border: #f7fbfb2e;
  --ink: #f7fbfb;
  --muted: #ced6d6;
  --faint: #9da7a6;
  --line: #3d4444;
  --line-strong: #545d5d;
  --hover: #f7fbfb0a;
  --rail: #080c0c;
  --on-rail: #f7fbfb;
  --rail-muted: #9da7a6;
  --solar-a: #10c6c6;
  --solar-b: #10c6c6;
  --accent: #10c6c6;
  --accent-hover: #73dddc;
  --accent-text: #73dddc;
  --data-accent: #10c6c6;
  --gate: #ef6a50;
  --cyan: #9da7a6;
  --rain: #a2cfff;
  --green: #aade99;
  --amber: #f8c572;
  --red: #ef6a50;
  --night: #00000033;
  --band: #10c6c62e;
  --chart-grid: #262d2d;
  --on-accent: #080c0c;
  --primary-fill: #10c6c6;
  --on-primary: #080c0c;
  --overlay-shadow: 0 6px 20px #00000066;
  --notice-ground: #352200;
  --notice-line: #f8c57266;
  --review-ink: #f8c572;
  --scroll-thumb: #545d5d;
  --blue: #a2cfff;
  --market-dam: #8070ee;
  --market-crida1: #ff9d42;
  --market-crida2: #e0509a;
  --market-crida3: #0099de;
  --market-ida1: #b5d63c;
  --market-ida2: #8290a8;
  --market-ida3: #b88a5e;
  --series-1: #7293ca;
  --series-2: #d37549;
  --series-3: #90ccff;
  --series-4: #c39a46;
  --series-5: #a892ff;
  --series-6: #a1cc74;
  --series-7: #fa97c7;
  --series-8: #7698a9;
  --yellow: #f8c572;
}

/* A market's own hue: put data-market on an element (or its row) and read var(--market) inside it. */
[data-market="dam"] {
  --market: var(--market-dam);
}
[data-market="crida1"] {
  --market: var(--market-crida1);
}
[data-market="crida2"] {
  --market: var(--market-crida2);
}
[data-market="crida3"] {
  --market: var(--market-crida3);
}
[data-market="ida1"] {
  --market: var(--market-ida1);
}
[data-market="ida2"] {
  --market: var(--market-ida2);
}
[data-market="ida3"] {
  --market: var(--market-ida3);
}
