/* The public status page. Colours come from styles.css; three more for states. */
:root { --st-bad: #ff6b5e; --st-some: #e3b341; --st-none: color-mix(in srgb, var(--muted) 28%, transparent); }
@media (prefers-color-scheme: light) { :root { --st-bad: #c0362c; --st-some: #a06a00; } }
.status-page { max-width: 880px; margin: 0 auto; padding: 0 20px 80px; }
.st-hero { padding: 64px 0 28px; }
.st-hero .eyebrow { color: var(--blue-text); font-weight: 600; font-size: 14px; margin: 0 0 10px; }
.st-hero h1 { margin: 0; font-size: clamp(30px, 5vw, 44px); line-height: 1.12; letter-spacing: -0.025em; display: flex; align-items: center; gap: 16px; }
.st-hero h1::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--st-none); box-shadow: 0 0 0 6px color-mix(in srgb, currentColor 0%, transparent); }
.st-hero.operational h1::before { background: var(--ok); box-shadow: 0 0 0 6px color-mix(in srgb, var(--ok) 20%, transparent); }
.st-hero.degraded h1::before, .st-hero.maintenance h1::before { background: var(--st-some); box-shadow: 0 0 0 6px color-mix(in srgb, var(--st-some) 20%, transparent); }
.st-hero.down h1::before, .st-hero.stale h1::before { background: var(--st-bad); box-shadow: 0 0 0 6px color-mix(in srgb, var(--st-bad) 20%, transparent); }
.st-hero .lead { margin: 14px 0 0; color: var(--muted); }
.st-card, .st-now { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; margin-top: 18px; }
.st-now { border-color: color-mix(in srgb, var(--st-some) 55%, var(--line)); }
.st-now.down { border-color: color-mix(in srgb, var(--st-bad) 55%, var(--line)); }
.st-bar { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.st-bar h2, .st-note h2 { margin: 0; font-size: 18px; letter-spacing: -0.01em; }
.status-page > section > .st-bar { margin-top: 44px; }
.st-muted { color: var(--muted); font-size: 14px; } .st-small { font-size: 13px; margin: 12px 0 0; }
.st-part { padding: 16px 0; border-top: 1px solid var(--line); }
.st-part:first-child { border-top: 0; margin-top: 8px; }
.st-part-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.st-part-name { font-weight: 600; font-size: 15px; }
.st-state { font-size: 14px; color: var(--ok); white-space: nowrap; }
.st-state.degraded, .st-state.maintenance { color: var(--st-some); } .st-state.down { color: var(--st-bad); } .st-state.unknown { color: var(--muted); }
.st-days { display: grid; grid-template-columns: repeat(90, 1fr); gap: 2px; margin-top: 10px; height: 30px; }
.st-days i { display: block; border-radius: 2px; background: var(--st-none); }
.st-days i.up { background: var(--ok); } .st-days i.some { background: var(--st-some); } .st-days i.bad { background: var(--st-bad); }
.st-part-foot { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--muted); }
.st-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.st-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sq { display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: var(--st-none); }
.sq.up { background: var(--ok); } .sq.some { background: var(--st-some); } .sq.bad { background: var(--st-bad); }
.st-chart { margin-top: 14px; height: 120px; }
.st-chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.st-chart .line { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.st-chart .area { fill: var(--glow); stroke: none; }
.st-chart .grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.st-incident { border-top: 1px solid var(--line); padding: 18px 0; }
.st-incident:first-child { border-top: 0; }
.st-incident h3 { margin: 0; font-size: 16px; }
.st-incident .when { color: var(--muted); font-size: 13px; margin: 4px 0 0; }
.st-incident ul { list-style: none; margin: 12px 0 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); display: grid; gap: 10px; font-size: 15px; }
.st-incident li time { display: block; color: var(--muted); font-size: 12px; }
.st-tag { display: inline-block; margin-left: 8px; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 500; vertical-align: 2px; color: var(--muted); background: color-mix(in srgb, var(--muted) 16%, transparent); }
.st-tag.open { color: var(--st-bad); background: color-mix(in srgb, var(--st-bad) 14%, transparent); }
.st-tag.maintenance { color: var(--st-some); background: color-mix(in srgb, var(--st-some) 14%, transparent); }
.st-note { margin-top: 48px; color: var(--muted); font-size: 15px; } .st-note h2 { color: var(--text); margin-bottom: 8px; }
@media (max-width: 640px) { .st-days { grid-template-columns: repeat(45, 1fr); } .st-days i:nth-child(-n+45) { display: none; } .st-card, .st-now { padding: 18px; } .st-hero { padding-top: 40px; } }
.status-page > section { display: block; max-width: none; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
.status-page > section[hidden] { display: none; }
.status-page > .st-card { padding: 22px 24px; }
.st-hero h1 { max-width: none; }
.st-now .st-incident { padding: 0; }
@media (max-width: 640px) { .status-page > .st-card { padding: 18px; } }
