/* BreachClock design tokens, shared by the console and the resident app.
   Colour meanings follow ISO 22324: red act now, yellow get ready, green way out and safe.
   Blue is water and nothing else. Zone B (no road left) has no colour, only an outline.
   The theme is light. "?theme=dark" switches to the dark one. */

@font-face {
  font-family: "Overpass";
  src: url("../vendor/overpass/overpass-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Overpass Mono";
  src: url("../vendor/overpass/overpass-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --font: "Overpass", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Overpass Mono", Consolas, "SF Mono", monospace;

  --ground: #ffffff;
  --ink: #111111;
  --ink-2: #5c5f62;
  --rule: #d4d6d8;
  --hover: #f1f2f1;

  --act: #c8102e;        /* band and fills, white text */
  --act-ink: #c8102e;    /* text and lines on the ground */
  --soon: #f2a900;       /* fill, ink text on it */
  --soon-ink: #b86e00;   /* lines and text on the ground */
  --way: #00704a;        /* sign panel, white text */
  --way-ink: #00704a;    /* route line and text on the ground */
  --on-colour: #ffffff;
  --on-soon: #111111;

  --map-land: #e9eae8;
  --water-fast: #cfe0ee; /* fastest scenario only */
  --water-all: #9fc0dd;  /* every scenario */
  --water-ink: #2f5d8a;
  --river: #4f7cac;
  --road: #8f9193;
  --road-later: #8a6a45;  /* a road the flood will cut, not soon: caution, quieter than --soon-ink */
  --road-never: #cbcdce;  /* a road that never floods */
  --route-casing: #ffffff;
  --node-fill: #ffffff;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ground: #121212;
  --ink: #f0f0ee;
  --ink-2: #a3a3a0;
  --rule: #2e2e2e;
  --hover: #1c1c1c;
  --act-ink: #ff6a5c;
  --soon: #f2b33d;
  --soon-ink: #f2b33d;
  --way-ink: #3dbe7a;
  --map-land: #1a1a1a;
  --water-fast: #1e3346;
  --water-all: #2b4a66;
  --water-ink: #a9c6e2;
  --river: #5b8dbd;
  --road: #6b6b69;
  --road-later: #a8875c;
  --road-never: #383837;
  --route-casing: #121212;
  --node-fill: #f0f0ee;
}

/* Map labels and markers used by both clients (HTML markers, the map has no glyphs). */
.maplbl {
  font: 500 13px/1.2 var(--font);
  color: var(--ink);
  white-space: nowrap;
  pointer-events: none;
  text-shadow: 0 0 2px var(--map-land), 0 0 2px var(--map-land), 0 0 3px var(--map-land), 0 0 3px var(--map-land);
}
.maplbl.strong { font-weight: 800; }
.maplbl.water { color: var(--water-ink); text-shadow: none; }
.mk { display: block; box-sizing: border-box; }
.mk.sq { width: 16px; height: 16px; background: var(--ink); border: 2.5px solid var(--route-casing); box-shadow: 0 0 0 1px var(--ink); }
.mk.dest { width: 14px; height: 14px; background: var(--way-ink); border: 2px solid var(--route-casing); }
