/* MATSH approved brochure: navy #061E3D, emerald #005641, gold #D6A349. */
:root{--matsh-logo-navy:#061e3d;--matsh-logo-emerald:#005641;--matsh-logo-gold:#d6a349}
/* Give the primary logo a real visible footprint; prevent Kadence and child-theme max-height from miniaturizing it. */
#masthead .site-branding,#masthead .site-logo,header.site-header .site-branding,header.site-header .site-logo,
#masthead .site-branding-inner,#masthead .site-branding .site-title-wrap{min-width:220px!important;max-width:none!important;flex-shrink:0!important;overflow:visible!important}
#masthead .custom-logo-link,#masthead .site-branding a,#masthead .site-logo a,
header.site-header .custom-logo-link,header.site-header .site-branding a{display:flex!important;align-items:center!important;justify-content:center!important;min-height:62px!important;min-width:220px!important;max-width:250px!important;overflow:visible!important}
#masthead .custom-logo-link img,#masthead .site-branding a img,#masthead .site-logo a img,
header.site-header .custom-logo-link img,header.site-header .site-branding a img,
#masthead .matsh-approved-logo{
  content:url('matsh-approved-navy-emerald-gold-full-logo.webp')!important;
  display:block!important;box-sizing:content-box!important;width:233px!important;min-width:214px!important;max-width:233px!important;
  height:64px!important;max-height:64px!important;object-fit:contain!important;object-position:center!important;
  transform:none!important;visibility:visible!important;opacity:1!important}
/* Some theme variants use a styled logo without an img element. */
#masthead .site-branding a:not(:has(img)),#masthead .site-logo a:not(:has(img)){
 background:url('matsh-approved-navy-emerald-gold-full-logo.webp') center center / contain no-repeat!important;
 min-width:233px!important;min-height:64px!important}
/* Restrained premium header and navigation; do not suppress the mobile drawer or native toggle behavior. */
#masthead,header.site-header{background:#fff!important;border-bottom:1px solid #dfe8e6!important}
#masthead .main-navigation a,#masthead .header-navigation a,#masthead .primary-menu-container a{
 color:#092742;font-weight:650;line-height:1.35}
#masthead .main-navigation>div>ul>li>a:hover,#masthead .header-navigation>div>ul>li>a:hover,
#masthead .primary-menu-container>ul>li>a:hover{color:var(--matsh-logo-emerald)!important}
/* Long category submenus become a readable, contained mega dropdown, not a giant single-column waterfall. */
@media(min-width:1000px){
 #masthead .header-navigation .sub-menu,#masthead .main-navigation .sub-menu,
 #masthead .primary-menu-container ul.sub-menu,#masthead ul.menu ul.sub-menu{
   min-width:265px;max-width:min(740px,calc(100vw - 40px));max-height:min(69vh,640px);
   overflow-y:auto;overscroll-behavior:contain;padding:13px!important;
   background:#fff!important;border:1px solid #d9e6e3!important;border-top:4px solid var(--matsh-logo-gold)!important;
   box-shadow:0 20px 46px rgba(6,30,61,.19)!important;border-radius:0 0 11px 11px!important;
   scrollbar-width:thin;scrollbar-color:#a0b5ae #f5f8f6;z-index:10000}
 #masthead .header-navigation .sub-menu:has(>li:nth-child(7)),
 #masthead .main-navigation .sub-menu:has(>li:nth-child(7)),
 #masthead ul.menu ul.sub-menu:has(>li:nth-child(7)){
   width:min(690px,calc(100vw - 48px))!important;
   grid-template-columns:repeat(3,minmax(0,1fr));gap:3px 10px}
 #masthead .header-navigation li.menu-item-has-children:hover>.sub-menu:has(>li:nth-child(7)),
 #masthead .header-navigation li.menu-item-has-children:focus-within>.sub-menu:has(>li:nth-child(7)),
 #masthead .main-navigation li.menu-item-has-children:hover>.sub-menu:has(>li:nth-child(7)),
 #masthead .main-navigation li.menu-item-has-children:focus-within>.sub-menu:has(>li:nth-child(7)){
   display:grid!important;gap:3px 10px}
 #masthead .header-navigation .sub-menu li,#masthead .main-navigation .sub-menu li,#masthead ul.menu ul.sub-menu li{
   width:auto!important;min-width:0;float:none!important;margin:0!important;list-style:none!important;
   border:0!important;background:transparent!important}
 #masthead .header-navigation .sub-menu a,#masthead .main-navigation .sub-menu a,#masthead ul.menu ul.sub-menu a{
   display:block!important;white-space:normal!important;word-wrap:break-word!important;
   font-size:13px!important;line-height:1.43!important;font-weight:600!important;
   padding:12px 11px!important;border-radius:7px!important;color:#0b2d43!important;
   border:1px solid transparent!important;min-height:43px}
 #masthead .header-navigation .sub-menu a:hover,#masthead .main-navigation .sub-menu a:hover,#masthead ul.menu ul.sub-menu a:hover,
 #masthead .header-navigation .sub-menu a:focus-visible,#masthead .main-navigation .sub-menu a:focus-visible{
   background:#eef7f3!important;color:#005641!important;border-color:#d1e6db!important;outline:0!important}
 html[dir=rtl] #masthead .sub-menu,body.rtl #masthead .sub-menu{right:0!important;left:auto!important;text-align:right!important}
 html:not([dir=rtl]) #masthead .sub-menu{left:0;right:auto}
}
/* Responsive header: preserve the hamburger, links, and click targets. */
@media(max-width:999px){
 #masthead .site-branding,#masthead .site-logo{min-width:165px!important}
 #masthead .custom-logo-link,#masthead .site-branding a,#masthead .site-logo a{min-width:170px!important;min-height:51px!important}
 #masthead .custom-logo-link img,#masthead .site-branding a img,#masthead .site-logo a img{width:178px!important;min-width:165px!important;max-width:178px!important;height:49px!important;max-height:49px!important}
 /* Leave mobile submenu expansion to the theme. */
}
/* Fluid branded hero, without the hard diagonal that cuts through human faces. */
body.mhn-native .mhn-hero{position:relative!important;background:var(--matsh-logo-navy)!important;isolation:isolate}
body.mhn-native .mhn-hero-img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
  object-fit:cover!important;object-position:center 43%!important;z-index:-2!important}
body.mhn-native .mhn-hero:before{content:""!important;position:absolute!important;inset:0!important;clip-path:none!important;
  background:linear-gradient(90deg,#061e3d 0%,#061e3d 20%,rgba(0,86,65,.93) 39%,rgba(6,30,61,.76) 51%,rgba(6,30,61,.06) 76%)!important;z-index:-1!important}
body.mhn-native .mhn-main[dir=rtl] .mhn-hero:before{
  background:linear-gradient(90deg,rgba(6,30,61,.02) 15%,rgba(0,86,65,.50) 44%,rgba(0,86,65,.94) 60%,#061e3d 84%)!important}
body.mhn-native .mhn-hero:after{display:block!important;content:"";position:absolute!important;
  left:0!important;right:0!important;bottom:0!important;top:auto!important;height:5px!important;
  background:linear-gradient(90deg,#d6a349 0%,#f0ce73 33%,#005641 67%,#d6a349 100%)!important;
  transform:none!important;z-index:2!important;opacity:1!important}
body.mhn-native .mhn-hero .mhn-kicker{color:#f7d278!important}
body.mhn-native .mhn-hero .mhn-btn.gold{background:#d6a349!important;color:#061e3d!important;border-color:#d6a349!important}
body.mhn-native .mhn-hero .mhn-btn.line{border:1px solid #c7dfd4!important;color:#fff!important;background:rgba(0,86,65,.38)!important}
@media(max-width:720px){body.mhn-native .mhn-hero-img{opacity:.29!important}
 body.mhn-native .mhn-hero:before,body.mhn-native .mhn-main[dir=rtl] .mhn-hero:before{
  background:linear-gradient(145deg,#061e3df2,#005641e8)!important}
}
@media(prefers-reduced-motion:reduce){#masthead *{transition:none!important}}
