:root {
  --bg: #f7f8fa;
  --card: #ffffff;
  --ink: #14171a;
  --muted: #6b7280;
  --border: #e6e8eb;
  --operational: #1f9d55;
  --degraded: #d4a309;
  --partial_outage: #e07b1a;
  --major_outage: #d23f3f;
  --maintenance: #4a6cf7;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.06);
  font-synthesis: none;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--card);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { text-decoration: none; color: var(--ink); display: flex; align-items: baseline; gap: 8px; }
.brand-mark { font-weight: 700; font-size: 20px; }
.brand-sub { color: var(--muted); font-weight: 500; font-size: 15px; }
.home-link { color: var(--muted); text-decoration: none; font-size: 14px; }
.home-link:hover { color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 18px; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.site-nav a:hover { color: var(--ink); }
.site-nav a.current { color: var(--ink); font-weight: 600; }

/* Overall banner */
.overall {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0 20px;
  padding: 22px 24px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--muted);
}
.overall.operational { border-left-color: var(--operational); }
.overall.degraded { border-left-color: var(--degraded); }
.overall.partial_outage { border-left-color: var(--partial_outage); }
.overall.major_outage { border-left-color: var(--major_outage); }
.overall.maintenance { border-left-color: var(--maintenance); }
.overall-dot {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--muted); flex: 0 0 auto;
}
.overall.operational .overall-dot { background: var(--operational); }
.overall.degraded .overall-dot { background: var(--degraded); }
.overall.partial_outage .overall-dot { background: var(--partial_outage); }
.overall.major_outage .overall-dot { background: var(--major_outage); }
.overall.maintenance .overall-dot { background: var(--maintenance); }
.overall-title { margin: 0; font-size: 20px; font-weight: 650; }
.overall-sub { margin: 2px 0 0; color: var(--muted); font-size: 14px; }

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 20px 24px;
  margin-bottom: 20px;
}
.card-title { margin: 0 0 14px; font-size: 15px; font-weight: 650; letter-spacing: 0.01em; }

/* Components */
.components { display: flex; flex-direction: column; }
.component {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 0; border-top: 1px solid var(--border);
}
.component:first-child { border-top: none; }
.component-name { font-weight: 500; font-size: 15px; }
.component-desc { color: var(--muted); font-size: 13px; margin-top: 1px; }
.component-status { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.component-status .label { color: var(--muted); }

/* Status dots */
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: var(--muted); }
.dot.operational { background: var(--operational); }
.dot.degraded { background: var(--degraded); }
.dot.partial_outage { background: var(--partial_outage); }
.dot.major_outage { background: var(--major_outage); }
.dot.maintenance { background: var(--maintenance); }
.dot.unknown { background: var(--muted); }

.legend { display: flex; flex-wrap: wrap; gap: 16px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--border); }
.legend-item { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }

/* Incidents */
.incident { padding: 16px 0; border-top: 1px solid var(--border); }
.incident:first-child { border-top: none; }
.incident-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.incident-title { font-weight: 600; font-size: 15px; margin: 0; }
.badge {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em;
  padding: 2px 8px; border-radius: 999px; color: #fff; background: var(--muted);
}
.badge.investigating { background: var(--major_outage); }
.badge.identified { background: var(--partial_outage); }
.badge.monitoring { background: var(--degraded); color: #3a2e00; }
.badge.resolved { background: var(--operational); }
.badge.maintenance { background: var(--maintenance); }
.incident-time { color: var(--muted); font-size: 13px; }
.incident-updates { margin: 10px 0 0; padding: 0; list-style: none; }
.incident-update { padding: 8px 0 8px 16px; border-left: 2px solid var(--border); margin-bottom: 4px; }
.incident-update .when { color: var(--muted); font-size: 12px; }
.incident-update .what { font-size: 14px; }
.incident-affected { color: var(--muted); font-size: 12px; margin-top: 6px; }

/* Product updates (changelog.html) */
.page-intro { margin: 28px 0 20px; }
.page-title { margin: 0 0 6px; font-size: 24px; font-weight: 700; }

.release { padding: 22px 0; border-top: 1px solid var(--border); scroll-margin-top: 20px; }
.release:first-child { border-top: none; padding-top: 4px; }
.release.highlight { background: #fbfcfe; box-shadow: -14px 0 0 #fbfcfe, 14px 0 0 #fbfcfe; }
.release-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.release-title { margin: 0; font-size: 17px; font-weight: 650; }
.release-version {
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  padding: 2px 8px; border-radius: 999px;
  color: var(--muted); background: var(--bg); border: 1px solid var(--border);
  text-decoration: none; font-variant-numeric: tabular-nums;
}
.release-version:hover { color: var(--ink); }
.release-date { color: var(--muted); font-size: 13px; margin-top: 3px; }
.release-summary { margin: 10px 0 0; font-size: 14px; }
.change-detail { margin: 5px 0 0; font-size: 13px; color: var(--muted); }

.changes { margin: 12px 0 0; padding: 0; list-style: none; }
.change { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; }
.change-body { font-size: 14px; }
.tag {
  /* Fixed gutter so every change body aligns regardless of tag word length. */
  flex: 0 0 auto; min-width: 92px; text-align: center;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em;
  padding: 2px 8px; border-radius: 999px; color: #fff; background: var(--muted);
  margin-top: 2px;
}
.tag.added { background: var(--operational); }
.tag.improved { background: var(--maintenance); }
.tag.fixed { background: var(--partial_outage); }
.tag.security { background: var(--major_outage); }
.tag.deprecated { background: var(--muted); }

/* Maintenance */
.maint { padding: 10px 0; border-top: 1px solid var(--border); }
.maint:first-child { border-top: none; }
.maint-title { font-weight: 600; font-size: 14px; }
.maint-window { color: var(--muted); font-size: 13px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 8px; padding: 24px 0 40px; }
.site-footer a { color: var(--muted); }
.muted { color: var(--muted); font-size: 14px; }
.muted.small { font-size: 13px; margin-top: 4px; }
a { color: var(--maintenance); }

@media (max-width: 520px) {
  .component { flex-direction: column; align-items: flex-start; gap: 6px; }
  .site-nav { gap: 12px; }
  .change { flex-direction: column; gap: 4px; }
  .tag { min-width: 0; }
}
