/* Public status page (/status). Tokens only, so html.dark follows. */

/* Tones: every coloured piece reads --st-c (strong), --st-soft (tint) and --st-ink (text on the tint). */
.st-tone--up, .st-tone--resolved, .st-pill--up { --st-c: var(--cit-green);  --st-soft: var(--cit-green-soft);  --st-ink: var(--cit-green-ink); }
.st-tone--degraded, .st-pill--degraded         { --st-c: var(--cit-orange); --st-soft: var(--cit-orange-soft); --st-ink: var(--cit-orange-ink); }
.st-tone--down, .st-pill--down                 { --st-c: var(--cit-red);    --st-soft: var(--cit-red-soft);    --st-ink: var(--cit-red-ink); }
.st-tone--maintenance, .st-pill--maintenance   { --st-c: var(--cit-blue);   --st-soft: var(--cit-blue-soft);   --st-ink: var(--cit-blue); }
.st-tone--scheduled, .st-tone--info            { --st-c: var(--cit-purple); --st-soft: var(--cit-purple-tint); --st-ink: var(--cit-purple-dark); }
.st-tone--unknown, .st-pill--unknown           { --st-c: var(--cit-muted-2); --st-soft: var(--cit-pale-2); --st-ink: var(--cit-muted); }

.st-pill {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  padding: 4px 10px 4px 8px; border-radius: var(--cit-r-pill);
  background: var(--st-soft); color: var(--st-ink); font-size: 12.5px; font-weight: 700;
}
.st-tag {
  display: inline-flex; align-items: center; align-self: flex-start; white-space: nowrap;
  padding: 3px 10px; border-radius: var(--cit-r-pill);
  background: var(--st-soft, var(--cit-pale-2)); color: var(--st-ink, var(--cit-muted));
  font-size: 12.5px; font-weight: 700;
}
.st-tag--pill { border: 1px solid color-mix(in srgb, var(--st-c) 35%, transparent); background: var(--cit-surface); }
.st-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--cit-purple); text-decoration: none; }
.st-link:hover { text-decoration: underline; }

/* ---- At a glance (in the hero, over the photograph) ------------------- */
.st-hero {
  margin-left: auto; max-width: 500px; padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 20px;
  background: rgba(10, 20, 56, .6);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
}
.st-hero__title { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #c8c0ff; }
.st-hero__live { width: 8px; height: 8px; border-radius: 50%; background: #3fd28b; box-shadow: 0 0 0 3px rgba(63, 210, 139, .25); }
.st-hero ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.st-hero__item {
  display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: start;
  padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1);
}
.st-hero__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .12); color: #fff; }
.st-hero__icon .cit-ico { width: 18px; height: 18px; }
/* Status colours on dark glass: a light tint of the tone, so they read on navy. */
.st-hero__item.st-tone--up .st-hero__icon       { background: rgba(63, 210, 139, .2); color: #7ff0b8; }
.st-hero__item.st-tone--degraded .st-hero__icon { background: rgba(255, 166, 77, .22); color: #ffc58a; }
.st-hero__item.st-tone--down .st-hero__icon     { background: rgba(255, 99, 99, .22); color: #ff9d9d; }
.st-hero__item.st-tone--maintenance .st-hero__icon { background: rgba(110, 168, 255, .22); color: #a9cbff; }
.st-hero__num { display: block; font-size: 24px; font-weight: 800; line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; }
.st-hero__text { display: block; font-size: 15px; font-weight: 700; line-height: 1.25; color: #fff; }
.st-hero__label { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.4; color: rgba(255, 255, 255, .74); }

/* ---- Overall banner -------------------------------------------------- */
.st-banner {
  display: flex; align-items: center; gap: 18px; padding: 24px 28px; border-radius: var(--cit-r-lg);
  background: linear-gradient(100deg, var(--cit-surface) 35%, var(--st-soft, var(--cit-pale-2)));
  border: 1px solid var(--cit-line); border-left: 5px solid var(--st-c, var(--cit-muted-2));
  box-shadow: var(--cit-shadow);
}
.st-banner__icon {
  flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--st-soft, var(--cit-pale-2)); color: var(--st-ink, var(--cit-muted));
}
.st .st-banner__title { margin: 0; font-size: clamp(19px, 2.2vw, 25px); line-height: 1.25; color: var(--cit-navy); }
.st-banner__meta { margin: 5px 0 0; color: var(--cit-text); font-size: 14.5px; }
.st-banner__meta a { color: var(--cit-purple); font-weight: 600; }
.st-sep { margin: 0 6px; color: var(--st-c, var(--cit-muted-2)); }

.st-note {
  display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0; padding: 12px 16px;
  border-radius: var(--cit-r-md); background: var(--cit-pale-2); color: var(--cit-text); font-size: 14.5px;
}
.st-note svg { flex: none; margin-top: 2px; }
.st-note--warn { background: var(--cit-orange-soft); color: var(--cit-orange-ink); }

/* ---- Section heads ---------------------------------------------------- */
.st-group { margin-top: clamp(40px, 5vw, 60px); }
.st-group__head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.st-group__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--cit-purple-tint); color: var(--cit-purple); }
.st-group__titles { flex: 1 1 220px; min-width: 0; }
.st-group__head .cit-h2 { margin: 0; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; }
.st-group__sub { margin: 4px 0 0; color: var(--cit-muted); font-size: 14px; }
.st-count {
  flex: none; display: inline-flex; align-items: center; gap: 7px; align-self: center;
  padding: 5px 12px; border-radius: var(--cit-r-pill); background: var(--cit-orange-soft); color: var(--cit-orange-ink); font-size: 13px; font-weight: 700;
}
.st-count__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cit-orange); }
.st-updated { flex: none; align-self: center; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--cit-muted); }
.st-updated__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cit-green); box-shadow: 0 0 0 3px var(--cit-green-soft); }

/* ---- Current alerts --------------------------------------------------- */
.st-alerts { display: grid; gap: 16px; }
.st-alert {
  display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(190px, 240px); gap: 18px; align-items: start;
  padding: 22px 24px; border-radius: var(--cit-r-lg);
  background: linear-gradient(100deg, var(--st-soft) 0%, var(--cit-surface) 55%);
  border: 1px solid color-mix(in srgb, var(--st-c) 30%, var(--cit-line)); border-left: 5px solid var(--st-c);
  box-shadow: var(--cit-shadow-sm);
}
.st-alert__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--cit-surface); color: var(--st-c); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--st-c) 30%, transparent); }
.st-alert__main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.st-alert__title { margin: 2px 0 0; font-size: 19px; line-height: 1.3; color: var(--cit-navy); }
.st-alert__body { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--cit-text); }
.st-alert__list { margin: 2px 0 0; padding: 0 0 0 18px; font-size: 13.5px; color: var(--cit-text); }
.st-alert__list li + li { margin-top: 3px; }
.st-alert__list a { color: var(--cit-ink); text-decoration: underline; text-decoration-color: var(--cit-line-strong); text-underline-offset: 2px; }
.st-alert__list a:hover { color: var(--cit-purple); }
.st-alert__side { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-left: 20px; border-left: 1px solid var(--cit-line); }
.st-alert__meta { display: flex; gap: 7px; margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--cit-text); }
.st-alert__meta svg { flex: none; margin-top: 2px; color: var(--cit-muted); }

/* ---- Our services ------------------------------------------------------ */
.st-list { list-style: none; margin: 0; padding: 6px 0; border: 1px solid var(--cit-line); border-radius: var(--cit-r-lg); background: var(--cit-surface); box-shadow: var(--cit-shadow-sm); }
.st-row {
  display: grid; grid-template-columns: 42px minmax(150px, 1.1fr) minmax(0, 3fr) 64px 130px; gap: 18px; align-items: center;
  padding: 16px 24px;
}
.st-row + .st-row { border-top: 1px solid var(--cit-line-soft); }
.st-row__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--cit-purple-tint); color: var(--cit-purple); }
.st-row__name { min-width: 0; }
.st-row__name h3 { margin: 0; font-size: 15.5px; line-height: 1.3; color: var(--cit-navy); }
.st-row__name p { margin: 2px 0 0; font-size: 13px; line-height: 1.4; color: var(--cit-muted); }
.st-row__hist { min-width: 0; }
.st-row__pct { text-align: right; font-size: 14px; font-weight: 700; color: var(--cit-text); font-variant-numeric: tabular-nums; }
.st-row__state { justify-self: end; }

.st-bars { display: flex; gap: 2px; height: 30px; }
.st-bar { flex: 1 1 0; min-width: 2px; border-radius: 2px; background: var(--cit-green); transition: opacity var(--cit-t); }
.st-bars .st-bar:hover { opacity: .7; }
.st-bar--degraded { background: var(--cit-orange); }
.st-bar--partial  { background: var(--cit-orange-ink); }
.st-bar--down     { background: var(--cit-red); }
.st-bar--none     { background: var(--cit-line-strong); }
.st-bars__axis { display: flex; justify-content: space-between; margin-top: 5px; font-size: 11.5px; color: var(--cit-muted-2); }

.st-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 14px 0 0 4px; padding: 0; font-size: 13px; color: var(--cit-muted); }
.st-legend li { display: inline-flex; align-items: center; gap: 7px; }
.st-legend .st-bar { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; }
.st-legend__hint { margin-left: auto; color: var(--cit-muted-2); }

/* Each day on a strip is a button that opens that day. */
button.st-bar { appearance: none; border: 0; padding: 0; margin: 0; cursor: pointer; font: inherit; }
button.st-bar:focus-visible { outline: 2px solid var(--cit-purple); outline-offset: 2px; opacity: 1; }

/* ---- One day, opened from a strip --------------------------------------- */
.st-day { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--cit-line);
  border-radius: var(--cit-r-lg); background: var(--cit-surface); color: var(--cit-text); box-shadow: var(--cit-shadow); }
.st-day::backdrop { background: rgba(15, 23, 42, .45); }
.st-day__head { display: flex; align-items: center; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid var(--cit-line-soft); }
.st-day__title { flex: 1; margin: 0; font-size: 18px; line-height: 1.3; color: var(--cit-navy); }
.st-day__x { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--cit-muted); cursor: pointer; }
.st-day__x:hover, .st-day__x:focus-visible { background: var(--cit-line-soft); color: var(--cit-navy); }
.st-day__list { list-style: none; margin: 0; padding: 8px 20px; }
.st-day__svc { padding: 12px 0; border-bottom: 1px solid var(--cit-line-soft); }
.st-day__svc:last-child { border-bottom: 0; }
.st-day__svc.is-picked strong { color: var(--cit-purple-dark); }
.st-day__row { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.st-day__row .st-bar { flex: none; width: 10px; height: 10px; border-radius: 50%; }
.st-day__row strong { color: var(--cit-navy); }
.st-day__state { margin-left: auto; text-align: right; font-size: 13.5px; color: var(--cit-muted); }
.st-day__svc--down .st-day__state, .st-day__svc--partial .st-day__state { color: var(--cit-red-ink); font-weight: 600; }
.st-day__outs { list-style: none; margin: 8px 0 0 20px; padding: 0; display: grid; gap: 6px; }
.st-day__outs li { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 8px 10px; border-radius: var(--cit-r-md); background: var(--cit-red-soft); font-size: 13px; }
.st-day__when { font-weight: 600; color: var(--cit-text); font-variant-numeric: tabular-nums; }
.st-day__dur { color: var(--cit-red-ink); }
.st-day__detail { flex-basis: 100%; color: var(--cit-muted); }
.st-day__allok { display: flex; align-items: center; gap: 8px; margin: 0 20px 8px; padding: 10px 12px; border-radius: var(--cit-r-md);
  background: var(--cit-green-soft); color: var(--cit-green-ink); font-size: 13.5px; }
.st-day__allok[hidden], .st-day__notices[hidden] { display: none; }
.st-day__notices { padding: 4px 20px 8px; }
.st-day__notices h3 { margin: 6px 0 8px; font-size: 14px; color: var(--cit-navy); }
.st-day__notices ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.st-day__notices li { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid var(--cit-line-soft); border-radius: var(--cit-r-md); font-size: 13.5px; }
.st-day__notices li .st-tag { justify-self: start; }
.st-day__notices p { margin: 0; color: var(--cit-muted); }
.st-day__tz { margin: 0; padding: 10px 20px 16px; font-size: 12px; color: var(--cit-muted-2); }

/* ---- Providers --------------------------------------------------------- */
.st-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.st-card {
  display: flex; flex-direction: column; padding: 18px 20px; border-radius: var(--cit-r-lg);
  background: var(--cit-surface); border: 1px solid var(--cit-line); box-shadow: var(--cit-shadow-sm);
}
.st-card.st-tone--degraded, .st-card.st-tone--down, .st-card.st-tone--maintenance {
  background: linear-gradient(160deg, var(--st-soft), var(--cit-surface) 70%);
  border-color: color-mix(in srgb, var(--st-c) 45%, var(--cit-line));
}
.st-card__top { display: flex; align-items: center; gap: 12px; }
.st-card__top h3 { flex: 1 1 auto; margin: 0; min-width: 0; font-size: 15.5px; line-height: 1.3; color: var(--cit-navy); }
.st-logo {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 7px; border-radius: 10px;
  background: #fff; border: 1px solid var(--cit-line); color: var(--cit-purple);
}
.st-logo--wide { padding: 3px; }
.st-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.st-card__desc { margin: 10px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--cit-muted); }
.st-card__summary { display: flex; gap: 6px; margin: 10px 0 0; font-size: 13.5px; font-weight: 600; color: var(--st-ink); }
.st-card__summary svg { flex: none; margin-top: 3px; }
.st-card__inc { margin: 6px 0 0; padding: 0 0 0 18px; font-size: 13px; color: var(--cit-text); }
.st-card__inc li + li { margin-top: 3px; }
.st-card__inc a { color: var(--cit-ink); text-decoration: underline; text-decoration-color: var(--cit-line-strong); text-underline-offset: 2px; }
.st-card__inc a:hover { color: var(--cit-purple); }
.st-card__link { margin-top: auto; padding-top: 14px; }

/* ---- Activity timeline ------------------------------------------------- */
.st-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.st-timeline::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px; background: var(--cit-line); }
.st-tl { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 18px; align-items: start; }
.st-tl + .st-tl { margin-top: 16px; }
.st-tl__dot {
  position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; margin-top: 14px; border-radius: 50%;
  background: var(--st-c); color: #fff; box-shadow: 0 0 0 5px var(--cit-surface);
}
.st-tl__card {
  display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; align-items: start; padding: 18px 22px;
  border-radius: var(--cit-r-lg); background: linear-gradient(100deg, var(--st-soft), var(--cit-surface) 45%);
  border: 1px solid var(--cit-line); box-shadow: var(--cit-shadow-sm);
}
.st-tl__title { margin: 0; font-size: 16px; line-height: 1.35; color: var(--cit-navy); }
.st-tl__when { display: flex; gap: 6px; margin: 4px 0 0; font-size: 13.5px; color: var(--cit-muted); }
.st-tl__when svg { flex: none; margin-top: 3px; }
.st-tl__body { margin: 6px 0 0; font-size: 14px; line-height: 1.55; color: var(--cit-text); }

/* ---- How this page works ----------------------------------------------- */
.st-how {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: center;
  margin-top: clamp(40px, 5vw, 60px); padding: 28px 32px; border-radius: var(--cit-r-lg);
  background: linear-gradient(120deg, var(--cit-purple-tint), var(--cit-surface) 60%); border: 1px solid var(--cit-line);
}
.st-how__art { position: relative; display: grid; place-items: center; height: 160px; }
.st-how__art::before, .st-how__art::after { content: ""; position: absolute; border-radius: 50%; background: var(--cit-purple); opacity: .12; }
.st-how__art::before { width: 150px; height: 150px; }
.st-how__art::after { width: 60px; height: 60px; right: 10px; top: 6px; opacity: .18; }
.st-how__screen { position: relative; z-index: 1; display: grid; place-items: center; width: 120px; height: 100px; border-radius: 18px; background: var(--cit-surface); color: var(--cit-purple); box-shadow: var(--cit-shadow); }
.st-how__screen > .cit-ico { width: 72px; height: 72px; }
.st-how__tick .cit-ico { width: 20px; height: 20px; }
.st-how__tick { position: absolute; right: -10px; bottom: -10px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--cit-green); color: #fff; box-shadow: 0 0 0 4px var(--cit-surface); }
.st .st-how h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 21px; line-height: 1.3; color: var(--cit-navy); }
.st-how__i { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--cit-purple-tint); color: var(--cit-purple); }
.st-how p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--cit-text); }
.st-how a { color: var(--cit-purple); font-weight: 600; }

/* ---- Smaller screens --------------------------------------------------- */
@media (max-width: 1100px) {
  .st-hero { margin-left: 0; }
  .st-row { grid-template-columns: 42px minmax(0, 1fr) auto auto; row-gap: 12px; }
  .st-row__hist { grid-column: 1 / -1; order: 5; }
}
@media (max-width: 760px) {
  .st-alert { grid-template-columns: auto minmax(0, 1fr); }
  .st-alert__side { grid-column: 2; padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--cit-line); }
  .st-tl__card { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .st-how { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 24px; }
  .st-how__art { height: 130px; }
  .st-group__head { flex-wrap: wrap; }
  .st-count, .st-updated { margin-left: 54px; }
}
@media (max-width: 640px) {
  .st-hero { padding: 16px; }
  .st-hero__num { font-size: 21px; }
  .st-hero__item { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 10px; }
  .st-banner { padding: 18px; gap: 14px; }
  .st-alert { padding: 18px; gap: 14px; }
  .st-alert__icon { width: 40px; height: 40px; }
  .st-row { padding: 14px 16px; grid-template-columns: 38px minmax(0, 1fr) auto; }
  .st-row__icon { width: 38px; height: 38px; }
  .st-row__pct { display: none; }
  /* 90 bars do not fit a phone: show the last 30 days. */
  .st-bars .st-bar:nth-child(-n+60) { display: none; }
  .st-bars__axis span:first-child { visibility: hidden; }
  .st-tl { grid-template-columns: 28px minmax(0, 1fr); gap: 12px; }
  .st-timeline::before { left: 13px; }
  .st-tl__dot { width: 28px; height: 28px; }
}
