/* status.nistor.io (product readiness, Task 33). The design tokens are the
   site's: nistor-tokens.css, generated by nistor's scripts/tokens/build.mjs
   (make tokens) and shipped beside this file, light or dark by the visitor's
   system setting. System fonts: the image ships no font files.
   The page has no script and no inline style (the site's CSP). */
@import url('nistor-tokens.css');

:root {
  --bg: var(--page);
  --panel: var(--surface);
  --text: var(--ink);
  --muted: var(--ink-variant);
  --line: var(--outline-variant);
  --brand-ink: var(--ink); /* the lockup's ink: the kit's ink of the ground, as the site's (src/styles/tokens.css) */
  --accent: var(--primary-text);
}
/* Each level takes the shared status roles (nistor brand/README.md, "Status colours"):
   the colour for its dot and its days, the container and the text on it for the
   banner. No rails, no tinted cards: status colour only where it says a status. */
.up { --status: var(--success); --status-container: var(--success-container); --on-status-container: var(--on-success-container); }
.degraded { --status: var(--warning); --status-container: var(--warning-container); --on-status-container: var(--on-warning-container); }
.down { --status: var(--error); --status-container: var(--error-container); --on-status-container: var(--on-error-container); }
.unknown { --status: var(--neutral); --status-container: var(--neutral-container); --on-status-container: var(--on-neutral-container); }
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.top, main, footer { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding-top: 24px; }
/* The kit's horizontal lockup (status/lib.ts), then "Status" as a label beside it. */
.brand { display: flex; align-items: center; gap: var(--space-12); margin: 0; color: var(--brand-ink); }
.lockup { display: block; flex: none; }
.brand__label { padding-left: var(--space-12); border-left: 1px solid var(--line); color: var(--muted); font-size: var(--type-section-size); line-height: var(--type-section-line); font-weight: var(--type-section-weight); }
.updated { color: var(--muted); margin: 0; font-size: 14px; }
/* The banner: the level's container, its text, and its dot. */
h1.banner { display: flex; align-items: center; gap: var(--space-12); font-size: 20px; margin: 24px 0; padding: 16px; border-radius: var(--radius-8); background: var(--status-container); color: var(--on-status-container); }
h1.banner::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--status); }
h2 { font-size: 16px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 32px 0 12px; }
h3 { font-size: 17px; margin: 0; }
.component, .incident { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin: 0 0 12px; }
.component { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
.component .measure, .component .days, .component .axis { grid-column: 1 / -1; }
.level { margin: 0; font-weight: 600; }
.level::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; background: var(--status); }
.measure { color: var(--muted); font-size: 14px; margin: 0; }
.days { display: flex; gap: 1px; list-style: none; margin: 8px 0 0; padding: 0; height: 28px; }
/* A day with no data is an empty slot, a hairline's colour: not a status. */
.day { flex: 1 1 0; min-width: 1px; border-radius: 1px; background: var(--line); }
.day.up, .day.degraded, .day.down { background: var(--status); }
.axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin: 4px 0 0; }
.incident .meta { color: var(--muted); font-size: 14px; margin: 4px 0 8px; }
.incident .meta .level { color: var(--text); }
.updates { margin: 0; padding-left: 18px; }
.updates time { color: var(--muted); font-size: 14px; margin-right: 6px; }
.none { color: var(--muted); }
footer { color: var(--muted); font-size: 14px; padding-top: 24px; padding-bottom: 32px; }
a { color: var(--accent); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
