.ch-header {
  --ch-accent:#7650c8;
  --ch-border:#e2e2e2;
  position:relative;
  color:var(--base,#222);
  font:inherit;
  min-width:0;
  z-index:20
}
.ch-header * {
  box-sizing:border-box
}
.ch-header ul {
  list-style:none;
  margin:0;
  padding:0
}
.ch-header button,.ch-header a,.ch-header summary {
  -webkit-tap-highlight-color:transparent
}
.ch-header button {
  font:inherit;
  border:0;
  background:transparent;
  color:inherit;
  cursor:pointer
}
.ch-header [hidden] {
  display:none!important
}
.ch-header a:not(.sd-button) {
  color:inherit;
  text-decoration:none
}
.ch-header :is(a,button,summary):focus-visible {
  outline:3px solid var(--ch-accent);
  outline-offset:3px
}
.ch-surface {
  display:flex;
  align-items:center;
  gap:14px
}
.ch-level-0 {
  display:flex;
  gap:10px;
  align-items:center
}
.ch-item-heading {
  display:flex;
  align-items:center
}
.ch-toggle {
  display:flex;
  align-items:center;
  gap:12px;
  min-height:44px;
  padding:10px;
  border-radius:4px;
  font-weight:600;
  text-align:left
}
.ch-chevron {
  position:relative;
  width:12.6px;
  height:12.6px;
  flex-shrink:0;
}
.ch-chevron::after {
  content:"";
  position:absolute;
  top:1.4px;
  left:0;
  width:7px;
  height:7px;
  border-right:1.6px solid currentColor;
  border-bottom:1.6px solid currentColor;
  transform:rotate(45deg);
  transition:transform .2s ease;
}
.ch-toggle[aria-expanded=true]>.ch-chevron::after {
  transform:rotate(-135deg);
  top:5.6px;
}
.ch-ready .ch-level-0>.ch-item>.ch-item-heading>.ch-toggle[aria-expanded=true] {
  background:#f4f4f4
}
.ch-link {
  display:block;
  padding:12px 10px;
  border-radius:3px;
  font-size:14px;
  line-height:1.4;
  font-weight:600;
  overflow-wrap:anywhere
}
.ch-link:hover {
  background:#f4f4f4
}
.ch-link[aria-current=page] {
  text-decoration:underline;
  text-underline-offset:4px
}
.ch-link img {
  display:block;
  width:26px;
  height:26px;
  object-fit:contain;
  margin-bottom:8px
}
.ch-static {
  display:block;
  font-weight:600
}
.ch-item-heading>.ch-static {
  display:none
}
.ch-ready .ch-level-0>.ch-item>.ch-panel {
  position:absolute;
  top:calc(100% + 8px);
  background:white;
  border-radius:var(--custom-radius-s, 6px);
  box-shadow:0 18px 32px #0003;
  padding:10px;
  max-height:calc(100dvh - 100px);
  overflow:auto
}
.ch-level-0>.ch-item[data-layout=list]>.ch-panel {
  width:230px;
  right:0
}
/* Center desktop dropdowns on their parent; JS only clamps viewport overflow. */
@media(min-width:1280px) {
  .ch-header.ch-ready .ch-level-0>.ch-item {
    position:relative;
  }
  .ch-header.ch-ready .ch-level-0>.ch-item>.ch-panel {
    left:50%;
    right:auto;
    transform:translateX(calc(-50% + var(--ch-panel-shift, 0px)));
  }
  .ch-header.ch-ready .ch-level-0>.ch-item[data-layout=list]>.ch-panel {
    width:min(230px, calc(100vw - 32px));
  }
}
/* Mega-menu columns and brand bands are desktop-only. */
@media(min-width:1280px) {
.ch-level-0>.ch-item[data-layout=products]>.ch-panel {
  right:0;
  width:min(1360px,calc(100vw - 48px))
}
.ch-level-0>.ch-item[data-layout=products]>.ch-panel>.ch-level {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px
}
.ch-item[data-layout=products]>.ch-panel>.ch-level>.ch-item>.ch-item-heading {
  background:#222;
  color:white;
  border-radius:var(--custom-radius-xs, 4px);
  padding:var(--space-s, 16px);
  gap:var(--space-xs, 12px)
}
.ch-item[data-layout=products] .ch-level-1>.ch-item>.ch-item-heading>.ch-static {
  display:block;
  text-transform:uppercase;
  font-size:14px
}
.ch-item[data-layout=products] .ch-level-2 {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  padding-top:16px
}
.ch-item[data-layout=products] .ch-level-2>.ch-item {
  padding:0 8px;
  border-right:1px solid var(--ch-border)
}
.ch-item[data-layout=products] .ch-level-2>.ch-item:last-child {
  border:0
}
.ch-item[data-layout=products] .ch-level-2>.ch-item>.ch-item-heading>.ch-static {
  display:block;
  font-size:14px;
  font-weight:700;
  text-transform:uppercase;
  color:#666;
  min-height:24px
}
.ch-item[data-layout=industries]>.ch-panel {
  right:0;
  width:min(820px,calc(100vw - 48px))
}
.ch-item[data-layout=industries]>.ch-panel>.ch-level {
  display:grid;
  grid-auto-flow:column;
  grid-template-rows:repeat(4,auto);
  grid-template-columns:repeat(4,minmax(0,1fr))
}
.ch-item[data-layout=industries] .ch-link {
  min-height:88px;
}
.ch-item[data-layout=industries] .ch-column-1 {
  grid-column:1
}
.ch-item[data-layout=industries] .ch-column-2 {
  grid-column:2
}
.ch-item[data-layout=industries] .ch-column-3 {
  grid-column:3
}
.ch-item[data-layout=industries] .ch-column-4 {
  grid-column:4
}
}
/* Adapted from source/wpml-switcher; isolated from the legacy shortcode. */
.ch-language {
  position:relative;
  width:80px;
  flex-shrink:0;
}
.ch-language__current {
  width:100%;
  height:44px;
  padding:0 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  background:transparent;
  border:1px solid var(--base-medium, #aaa);
  border-radius:var(--custom-radius-xs, 4px);
  font-size:14px;
  font-weight:400;
  text-transform:uppercase;
  cursor:pointer;
  list-style:none;
}
.ch-language__current::-webkit-details-marker { display:none; }
.ch-language__current::marker { content:""; }
.ch-language__arrow {
  position:relative;
  width:18px;
  height:18px;
  flex-shrink:0;
}
.ch-language__arrow::after {
  content:"";
  position:absolute;
  top:2px;
  left:0;
  width:10px;
  height:10px;
  border-right:2px solid #333;
  border-bottom:2px solid #333;
  transform:rotate(45deg);
  transition:transform .2s ease;
}
.ch-language[open] .ch-language__arrow::after {
  transform:rotate(-135deg);
  top:8px;
}
.ch-header .ch-language__list {
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  right:0;
  background:white;
  border:1px solid var(--base-medium, #aaa);
  border-radius:var(--custom-radius-xs, 4px);
  margin:0;
  padding:8px 0;
  z-index:100;
}
.ch-language__list a {
  display:block;
  padding:10px 12px;
  font-size:14px;
  color:#333;
  text-transform:uppercase;
}
.ch-language__list a:hover {
  background:var(--base-semi-light, #f4f4f4);
}
@media(prefers-reduced-motion:reduce) {
  .ch-language__arrow::after { transition:none; }
}
.ch-cta {
  flex-shrink:0;
}
/* One persistent header control, with decorative animated bars. */
.ch-header .ch-burger {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:var(--space-xs, 12px);
  min-height:44px;
  padding:8px;
  font-size:18px;
  font-weight:700;
}
.ch-burger-icon {
  position:relative;
  display:block;
  width:26px;
  height:24px;
  flex-shrink:0;
}
.ch-burger-icon>span {
  position:absolute;
  left:0;
  top:10.5px;
  width:100%;
  height:3px;
  border-radius:2px;
  background:currentColor;
  transition:transform .2s ease,opacity .2s ease;
}
.ch-burger-icon>span:first-child { transform:translateY(-7px); }
.ch-burger-icon>span:last-child { transform:translateY(7px); }
.ch-burger[aria-expanded=true] .ch-burger-icon>span:first-child { transform:rotate(45deg); }
.ch-burger[aria-expanded=true] .ch-burger-icon>span:nth-child(2) { opacity:0; }
.ch-burger[aria-expanded=true] .ch-burger-icon>span:last-child { transform:rotate(-45deg); }
@media(prefers-reduced-motion:reduce) {
  .ch-burger-icon>span { transition:none; }
}
.ch-header:not(.ch-ready) .ch-surface,.ch-header:not(.ch-ready) .ch-level-0 {
  display:block
}
.ch-header:not(.ch-ready) .ch-toggle {
  display:none
}
.ch-header:not(.ch-ready) .ch-static {
  display:block;
  margin:12px 0
}
.ch-header:not(.ch-ready) .ch-panel {
  width:auto
}
.ch-header:not(.ch-ready) .ch-level {
  display:block!important
}

@media(max-width:1279px) {
  .ch-ready .ch-surface {
  position:fixed;
  inset:var(--ch-mobile-header-height, 72px) 0 0;
  display:block;
  height:calc(100vh - var(--ch-mobile-header-height, 72px));
  height:calc(100dvh - var(--ch-mobile-header-height, 72px));
  overflow-y:auto;
  overscroll-behavior:contain;
  background:white;
  padding:var(--space-xs, 12px) 20px max(24px,env(safe-area-inset-bottom));
  border-top:1px solid var(--ch-border);
  transform:translateY(-12px);
  opacity:0;
  transition:transform .2s ease,opacity .2s ease
}
.ch-ready .ch-surface.is-open {
  transform:translateY(0);
  opacity:1
}
.ch-language {
  display:block;
  width:100%;
  margin-bottom:12px;
  min-height:44px
}
.ch-level-0 {
  display:block
}
.ch-level-0>.ch-item {
  padding:18px 0;
  border-bottom:1px solid var(--ch-border)
}
.ch-level-0>.ch-item>.ch-item-heading>.ch-toggle {
  font-size:18px
}
.ch-ready .ch-level-0>.ch-item>.ch-item-heading>.ch-toggle[aria-expanded=true] {
  background:#f4f4f4;
  color:inherit;
}
.ch-header .ch-item[data-layout=products] .ch-level-1>.ch-item {
  padding-block:var(--space-xs, 12px);
  border-bottom:1px solid var(--ch-border);
}
.ch-header .ch-item[data-layout=products] .ch-level-1>.ch-item:last-child {
  border-bottom:0;
}
.ch-header .ch-item[data-layout=products] .ch-level-2 {
  padding-left:10px;
}

.ch-ready .ch-level-0>.ch-item>.ch-panel {
  position:static;
  transform:none;
  width:auto;
  padding:12px 20px 0;
  max-height:none;
  overflow:visible;
  border-radius:0;
  box-shadow:none
}
.ch-header .ch-item[data-layout=products] .ch-level,.ch-header .ch-item[data-layout=industries] .ch-level {
  display:block;
  padding:0
}
.ch-header .ch-item[data-layout=products] .ch-item-heading {
  background:transparent;
  color:inherit;
  padding:0
}
.ch-ready .ch-item-heading>.ch-static {
  display:none!important
}
.ch-level-1 .ch-toggle {
  display:flex;
  width:100%;
  justify-content:space-between;
  text-align:left;
  padding:12px 0;
  font-size:16px;
  color:#555
}
.ch-level-2 .ch-toggle {
  justify-content:flex-start;
  font-weight:700;
  text-transform:uppercase;
  color:var(--ch-accent);
  font-size:14px
}
.ch-header .ch-item[data-layout=products] .ch-level-2>.ch-item {
  border:0;
  border-bottom:1px solid var(--ch-border);
  padding:6px 0
}
.ch-level-3 {
  padding:8px 20px 18px!important
}
.ch-link {
  font-size:16px;
  padding:18px 10px
}
.ch-item[data-layout=industries] .ch-link {
  min-height:44px;
  border:0;
  display:flex;
  align-items:center;
  gap:14px
}
.ch-link img {
  margin:0
}
.ch-cta {
  width:max-content;
  max-width:100%;
  margin:28px auto 0;
}
.ch-panel.is-expanding {
  animation:ch-reveal .18s ease-out
}

}

@keyframes ch-reveal {
  from {
  opacity:0;
  transform:translateY(-5px)
}
to {
  opacity:1;
  transform:translateY(0)
}

}

@media(prefers-reduced-motion:reduce) {
  .ch-ready .ch-surface {
  transition:none
}
.ch-panel.is-expanding {
  animation:none
}

}


/* Approved typography and stable link colors in every interaction state. */
.ch-header .ch-level-0>.ch-item>.ch-item-heading>.ch-toggle,
.ch-header .ch-level-0>.ch-item>.ch-item-heading>.ch-link {
  font-size:18px;
  font-weight:700;
}
.ch-header .ch-language__current,
.ch-header .ch-language__list a {
  font-size:16px;
  font-weight:600;
}
.ch-header .ch-panel .ch-link {
  font-size:16px;
  font-weight:700;
}
.ch-header .ch-item[data-layout=products] .ch-level-2>.ch-item>.ch-item-heading>.ch-toggle {
  font-size:14px;
  font-weight:700;
}
.ch-header .ch-link,
.ch-header .ch-link:is(:hover,:focus,:active,:visited),
.ch-header .ch-language__list a,
.ch-header .ch-language__list a:is(:hover,:focus,:active,:visited) {
  color:inherit;
}
.ch-brand-logo { display:none; }
@media(min-width:1280px) {
  .ch-item[data-layout=products] .ch-level-1>.ch-item {
    display:flex;
    flex-direction:column;
    min-width:0;
  }
  .ch-item[data-layout=products] .ch-level-1>.ch-item>.ch-panel {
    display:flex;
    flex:1;
  }
  .ch-item[data-layout=products] .ch-level-2 {
    flex:1;
    align-items:stretch;
  }
  .ch-item[data-layout=products] .ch-level-1>.ch-item>.ch-item-heading>.ch-static {
    display:flex;
    align-items:center;
    gap:var(--space-xs, 12px);
    font-size:14px;
    font-weight:600;
    min-height:24px;
  }
  .ch-item[data-layout=products] .ch-brand-logo {
    display:block;
    width:auto;
    height:24px;
    flex-shrink:0;
  }
  .ch-item[data-layout=products] .ch-level-1>.ch-item+ .ch-item {
    position:relative;
  }
  .ch-item[data-layout=products] .ch-level-1>.ch-item+ .ch-item::before {
    content:"";
    position:absolute;
    left:-8px;
    top:-10px;
    bottom:-10px;
    border-left:1px solid var(--ch-border);
  }
}
@media(prefers-reduced-motion:reduce) {
  .ch-chevron::after { transition:none; }
}

/* Site spacing tokens apply to dropdown content, independently of top navigation. */
.ch-header .ch-panel .ch-link,
.ch-header .ch-panel .ch-toggle,
.ch-header .ch-language__list a {
  padding:var(--space-xs, 12px);
  gap:var(--space-xs, 12px);
}
.ch-header .ch-panel .ch-link img {
  margin-bottom:var(--space-xs, 12px);
}
.ch-header .ch-level-0>.ch-item[data-layout=list]>.ch-panel>.ch-level,
.ch-header .ch-level-3,
.ch-header .ch-language__list {
  display:flex;
  flex-direction:column;
  gap:var(--space-xs, 12px);
}
.ch-header .ch-level-0>.ch-item[data-layout=list]>.ch-panel,
.ch-header .ch-language__list {
  padding:var(--space-xs, 16px);
}
@media(min-width:1280px) {
  .ch-header.ch-ready .ch-item[data-layout=industries]>.ch-panel {
    padding:0;
  }
  .ch-header .ch-item[data-layout=industries]>.ch-panel>.ch-level {
    padding-block:var(--space-xs, 12px);
    row-gap:var(--space-xs, 12px);
    background-image:linear-gradient(var(--ch-border),var(--ch-border)),
      linear-gradient(var(--ch-border),var(--ch-border)),
      linear-gradient(var(--ch-border),var(--ch-border));
    background-size:1px 100%;
    background-position:25% 0,50% 0,75% 0;
    background-repeat:no-repeat;
  }
  .ch-header .ch-item[data-layout=industries]>.ch-panel>.ch-level>.ch-item {
    padding-inline:var(--space-xs, 12px);
  }
  .ch-header .ch-item[data-layout=products] .ch-level-2>.ch-item {
    padding-inline:var(--space-xs, 12px);
  }
  .ch-header:not(.ch-ready) .ch-item[data-layout=industries]>.ch-panel>.ch-level {
    background:none;
  }
}
@media(max-width:1279px) {
  .ch-header .ch-item[data-layout=products] .ch-level-2>.ch-item:last-child {
    border-bottom:0;
  }
  .ch-header .ch-item[data-layout=industries] .ch-link img {
    margin:0;
  }
}

/* Mobile typography is independent of desktop category captions. */
@media(max-width:1279px) {
  .ch-header .ch-item[data-layout=products] .ch-level-1>.ch-item>.ch-item-heading>.ch-toggle {
    font-size:16px;
    font-weight:700;
  }
  .ch-header .ch-item[data-layout=products] .ch-level-2>.ch-item>.ch-item-heading>.ch-toggle {
    font-size:16px;
    font-weight:400;
    color:#8752DE;
  }
  .ch-header .ch-level-0>.ch-item>.ch-item-heading>.ch-toggle[aria-expanded=true]>.ch-chevron,
  .ch-header .ch-item[data-layout=products] .ch-level-1>.ch-item>.ch-item-heading>.ch-toggle[aria-expanded=true]>.ch-chevron {
    color:#8752DE;
  }
  .ch-header .ch-item[data-layout=products] .ch-level-2>.ch-item:last-child {
    padding-bottom:0;
  }
}

/* Native pre-initialization disclosure: no duplicated menu or JS-only hiding. */
.ch-fallback>summary { list-style:none; cursor:pointer; }
.ch-fallback>summary::-webkit-details-marker { display:none; }
.ch-fallback>summary::marker { content:""; }
.ch-fallback[open]>summary .ch-burger-icon>span:first-child { transform:rotate(45deg); }
.ch-fallback[open]>summary .ch-burger-icon>span:nth-child(2) { opacity:0; }
.ch-fallback[open]>summary .ch-burger-icon>span:last-child { transform:rotate(-45deg); }

/* Expand only the hit area; the button background and focus ring stay compact. */
@media(max-width:1279px) {
  .ch-header .ch-level-0>.ch-item>.ch-item-heading--wide-hit {
    position:relative;
    width:100%;
  }
  .ch-header .ch-item-heading--wide-hit>.ch-toggle {
    position:static;
  }
  .ch-header .ch-item-heading--wide-hit>.ch-toggle::before {
    content:"";
    position:absolute;
    inset:0;
    cursor:pointer;
  }
}

@media(min-width:1280px) {
  .ch-header .ch-item[data-layout=products] .ch-level-1>.ch-item>.ch-item-heading>.ch-static {
    font-size:14px;
    font-weight:600;
    color:#A6A6A6;
    text-transform:uppercase;
  }
}

@media(min-width:1280px) {
  .ch-header .ch-item[data-layout=industries] .ch-link img {
    width:32px;
    height:32px;
  }
}
@media(max-width:1279px) {
  .ch-header .ch-item[data-layout=industries] .ch-link img {
    display:none;
  }
}

@media(max-width:1279px) {
  .ch-header .ch-item[data-layout=products] .ch-level-1>.ch-item>.ch-panel>.ch-level-2 {
    padding-left:10px;
  }
}

@media(max-width:1279px) {
  .ch-header .ch-level-0>.ch-item:last-child {
    border-bottom:0;
  }
}
