:root {
  --ink: #161f30;
  --ink-soft: #5a6573;
  --paper: #dce4ee;
  --paper-2: #e2e8ef;
  --rule: #c7d3e1;
  --card: #ffffff;
  --ok: #237e33;
  --ok-bg: #e6f5e7;
  --warn: #be8007;
  --warn-bg: #fef3da;
  --bad: #9b1d2e;
  --bad-bg: #f8e4e6;
  --maint: #2a4e6d;
  --maint-bg: #e4ecf6;
  --partial: #8a3d12;
  --mast: #2a4e6d;
  --mast-ink: #ffffff;
  --mast-meta: #92a4b8;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", "Helvetica Neue", sans-serif;
  line-height: 1.5;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 12px;
  top: 12px;
  background: #fff;
  padding: 8px 12px;
  z-index: 20;
}

.wrap {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
}

.masthead {
  background: var(--mast);
  color: var(--mast-ink);
  border-bottom: 3px solid #234560;
}

.masthead-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 22px 0 18px;
  gap: 16px;
}

.wordmark {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wordmark-kicker {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mast-meta);
}

.wordmark-title {
  font-family: Newsreader, Georgia, serif;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.mast-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
}

.mast-nav a {
  color: var(--mast-ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.clock { color: var(--mast-meta); }

.push-btn {
  background: transparent;
  color: var(--mast-ink);
  border: 1px solid var(--mast-ink);
  padding: 5px 10px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.push-btn[aria-pressed="true"] {
  background: var(--mast-ink);
  color: var(--mast);
  border-color: var(--mast-ink);
}

.hero {
  margin: 28px auto 8px;
}

.banner {
  padding: 22px 24px;
  border: 1px solid var(--rule);
  background: var(--card);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.banner > div:last-child {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.banner h1 {
  font-family: Newsreader, Georgia, serif;
  font-size: 34px;
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.banner p { margin: 0; color: var(--ink-soft); }

.banner.operational { border-left: 8px solid var(--ok); }
.banner.degraded { border-left: 8px solid var(--warn); }
.banner.partial_outage { border-left: 8px solid var(--partial); }
.banner.major_outage { border-left: 8px solid var(--bad); background: #f8e4e6; }
.banner.maintenance { border-left: 8px solid var(--maint); }
.banner.unknown { border-left: 8px solid #c5cdd6; }

.pill {
  display: inline-block;
  align-self: start;
  height: fit-content;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 2px;
  white-space: nowrap;
  line-height: 1.2;
}

.pill.operational { background: var(--ok-bg); color: var(--ok); }
.pill.degraded { background: var(--warn-bg); color: var(--warn); }
.pill.partial_outage { background: #f6e6db; color: var(--partial); }
.pill.major_outage, .pill.outage { background: var(--bad-bg); color: var(--bad); }
.pill.maintenance { background: var(--maint-bg); color: var(--maint); }
.pill.notice { background: var(--maint-bg); color: var(--maint); }
.pill.resolved { background: var(--ok-bg); color: var(--ok); }
.pill.unknown { background: #e8edf2; color: #5a6573; }

.panel {
  background: var(--card);
  border: 1px solid var(--rule);
  margin: 18px auto;
  padding: 22px 24px 10px;
}

.section-head {
  border-bottom: 1px solid var(--rule);
  margin-bottom: 8px;
  padding-bottom: 10px;
}

.section-head h2 {
  font-family: Newsreader, Georgia, serif;
  font-size: 24px;
  margin: 0 0 4px;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.group {
  padding: 16px 0;
  border-bottom: 1px solid var(--paper-2);
}

.group:last-child { border-bottom: 0; }

.group-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 20px;
  align-items: start;
  justify-items: start;
}

.group-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.group-head .desc {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.group-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  min-width: 0;
  align-self: start;
}

.uptime {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 6px;
}

.source-note.live { color: var(--ok); }
.source-note.stale,
.source-note.unreachable { color: var(--warn); }
.source-note.demo { color: var(--warn); }

.history {
  display: flex;
  gap: 2px;
  margin-top: 12px;
  height: 28px;
}

.history i {
  flex: 1;
  display: block;
  min-width: 0;
  background: var(--ok);
  border-radius: 1px;
}

.history i.degraded { background: var(--warn); }
.history i.partial_outage, .history i.outage, .history i.major_outage { background: var(--bad); }
.history i.maintenance { background: var(--maint); }
.history i.unknown { background: #c5cdd6; }

.history i:hover { outline: 1px solid var(--ink); outline-offset: 1px; }

.components {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.components li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  align-items: start;
  justify-items: start;
  padding: 10px 0;
  border-top: 1px dashed var(--rule);
  font-size: 14px;
}

.comp-name { font-weight: 500; }
.comp-desc, .comp-detail, .comp-internal {
  display: block;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 400;
}

.comp-internal {
  font-family: ui-monospace, "IBM Plex Mono", monospace;
  color: #8a6b14;
}

.empty {
  color: var(--ink-soft);
  padding: 12px 0 18px;
}

.incident, .maint-item {
  padding: 14px 0 16px;
  border-bottom: 1px solid var(--paper-2);
}

.incident:last-child, .maint-item:last-child { border-bottom: 0; }

.incident h3, .maint-item h3 {
  margin: 8px 0 6px;
  font-size: 18px;
  font-family: Newsreader, Georgia, serif;
}

.when, .impact {
  font-size: 13px;
  color: var(--ink-soft);
}

.updates {
  margin: 10px 0 0;
  padding: 0 0 0 14px;
  border-left: 2px solid var(--rule);
}

.update { margin: 0 0 12px; }
.update .u-meta {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.update p { margin: 4px 0 0; }

.site-foot {
  border-top: 1px solid var(--rule);
  padding: 28px 0 40px;
}

.foot-inner {
  display: flex;
  justify-content: center;
}

.email-mark {
  display: block;
  height: 48px;
  width: auto;
  max-width: min(405px, 100%);
}

.preview-bar {
  position: sticky;
  bottom: 0;
  background: var(--mast);
  color: var(--mast-ink);
  border-top: 3px solid var(--bad);
  padding: 10px 0;
}

.preview-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}

.preview-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.preview-bar button,
.admin-link {
  background: #1e3d56;
  color: var(--mast-ink);
  border: 1px solid var(--mast-meta);
  padding: 6px 10px;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}

.pb-state { color: var(--mast-meta); }

.details-html {
  margin: 10px 0 0;
  font-size: 15px;
}

.details-html p { margin: 0 0 8px; }

.preview-bar button[aria-pressed="true"] {
  background: var(--mast-ink);
  color: var(--mast);
  border-color: var(--mast-ink);
}

.preview-toggle { display: flex; align-items: center; gap: 6px; margin-left: auto; }

.error {
  background: var(--bad-bg);
  color: var(--bad);
  padding: 14px 16px;
  border: 1px solid #e3b4ba;
}

@media (max-width: 700px) {
  .masthead-inner, .banner, .group-head, .foot-inner {
    display: block;
  }
  .group-meta { text-align: left; margin-top: 8px; }
  .banner h1 { font-size: 28px; }
}
