* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--opsphere-font);
  background: var(--opsphere-bg);
  color: var(--opsphere-text);
  line-height: 1.5;
}

a {
  color: rgba(147, 197, 253, 0.95);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  border-bottom: 1px solid var(--opsphere-border);
  background: rgba(8, 13, 24, 0.95);
  backdrop-filter: blur(8px);
}

.site-header__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
  text-decoration: none;
}

.site-header__brand:hover {
  text-decoration: none;
  opacity: 0.92;
}

.site-header__logo {
  display: block;
  height: 2.25rem;
  width: auto;
  max-width: min(11rem, 48vw);
}

.site-header__nav {
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

.site-header__nav a {
  color: var(--opsphere-text-muted);
  text-decoration: none;
}

.site-header__nav a:hover {
  color: var(--opsphere-text);
  text-decoration: none;
}

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.hero__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero__overall {
  margin: 0 0 0.25rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.overall--ok { color: var(--status-ok); }
.overall--warn { color: var(--status-warn); }
.overall--down { color: var(--status-down); }
.overall--maint { color: var(--status-maint); }

.hero__updated {
  margin: 0;
  color: var(--opsphere-text-subtle);
  font-size: 0.875rem;
}

/* Professional incident banner (Statuspage-style) */
.incident-banner {
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.incident-banner__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 1.5rem;
}

.incident-banner--investigating {
  background: linear-gradient(180deg, var(--banner-investigating), #92400e);
}

.incident-banner--degraded {
  background: linear-gradient(180deg, var(--banner-degraded), #b45309);
}

.incident-banner--major {
  background: linear-gradient(180deg, var(--banner-major), #991b1b);
}

.incident-banner--maintenance {
  background: linear-gradient(180deg, var(--banner-maintenance), #334155);
}

.incident-banner__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}

.incident-banner__pill {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.incident-banner__updated {
  font-size: 0.8125rem;
  opacity: 0.9;
}

.incident-banner__title {
  margin: 0 0 0.5rem;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.incident-banner__message {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  max-width: 52rem;
}

.incident-banner__affected {
  margin: 0;
  font-size: 0.875rem;
  opacity: 0.95;
}

.component-row {
  background: var(--opsphere-surface);
  border: 1px solid var(--opsphere-border);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.component-row__header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem 1rem;
  align-items: start;
  margin-bottom: 1rem;
}

.component-row__indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 0.35rem;
}

.status--ok { background: var(--status-ok); color: var(--status-ok); }
.status--maint { background: var(--status-maint); color: var(--status-maint); }
.status--warn { background: var(--status-warn); color: var(--status-warn); }
.status--down { background: var(--status-down); color: var(--status-down); }

.component-row__name {
  margin: 0;
  font-size: 1.0625rem;
}

.component-row__desc {
  margin: 0.15rem 0 0;
  font-size: 0.8125rem;
  color: var(--opsphere-text-subtle);
}

.component-row__status {
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.component-row__bars {
  display: flex;
  gap: 2px;
  height: 34px;
  align-items: stretch;
}

.bar-day {
  flex: 1;
  min-width: 0;
  border-radius: 2px;
}

.bar-day--ok { background: var(--status-ok); opacity: 0.85; }
.bar-day--maint { background: var(--status-maint); opacity: 0.75; }
.bar-day--warn { background: var(--status-warn); opacity: 0.9; }
.bar-day--down { background: var(--status-down); opacity: 0.95; }
.bar-day--none { background: var(--status-none); }

.component-row__legend {
  display: flex;
  justify-content: space-between;
  margin-top: 0.35rem;
  font-size: 0.6875rem;
  color: var(--opsphere-text-subtle);
}

.section-title {
  margin: 2.5rem 0 1rem;
  font-size: 1.125rem;
}

.incidents-empty {
  color: var(--opsphere-text-subtle);
}

.incident-history-item {
  border-left: 3px solid var(--opsphere-border);
  padding: 0 0 1.25rem 1rem;
  margin-bottom: 0.5rem;
}

.incident-history-item__title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.incident-history-item__meta {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  color: var(--opsphere-text-subtle);
}

.incident-history-item__message {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--opsphere-text-muted);
}

.site-footer {
  border-top: 1px solid var(--opsphere-border);
  padding: 1.5rem 1.25rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--opsphere-text-subtle);
}

@media (max-width: 640px) {
  .component-row__header {
    grid-template-columns: auto 1fr;
  }
  .component-row__status {
    grid-column: 2;
  }
}
