/* The public status page (status.html).
 *
 * A separate stylesheet rather than rules in site.css, the same bargain widgets.css already makes:
 * this is the only page that needs a state colour, and putting three status hues into the global
 * sheet would put them in front of every other page's author as though they were part of the
 * system. They are not. They are this page's vocabulary.
 *
 * WHY NEW COLOURS AT ALL. brand/tokens/colors.css carries exactly one semantic state token,
 * --danger. There is no success and no warning, because until this page nothing on the marketing
 * site had a state to report. The two added here are scoped to this file and named for what they
 * mean on this page, not for a colour, so a later design pass can retune them in one place. */

:root {
  /* Green and amber chosen to sit beside --ember (#e27f48) without competing with it, and to stay
   * legible on the light ground the marketing pages hard-set. Both clear 4.5:1 on #ffffff as text
   * and are used here only as small dots and short labels. */
  --status-ok: #2f7d4f;
  --status-degraded: #9a6a1e;
  /* Down reuses the existing danger token rather than inventing a third red. */
  --status-down: var(--danger);
}

.p-status {
  padding: 72px 0 96px;
}

.status-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0 6px;
}

.status-head h1 {
  margin: 0;
}

/* The dot is decoration; the words beside it carry the meaning. Never the only signal, because a
 * status page that says "it is green" and nothing else says nothing to a colour-blind reader. */
.status-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex: 0 0 14px;
  background: var(--text-faint);
}

.status-dot--ok {
  background: var(--status-ok);
}

.status-dot--degraded {
  background: var(--status-degraded);
}

.status-dot--down {
  background: var(--status-down);
}

.status-checked {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0 0 40px;
}

.status-lanes {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  max-width: 640px;
}

.status-lane {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-faint);
}

.status-lane:last-child {
  border-bottom: 0;
}

.status-lane-name {
  font-weight: 600;
}

.status-lane-note {
  display: block;
  font-weight: 400;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 2px;
}

.status-lane-state {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  white-space: nowrap;
}

.status-note {
  max-width: 640px;
  margin-top: 32px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 560px) {
  .status-lane {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}
