/* The DTT Practice theme: every colour the pages use, by name, for the light theme and the dark one (the
   default). The other stylesheets only use these names (var(--name)), so a colour is changed here, once.
   Orange is the accent; flags and weak topics are amber so they never read as the accent, and the red of a
   wrong answer is kept for wrong answers and for ending a test.
   Drawn pictures (signs, road scenes) keep their own colours: they are pictures of real things. */

:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--text);
  --radius: 18px;

  --bg: #faf6f2;
  --surface: #ffffff;
  --surface-2: #f6f0ea;        /* the explanation box: a step away from the card it sits on */
  --text: #1c1410;
  --muted: #6b5d52;
  --border: #ece0d6;
  --accent: #c2410c;           /* filled buttons, the current question, progress bars */
  --accent-text: #ffffff;
  --brand: #9a3412;            /* small section labels and links */
  --tint: #fff1e6;             /* soft orange panels: letter badges, answered questions */
  --tint-text: #9a3412;
  --shadow: 0 1px 2px rgb(15 23 42 / 0.04), 0 8px 24px rgb(15 23 42 / 0.06);
  --backdrop: rgb(15 23 42 / 0.45);

  --correct: #16a34a;
  --wrong: #dc2626;
  --ok-text: #15803d;
  --flag: #ca8a04;             /* flagged questions and weak topics */
  --flag-text: #a16207;        /* "Flagged" as text: darker than --flag so it stays readable */
  --danger-fill: #dc2626;
  --pass-bg: #e8f7ee;
  --pass-text: #166534;
  --fail-bg: #fef2f2;
  --fail-text: #b91c1c;
  --fact-bg: #e6f6f3;
  --fact-text: #0f766e;
  --series-1: #2a78d6;         /* the topic bars on a result */
  --grid: #f0e6dd;             /* the charts of Your progress (charts.js) */
  --baseline: #c9b8a9;
  --tooltip-shadow: 0 4px 12px rgb(0 0 0 / 0.08);

  --hero-from: #fff1e6;
  --hero-to: #fdf3e7;
  --preview-bg: #fff1e6;
  --card-picture-bg: #fff1e6;  /* behind the pictures on All tests (dark, black), as CST Practice's */
  --notice-bg: #fff7ed;
  --notice-text: #9a3412;
  --snackbar-bg: #facc15;
  --snackbar-text: #1f2937;
  --error-bg: #b91c1c;
  --error-text: #ffffff;
}

/* Dark: the default, unless the header switch chose light (theme.js). */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #110d0a;
  --surface: #1b1511;
  --surface-2: #241c17;
  --text: #f3ece6;
  --muted: #b5a89d;
  --border: #382a20;
  --accent: #c2410c;
  --brand: #fdba74;
  --tint: #3a2010;
  --tint-text: #fed7aa;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.35);
  --backdrop: rgb(0 0 0 / 0.6);
  --correct: #22c55e;
  --wrong: #f87171;
  --ok-text: #4ade80;
  --flag: #facc15;
  --flag-text: #facc15;
  --pass-bg: #12301f;
  --pass-text: #4ade80;
  --fail-bg: #3a1d24;
  --fail-text: #fca5a5;
  --fact-bg: #12332f;
  --fact-text: #5eead4;
  --series-1: #3987e5;
  --grid: #2c221b;
  --baseline: #5a4636;
  --tooltip-shadow: 0 4px 16px rgb(0 0 0 / 0.5);
  --hero-from: #2b170b;
  --hero-to: #1d140f;
  --preview-bg: #2a1a0f;
  --card-picture-bg: #0f1114;
  --notice-bg: #3b2414;
  --notice-text: #fdba74;
  --error-bg: #dc2626;
}
