/* SignaCast brand: navy #0A3272, teal #00B8AA, teal text #007A74.
   Source of truth: signacast.co/brand/tokens.css — hand-translated here since this is
   a plain static page, no build pipeline (see README). */

* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body {
  margin: 0;
  font-family: "Public Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  color: #0F1F3D;
  background: #F7F9FC;
}
h1, h2, h3 {
  font-family: "Nunito", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-weight: 800;
  color: #0A3272;
  margin: 0;
}
a { color: #007A74; }
a:hover { color: #00918A; }

header {
  background: #ffffff;
  border-bottom: 1px solid #DDE4F0;
  padding: 0 24px;
}
.brand-home {
  display: flex;
  align-items: center;
  height: 70px;
  max-width: 800px;
  margin: 0 auto;
  color: inherit;
  text-decoration: none;
}
.brand-logo { height: 38px; display: block; }
.brand-suffix {
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid #DDE4F0;
  font-family: "Nunito", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #0A3272;
}

main {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.banner {
  border-radius: 12px;
  padding: 28px 24px;
  color: #ffffff;
  margin-bottom: 32px;
}
.banner h1 { color: #ffffff; font-size: 1.5rem; }
.banner p { margin: 6px 0 0; opacity: 0.9; font-size: 0.9rem; }
.banner-loading { background: #7A879E; }
.banner-operational { background: #0A916B; }
.banner-degraded { background: #B8860B; }
.banner-outage { background: #C0392B; }

.section-block { margin-bottom: 32px; }
.section-block h2 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.component {
  background: #ffffff;
  border: 1px solid #DDE4F0;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 12px;
}
.component-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.component-name { font-weight: 700; font-size: 1rem; }
.component-desc { color: #44536F; font-size: 0.88rem; margin: 4px 0 0; }
.status-badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.status-up { background: #E3F8F5; color: #045F5B; }
.status-down { background: #FBE4E1; color: #922B21; }
.status-unknown { background: #F3F6FB; color: #7A879E; }

.uptime-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  gap: 12px;
}
.uptime-bars {
  display: flex;
  gap: 2px;
  flex: 1;
}
.uptime-bar {
  flex: 1;
  height: 24px;
  border-radius: 2px;
  min-width: 2px;
}
.bar-up { background: #00B8AA; }
.bar-down { background: #C0392B; }
.bar-nodata { background: #DDE4F0; }
.uptime-pct { font-size: 0.85rem; color: #44536F; white-space: nowrap; }

#incidents-section { margin-top: 40px; }
.incident {
  background: #ffffff;
  border: 1px solid #DDE4F0;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 12px;
}
.incident-title { font-weight: 700; }
.incident-meta { font-size: 0.8rem; color: #7A879E; margin: 2px 0 10px; }
.incident-update { font-size: 0.9rem; margin-bottom: 6px; }
.incident-update-status { font-weight: 700; color: #0A3272; text-transform: capitalize; }
.empty-note { color: #7A879E; font-size: 0.9rem; }

footer {
  max-width: 800px;
  margin: 0 auto;
  padding: 18px 24px;
  border-top: 1px solid #DDE4F0;
  font-size: 13px;
  color: #7A879E;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
