/* ============================================================================
   liveops.css — LIVE OPERATIONS page components (templates/liveops.html).
   Loaded after site.css (see WIRING-liveops.md); uses its tokens and its
   .frame / .frames styles for the dashboard embeds — those are shared with
   infra.html and deliberately not redefined here.
   Sections: 1 incident history · 2 serving strip · 3 responsive
   ========================================================================== */

/* 1 ── Incident history --------------------------------------------------- */
.incident-log {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}

.incident-log__row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  padding: 1.05rem 1.15rem;
  border-bottom: 1px solid var(--line);
}

.incident-log__row:last-child {
  border-bottom: 0;
}

.incident-log__date {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--accent-dim);
  padding-top: 0.2rem;
  white-space: nowrap;
}

.incident-log__body {
  min-width: 0;
  display: grid;
  gap: 0.3rem;
}

.incident-log__title {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.incident-log__outcome {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 72ch;
}

.incident-log__link {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--sky);
  text-decoration: none;
  white-space: nowrap;
  padding-top: 0.25rem;
}

.incident-log__link:hover {
  text-decoration: underline;
}

/* 2 ── Serving strip ------------------------------------------------------ */
.serving {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}

.serving__item {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.05rem 1.1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.serving__item:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.serving__k {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dim);
}

.serving__d {
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--muted);
}

/* 3 ── Responsive (mirrors site.css breakpoints) -------------------------- */
@media (max-width: 980px) {
  .serving {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .serving {
    grid-template-columns: minmax(0, 1fr);
  }

  /* date · title · link stack; the date keeps its column reading order */
  .incident-log__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.35rem;
  }

  .incident-log__date,
  .incident-log__link {
    padding-top: 0;
  }
}
