/*
 * Public status page (BLS-045, FE-DSH-08/10). Extends /legal/legal.css (palette and layout);
 * no external resources.
 */
.status-card {
  margin: 24px 0;
  padding: 4px 18px 18px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--surface);
}
.status-card h2 { margin-top: 16px; padding-top: 0; border-top: 0; }

.status-list { margin: 0; }
.status-list > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line-2);
}
.status-list dt { color: var(--muted); }
.status-list dd { margin: 0; font-weight: 600; color: var(--heading); }

.status-value::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--muted);
  vertical-align: 0;
}
.status-value[data-state="up"]::before,
.status-value[data-state="open"]::before,
.status-value[data-state="on"]::before { background: #4fd18b; }
.status-value[data-state="down"]::before { background: #ff6b6b; }
.status-value[data-state="closed"]::before,
.status-value[data-state="paused"]::before,
.status-value[data-state="test"]::before,
.status-value[data-state="degraded"]::before,
.status-value[data-state="unknown"]::before { background: var(--warn-line); }
.status-value[data-state="pending"]::before { background: transparent; border: 1px solid var(--muted); }

.status-detail { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.status-detail:empty { display: none; }

.status-regions h3 { margin: 16px 0 0; font-size: 16px; }
.status-region-note { display: block; font-weight: 400; color: var(--muted); font-size: 13px; margin-top: 2px; }

.status-incident-list { list-style: none; margin: 8px 0 24px; padding: 0; }
.status-incident-list > li {
  margin: 0 0 12px;
  padding: 12px 16px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--surface);
}
.status-incident-list > li.status-note { color: var(--muted); }
.status-incident[data-state="investigating"],
.status-incident[data-state="identified"] { border-color: var(--warn-line); }
.status-incident p { margin: 6px 0 0; }
.status-incident-head { margin-top: 0; }
.status-incident-state { color: var(--muted); font-size: 14px; white-space: nowrap; }

.status-button {
  margin-top: 14px;
  padding: 10px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 650 15px/1.2 var(--sans);
  cursor: pointer;
}
.status-button:hover { background: var(--link-hover); }
.status-button:focus-visible { outline: 2px solid var(--link-hover); outline-offset: 2px; }
.status-button:disabled { opacity: .6; cursor: progress; }

@media print {
  .status-card { background: #fff; color: #000; }
  .status-button { display: none; }
}
