/* THOST status page. Brand: www-site/site/assets/theme-dark.css (Barlow / Barlow Condensed, orange #ff6a1a, navy #0d1428).
   Light by default; dark follows the system unless the visitor picks one (data-theme on <html>, set by theme.js). */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/Barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/Barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/Barlow-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/BarlowCondensed-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/BarlowCondensed-800.woff2") format("woff2"); }
@font-face { font-family: "Barlow Fallback"; src: local("Arial"), local("Helvetica"), local("Liberation Sans"); size-adjust: 96%; ascent-override: 98%; descent-override: 22%; line-gap-override: 0%; }
@font-face { font-family: "Barlow Condensed Fallback"; src: local("Arial Narrow"), local("Liberation Sans Narrow"), local("Arial"); size-adjust: 88%; ascent-override: 98%; descent-override: 22%; line-gap-override: 0%; }

:root {
  color-scheme: light;
  --bg: #f5f7fb; --surface: #ffffff; --surface-2: #eef2f8; --ink: #0d1428; --text: #16202b; --muted: #5b6875;
  --border: rgba(13, 20, 40, 0.12); --accent: #ff6a1a; --accent-d: #c2410c; --link: #4f46e5;
  --ok: #15803d; --deg: #a16207; --part: #c2410c; --maj: #b91c1c; --mnt: #1d4ed8; --unk: #64748b; --nodata: #cbd5e1;
  --ok-bar: #22a35a; --deg-bar: #eab308; --part-bar: #f97316; --maj-bar: #dc2626; --mnt-bar: #3b82f6;
  --head: "Barlow Condensed", "Barlow Condensed Fallback", "Arial Narrow", Impact, sans-serif;
  --body: "Barlow", "Barlow Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 12px 32px rgba(16, 24, 40, 0.08);
  --radius: 16px; --max: 980px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #070a12; --surface: #111a30; --surface-2: #0f172a; --ink: #ffffff; --text: #e8edf8; --muted: #9aa8c2;
    --border: rgba(148, 163, 184, 0.18); --link: #a99cff; --accent-d: #ff8a4d;
    --ok: #34d399; --deg: #fcd34d; --part: #fdba74; --maj: #fca5a5; --mnt: #93c5fd; --unk: #94a3b8; --nodata: #334155;
    --ok-bar: #22c55e; --deg-bar: #eab308; --part-bar: #f97316; --maj-bar: #ef4444; --mnt-bar: #60a5fa;
    --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 12px 34px rgba(0,0,0,.5);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070a12; --surface: #111a30; --surface-2: #0f172a; --ink: #ffffff; --text: #e8edf8; --muted: #9aa8c2;
  --border: rgba(148, 163, 184, 0.18); --link: #a99cff; --accent-d: #ff8a4d;
  --ok: #34d399; --deg: #fcd34d; --part: #fdba74; --maj: #fca5a5; --mnt: #93c5fd; --unk: #94a3b8; --nodata: #334155;
  --ok-bar: #22c55e; --deg-bar: #eab308; --part-bar: #f97316; --maj-bar: #ef4444; --mnt-bar: #60a5fa;
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 12px 34px rgba(0,0,0,.5);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.55; color: var(--text); background: var(--bg); }
a { color: var(--link); text-underline-offset: 2px; }
h1, h2, h3 { font-family: var(--head); color: var(--ink); line-height: 1.1; margin: 0; letter-spacing: .01em; }
p { margin: 0 0 .8em; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: #0d1428; padding: .5rem 1rem; z-index: 100; font-weight: 700; }
.skip:focus { left: .5rem; top: .5rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--surface) 85%, transparent); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; font-family: var(--head); font-weight: 800; font-size: 1.5rem; letter-spacing: .04em; text-transform: uppercase; }
.brand svg rect { fill: var(--accent); }
.brand-sub { color: var(--accent-d); }
.nav { display: flex; align-items: center; gap: 1.1rem; }
.nav a { color: var(--muted); text-decoration: none; font-family: var(--head); font-weight: 700; font-size: 1.02rem; letter-spacing: .08em; text-transform: uppercase; }
.nav a:hover { color: var(--ink); }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); cursor: pointer; }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .sun { display: none; }
.is-dark .theme-toggle .sun { display: block; } .is-dark .theme-toggle .moon { display: none; }
@media (max-width: 640px) { .nav a { display: none; } .brand { font-size: 1.3rem; } }

/* Overall status */
main { padding: 2rem 0 3rem; }
.hero { --c: var(--ok); background: var(--surface); border: 1px solid var(--border); border-left: 6px solid var(--c); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.4rem 1.5rem; margin-bottom: 1.5rem; }
.hero.degraded { --c: var(--deg-bar); } .hero.partial_outage { --c: var(--part-bar); } .hero.major_outage { --c: var(--maj-bar); }
.hero.maintenance { --c: var(--mnt-bar); } .hero.unknown { --c: var(--unk); }
.eyebrow { font-family: var(--head); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-d); font-size: .95rem; margin-bottom: .35rem; }
.hero h1 { display: flex; align-items: center; gap: .6rem; font-size: clamp(1.9rem, 5vw, 2.7rem); font-weight: 800; text-transform: uppercase; }
.hero h1 .ico { width: 2.2rem; height: 2.2rem; flex: none; border-radius: 999px; padding: .35rem; background: var(--c); stroke: #fff; }
.updated { color: var(--muted); margin: .6rem 0 0; font-size: .98rem; }

.ico { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* Notices */
.notice { border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.5rem; border: 1px solid var(--border); }
.notice.stale { background: color-mix(in srgb, var(--deg-bar) 14%, var(--surface)); border-color: color-mix(in srgb, var(--deg-bar) 55%, transparent); }
.notice h2 { font-size: 1.35rem; text-transform: uppercase; margin-bottom: .3rem; }
.notice p { margin: 0; }
.sec-title { font-size: 1.45rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; margin: 2rem 0 .8rem; }

/* Components */
.comps { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.comp { padding: 1.05rem 1.25rem 1rem; border-top: 1px solid var(--border); }
.comp:first-child { border-top: 0; }
.comp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.comp h3 { font-size: 1.3rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.desc { color: var(--muted); font-size: .95rem; margin: .1rem 0 0; }
.state { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; margin: 0; flex-wrap: wrap; }
.state.operational { color: var(--ok); } .state.degraded { color: var(--deg); } .state.partial_outage { color: var(--part); }
.state.major_outage { color: var(--maj); } .state.maintenance { color: var(--mnt); } .state.unknown { color: var(--unk); }
.since { font-weight: 500; color: var(--muted); font-size: .9rem; width: 100%; text-align: right; }
.is-stale .state { color: var(--unk); }

.bars-wrap { margin-top: .75rem; }
.bars { list-style: none; display: flex; gap: 2px; height: 34px; margin: 0; padding: 0; }
.bar { flex: 1 1 0; min-width: 0; border-radius: 2px; background: var(--ok-bar); cursor: default; }
.bar.degraded { background: var(--deg-bar); } .bar.partial_outage { background: var(--part-bar); } .bar.major_outage { background: var(--maj-bar); }
.bar.maintenance { background: var(--mnt-bar); } .bar.nodata { background: var(--nodata); }
.bar:hover, .bar.sel { filter: brightness(.82); }
.is-stale .bar { opacity: .55; }
.bars-legend { display: flex; justify-content: space-between; color: var(--muted); font-size: .82rem; margin-top: .3rem; gap: .5rem; }
.bars-legend .from30, .bars-legend .mid30 { display: none; }
.tip { min-height: 1.3em; font-size: .88rem; color: var(--muted); margin: .2rem 0 0; }
@media (max-width: 640px) {
  .bar:nth-child(-n+60) { display: none; }
  .bars-legend .from90, .bars-legend .mid90 { display: none; } .bars-legend .from30, .bars-legend .mid30 { display: inline; }
  .since { text-align: left; }
}
.legend { color: var(--muted); font-size: .88rem; margin-top: .8rem; display: flex; flex-wrap: wrap; gap: .35rem .9rem; align-items: center; }
.legend .k { display: inline-block; width: .8rem; height: .8rem; border-radius: 2px; margin-right: -.55rem; vertical-align: -1px; }
.k.operational { background: var(--ok-bar); } .k.degraded { background: var(--deg-bar); } .k.partial_outage { background: var(--part-bar); }
.k.major_outage { background: var(--maj-bar); } .k.maintenance { background: var(--mnt-bar); } .k.nodata { background: var(--nodata); }

/* Incidents */
.incident { --c: var(--deg-bar); background: var(--surface); border: 1px solid var(--border); border-left: 5px solid var(--c); border-radius: 12px; margin-bottom: .8rem; }
.incident.partial_outage { --c: var(--part-bar); } .incident.major_outage { --c: var(--maj-bar); } .incident.maintenance { --c: var(--mnt-bar); }
.incident.operational { --c: var(--ok-bar); }
.incident details { padding: .9rem 1.1rem; }
.incident summary { cursor: pointer; display: flex; justify-content: space-between; gap: .8rem; align-items: center; list-style: none; }
.incident summary::-webkit-details-marker { display: none; }
.incident summary::before { content: "▸"; color: var(--muted); margin-right: -.3rem; }
.incident details[open] summary::before { content: "▾"; }
.inc-title { font-weight: 700; color: var(--ink); flex: 1; font-size: 1.08rem; }
.pill { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; padding: .15rem .6rem; border-radius: 999px; border: 1px solid var(--c, var(--border)); color: var(--text); white-space: nowrap; }
.inc-when, .inc-comps { color: var(--muted); font-size: .95rem; margin: .6rem 0 0; }
.updates { list-style: none; margin: .7rem 0 0; padding: 0; }
.updates li { border-top: 1px solid var(--border); padding: .6rem 0 .1rem; }
.upd-head { margin: 0 0 .25rem; font-size: .95rem; } .upd-head time { color: var(--muted); margin-left: .4rem; }
.permalink { font-size: .85rem; margin: .3rem 0 0; }
.about p { color: var(--muted); }

/* Footer */
.site-footer { background: #0d1428; color: #9aa8c2; padding: 1.4rem 0; font-size: .92rem; }
.site-footer a { color: #cbd5ee; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; }

@media (prefers-reduced-motion: no-preference) { .bar { transition: filter .12s; } }
@media print { .site-header, .theme-toggle, .bars-wrap { display: none; } }
