/* #BEmesh colours: shared by the configurator, the map, stats and region map pages. */
:root {
  --gold: #d4a017;
  --gold-bg: #fbf4dc;
  --ink: #1f2328;
  --mut: #6b7280;
  --line: #e3e5e8;
  --ok: #1a7f37;
  --warn: #b26a00;
  --bad: #c62828;
  --node: #2563eb;
  --info-bg: #e8f0fe;
  --panel: #ffffff;
  --bar: #f6f7f9;
  --page: #ffffff;
  --on-gold: #1f1600;
  --on-bad: #ffffff;
  --shadow: rgb(0 0 0 / 0.12);
  --backdrop: rgb(15 20 25 / 0.4);
  /* The command script and the console stay dark in both themes. */
  --code-bg: #0d1117;
  --code-ink: #e6edf3;
  --code-mut: #8b949e;
  --code-ok: #3fb950;
  --code-bad: #f85149;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --gold-bg: #3a2f10;
    --ink: #e6edf3;
    --mut: #8b949e;
    --line: #30363d;
    --ok: #3fb950;
    --warn: #d29922;
    --bad: #f85149;
    --on-bad: #0d1117;
    --node: #58a6ff;
    --info-bg: #132a46;
    --panel: #161b22;
    --bar: #0d1117;
    --page: #0d1117;
    --shadow: rgb(0 0 0 / 0.5);
    --backdrop: rgb(0 0 0 / 0.6);
  }
}

:root[data-theme="light"] {
  color-scheme: light;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --gold-bg: #3a2f10;
  --ink: #e6edf3;
  --mut: #8b949e;
  --line: #30363d;
  --ok: #3fb950;
  --warn: #d29922;
  --bad: #f85149;
  --on-bad: #0d1117;
  --node: #58a6ff;
  --info-bg: #132a46;
  --panel: #161b22;
  --bar: #0d1117;
  --page: #0d1117;
  --shadow: rgb(0 0 0 / 0.5);
  --backdrop: rgb(0 0 0 / 0.6);
}
