/* AlienHost status board (incidents.alienhost.net) - v3, 2026-10-25. Source: Monolith/tools/status-board/public.
   One visual language: the status light. Announcements first, then the overall state, then every section.
   v3: the same chrome as Kener's own pages (owner) - deep-space sky, floating nav pill, 992 px column, 24 px outlined
   cards with their header inside; day bars in full colour. */

:root {
  --void: #070a12;
  --hull: #0c111d;
  --hull-raised: #101727;
  --seam: #1c2740;
  --seam-strong: #2b3853;
  --signal: #e8edf7;
  --dim: #8b9ab5;
  --faint: #5f6d88;
  --beacon: #4169e1;
  --ring: #708cf0;
  --go: #34d399;
  --caution: #fbbf24;
  --fault: #f87171;
  --service: #38bdf8;
  --dark: #3a4660;
  --font-display: "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-ui: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--void); scroll-padding-top: 7.5rem; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: transparent;   /* the html background is the void; the fixed .sky (z-index -1) paints between them */
  color: var(--signal);
  font: 400 15px/1.55 var(--font-ui);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
a { color: #a9bcf6; text-decoration-color: rgba(169, 188, 246, 0.35); text-underline-offset: 3px; }
a:hover { color: var(--signal); }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; border-radius: 4px; }

/* Deep space: one soft royal-blue glow, a violet one, and a single non-repeating starfield. Fixed, behind everything. */
.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1200px 640px at 82% -8%, rgba(65, 105, 225, 0.17), transparent 64%),
    radial-gradient(900px 560px at -4% 18%, rgba(109, 93, 246, 0.09), transparent 62%),
    url("/ah-board/stars.svg") center / cover no-repeat,
    var(--void);
}

.wrap { width: min(992px, 100% - 32px); margin-inline: auto; }   /* Kener: max-w-5xl with px-4 */

/* ---- top bar: the floating pill of Kener's pages (46 px, 24 px corners), with Kener's fade behind it --------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 8px 0;
}
.topbar::before {
  content: "";
  position: absolute;
  inset: 0 0 -16px;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7, 10, 18, 0.94) 0%, rgba(7, 10, 18, 0.72) 55%, rgba(7, 10, 18, 0) 100%);
  pointer-events: none;
}
.topbar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 4px;
  border: 1px solid var(--seam);
  border-radius: 24px;
  background: rgba(12, 17, 29, 0.94);
}
.brand { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 10px; border-radius: 24px;
  color: var(--signal); text-decoration: none; font: 500 12px/1 var(--font-ui); flex: none; }
.brand img { border-radius: 50%; object-fit: cover; }
.toplinks { display: flex; align-items: center; gap: 6px; min-width: 0; }
.toplinks a { display: inline-flex; align-items: center; height: 36px; padding: 0 8px; border-radius: 24px; color: #b9c4da;
  font: 500 12px/16px var(--font-ui); text-decoration: none; white-space: nowrap; }
.brand:hover, .toplinks a:hover { background: rgba(255, 255, 255, 0.06); color: var(--signal); }

/* ---- the status light ------------------------------------------------------------------------------------------ */
.light {
  --c: var(--go);
  display: inline-block;
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.9) 0 10%, var(--c) 42%, color-mix(in srgb, var(--c) 62%, #000) 100%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent), 0 0 9px 1px color-mix(in srgb, var(--c) 50%, transparent);
}
.light[data-s="DEGRADED"] { --c: var(--caution); }
.light[data-s="DOWN"] { --c: var(--fault); animation: alarm 1.6s ease-in-out infinite; }
.light[data-s="MAINTENANCE"] { --c: var(--service); }
.light[data-s="SCHEDULED"] { --c: var(--ring); }
.light[data-s="NO_DATA"] { --c: var(--dark); background: var(--dark); box-shadow: inset 0 0 0 1px #56627c; }
@keyframes alarm {
  0%, 100% { box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent), 0 0 8px 1px color-mix(in srgb, var(--c) 45%, transparent); }
  50% { box-shadow: 0 0 0 1px var(--c), 0 0 18px 5px color-mix(in srgb, var(--c) 70%, transparent); }
}
.light-xl { width: 22px; height: 22px; margin-top: 12px; }
.light-xl[data-s="UP"] { box-shadow: 0 0 0 1px color-mix(in srgb, var(--go) 50%, transparent), 0 0 24px 4px color-mix(in srgb, var(--go) 40%, transparent); }

/* ---- announcements: incidents and maintenance, first thing on the page ----------------------------------------- */
.notices { display: grid; gap: 12px; padding-top: 28px; }
.notice {
  --c: var(--fault);
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  padding: 18px 22px;
  border: 1px solid color-mix(in srgb, var(--c) 46%, var(--seam));
  border-radius: 24px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 14%, var(--void)), color-mix(in srgb, var(--c) 5%, var(--void)) 70%);
}
.notice[data-kind="IDENTIFIED"], .notice[data-kind="DEGRADED"] { --c: var(--caution); }
.notice[data-kind="MONITORING"], .notice[data-kind="MAINTENANCE"] { --c: var(--service); }
.notice[data-kind="SCHEDULED"] { --c: var(--ring); }
.notice[data-kind="RESOLVED"] { --c: var(--go); padding-block: 12px; }
.notice > .light { margin-top: 6px; grid-row: 1; }
.notice > :not(.light) { grid-column: 2; margin: 0; }
.notice-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.chip {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--c) 22%, transparent);
  color: color-mix(in srgb, var(--c) 82%, #fff);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.notice h2 { margin: 0; font: 600 18px/1.35 var(--font-display); letter-spacing: -0.01em; }
.notice[data-kind="RESOLVED"] h2 { font-size: 16px; }
.notice-meta { color: var(--dim); font-size: 14px; }
.notice-meta strong { color: var(--signal); font-weight: 500; }
.notice-text { color: #c9d2e3; font-size: 14.5px; max-width: 80ch; }
.notice-text span { color: var(--faint); }
.notice a { font-size: 14px; width: fit-content; }

/* ---- hero ------------------------------------------------------------------------------------------------------- */
.hero { display: flex; align-items: flex-start; gap: 18px; padding: 40px 0 8px; }
.notices:not([hidden]) + .hero { padding-top: 30px; }
.hero h1 { margin: 0; font: 600 clamp(28px, 4.4vw, 44px)/1.12 var(--font-display); letter-spacing: -0.025em; }
.hero p { margin: 8px 0 0; color: var(--dim); font-size: 15px; }
.hero p .stale { color: var(--caution); }

/* ---- jump bar ------------------------------------------------------------------------------------------------------ */
.jump {
  position: sticky;
  top: 62px;
  z-index: 10;
  display: flex;
  gap: 8px;
  margin: 22px 0 6px;
  padding: 10px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
/* In place the sky shows through; once stuck under the top bar (board.js sets .stuck) it hides the rows passing below. */
.jump.stuck { background: linear-gradient(180deg, rgba(7, 10, 18, 0.97) 0%, rgba(7, 10, 18, 0.93) 72%, rgba(7, 10, 18, 0) 100%); }
.jump::-webkit-scrollbar { display: none; }
.jump a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 6px 13px;
  border: 1px solid var(--seam);
  border-radius: 999px;
  background: rgba(12, 17, 29, 0.9);
  color: var(--dim);
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}
.jump a:hover { color: var(--signal); border-color: var(--seam-strong); }
.jump a .light { width: 8px; height: 8px; }
.jump a span.n { color: var(--faint); font-variant-numeric: tabular-nums; }

/* ---- sections: one outlined card each (Kener: rounded-3xl border bg-background), header row inside ------------ */
.sector { margin-top: 20px; border: 1px solid var(--seam); border-radius: 24px; background: var(--void); overflow: hidden; }
.sector-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 20px;
  border-bottom: 1px solid var(--seam); }
.sector-head h2 { margin: 0; font: 600 20px/1.2 var(--font-display); letter-spacing: -0.015em; }
.sector-head p { margin: 0; display: inline-flex; align-items: center; gap: 8px; color: var(--dim); font-size: 14px; }
.sector-head p .light { width: 8px; height: 8px; }
.units { margin: 0; padding: 0; list-style: none; }
.unit {
  display: grid;
  grid-template-columns: 12px minmax(150px, 1.15fr) minmax(0, 2.6fr) 74px 58px;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
}
.unit + .unit { border-top: 1px solid rgba(28, 39, 64, 0.85); }
.unit[data-s="DOWN"] { background: rgba(248, 113, 113, 0.06); }
.unit[data-s="DEGRADED"] { background: rgba(251, 191, 36, 0.045); }
.unit:target, .unit.asked { background: rgba(65, 105, 225, 0.1); box-shadow: inset 3px 0 0 var(--beacon); }
.unit-name { min-width: 0; }
.unit-name b { display: block; font: 500 15px/1.3 var(--font-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.unit-name small { display: block; color: var(--faint); font-size: 12.5px; line-height: 1.3; }
.unit[data-s="DOWN"] .unit-name small.state { color: var(--fault); }
.unit[data-s="DEGRADED"] .unit-name small.state { color: var(--caution); }
.unit[data-s="MAINTENANCE"] .unit-name small.state { color: var(--service); }
.unit[data-s="NO_DATA"] .unit-name small.state { color: var(--dim); }
.unit-up, .unit-ms { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.unit-up { font-size: 14px; }
.unit-ms { color: var(--faint); font-size: 13px; }

/* 90 day strip: one cell per day, oldest left, always in full colour; days with a report say so in their tooltip */
.strip { display: grid; grid-template-columns: repeat(90, minmax(0, 1fr)); gap: 2px; height: 20px; border-radius: 3px; }
.strip i { border-radius: 1.5px; background: color-mix(in srgb, var(--go) 46%, var(--hull)); cursor: pointer; }
.strip i.r { background: var(--caution); }
.strip i.d { background: var(--fault); }
.strip i.m { background: var(--service); }
.strip i.n { background: #1a2335; cursor: default; }
.strip i:hover { filter: brightness(1.4); }
.strip i.on { outline: 2px solid var(--signal); outline-offset: 1px; }

/* ---- history: maintenance and past incidents --------------------------------------------------------------------- */
.logs { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 18px; margin: 32px 0 10px; }
.log { border: 1px solid var(--seam); border-radius: 24px; background: var(--void); overflow: hidden; }
.log h2 { margin: 0; padding: 15px 20px; border-bottom: 1px solid var(--seam); font: 600 20px/1.2 var(--font-display);
  letter-spacing: -0.015em; }
.log > div { padding: 2px 20px 8px; }
.log ol { margin: 0; padding: 0; list-style: none; }
.log li { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; padding: 12px 0; border-top: 1px solid rgba(28, 39, 64, 0.85); }
.log li:first-child { border-top: 0; }
.log li .light { margin-top: 6px; grid-row: 1; }
.log li > :not(.light) { grid-column: 2; }
.log-title { font-weight: 500; }
.log-meta { color: var(--dim); font-size: 13.5px; }
.log-text { color: var(--faint); font-size: 13.5px; }
.log .empty { margin: 4px 0 12px; color: var(--dim); }
.log .more { display: inline-block; margin: 6px 0 12px; font-size: 14px; }

/* ---- footer ------------------------------------------------------------------------------------------------------ */
.foot { margin-top: 32px; padding: 0 0 40px; color: var(--faint); font-size: 13.5px; }
.foot > .wrap { padding: 22px 24px; border: 1px solid var(--seam); border-radius: 24px; background: var(--void); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 10px; padding: 0; list-style: none; color: var(--dim); }
.hint { margin: 0 0 22px; color: var(--dim); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend .light { width: 9px; height: 9px; animation: none; }
.company { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: end; }
.company p, .company address { margin: 0; font-style: normal; line-height: 1.6; }
.copyright { grid-column: 1 / -1; color: var(--dim); }
.legal { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: flex-end; }
.foot a { color: var(--dim); }
.foot a:hover { color: var(--signal); }

/* ---- tooltip and the day popover ------------------------------------------------------------------------------- */
.tip {
  position: fixed;
  z-index: 50;
  max-width: 260px;
  padding: 8px 11px;
  border: 1px solid var(--seam-strong);
  border-radius: 9px;
  background: #0f1626;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  color: var(--signal);
  font-size: 13px;
  line-height: 1.4;
  pointer-events: none;
}
.tip span { display: block; color: var(--dim); }
.tip em { display: block; margin-top: 3px; color: #a9bcf6; font-style: normal; }
.pop {
  position: fixed;
  z-index: 60;
  width: min(380px, calc(100vw - 24px));
  max-height: min(70vh, 520px);
  overflow: auto;
  padding: 16px 18px 14px;
  border: 1px solid var(--seam-strong);
  border-radius: 14px;
  background: #0e1525;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}
.pop-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pop h2 { margin: 0; font: 600 16px/1.35 var(--font-display); }
.pop .pop-sub { margin: 2px 0 0; color: var(--dim); font-size: 13.5px; }
.pop-close {
  flex: none;
  width: 30px;
  height: 30px;
  border: 1px solid var(--seam);
  border-radius: 8px;
  background: transparent;
  color: var(--dim);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.pop-close:hover { color: var(--signal); border-color: var(--seam-strong); }
.pop ol { margin: 12px 0 0; padding: 0; list-style: none; }
.pop li { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 10px 0; border-top: 1px solid rgba(28, 39, 64, 0.85); }
.pop li .light { margin-top: 6px; grid-row: 1; }
.pop li > :not(.light) { grid-column: 2; }
.pop li b { font-weight: 500; }
.pop li span { color: var(--dim); font-size: 13px; }
.pop li a { font-size: 13.5px; width: fit-content; }
.pop .empty { margin: 12px 0 0; color: var(--dim); font-size: 14px; }

/* ---- small screens --------------------------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .logs { grid-template-columns: 1fr; }
  .unit { grid-template-columns: 12px minmax(0, 1fr) 70px; gap: 6px 12px; }
  .unit .strip { grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(30, minmax(0, 1fr)); height: 18px; }
  .unit .strip i:nth-child(-n + 60) { display: none; }
  .unit .unit-up { grid-column: 3; grid-row: 1; }
  .unit-ms { display: none; }
  .company { grid-template-columns: 1fr; }
  .legal { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .topbar-in { flex-wrap: wrap; gap: 0; border-radius: 22px; }
  .toplinks { order: 2; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .toplinks::-webkit-scrollbar { display: none; }
  .jump { top: 100px; }
  .sector-head, .log h2 { padding: 13px 16px; }
  .unit { padding: 11px 16px; }
  .log > div { padding: 2px 16px 8px; }
  .foot > .wrap { padding: 18px 16px; }
  html { scroll-padding-top: 10rem; }
  .hero { padding-top: 26px; gap: 14px; }
  .light-xl { width: 18px; height: 18px; margin-top: 9px; }
  .sector-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .notice { padding: 14px 16px 14px 14px; }
  .pop { left: 12px !important; right: 12px; top: auto !important; bottom: 12px; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .light[data-s="DOWN"] { animation: none; }
}
