/*
 * Light Product v1.8.14 — Product Surface Integration Contract
 * Scoped to Light Product body classes. This file never changes non-Product pages.
 */
:root{
  --elpke-shell-offset:126px;
  --elpke-anchor-offset:142px;
}

body.edpack-product-knowledge-product-directory,
body.edpack-product-knowledge-product-detail{
  --elpke-product-gutter:clamp(14px,1.4vw,20px);
}

/* Header/Footer compatibility: when the real menu fits, keep the Product shell in
 * desktop mode even if an external shell uses a conservative fixed breakpoint.
 * The JS probe only adds these classes after measuring the actual rendered menu. */
body:is(.edpack-product-knowledge-product-directory,.edpack-product-knowledge-product-detail):is(.elpke-ephf-desktop-probe,.elpke-ephf-desktop-fit) .ephf-mainbar__inner{
  grid-template-columns:max-content minmax(0,1fr)!important;
  min-height:96px!important;
  padding-block:10px!important;
}
body:is(.edpack-product-knowledge-product-directory,.edpack-product-knowledge-product-detail):is(.elpke-ephf-desktop-probe,.elpke-ephf-desktop-fit) .ephf-brand{
  max-width:300px!important;
}
body:is(.edpack-product-knowledge-product-directory,.edpack-product-knowledge-product-detail):is(.elpke-ephf-desktop-probe,.elpke-ephf-desktop-fit) .ephf-header-actions,
body:is(.edpack-product-knowledge-product-directory,.edpack-product-knowledge-product-detail):is(.elpke-ephf-desktop-probe,.elpke-ephf-desktop-fit) .ephf-menu-toggle,
body:is(.edpack-product-knowledge-product-directory,.edpack-product-knowledge-product-detail):is(.elpke-ephf-desktop-probe,.elpke-ephf-desktop-fit) .ephf-menu-close,
body:is(.edpack-product-knowledge-product-directory,.edpack-product-knowledge-product-detail):is(.elpke-ephf-desktop-probe,.elpke-ephf-desktop-fit) .ephf-mobile-overlay,
body:is(.edpack-product-knowledge-product-directory,.edpack-product-knowledge-product-detail):is(.elpke-ephf-desktop-probe,.elpke-ephf-desktop-fit) .ephf-mobile-panel__head,
body:is(.edpack-product-knowledge-product-directory,.edpack-product-knowledge-product-detail):is(.elpke-ephf-desktop-probe,.elpke-ephf-desktop-fit) .ephf-submenu-toggle{
  display:none!important;
}
body:is(.edpack-product-knowledge-product-directory,.edpack-product-knowledge-product-detail):is(.elpke-ephf-desktop-probe,.elpke-ephf-desktop-fit) #ephf-responsive-nav,
body:is(.edpack-product-knowledge-product-directory,.edpack-product-knowledge-product-detail):is(.elpke-ephf-desktop-probe,.elpke-ephf-desktop-fit) .ephf-responsive-nav{
  position:static!important;
  inset:auto!important;
  z-index:auto!important;
  display:block!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  height:auto!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
  overscroll-behavior:auto!important;
  background:transparent!important;
  box-shadow:none!important;
  transform:none!important;
  visibility:visible!important;
  opacity:1!important;
}
body:is(.edpack-product-knowledge-product-directory,.edpack-product-knowledge-product-detail):is(.elpke-ephf-desktop-probe,.elpke-ephf-desktop-fit) #ephf-responsive-nav .ephf-menu--desktop{
  display:flex!important;
  width:100%!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:0 clamp(6px,.42vw,9px)!important;
  margin:0!important;
  padding:0!important;
}
body:is(.edpack-product-knowledge-product-directory,.edpack-product-knowledge-product-detail).elpke-ephf-desktop-fit.ephf-menu-open{
  overflow:auto!important;
}

/* One shared offset authority for sticky rail and anchors. */
body:is(.edpack-product-knowledge-product-directory,.edpack-product-knowledge-product-detail) .epkrs-sidebar-persistent-choice{
  top:var(--elpke-shell-offset)!important;
}
body:is(.edpack-product-knowledge-product-directory,.edpack-product-knowledge-product-detail) .epkrs-directory section[id],
body:is(.edpack-product-knowledge-product-directory,.edpack-product-knowledge-product-detail) .epkrs-directory [id^="epkrs-"]{
  scroll-margin-top:var(--elpke-anchor-offset)!important;
}

@media(max-width:767px){
  :root{--elpke-shell-offset:84px;--elpke-anchor-offset:96px}
}

/* v1.8.12 desktop-fit submenu restoration.
 * External Header/Footer deliberately converts these menus to drawer semantics
 * at <=1320px. When the measured Product menu actually fits, restore the full
 * desktop submenu contract as well as the top-level row. */
body:is(.edpack-product-knowledge-product-directory,.edpack-product-knowledge-product-detail):is(.elpke-ephf-desktop-probe,.elpke-ephf-desktop-fit) #ephf-responsive-nav .ephf-menu--desktop>li{
  position:relative!important;
  display:list-item!important;
  width:auto!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  flex:0 0 auto!important;
}
body:is(.edpack-product-knowledge-product-directory,.edpack-product-knowledge-product-detail):is(.elpke-ephf-desktop-probe,.elpke-ephf-desktop-fit) #ephf-responsive-nav .ephf-menu--desktop>li>a{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:40px!important;
  padding-block:0!important;
  padding-inline:0!important;
  font-size:clamp(10.75px,.62vw,12.5px)!important;
  white-space:nowrap!important;
}
body:is(.edpack-product-knowledge-product-directory,.edpack-product-knowledge-product-detail):is(.elpke-ephf-desktop-probe,.elpke-ephf-desktop-fit) #ephf-responsive-nav .ephf-menu--desktop .sub-menu{
  position:absolute!important;
  top:calc(100% + 8px)!important;
  left:-18px!important;
  right:auto!important;
  z-index:10020!important;
  display:block!important;
  width:max-content!important;
  min-width:230px!important;
  max-width:320px!important;
  max-height:none!important;
  margin:0!important;
  padding:10px!important;
  overflow:visible!important;
  list-style:none!important;
  opacity:0!important;
  visibility:hidden!important;
  transform:translateY(8px)!important;
  pointer-events:none!important;
}
body:is(.edpack-product-knowledge-product-directory,.edpack-product-knowledge-product-detail):is(.elpke-ephf-desktop-probe,.elpke-ephf-desktop-fit) #ephf-responsive-nav .ephf-menu--desktop li:hover>.sub-menu,
body:is(.edpack-product-knowledge-product-directory,.edpack-product-knowledge-product-detail):is(.elpke-ephf-desktop-probe,.elpke-ephf-desktop-fit) #ephf-responsive-nav .ephf-menu--desktop li:focus-within>.sub-menu{
  opacity:1!important;
  visibility:visible!important;
  transform:none!important;
  pointer-events:auto!important;
}
body:is(.edpack-product-knowledge-product-directory,.edpack-product-knowledge-product-detail):is(.elpke-ephf-desktop-probe,.elpke-ephf-desktop-fit) #ephf-responsive-nav .ephf-menu--desktop .sub-menu .sub-menu{
  top:-10px!important;
  left:calc(100% + 10px)!important;
  right:auto!important;
}
body:is(.edpack-product-knowledge-product-directory,.edpack-product-knowledge-product-detail):is(.elpke-ephf-desktop-probe,.elpke-ephf-desktop-fit) #ephf-responsive-nav .ephf-menu--desktop>li:nth-last-child(-n+2)>.sub-menu{
  right:0!important;
  left:auto!important;
}
body:is(.edpack-product-knowledge-product-directory,.edpack-product-knowledge-product-detail):is(.elpke-ephf-desktop-probe,.elpke-ephf-desktop-fit) #ephf-responsive-nav .ephf-menu--desktop>li:nth-last-child(-n+2)>.sub-menu .sub-menu{
  right:calc(100% + 10px)!important;
  left:auto!important;
}
