/* Masin site header. Everything is scoped under #masin-header so WordPress theme styles don't leak in or out. */
#masin-header{--g:#226304;--g2:#73AC33;--ink:#1E1E1E;--ink2:#3B4740;--line:#E6E6E1;--soft:#F6F5EF;--hover:#F4F7EF;
  position:sticky;top:0;z-index:9990;background:#fff;border-bottom:1px solid var(--line);
  font-family:"Source Sans 3","Source Sans Pro",system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);font-size:16px;line-height:1.4}
body.admin-bar #masin-header{top:32px}
@media (max-width:782px){body.admin-bar #masin-header{top:46px}}
#masin-header *,#masin-header *::before,#masin-header *::after{box-sizing:border-box}
#masin-header ul{list-style:none;margin:0;padding:0}
#masin-header li{margin:0;padding:0}
#masin-header p{margin:0}
#masin-header a{color:var(--ink);text-decoration:none;font-family:inherit;background:none;box-shadow:none}
#masin-header a:hover{color:var(--g)}
#masin-header button{font-family:inherit;color:var(--ink);background:none;border:0;margin:0;box-shadow:none;text-transform:none;letter-spacing:normal;cursor:pointer;min-height:0;line-height:1.2}
#masin-header img{border:0;border-radius:0;box-shadow:none;max-width:none}
#masin-header :focus-visible{outline:3px solid var(--g2);outline-offset:2px;border-radius:6px}
#masin-header .mxh-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

#masin-header .mxh-inner{position:relative;max-width:1400px;margin:0 auto;height:80px;padding:0 32px;display:flex;align-items:center;gap:24px}
#masin-header .mxh-logo{flex:none;display:block;line-height:0}
#masin-header .mxh-logo img{width:176px;height:auto;display:block}
#masin-header .mxh-nav{flex:1;display:flex;align-items:center;margin-left:16px}
#masin-header .mxh-menu{display:flex;align-items:center;gap:2px}
#masin-header .mxh-menu>li{position:relative}
#masin-header .mxh-menu>li.mxh-mega{position:static}
#masin-header .mxh-top{display:inline-flex;align-items:center;gap:7px;padding:10px 14px;font-size:16.5px;font-weight:500;color:var(--ink);white-space:nowrap;border-radius:6px}
#masin-header .mxh-top:hover,#masin-header .mxh-has.mxh-open>.mxh-top,#masin-header .mxh-top[aria-current]{color:var(--g)}
#masin-header .mxh-has.mxh-open>.mxh-top{box-shadow:inset 0 -3px 0 var(--g);border-radius:0}
#masin-header .mxh-chev{transition:transform .2s ease}
#masin-header .mxh-has.mxh-open .mxh-chev{transform:rotate(180deg)}

#masin-header .mxh-actions{flex:none;margin-left:auto;display:flex;align-items:center;gap:8px}
#masin-header .mxh-icon{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;padding:0;border-radius:8px;color:var(--ink)}
#masin-header .mxh-icon:hover{color:var(--g);background:var(--hover)}
#masin-header .mxh-cta{display:inline-flex;align-items:center;justify-content:center;background:var(--g);color:#fff;border-radius:6px;padding:12px 22px;font-size:16px;font-weight:600;white-space:nowrap}
#masin-header .mxh-cta:hover{background:#1A4C04;color:#fff}
#masin-header .mxh-cta-mobile,#masin-header .mxh-burger{display:none}

/* dropdown panels */
#masin-header .mxh-panel{display:none;position:absolute;top:100%;background:#fff;border-radius:16px;box-shadow:0 24px 56px rgba(23,35,26,.2);padding:26px 30px 28px;z-index:2}
#masin-header .mxh-has.mxh-open>.mxh-panel{display:grid}
#masin-header .mxh-panel-wide{left:50%;transform:translateX(-50%);width:min(1100px,calc(100vw - 32px));grid-template-columns:250px minmax(0,1fr);gap:24px}
#masin-header .mxh-panel-mid{left:50%;transform:translateX(-50%);width:min(760px,calc(100vw - 32px));grid-template-columns:250px minmax(0,1fr);gap:24px}
#masin-header .mxh-panel-small{left:0;top:100%;width:260px;padding:10px}
#masin-header .mxh-intro{background:var(--soft);border-radius:12px;padding:22px;display:flex;flex-direction:column;gap:12px}
#masin-header .mxh-kicker{font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--g)}
#masin-header .mxh-lede{font-size:21px;font-weight:600;line-height:1.25;color:#17231A}
#masin-header .mxh-more{margin-top:auto;color:var(--g);font-weight:600}
#masin-header .mxh-cols{display:grid;gap:2px 20px;align-content:start}
#masin-header .mxh-cols-3{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-flow:column;grid-template-rows:repeat(8,auto)}
#masin-header .mxh-cols-2{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-flow:column;grid-template-rows:repeat(4,auto)}
#masin-header .mxh-cols a{display:block;padding:8px 10px;border-radius:8px;font-size:16px;line-height:1.3}
#masin-header .mxh-cols a:hover,#masin-header .mxh-cols a[aria-current]{color:var(--g);background:var(--hover)}

/* search bar */
#masin-header .mxh-search{display:none;max-width:1400px;margin:0 auto;padding:0 32px 16px;gap:10px}
#masin-header.mxh-searching .mxh-search{display:flex}
#masin-header .mxh-search input{flex:1;min-width:0;height:48px;border:1px solid var(--line);border-radius:10px;padding:0 16px;font:inherit;font-size:16px;background:var(--soft);color:var(--ink)}
#masin-header .mxh-search button{height:48px;padding:0 22px;border-radius:10px;background:var(--g);color:#fff;font-weight:600}

/* tablet and phone */
@media (max-width:1180px){
  #masin-header .mxh-inner{height:68px;padding:0 16px}
  #masin-header .mxh-logo img{width:140px}
  #masin-header .mxh-burger{display:inline-flex;flex-direction:column;gap:5px}
  #masin-header .mxh-burger span{display:block;width:22px;height:2px;background:currentColor;border-radius:2px;transition:transform .2s ease,opacity .2s ease}
  #masin-header.mxh-drawer .mxh-burger span:nth-child(1){transform:translateY(7px) rotate(45deg)}
  #masin-header.mxh-drawer .mxh-burger span:nth-child(2){opacity:0}
  #masin-header.mxh-drawer .mxh-burger span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
  #masin-header .mxh-actions .mxh-cta{display:none}
  #masin-header .mxh-nav{display:none;position:fixed;left:0;right:0;bottom:0;top:var(--mxh-top,68px);margin:0;background:#fff;flex-direction:column;align-items:stretch;overflow-y:auto;padding:8px 16px 16px;border-top:1px solid var(--line)}
  #masin-header.mxh-drawer .mxh-nav{display:flex}
  #masin-header .mxh-menu{flex-direction:column;align-items:stretch;gap:0}
  #masin-header .mxh-menu>li,#masin-header .mxh-menu>li.mxh-mega{position:relative;border-bottom:1px solid #EFEFEA}
  #masin-header .mxh-top{width:100%;justify-content:space-between;padding:15px 4px;font-size:18px}
  #masin-header .mxh-has.mxh-open>.mxh-top{box-shadow:none}
  #masin-header .mxh-panel,#masin-header .mxh-panel-wide,#masin-header .mxh-panel-mid,#masin-header .mxh-panel-small{position:static;transform:none;width:auto;box-shadow:none;border-radius:12px;background:var(--soft);padding:8px 10px;margin:0 0 12px}
  #masin-header .mxh-has.mxh-open>.mxh-panel{display:block}
  #masin-header .mxh-intro{display:none}
  #masin-header .mxh-cols-3,#masin-header .mxh-cols-2{grid-template-columns:minmax(0,1fr);grid-auto-flow:row;grid-template-rows:none}
  #masin-header .mxh-cols a{padding:10px 8px}
  #masin-header .mxh-cta-mobile{display:flex;margin-top:16px;padding:15px;font-size:17px}
  #masin-header .mxh-search{padding:0 16px 12px}
}
@media (prefers-reduced-motion:reduce){#masin-header *{transition:none!important}}
