/* ===== Status page styles ===== */
:root {
  --brand: #006ab0;
  --brand-ink: #00598f;
  --ink: #16202b;
  --muted: #5d6b78;
  --faint: #8896a3;
  --bg: #f4f6f9;
  --card: #ffffff;
  --line: #e4e9ef;
  --line-strong: #d3dbe3;

  --ok: #2f9e54;
  --ok-bg: #eaf6ee;
  --ok-line: #bfe3cb;

  --warn: #d98a00;
  --warn-bg: #fdf3e1;
  --warn-line: #f2d9a8;

  --resolved: #2f9e54;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body { min-height: 100vh; }

.page {
  max-width: 760px;
  margin: 0 auto;
  background: var(--card);
  min-height: 100vh;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

/* ---------- header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 34px 20px;
}
.logo { height: 30px; width: auto; display: block; }
.dc-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 13px 6px 11px;
  letter-spacing: 0.2px;
}
.dc-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(0,106,176,0.15);
}

/* ---------- rainbow divider ---------- */
.rainbow {
  height: 3px;
  width: 100%;
  background: linear-gradient(to right,
    #ade0ff 0% 14.2857142857%,
    #54c0ff 14.2857142857% 28.5714285714%,
    #1692db 28.5714285714% 42.8571428571%,
    #51ad2e 42.8571428571% 57.1428571429%,
    #f8af19 57.1428571429% 71.4285714286%,
    #d43f2d 71.4285714286% 85.7142857143%,
    #eb5aa0 85.7142857143% 100%);
}

/* ---------- content ---------- */
.content { padding: 30px 34px 48px; }
.content-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}
.eyebrow {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.updated {
  font-size: 11.5px;
  color: var(--faint);
  letter-spacing: 0.2px;
}
.updated time, .incident-meta time {
  font-family: "IBM Plex Mono", monospace;
}

/* ---------- hero status ---------- */
.hero {
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: 14px;
  padding: 20px 22px;
  border: 1px solid transparent;
}
.hero-ok { background: var(--ok-bg); border-color: var(--ok-line); }
.hero-warn { background: var(--warn-bg); border-color: var(--warn-line); }
.hero-icon {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #fff;
}
.hero-icon.ok { color: var(--ok); box-shadow: 0 1px 2px rgba(47,158,84,0.25); }
.hero-icon.warn { color: var(--warn); box-shadow: 0 1px 2px rgba(217,138,0,0.25); }
.hero-text { flex: 1 1 auto; }
.hero-text h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.hero-text p {
  margin: 3px 0 0;
  font-size: 15px;
  color: var(--muted);
}
.hero-tag {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 5px 12px;
  border-radius: 999px;
  align-self: flex-start;
}
.tag-ok { color: var(--ok); background: #fff; border: 1px solid var(--ok-line); }
.tag-warn { color: var(--warn); background: #fff; border: 1px solid var(--warn-line); }

/* ---------- section label ---------- */
.section-label {
  margin: 32px 0 14px;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--faint);
}

/* ---------- incident card ---------- */
.incident {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px 8px;
  background: #fff;
}
.incident.is-muted { background: #fcfdfe; }
.incident-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.incident-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
}
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-active { color: var(--warn); background: var(--warn-bg); border: 1px solid var(--warn-line); }
.pill-resolved { color: var(--resolved); background: var(--ok-bg); border: 1px solid var(--ok-line); }
.action-flag {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--brand);
  background: rgba(0,106,176,0.08);
  border: 1px solid rgba(0,106,176,0.22);
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.2px;
}
.incident-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--faint);
}
.dotsep { color: var(--line-strong); }

/* ---------- timeline ---------- */
.timeline {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 6px;
}
.tl-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
}
.tl-when {
  text-align: right;
  padding-top: 16px;
  line-height: 1.4;
}
.tl-when b {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.tl-when span {
  font-size: 10.5px;
  color: var(--faint);
}
.tl-entry {
  position: relative;
  padding: 16px 0 18px 22px;
}
.tl-entry::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 25px;
  height: 100%;
  width: 2px;
  background: var(--line-strong);
}
.tl-row:last-child .tl-entry::before { display: none; }
.tl-node {
  position: absolute;
  left: -7px; top: 19px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--faint);
}
.k-investigating .tl-node { border-color: var(--warn); }
.k-update .tl-node { border-color: var(--brand); }
.k-resolved .tl-node { border-color: var(--resolved); background: var(--resolved); }
.tl-kind {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--faint);
}
.k-investigating .tl-kind { color: var(--warn); }
.k-update .tl-kind { color: var(--brand); }
.k-resolved .tl-kind { color: var(--resolved); }
.tl-body {
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  text-wrap: pretty;
  white-space: pre-wrap;
}
.tl-action {
  margin-top: 12px;
  border-left: 3px solid var(--brand);
  background: rgba(0,106,176,0.06);
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
}
.tl-action b {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 3px;
}
.tl-action span {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}

/* ---------- help article links ---------- */
.tl-articles { margin-top: 14px; }
.tl-articles-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--faint);
  margin-bottom: 8px;
}
.tl-articles ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.article-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--brand-ink);
  font-size: 14px;
  font-weight: 600;
  background: rgba(0,106,176,0.05);
  border: 1px solid rgba(0,106,176,0.18);
  border-radius: 10px;
  padding: 10px 13px;
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}
.article-link:hover {
  background: rgba(0,106,176,0.1);
  border-color: rgba(0,106,176,0.4);
}
.article-link > span { flex: 1 1 auto; }
.article-link .arr {
  color: var(--faint);
  transition: transform 120ms ease, color 120ms ease;
}
.article-link:hover .arr { color: var(--brand); transform: translateX(2px); }

/* ---------- footer ---------- */
.page-foot {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--faint);
}

/* ===== Article page styles ===== */
.back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 0;
  margin-bottom: 18px;
  text-decoration: none;
  transition: color 120ms ease, gap 120ms ease;
}
.back:hover { color: var(--brand); gap: 10px; }
.back svg { display: block; }

.article-title {
  margin: 0 0 28px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  text-wrap: balance;
}

.article-body { font-size: 16px; line-height: 1.65; color: var(--ink); }
.article-body h2 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin: 34px 0 12px;
}
.article-body p { margin: 0 0 16px; text-wrap: pretty; }
.article-body strong { font-weight: 700; }
.article-body ol {
  padding-left: 24px;
  margin: 0 0 16px;
}
.article-body ul {
  padding-left: 24px;
  margin: 0 0 16px;
}

/* callout (blockquote used for notes) */
.article-body blockquote {
  border-left: 3px solid var(--brand);
  background: rgba(0,106,176,0.06);
  border-radius: 0 8px 8px 0;
  padding: 14px 16px;
  margin: 22px 0;
  font-size: 15px;
}

@media (max-width: 560px) {
  .content, .site-header { padding-left: 20px; padding-right: 20px; }
  .tl-row { grid-template-columns: 74px 1fr; gap: 12px; }
  .hero { flex-wrap: wrap; }
  .hero-tag { order: 3; }
  .article-title { font-size: 25px; }
}
