/* tools.gahow.org shared styles — light/dark via data-viz reference palette */
:root {
  color-scheme: light;
  --page: #f9f9f7;
  --surface: #fcfcfb;
  --ink: #0b0b0b;
  --ink-2: #52514e;
  --muted: #898781;
  --grid: #e1e0d9;
  --baseline: #c3c2b7;
  --border: rgba(11, 11, 11, 0.10);
  --accent: #2a78d6;
  --accent-2: #eb6834;
  --accent-3: #1baf7a;
  --good: #0ca30c;
  --critical: #d03b3b;
  --track: #cde2fb;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #0d0d0d;
    --surface: #1a1a19;
    --ink: #ffffff;
    --ink-2: #c3c2b7;
    --muted: #898781;
    --grid: #2c2c2a;
    --baseline: #383835;
    --border: rgba(255, 255, 255, 0.10);
    --accent: #3987e5;
    --accent-2: #d95926;
    --accent-3: #199e70;
    --good: #0ca30c;
    --critical: #d03b3b;
    --track: #184f95;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0d0d0d;
  --surface: #1a1a19;
  --ink: #ffffff;
  --ink-2: #c3c2b7;
  --muted: #898781;
  --grid: #2c2c2a;
  --baseline: #383835;
  --border: rgba(255, 255, 255, 0.10);
  --accent: #3987e5;
  --accent-2: #d95926;
  --accent-3: #199e70;
  --good: #0ca30c;
  --critical: #d03b3b;
  --track: #184f95;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1060px; margin: 0 auto; padding: 32px 20px 64px; }

header.site { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
header.site h1 { font-size: 22px; font-weight: 650; margin: 0; }
header.site h1 a { color: var(--ink); }
header.site .sub { color: var(--muted); font-size: 13px; }
header.site .spacer { flex: 1; }

.theme-toggle {
  border: 1px solid var(--border); background: var(--surface); color: var(--ink-2);
  border-radius: 8px; padding: 4px 10px; font-size: 13px; cursor: pointer;
}

footer.site { margin-top: 48px; color: var(--muted); font-size: 12.5px; border-top: 1px solid var(--grid); padding-top: 16px; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 18px 20px;
}
