/* Status & updates page. Loads after sprout-theme.css.

   Built from design_handoff_asset/pages/Sprout Status.dc.html. Quiet and
   factual - the page someone opens when something feels wrong, so it states
   plainly whether it is Sprout or them.

   The overall state is one class on .banner: banner-operational, banner-degraded,
   banner-outage or banner-maintenance. Each system's pill is .pill-ok / .pill-slow
   / .pill-down from the theme. */

body { --wrap: 1080px; }

/* ---------- hero and banner ---------- */

.st-hero {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 56px var(--band-x) 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.st-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.st-brand { display: flex; flex-direction: column; gap: 18px; }

.st-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn-outline-xs { padding: 13px 20px; font-size: 16px; }

.banner {
  border-radius: 16px;
  padding: 36px 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.banner-operational { background: var(--dark); color: var(--on-dark); }
.banner-degraded { background: #6B5B2E; color: #FBF3E0; }
.banner-outage { background: #6B3327; color: #FBEDE8; }
.banner-maintenance { background: var(--dark); color: var(--on-dark); }

.banner h1 {
  font-family: var(--serif);
  font-size: clamp(30px, 3.8vw, 46px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.banner-body {
  font-size: 18px;
  max-width: 60ch;
  text-wrap: pretty;
  opacity: 0.92;
}

.banner-checked { font-size: 14px; opacity: 0.75; }

/* ---------- the parts of sprout ---------- */

.systems-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 8px var(--band-x) 56px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.st-systems {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 48px;
}

@media (max-width: 820px) {
  .st-systems { grid-template-columns: minmax(0, 1fr); }
}

.system {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 16px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--border-medium);
}

.system-text { display: flex; flex-direction: column; gap: 2px; }

.system-name { font-size: 17px; font-weight: 600; color: var(--dark); }

.system-what { font-size: 14px; color: var(--body-muted); }

/* ---------- the last 90 days ---------- */

.days-band {
  background: var(--cream-deep);
  border-top: 1px solid var(--border-medium);
  border-bottom: 1px solid var(--border-medium);
}

.days-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 48px var(--band-x);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.days-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.days-uptime { font-size: 15px; color: var(--body-muted); }
.days-uptime strong { color: var(--dark); }

.st-days { display: flex; gap: 3px; }

.st-day {
  flex: 1;
  height: 34px;
  min-width: 4px;
  border-radius: 2px;
}

.day-ok { background: #C4D3AE; }
.day-slow { background: #E3C56B; }
.day-down { background: #D07C61; }

/* 90 bars at a 4px floor need ~690px; on a phone let them go to hairlines so
   the shape of the last three months still reads without the page scrolling
   sideways */
@media (max-width: 720px) {
  .st-days { gap: 1px; }
  .st-day { min-width: 0; }
}

.days-foot {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--label-muted);
}

/* ---------- incidents and releases ---------- */

.hist-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 64px var(--band-x);
}

.st-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

@media (max-width: 820px) {
  .st-2 { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

.hist-col { display: flex; flex-direction: column; gap: 20px; }

.hist-head { display: flex; flex-direction: column; gap: 8px; }

.hist-head h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.hist-head p { font-size: 16px; color: var(--body-muted); max-width: 56ch; text-wrap: pretty; }

.incident {
  border-top: 1px solid var(--border-medium);
  padding: 22px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.incident-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.badge {
  font-size: 13px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
}

.badge-fixed { background: #E7EDDF; color: #41562F; }
.badge-watching { background: #F7EBCF; color: #7A6222; }
.badge-open { background: #F6DDD5; color: #7E3A28; }

.incident-date { font-size: 14px; color: var(--label-muted); white-space: nowrap; }

.incident-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
}

.incident-body { font-size: 16px; color: var(--body-muted); line-height: 1.55; text-wrap: pretty; }

.incident-who { font-size: 15px; color: var(--dark); }
.incident-who strong { font-weight: 600; }

.releases-head p { font-size: 15px; color: var(--body-muted); }

.release {
  background: var(--cream);
  border: 1px solid var(--border-medium);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.release-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.release-name {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
}

.release-date { font-size: 13px; color: var(--label-muted); white-space: nowrap; }

.release-items {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.release-items li {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  font-size: 15px;
  line-height: 1.5;
}

.kind {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.kind-new { color: #41562F; }
.kind-fixed { color: #7A6222; }
.kind-better { color: var(--sage); }

.release-items li span:last-child { color: var(--body-muted); }

/* ---------- tell us ---------- */

.sub-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 56px var(--band-x);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
}

.sub-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 520px;
}

.sub-copy h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--cream);
  text-wrap: balance;
}

.sub-copy p { font-size: 17px; color: var(--on-dark-soft); text-wrap: pretty; }

.sub-form { display: flex; flex-direction: column; gap: 12px; }

.sub-row { display: flex; flex-wrap: wrap; gap: 10px; }

.sub-input {
  padding: 15px 16px;
  font-size: 16px;
  border-color: var(--cream);
  min-width: 220px;
  flex: 1;
}

.btn-cream {
  background: var(--cream-deep);
  color: var(--dark);
  padding: 15px 26px;
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
  border: none;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.18s ease;
}
.btn-cream:hover { background: var(--cream); color: var(--dark); text-decoration: none; }

.sub-note { font-size: 14px; color: var(--on-dark-muted); }
.sub-note a { color: var(--on-dark); font-weight: 600; }

.sub-status { font-size: 15px; color: var(--cream); }
