/* ═══════════════════════════════════════════════════════════════════
   POP v3 — 2026-05-15
   Site-wide contrast lift. Eliminates grey-on-black ghost text.
   Brightens muted text, beefs up borders. Applies to every page.
   ═══════════════════════════════════════════════════════════════════ */

/* GLOBAL — style.css token overrides (used by every non-v4 page) */
:root{
  --text-m:#9aa0b0;
  --text-s:#d2d6e1;
  --border-s:rgba(255,255,255,0.20);
}
.section-title{color:var(--text-s)}
.card{border-color:rgba(255,255,255,0.20)}
.stat-label{color:var(--text-s)}
.heat-legend{color:var(--text-s)}

/* DASHBOARD v4 — token overrides
   (!important needed because dashboard-v4.css loads after base.html's stylesheets) */
.v4-root{
  --v4-border-1:rgba(255,255,255,0.20) !important;
  --v4-border-2:rgba(255,255,255,0.32) !important;
  --v4-text-3:#b4b8c4 !important;
  --v4-text-4:#7a7f8e !important;
}

/* Section titles + peek titles — solid white, no more ghost-grey */
body .v4-root .d-v4-section-title,
body .v4-root .d-v4-peek-title{color:#f5f5f7;font-weight:700}

/* Section sub-text — readable */
body .v4-root .d-v4-section-hint,
body .v4-root .d-v4-chart-sub,
body .v4-root .d-v4-peek-stats,
body .v4-root .d-v4-peek-stat-label,
body .v4-root .d-v4-bar-label-code,
body .v4-root .d-v4-perf-summary-label,
body .v4-root .d-v4-perf-summary-note{color:#c6c8d1}

/* System Pulse top status strip */
body .v4-root .d-v4-status{color:#c6c8d1;border-bottom-color:rgba(255,255,255,0.20)}
body .v4-root .d-v4-status .meta{color:#b4b8c4}
body .v4-root .d-v4-status .sep{color:#7a7f8e}

/* Hover visibility — cards/peeks/charts pop more clearly */
body .v4-root .d-v4-peek:hover,
body .v4-root .d-v4-chart:hover,
body .v4-root .d-v4-stat:hover{
  border-color:rgba(255,255,255,0.36)
}

/* Drawer + topbar — muted nav text now readable */
.nav-drawer-section-title{color:var(--text-s)}
.nav-drawer-link-muted{color:var(--text-s)}
.topbar-title{color:var(--text-s)}
.topbar-stat{color:var(--text-s)}
