/* status.gofile.co.uk — calm, whitespace-first. Severity is metadata (small dots and lozenges), never the page.
   Palette per owner direction 2026-09-24: pale blue-grey page, white cards with a cool-grey border, deep navy text,
   mint for operational, muted blue for HMRC / third-party issues and maintenance, soft amber and muted red only for
   #GoFile's own degraded / outage states. Light only. No external assets. */
:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --text: #243b53;
  --muted: #7b8794;
  --faint: #9aa5b1;
  --border: #e1e7ef;
  --border-soft: #edf1f6;
  --ok: #2f9e77;
  --ok-dot: #46c79a;
  --ok-bg: #eaf8f2;
  --info: #4f78a8;
  --info-dot: #6d93bd;
  --info-bg: #eef4fa;
  --warn: #b7791f;
  --warn-dot: #d9a441;
  --warn-bg: #fbf3e0;
  --bad: #b4443c;
  --bad-dot: #d46b64;
  --bad-bg: #fbecec;
  --unk: #7b8794;
  --unk-dot: #b3bcc6;
  --unk-bg: #eef1f5;
  --nodata: #e6ebf2;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(36, 59, 83, 0.04);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--info); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 840px; margin: 0 auto; padding: 0 20px; }

/* header */
.top { padding: 28px 0 12px; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 14px; color: var(--text); font-weight: 500; }
.logo:hover { text-decoration: none; }
.logo img { height: 30px; width: auto; display: block; }
.logo span { font-size: 14px; color: var(--muted); padding-left: 14px; border-left: 1px solid var(--border); }
.top nav { display: flex; gap: 20px; font-size: 13.5px; }
.top nav a { color: var(--muted); }
.top nav a:hover { color: var(--text); text-decoration: none; }

/* lozenges and dots: the only place severity colour appears */
.lozenge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 3px 10px 3px 8px; border-radius: 999px;
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.01em; white-space: nowrap;
  background: var(--unk-bg); color: var(--unk);
}
.lozenge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--unk-dot); flex: none; }
.lozenge-lg { font-size: 13px; padding: 4px 12px 4px 10px; }
.tone-ok   { background: var(--ok-bg);   color: var(--ok); }
.tone-ok .dot   { background: var(--ok-dot); }
.tone-info { background: var(--info-bg); color: var(--info); }
.tone-info .dot { background: var(--info-dot); }
.tone-warn { background: var(--warn-bg); color: var(--warn); }
.tone-warn .dot { background: var(--warn-dot); }
.tone-bad  { background: var(--bad-bg);  color: var(--bad); }
.tone-bad .dot  { background: var(--bad-dot); }
.tone-unk  { background: var(--unk-bg);  color: var(--unk); }

/* cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.notice { margin: 16px 0 0; padding: 12px 18px; border-radius: 10px; font-size: 13.5px; background: var(--unk-bg); color: var(--muted); }

.hero { margin: 20px 0 28px; padding: 30px 32px; }
.hero h1 { margin: 14px 0 6px; font-size: 24px; line-height: 1.25; font-weight: 600; letter-spacing: -0.012em; }
.hero .lead { margin: 0; font-size: 15.5px; color: var(--text); }
.hero .note { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
.hero .meta { margin: 16px 0 0; font-size: 13px; color: var(--faint); }

.section { margin: 0 0 28px; }
.section > h2, .group-head h2 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 0 0 12px; font-weight: 600;
}
.group { padding: 20px 28px 8px; }
.group-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 8px; }
.group-head h2 { margin: 0; }

.row { padding: 18px 0 20px; border-top: 1px solid var(--border-soft); }
.row-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.row h3 { margin: 0; font-size: 15.5px; font-weight: 600; }
.row .headline { margin: 4px 0 0; font-size: 14.5px; color: var(--text); }
.row .since { color: var(--faint); }
.row .metrics { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }
.hmrc-notice { margin: 10px 0 0; padding: 8px 12px; border-radius: 8px; background: var(--info-bg); color: var(--info); font-size: 13.5px; }
.hmrc-notice b { font-weight: 600; }
.hmrc-notice a { text-decoration: underline; }

.bars { --gap: 2px; display: flex; gap: var(--gap); margin-top: 14px; height: 8px; overflow: hidden; }
.bars i { flex: 1 1 0; border-radius: 2px; background: var(--nodata); min-width: 0; }
/* short history: only the days since monitoring began, each at the 90-day width, today on the right */
.bars-partial { justify-content: flex-end; }
.bars-partial i { flex: 0 0 calc((100% - 89 * var(--gap)) / 90); }
.bars .tone-ok   { background: var(--ok-dot); }
.bars .tone-info { background: var(--info-dot); }
.bars .tone-warn { background: var(--warn-dot); }
.bars .tone-bad  { background: var(--bad-dot); }
.bars .tone-unk  { background: var(--unk-dot); }
.bars-legend { display: flex; justify-content: space-between; font-size: 12px; color: var(--faint); margin-top: 6px; }

.incident { padding: 20px 28px; margin-bottom: 12px; }
.incident-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.incident h3 { margin: 0; font-size: 16px; font-weight: 600; }
.incident .meta { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.updates { list-style: none; margin: 14px 0 0; padding: 0; }
.updates li { padding: 8px 0 8px 14px; border-left: 2px solid var(--border); font-size: 14px; }
.updates li time { color: var(--faint); font-variant-numeric: tabular-nums; margin-right: 8px; font-size: 13px; }
.updates li b { margin-right: 6px; font-weight: 600; }
.tag { display: inline-block; padding: 0 8px; border-radius: 999px; background: var(--unk-bg); color: var(--muted); font-size: 12px; }

.maint { list-style: none; margin: 0; padding: 0; }
.maint li { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 14px 28px; border-top: 1px solid var(--border-soft); font-size: 14px; }
.maint li:first-child { border-top: 0; }
.maint .when { font-weight: 600; font-variant-numeric: tabular-nums; }
.maint .comp { color: var(--muted); }
.empty { padding: 28px; text-align: center; color: var(--muted); }

footer { padding: 8px 20px 48px; color: var(--faint); font-size: 13px; }
footer p { margin: 6px 0; }
footer a { color: var(--muted); }
time { font-variant-numeric: tabular-nums; }

@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .top { padding-top: 20px; }
  .hero { padding: 22px 20px; }
  .hero h1 { font-size: 20px; }
  .group, .incident { padding-left: 18px; padding-right: 18px; }
  .maint li { padding: 12px 18px; }
  .top nav { display: none; }
  .logo span { display: none; }
  .bars { --gap: 1px; }
  .bars i { border-radius: 1px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
