/* DigitalFyre Network Status. Dark only, matching digitalfyre.com and the Looking Glass. */

@font-face {
  font-family: "Rubik";
  src: url("/fonts/rubik-variable.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #020b13;
  --bg-foot: #040d16;
  --card: #050e17;
  --pop: #0a1520;
  --edge: rgba(255, 255, 255, 0.08);
  --rule: rgba(255, 255, 255, 0.07);
  --rule-soft: rgba(255, 255, 255, 0.05);
  --ink: #ffffff;
  --ink-1: rgba(255, 255, 255, 0.88);
  --ink-2: rgba(255, 255, 255, 0.8);
  --ink-3: rgba(255, 255, 255, 0.7);
  --ink-4: rgba(255, 255, 255, 0.6);
  --ink-5: rgba(255, 255, 255, 0.5);
  --ink-6: rgba(255, 255, 255, 0.45);
  --blue: #5aa3f0;
  --blue-deep: #4396ea;
  --blue-light: #a0ccfb;
  --green: #5cc16f;
  --green-light: #a6dfad;
  --bar-ok: #56a07c;
  --amber: #f4af38;
  --red: #ec5b59;
  --maint: #5aa3f0;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  /* State colour for the hero, set by data-state on .hero */
  --state: var(--green);
  --state-rgb: 92, 193, 111;
  --state-soft: var(--green-light);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  color: var(--ink-2);
  font-family: Rubik, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.43;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: rgba(255, 255, 255, 0.72); }
a:hover { color: var(--ink); }
button { font-family: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--blue-deep); outline-offset: 2px; }
h1, h2, h3, h4, p, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: 1380px; margin: 0 auto; padding: 0 40px; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); }

/* ---------- header ---------- */
.hdr { border-bottom: 1px solid var(--rule); background-color: var(--bg); }
.hdr-in { height: 72px; display: flex; align-items: center; gap: 20px; }
.hdr-logo { display: flex; align-items: center; flex-shrink: 0; }
.hdr-logo img { height: 18px; width: auto; display: block; }
.hdr-sep { width: 1px; height: 18px; background-color: rgba(255, 255, 255, 0.16); }
.hdr-title { font-size: 15px; font-weight: 400; color: rgba(255, 255, 255, 0.85); white-space: nowrap; text-decoration: none; }
.hdr-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 14px; border-radius: 6px;
  font-size: 13px; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.16); background-color: rgba(255, 255, 255, 0.04); color: rgba(255, 255, 255, 0.85);
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { background-color: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.3); color: var(--ink); }
.btn-blue { border-color: rgba(67, 150, 234, 0.5); background-color: rgba(67, 150, 234, 0.1); color: var(--blue); }
.btn-blue:hover { border-color: rgba(67, 150, 234, 0.75); background-color: rgba(67, 150, 234, 0.18); color: var(--blue); }
.btn-lg { height: 44px; padding: 0 18px; font-size: 14px; letter-spacing: 0.04em; }
.ic { width: 14px; height: 14px; flex-shrink: 0; display: block; }

/* ---------- hero ---------- */
.hero {
  padding: 64px 0 56px;
  background-image:
    linear-gradient(90deg, rgba(var(--state-rgb), 0) 0%, rgba(var(--state-rgb), 0.6) 50%, rgba(var(--state-rgb), 0) 100%),
    radial-gradient(ellipse 1000px 320px at 50% 0%, rgba(var(--state-rgb), 0.08) 0%, rgba(var(--state-rgb), 0) 100%);
  background-size: 100% 1px, 100% 100%;
  background-repeat: no-repeat;
}
.hero[data-state="loading"] { --state: rgba(255, 255, 255, 0.4); --state-rgb: 146, 164, 183; --state-soft: var(--ink-5); }
.hero[data-state="operational"] { --state: var(--green); --state-rgb: 92, 193, 111; --state-soft: var(--green-light); }
.hero[data-state="maintenance"] { --state: var(--maint); --state-rgb: 90, 163, 240; --state-soft: var(--blue-light); }
.hero[data-state="degraded"] { --state: var(--amber); --state-rgb: 244, 175, 56; --state-soft: rgba(244, 175, 56, 0.9); }
.hero[data-state="partial"], .hero[data-state="major"] { --state: var(--red); --state-rgb: 236, 91, 89; --state-soft: rgba(236, 91, 89, 0.9); }
.hero-in { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.hero-copy { flex: 1 1 560px; min-width: 0; max-width: 720px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; line-height: 16px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--state-soft);
}
.eyebrow svg { width: 18px; height: 18px; display: block; flex-shrink: 0; overflow: visible; }
.eyebrow .accent { stroke: var(--state); }
.hero h1 {
  margin-top: 14px; display: flex; align-items: center; gap: 18px;
  font-size: 50px; line-height: 1.08; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance;
}
.state-dot {
  width: 14px; height: 14px; flex-shrink: 0; border-radius: 50%;
  background-color: var(--state); box-shadow: 0 0 0 6px rgba(var(--state-rgb), 0.12);
}
/* Live status dots (hero, service rows, detail pill): a ring expands from the dot and fades.
   Faster while something is down. Turned off under prefers-reduced-motion. */
.state-dot, .status .sdot, .spill .sdot { position: relative; }
.state-dot::after, .status .sdot::after, .spill .sdot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background-color: inherit;
  animation: ripple 2.4s ease-out infinite; pointer-events: none;
}
.status.down .sdot::after, .hero[data-state="partial"] .state-dot::after, .hero[data-state="major"] .state-dot::after, .hero[data-state="degraded"] .state-dot::after { animation-duration: 1.4s; }
.hero[data-state="loading"] .state-dot::after, .hero[data-state="paused"] .state-dot::after, .hero[data-state="unknown"] .state-dot::after,
.status.paused .sdot::after, .status.unknown .sdot::after { content: none; }
.hero-sum { margin-top: 24px; font-size: 17px; line-height: 1.6; color: var(--ink-3); }
.hero-meta { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; line-height: 18px; color: var(--ink-5); }
.vsep { width: 1px; height: 12px; background-color: rgba(255, 255, 255, 0.16); }

.stats {
  flex: 0 1 600px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--edge); border-radius: 10px; background-color: var(--card); overflow: hidden;
}
.stats > div { padding: 16px 18px; border-right: 1px solid var(--rule); }
.stats > div:last-child { border-right: 0; }
.stats dt { font-size: 11px; line-height: 16px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-6); }
.stats dd { margin-top: 6px; font-size: 20px; line-height: 26px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- main column ---------- */
.main { flex-grow: 1; padding-bottom: 72px; display: flex; flex-direction: column; gap: 16px; }
.card { border: 1px solid var(--edge); border-radius: 10px; background-color: var(--card); }
.label { font-size: 11px; line-height: 16px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-6); }

/* notices: a service down right now */
.notice { border-color: rgba(236, 91, 89, 0.35); }
.notice-head { padding: 18px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.notice-dot { width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background-color: var(--red); box-shadow: 0 0 0 3px rgba(236, 91, 89, 0.12); animation: pulse 1.6s ease-in-out infinite; }
.notice h2 { font-size: 17px; line-height: 24px; font-weight: 400; color: var(--ink); }
.notice-time { margin-left: auto; font-size: 13px; line-height: 18px; color: var(--ink-5); white-space: nowrap; }
.notice-body { padding: 0 24px 20px 48px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 32px; }
.notice-body p { max-width: 760px; font-size: 14px; line-height: 21px; color: var(--ink-3); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; text-decoration: none; white-space: nowrap; }
.notices { display: flex; flex-direction: column; gap: 12px; margin-bottom: 8px; }
.notice-more { font-size: 13px; color: var(--ink-5); padding-left: 4px; }

/* group filter */
.filter { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; padding: 4px; border: 1px solid var(--edge); border-radius: 8px; background-color: var(--card); }
.chip {
  flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 12px; border: 1px solid transparent; border-radius: 6px; background-color: transparent;
  color: rgba(255, 255, 255, 0.72); font-size: 14px; font-weight: 400; line-height: 20px; white-space: nowrap; cursor: pointer;
  transition: color .15s ease, background-color .15s ease;
}
.chip:hover { color: var(--ink); }
.chip[aria-pressed="true"] { border-color: rgba(67, 150, 234, 0.5); background-color: rgba(67, 150, 234, 0.12); color: var(--ink); }
.chip-count {
  display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 7px;
  border-radius: 999px; background-color: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.8);
  font-size: 12px; line-height: 1; font-weight: 500; font-variant-numeric: tabular-nums;
  transition: color .15s ease, background-color .15s ease;
}
.chip[aria-pressed="true"] .chip-count { background-color: var(--blue); color: var(--bg); }
.ph-hint { display: none; margin-top: -4px; font-size: 12px; line-height: 17px; color: var(--ink-5); }

/* groups and rows */
.board { display: flex; flex-direction: column; gap: 16px; }
.board-empty { padding: 40px 24px; text-align: center; font-size: 14px; color: var(--ink-5); }
.row {
  display: grid; grid-template-columns: 200px 72px minmax(0, 1fr) 92px;
  align-items: center; gap: 0 24px; padding: 10px 24px;
}
.row + .row { border-top: 1px solid var(--rule-soft); }
/* Service name links: the digitalfyre.com text-link underline. A faint blue line at rest;
   on hover or keyboard focus a full-strength line is drawn in from the left. */
.name a, .mrow .svc a, .mflags a {
  text-decoration: none;
  background-image: linear-gradient(#5aa3f0, #5aa3f0), linear-gradient(rgba(90, 163, 240, 0.35), rgba(90, 163, 240, 0.35));
  background-repeat: no-repeat; background-position: 0 100%, 0 100%; background-size: 0% 1px, 100% 1px;
  padding-bottom: 1px;
  transition: background-size .35s cubic-bezier(.25, .8, .25, 1), color .2s ease;
}
.name a:hover, .name a:focus-visible, .mrow .svc a:hover, .mrow .svc a:focus-visible, .mflags a:hover, .mflags a:focus-visible {
  color: var(--ink); background-size: 100% 1px, 100% 1px;
}
/* Service rows: hover highlight, and thin separators either side of the uptime figure. */
.group li.row { transition: background-color .12s ease; }
.group li.row:hover { background-color: rgba(255, 255, 255, 0.03); }
.group li.row:last-child { border-radius: 0 0 9px 9px; }
.group li.row .pct { position: relative; }
.group li.row .pct::before, .group li.row .pct::after {
  content: ""; position: absolute; top: 50%; width: 1px; height: 24px; transform: translateY(-50%); background-color: rgba(255, 255, 255, 0.1);
}
.group li.row .pct::before { left: -12px; }
.group li.row .pct::after { right: -12px; }
.group-head { padding: 16px 24px; border-bottom: 1px solid var(--rule); }
.group-head h2 { display: flex; align-items: center; gap: 12px; font-size: 16px; line-height: 22px; font-weight: 400; color: var(--ink); white-space: nowrap; }
.gicon { width: 18px; height: 18px; flex-shrink: 0; overflow: visible; }
.colh { font-size: 11px; line-height: 16px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-6); }
.colh-up { text-align: right; }
.colh-span { display: flex; justify-content: space-between; }
.gsum { display: inline-flex; justify-content: flex-start; font-size: 13px; line-height: 18px; color: var(--ink-5); white-space: nowrap; }
.gsum.down { color: var(--red); }
.gsum.maint { color: var(--maint); }
.name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.flag { width: 21px; height: 15px; flex-shrink: 0; display: block; }
.name a { min-width: 0; font-size: 15px; line-height: 20px; font-weight: 400; color: var(--ink-1); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.name .code { margin-left: 8px; font-size: 13px; letter-spacing: 0.04em; color: var(--ink-5); }
.pct { font-size: 14px; line-height: 20px; color: var(--ink-4); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pct.lt { color: rgba(255, 255, 255, 0.85); }
.status { display: inline-flex; align-items: center; justify-content: flex-start; gap: 8px; font-size: 13px; line-height: 18px; color: var(--ink-4); white-space: nowrap; }
.sdot { width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background-color: var(--green); }
.status.down { color: var(--red); } .status.down .sdot { background-color: var(--red); }
.status.maintenance { color: var(--maint); } .status.maintenance .sdot { background-color: var(--maint); }
.status.paused .sdot, .status.unknown .sdot { background-color: rgba(255, 255, 255, 0.35); }

/* the 90-day strip */
.bars { position: relative; display: flex; gap: 2px; height: 32px; min-width: 0; }
.bar { flex: 1 1 0; min-width: 2px; border-radius: 1.5px; background-color: var(--bar-ok); transition: opacity .12s ease, filter .12s ease; }
.bar.minor { background-color: var(--amber); }
.bar.major { background-color: var(--red); }
.bar.maint { background-color: var(--maint); }
.bar.nd { background-color: rgba(255, 255, 255, 0.08); }
.bars.hovering .bar { opacity: 0.45; }
.bars.hovering .bar.on { opacity: 1; filter: brightness(1.2); }
.bars-lg { height: 44px; gap: 3px; }
.bars-lg .bar { border-radius: 2px; }

.tip {
  position: fixed; z-index: 50; width: 220px; padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; background-color: var(--pop);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55); pointer-events: none;
  opacity: 0; transform: translateY(4px); transition: opacity .1s ease, transform .1s ease;
}
.tip.on { opacity: 1; transform: none; }
.tip-date { font-size: 12px; line-height: 16px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-5); }
.tip-main { margin-top: 8px; display: flex; align-items: center; gap: 10px; }
.tip-sw { width: 8px; height: 8px; flex-shrink: 0; border-radius: 2px; background-color: var(--bar-ok); }
.tip-sw.minor { background-color: var(--amber); } .tip-sw.major { background-color: var(--red); }
.tip-sw.maint { background-color: var(--maint); } .tip-sw.nd { background-color: rgba(255, 255, 255, 0.3); }
.tip-up { font-size: 17px; line-height: 22px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.tip-uplbl { font-size: 13px; line-height: 18px; color: var(--ink-5); }
.tip-note { margin-top: 6px; font-size: 13px; line-height: 18px; color: var(--ink-3); }

.legend { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 20px; padding: 4px 4px 0; font-size: 13px; line-height: 18px; color: rgba(255, 255, 255, 0.55); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.sw { width: 6px; height: 16px; border-radius: 1.5px; background-color: var(--bar-ok); }
.sw.minor { background-color: var(--amber); } .sw.major { background-color: var(--red); } .sw.maint { background-color: var(--maint); }

/* maintenance (top of the page, above the group filter) */
.maint-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 8px; }
.maint { overflow: hidden; }
.maint.active { border-color: rgba(90, 163, 240, 0.35); }
.maint-head { padding: 14px 24px; border-bottom: 1px solid var(--rule); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.maint.active .maint-head { padding: 16px 24px; border-bottom-color: rgba(90, 163, 240, 0.2); background-color: rgba(90, 163, 240, 0.06); }
.maint-head h2 { font-size: 16px; line-height: 22px; font-weight: 400; color: var(--ink); }
.maint-head svg { width: 18px; height: 18px; flex-shrink: 0; overflow: visible; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 10px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 12px; line-height: 16px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap;
}
.pill.active { border-color: rgba(90, 163, 240, 0.35); background-color: rgba(90, 163, 240, 0.12); color: var(--blue-light); }
.pill-dot { width: 6px; height: 6px; border-radius: 50%; background-color: var(--maint); }
.pill.active .pill-dot { animation: pulse 1.6s ease-in-out infinite; }
.maint-when { margin-left: auto; font-size: 13px; line-height: 18px; color: var(--ink-5); white-space: nowrap; }
.mpad { padding-left: 24px; padding-right: 24px; }
.maint-copy { padding-top: 20px; padding-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.maint-copy h3 { font-size: 18px; line-height: 26px; font-weight: 400; color: var(--ink); }
.maint-copy p { max-width: 760px; font-size: 14px; line-height: 21px; color: var(--ink-3); }
/* bordered cells: the active window's times, and the upcoming window's summary */
.mcells { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.maint.active .mcells { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.mcells.up { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.2fr); }
.mcells > div { padding: 14px 24px; border-right: 1px solid var(--rule); min-width: 0; }
.mcells > div:last-child { border-right: 0; }
.mcells dt, .mcells .k { font-size: 11px; line-height: 16px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-6); }
.mcells dd, .mcells .v { margin-top: 6px; font-size: 15px; line-height: 20px; color: var(--ink); font-variant-numeric: tabular-nums; }
.mcells dd.hl { color: var(--blue-light); }
.mflags { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--ink-1) !important; }
.mflags li { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.mflags a { color: inherit; text-decoration: none; }
.mflags .code, .mtable .code { margin-left: 8px; font-size: 13px; letter-spacing: 0.04em; color: var(--ink-5); }
.mflags .more { color: var(--ink-5); }
.mprog { padding-top: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 10px; }
.track { height: 6px; border-radius: 999px; background-color: rgba(255, 255, 255, 0.08); overflow: hidden; }
.fill { height: 100%; width: 0; border-radius: 999px; background-color: var(--maint); }
.prog-labels { display: flex; justify-content: space-between; gap: 6px 16px; font-size: 12px; line-height: 16px; color: var(--ink-5); font-variant-numeric: tabular-nums; }
.prog-labels .mid { color: var(--blue-light); }
.maff { padding-top: 18px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 12px; }
.maff-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.maff-head h4 { display: inline-flex; align-items: center; gap: 10px; }
.maff-head .cnt {
  display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px;
  background-color: rgba(90, 163, 240, 0.16); color: var(--blue-light); font-size: 12px; line-height: 1; font-weight: 500; letter-spacing: 0; font-variant-numeric: tabular-nums;
}
.maff-head .note { margin-left: auto; font-size: 13px; line-height: 18px; color: var(--ink-5); }
.mtable { border: 1px solid var(--edge); border-radius: 8px; overflow: hidden; }
.mrow { display: grid; grid-template-columns: minmax(0, 1fr) 200px 140px; align-items: center; gap: 0 24px; padding: 12px 18px; }
.mrow + .mrow { border-top: 1px solid var(--rule); }
.mrow-h { background-color: rgba(255, 255, 255, 0.015); }
.mrow-h span { font-size: 11px; line-height: 16px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-6); }
.mrow-h span:last-child { text-align: right; }
.mrow .svc { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mrow .svc a { min-width: 0; font-size: 15px; line-height: 20px; color: var(--ink-1); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mrow .grp { font-size: 14px; line-height: 20px; color: var(--ink-4); }
.mrow .status { justify-content: flex-end; }
.mrow.mrow-h .grp { font-size: 11px; line-height: 16px; color: var(--ink-6); }
.mrow-more { display: block; font-size: 13px; line-height: 18px; color: var(--ink-5); }

/* information cards */
.info { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 24px; }
.info .card { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 14px; }
.info p { font-size: 14px; line-height: 21px; color: var(--ink-3); }
.links { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.links a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; text-decoration: none; }

/* ---------- footer ---------- */
.foot { position: relative; background-color: var(--bg-foot); }
.foot::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background-image: linear-gradient(90deg, rgba(67, 150, 234, 0) 0%, rgba(67, 150, 234, 0.55) 25%, rgba(177, 118, 224, 0.55) 75%, rgba(177, 118, 224, 0) 100%);
}
.foot-in { padding-top: 23px; padding-bottom: 25px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.copy { font-size: 13px; line-height: 18px; color: var(--ink-6); }
.copy span { text-transform: uppercase; letter-spacing: 0.04em; }
.foot nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: 13px; line-height: 18px; }
.foot nav a { text-decoration: none; }
.foot .vsep { height: 14px; }

/* ---------- service detail page ---------- */
.crumbs { margin-bottom: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; line-height: 18px; color: var(--ink-5); }
.crumbs a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.crumbs .slash { color: rgba(255, 255, 255, 0.25); }
.hero.detail { padding-top: 40px; }
.hero.detail h1 { flex-wrap: wrap; gap: 12px 20px; }
.spill {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px;
  font-size: 13px; line-height: 18px; font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase;
  border: 1px solid rgba(var(--state-rgb), 0.35); background-color: rgba(var(--state-rgb), 0.12); color: var(--state-soft);
}
.spill .sdot { background-color: var(--state); }
.hero[data-state="paused"], .hero[data-state="unknown"] { --state: rgba(255, 255, 255, 0.4); --state-rgb: 146, 164, 183; --state-soft: var(--ink-4); }
.meta-line { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 15px; line-height: 22px; color: var(--ink-4); }
.meta-line .item { display: inline-flex; align-items: center; gap: 10px; }
.meta-line .vsep { height: 14px; }
.sec-head { padding: 16px 24px; border-bottom: 1px solid var(--rule); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.sec-head h2 { font-size: 16px; line-height: 22px; font-weight: 400; color: var(--ink); }
.sec-note { font-size: 13px; line-height: 18px; color: var(--ink-5); }
.sec-body { padding: 24px 24px 20px; }
.strip-labels { margin-top: 12px; display: flex; justify-content: space-between; font-size: 12px; line-height: 16px; color: var(--ink-5); }
.strip-labels .ph { display: none; }
.rt-stats { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 13px; line-height: 18px; }
.rt-stats div { display: flex; gap: 6px; }
.rt-stats dt { color: var(--ink-5); }
.rt-stats dd { color: var(--ink); font-variant-numeric: tabular-nums; }
.chart { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 0 12px; }
.yaxis { height: 240px; white-space: nowrap; display: flex; flex-direction: column; justify-content: space-between; font-size: 12px; line-height: 12px; color: var(--ink-6); text-align: right; font-variant-numeric: tabular-nums; }
.plot { position: relative; height: 240px; }
.plot svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.plot .grid { stroke: rgba(255, 255, 255, 0.06); stroke-width: 1; }
.plot .base { stroke: rgba(255, 255, 255, 0.12); stroke-width: 1; }
.plot .area { fill: url(#rtArea); }
.plot .line { fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linejoin: round; }
.plot .band { fill: rgba(236, 91, 89, 0.14); }
.cursor { position: absolute; top: 0; bottom: 0; width: 1px; background-color: rgba(255, 255, 255, 0.25); pointer-events: none; }
.cursor-dot { position: absolute; width: 9px; height: 9px; margin: -5px 0 0 -5px; border-radius: 50%; border: 2px solid var(--bg); background-color: var(--blue); pointer-events: none; }
.chart-tip { position: absolute; top: -6px; padding: 8px 12px; border: 1px solid var(--edge); border-radius: 8px; background-color: var(--pop); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); pointer-events: none; white-space: nowrap; }
.chart-tip b { display: block; font-size: 14px; line-height: 20px; font-weight: 400; color: var(--ink); font-variant-numeric: tabular-nums; }
.chart-tip span { font-size: 12px; line-height: 16px; color: var(--ink-5); }
.xaxis { grid-column: 2; margin-top: 12px; display: flex; justify-content: space-between; font-size: 12px; line-height: 16px; color: var(--ink-5); }
.table-box { overflow-x: auto; }
.events { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.events th, .events td { padding: 14px 24px; text-align: left; border-top: 1px solid var(--rule-soft); }
.events thead th { border-top: 0; font-size: 11px; line-height: 16px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-6); }
.events td { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.events td.reason { color: var(--ink-4); }
.evt { display: inline-flex; align-items: center; gap: 10px; }
.evt.up { color: var(--green); } .evt.up .sdot { background-color: var(--green); }
.evt.down { color: var(--red); } .evt.down .sdot { background-color: var(--red); }
.evt.paused { color: var(--ink-4); } .evt.paused .sdot { background-color: rgba(255, 255, 255, 0.35); }
.events tr.extra { display: none; }
.events.open tr.extra { display: table-row; }
.more-row { padding: 12px 24px 16px; border-top: 1px solid var(--rule-soft); }
.more-btn { padding: 0; border: 0; background: none; color: var(--blue); font-size: 14px; cursor: pointer; }
.more-btn:hover { color: var(--blue-light); }
.notice.maint-note { border-color: rgba(90, 163, 240, 0.35); }
.notice.maint-note .notice-dot { background-color: var(--maint); box-shadow: 0 0 0 3px rgba(90, 163, 240, 0.12); }

/* ---------- 404 ---------- */
.err { flex-grow: 1; display: flex; align-items: center; padding: 64px 0 72px; }
.err .eyebrow { color: rgba(90, 163, 240, 0.9); }
.err h1 { margin-top: 18px; font-size: 50px; line-height: 1.08; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }
.err p { margin-top: 18px; max-width: 560px; font-size: 20px; line-height: 31px; color: rgba(255, 255, 255, 0.72); }
.btns { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
@keyframes ripple { 0% { transform: scale(1); opacity: 0.55; } 70%, 100% { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- phones (below 768 px) ---------- */
@media (max-width: 767px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .hdr-in { gap: 14px; }
  .hdr-nav .btn { display: none; }
  .hero { padding: 36px 0; }
  .hero-in { gap: 24px; }
  .hero h1, .err h1 { font-size: 32px; }
  .hero h1 { align-items: flex-start; gap: 14px; }
  .hero h1 .state-dot { margin-top: 11px; }
  .hero.detail h1 { align-items: center; }
  .hero-sum { margin-top: 18px; font-size: 16px; }
  .hero-meta { flex-direction: column; align-items: flex-start; gap: 2px; }
  .hero-meta .vsep { display: none; }
  .stats { flex-basis: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > div { border-right: 0; padding: 14px 16px; }
  .stats > div:nth-child(odd) { border-right: 1px solid var(--rule); }
  .stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .stats dd { font-size: 18px; }
  .notice-body { padding-left: 24px; }
  .filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -20px; margin-right: -20px; border-radius: 0; border-left: 0; border-right: 0; padding: 4px 20px; }
  .filter::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; }
  .ph-hint { display: block; }
  .row { grid-template-columns: minmax(0, 1fr) auto auto; row-gap: 10px; column-gap: 14px; padding-left: 16px; padding-right: 16px; }
  .row .bars { grid-column: 1 / -1; order: 3; height: 32px; }
  .group li.row .pct::before, .group li.row .pct::after { content: none; }
  .bar.old { display: none; }
  .status .lbl, .colh { display: none; }
  .legend { justify-content: flex-start; padding: 4px 0 0; gap: 8px 16px; }
  .maint-head, .maint.active .maint-head { padding: 14px 16px; }
  .maint-when { margin-left: 0; width: 100%; }
  .mpad { padding-left: 16px; padding-right: 16px; }
  .mcells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mcells > div { padding: 12px 16px; border-right: 0; }
  .mcells > div:nth-child(odd) { border-right: 1px solid var(--rule); }
  .mcells > div:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .mcells dd { font-size: 14px; }
  .mcells.up { grid-template-columns: minmax(0, 1fr); }
  .mcells.up > div { border-right: 0; border-bottom: 1px solid var(--rule); }
  .mcells.up > div:last-child { border-bottom: 0; }
  .maff-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .maff-head .note { margin-left: 0; }
  .mrow { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 14px; }
  .mrow .grp { display: none; }
  .mrow .status .lbl { display: inline; }
  .foot-in { flex-direction: column; align-items: flex-start; }
  .crumbs { margin-bottom: 24px; }
  .sec-head, .sec-body { padding-left: 16px; padding-right: 16px; }
  .bars-lg { height: 40px; gap: 4px; }
  .strip-labels .dt { display: none; }
  .strip-labels .ph { display: inline; }
  .chart { grid-template-columns: 44px minmax(0, 1fr); column-gap: 8px; }
  .yaxis { font-size: 11px; }
  .xaxis span:nth-child(even) { display: none; }
  .events { min-width: 0; }
  .events th, .events td { padding: 12px 16px; }
  .events th:nth-child(4), .events td:nth-child(4) { display: none; }
  .err { padding: 40px 0 56px; }
  .err p { font-size: 17px; line-height: 27px; }
}

/* ---------- footer buttons, policies dialog, cookie notice ---------- */
.linkbtn { padding: 0; border: 0; background: none; color: rgba(255, 255, 255, 0.72); font-size: inherit; line-height: inherit; font-weight: inherit; cursor: pointer; }
.linkbtn:hover { color: var(--ink); }
.dlg {
  width: min(480px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--edge); border-radius: 12px;
  background-color: var(--pop); color: var(--ink-2); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.dlg::backdrop { background-color: rgba(2, 11, 19, 0.72); }
.dlg-head { padding: 18px 20px 0 24px; display: flex; align-items: center; justify-content: space-between; }
.dlg-head h2 { font-size: 18px; line-height: 24px; font-weight: 500; color: var(--ink); }
.dlg-x { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--ink-5); cursor: pointer; }
.dlg-x:hover { background-color: rgba(255, 255, 255, 0.07); color: var(--ink); }
.dlg-desc { padding: 8px 24px 4px; font-size: 14px; line-height: 21px; color: var(--ink-3); }
.dlg-group { margin: 16px 24px 0; padding-top: 16px; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 10px; }
.dlg-group:last-child { padding-bottom: 24px; }
.dlg-group h3 { margin-bottom: 2px; }
.dlg-group a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; text-decoration: none; }
.cookie {
  position: fixed; z-index: 40; left: 24px; bottom: 24px; width: min(420px, calc(100vw - 32px));
  border: 1px solid var(--edge); border-radius: 12px; background-color: var(--pop); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.cookie-in { padding: 18px 20px 20px; display: flex; gap: 14px; }
.cookie-ic { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; color: var(--blue); }
.cookie-body h2 { font-size: 15px; line-height: 20px; font-weight: 500; color: var(--ink); }
.cookie-body p { margin-top: 6px; font-size: 13px; line-height: 19px; color: var(--ink-3); }
.cookie-body .linkbtn { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.cookie-act { margin-top: 14px; display: flex; gap: 8px; }
@media (max-width: 767px) {
  .cookie { left: 16px; right: 16px; bottom: 16px; width: auto; }
}

/* RSS link in the hero's update line */
.rss { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-5); text-decoration: none; }
.rss:hover { color: var(--ink); }
.rss svg { width: 12px; height: 12px; }
