/* Status page v1 — deliberately plain. The globe (INT-603) layers on top of
   this without touching the data pipeline. */

/* Collapsed by default: no-JS, prefers-reduced-motion, and no-WebGL all skip
   globe.js entirely, and it only adds .active once it has actually drawn
   something — so those cases never show an empty box, just the table. */
#globe-wrap {
  display: none;
  width: 100%;
  max-width: 20rem;
  aspect-ratio: 1 / 1;
  margin: 0 auto 1.5rem;
}

#globe-wrap.active {
  display: block;
}

#globe {
  width: 100%;
  height: 100%;
  display: block;
}

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #16191d;
  --muted: #5b6470;
  --line: #d8dde3;
  --up: #0f7b3f;
  --down: #b3261e;
  --degraded: #8a5a00;
  --unknown: #5b6470;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171a;
    --fg: #e9edf1;
    --muted: #a3adb8;
    --line: #2b3138;
    --up: #4ec97f;
    --down: #ff6b60;
    --degraded: #e0a533;
    --unknown: #a3adb8;
  }
}

body {
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
  max-width: 56rem;
  background: var(--bg);
  color: var(--fg);
  font: 1rem/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

h1 {
  font-size: 1.6rem;
  margin: 0 0 0.5rem;
}

.summary {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
}

.updated,
.footnote {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

table {
  width: 100%;
  border-collapse: collapse;
}

caption {
  text-align: left;
  padding-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

th,
td {
  text-align: left;
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--line);
  vertical-align: baseline;
}

thead th {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}

tbody th {
  font-weight: 600;
}

.region {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.85rem;
}

.dot {
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: var(--unknown);
}

.dot-up { background: var(--up); }
.dot-down { background: var(--down); }
.dot-degraded { background: var(--degraded); }

a {
  color: inherit;
}

a:focus-visible,
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Narrow screens: the table stays a table (screen readers keep the header
   association); it just gets tighter. */
@media (max-width: 34rem) {
  th,
  td {
    padding: 0.5rem 0.3rem;
    font-size: 0.95rem;
  }
}
