/* Page never wider than the screen. The hidden dropdown panels and the off-canvas panel used to stretch the page sideways. */
html,body{overflow-x:clip}
/* The services/industries dropdown is centred on the screen instead of on its button, so it can never be cut off on the left or stretch the page. */
@media (min-width:1200px){
  .mega-menu__panel{position:fixed!important;top:var(--bp-mega-top,110px)!important;left:50%!important;width:min(920px,calc(100vw - 48px))!important}
}
/* The header menu always stays on one line: the logo and the buttons take what they need, the menu takes the rest. */
@media (min-width:1200px){
  .row:has(> div > .at-main-menu){flex-wrap:nowrap}
  .row:has(> div > .at-main-menu) > div{flex:0 0 auto;width:auto;max-width:none}
  .row:has(> div > .at-main-menu) > div:has(> .at-main-menu){flex:1 1 auto;min-width:0}
  .at-main-menu nav>ul{white-space:nowrap}
  .at-main-menu nav>ul>li>a{padding-left:clamp(7px,.8vw,11px);padding-right:clamp(7px,.8vw,11px)}
}
/* dropdown rows: the name on top and one plain line under it (the template's menu styles used to run them together on one line) */
@media (min-width:1200px){
  .mega-menu__panel{width:min(1000px,calc(100vw - 48px))!important;padding:28px 32px!important}
  .mega-menu__grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:20px 28px!important}
  .mega-menu__grid--wide{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .at-main-menu .mega-menu__col ul{display:flex!important;flex-direction:column!important;gap:2px!important}
  .at-main-menu .mega-menu__col li{display:block!important;width:100%}
  .at-main-menu .mega-menu__col a{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:3px!important;padding:9px 12px!important;white-space:normal!important}
}
.mega-menu__item-label{display:block;font-size:14.5px;line-height:1.25}
.mega-menu__item-blurb{display:block;font-size:12.5px;line-height:1.4;white-space:normal}
.mega-menu__item-eyebrow{display:block}
/* the Industries dropdown has one column, so it is a compact card instead of a wide empty panel */
@media (min-width:1200px){
  .mega-menu__panel:has(.mega-menu__col:only-child){width:360px!important}
  .mega-menu__panel:has(.mega-menu__col:only-child) .mega-menu__grid{grid-template-columns:minmax(0,1fr)!important}
}
