/* T01: navigation controls only. Existing colours, logo and scroll theme stay. */
/* Keep the scrollbar space when the existing compact menu locks scrolling. */
html:has(.kc6-header) {
  scrollbar-gutter: stable;
}
html body .kc6-header .ks-sub-toggle img {
  display: none !important;
}

/* The Products destination and its independent disclosure both remain usable. */
html body .kc6-header .pm-nav-group > .ks-sub-toggle:not(.pm-service-trigger) {
  width: 44px !important;
  min-width: 44px;
  min-height: 44px;
  padding: 0 !important;
  border-radius: 3px;
}
html body .kc6-header .pm-nav-group > .ks-sub-toggle:not(.pm-service-trigger)::before {
  content: "Menu";
  font: 500 11px/1.4 'KUCI Unified Sans', Inter, Arial, sans-serif;
  letter-spacing: 0;
  text-transform: none;
}
/* Services becomes one text button in the retained controller. Keep its
   pre-initialisation link the same width, without flashing an extra control. */
html body .kc6-header .pm-nav-group:has(> #ks-services-menu) > .ks-sub-toggle:not(.pm-service-trigger) {
  display: none !important;
}
html body .kc6-header .pm-service-trigger {
  gap: 0 !important;
}
html body .kc6-header :is(.ks-sub-toggle, .kc6-menu):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
html body .kc6-header [data-pm-controlled].is-open > :is(#ks-products-menu, #ks-services-menu) {
  animation-duration: 200ms !important;
}
@media (prefers-reduced-motion: reduce) {
  html body .kc6-header [data-pm-controlled].is-open > :is(#ks-products-menu, #ks-services-menu) {
    animation: none !important;
  }
}
