/* Dark-first surfaces: cool slate instead of purple-ink.
   Only applies when the theme is in dark mode; the light toggle is unchanged. */
[data-theme='dark'] {
  --global-bg: #111318;
  --card-bg: #191B22;
  --sidebar-bg: #191B22;
  --sidebar-menu-bg: #1E2128;
  --search-bg: #191B22;
  --tab-border-color: #2A2E36;
  --tab-button-bg: #1E2128;
  --tab-button-hover-bg: #262A32;
  --tab-button-active-bg: #191B22;
  --preloader-bg: #111318;
  --blockquote-bg: #1E2128;
  --reward-pop: #1E2128;
  --timeline-bg: #1E2128;
  --zoom-bg: #111318;
  --scrollbar-color: #3E4652;
  --card-box-shadow: 0 3px 8px 6px rgba(0, 0, 0, .28);
  --card-hover-box-shadow: 0 3px 10px 6px rgba(0, 0, 0, .4);
}

[data-theme='dark'] #page-header.nav-fixed > #nav,
[data-theme='dark'] #page-header.not-top-img > #nav {
  background: rgba(17, 19, 24, .86);
}

/* Avoid a muddy black overlay on the configured page background in dark mode. */
[data-theme='dark'] #web_bg:before {
  background-color: transparent;
}
