/* NORDAN header switch + WoodMart mobile dark contrast */
/* WoodMart already owns the submenu chevron glyph and direction.
   Restore its default ::after completely; override its dark-mode color token only. */
html[data-theme="dark"] .whb-header .wd-nav-header {
  --nav-chevron-color:var(--nd-text-secondary);
}
html[data-theme="dark"] .whb-header .wd-nav-header > li:is(.menu-item-has-children,.wd-has-children):is(:hover,.wd-opened,:focus-within) {
  --nav-chevron-color:var(--nd-primary);
}

/* Match the other WoodMart header icons: transparent at rest AND hover.
   The button still has a usable 38px hit target and keyboard focus ring. */
.whb-header .nd-header-theme-slot .nd-header-theme-toggle,
.whb-header .nd-header-theme-slot .nd-header-theme-toggle:is(:hover,:active,:focus) {
  appearance:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;
  min-width:38px;
  height:38px;
  min-height:38px;
  margin:0;
  padding:0;
  line-height:1;
  vertical-align:middle;
  border:0!important;
  border-radius:0;
  background:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  color:var(--nd-text);
  cursor:pointer;
  transform:none!important;
  transition:none!important;
  -webkit-tap-highlight-color:transparent;
}
.whb-header .nd-header-theme-toggle:is(:before,:after){content:none!important;display:none!important}
.whb-header .nd-header-theme-toggle:focus-visible{outline:2px solid var(--nd-focus);outline-offset:2px}
.whb-header .nd-header-theme-toggle svg{display:block;flex:none;width:22px;height:22px;stroke:currentColor}
html:not([data-theme="dark"]) .nd-toggle-sun,html[data-theme="dark"] .nd-toggle-moon{display:none!important}
.nd-header-theme-slot{display:flex;align-items:center;justify-content:center}
html[data-theme="dark"] :is(.mobile-nav,.mobile-nav.wd-side-hidden,.mobile-nav .wd-scroll-content){background:var(--nd-elevated);color:var(--nd-text)}
html[data-theme="dark"] .mobile-nav .wd-nav-mobile{--nav-color:var(--nd-text);--nav-color-hover:var(--nd-primary);--nav-color-active:var(--nd-primary);--color-gray-900:var(--nd-text);--color-gray-700:var(--nd-text-secondary)}
html[data-theme="dark"] .mobile-nav :is(.wd-nav-mobile>li>a,.wd-nav-mobile .wd-sub-menu a,.wd-nav-mob-tab a,.wd-nav-opener,.wd-heading,.wd-heading .title,.wd-close-side,.wd-nav-mobile .nav-link-text){color:var(--nd-text);opacity:1}
html[data-theme="dark"] .mobile-nav .wd-nav-opener:after{color:currentColor}
html[data-theme="dark"] .mobile-nav :is(.wd-nav-mobile>li,.wd-nav-mobile .wd-sub-menu>li,.wd-nav-mob-tab){border-color:var(--nd-border)}
html[data-theme="dark"] .mobile-nav .wd-nav-mobile .wd-sub-menu{background-color:var(--nd-surface)}
html[data-theme="dark"] .mobile-nav :is(.wd-nav-mobile li.current-menu-item>a,.wd-nav-mobile li.wd-active>a,.wd-nav-mob-tab li.wd-active>a){color:var(--nd-primary)}
html[data-theme="dark"] .mobile-nav :is(a:hover,a:focus-visible,.wd-nav-opener:hover){color:var(--nd-primary)}
html[data-theme="dark"] .wd-toolbar{background-color:var(--nd-elevated);border-color:var(--nd-border)}
html[data-theme="dark"] .wd-toolbar :is(a,.wd-tools-element,.wd-tools-icon,.wd-tools-text){color:var(--nd-text)}
@media(max-width:767px){.whb-header .nd-header-theme-slot .nd-header-theme-toggle{width:38px;min-width:38px;height:38px;min-height:38px}}
