/* Status page. Layout follows a classic "system status" page; colors and components come from the main site. */
.st { padding-bottom: 72px; }
.st-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 40px 0 8px; }
.st-head h1 { margin: 0; font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1.1; }

.st-tabs { display: inline-flex; gap: 4px; margin: 22px 0 28px; padding: 5px; background: var(--panel); border: 2px solid var(--panel-hi); border-radius: 999px; }
.st-tabs button { min-height: 42px; padding: 0 20px; background: transparent; color: var(--muted); border: 0; border-radius: 999px; font: 600 1rem var(--font-body); cursor: pointer; transition: background 0.15s, color 0.15s; }
.st-tabs button:hover { color: #fff; }
.st-tabs button[aria-selected="true"] { background: var(--lime); color: #0b1204; }

.st-load, .st-error { margin: 0 0 24px; color: var(--muted); }
.st-error { padding: 16px 18px; background: #3f1010; border: 2px solid var(--red); border-radius: 10px; color: #fff; }

.st-overall { display: flex; align-items: center; gap: 18px; padding: 24px 26px; margin-bottom: 36px; background: #17370f; border: 2px solid var(--lime-deep); border-radius: 10px; }
.st-overall h2 { margin: 0; font-size: 1.6rem; line-height: 1.2; }
.st-overall p { margin: 4px 0 0; color: var(--muted); }
.st-overall-icon { flex: none; display: block; line-height: 0; }
.st-overall[data-state="partial"] { background: #3d2a08; border-color: #d99a2b; }
.st-overall[data-state="down"] { background: #3f1010; border-color: var(--red); }

.st-h { margin: 0 0 14px; font-size: 1.5rem; line-height: 1.2; }
.st-h-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.st-link { background: none; border: 0; padding: 0; color: var(--lime); font: 600 1rem var(--font-body); cursor: pointer; }
.st-link:hover { text-decoration: underline; }
.st-list { display: grid; gap: 12px; margin-bottom: 40px; }
.st-empty { margin: 0; padding: 18px 20px; background: var(--panel); border-radius: 10px; color: var(--muted); }

/* incident and maintenance cards */
.st-card { background: var(--tint, #3d2a08); border: 2px solid var(--edge, #d99a2b); border-radius: 10px; }
.st-card.info { --tint: #0d2a3a; --edge: #2b8fc7; }
.st-card.warning { --tint: #3d2a08; --edge: #d99a2b; }
.st-card.danger { --tint: #3f1010; --edge: var(--red); }
.st-card.primary { --tint: #17370f; --edge: var(--lime-deep); }
.st-card.light, .st-card.dark { --tint: #1a2030; --edge: #3a4660; }
.st-card.maintenance { --tint: #0d3a34; --edge: #22a58d; }
.st-card button { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; padding: 18px 20px; background: none; border: 0; color: #fff; text-align: left; font: inherit; cursor: pointer; }
.st-card h3 { margin: 0; font-size: 1.15rem; line-height: 1.3; }
.st-card .meta { display: block; margin-top: 4px; color: var(--muted); font-size: 0.92rem; }
.st-tile { flex: none; display: block; line-height: 0; margin-right: 14px; }
.st-card button { justify-content: flex-start; }
.st-card .chev { margin-left: auto; }
.st-card .chev { flex: none; width: 10px; height: 10px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); transition: transform 0.2s; }
.st-card button[aria-expanded="true"] .chev { transform: rotate(-135deg); }
.st-card .body { padding: 0 20px 18px; white-space: pre-line; overflow-wrap: anywhere; }

/* services */
.st-group { margin-bottom: 28px; padding: 24px; background: var(--panel); border: 2px solid var(--panel-hi); border-radius: 10px; }
.st-group > h2 { margin: 0 0 6px; font-size: 1.3rem; }
.st-mon { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; padding: 16px 0 6px; }
.st-mon h3 { margin: 0; font-size: 1.1rem; }
.st-badge { padding: 3px 12px; border-radius: 999px; font-size: 0.88rem; font-weight: 700; background: var(--lime); color: #0b1204; }
.st-badge.down { background: var(--red); color: #fff; }
.st-badge.pending, .st-badge.maint { background: #f2b544; color: #0b1204; }
.st-badge.unknown { background: var(--panel-hi); color: #fff; }
.st-bars { grid-column: 1 / -1; display: flex; gap: 3px; height: 34px; }
.st-bars i { flex: 1 1 0; min-width: 3px; border-radius: 3px; background: var(--panel-hi); }
.st-bars i.up { background: var(--lime); }
.st-bars i.down { background: var(--red); }
.st-bars i.pending, .st-bars i.maint { background: #f2b544; }
.st-sub { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 0.9rem; }

.st-updated { margin: 8px 0 0; color: var(--muted); font-size: 0.92rem; }

@media (max-width: 600px) {
  .st-overall { padding: 18px; }
  .st-tabs { display: flex; }
  .st-tabs button { flex: 1; padding: 0 8px; }
  .st-head .btn { width: 100%; }
}
