/* Dark mode only. Light mode is not touched.
   Hero (and the header that currently shares the same blue field) go to the
   live near-black body colour #1f2126. The page body is lifted to #2c2f36.
   Newsletter and footer stay brand navy #14183a.
   Mid grey raised surfaces that would otherwise vanish on the new body
   (#2a2c33 homepage cards, #2a2d36 How we grade panel and grade cards)
   are moved to #23262d. Near-black inner wells that already use --surface
   #0b0b0d are left alone, because they stay visible. */

:root[data-theme=dark],
:root[data-theme="dark"],
[data-theme=dark] {
  --bg: #2c2f36;
  --h7-night: #2c2f36;
  color-scheme: dark;
}

:root[data-theme=dark] html,
:root[data-theme="dark"] html {
  background: #2c2f36;
}

:root[data-theme=dark] body,
:root[data-theme="dark"] body,
[data-theme=dark] body,
:root[data-theme=dark] body:has(.pv-panel),
:root[data-theme="dark"] body:has(.pv-panel) {
  background: #2c2f36 !important;
}

:root[data-theme=dark] .h7-band,
:root[data-theme="dark"] .h7-band,
:root[data-theme=dark] .pv-hero,
:root[data-theme="dark"] .pv-hero,
:root[data-theme=dark] .site-header,
:root[data-theme="dark"] .site-header,
:root[data-theme=dark] #site-nav,
:root[data-theme="dark"] #site-nav,
:root[data-theme=dark] .top,
:root[data-theme="dark"] .top {
  background-color: #1f2126 !important;
}

:root[data-theme=dark] .pv-panel,
:root[data-theme="dark"] .pv-panel,
:root[data-theme=dark] .grade-card,
:root[data-theme="dark"] .grade-card,
:root[data-theme=dark] .glance,
:root[data-theme="dark"] .glance,
:root[data-theme=dark] .h7-cards a,
:root[data-theme="dark"] .h7-cards a,
:root[data-theme=dark] .h7-checks li,
:root[data-theme="dark"] .h7-checks li,
:root[data-theme=dark] .h7-key li,
:root[data-theme="dark"] .h7-key li {
  background: #23262d !important;
}

:root[data-theme=dark] .h7-nl-band,
:root[data-theme="dark"] .h7-nl-band,
:root[data-theme=dark] .site-footer,
:root[data-theme="dark"] .site-footer,
:root[data-theme=dark] footer,
:root[data-theme="dark"] footer {
  background-color: #14183a !important;
}
