/* status.cubre.app — the layout of Package A v1.1 (docs/design/wireframes/status-page-v1.html),
   without the wireframe's annotations. Colors come only from tokens.css (generated, B158)
   and the mixes below, which are copied from the approved wireframe. Light and dark follow
   the visitor's device (R16). */

:root {
  --st-ok: var(--cubre-success);
  --st-ok-wash: var(--cubre-success-soft);
  --st-ok-bar: color-mix(in srgb, var(--cubre-success) 72%, var(--cubre-panel-solid));
  --st-warn: color-mix(in srgb, var(--cubre-warning) 55%, var(--cubre-heading));
  --st-warn-wash: var(--cubre-warning-soft);
  --st-warn-bar: color-mix(in srgb, var(--cubre-warning) 82%, var(--cubre-heading));
  --st-down: var(--cubre-danger);
  --st-down-wash: var(--cubre-danger-soft);
  --st-down-bar: var(--cubre-danger);
  /* Red TEXT sitting on a red wash needs more than the bare danger token to hold 4.5:1. */
  --st-down-text: color-mix(in srgb, var(--cubre-danger) 78%, var(--cubre-heading));
  --st-unk: color-mix(in srgb, var(--cubre-ink) 78%, var(--cubre-panel-solid));
  --st-unk-wash: color-mix(in srgb, var(--cubre-ink) 10%, transparent);
  /* D14: the accent darkened for text and button fills (the site's own D14 tokens). */
  --st-link: var(--cubre-accent-text);
  --st-btn: var(--cubre-accent-button);
  --st-btn-ink: var(--cubre-on-accent);
  /* The page's type, kept as it was: the site's pre-redesign stack. The v48 site sets its
     font (self-hosted Nunito Sans) on body rather than as a token, and this page's palette,
     not its type, follows the site (Peyton, 2026-11-04). */
  --font-sans: 'Avenir Next', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cubre-bg); color: var(--cubre-ink); font: 15px/1.55 var(--font-sans); min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
a { color: var(--st-link); text-underline-offset: .2em; }
/* Solid, not the 30% focus wash: a translucent ring fails 3:1 against the panels. */
:focus-visible { outline: 3px solid var(--cubre-accent-text); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.s-header { background: var(--cubre-shell); border-bottom: 1px solid var(--cubre-border); }
.s-in { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.s-header .s-in { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
/* BRANDING §3: font-size = tile T, wordmark .85T, gap .4T */
.lockup { display: flex; align-items: center; gap: .4em; font-size: 36px; text-decoration: none; line-height: 1; min-height: 44px; }
.lockup svg { width: 1em; height: 1em; flex: 0 0 auto; }
.lockup .tile { fill: var(--cubre-brand-tile); }
.lockup .wm { font-size: .85em; font-weight: 600; letter-spacing: -.015em; color: var(--cubre-wordmark); }
.lockup .lbl { font-size: 15px; font-weight: 500; color: var(--cubre-ink); padding-left: 10px; border-left: 1px solid var(--cubre-border); }
.btn-outline { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--cubre-border); color: var(--cubre-heading); font-weight: 600; font-size: 15px; text-decoration: none; background: var(--cubre-panel-solid); }

main { flex: 1; }
.s-main { padding: 40px 0 32px; display: flex; flex-direction: column; gap: 40px; }
.hero { display: flex; gap: 18px; align-items: center; }
.hero > div:last-child { flex: 1 1 auto; min-width: 0; }
.ic { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; background: var(--st-unk-wash); }
.ic svg { width: 26px; height: 26px; fill: none; stroke: var(--st-unk); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ic.ok { background: var(--st-ok-wash); } .ic.ok svg { stroke: var(--st-ok); }
.ic.warn { background: var(--st-warn-wash); } .ic.warn svg { stroke: var(--st-warn); }
.ic.down { background: var(--st-down-wash); } .ic.down svg { stroke: var(--st-down); }
.hero h1 { margin: 0; font-size: 32px; line-height: 1.15; letter-spacing: -.02em; color: var(--cubre-heading); font-weight: 600; }
.hero p { margin: 4px 0 0; color: var(--cubre-muted); font-size: 15px; }
h2.sec { margin: 0; font-size: 19px; color: var(--cubre-heading); font-weight: 600; }
.sechead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.sechead span { font-size: 13px; color: var(--cubre-muted); }
.card { background: var(--cubre-panel-solid); border: 1px solid var(--cubre-border); border-radius: 14px; }
.rows { margin: 0; padding: 0; }
.rows > li { list-style: none; padding: 18px 20px; border-top: 1px solid var(--cubre-border); }
.rows > li:first-child { border-top: 0; }
.rowtop { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
/* A component row keeps its chip on the same line as its name: the text column shrinks instead. */
.rows .rowtop { flex-wrap: nowrap; }
.rows .rowtop > div:first-child { flex: 1 1 auto; min-width: 0; }
.nowrap { white-space: nowrap; }
.rowname { font-weight: 600; color: var(--cubre-heading); }
.rowdesc { font-size: 13.5px; color: var(--cubre-muted); }
.chip { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.chip i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.chip.working { color: var(--st-ok); } .chip.working i { background: var(--st-ok); }
.chip.degraded { color: var(--st-warn); } .chip.degraded i { background: var(--st-warn-bar); }
.chip.down { color: var(--st-down); } .chip.down i { background: var(--st-down); }
.chip.unknown { color: var(--st-unk); } .chip.unknown i { border: 1.5px dashed var(--st-unk); }
.pill { display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.pill.ok { color: var(--st-ok); background: var(--st-ok-wash); }
.pill.down { color: var(--st-down-text); background: var(--cubre-panel-solid); }
.pill.warn { color: var(--st-warn); background: var(--cubre-panel-solid); }

/* Bars carry state by HEIGHT and OUTLINE as well as color (R25: readable without color). */
.bars { display: flex; gap: 2px; height: 28px; margin-top: 12px; align-items: flex-end; }
.bars button { flex: 1 1 0; min-width: 0; border-radius: 2px; border: 0; padding: 0; cursor: pointer; max-width: 28px; position: relative; }
/* A 44px-tall hit area around each 28px bar (WCAG 2.5.8); width is shared, so neighbours never overlap. */
.bars button::after { content: ''; position: absolute; left: -1px; right: -1px; top: -8px; bottom: -8px; }
.d-working { height: 100%; background: var(--st-ok-bar); }
.d-degraded { height: 60%; background: var(--st-warn-bar); }
.d-down { height: 100%; background: var(--st-down-bar); }
.d-unknown { height: 100%; background: transparent; border: 1.5px dashed var(--st-unk) !important; }
.bars button[aria-pressed="true"] { outline: 2px solid var(--cubre-heading); outline-offset: 1px; }
.legend { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--cubre-muted); margin-top: 8px; }
.legend .keys { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.legend .keys b { display: inline-block; width: 10px; height: 12px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.legend .keys b.d-degraded { height: 7px; }
.daydetail { margin: 8px 0 0; font-size: 13.5px; color: var(--cubre-ink); min-height: 1.4em; }

.inc { overflow: hidden; }
.inc .ih { padding: 14px 20px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.inc.down .ih { background: var(--st-down-wash); } .inc.down .ih h2 { color: var(--st-down-text); }
.inc.warn .ih { background: var(--st-warn-wash); } .inc.warn .ih h2 { color: var(--st-warn); }
.inc.ok .ih { background: var(--st-ok-wash); } .inc.ok .ih h2 { color: var(--st-ok); }
.inc .ih h2 { margin: 0; font-size: 17px; }
.inc .ih .pill { margin-left: auto; }
.inc ol { margin: 0; padding: 4px 20px 14px; list-style: none; }
.inc ol li { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--cubre-border); flex-wrap: wrap; }
.inc ol li:first-child { border-top: 0; }
.inc .stage { flex: 0 0 120px; font-size: 14px; font-weight: 600; color: var(--cubre-heading); }
.inc .stage small { display: block; font-weight: 400; color: var(--cubre-muted); }
.inc ol li p { flex: 1 1 240px; margin: 0; font-size: 14.5px; white-space: pre-line; }

.past { display: flex; flex-direction: column; gap: 12px; }
.past article { padding: 18px 20px; }
.past h3 { margin: 0; font-size: 16px; color: var(--cubre-heading); }
.past p { margin: 8px 0 0; font-size: 14.5px; white-space: pre-line; }

.forms { display: flex; gap: 18px; flex-wrap: wrap; }
.form { flex: 1 1 280px; min-width: 0; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.form h2 { margin: 0; font-size: 18px; color: var(--cubre-heading); }
.form p { margin: 0; font-size: 14px; }
.form label { font-size: 13.5px; font-weight: 600; color: var(--cubre-heading); }
.form input, .form textarea { min-height: 44px; border-radius: 10px; border: 1px solid var(--cubre-border); background: var(--cubre-bg); color: var(--cubre-heading); font: inherit; font-size: 16px; padding: 0 12px; width: 100%; }
.form textarea { padding: 10px 12px; min-height: 92px; resize: vertical; }
.btn { min-height: 44px; border-radius: 10px; border: 0; font: inherit; font-size: 15px; font-weight: 700; padding: 0 18px; cursor: pointer; }
.btn.primary { background: var(--st-btn); color: var(--st-btn-ink); }
.btn.secondary { background: transparent; border: 1px solid var(--cubre-border); color: var(--cubre-heading); }
.btn[disabled] { opacity: .6; cursor: progress; }
.ts { min-height: 65px; }
.fine { font-size: 13px; color: var(--cubre-muted); }
.notice { border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.notice.ok { background: var(--st-ok-wash); color: var(--st-ok); }
.notice.err { background: var(--st-down-wash); color: var(--st-down-text); }
.notice.warn { background: var(--st-warn-wash); color: var(--st-warn); }
.notice a { color: inherit; }
.copy { white-space: pre-wrap; font-size: 14px; margin: 0; padding: 10px 12px; border: 1px dashed var(--cubre-border); border-radius: 10px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.spin { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; vertical-align: -2px; margin-right: 6px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }
.tap { display: inline-flex; align-items: center; min-height: 44px; }
[hidden] { display: none !important; }

.s-footer { border-top: 1px solid var(--cubre-border); background: var(--cubre-shell); }
.s-footer .s-in { padding: 18px 24px 22px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--cubre-ink); }
.s-footer .fl { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.s-footer a { color: var(--cubre-ink); }

/* The W2b fallback screens on cubre.app (Package A §3, figures 3-6). A
   link styled as a button reloads the same URL, so the screen works with
   scripts blocked. */
a.btn { display: inline-flex; align-items: center; text-decoration: none; }
.lockup.sm { font-size: 28px; }
.hero.compact .ic { width: 40px; height: 40px; } .hero.compact .ic svg { width: 20px; height: 20px; }
.hero.compact h1 { font-size: 22px; }
.hero .ic .spin { width: 18px; height: 18px; margin: 0; color: var(--st-unk); }
.fb-body { padding: 28px 0 40px; display: flex; flex-direction: column; gap: 16px; }
.fb-body > p { margin: 0; }
.fb-rows { font-size: 14px; }
.rows.fb-rows > li { padding: 10px 14px; }
.fb-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.inc .ib { margin: 0; padding: 12px 20px; font-size: 14.5px; white-space: pre-line; }
.fb-neutral { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 24px; gap: 14px; }
.fb-neutral h1 { margin: 0; font-size: 21px; color: var(--cubre-heading); letter-spacing: -.01em; }
.fb-neutral > p { margin: 0; max-width: 400px; font-size: 15px; }
.fb-neutral .ni { width: 42px; height: 42px; color: var(--cubre-heading); opacity: .55; }
.fb-pay { max-width: 400px; text-align: left; }
.hostline { font-size: 14px; color: var(--cubre-ink); padding: 8px 14px 14px; text-align: center; }

/* Single-purpose pages: confirm, unsubscribe, privacy. */
.narrow { max-width: 560px; }
.prose { max-width: 680px; }
.prose h1 { color: var(--cubre-heading); font-size: 28px; margin: 0 0 8px; }
.prose h2 { color: var(--cubre-heading); font-size: 18px; margin: 28px 0 6px; }
.prose p, .prose li { font-size: 15px; }

@media (max-width: 600px) {
  .s-in { padding: 0 16px; }
  .s-header .s-in { min-height: 60px; }
  .lockup { font-size: 28px; }
  .lockup .lbl { display: none; }
  .btn-outline { padding: 0 12px; font-size: 14px; }
  .s-main { padding-top: 28px; gap: 28px; }
  .ic { width: 40px; height: 40px; } .ic svg { width: 20px; height: 20px; }
  .hero { gap: 14px; }
  .hero h1 { font-size: 22px; }
  .legend .keys { order: 3; width: 100%; }
  .rows > li { padding: 14px 16px; }
  .crow { flex-direction: column-reverse; align-items: stretch; }
  .s-footer .s-in { padding: 16px; }
}
/* status.cubre.app/?drill=1 only (RUNBOOK §4). */
.drill-bar { position: sticky; top: 0; z-index: 10; padding: 10px 16px; text-align: center; font-size: 14px; font-weight: 700; background: var(--st-warn-wash); color: var(--st-warn); border-bottom: 2px dashed var(--st-warn); }
