:root {
  color-scheme: light;
  font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #192832;
  background: #fbfcfc;
  --muted: #4c606b;
  --line: #d9e2e4;
  --accent: #3d39ff;
  --state: #647580;
  --wash: #f2f5f6;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
h1, h2, h3, p, ul { margin: 0; }
h2 { font-size: 1rem; font-weight: 650; }
a { color: var(--accent); text-underline-offset: .2em; }
.shell { width: min(100% - 3rem, 720px); margin-inline: auto; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 32px 24px; font-size: .875rem; }
.wordmark { display: inline-flex; align-items: center; gap: .65rem; color: inherit; text-decoration: none; }
.wordmark-logo { display: block; width: 112px; height: auto; }
.wordmark span { font-size: 1.125rem; font-weight: 580; }
.skip-link { position: absolute; z-index: 2; transform: translateY(-150%); padding: .5rem; background: #fff; }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

[data-state="operational"] { --state: #08775f; --wash: #e7f5ee; }
[data-state="degraded"] { --state: #835300; --wash: #fff5d9; }
[data-state="partial"] { --state: #a0471c; --wash: #fff2e8; }
[data-state="major"] { --state: #a62d3a; --wash: #fbecef; }
[data-state="maintenance"] { --state: #365d99; --wash: #eef3fa; }
[data-state="unknown"] { --state: #566773; --wash: #f0f3f4; }
.summary { border: 1px solid var(--line); border-inline-start: 4px solid var(--state); border-radius: 5px; background: var(--wash); padding: 17px 19px; }
.summary h1 { font-size: 1.125rem; font-weight: 670; }
.summary p { color: var(--muted); margin-top: 3px; font-size: .875rem; }
.fixture-label { color: var(--muted); margin-top: 8px; font-size: .75rem; letter-spacing: .06em; }
.active-incidents, .status-panel, .past-incidents { margin-top: 24px; }
.active-incidents > h2 { margin-bottom: 7px; }
.status-panel { border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; padding: 13px 16px; }
.section-head p, .legend, .empty { color: var(--muted); font-size: .875rem; }
.group, .legend { border-top: 1px solid var(--line); }
.group-toggle, .incident > summary { display: block; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.group-toggle { padding: 12px 16px 14px; }
.group-toggle:hover { background: #f5f8f8; }
.group-line, .component-line, .incident-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; }
.group-line { font-size: .9375rem; font-weight: 630; }
.group-title { display: inline-flex; align-items: center; gap: .65rem; }
.group-title::before, .incident-title::before { content: ""; width: .42rem; height: .42rem; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: translateY(-.1rem) rotate(-45deg); flex: 0 0 auto; }
.group[open] .group-title::before, .incident[open] .incident-title::before { transform: translateY(-.2rem) rotate(45deg); }
.state { color: var(--state); font-size: .8125rem; font-weight: 625; text-align: end; }
.track, .bars { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 3px; }
.track { margin-top: 8px; }
.track span { height: 11px; border-radius: 2px; background: var(--state); }
.track [data-state="unknown"], .bar[data-state="unknown"] { --state: #d7dfe2; }
.component { margin-inline: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.component h3 { font-size: .9375rem; font-weight: 640; }
.bars { position: relative; margin: 6px -3px 0; padding: 3px; grid-template-columns: repeat(30, minmax(20px, 1fr)); overflow: auto; }
.bar { padding: 0; cursor: pointer; height: 24px; border: 0; background: none; }
.bar::before { content: ""; display: block; height: 12px; border-radius: 2px; background: var(--state); }
.bar[aria-pressed="true"]::before { box-shadow: 0 2px 0 #192832; }
.component-baseline { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem .7rem; font-size: .8125rem; color: var(--muted); }
.observations { margin-top: 6px; color: var(--muted); font-size: .8125rem; }
.observations summary { cursor: pointer; width: fit-content; color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
.observations p { margin-top: 4px; }
.day-detail { color: #192832; }
.legend, .empty { padding: 10px 16px; }
.legend-mark { display: inline-block; width: .65rem; height: .65rem; margin-inline-end: 3px; border-radius: 2px; background: #d7dfe2; }
.incident { border-top: 1px solid var(--line); padding: 10px 0; }
.incident-title { display: inline-flex; align-items: center; gap: .65rem; font-size: .9375rem; font-weight: 640; }
.incident-time { color: var(--muted); font-size: .8125rem; }
.incident ul { padding: 5px 0 0 17px; list-style: none; }
.incident li { margin-top: 8px; font-size: .875rem; }
.incident > a { display: inline-block; margin: 8px 0 0 17px; }
.past-incidents .section-head { padding-inline: 0; }
footer { color: var(--muted); font-size: .8125rem; padding-block: 20px 28px; margin-top: 16px; border-top: 1px solid var(--line); }
@media (max-width: 520px) {
  .shell { width: calc(100% - 2rem); }
  .masthead { padding-block: 24px 18px; }
  .group-toggle, .section-head, .legend { padding-inline: 12px; }
  .component { margin-inline: 12px; }
  .group-toggle { padding-block: 15px; }
  .track, .status-panel:not(:has(.group[open])) .legend { display: none; }
  .bars { grid-template-columns: repeat(30, minmax(24px, 1fr)); }
}
.state::before { content: ""; display: inline-block; width: .45rem; height: .45rem; margin: 0 .35rem .07rem 0; border-radius: 50%; background: var(--state); }
.incident > .incident-time { margin-left: 17px; }
