/* Shared dark colors. Light mode leaves the configured Kadence colors intact. */
html[data-fexoya-theme="dark"] {
  color-scheme: dark;
  --global-palette1: #F26A1B !important;
  --global-palette2: #FF9A4D !important;
  --global-palette3: #ECF1F8 !important;
  --global-palette4: #C3CFE0 !important;
  --global-palette5: #A7B5C8 !important;
  --global-palette6: #8C9BB1 !important;
  --global-palette7: #223049 !important;
  --global-palette8: #121B2B !important;
  --global-palette9: #0B111C !important;
  --global-palette9rgb: 11, 17, 28 !important;
}
html[data-fexoya-theme="light"] { color-scheme: light; }

html[data-fexoya-theme="dark"] body,
html[data-fexoya-theme="dark"] #wrapper,
html[data-fexoya-theme="dark"] #inner-wrap {
  background-color: #0B111C;
  color: #ECF1F8;
}
/* Kadence's palette can also be declared on body. Override it there for inheritance. */
html[data-fexoya-theme="dark"] body {
  --global-palette1: #F26A1B !important;
  --global-palette2: #FF9A4D !important;
  --global-palette3: #ECF1F8 !important;
  --global-palette4: #C3CFE0 !important;
  --global-palette5: #A7B5C8 !important;
  --global-palette6: #8C9BB1 !important;
  --global-palette7: #223049 !important;
  --global-palette8: #121B2B !important;
  --global-palette9: #0B111C !important;
  --global-palette9rgb: 11, 17, 28 !important;
}
html[data-fexoya-theme="dark"] #masthead,
html[data-fexoya-theme="dark"] #masthead .site-header-row-container-inner,
html[data-fexoya-theme="dark"] #masthead .site-header-inner-wrap,
html[data-fexoya-theme="dark"] #colophon,
html[data-fexoya-theme="dark"] #colophon .site-footer-row-container-inner {
  background-color: #0B111C !important;
  color: #ECF1F8 !important;
  border-color: #223049 !important;
}
html[data-fexoya-theme="dark"] #masthead .site-title,
html[data-fexoya-theme="dark"] #masthead .site-title a,
html[data-fexoya-theme="dark"] #masthead .site-description,
html[data-fexoya-theme="dark"] #masthead .header-navigation a,
html[data-fexoya-theme="dark"] #masthead .header-html a,
html[data-fexoya-theme="dark"] #masthead .header-html-inner a,
html[data-fexoya-theme="dark"] #masthead .mobile-html a,
html[data-fexoya-theme="dark"] #masthead .mobile-html-inner a,
html[data-fexoya-theme="dark"] #mobile-drawer .mobile-html a,
html[data-fexoya-theme="dark"] #mobile-drawer .mobile-html-inner a,
html[data-fexoya-theme="dark"] #mobile-drawer .fexoya-wordmark,
html[data-fexoya-theme="dark"] #masthead .fexoya-wordmark,
html[data-fexoya-theme="dark"] #masthead .menu-toggle-open,
html[data-fexoya-theme="dark"] #masthead .search-toggle-open,
html[data-fexoya-theme="dark"] #colophon,
html[data-fexoya-theme="dark"] #colophon :is(p, h2, h3, h4, a, .widget-title) {
  color: #ECF1F8 !important;
}
html[data-fexoya-theme="dark"] #masthead .fexoya-wordmark span,
html[data-fexoya-theme="dark"] #mobile-drawer .fexoya-wordmark span,
html[data-fexoya-theme="dark"] #masthead .header-navigation a:hover,
html[data-fexoya-theme="dark"] #masthead .header-navigation a:focus-visible,
html[data-fexoya-theme="dark"] #colophon a:hover {
  color: #F26A1B !important;
}
html[data-fexoya-theme="dark"] #masthead .header-navigation li.current-menu-item > a,
html[data-fexoya-theme="dark"] #masthead .header-navigation li.fexoya-home-link.current-menu-item > a {
  background-color: #241B18 !important;
  color: #FFB07A !important;
}
html[data-fexoya-theme="dark"] #masthead .header-navigation .sub-menu,
html[data-fexoya-theme="dark"] #masthead .header-navigation .sub-menu a,
html[data-fexoya-theme="dark"] #mobile-drawer .drawer-inner,
html[data-fexoya-theme="dark"] #mobile-drawer .drawer-header,
html[data-fexoya-theme="dark"] #mobile-drawer .drawer-content,
html[data-fexoya-theme="dark"] #search-drawer .drawer-inner {
  background-color: #121B2B !important;
  color: #ECF1F8 !important;
  border-color: #223049 !important;
}
html[data-fexoya-theme="dark"] #mobile-drawer .mobile-navigation a,
html[data-fexoya-theme="dark"] #mobile-drawer .drawer-toggle,
html[data-fexoya-theme="dark"] #search-drawer .drawer-toggle,
html[data-fexoya-theme="dark"] #search-drawer input[type="search"] {
  color: #ECF1F8 !important;
  border-color: #223049 !important;
}
html[data-fexoya-theme="dark"] #mobile-drawer .mobile-navigation a:hover,
html[data-fexoya-theme="dark"] #mobile-drawer .mobile-navigation .current-menu-item > a {
  color: #FFB07A !important;
}
/* Standard Kadence page/article surfaces. Explicit custom block colors remain authored. */
html[data-fexoya-theme="dark"] :is(.content-bg, .entry-content-wrap, .entry-hero, .entry-related-inner) {
  background-color: #121B2B !important;
  color: #ECF1F8;
}

/* Only our toggle controls receive these styles; do not restyle Kadence buttons. */
.fexoya-theme-menu-item { display: flex; align-items: center; justify-content: center; }
button.fexoya-theme-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  margin: 4px 8px;
  padding: 0;
  border: 1px solid #E6E8EC;
  border-radius: 10px;
  background: #F9FAFB;
  color: #33405A;
  box-shadow: none;
  line-height: 1;
  cursor: pointer;
}
html[data-fexoya-theme] button.fexoya-theme-toggle { display: inline-flex; }
html[data-fexoya-theme] button.fexoya-theme-toggle svg { width: 19px; height: 19px; }
button.fexoya-theme-toggle .fexoya-theme-sun { display: none; }
html[data-fexoya-theme="dark"] button.fexoya-theme-toggle {
  background: #162032;
  color: #ECF1F8;
  border-color: #223049;
}
html[data-fexoya-theme="dark"] button.fexoya-theme-toggle .fexoya-theme-moon { display: none; }
html[data-fexoya-theme="dark"] button.fexoya-theme-toggle .fexoya-theme-sun { display: block; }
html[data-fexoya-theme] button.fexoya-theme-toggle:hover { border-color: #F26A1B; }
html[data-fexoya-theme] button.fexoya-theme-toggle:focus-visible {
  outline: 3px solid #F26A1B;
  outline-offset: 3px;
}
#mobile-drawer .fexoya-theme-menu-item { justify-content: flex-start; }
@media print { .fexoya-theme-toggle, .fexoya-theme-menu-item { display: none !important; } }

/* The same compact type scale also covers regular WordPress pages. */
body :where(.entry-content) { font-size:.9375rem; line-height:1.6; }
body .entry-content :where(h1), #inner-wrap h1.entry-title { font-size:clamp(1.5rem,4vw,2.125rem); line-height:1.2; }
body .entry-content :where(h2) { font-size:1.125rem; line-height:1.35; }
body .entry-content :where(h3,h4) { font-size:1rem; line-height:1.4; }
#masthead .header-navigation .header-menu-container > ul > li > a,
#mobile-drawer .mobile-navigation a { font-size:.9375rem; }
#colophon :is(p,li,a) { font-size:.875rem; }
