/* Solace status page — the design on the console canvas (StatusPage,
   StatusPageDegraded, StatusPageDark, StatusIncident, PhoneStatus): the
   console's tokens with the docs site's public top bar. Light and dark
   follow the reader's system, as the docs site does. */
:root {
  color-scheme: light dark;
  --bg: oklch(97.6% 0.003 255);
  --surface: oklch(100% 0 0);
  --surface-2: oklch(95.8% 0.004 255);
  --surface-3: oklch(93.5% 0.006 255);
  --line: oklch(90.5% 0.006 255);
  --line-2: oklch(84% 0.008 255);
  --ink: oklch(21% 0.02 262);
  --ink-2: oklch(44% 0.02 258);
  --ink-3: oklch(60% 0.015 258);
  --ink-4: oklch(74% 0.012 258);
  --accent: oklch(52% 0.2 258);
  --accent-hover: oklch(46% 0.2 258);
  --accent-ink: oklch(99% 0 0);
  --accent-soft: oklch(94.5% 0.035 258);
  --ok: oklch(55% 0.16 155);
  --ok-soft: oklch(95% 0.04 155);
  --warn: oklch(62% 0.16 70);
  --warn-soft: oklch(96% 0.05 80);
  --danger: oklch(55% 0.2 25);
  --danger-soft: oklch(95.5% 0.035 25);
  --sandbox-soft: oklch(96% 0.05 75);
  --sandbox-ink: oklch(45% 0.14 60);
  --sh-1: 0 1px 2px oklch(20% 0.02 262 / 0.05), 0 0 0 1px oklch(20% 0.02 262 / 0.05);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --r-sm: 6px; --r: 8px; --r-lg: 12px; --r-xl: 16px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: oklch(13.5% 0.01 262);
    --surface: oklch(17.5% 0.012 262);
    --surface-2: oklch(21% 0.013 262);
    --surface-3: oklch(25% 0.014 262);
    --line: oklch(26% 0.014 262);
    --line-2: oklch(33% 0.016 262);
    --ink: oklch(95% 0.006 255);
    --ink-2: oklch(72% 0.014 258);
    --ink-3: oklch(56% 0.014 258);
    --ink-4: oklch(42% 0.012 258);
    --accent: oklch(70% 0.16 258);
    --accent-hover: oklch(76% 0.15 258);
    --accent-ink: oklch(14% 0.03 262);
    --accent-soft: oklch(70% 0.16 258 / 0.14);
    --ok: oklch(72% 0.16 155); --ok-soft: oklch(72% 0.16 155 / 0.14);
    --warn: oklch(78% 0.15 75); --warn-soft: oklch(78% 0.15 75 / 0.14);
    --danger: oklch(70% 0.18 25); --danger-soft: oklch(70% 0.18 25 / 0.14);
    --sandbox-soft: oklch(76% 0.16 65 / 0.14); --sandbox-ink: oklch(84% 0.13 70);
    --sh-1: 0 1px 2px oklch(0% 0 0 / 0.3), 0 0 0 1px oklch(100% 0 0 / 0.06);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font-family: 'Inter', system-ui, -apple-system, sans-serif; font-size: 13.5px; line-height: 1.45; -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01", "tnum"; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.012em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 30; background: var(--surface); color: var(--ink); padding: 8px 12px; border-radius: var(--r); box-shadow: var(--sh-1); }
.skip:focus { top: 10px; }
[hidden] { display: none !important; }

/* motion: the first paint rises in; refreshes don't move */
@keyframes rise { from { opacity: 0; transform: translateY(6px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.first .rise { animation: rise 320ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 35ms); }
@media (prefers-reduced-motion: reduce) { .first .rise { animation: fadeIn 200ms ease both; } .skel { animation: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: var(--r); font-size: 13px; font-weight: 500; white-space: nowrap; border: 1px solid transparent; transition: background 140ms ease, border-color 140ms ease, color 140ms ease; }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12px; border-radius: var(--r-sm); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 1px 2px oklch(20% 0.02 262 / 0.1), inset 0 1px 0 oklch(100% 0 0 / 0.12); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-2); box-shadow: 0 1px 2px oklch(20% 0.02 262 / 0.04); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }

/* pills: one set for component, incident and update states */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 500; white-space: nowrap; border: 1px solid transparent; }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--danger-soft); color: var(--danger); }
.pill.info { background: var(--accent-soft); color: var(--accent); }
.pill.quiet { background: var(--surface-2); color: var(--ink-2); border-color: var(--line); }

/* cards and tiles */
.card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.stat { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-1); padding: 14px 16px; }
.stat .k { font-size: 12px; color: var(--ink-3); }
.stat .v { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .d { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.skel { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.stat .skel + .skel { margin-top: 10px; width: 60%; height: 18px; }

/* top bar — the docs site's public bar */
.stop { position: sticky; top: 0; z-index: 20; height: 56px; display: flex; align-items: center; gap: 14px; padding: 0 28px; border-bottom: 1px solid var(--line); background: color-mix(in oklch, var(--bg) 80%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.brand { display: inline-flex; align-items: center; gap: 9px; }
.mark { width: 24px; height: 24px; border-radius: 7px; background: var(--ink); color: var(--bg); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.brand .t { font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; }
.stop .chip { display: inline-flex; align-items: center; height: 28px; border: 1px solid var(--line-2); font-size: 11px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 2px 7px; letter-spacing: 0.02em; }
.stop .dn { display: flex; gap: 4px; margin-left: 12px; }
.stop .dn a { height: 32px; padding: 0 10px; border-radius: 7px; font-size: 13px; color: var(--ink-2); font-weight: 500; display: inline-flex; align-items: center; }
.stop .dn a:hover { color: var(--ink); }
.stop .dn a.on { color: var(--ink); background: var(--surface-2); }
.stop .sp { flex: 1; }
.banner { display: flex; align-items: center; gap: 10px; padding: 9px 28px; font-size: 12.5px; border-bottom: 1px solid var(--line); background: var(--sandbox-soft); color: var(--sandbox-ink); }
.banner b { font-weight: 600; }

/* the page */
.swrap { max-width: 880px; margin: 0 auto; padding: 36px 24px 60px; }
.hero { border-radius: var(--r-xl); padding: 22px 24px; display: flex; align-items: center; gap: 16px; box-shadow: var(--sh-1); }
.hero.ok { background: var(--ok-soft); } .hero.warn { background: var(--warn-soft); } .hero.bad { background: var(--danger-soft); } .hero.info { background: var(--accent-soft); } .hero.none { background: var(--surface); }
.hero .big { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.hero.ok .big { background: var(--ok); } .hero.warn .big { background: var(--warn); } .hero.bad .big { background: var(--danger); } .hero.info .big { background: var(--accent); } .hero.none .big { background: var(--surface-2); color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line); }
.hero h1 { font-size: 20px; letter-spacing: -0.02em; } .hero p { font-size: 13px; color: var(--ink-2); margin-top: 3px; }
.hero .r { margin-left: auto; text-align: right; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.hero .r .stale { color: var(--warn); }
.sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0 22px; }
.sum:empty { display: none; }
.grp { margin-bottom: 14px; }
.grp .gh { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.grp .gh h2 { font-size: 13.5px; } .grp .gh .s { font-size: 12px; color: var(--ink-3); }
.comp { display: grid; grid-template-columns: 230px 1fr 120px; gap: 14px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.comp .n { font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 8px; min-width: 0; } .comp .n .s { font-size: 11.5px; color: var(--ink-3); font-weight: 400; overflow-wrap: anywhere; }
.comp .n .s { display: block; }
.comp .n .state { font-size: 11.5px; font-weight: 500; margin-left: 2px; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: var(--ok); }
.dot.warn { background: var(--warn); } .dot.bad { background: var(--danger); } .dot.info { background: var(--accent); } .dot.none { background: var(--ink-4); }
.state.warn { color: var(--warn); } .state.bad { color: var(--danger); } .state.info { color: var(--accent); } .state.none { color: var(--ink-3); }
.comp .bars { display: flex; gap: 2px; height: 22px; align-items: stretch; }
.comp .bars i { flex: 1; border-radius: 2px; background: var(--ok); opacity: 0.85; }
.comp .bars i.w { background: var(--warn); } .comp .bars i.b { background: var(--danger); } .comp .bars i.m { background: var(--accent); } .comp .bars i.n { background: var(--line); opacity: 1; }
.comp .up { text-align: right; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; } .comp .up b { display: block; font-size: 13px; color: var(--ink); font-weight: 600; }
.axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-4); padding: 6px 16px 10px 260px; }
.inc { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.inc:last-child { border-bottom: none; }
.inc .t { font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .inc .t a { color: var(--accent); } .inc .t a:hover { text-decoration: underline; }
.inc .m { font-size: 12.5px; color: var(--ink-2); margin-top: 6px; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; } .inc .m b { color: var(--ink); font-weight: 600; }
.inc .when { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }
.day { font-size: 12px; font-weight: 600; color: var(--ink-3); padding: 12px 16px 4px; letter-spacing: 0.02em; }
.day.none { font-weight: 400; padding-bottom: 12px; } .day.none span { color: var(--ink-4); }
.sub { display: flex; align-items: center; gap: 10px; padding: 14px 16px; color: var(--ink-3); }
.sub .txt { flex: 1; font-size: 12.5px; color: var(--ink-2); }
.sfoot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.sfoot a { color: var(--accent); font-weight: 500; margin-left: 12px; white-space: nowrap; } .sfoot > span:last-child { white-space: nowrap; }
.empty-note { padding: 14px 16px; font-size: 12.5px; color: var(--ink-3); }
.link, .empty-note a, .hero p a { color: var(--accent); font-weight: 500; }
.link:hover, .empty-note a:hover, .hero p a:hover { text-decoration: underline; }
main:focus { outline: none; }

/* an incident's own page */
.ih { margin-bottom: 18px; }
.ih .crumb { font-size: 12.5px; color: var(--ink-3); display: flex; gap: 6px; align-items: center; margin-bottom: 10px; }
.ih .crumb a:hover { color: var(--ink); } .ih .crumb b { color: var(--ink); font-weight: 400; } .ih .crumb svg { flex-shrink: 0; }
.ih h1 { font-size: 24px; letter-spacing: -0.025em; margin-bottom: 8px; }
.ih .meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: var(--ink-3); }
.aff { display: flex; flex-wrap: wrap; gap: 6px; }
.post { display: grid; grid-template-columns: 120px 1fr; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.post:last-child { border-bottom: none; }
.post .ps { font-size: 12px; font-weight: 600; } .post .pt { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.post .pb { font-size: 13px; color: var(--ink-2); line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.post.now .ps { color: var(--accent); }

/* phone (PhoneStatus) */
@media (max-width: 640px) {
  .stop { height: 52px; padding: 0 14px; gap: 10px; }
  .stop .dn, .stop .docs { display: none; }
  .banner { padding: 9px 16px; }
  .swrap { padding: 16px 16px 40px; }
  .hero { padding: 16px; gap: 12px; flex-wrap: wrap; } .hero .r { margin-left: 0; width: 100%; text-align: left; white-space: normal; }
  .hero h1 { font-size: 17px; }
  .sum { grid-template-columns: 1fr 1fr; gap: 8px; }
  .grp .gh { padding: 12px; }
  .comp { grid-template-columns: 1fr auto; gap: 6px 10px; padding: 10px 12px; } .comp .bars { grid-column: 1 / -1; height: 14px; order: 3; } .comp .up b { display: inline; margin-right: 4px; }
  .axis { padding-left: 12px; padding-right: 12px; }
  .inc, .day { padding-left: 12px; padding-right: 12px; }
  .sub { flex-wrap: wrap; padding: 12px; } .sub .txt { flex-basis: calc(100% - 30px); }
  .sfoot { flex-direction: column; align-items: flex-start; } .sfoot a:first-child { margin-left: 0; }
  .post { grid-template-columns: 1fr; gap: 4px; padding: 12px; }
  .ih h1 { font-size: 20px; }
}
