/* Colors, type and tooltip shared by the story and the atlas. */
:root {
  --bg: #f3f5f7; --surface: #ffffff; --raise: #eaeef2; --ink: #0f1720; --ink-2: #46515d; --muted: #75808c;
  --line: #d9dfe5; --grid: #e7ebef; --halo: #ffffff; --node: #ffffff;
  --research: #2a78d6; --post: #eb6834; --recall: #6250d6; --found: #1baf7a; --linked: #eda100;
  --seq: #1c5cab; --on-seq: #ffffff; --accent: #1c5cab; --edge: #7d8a97;
  --cmp-a: #2a78d6; --cmp-b: #e34948; --cmp-mid: #9a9893;
  --good: #0ca30c; --serious: #ec835a; --critical: #d03b3b;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r: 6px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1114; --surface: #141a1f; --raise: #1c2329; --ink: #e8edf1; --ink-2: #b2bcc6; --muted: #858f99;
    --line: #2a323a; --grid: #1f262c; --halo: #141a1f; --node: #141a1f;
    --research: #3987e5; --post: #d95926; --recall: #9085e9; --found: #199e70; --linked: #c98500;
    --seq: #5598e7; --on-seq: #0b1015; --accent: #6da7ec; --edge: #6b7784;
    --cmp-a: #3987e5; --cmp-b: #e66767; --cmp-mid: #64635f;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1114; --surface: #141a1f; --raise: #1c2329; --ink: #e8edf1; --ink-2: #b2bcc6; --muted: #858f99;
  --line: #2a323a; --grid: #1f262c; --halo: #141a1f; --node: #141a1f;
  --research: #3987e5; --post: #d95926; --recall: #9085e9; --found: #199e70; --linked: #c98500;
  --seq: #5598e7; --on-seq: #0b1015; --accent: #6da7ec; --edge: #6b7784;
    --cmp-a: #3987e5; --cmp-b: #e66767; --cmp-mid: #64635f;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font: 14px/1.45 var(--sans); }
html { color-scheme: light; }
body { margin: 0; padding: 0; }
img { max-width: 100%; }
[hidden]:not([hidden=until-found i]) { display: none !important; }

/* Tooltip */
#tip { position: fixed; z-index: 20; pointer-events: none; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; font-size: 12.5px; box-shadow: 0 6px 24px rgba(0,0,0,.14); max-width: 300px; display: grid; gap: 3px; }
#tip .t { font-weight: 600; }
#tip .v { font: 600 14px var(--mono); }
#tip .r { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-2); }
#tip .r b { font: 500 12px var(--mono); color: var(--ink); }
#tip .key { display: inline-block; width: 12px; height: 0; border-top: 2px solid; margin-right: 6px; vertical-align: middle; }
