/* T08 product-menu integration. Original shared component sources are retained. */
/* Keep both panels closed before deferred navigation JavaScript initializes. */
html body :is(header[data-shared-chrome],header.kc6-header) .ks-nav-group:not([data-pm-controlled])>:is(#ks-products-menu,#ks-services-menu)[data-products-menu-local]{display:none!important;}
html body :is(header[data-shared-chrome],header.kc6-header) :is(#ks-products-menu,#ks-services-menu)[data-products-menu-local]{box-sizing:border-box;background:#fff;color:#312a2e;border:0;border-top:1px solid #ece6e9;border-bottom:1px solid #ece6e9;border-radius:0;padding:18px clamp(24px,3vw,64px) 24px;box-shadow:0 12px 22px #30242d0c;}
html body :is(header[data-shared-chrome],header.kc6-header) :is(#ks-products-menu,#ks-services-menu) .pm-inner{width:100%;max-width:1600px;margin:0 auto;}
html body :is(header[data-shared-chrome],header.kc6-header) :is(#ks-products-menu,#ks-services-menu) .pm-heading{margin:0 0 10px;padding:0 0 10px;border-bottom:1px solid #e6dfe2;}
html body :is(header[data-shared-chrome],header.kc6-header) :is(#ks-products-menu,#ks-services-menu) .pm-heading>a{display:inline-flex;align-items:center;gap:16px;min-height:44px;margin:0;padding:8px 12px;color:#a21f6b;text-decoration:none;}
html body :is(header[data-shared-chrome],header.kc6-header) :is(#ks-products-menu,#ks-services-menu) .pm-links{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px 16px;}
html body :is(header[data-shared-chrome],header.kc6-header) #ks-services-menu .pm-links{grid-template-columns:repeat(3,minmax(0,1fr));}
html body :is(header[data-shared-chrome],header.kc6-header) :is(#ks-products-menu,#ks-services-menu) .pm-links>a{display:flex;align-items:center;min-height:48px;padding:10px 12px;margin:0;border:0;border-radius:4px;background:transparent;color:#312a2e;text-decoration:none;overflow-wrap:break-word;}
html body :is(header[data-shared-chrome],header.kc6-header) :is(#ks-products-menu,#ks-services-menu) a:is(:hover,:focus-visible,[aria-current=page]){background:#f8f1f5;color:#a21f6b;}
html body :is(header[data-shared-chrome],header.kc6-header) :is(#ks-products-menu,#ks-services-menu) a:focus-visible{outline:2px solid #a21f6b;outline-offset:2px;}
html body :is(header[data-shared-chrome],header.kc6-header)[data-pm-layout=wide] :is(#ks-products-menu,#ks-services-menu)[data-products-menu-local]{position:fixed;inset:var(--pm-top,84px) 0 auto;transform:none;width:auto!important;max-width:none;max-height:calc(100dvh - var(--pm-top,84px) - 12px);overflow:auto;overscroll-behavior:contain;}
/* One state prevents legacy hover/focus rules reopening after Escape. */
html body :is(header[data-shared-chrome],header.kc6-header) [data-pm-controlled]:not(.is-open)>:is(#ks-products-menu,#ks-services-menu){display:none!important;}
html body :is(header[data-shared-chrome],header.kc6-header) [data-pm-controlled].is-open>:is(#ks-products-menu,#ks-services-menu){display:block!important;animation:pm-reveal 140ms ease-out;}
html body :is(header[data-shared-chrome],header.kc6-header) [data-pm-controlled].is-open>a{color:#a21f6b;background:#f8f1f5;border-radius:4px;}
html body :is(header[data-shared-chrome],header.kc6-header) [data-pm-controlled]>.ks-sub-toggle img{transition:transform 140ms ease;}
html body :is(header[data-shared-chrome],header.kc6-header) [data-pm-controlled].is-open>.ks-sub-toggle img{transform:rotate(180deg);}
@keyframes pm-reveal{from{opacity:0;}to{opacity:1;}}
html body :is(header[data-shared-chrome],header.kc6-header)[data-pm-layout=compact] :is(#ks-navigation,#kc6-navigation){justify-content:flex-start;}
html body :is(header[data-shared-chrome],header.kc6-header)[data-pm-layout=compact] :is(#ks-navigation,#kc6-navigation)>a,html body :is(header[data-shared-chrome],header.kc6-header)[data-pm-layout=compact] :is(#ks-navigation,#kc6-navigation)>.ks-nav-group{flex-shrink:0;}
html body :is(header[data-shared-chrome],header.kc6-header)[data-pm-layout=compact] :is(#ks-products-menu,#ks-services-menu)[data-products-menu-local]{position:static;inset:auto;transform:none;grid-column:1/-1;flex-basis:100%;width:100%!important;max-width:none;max-height:none;padding:8px 0 12px;overflow:visible;box-shadow:none;}
html body :is(header[data-shared-chrome],header.kc6-header)[data-pm-layout=compact] :is(#ks-products-menu,#ks-services-menu) .pm-links{grid-template-columns:minmax(0,1fr);gap:4px 8px;}
html body :is(header[data-shared-chrome],header.kc6-header)[data-pm-layout=compact] #ks-services-menu .pm-links{grid-template-columns:1fr;}
html body :is(header[data-shared-chrome],header.kc6-header)[data-pm-layout=compact] :is(#ks-products-menu,#ks-services-menu) .pm-links>a{padding:10px 8px;}
@media(prefers-reduced-motion:reduce){html body :is(header[data-shared-chrome],header.kc6-header) [data-pm-controlled].is-open>:is(#ks-products-menu,#ks-services-menu){animation:none;}html body :is(header[data-shared-chrome],header.kc6-header) [data-pm-controlled]>.ks-sub-toggle img{transition:none;}}

html body .kc6-header .pm-nav-group{display:flex;align-items:center;gap:0;flex-shrink:0;}
html body .kc6-header .pm-nav-group>a{padding:14px 8px;text-decoration:none;color:#242421;white-space:nowrap;}
html body .kc6-header .pm-nav-group>.ks-sub-toggle{display:grid;place-items:center;background:transparent;border:0;width:28px;height:44px;padding:0;cursor:pointer;}
html body .kc6-header .pm-nav-group>.ks-sub-toggle img{width:14px;height:14px;}
html body .kc6-header[data-pm-layout=compact] .pm-nav-group{display:grid;grid-column:1/-1;grid-template-columns:1fr 44px;width:100%;}
html body .kc6-header[data-pm-layout=compact] .pm-nav-group>a{padding:12px 8px;}
html body .kc6-header[data-pm-layout=compact] .pm-nav-group>.ks-sub-toggle{width:44px;}

/* Keep the longer single-column menu scrollable at every compact breakpoint. */
html:has(header[data-pm-layout=compact] :is(.ks-menu,.kc6-menu)[aria-expanded=true]){overflow:hidden;}
html body :is(header[data-shared-chrome],header.kc6-header)[data-pm-layout=compact] :is(#ks-navigation,#kc6-navigation){max-height:calc(100dvh - var(--pm-top,84px));overflow-y:auto;overscroll-behavior:contain;align-content:start;}
