
/* XMG COMPACT PRODUCTS MENU 20261030 START */
@media (min-width:1081px) {
  html body .xmg-header details.products-menu.xmg-compact-products .xmg-mega-panel {
    max-height:calc(100dvh - 118px);overflow-y:auto;overscroll-behavior:contain;
  }
  html body .xmg-header details.products-menu.xmg-compact-products .xmg-compact-products-inner {
    display:block!important;width:100%!important;max-width:1180px!important;
    padding:24px 32px 26px!important;margin-inline:auto;box-sizing:border-box;
  }
  html body .xmg-header details.products-menu.xmg-compact-products .xmg-compact-products-topline {
    display:flex;align-items:center;justify-content:space-between;gap:24px;
    margin:0 0 20px;padding:0 0 16px;border-bottom:1px solid #d6e5eb;
  }
  html body .xmg-header details.products-menu.xmg-compact-products .xmg-mega-eyebrow {
    margin:0;font-size:14px!important;line-height:1.5;letter-spacing:.06em;
  }
  html body .xmg-header details.products-menu.xmg-compact-products .product-directory {
    display:grid;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:32px!important;
  }
  html body .xmg-header details.products-menu.xmg-compact-products .product-directory-group {
    min-width:0;display:flex;flex-direction:column;align-items:stretch;
  }
  html body .xmg-header details.products-menu.xmg-compact-products .directory-heading {
    min-height:34px;margin:0 0 8px;padding:0 0 8px;box-sizing:border-box;
  }
  html body .xmg-header details.products-menu.xmg-compact-products .directory-heading a {
    font-size:18px!important;line-height:1.4!important;color:#061d37;font-weight:800;
  }
  html body .xmg-header details.products-menu.xmg-compact-products .directory-links {
    display:grid;grid-template-columns:minmax(0,1fr)!important;gap:0!important;margin-bottom:12px;
  }
  html body .xmg-header details.products-menu.xmg-compact-products .directory-links a {
    display:flex;align-items:center;min-height:32px;box-sizing:border-box;padding:3px 0;
    font-size:16px!important;line-height:1.55!important;color:#587083;
  }
  html body .xmg-header details.products-menu.xmg-compact-products :is(.xmg-menu-category-all,.xmg-menu-all-products) {
    font-size:16px!important;line-height:1.5!important;font-weight:700;color:#0b789f;
    min-height:32px;display:inline-flex;align-items:center;gap:8px;text-decoration:none;
  }
  html body .xmg-header details.products-menu.xmg-compact-products .xmg-menu-category-all {
    align-self:flex-start;margin-top:auto;padding-top:8px;border-top:1px solid #d6e5eb;
  }
  html body .xmg-header details.products-menu.xmg-compact-products :is(a,p,span,strong) {
    white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important;
    hyphens:manual!important;
  }
  html body .xmg-header details.products-menu.xmg-compact-products a:hover {color:#0b789f;}
  html body .xmg-header details.products-menu.xmg-compact-products a:focus-visible {
    outline:3px solid #31add0;outline-offset:3px;border-radius:3px;
  }
}
@media (min-width:1081px) and (max-width:1199px) {
  html body .xmg-header details.products-menu.xmg-compact-products .xmg-compact-products-inner {padding-inline:24px!important;}
  html body .xmg-header details.products-menu.xmg-compact-products .product-directory {gap:24px!important;}
}
/* Let translated desktop navigation use available space without reducing type. */
@media (min-width:1081px) and (max-width:1599px) {
  html:not([lang|="en"]) body .xmg-header .xmg-header-inner {
    width:min(1440px,calc(100% - 48px))!important;max-width:none!important;gap:12px!important;
  }
  html:not([lang|="en"]) body .xmg-header .xmg-header-inner .xmg-nav > .elementor-widget-container {gap:8px!important;}
  html:not([lang|="en"]) body .xmg-header .xmg-header-inner .xmg-mega-nav > a,
  html:not([lang|="en"]) body .xmg-header .xmg-header-inner .xmg-mega-item > summary {padding-inline:6px!important;}
}
/* XMG COMPACT PRODUCTS MENU 20261030 END */

/* XMG SECONDARY MEGA MENU REPAIR 20261030 START */
@media (min-width:1081px) {
  html:not([lang|="en"]) body .xmg-header .xmg-mega-nav > .xmg-mega-item:not(.products-menu) .xmg-mega-panel-inner {
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;
    grid-template-areas:"intro" "content" "assist"!important;gap:16px!important;
    width:100%!important;max-width:1180px!important;margin-inline:auto;padding:20px 28px!important;box-sizing:border-box;
  }
  html:not([lang|="en"]) body .xmg-header .xmg-mega-nav > .xmg-mega-item:not(.products-menu) .xmg-mega-intro {
    grid-area:intro!important;display:flex!important;align-items:center;justify-content:space-between;gap:24px;
    padding:0 0 14px!important;margin:0!important;border:0!important;border-bottom:1px solid #d6e5eb!important;
  }
  html:not([lang|="en"]) body .xmg-header .xmg-mega-nav > .xmg-mega-item:not(.products-menu) .xmg-mega-intro > p:not(.xmg-mega-eyebrow) {display:none!important;}
  html:not([lang|="en"]) body .xmg-header .xmg-mega-nav > .xmg-mega-item:not(.products-menu) .xmg-mega-eyebrow {
    margin:0!important;font-size:14px!important;line-height:1.5!important;letter-spacing:.06em!important;
  }
  html:not([lang|="en"]) body .xmg-header .xmg-mega-nav > .xmg-mega-item:not(.products-menu) .xmg-mega-feature-link {
    display:inline-flex!important;align-items:center;gap:10px;min-height:32px;margin:0;font-size:16px!important;line-height:1.5!important;flex-shrink:0;
  }
  html:not([lang|="en"]) body .xmg-header .xmg-mega-nav > .xmg-mega-item:not(.products-menu) .mega-card-grid {
    grid-area:content!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;
  }
  html:not([lang|="en"]) body .xmg-header .xmg-mega-nav > .xmg-mega-item:not(.products-menu) .mega-card-grid.compact {grid-template-columns:repeat(4,minmax(0,1fr))!important;}
  html:not([lang|="en"]) body .xmg-header .xmg-mega-nav > .xmg-mega-item:not(.products-menu) .mega-card-grid > a {
    min-width:0;min-height:0!important;padding:14px 16px!important;box-sizing:border-box;box-shadow:none!important;transform:none!important;
  }
  html:not([lang|="en"]) body .xmg-header .xmg-mega-nav > .xmg-mega-item:not(.products-menu) .mega-card-grid strong {
    margin:0 0 6px!important;font-size:18px!important;line-height:1.4!important;
  }
  html:not([lang|="en"]) body .xmg-header .xmg-mega-nav > .xmg-mega-item:not(.products-menu) .mega-card-grid span {font-size:16px!important;line-height:1.55!important;}
  html:not([lang|="en"]) body .xmg-header .xmg-mega-nav > .xmg-mega-item:not(.products-menu) .xmg-mega-columns {
    grid-area:content!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:24px!important;
  }
  html:not([lang|="en"]) body .xmg-header .xmg-mega-nav > .xmg-mega-item:not(.products-menu) .xmg-mega-columns:has(> .featured-note) {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px 24px!important;}
  html:not([lang|="en"]) body .xmg-header .xmg-mega-nav > .xmg-mega-item:not(.products-menu) .xmg-mega-column {
    min-width:0!important;margin:0!important;padding:0!important;display:flex;flex-direction:column;gap:0;
  }
  html:not([lang|="en"]) body .xmg-header .xmg-mega-nav > .xmg-mega-item:not(.products-menu) .xmg-mega-column > a {
    display:flex;align-items:center;min-height:32px;margin:0!important;padding:4px 0!important;font-size:16px!important;line-height:1.5!important;
  }
  html:not([lang|="en"]) body .xmg-header .xmg-mega-nav > .xmg-mega-item:not(.products-menu) .xmg-mega-column > .xmg-mega-column-title {
    min-height:38px;margin:0 0 6px!important;padding:0 0 8px!important;border-bottom:1px solid #d6e5eb;font-size:18px!important;line-height:1.4!important;
  }
  html:not([lang|="en"]) body .xmg-header .xmg-mega-nav > .xmg-mega-item:not(.products-menu) .xmg-mega-column.featured-note {
    grid-column:1/-1!important;display:flex!important;flex-direction:row!important;align-items:center;justify-content:space-between;gap:24px;
    padding:10px 16px!important;border:1px solid #d6e5eb;border-radius:10px;background:#f3f8fa;
  }
  html:not([lang|="en"]) body .xmg-header .xmg-mega-nav > .xmg-mega-item:not(.products-menu) .featured-note > strong {display:none!important;}
  html:not([lang|="en"]) body .xmg-header .xmg-mega-nav > .xmg-mega-item:not(.products-menu) .featured-note > p {margin:0!important;font-size:14px!important;line-height:1.5!important;}
  html:not([lang|="en"]) body .xmg-header .xmg-mega-nav > .xmg-mega-item:not(.products-menu) .featured-note > a {flex-shrink:0;}
  html:not([lang|="en"]) body .xmg-header .xmg-mega-nav > .xmg-mega-item:not(.products-menu) .xmg-mega-assist {
    grid-area:assist!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:24px;
    margin:0!important;padding:12px 18px!important;border:1px solid #d6e5eb!important;border-radius:14px!important;background:#f3f8fa!important;
  }
  html:not([lang|="en"]) body .xmg-header .xmg-mega-nav > .xmg-mega-item:not(.products-menu) .xmg-mega-assist > :is(.xmg-mega-assist-icon,.xmg-mega-assist-title,p:not(.xmg-mega-assist-label)) {display:none!important;}
  html:not([lang|="en"]) body .xmg-header .xmg-mega-nav > .xmg-mega-item:not(.products-menu) .xmg-mega-assist-label {margin:0!important;font-size:14px!important;line-height:1.5!important;letter-spacing:.06em!important;}
  html:not([lang|="en"]) body .xmg-header .xmg-mega-nav > .xmg-mega-item:not(.products-menu) .xmg-mega-assist > a {
    min-height:48px!important;margin:0!important;padding:10px 20px!important;font-size:16px!important;line-height:1.5!important;box-shadow:none!important;flex-shrink:0;
  }
  /* These shortcut hrefs duplicate links in the main cards/columns; QA checks
     every original destination still has a visible, reachable anchor. */
  html:not([lang|="en"]) body .xmg-header .xmg-mega-nav > .xmg-mega-item:not(.products-menu) .xmg-mega-shortcuts {display:none!important;}
  html:not([lang|="en"]) body .xmg-header .xmg-mega-nav > .xmg-mega-item:not(.products-menu) .xmg-mega-panel :is(p,strong,a,span,bdi) {
    white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important;hyphens:manual!important;
  }
}
/* XMG SECONDARY MEGA MENU REPAIR 20261030 END */

