/* Dark flip for Nimbus — structure untouched */
:root { color-scheme: dark; }

/* Cover common “light” scopes just in case */
:root, body, .light, .theme-light, [data-theme="light"] {
  --background-color: #0b0d10 !important;
  --background-color-rgb: 11,13,16 !important;

  --default-color: #e6e6e6 !important;            /* body text */
  --default-color-rgb: 230,230,230 !important;

  --heading-color: #f5f5f5 !important;            /* headings */
  --heading-color-rgb: 245,245,245 !important;

  --contrast-color: #ffffff !important;           /* on-dark contrast */

  /* keep your accent the same */
  --accent-color: #e84545 !important;
  --accent-color-rgb: 232,69,69 !important;

  /* nav variables used by Nimbus */
  --nav-color: #e6e6e6 !important;
  --nav-hover-color: #e84545 !important;
  --nav-dropdown-color: #e6e6e6 !important;
  --nav-dropdown-hover-color: #e84545 !important;
  --nav-dropdown-background-color: #111418 !important;
}

/* Hard fallback for any hard-coded spots */
html, body { background: #0b0d10 !important; color: #e6e6e6 !important; }

/* Keep surfaces transparent so the root bg shows */
header, nav, main, footer,
.section, .container, .content,
.post, .card, .widget, .sidebar {
  background-color: transparent !important;
  color: inherit !important;
  border-color: rgba(255,255,255,.12) !important;
}

/* Links honor accent */
a { color: var(--accent-color) !important; }
a:hover { filter: brightness(1.15); }