/* The public status page, /status/ (roadmap #50, 27 Oct 2026). The page itself is not in this folder:
   deploy/bin/status-page.mjs writes it every minute on the server, outside the release, and Caddy serves it
   from disk. Tokens, type and the eyebrow come from site.css; every class here starts st-.
   Layout: a slim white bar with the mark and a way to help; the headline (emerald when everything works,
   red only when a part is down); one card a part with its state, 90 bars, one a UK day, and its uptime;
   the key; one line of help; a navy foot. No script, no inline style (the site's CSP). */

.st-wrap { width: min(880px, 100% - 40px); margin-inline: auto; }
body { background: var(--off-white); }

.st-top { background: #fff; border-bottom: 1px solid var(--line); }
.st-top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.st-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); font-size: 17px; font-weight: 700; text-decoration: none; }
.st-logo img { width: 32px; height: 32px; }
.st-back { font-size: 15px; font-weight: 600; }

.st-main { padding: 56px 0 72px; }
.st-h1 { margin-top: 2px; }
.st-now {
  margin-top: 24px; padding: 18px 20px 18px 52px; position: relative; border-radius: 14px;
  font-size: 18px; line-height: 26px; font-weight: 700;
}
.st-now::before { content: ""; position: absolute; left: 20px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; }
.st-now--up { background: var(--emerald-tint); color: var(--emerald-deep); }
.st-now--up::before { background: var(--emerald); box-shadow: 0 0 0 4px var(--emerald-soft); }
.st-now--down { background: var(--error-tint); color: var(--error); }
.st-now--down::before { background: var(--error); }
.st-now--unknown { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.st-now--unknown::before { background: var(--navy-3); }
.st-checked { margin-top: 12px; font-size: 14.5px; line-height: 22px; color: var(--muted); }

.st-parts { margin-top: 32px; display: grid; gap: 14px; }
.st-part { padding: 20px 22px 16px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(11, 31, 58, .07), 0 18px 36px -30px rgba(11, 31, 58, .4); }
.st-part-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.st-part-name { font-size: 18px; line-height: 25px; font-weight: 700; color: var(--navy); }
.st-part-name span { display: block; margin-top: 2px; font-size: 14px; line-height: 20px; font-weight: 400; color: var(--muted); }
.st-pill { flex: none; padding: 3px 12px; border-radius: 999px; font-size: 13.5px; line-height: 20px; font-weight: 700; }
.st-pill--up { background: var(--emerald-tint); color: var(--emerald-deep); }
.st-pill--down { background: var(--error-tint); color: var(--error); }
.st-pill--unknown { background: var(--off-white); color: var(--muted); }

.st-bars { margin-top: 16px; display: flex; gap: 2px; height: 30px; }
.st-d { display: block; flex: 1; min-width: 2px; border-radius: 2px; }
.st-d--up { background: var(--emerald); }
.st-d--some { background: var(--emerald-soft); }
.st-d--down { background: var(--error); }
.st-d--none { background: var(--line); }
.st-part-foot { margin-top: 8px; display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; line-height: 18px; color: var(--muted); }
.st-uptime { font-weight: 700; color: var(--navy); }

.st-key { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; line-height: 18px; color: var(--muted); }
.st-key span { display: inline-flex; align-items: center; gap: 7px; }
.st-key .st-d { flex: none; width: 10px; height: 14px; }
.st-help { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; line-height: 23px; color: var(--ink-2); }

.st-foot { padding: 28px 0; background: var(--navy); color: var(--on-dark-2); font-size: 13.5px; line-height: 20px; }

@media (max-width: 599px) {
  .st-main { padding: 36px 0 48px; }
  .st-now { font-size: 16.5px; line-height: 24px; }
  .st-part { padding: 16px 16px 12px; }
  .st-bars { gap: 1px; height: 26px; }
  .st-d { min-width: 1px; border-radius: 1px; }
}
