/* S6 Header balanced navigation, 2026-11-17. Scoped to original shared header. */
@media(min-width:1281px){
  .s6-master-header .s6m-inner{display:grid!important;grid-template-columns:minmax(0,1fr) max-content minmax(0,1fr)!important;align-items:center;column-gap:clamp(12px,1.6vw,25px);max-width:1480px}
  .s6-master-header .s6m-brand{grid-column:1;min-width:0;justify-self:start;max-width:100%}
  .s6-master-header .s6m-desktop-nav{grid-column:2;min-width:0;justify-self:center;flex:none;display:flex!important;align-items:center;justify-content:center;gap:clamp(0px,.2vw,4px);white-space:nowrap}
  .s6-master-header .s6m-right{grid-column:3;display:flex;min-width:0;align-items:center;justify-self:stretch;justify-content:flex-end;gap:clamp(7px,.8vw,13px)}
  .s6-master-header .s6m-search-shell{max-width:clamp(170px,16vw,290px)}
  .s6-master-header.s6m-search-visible .s6m-search-shell{flex:0 1 clamp(170px,16vw,290px);width:clamp(170px,16vw,290px)}
  .s6-master-header .s6m-controls{flex:none}
}
@media(max-width:1280px){
  .s6-master-header .s6m-inner{display:flex!important}
  .s6-master-header .s6m-desktop-nav{display:none!important}
  .s6-master-header .s6m-menu-toggle{display:flex!important}
  .s6-master-header .s6m-brand{margin-right:auto}
  .s6-master-header .s6m-right{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:0;flex:0 1 auto}
}
@media(max-width:640px){
  .s6-master-header .s6m-right{display:contents}
  .s6-master-header .s6m-brand{margin-right:auto}
  .s6-master-header .s6m-search-shell{order:3}
  .s6-master-header .s6m-controls{margin-left:auto}
}
@media(min-width:1281px) and (max-width:1399px){
  .s6-master-header .s6m-inner{padding-inline:clamp(12px,1.3vw,18px);column-gap:9px}
  .s6-master-header .s6m-brand-name{font-size:clamp(15px,1.23vw,18px)!important}
  .s6-master-header .s6m-desktop-nav .s6m-nav-link{padding-inline:8px!important;font-size:12px!important}
  .s6-master-header .s6m-search-shell{max-width:190px}
  .s6-master-header.s6m-search-visible .s6m-search-shell{flex-basis:190px;width:190px}
}
/* Allow any admin-selected number of activities to remain accessible with inner scroll. */
@media(min-width:761px){
  .s6-master-header .s6mm-columns{height:min(66vh,600px);min-height:0}
  .s6-master-header .s6mm-categories{max-height:100%;overflow-y:auto}
  .s6-master-header .s6mm-details{min-height:0;overflow-y:auto;overscroll-behavior:contain}
}
.s6-master-header .s6mm-detail-head{position:sticky;top:0;z-index:2;background:#fff;padding-top:7px}
@media(max-width:760px){
  .s6-master-header .s6mm-details{overflow-y:visible}
}
/* Categories is a normal navigation item again, not a boxed CTA. */
.s6-master-header .s6m-desktop-nav .s6m-nav-link.s6mm-nav-trigger,
.s6-master-header .s6m-desktop-nav .s6m-nav-link.s6mm-nav-trigger:hover,
.s6-master-header .s6m-desktop-nav .s6m-nav-link.s6mm-nav-trigger[aria-expanded="true"]{
  border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
  padding:10px 8px!important;min-height:0!important;gap:6px!important;
}
.s6-master-header .s6m-desktop-nav .s6m-nav-link.s6mm-nav-trigger:hover,
.s6-master-header .s6m-desktop-nav .s6m-nav-link.s6mm-nav-trigger[aria-expanded="true"]{
  color:#fff!important;text-decoration:underline!important;text-decoration-color:rgba(255,255,255,.7)!important;
  text-decoration-thickness:1px!important;text-underline-offset:6px!important;
}
