/* "RF spectrum" theme: electric orchid, dial amber, cool violet-gray
   neutrals. All the exam flavor lives in the token blocks below, including
   the --track-texture morse-code pattern and the --track-marker antenna on
   the progress bar; retheme a fork by editing the tokens, nothing
   structural.
   Light/dark follows prefers-color-scheme unless the Settings theme override
   sets data-theme="light"/"dark" on <html>. The dark token block therefore
   appears twice: once for system-dark (unless overridden to light), once for
   the explicit dark override. Keep the two copies identical. */
:root {
  --bg: #f1eff6;
  --card: #ffffff;
  --text: #1e1b2b;
  --muted: #635e78;
  --accent: #8a2b9e;
  --accent-hi: #6f2280;
  --accent-text: #ffffff;
  --nav-bg: #8a2b9e;
  --nav-text: #f7e9fb;
  --accent2: #f2a032;
  --accent2-text: #231604;
  --border: #d9d4e4;
  --ok: #178a5c;
  --ok-bg: #e3f1ea;
  --bad: #b23a2a;
  --bad-bg: #f7e9e4;
  --warn: #b45309;
  --surface-dark: #322c40;
  --shadow: 0 1px 2px rgba(26, 20, 40, 0.07), 0 4px 16px rgba(26, 20, 40, 0.05);
  /* Morse code drawn across the progress track (dit-dah, "A"). References
     --accent2, so it follows the dark palette on its own; set to `none` for
     a plain track. Defined once here since both dark blocks would keep it. */
  --track-texture: repeating-linear-gradient(90deg,
    transparent 0 8px, var(--accent2) 8px 14px, transparent 14px 22px,
    var(--accent2) 22px 40px, transparent 40px 48px);
  /* Broadcast mast transmitting the morse at the leading edge of the
     progress fill. Inline SVG rather than an emoji: emoji glyphs come from
     whatever emoji font the visitor has (or hasn't) installed, and on Linux
     the marker rendered tiny or not at all. Pale orchid, deliberately NOT
     the dial amber of the morse texture, so the marker reads against the
     dashes instead of blending into them; the color is baked into the data
     URI, so the dark blocks carry their own copy. The clearance keeps the
     18px marker and its 3px gap inside the layout at 100%. */
  --track-marker: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 18 18"><g fill="%23f2e2f7"><circle cx="9" cy="3" r="1.5"/><path d="M9 4.8 L5.9 16 h6.2 Z"/></g><g fill="none" stroke="%23f2e2f7" stroke-width="1.3" stroke-linecap="round"><path d="M10.9 1.7 A2.7 2.7 0 0 1 12.7 3.6"/><path d="M12 0.4 A4.7 4.7 0 0 1 15.1 3.7"/><path d="M7.1 1.7 A2.7 2.7 0 0 0 5.3 3.6"/><path d="M6 0.4 A4.7 4.7 0 0 0 2.9 3.7"/></g></svg>');
  --track-marker-clearance: 21px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131018;
    --card: #1b1725;
    --text: #e9e5f1;
    --muted: #a49bbd;
    --accent: #d18ae0;
    --accent-hi: #db9fe8;
    --accent-text: #2d0b31;
    --nav-bg: #55175f;
    --nav-text: #f0dcf4;
    --accent2: #f0ac45;
    --accent2-text: #201604;
    --border: #2f2840;
    --ok: #45c08c;
    --ok-bg: #142e23;
    --bad: #f0836c;
    --bad-bg: #38211b;
    --warn: #e5a44e;
    --surface-dark: #0e0b13;
    --shadow: none;
    --track-marker: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 18 18"><g fill="%23ead2f0"><circle cx="9" cy="3" r="1.5"/><path d="M9 4.8 L5.9 16 h6.2 Z"/></g><g fill="none" stroke="%23ead2f0" stroke-width="1.3" stroke-linecap="round"><path d="M10.9 1.7 A2.7 2.7 0 0 1 12.7 3.6"/><path d="M12 0.4 A4.7 4.7 0 0 1 15.1 3.7"/><path d="M7.1 1.7 A2.7 2.7 0 0 0 5.3 3.6"/><path d="M6 0.4 A4.7 4.7 0 0 0 2.9 3.7"/></g></svg>');
  }
}
:root[data-theme="dark"] {
  --bg: #131018;
  --card: #1b1725;
  --text: #e9e5f1;
  --muted: #a49bbd;
  --accent: #d18ae0;
  --accent-hi: #db9fe8;
  --accent-text: #2d0b31;
  --nav-bg: #55175f;
  --nav-text: #f0dcf4;
  --accent2: #f0ac45;
  --accent2-text: #201604;
  --border: #2f2840;
  --ok: #45c08c;
  --ok-bg: #142e23;
  --bad: #f0836c;
  --bad-bg: #38211b;
  --warn: #e5a44e;
  --surface-dark: #0e0b13;
  --shadow: none;
  --track-marker: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 18 18"><g fill="%23ead2f0"><circle cx="9" cy="3" r="1.5"/><path d="M9 4.8 L5.9 16 h6.2 Z"/></g><g fill="none" stroke="%23ead2f0" stroke-width="1.3" stroke-linecap="round"><path d="M10.9 1.7 A2.7 2.7 0 0 1 12.7 3.6"/><path d="M12 0.4 A4.7 4.7 0 0 1 15.1 3.7"/><path d="M7.1 1.7 A2.7 2.7 0 0 0 5.3 3.6"/><path d="M6 0.4 A4.7 4.7 0 0 0 2.9 3.7"/></g></svg>');
}

