/* Authoritative shared header grid. Explicit areas prevent old numeric grid-area rules from creating extra rows. */
html body .mg-site-header .header-row{display:grid!important;height:auto!important;min-height:0!important;max-height:none!important;align-items:center!important;align-content:start!important;padding:12px 0!important;gap:10px 20px!important}
html body .mg-site-header .header-row>.mg-header-brand{grid-area:brand!important;align-self:center!important;justify-self:start!important;min-width:0}
html body .mg-site-header .header-row>.head-actions{grid-area:actions!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;justify-self:end!important;gap:10px!important;flex-wrap:nowrap!important;margin:0!important;min-width:0}
html body .mg-site-header .head-actions>:is(a,button){display:inline-flex!important;align-items:center!important;justify-content:center!important;position:relative;flex:0 0 38px!important;width:38px!important;min-width:38px!important;height:42px!important;padding:6px!important;margin:0!important;transform:none!important}
html body .mg-site-header .head-actions .icon{display:block!important;width:24px!important;height:24px!important;margin:0!important;flex:none}
html body .mg-site-header .head-actions .mg-notice-count{position:absolute!important;top:0!important;inset-inline-end:-2px!important}
html body .mg-site-header .brand{display:flex!important;align-items:center!important;gap:10px!important;min-width:0}
html body .mg-site-header .brand>span{min-width:0}
html body .mg-site-header .header-row>.mana-search{grid-area:search!important;justify-self:center!important;align-self:center!important;position:relative!important;inset:auto!important;transform:none!important;margin:0!important;width:min(600px,100%)!important;max-width:600px!important}
@media(min-width:701px){
 html body .mg-site-header .header-row{grid-template-columns:auto minmax(0,1fr) auto!important;grid-template-rows:auto auto!important;grid-template-areas:"brand menu actions" "search search search"!important}
 html body .mg-site-header .header-row>#navigation{grid-area:menu!important;position:relative!important;inset:auto!important;align-self:center!important;justify-self:stretch!important;display:flex!important;justify-content:center!important;align-items:center!important;flex-wrap:wrap!important;width:auto!important;height:auto!important;min-height:0!important;max-height:none!important;padding:0!important;margin:0!important;background:none!important;border:0!important;box-shadow:none!important}
 html body .mg-site-header #navigation .mg-primary-menu{display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:center!important;gap:6px 14px!important;padding:0!important;margin:0!important}
 html body .mg-site-header #navigation>a,html body .mg-site-header #navigation .mg-primary-menu>li>a{display:inline-flex!important;align-items:center!important;gap:7px!important;padding:6px 0!important;margin:0!important;line-height:1.8!important}
 html body .mg-site-header .head-actions #menuButton{display:none!important}
}
@media(max-width:700px){
 html body .mg-site-header .header-row{grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto auto!important;grid-template-areas:"brand actions" "search search"!important;gap:10px 10px!important;padding-block:12px!important}
 html body .mg-site-header .header-row>.mana-search{width:100%!important;max-width:none!important;grid-area:search!important}
 html body .mg-site-header .header-row>.head-actions{gap:6px!important}
 html body .mg-site-header .head-actions>:is(a,button){flex-basis:30px!important;width:30px!important;min-width:30px!important;height:40px!important;padding:3px!important}
 html body .mg-site-header .head-actions .icon{width:22px!important;height:22px!important}
 html body .mg-site-header .brand{gap:6px!important}
 html body .mg-site-header .brand strong{font-size:16px!important;white-space:normal!important;line-height:1.5!important}
 html body .mg-site-header .brand small{font-size:10px!important;white-space:normal!important;line-height:1.6!important}
 html body .mg-site-header .header-row>#navigation{grid-area:auto!important}
}
@media(max-width:370px){html body .mg-site-header .header-row>.head-actions{gap:5px!important}html body .mg-site-header .head-actions>:is(a,button){width:28px!important;min-width:28px!important;flex-basis:28px!important}html body .mg-site-header .brand strong{font-size:14px!important}}
@media(min-width:701px){html body .mg-site-header #navigation .mg-primary-menu>li{padding:0!important;margin:0!important}html body .mg-site-header #navigation .mg-primary-menu>li>a{font-size:12px!important}html body .mg-site-header #navigation>.mobile-menu-close{display:none!important}}
/* Icon-only account action; its accessible label remains on the link. */
html body .mg-site-header .head-actions .mg-account-label{display:none!important}
