/* /relays: one card per outage still going on, the count up front, in the seal's vermilion. Resolved ones are a
   ruled list underneath. */
.relay-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.relay-card {
  border: 1px solid var(--rule-strong);
  border-top: 4px solid var(--rule);
  border-radius: 0;
  background: var(--surface);
}

.relay-card--outage { border-top-color: var(--signal); }

.relay-card__link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 14px 16px 16px;
  color: var(--ink);
}

.relay-card__link:hover { background: var(--accent-soft); text-decoration: none; }

.relay-card__kind {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.relay-card--outage .relay-card__kind { color: var(--signal); font-weight: 600; }

.relay-card__title { font-size: 15px; line-height: 1.35; }

.relay-card__count {
  margin-top: 10px;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.relay-card--outage .relay-card__count { color: var(--signal); }

.relay-card__label { color: var(--muted); font-size: 13px; }

.relay-card__meta { color: var(--muted); font-size: 12px; }
/* Who started it sits at the foot, so the cards in a row line up; the tallest card still keeps a gap above it. */
.relay-card__by { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--rule); }
.relay-card__link > :has(+ .relay-card__by) { margin-bottom: 10px; }

.relay-resolved { margin-top: 12px; }
.relay-resolved h2 { margin-bottom: 6px; color: var(--muted); font-size: 11px; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; }
.relay-resolved ul { margin: 0; padding: 0; list-style: none; }

.relay-resolved li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--rule);
  font-size: 14px;
}

.relay-resolved li .muted { flex: none; font-size: 12px; }

/* An outage's page leads with where it stands, a ruled row per count with the way to them. Who hasn't heard from us
   comes first, in the seal's vermilion: in the rush it's the one thing nobody should miss. */
.relay-standing { padding: 0; }

.relay-standing__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
}

.relay-standing__row + .relay-standing__row { border-top: 1px solid var(--rule); }
.relay-standing__row p { flex: 1; margin: 0; }
.relay-standing__row .button { flex: none; }

/* A fixed width, so each row's words start in one column whatever the count's size. */
.relay-standing__count {
  flex: none;
  width: 44px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.relay-standing__row--todo { padding-left: 12px; border-left: 4px solid var(--signal); background: color-mix(in srgb, var(--signal) 7%, var(--surface)); }
.relay-standing__row--todo .relay-standing__count { color: var(--signal); font-size: 32px; }
.relay-standing__row--todo p { font-weight: 600; }
.relay-standing__row--done { color: var(--muted); }
.relay-standing__row--done .icon { flex: none; width: 44px; }

/* The notice customers read while it's open (Relay::Notice), quoted as they'll see it. */
.relay-notice__words { margin: 0 0 8px; padding: 2px 0 2px 14px; border-left: 3px solid var(--rule); font-size: 15px; }
.relay-notice .muted { margin: 0; }
.relay-notice__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.relay-notice__actions form { margin: 0; }
