@font-face{font-family:'Nunito';src:url('/assets/fonts/nunito-var.woff2') format('woff2');font-weight:200 1000;font-style:normal;font-display:swap;}
:root {
  --navy: var(--ft-navy, #041133);
  --primary: var(--ft-blue, #0146C7);
  --primary-light: #e8effa;
  /* The brand blue as TYPE rather than as a fill. Same colour on light; the dark theme
     lifts it, because #3b82f6 on a --border-light card measures 4.10:1. Fills that put
     white type on blue keep --primary and get a deeper value on dark (see .tz-btn.active). */
  --primary-text: var(--ft-blue, #0146C7);
  --accent: var(--ft-yellow, #FFD602);
  --accent-light: #fff8d6;
  --bg: #f4f5f7;
  --surface: #ffffff;
  --text: #111827;
  --text-secondary: #4b5563;
  /* was #6b7280 — 4.39:1 on --border-light, so .tz-btn and .group-count sat just
     under AA on the group headers and the timezone toggle. #5b6472 is 5.44:1 there
     and 5.98:1 on --surface. */
  --text-muted: #5b6472;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --success: #16a34a;
  --success-light: #f0fdf4;
  --success-border: #bbf7d0;
  --warning: #d97706;
  --warning-light: #fffbeb;
  --warning-border: #fde68a;
  --danger: #dc2626;
  --danger-light: #fef2f2;
  --danger-border: #fecaca;
  /* Text-on-surface variants. --success/--warning/--danger are FILL colours (banner,
     dots, bars) and are far too light to read as small text: #16a34a on --border-light
     measures 2.99:1, well under the 4.5:1 AA floor, on the one number this page exists
     to communicate (CRM #369 B20). Use these wherever a status colour becomes type.
       --success-text on --border-light  6.48:1   on --success-light  6.81:1
       --warning-text on --border-light  6.44:1   on --warning-light  6.84:1
       --danger-text  on --border-light  5.88:1   on --danger-light   5.91:1 */
  --success-text: #166534;
  --warning-text: #92400e;
  --danger-text: #b91c1c;
  /* Fill variants — the status colour as a background under white type, e.g. the
     top banner. Same value in both themes: a deep bar reads correctly on either.
     White on --success-deep 7.13:1, --warning-deep 7.09:1, --danger-deep 8.31:1;
     the banner's secondary line at 85% white still clears 5.6:1 on all three. */
  --success-deep: #166534;
  --warning-deep: #92400e;
  --danger-deep: #991b1b;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100vh; overflow-x: hidden; }

body {
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
}

::selection { background: rgba(1, 70, 199, 0.15); }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.skip-link { position: absolute; left: -999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { left: 16px; top: 16px; width: auto; height: auto; padding: 10px 16px; border-radius: var(--radius-sm); background: var(--surface); color: var(--navy); font-weight: 600; z-index: 1000; box-shadow: var(--shadow-lg); }

/* ─── Header ─── */
.site-header { background: var(--navy); position: fixed; top: 0; left: 0; right: 0; z-index: 1000; transition: box-shadow .2s ease; }
.site-header.scrolled { box-shadow: 0 2px 10px rgba(4,17,51,.25); }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 79px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; transition: opacity 200ms; }
.logo:hover { opacity: 0.85; }
.logo img { height: 40px; width: auto; display: block; }
.logo-text { font-size: 15px; font-weight: 700; color: #fff; letter-spacing: 0; }
.logo-suffix { color: var(--accent); font-weight: 600; margin-left: 6px; }
nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-link { padding: 6px 14px; border-radius: 6px; font-size: 14px; font-weight: 650; color: rgba(255,255,255,0.85); transition: all 150ms ease; }
.nav-cta { padding: 7px 16px; border-radius: 999px; font-size: 14px; font-weight: 700; background: var(--accent); color: var(--navy); text-decoration: none; transition: all 150ms ease; }
.nav-cta:hover { background: #E6C102; }
.nav-link:hover { background: rgba(255,255,255,0.08); color: #fff; }

/* ─── Banner ─── */
/* Deep fills, not the light --success/--warning/--danger ones: white at 15px/700 on
   --warning measured 3.19:1 and on --success 3.30:1, both under AA on the one line
   that states whether the estate is up. */
.banner-wrap { background: var(--success-deep); transition: background 300ms ease; }
.banner-wrap.degraded { background: var(--warning-deep); }
.banner-wrap.outage { background: var(--danger-deep); }
.banner-inner { max-width: 1200px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 12px; }
.banner-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.9); flex-shrink: 0; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.banner-label { font-size: 15px; font-weight: 700; color: #fff; letter-spacing: 0; }
.banner-updated { margin-left: auto; font-size: 12px; color: rgba(255,255,255,0.85); white-space: nowrap; }

/* ─── Content ─── */
.content-wrap { max-width: 1200px; width: 100%; margin: 0 auto; padding: 24px 24px 40px; flex: 1; animation: fadeIn 400ms ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ─── Toolbar ─── */
.toolbar { margin-bottom: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.search-box { position: relative; max-width: 360px; }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.search-box input { width: 100%; padding: 10px 14px 10px 36px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text); font-family: inherit; font-size: 14px; outline: none; transition: border-color 150ms, box-shadow 150ms; }
.search-box input::placeholder { color: var(--text-muted); }
.search-box input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(1, 70, 199, 0.1); }

/* ─── Groups ─── */
.group-list { display: grid; gap: 20px; }
.group-card { border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow 200ms; }
.group-card:hover { box-shadow: var(--shadow-md); }
.group-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; background: var(--border-light); border-bottom: 1px solid var(--border); }
.group-name { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--primary-text); }
.group-count { font-size: 12px; font-weight: 500; color: var(--text-muted); }

/* ─── Component Rows ─── */
.component-list { display: grid; }
.component-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--border-light); transition: background 100ms; cursor: pointer; }
.component-row:hover { background: var(--primary-light); }
.component-row:last-child { border-bottom: 0; }
.component-name { font-size: 14px; font-weight: 600; color: var(--text); letter-spacing: 0; }
.component-desc { margin-top: 2px; font-size: 13px; color: var(--text-muted); line-height: 1.4; }
.component-right { display: flex; align-items: center; gap: 14px; }
.uptime-pct { font-size: 13px; font-weight: 600; color: var(--text-muted); font-variant-numeric: tabular-nums; min-width: 52px; text-align: right; }

/* ─── Badge ─── */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge.up { background: var(--success-light); color: #15803d; }
.badge.degraded { background: var(--warning-light); color: var(--warning); }
.badge.down { background: var(--danger-light); color: var(--danger); }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ─── Sparkline ─── */
.spark { display: flex; gap: 2px; margin-top: 4px; }
.spark-bar { width: 6px; height: 16px; border-radius: 2px; background: var(--border); }
.spark-bar.up { background: #86efac; }
.spark-bar.degraded { background: #fde68a; }
.spark-bar.down { background: #fca5a5; background-image: repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(0,0,0,0.15) 2px, rgba(0,0,0,0.15) 4px); }

/* ─── Section Headings ─── */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; margin-top: 8px; }
.section-title { font-size: 16px; font-weight: 700; letter-spacing: 0; color: var(--text); }

/* ─── Incident / Maintenance Items ─── */
.item-list { display: grid; gap: 8px; margin-bottom: 24px; }
.item-card { padding: 14px 20px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); }
.item-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 600; color: var(--text); }
.item-meta { margin-top: 4px; font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ─── Detail View ─── */
.detail-back { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text-secondary); font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; transition: all 150ms; margin-bottom: 20px; }
.detail-back:hover { background: var(--border-light); color: var(--text); }
.detail-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.detail-title { font-size: 22px; font-weight: 800; letter-spacing: 0; color: var(--text); }
.detail-desc { margin-top: 4px; font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.detail-group-badge { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--primary-light); color: var(--primary-text); }
.detail-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; width: 100%; margin-bottom: 28px; }
.stat-card { padding: 16px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); transition: border-color 200ms, box-shadow 200ms; }
.stat-card:hover { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.stat-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 4px; }
.stat-value { font-size: 20px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.stat-value.up { color: var(--success); }
.stat-value.down { color: var(--danger); }
.stat-value.degraded { color: var(--warning); }

/* Detail uptime chart */
.detail-chart-wrap { padding: 20px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); margin-bottom: 24px; }
.detail-chart-title { font-size: 13px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 12px; }
.detail-bars { display: flex; gap: 3px; align-items: flex-end; }
.detail-bar { flex: 1; min-width: 0; height: 32px; border-radius: 3px; background: var(--border); transition: opacity 150ms; cursor: default; position: relative; }
.detail-bar.up { background: #86efac; }
.detail-bar.degraded { background: #fde68a; }
.detail-bar.down { background: #fca5a5; background-image: repeating-linear-gradient(45deg, transparent, transparent 3px, rgba(0,0,0,0.15) 3px, rgba(0,0,0,0.15) 6px); }
.detail-bar:hover { opacity: 0.75; }
.detail-dates { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: var(--text-muted); }
.detail-incidents-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 10px; }

/* Detail extra info grid */
.detail-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; width: 100%; margin-bottom: 24px; }
.detail-info-card { padding: 16px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.detail-info-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 6px; }
.detail-info-value { font-size: 14px; font-weight: 600; color: var(--text); }
.detail-info-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ─── Detail History Note ─── */
.detail-history-note { font-size: 12px; color: var(--text-muted); margin-top: 6px; font-style: italic; }

/* ─── Subscribe Section (Redesigned) ─── */
.subscribe-section { margin-top: 40px; margin-bottom: 36px; }
.subscribe-card {
  padding: 28px 32px;
  border-radius: var(--radius);
  border: none;
  background: linear-gradient(135deg, var(--navy) 0%, #0a1d4a 100%);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.subscribe-card::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.1;
  pointer-events: none;
}
.subscribe-card::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 40%;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.15;
  pointer-events: none;
}
.subscribe-text { display: flex; align-items: center; gap: 14px; flex-shrink: 0; position: relative; z-index: 1; }
.subscribe-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.subscribe-icon { color: var(--navy); flex-shrink: 0; width: 20px; height: 20px; }
.subscribe-title { font-size: 16px; font-weight: 700; color: #fff; line-height: 1.3; }
.subscribe-desc { font-size: 13px; color: rgba(255,255,255,0.75); line-height: 1.3; margin-top: 2px; }
.subscribe-form { display: flex; gap: 8px; flex: 1; min-width: 240px; position: relative; z-index: 1; }
.subscribe-form input {
  flex: 1;
  min-width: 0;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 150ms, background 150ms;
}
.subscribe-form input:focus { border-color: var(--accent); background: rgba(255,255,255,0.12); box-shadow: 0 0 0 3px rgba(255,214,2,0.15); }
.subscribe-form input::placeholder { color: rgba(255,255,255,0.4); }
.subscribe-form button {
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--accent);
  color: var(--navy);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 150ms;
}
.subscribe-form button:hover { background: #ffe333; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255,214,2,0.3); }
.subscribe-form button:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
.subscribe-msg { width: 100%; padding: 10px 16px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; position: relative; z-index: 1; }
.subscribe-msg.ok { background: rgba(22,163,74,0.15); color: #86efac; }
.subscribe-msg.err { background: rgba(220,38,38,0.15); color: #fca5a5; }

/* Webhook Subscribe Tab */
.webhook-form { display: flex; gap: 8px; flex: 1; min-width: 240px; position: relative; z-index: 1; }
.webhook-form input {
  flex: 1; min-width: 0; padding: 11px 16px; border-radius: var(--radius-sm);
  border: 2px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.08);
  color: #fff; font-family: inherit; font-size: 14px; outline: none;
  transition: border-color 150ms, background 150ms;
}
.webhook-form input:focus { border-color: var(--accent); background: rgba(255,255,255,0.12); box-shadow: 0 0 0 3px rgba(255,214,2,0.15); }
.webhook-form input::placeholder { color: rgba(255,255,255,0.4); }
.webhook-form button {
  padding: 11px 24px; border-radius: var(--radius-sm); border: none;
  background: var(--accent); color: var(--navy); font-family: inherit;
  font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap;
  transition: all 150ms;
}
.webhook-form button:hover { background: #ffe333; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255,214,2,0.3); }
.webhook-form button:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }

/* ─── Network Updates (Redesigned) ─── */

/* ── FTStatus CTA (below How We Monitor) ─────────────────────────────────────
   Built from the existing theme tokens rather than fixed hex, so it follows the
   dark theme with everything else. Scoped under .ftc- to avoid colliding with
   the page's own card/button classes. */
.ftc-cta {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
  margin-top: 20px; padding: 24px 26px;
  border: 1px solid var(--border); border-left: 4px solid var(--primary);
  border-radius: 10px; background: var(--surface);
}
.ftc-cta-body { flex: 1 1 340px; min-width: 0; }
.ftc-cta-eyebrow {
  color: var(--primary-text); font-size: 11px; font-weight: 800;
  letter-spacing: .09em; text-transform: uppercase; margin-bottom: 6px;
}
.ftc-cta-title { margin: 0 0 6px; color: var(--text); font-size: 18px; font-weight: 700; line-height: 1.3; }
.ftc-cta-copy  { margin: 0; color: var(--text-secondary); font-size: 14px; line-height: 1.6; max-width: 62ch; }
.ftc-cta-btn {
  display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto;
  padding: 12px 22px; border-radius: 24px;
  background: var(--primary); color: #fff; text-decoration: none;
  font-size: 14px; font-weight: 700; white-space: nowrap;
  transition: filter .15s ease, transform .15s ease;
}
.ftc-cta-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.ftc-cta-btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
@media (max-width: 640px) {
  .ftc-cta { padding: 20px; }
  .ftc-cta-btn { width: 100%; justify-content: center; }
}
/* An advert is not page content — keep it out of print and off the PDF. */
.ftc-cta-side { display: flex; flex-direction: column; align-items: stretch; gap: 12px; flex: 0 0 auto; }

/* Miniature uptime chart. Deliberately echoes ftstatus.com's own motif — a wave across
   alternating brand-blue / #FFD602 bars, plus a blinking live dot — so the advert looks
   like the product it is advertising. */
.ftc-art {
  min-width: 232px; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg);
}
.ftc-art-top { display: flex; align-items: center; gap: 7px; margin-bottom: 9px; }
.ftc-art-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success, #16a34a); flex: 0 0 auto;
}
.ftc-art-label {
  color: var(--text-muted); font-size: 10px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
}
.ftc-art-bars { display: flex; align-items: flex-end; gap: 3px; height: 30px; }
.ftc-art-bars span {
  flex: 1 1 0; min-width: 0; height: 100%;
  border-radius: 2px; background: var(--primary);
  transform-origin: bottom;
}
/* Alternating accent, as on ftstatus.com. */
.ftc-art-bars span:nth-child(even) { background: var(--accent, #FFD602); }

@media (prefers-reduced-motion: no-preference) {
  .ftc-art-dot { animation: ftcBlink 2.3s ease-in-out infinite; }
  /* The per-bar delay is set inline so the wave travels left to right. */
  .ftc-art-bars span { animation: ftcBarWave 2.8s ease-in-out infinite; }
}
@keyframes ftcBlink {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(22, 163, 74, .45); }
  50%      { opacity: .55; box-shadow: 0 0 0 5px rgba(22, 163, 74, 0); }
}
@keyframes ftcBarWave {
  0%, 100% { transform: scaleY(.42); }
  50%      { transform: scaleY(1); }
}

@media (max-width: 640px) {
  .ftc-cta-side { width: 100%; }
  .ftc-art { min-width: 0; width: 100%; }
}

@media print { .ftc-cta { display: none !important; } }

.updates-wrap { padding-top: 36px; }
.updates-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.updates-title { font-size: 18px; font-weight: 800; color: var(--text); letter-spacing: 0; }
.updates-link { font-size: 13px; font-weight: 600; color: var(--primary-text); display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 999px; background: var(--primary-light); transition: all 150ms; }
.updates-link:hover { background: var(--primary); color: #fff; }
/* Single-row carousel. The grid used to wrap to as many rows as it needed, which pushed
   the rest of the page down as soon as there were more than a couple of updates. One row
   that scrolls keeps the section a fixed height no matter how many items the API returns.
   scroll-snap makes a card always land flush against the left edge rather than half-clipped. */
.updates-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;       /* old Edge */
  padding-bottom: 4px;            /* room for the cards' hover lift */
}
.updates-grid::-webkit-scrollbar { display: none; }
/* Fixed basis, and no shrinking: without flex-shrink:0 the cards would compress to fit
   instead of overflowing, and there would be nothing to scroll. */
.update-card { flex: 0 0 320px; scroll-snap-align: start; }
.updates-actions { display: flex; align-items: center; gap: 8px; }
.updates-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; padding: 0;
  border: 1px solid var(--border); border-radius: 6px;
  background: var(--card-bg, transparent); color: var(--text);
  cursor: pointer; transition: border-color .15s, opacity .15s;
}
.updates-btn:hover:not([disabled]) { border-color: var(--primary); }
.updates-btn[disabled] { opacity: .3; cursor: default; }
/* The track is focusable so the carousel is reachable by keyboard, which means it needs a
   visible focus ring — otherwise tabbing lands somewhere invisible. */
.updates-grid:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }
.update-card {
  padding: 20px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all 200ms;
  display: block;
  position: relative;
  overflow: hidden;
}
.update-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  opacity: 0;
  transition: opacity 200ms;
}
.update-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.update-card:hover::before { opacity: 1; }
.update-severity { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; }
.update-severity.resolved { background: var(--success-light); color: var(--success-text); }
.update-severity.investigating { background: var(--warning-light); color: var(--warning-text); }
.update-severity.identified { background: var(--danger-light); color: var(--danger-text); }
.update-severity.info { background: var(--primary-light); color: var(--primary-text); }
.update-date { font-size: 12px; font-weight: 500; color: var(--text-muted); margin-bottom: 6px; }
.update-card-title { font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.4; margin-bottom: 6px; }
.update-excerpt { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.update-affected { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px; }
.update-affected-tag { padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--border-light); color: var(--text-secondary); }

/* ─── States ─── */
.loading-state, .empty { padding: 40px 0; text-align: center; font-size: 14px; color: var(--text-muted); }
.error-box { padding: 14px 20px; border-radius: var(--radius); border: 1px solid var(--danger-border); background: var(--danger-light); color: var(--danger); font-size: 14px; font-weight: 600; margin-bottom: 20px; }

/* ─── Footer (minimal, brand navy — matches the ecosystem footer; self-contained
   here because the cross-origin faciotech-brand.css is CSP-blocked on this origin) ─── */
.site-footer { border-top: 1px solid rgba(255, 255, 255, 0.08); background: #041133; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; font-size: 13px; color: rgba(255, 255, 255, 0.55); }
.footer-inner a { color: rgba(255, 255, 255, 0.72); font-weight: 600; }
.footer-inner a:hover { color: #FFD602; text-decoration: none; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-brand a { color: var(--primary-text); font-weight: 600; }
.footer-brand a:hover { text-decoration: underline; }

/* ─── Timezone Toggle ─── */
.tz-toggle { display: inline-flex; gap: 2px; border-radius: 6px; padding: 2px; background: var(--border-light); }
.tz-btn {
  padding: 4px 12px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 150ms;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tz-btn:hover { color: var(--text-secondary); }
.tz-btn.active {
  background: var(--primary);
  color: #fff;
}

/* ─── Incident Timeline ─── */
.incident-timeline { display: grid; gap: 12px; margin-bottom: 28px; }
.incident-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  border-left: 3px solid var(--border);
}
.incident-card.impact-minor { border-left-color: var(--warning); }
.incident-card.impact-major { border-left-color: var(--danger); }
.incident-card.impact-critical { border-left-color: var(--danger); }
.incident-card.impact-none { border-left-color: var(--border); }

.incident-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.incident-status-badge.investigating { background: var(--warning-light); color: var(--warning-text); }
.incident-status-badge.identified { background: var(--danger-light); color: var(--danger-text); }
.incident-status-badge.monitoring { background: var(--primary-light); color: var(--primary-text); }
.incident-status-badge.resolved { background: var(--success-light); color: var(--success-text); }

.incident-impact-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.incident-impact-badge.minor { background: var(--warning-light); color: var(--warning); }
.incident-impact-badge.major { background: var(--danger-light); color: var(--danger); }
.incident-impact-badge.critical { background: var(--danger-light); color: var(--danger); }
.incident-impact-badge.none { background: var(--border-light); color: var(--text-muted); }

.incident-updates {
  margin-top: 12px;
  padding-left: 16px;
  border-left: 2px solid var(--border-light);
}
.incident-update-item {
  padding: 8px 0;
  position: relative;
}
.incident-update-item::before {
  content: '';
  position: absolute;
  left: -21px;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}
.incident-update-item.investigating::before { background: var(--warning); }
.incident-update-item.identified::before { background: var(--danger); }
.incident-update-item.monitoring::before { background: var(--primary); }
.incident-update-item.resolved::before { background: var(--success); }

.incident-update-type {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 4px;
}
.incident-update-type.investigating { background: var(--warning-light); color: var(--warning-text); }
.incident-update-type.identified { background: var(--danger-light); color: var(--danger-text); }
.incident-update-type.monitoring { background: var(--primary-light); color: var(--primary-text); }
.incident-update-type.resolved { background: var(--success-light); color: var(--success-text); }

.incident-postmortem {
  background: var(--accent-light);
  border: 1px solid var(--accent);
  padding: 12px;
  border-radius: var(--radius-sm);
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* ─── Maintenance Panel ─── */
.maintenance-panel { margin-bottom: 24px; }
.maintenance-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.maintenance-countdown {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-text);
  font-variant-numeric: tabular-nums;
}
.maintenance-timeline-bar {
  height: 4px;
  background: var(--border-light);
  border-radius: 2px;
  position: relative;
  flex: 1;
  min-width: 120px;
}
.maintenance-timeline-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: width 300ms ease;
}
.maintenance-history { margin-top: 16px; }
.maintenance-toggle {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  font-family: inherit;
  padding: 0;
  transition: color 150ms;
}
.maintenance-toggle:hover { color: var(--text); }

/* ─── Response Time Chart ─── */
.rt-chart {
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 60px;
  padding: 12px 0;
}
.rt-bar {
  flex: 1;
  min-width: 0;
  background: var(--primary-light);
  border-radius: 2px;
  transition: height 200ms ease;
  cursor: default;
}
.rt-bar:hover { background: rgba(1, 70, 199, 0.6); }
.rt-percentiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 8px;
}

/* ─── Location Grid ─── */
.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  width: 100%;
  margin-bottom: 20px;
}
.location-card {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.location-card-meta { min-width: 0; }
.location-card-name { font-size: 13px; font-weight: 600; color: var(--text); }
.location-card-region { font-size: 12px; color: var(--text-muted); }
.location-card-status { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.location-card-value { font-size: 12px; font-weight: 700; color: var(--text-secondary); }
.location-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.location-status-dot.up { background: var(--success); }
.location-status-dot.degraded { background: var(--warning); }
.location-status-dot.down { background: var(--danger); }

/* ─── Subscriber Tabs ─── */
.subscribe-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.subscribe-tab {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: transparent;
  color: rgba(255,255,255,0.7);
  font-family: inherit;
  transition: all 150ms;
}
.subscribe-tab.active {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.subscribe-tab:hover { color: rgba(255,255,255,0.8); }

.subscribe-tab-panels {
  position: relative;
  z-index: 1;
  width: 100%;
}
.subscribe-tab-content { width: 100%; }

.feed-url-box { display: flex; gap: 8px; }
.feed-url-box input {
  flex: 1;
  min-width: 0;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 150ms, background 150ms;
}
.feed-url-box input:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 0 0 3px rgba(255,214,2,0.15);
}
.feed-url-box input::placeholder { color: rgba(255,255,255,0.4); }
.feed-copy-btn {
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--accent);
  color: var(--navy);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 150ms;
}
.feed-copy-btn:hover { background: #ffe333; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255,214,2,0.3); }
.feed-hint {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  margin-top: 6px;
}

.csv-download-btn {
  display: inline-flex;
  align-items: center;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--navy);
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 150ms;
}
.csv-download-btn:hover { background: #ffe333; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255,214,2,0.3); }

/* ─── 5-State Badges (additional) ─── */
.badge.partial-outage { background: var(--warning-light); color: var(--warning); }
.badge.under-maintenance { background: var(--primary-light); color: var(--primary-text); }
.badge.major-outage { background: var(--danger-light); color: var(--danger); }

/* ─── Trust Section ─── */
.trust-section { padding-top: 36px; margin-bottom: 24px; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* fixed 3-col → 6 cards = a neat 3×2 block (no ragged auto-fill) */
  gap: 12px;
  width: 100%;
}
.trust-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}
.trust-card-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.trust-card-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ─── Dependency List ─── */
.dep-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}
.dep-tag {
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: var(--border-light);
  color: var(--text-secondary);
}

/* ─── Status Tooltip ─── */
.status-tooltip { position: relative; cursor: help; }
.status-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 150ms;
  margin-bottom: 4px;
  z-index: 10;
}
.status-tooltip:hover::after { opacity: 1; }

/* ─── Collapsible Groups ─── */
.group-header { cursor: pointer; user-select: none; transition: background 150ms; }
.group-header:hover { background: var(--border); }
.group-chevron { transition: transform 200ms ease; flex-shrink: 0; color: var(--text-muted); }
.group-card.collapsed .group-chevron { transform: rotate(-90deg); }
.group-card.collapsed .component-list { display: none; }
.group-header-left { display: flex; align-items: center; gap: 8px; }
.group-header-right { display: flex; align-items: center; gap: 10px; }
/* "4/4 Operational" — the primary information on the page. 12px, not 11px, and a text
   colour rather than a fill colour: 6.48:1 against the --border-light group header.
   site.js emits all-up / not-all-up; the old rule keyed on .has-issues, a class it has
   never emitted, so a group with a service down still rendered its counter green. */
.group-status-summary { font-size: 12px; font-weight: 700; color: var(--success-text); }
.group-status-summary.not-all-up,
.group-status-summary.has-issues { color: var(--warning-text); }

/* ─── Monthly SLA ─── */
.monthly-sla-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; width: 100%; margin-top: 12px; }
.monthly-sla-card { padding: 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); text-align: center; }
.monthly-sla-month { font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 4px; }
.monthly-sla-value { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.monthly-sla-value.sla-good { color: var(--success); }
.monthly-sla-value.sla-warn { color: var(--warning); }
.monthly-sla-value.sla-bad { color: var(--danger); }
.monthly-sla-bar { height: 3px; border-radius: 2px; margin-top: 6px; background: var(--border); }
.monthly-sla-bar-fill { height: 100%; border-radius: 2px; }

/* ─── Incident Timeline (JS-generated) ─── */
.incident-timeline-list { display: grid; gap: 12px; margin-bottom: 28px; }
.incident-timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: box-shadow 200ms;
}
.incident-timeline-card:hover { box-shadow: var(--shadow-md); }
.incident-timeline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.incident-timeline-title { font-size: 15px; font-weight: 700; color: var(--text); }
.incident-timeline-badges { display: flex; gap: 6px; flex-wrap: wrap; }

.incident-update-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}
.incident-update-content { flex: 1; min-width: 0; }
.incident-update-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.incident-update-type {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 4px;
}
.incident-update-time { font-size: 12px; color: var(--text-muted); }
.incident-update-note { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

.incident-updates {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}
.incident-updates > div {
  display: flex;
  gap: 10px;
}
.incident-updates-more { margin-top: 8px; }
.incident-updates-more summary {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-text);
  cursor: pointer;
  padding: 6px 0;
  list-style: none;
}
.incident-updates-more summary::before { content: "▸ "; }
.incident-updates-more[open] summary::before { content: "▾ "; }

/* ─── Maintenance Panel (JS-generated) ─── */
.maint-panel { display: grid; gap: 12px; margin-bottom: 24px; }
.maint-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.maint-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.maint-card-title { font-size: 15px; font-weight: 700; color: var(--text); }
.maint-countdown {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 8px;
}
.maint-countdown-label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.maint-countdown-value { font-size: 20px; font-weight: 800; color: var(--primary-text); font-variant-numeric: tabular-nums; }
.maint-progress { height: 4px; background: var(--border-light); border-radius: 2px; margin-top: 8px; overflow: hidden; }
.maint-progress-bar { height: 100%; background: var(--primary); border-radius: 2px; transition: width 300ms ease; }
.maint-desc { margin-top: 8px; font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.maint-impact { margin-top: 6px; font-size: 13px; color: var(--text-secondary); }
.maint-affected { margin-top: 6px; font-size: 13px; color: var(--text-secondary); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* ─── Monthly SLA (JS-generated) ─── */
.sla-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; width: 100%; }
.sla-card {
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.sla-indicator {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 2px 2px 0 0;
}
.sla-indicator.sla-good { background: var(--success); }
.sla-indicator.sla-warn { background: var(--warning); }
.sla-indicator.sla-bad { background: var(--danger); }
.sla-month { font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 4px; margin-top: 4px; }
.sla-value { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text); }
.sla-days { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ─── Accessibility: Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ─── Theme Toggle ─── */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  padding: 0;
  transition: all 150ms;
}
.theme-toggle:hover { background: rgba(255,255,255,0.2); color: #fff; }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ─── Dark Mode (manual toggle) ─── */
html[data-theme="dark"] {
    --navy: #041133;
    --primary: #3b82f6;
    --primary-light: rgba(59,130,246,0.12);
    --primary-text: #60a5fa;   /* 5.94:1 on --border-light, 6.61:1 on --surface */
    --accent: #FFD602;
    --accent-light: rgba(255,214,2,0.1);
    --bg: #0f1117;
    --surface: #1a1d27;
    --text: #e5e7eb;
    --text-secondary: #9ca3af;
    --text-muted: #9ca3af;
    --border: #2d3039;
    --border-light: #232630;
    --success: #22c55e;
    --success-light: rgba(34,197,94,0.12);
    --success-border: rgba(34,197,94,0.3);
    --warning: #f59e0b;
    --warning-light: rgba(245,158,11,0.12);
    --warning-border: rgba(245,158,11,0.3);
    --danger: #ef4444;
    --danger-light: rgba(239,68,68,0.12);
    --danger-border: rgba(239,68,68,0.3);
    /* On dark the fills are already light enough to read, but lift them a step so the
       11px-to-12px counters keep the same comfortable margin they get on light:
       #4ade80 on --border-light (#232630) 8.66:1, #fbbf24 9.04:1, #fca5a5 7.95:1. */
    --success-text: #4ade80;
    --warning-text: #fbbf24;
    --danger-text: #fca5a5;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.4);
  }

html[data-theme="dark"] ::selection { background: rgba(59,130,246,0.3); }

  html[data-theme="dark"] .site-header { background: #080c1a; }

  /* White on the dark theme's --primary (#3b82f6) is 3.68:1. These two are the only
     fills that carry type; the decorative circle and the progress bars do not. */
  html[data-theme="dark"] .tz-btn.active,
  html[data-theme="dark"] .updates-link:hover { background: #1d4ed8; }  /* white 6.70:1 */

  html[data-theme="dark"] .spark-bar.up { background: #22c55e; }
  html[data-theme="dark"] .spark-bar.degraded { background: #f59e0b; }
  html[data-theme="dark"] .spark-bar.down { background: #ef4444; }

  html[data-theme="dark"] .detail-bar.up { background: #22c55e; }
  html[data-theme="dark"] .detail-bar.degraded { background: #f59e0b; }
  html[data-theme="dark"] .detail-bar.down { background: #ef4444; }

  html[data-theme="dark"] .subscribe-card { background: linear-gradient(135deg, #080c1a 0%, #0f1a3a 100%); }

  html[data-theme="dark"] .status-tooltip::after { background: #1a1d27; border: 1px solid var(--border); }

  html[data-theme="dark"] .rt-bar { background: rgba(59,130,246,0.2); }
  html[data-theme="dark"] .rt-bar:hover { background: rgba(59,130,246,0.5); }

  html[data-theme="dark"] .incident-timeline-card { background: var(--surface); border-color: var(--border); }
  html[data-theme="dark"] .maint-card { background: var(--surface); border-color: var(--border); }
  html[data-theme="dark"] .sla-card { background: var(--surface); border-color: var(--border); }

/* ─── Responsive ─── */
@media (max-width: 640px) {
  .header-inner { padding: 8px 16px; height: auto; min-height: 79px; align-items: center; }
  .header-inner nav { justify-content: flex-end; }
  .banner-inner { padding: 12px 16px; flex-wrap: wrap; }
  .banner-updated { margin-left: 0; width: 100%; margin-top: 2px; padding-left: 22px; }
  .content-wrap { padding: 16px 16px 32px; }
  .search-box { max-width: 100%; }
  .component-row { grid-template-columns: 1fr; gap: 8px; padding: 12px 16px; }
  .component-right { justify-content: flex-start; }
  .group-header { padding: 12px 16px; }
  .footer-inner { padding: 14px 16px; flex-direction: column; gap: 4px; text-align: center; }
  nav { gap: 2px; }
  .nav-link { padding: 6px 10px; font-size: 12px; }
  .subscribe-card { padding: 20px; flex-direction: column; align-items: stretch; gap: 16px; }
  .subscribe-form { flex-direction: column; min-width: 0; }
  .subscribe-form button { width: 100%; }
  .detail-stats { grid-template-columns: 1fr; }
  .detail-header { flex-direction: column; }
  .detail-info-grid { grid-template-columns: 1fr; }
  .update-card { flex-basis: 85%; }
  .updates-wrap { padding-top: 24px; }
  .tz-toggle { margin-top: 8px; }
  .toolbar { flex-wrap: wrap; }
  .location-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .subscribe-tabs { flex-wrap: wrap; }
  .maintenance-card { flex-direction: column; align-items: stretch; }
  .rt-percentiles { grid-template-columns: 1fr 1fr; }
  .incident-card { padding: 14px 16px; }
  .incident-timeline-card { padding: 14px 16px; }
  .incident-timeline-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .maint-card { padding: 14px 16px; }
  .maint-countdown-value { font-size: 16px; }
  .monthly-sla-grid { grid-template-columns: 1fr 1fr; }
  .sla-grid { grid-template-columns: 1fr 1fr; }
  .webhook-form { flex-direction: column; min-width: 0; }
  .webhook-form button { width: 100%; }
}

/* ─── Print ─── */
@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .subscribe-section, .toolbar, .tz-toggle,
  .detail-back, .skip-link, .updates-wrap, #networkUpdates, #trustSection { display: none !important; }
  .banner-wrap { background: #166534 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .content-wrap { max-width: 100%; padding: 16px; }
  .group-card { break-inside: avoid; box-shadow: none; border: 1px solid #ccc; }
  .component-row { cursor: default; }
  .badge, .spark-bar, .detail-bar { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { color: inherit; }
}

.loc-dots{display:inline-flex;gap:3px;align-items:center;margin-right:10px;vertical-align:middle}
.loc-dot{width:7px;height:7px;border-radius:50%;background:#cbd5e1;display:inline-block}
.loc-dot.loc-up{background:#22c55e}
.loc-dot.loc-degraded{background:#f59e0b}
.loc-dot.loc-down{background:#ef4444}

/* Full-width on large screens — matches faciotech.com (container grows to ~92% of
   the viewport, capped on ultra-wide). Appended 2026-06-05. */
@media (min-width: 1400px) {
  .header-inner, .banner-inner, .content-wrap, .footer-inner { max-width: min(92vw, 1840px); }
}
@media (min-width: 2200px) {
  .header-inner, .banner-inner, .content-wrap, .footer-inner { max-width: 2040px; }
}

/* STATUS STICKY HEADER FIX: body overflow-y:auto made it the (non-scrolling) sticky
   containing block, so .site-header scrolled away. Let the document (html) scroll. */
body { padding-top: 79px !important; }

/* ─── B17 / WCAG 2.5.5 minimum pointer target — CRM #366 ───────────────────────
   Appended 2026-08-26. Every rule here raises a REAL control (navigation, form
   control, action button, footer nav) to 44x44. Deliberately NOT applied to:
     * inline links inside running prose — exempt under WCAG 2.2 SC 2.5.8;
     * .group-status-summary / .badge / .loc-dot — status output, not controls;
     * .skip-link while it is off-screen — it is not a pointer target until focus.
   Width counts as much as height: a 36x44 link fails a 44x44 tap on its left and
   right edges just as surely as a 44x36 one fails top and bottom.
   These rules sit at the end of the file on purpose. The responsive block above
   sets smaller padding at <=640px; at equal specificity the later rule wins, so
   the mobile viewports — the ones that are actually touched — get the 44px box.
   Verified with a hit-area probe (elementFromPoint at the four corners of the
   44x44 square), not with getBoundingClientRect alone: a box that measures 44px
   but sits under an overlay or inside a clipping scroller is still not tappable. */

/* Header: brand, quick links, theme toggle */
.logo { min-height: 44px; }
.nav-link,
.nav-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.theme-toggle { min-height: 44px; min-width: 44px; }
.theme-toggle svg { width: 18px; height: 18px; }

/* Toolbar: service filter + timezone switch */
.search-box input { min-height: 44px; }
.tz-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }

/* Collapsible group headers are click targets (see site.js) */
.group-header { min-height: 44px; }

/* Subscribe card: tab strip, both forms, the feed copy boxes, the CSV button */
.subscribe-tab { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.subscribe-form input,
.subscribe-form button,
.webhook-form input,
.webhook-form button,
.feed-url-box input,
.feed-copy-btn,
.csv-download-btn { min-height: 44px; }
.feed-copy-btn { min-width: 44px; }

/* Network updates + component detail */
.updates-link { min-height: 44px; min-width: 44px; }
.detail-back { display: inline-flex; align-items: center; min-height: 44px; }

/* Footer navigation. These are a nav row, not prose, so 2.5.8 does not exempt
   them. Horizontal padding rather than min-width alone keeps the short labels
   ("Terms") tappable across their whole width; the row gap drops from 18px to
   4px so the visual rhythm stays close to what it was. */
.footer-links { gap: 4px; }
.footer-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 8px; }

/* The skip link is off-screen until focused; once it IS on screen it is a
   pointer target like any other. */
.skip-link:focus { min-height: 44px; display: inline-flex; align-items: center; }
