/* Corrective layer, loaded after all legacy styles. */
html[data-theme="dark"] {
  --ap3-ivory: #0d151d; --ap3-paper: #14212c; --ap3-ink: #eef1f3;
  --ap3-muted: #abb3ba; --ap3-line: #34424e; --ap3-burgundy: #d17886;
  --ap3-teal: #79bec5;
}
.hero { min-height: auto; padding-block: clamp(2rem, 5vw, 4rem); }
.hero h1 { max-width: 19ch; font-size: clamp(2.6rem, 5.4vw, 5.3rem); line-height: 1.02; letter-spacing: -.025em; }
.hero-visual { max-width: 27rem; justify-self: center; }
[data-awareness-project][hidden] { display: none !important; }
.hero-lead { font-size: 1.125rem; line-height: 1.6; }
.hero::before { opacity: .25; }
.now-page { background: var(--ivory); color: var(--ink); }
.now-page .now-heading { padding-block: 1.5rem; }
.now-page .now-heading .lisa-heading-copy h1 { font-size: clamp(1.9rem, 3.3vw, 3rem); line-height: 1.12; letter-spacing: -.02em; }
.now-page .lisa-heading-icon { width: 2.5rem; height: 2.5rem; }
.now-page .lisa-descriptor { display: none; }
.dashboard-date { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; padding-block: .8rem; }
.dashboard-date input, .dashboard-date button { min-height: 44px; font: inherit; padding: .5rem .8rem; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: .35rem; }
.dashboard-date label { font-weight: 600; }
.now-page .dashboard-stage-header h2 { font-size: 1.25rem; line-height: 1.4; }
.now-page .dashboard-stage-header h2 { color: var(--ink); }
.now-page .dashboard-stage-header > p:last-child { color: var(--muted); }
.now-page .dashboard-command-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.now-page .dashboard-kpi-stack { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.now-page .analyst-pulse { min-height: 0; padding: 1.25rem; }
.now-page .now-gauge { width: 9rem; height: 9rem; min-height: 0; margin-block: .75rem; }
.now-page .now-gauge strong { font-size: 2.6rem; }
.now-page .analyst-metric { min-height: 0; padding: 1.25rem; }
.now-page .analyst-sources-list { gap: 1rem; }
.now-page small, .now-page .analyst-sources small, .now-page .now-window,
.now-page .dashboard-stage-label, .now-page .analyst-metric > span,
.now-page .now-updated small, .now-page .analyst-subnav a { font-size: .875rem; }
.now-page .segmented-control button { min-height: 44px; font-size: 1rem; }
.geo-data-details[hidden] { display: none !important; }
.method-page h1, .method-hero h1 { font-size: clamp(2.25rem,4.6vw,4.5rem); line-height: 1.08; }
.method-page .method-opening-copy h1 { max-width: 17ch; font-size: clamp(2.25rem,4.6vw,4.5rem); line-height: 1.08; }
.method-page h2 { font-size: clamp(1.5rem,2.5vw,2.2rem); line-height: 1.25; }
.method-opening { padding-block: 2.5rem; }
.method-article h2, .method-section h2, .method-guide h2 { font-size: clamp(1.5rem,2.5vw,2.2rem); line-height: 1.2; }
.method-article p, .method-guide p { max-width: 75ch; }
body.admin-app h1 { max-width: none; font-size: clamp(2rem,3vw,3rem); line-height: 1.15; }
body.admin-app > main { padding-top: 2rem; min-width: 0; }
body.admin-app .admin-action-card p { color: var(--ap3-muted); }
body.admin-app .admin-action-count { color: var(--ap3-burgundy); }
body.admin-app .admin-nav-label { font-size: .875rem; letter-spacing: .06em; }
body.admin-app .admin-nav a { font-size: .9375rem; min-height: 44px; }
.admin-menu-toggle { display: none; }
.admin-table-scroll { overflow-x: auto; }
.admin-table-scroll table { border-collapse: collapse; width: 100%; font-size: .9375rem; }
.admin-table-scroll th, .admin-table-scroll td { padding: .75rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--ap3-line); min-width: 9rem; overflow-wrap: anywhere; }
:where(button,a,input,select,summary):focus-visible { outline: 3px solid var(--burgundy, #8a3e4a); outline-offset: 3px; }
@media(max-width:900px) {
  .admin-nav-enhanced .admin-menu-toggle { display: block; min-height: 44px; width: 100%; margin-top: 1rem; }
  body.admin-app .admin-nav { display: grid !important; overflow: visible; margin-top: 1rem; }
  body.admin-app .admin-nav-label { display: block; }
  .admin-nav-enhanced body.admin-app #admin-navigation:not(.is-open) { display: none !important; }
  body.admin-app .admin-nav a { border-left: 2px solid transparent; border-bottom: 0; }
  .now-page .dashboard-command-grid { grid-template-columns: 1fr; }
}
@media(max-width:600px) {
  .hero h1 { font-size: clamp(2.2rem, 10vw, 3.5rem); }
  .hero-visual { max-width: 16rem; }
  .now-page .dashboard-kpi-stack { grid-template-columns: 1fr; }
  .dashboard-date > * { max-width: 100%; }
  .now-page .now-heading { flex-wrap: wrap; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }
