/* The status page on the frame of his.css. A day's availability is the height of its bar, so status colours stay in the message and the tags. */

.his-main h2 { margin: 32px 0 8px; font-size: 1.125rem; }

.languages { display: flex; gap: 4px; }
.languages button {
  min-width: 44px;
  min-height: 36px;
  padding: 4px 12px;
  border: 1px solid var(--his-border);
  border-radius: 999px;
  background: transparent;
  color: var(--his-text);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}
.languages button[aria-pressed="true"] { border-color: var(--his-action); background: var(--his-action); color: var(--his-on-action); }

#banner { margin: 0; font-weight: 500; }
#banner:empty { display: none; }
#banner.ok { background: var(--his-ok-bg); color: var(--his-ok-text); }
#banner.warn { background: var(--his-warn-bg); color: var(--his-warn-text); }
#banner.bad { background: var(--his-crit-bg); color: var(--his-crit-text); }

ul { margin: 0; padding: 0; list-style: none; }
.services, #maintenance, #incidents {
  overflow: hidden;
  border: 1px solid var(--his-border);
  border-radius: 14px;
  background: var(--his-card);
}
.services:empty, #maintenance:empty, #incidents:empty { display: none; }
.services > li, #maintenance > li, #incidents > li { padding: 12px 16px; }
.services > li + li, #maintenance > li + li, #incidents > li + li { border-top: 1px solid var(--his-border); }

.row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; }
.name { color: var(--his-navy); font-weight: 500; overflow-wrap: anywhere; }
.meta { color: var(--his-grey); font-size: 0.875rem; }

.state-operational, .state-degraded, .state-maintenance, .state-down, .state-unknown {
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
}
.state-operational { background: var(--his-ok-bg); color: var(--his-ok-text); }
.state-degraded, .state-maintenance { background: var(--his-warn-bg); color: var(--his-warn-text); }
.state-down { background: var(--his-crit-bg); color: var(--his-crit-text); }
.state-unknown { background: var(--his-neutral-bg); color: var(--his-grey); }

.bars { display: flex; align-items: flex-end; gap: 1px; height: 24px; margin: 8px 0 4px; }
.bars span { flex: 1 1 0; min-width: 1px; height: 100%; border-radius: 1px; background: var(--his-border); }
.bars .bar-full { background: var(--his-accent); }
.bars .bar-high { height: 60%; background: var(--his-accent); }
.bars .bar-low { height: 25%; background: var(--his-accent); }
