/* ==========================================================================
   NETWORK STATUS — quiet, narrow, typographic
   ========================================================================== */

:root {
  --st-up: #4E4FEB;
  --st-degraded: #f59e0b;
  --st-down: #ef4444;
  --st-ok: #16a34a;
}

#status-page .st-page {
  background: #fff;
  padding: 70px 0 90px;
}
#status-page .st-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

/* :: TITLE :: */
#status-page .st-top {
  margin-bottom: 28px;
}
#status-page .st-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--darkBlue);
  margin-bottom: 6px;
}
#status-page .st-sub {
  font-size: 14px;
  color: var(--lightBlue);
  margin: 0;
}

/* :: CURRENT STATE BANNER :: */
#status-page .st-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 8px;
  background: rgba(22, 163, 74, 0.07);
  border: 1px solid rgba(22, 163, 74, 0.2);
  margin-bottom: 44px;
}
#status-page .st-banner .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--st-ok);
  flex-shrink: 0;
}
#status-page .st-banner .label {
  font-size: 15px;
  font-weight: 600;
  color: #166534;
}
#status-page .st-banner .meta {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--lightBlue);
}
#status-page .st-banner.is-degraded {
  background: rgba(245, 158, 11, 0.07);
  border-color: rgba(245, 158, 11, 0.25);
}
#status-page .st-banner.is-degraded .dot { background: var(--st-degraded); }
#status-page .st-banner.is-degraded .label { color: #92400e; }
#status-page .st-banner.is-down {
  background: rgba(239, 68, 68, 0.06);
  border-color: rgba(239, 68, 68, 0.25);
}
#status-page .st-banner.is-down .dot { background: var(--st-down); }
#status-page .st-banner.is-down .label { color: #991b1b; }

/* :: GROUPS :: */
#status-page .st-group {
  margin-bottom: 42px;
}
#status-page .g-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--lightBlue);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

/* service row */
#status-page .st-row {
  padding: 14px 0 12px;
}
#status-page .st-row + .st-row {
  border-top: 1px solid var(--light);
}
#status-page .r-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}
#status-page .r-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--darkBlue);
}
#status-page .r-state {
  font-size: 12px;
  font-weight: 500;
  color: var(--st-ok);
}
#status-page .r-state.is-degraded { color: #b45309; }
#status-page .r-state.is-down { color: var(--st-down); }
#status-page .r-uptime {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--lightBlue);
  font-variant-numeric: tabular-nums;
}

/* 90-day bar */
#status-page .r-bar {
  display: flex;
  gap: 2px;
  height: 22px;
}
#status-page .r-bar .day {
  flex: 1 1 auto;
  min-width: 2px;
  border-radius: 1.5px;
  background: var(--st-up);
  opacity: 0.8;
  position: relative;
  font-style: normal;
}
#status-page .r-bar .day.is-degraded { background: var(--st-degraded); opacity: 1; }
#status-page .r-bar .day.is-down { background: var(--st-down); opacity: 1; }
#status-page .r-bar .day:hover { opacity: 1; }

/* tooltip */
#status-page .r-bar .day .tip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  min-width: 170px;
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--darkBlue);
  color: #fff;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
  white-space: normal;
}
#status-page .r-bar .day .tip strong {
  display: block;
  font-size: 11.5px;
  margin-bottom: 1px;
}
#status-page .r-bar .day:hover .tip { display: block; }

/* scale under each group */
#status-page .g-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 11px;
  color: #9aa7c7;
}

/* :: FOOT :: */
#status-page .st-foot {
  margin-top: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
#status-page .st-foot p {
  font-size: 13.5px;
  color: var(--lightBlue);
  margin: 0;
}
#status-page .st-foot a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}

/* :: RESPONSIVE :: */
@media (max-width: 767px) {
  #status-page .st-page { padding: 50px 0 60px; }
  #status-page .st-banner { flex-wrap: wrap; }
  #status-page .st-banner .meta { margin-left: 19px; width: 100%; }
  /* show the last 30 days on small screens */
  #status-page .r-bar .day:nth-child(-n + 60) { display: none; }
}
@media (max-width: 575px) {
  #status-page .r-bar .day:nth-child(-n + 75) { display: none; }
}
