body.light-mode {
  --nsd-bg: #FCFBF8;
  --nsd-bg-elevated: #FFFFFF;
  --nsd-bg-contrast: #241A38;
  --nsd-text: #241A38;
  --nsd-text-muted: #6E6580;
  --nsd-text-on-contrast: #FCFBF8;
  --nsd-text-on-accent: #FCFBF8;
  --nsd-accent: #3E2A63;
  --nsd-accent-secondary: #4C7A72;
  --nsd-border: #ECE7DC;
}

/* ===== NSD Theme Toggle: Light Mode Overrides ===== */
/* Dark mode is the default (already styled by nsd-styles/dark-theme.css). */
/* These rules only apply when body has the .light-mode class. */

body.light-mode {
  background-color: #FCFBF8;
  color: #241A38;
}
body.light-mode h1, body.light-mode h2, body.light-mode h3,
body.light-mode h4, body.light-mode h5, body.light-mode h6,
body.light-mode .et_pb_heading__title {
  color: #241A38 !important;
}
body.light-mode a { color: #3E2A63; }
body.light-mode a:hover { color: #4C7A72; }

  color: #6E6580 !important;
}

body.light-mode .et_pb_menu {
  background-color: rgba(252,251,248,0.94) !important;
}
body.light-mode .et_pb_menu ul li a {
  color: #241A38 !important;
}
body.light-mode .nav-cta-button > a {
  background-color: #3E2A63 !important;
  color: #FCFBF8 !important;
}
body.light-mode .nav-cta-button > a:hover {
  background-color: #4C7A72 !important;
  color: #FCFBF8 !important;
}

body.light-mode footer, body.light-mode .et-l--footer {
  background-color: #241A38 !important;
}
body.light-mode footer a, body.light-mode .et-l--footer a {
  color: #C9BFDD !important;
}
body.light-mode footer h2, body.light-mode footer h3,
body.light-mode .et-l--footer h2, body.light-mode .et-l--footer h3 {
  color: #FCFBF8 !important;
}

/* Theme toggle button itself */
#nsd-theme-toggle-btn {
  background: none;
  border: none;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--nsd-accent);
  padding: 0;
  font-size: 16px;
  line-height: 1;
}
/* Logo swap: white logo for dark mode (default), colour logo for light mode */
body.light-mode .nsd-logo-dark { display: none !important; }
body.light-mode .nsd-logo-light { display: block !important; }


/* ===== NSD Theme Toggle: Global Color overrides (added when nsd-* palette was registered as
   real Divi Global Colors to fix section backgrounds not switching -- see nsd-toolkit) ===== */
body.light-mode {
  --gcid-xu1pnppae7: #FCFBF8 !important; /* nsd-bg */
  --gcid-4yd4mnlbn7: #FFFFFF !important; /* nsd-bg-elevated */
  --gcid-tk71jzhfhs: #241A38 !important; /* nsd-bg-contrast */
  --gcid-ho68kewerr: #241A38 !important; /* nsd-text */
  --gcid-948eh48ptp: #6E6580 !important; /* nsd-text-muted */
  --gcid-o93zdow18t: #FCFBF8 !important; /* nsd-text-on-contrast */
  --gcid-z0o9toxc92: #FCFBF8 !important; /* nsd-text-on-accent */
  --gcid-i3vgd11nsm: #3E2A63 !important; /* nsd-accent */
  --gcid-8z0wuhoe3v: #4C7A72 !important; /* nsd-accent-secondary */
  --gcid-2dcwt0hoqe: #ECE7DC !important; /* nsd-border */
}
