/* Status page only (/status). Shares tokens with site.css. */
.st {
  --up-100: #1f9d63;
  --up-95: #8ed1a9;
  --up-80: #e3a33a;
  --up-low: #d93a3a;
  --up-none: #e6e6e1;
  max-width: 920px;
  padding-bottom: 72px;
}

.st-head {
  padding: 20px 0 24px;
}

.st-head__title {
  font-size: clamp(28px, 7.4vw, 52px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.st-head__lead {
  max-width: 640px;
  margin: 14px 0 0;
  color: var(--text-2);
  font-size: 17px;
}

/* ---------------------------------------------------------------- banner */

.st-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.st-banner__dot {
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--line-2);
}

.st-banner__title {
  font-size: clamp(18px, 4.6vw, 24px);
  line-height: 1.25;
}

.st-banner__meta {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.st-banner--ok {
  border-color: rgba(31, 157, 99, 0.35);
  background: #f1faf5;
}
.st-banner--ok .st-banner__dot {
  background: var(--ok);
  box-shadow: 0 0 0 5px rgba(31, 157, 99, 0.16);
}

.st-banner--warn {
  border-color: rgba(217, 130, 0, 0.4);
  background: #fff8ec;
}
.st-banner--warn .st-banner__dot {
  background: var(--warn);
  box-shadow: 0 0 0 5px rgba(217, 130, 0, 0.16);
}

.st-banner--down {
  border-color: rgba(217, 58, 58, 0.4);
  background: #fdf2f2;
}
.st-banner--down .st-banner__dot {
  background: var(--danger);
  box-shadow: 0 0 0 5px rgba(217, 58, 58, 0.16);
}

.st-banner--lost .st-banner__dot {
  background: var(--muted);
}

.st-noscript {
  margin: 12px 0 0;
  padding: 14px 16px;
  border: 1px dashed var(--line-2);
  border-radius: 14px;
  color: var(--text-2);
  font-size: 15px;
}

/* ---------------------------------------------------------------- sections */

.st-sec {
  position: relative;
  margin-top: 44px;
}

.st-sec__title {
  margin-bottom: 16px;
  font-size: clamp(20px, 5vw, 26px);
}

/* ---------------------------------------------------------------- now */

.st-now {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-alt);
}

.st-now__price {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.st-now__price b {
  padding: 0 0.15em;
  border-radius: 0.2em;
  background: var(--accent);
  color: var(--accent-ink);
}

.st-now__why {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.st-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 16px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--line);
}

.st-stats div {
  min-width: 0;
  padding: 14px;
  background: var(--surface);
}

.st-stats dt {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.st-stats dd {
  margin: 6px 0 0;
}

.st-stats__val {
  display: block;
  font: 700 20px/1.15 var(--display);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.st-stats__sub {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.st-stats__wide {
  grid-column: 1 / -1;
}

@media (min-width: 760px) {
  .st-now {
    padding: 24px;
  }
  .st-stats {
    grid-template-columns: repeat(5, 1fr);
  }
  .st-stats__wide {
    grid-column: auto;
  }
  .st-stats div {
    padding: 16px 18px;
  }
  .st-stats__val {
    font-size: 22px;
  }
}

/* ---------------------------------------------------------------- components */

.st-comps {
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.st-comp {
  padding: 18px;
}

.st-comp + .st-comp {
  border-top: 1px solid var(--line);
}

.st-comp__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.st-comp__name {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  min-width: 0;
}

.st-comp__name h3 {
  font: 600 17px/1.3 var(--sans);
  letter-spacing: 0;
}

.st-tier {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.st-comp__role {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.st-comp__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 8px 0 0;
  color: var(--text-2);
  font-size: 14px;
}

.st-comp__facts b {
  font-weight: 700;
}

.st-comp__later {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.st-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.st-pill::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-2);
}

.st-pill--ok {
  border-color: rgba(31, 157, 99, 0.3);
  background: #f1faf5;
  color: var(--ok-ink);
}
.st-pill--ok::before {
  background: var(--ok);
}

.st-pill--warn {
  border-color: rgba(217, 130, 0, 0.35);
  background: #fff8ec;
  color: #8a5200;
}
.st-pill--warn::before {
  background: var(--warn);
}

.st-pill--down {
  border-color: rgba(217, 58, 58, 0.35);
  background: #fdf2f2;
  color: #a82626;
}
.st-pill--down::before {
  background: var(--danger);
}

/* uptime bars */

.st-upt {
  margin-top: 14px;
}

.st-upt__head,
.st-upt__axis {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.st-upt__pct {
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.st-bars {
  display: flex;
  gap: 2px;
  height: 32px;
  margin: 6px 0;
  list-style: none;
  border-radius: 4px;
  outline-offset: 4px;
  touch-action: manipulation;
}

.st-bar {
  flex: 1 1 0;
  min-width: 0;
  border-radius: 2px;
  background: var(--up-none);
  cursor: default;
  transition: opacity 0.15s;
}

.st-bar--100 {
  background: var(--up-100);
}
.st-bar--95 {
  background: var(--up-95);
}
.st-bar--80 {
  background: var(--up-80);
}
.st-bar--low {
  background: var(--up-low);
}

.st-bars.is-pointing .st-bar:not(.is-on) {
  opacity: 0.55;
}

@media (min-width: 640px) {
  .st-bars {
    gap: 3px;
    height: 36px;
  }
}

.st-tip {
  position: absolute;
  z-index: 5;
  max-width: 220px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--text);
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
  pointer-events: none;
  white-space: nowrap;
}

.st-tip b {
  display: block;
  font-weight: 600;
}

@media (min-width: 760px) {
  .st-comp {
    padding: 22px 24px;
  }
}

/* ---------------------------------------------------------------- how nodes work */

.st-how {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.st-how__lead {
  margin: 0 0 18px;
  color: var(--text-2);
  font-size: 16px;
}

.st-flow {
  display: grid;
  justify-items: start;
  margin: 0;
  padding: 16px;
  border-radius: 16px;
  background: var(--bg-alt);
  font-size: 14px;
}

.st-flow__step,
.st-flow__node {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--surface);
  font-weight: 600;
}

.st-flow__node {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.st-flow__node span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.st-flow__node--own {
  border-color: var(--text);
}

/* Mobile: a vertical chain; the connectors are left borders. */
.st-flow__arrow {
  width: 0;
  height: 22px;
  margin-left: 22px;
  border-left: 2px solid var(--text);
}

.st-flow__branches {
  display: grid;
  gap: 0;
  margin-left: 22px;
}

.st-flow__branch {
  display: grid;
  justify-items: start;
}

.st-flow__link {
  margin-left: 0;
  padding: 8px 0 8px 14px;
  border-left: 2px solid var(--text);
  color: var(--muted);
  font-size: 13px;
}

.st-flow__branch .st-flow__node {
  margin-left: -22px;
}

.st-flow__branch--alt .st-flow__link {
  border-left-style: dashed;
  border-left-color: var(--muted);
}

.st-flow__branch--alt {
  margin-top: 0;
}

@media (min-width: 960px) {
  .st-how {
    padding: 24px;
  }
  .st-flow {
    grid-template-columns: auto 28px auto minmax(0, 1fr);
    align-items: center;
    padding: 24px;
  }
  .st-flow__arrow {
    width: 28px;
    height: 0;
    margin: 0;
    border-left: 0;
    border-top: 2px solid var(--text);
  }
  /* The spine runs between the centres of the two rows; a stub joins it to the queue. */
  .st-flow__branches {
    position: relative;
    grid-auto-rows: 1fr;
    gap: 16px;
    justify-self: stretch;
    margin-left: 28px;
  }
  .st-flow__branches::before {
    content: '';
    position: absolute;
    left: 0;
    top: calc((100% - 16px) / 4);
    bottom: calc((100% - 16px) / 4);
    border-left: 2px solid var(--text);
  }
  .st-flow__branches::after {
    content: '';
    position: absolute;
    left: -28px;
    top: 50%;
    width: 28px;
    border-top: 2px solid var(--text);
  }
  .st-flow__branch {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-items: stretch;
  }
  .st-flow__link {
    display: flex;
    align-items: flex-end;
    align-self: start;
    height: 50%;
    padding: 0 12px 4px 14px;
    border-left: 0;
    border-bottom: 2px solid var(--text);
    margin-bottom: -1px;
  }
  .st-flow__branch--alt .st-flow__link {
    border-bottom-style: dashed;
    border-bottom-color: var(--muted);
  }
  .st-flow__branch .st-flow__node {
    margin-left: 0;
  }
}

.st-prices {
  width: 100%;
  margin: 18px 0 0;
  border-collapse: collapse;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.st-prices th,
.st-prices td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.st-prices thead th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.st-prices tbody th {
  font-weight: 600;
}

.st-prices td {
  font-weight: 700;
}

.st-prices th:first-child,
.st-prices td:first-child {
  padding-left: 0;
}

.st-how__note {
  display: flex;
  gap: 10px;
  margin: 16px 0 0;
  color: var(--text-2);
  font-size: 15px;
}

.st-how__note .icon {
  margin-top: 3px;
  color: var(--ok);
}

/* ---------------------------------------------------------------- incidents */

.st-incidents {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.st-empty {
  margin: 0;
  padding: 20px;
  color: var(--muted);
}

.st-day + .st-day {
  border-top: 1px solid var(--line);
}

.st-day__date {
  margin: 0;
  padding: 16px 18px 4px;
  color: var(--muted);
  font: 600 13px/1.3 var(--sans);
  letter-spacing: 0.02em;
}

.st-day ul {
  list-style: none;
  padding: 0 18px 12px;
}

.st-inc {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
}

.st-inc__mark {
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--danger);
}

.st-inc__mark--warn {
  background: var(--warn);
}

.st-inc__title {
  margin: 0;
  font-weight: 600;
}

.st-inc__time {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.st-inc .st-pill {
  margin-left: 6px;
  padding: 1px 8px;
  font-size: 12px;
  vertical-align: 1px;
}

/* ---------------------------------------------------------------- footer note */

.st-foot {
  margin: 36px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.st-foot a {
  color: var(--text);
}
