/* t602: centre What we do, Who we are and Insights in the desktop capsule.
   A 3-column grid spans the full bar so the groups sit on the true centre
   regardless of how wide the logo or the Sign in / Enquire cluster is.
   Phone layout (max-width: 1023px) is unchanged. */

@media (min-width:1024px){
  html body.alt-site.ux-p1.ux-p2 .site-head .headbar,
  html body.alt-site.ux-p1.ux-p2 .site-head .wrap.headbar,
  html body.alt-site.ux-p1.ux-p2.alt-inner .site-head .wrap.headbar,
  html body.alt-site .site-head .headbar,
  html body.alt-site .site-head .wrap.headbar,
  html body.alt-site .headbar,
  html body.home-rebuild.alt-site .site-head .headbar,
  html body.home-rebuild.alt-site .site-head .wrap.headbar{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;
    align-items:center!important;
    justify-content:stretch!important;
    gap:8px 16px!important;
    position:relative!important;
  }

  html body.alt-site.ux-p1.ux-p2 .site-head .headbar > .brand,
  html body.alt-site.ux-p1.ux-p2 .site-head .brand,
  html body.alt-site .site-head .headbar > .brand,
  html body.alt-site .headbar > .brand,
  html body.alt-site .site-head .brand,
  html body.home-rebuild.alt-site .site-head .brand{
    grid-column:1!important;
    grid-row:1!important;
    justify-self:start!important;
    z-index:3!important;
  }

  /* Overlay the nav across all three columns so its own 1fr / auto / 1fr
     tracks line up with the bar, then drop the groups in the middle track. */
  html body.alt-site.ux-p1.ux-p2 .site-head nav#source-navigation,
  html body.alt-site.ux-p1.ux-p2 .site-head nav#source-navigation.open,
  html body.alt-site.ux-p1.ux-p2 .site-head #source-navigation,
  html body.alt-site.ux-p1.ux-p2 .site-head #source-navigation.open,
  html body.alt-site.ux-p1.ux-p2.alt-inner .site-head nav#source-navigation,
  html body.alt-site.ux-p1.ux-p2.alt-inner .site-head nav#source-navigation.open,
  html body.alt-site .site-head nav#source-navigation,
  html body.alt-site .site-head nav#source-navigation.open,
  html body.alt-site .site-head #source-navigation,
  html body.alt-site .site-head #source-navigation.open,
  html body.home-rebuild.alt-site .site-head nav#source-navigation,
  html body.home-rebuild.alt-site .site-head nav#source-navigation.open,
  html body.home-rebuild.alt-site .site-head #source-navigation,
  html body.home-rebuild.alt-site .site-head #source-navigation.open{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;
    grid-column:1 / -1!important;
    grid-row:1!important;
    align-items:center!important;
    justify-content:stretch!important;
    position:relative!important;
    inset:auto!important;
    top:auto!important;
    right:auto!important;
    left:auto!important;
    bottom:auto!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;
    background:transparent!important;
    overflow:visible!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    flex-direction:row!important;
    flex-wrap:nowrap!important;
    gap:0!important;
    z-index:2!important;
  }

  html body.alt-site.ux-p1.ux-p2 .site-head .nav-primary,
  html body.alt-site .site-head .nav-primary,
  html body.home-rebuild.alt-site .site-head .nav-primary{
    grid-column:2!important;
    justify-self:center!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    margin:0!important;
    min-width:0!important;
    width:auto!important;
  }

  html body.alt-site.ux-p1.ux-p2 .site-head .nav-tools,
  html body.alt-site .site-head .nav-tools,
  html body.home-rebuild.alt-site .site-head .nav-tools{
    grid-column:3!important;
    justify-self:end!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    margin:0!important;
    margin-left:0!important;
    z-index:3!important;
  }

  html body.alt-site.ux-p1.ux-p2 .site-head .menu-toggle,
  html body.alt-site .site-head .menu-toggle,
  html body.alt-site.alt-inner .site-head .menu-toggle,
  html body.home-rebuild.alt-site .site-head .menu-toggle,
  html body.alt-site .site-head .menu-toggle[aria-expanded]{
    display:none!important;
  }

  /* Dropdowns stay pinned to their trigger. Cap the wide panel
     now that the trigger sits in the middle of the bar. */
  html body.alt-site .site-head .nav-mega{
    left:0;
    right:auto;
    max-width:min(780px,calc(100vw - 48px));
  }
}
