/* P17-01 — single accessible desktop active-state contract. Preserve V13 drawer. */
@media (min-width:1025px){
  body:not(.kbm-b1-global-shell).kbm-theme-header-canonical .kbm-theme-nav__scroll{display:flex!important;flex-wrap:nowrap!important;min-width:0;gap:2px!important;align-items:stretch}
  body:not(.kbm-b1-global-shell).kbm-theme-header-canonical .kbm-theme-nav__item{min-width:0;}
  body:not(.kbm-b1-global-shell).kbm-theme-header-canonical .kbm-theme-nav__link{font-size:clamp(10.5px,.79vw,13px);padding-inline:clamp(3px,.34vw,8px);}
  body:not(.kbm-b1-global-shell).kbm-theme-header-canonical .kbm-theme-nav__item[data-kbm-nav-key="machine-sales"]{display:flex!important;visibility:visible!important;min-width:max-content!important;}
  body:not(.kbm-b1-global-shell).kbm-theme-header-canonical .kbm-theme-nav__item[data-kbm-nav-key="machine-sales"] .kbm-theme-nav__label{display:inline!important;visibility:visible!important;white-space:nowrap!important;}
  body:not(.kbm-b1-global-shell).kbm-theme-header-canonical .kbm-theme-nav__item.is-active,
  body:not(.kbm-b1-global-shell).kbm-theme-header-canonical .kbm-theme-nav__item:has(>a[aria-current="page"]){background:rgba(255,205,25,.12)!important;border-color:transparent!important;box-shadow:inset 0 -3px 0 #ffcc00!important;}
  body:not(.kbm-b1-global-shell).kbm-market2026.kbm-theme-header-canonical .kbm-theme-nav__item.is-active > .kbm-theme-nav__link,
  body:not(.kbm-b1-global-shell).kbm-theme-header-canonical .kbm-theme-nav__item[data-kbm-nav-key="machine-sales"].is-active > .kbm-theme-nav__link,
  body:not(.kbm-b1-global-shell).kbm-theme-header-canonical .kbm-theme-nav__item.is-active > .kbm-theme-nav__link,
  body:not(.kbm-b1-global-shell).kbm-market2026.kbm-theme-header-canonical .kbm-theme-nav__item.is-active > .kbm-theme-nav__link .kbm-theme-nav__label,
  body:not(.kbm-b1-global-shell).kbm-theme-header-canonical .kbm-theme-nav__item.is-active > .kbm-theme-nav__link .kbm-theme-nav__label,
  body:not(.kbm-b1-global-shell).kbm-theme-header-canonical .kbm-theme-nav__item.is-active > .kbm-theme-nav__toggle,
  body:not(.kbm-b1-global-shell).kbm-theme-header-canonical .kbm-theme-nav__link[aria-current="page"],
  body:not(.kbm-b1-global-shell).kbm-theme-header-canonical .kbm-theme-nav__link[aria-current="page"] .kbm-theme-nav__label{
    color:#ffffff!important;-webkit-text-fill-color:#ffffff!important;text-shadow:none!important;opacity:1!important;
  }
  body:not(.kbm-b1-global-shell).kbm-theme-header-canonical .kbm-theme-nav__item.is-active > .kbm-theme-nav__link .kbm-theme-nav__icon{color:#ffcc00!important;-webkit-text-fill-color:#ffcc00!important;}
  body:not(.kbm-b1-global-shell).kbm-theme-header-canonical .kbm-theme-nav__item.is-active .kbm-theme-nav__icon svg{stroke:#ffcc00!important;}
  body:not(.kbm-b1-global-shell).kbm-theme-header-canonical .kbm-theme-nav__link:hover{color:#ffffff!important;-webkit-text-fill-color:#ffffff!important;}
}
/* Compact active row uses the navy V13 background. */
@media(max-width:1024px){
  body:not(.kbm-b1-global-shell).kbm-theme-header-canonical.kbm-theme-compact-header-mode .kbm-theme-nav__item.is-active > .kbm-theme-nav__link,
  body:not(.kbm-b1-global-shell).kbm-theme-header-canonical.kbm-theme-compact-header-mode .kbm-theme-nav__item.is-active .kbm-theme-nav__label{color:#ffffff!important;-webkit-text-fill-color:#ffffff!important;}
}

@media (min-width:1025px) and (max-width:1439px){
 body:not(.kbm-b1-global-shell).kbm-theme-header-canonical .kbm-theme-nav__icon{display:none!important;}
 body:not(.kbm-b1-global-shell).kbm-theme-header-canonical .kbm-theme-nav__item .kbm-theme-nav__link{font-size:11px!important;padding-inline:3px!important;}
 body:not(.kbm-b1-global-shell).kbm-theme-header-canonical .kbm-theme-nav__toggle{width:24px!important;min-width:24px!important;}
 body:not(.kbm-b1-global-shell).kbm-theme-header-canonical .kbm-theme-nav__scroll{gap:0!important;}
}
