/* Shared presentation only. Native menus, account controls and page forms remain in place. */
body.medd-header-modern{--mf-ink:#153d32;--mf-green:#0e6b50;--mf-line:#dfe8e3;}
.medd-header-modern #masthead{background:#fff;border-bottom:1px solid var(--mf-line);box-shadow:none;top:0!important;}
.medd-header-modern #masthead .site-header-container{max-width:1380px;margin:auto;padding:0 32px;min-height:80px;display:flex;align-items:center;}
.medd-header-modern #site-logo .bb-logo{max-width:105px;height:auto;}
.medd-header-modern #site-navigation{margin-left:40px;display:flex;align-items:center;}
.medd-header-modern #primary-navbar{width:100%;display:flex;align-items:center;}
.medd-header-modern #primary-menu{display:flex!important;flex-wrap:nowrap;align-items:center;gap:6px;height:auto!important;margin-top:0;margin-bottom:0;}
.medd-header-modern #primary-menu>li{float:none!important;flex:none;height:auto!important;margin:0!important;}
.medd-header-modern #primary-menu>li>a{height:42px!important;min-height:42px;padding:0 16px!important;display:flex!important;flex-direction:row!important;align-items:center;border-radius:12px;font-size:14px;font-weight:550;gap:0;color:#52675d;line-height:1.3!important;margin:0!important;top:auto!important;}
.medd-header-modern #primary-menu>li>a>i{display:none!important;}
.medd-header-modern #primary-menu>li:not(.menu-item-has-children)>a::after{display:none!important;}
.medd-header-modern #primary-menu>li>a>span{padding:0!important;margin:0!important;top:auto!important;height:auto;line-height:1.3!important;}
.medd-header-modern #primary-menu>li.current-menu-item>a{background:#e8f2ec;color:var(--mf-green);}
.medd-header-modern #primary-menu>li>a:hover{background:#f1f5f2;color:var(--mf-ink);}
/* Membership menus may have more items than the former fixed navigation. */
.medd-header-modern.medd-native-navigation #site-navigation{min-width:0;}
.medd-header-modern.medd-native-navigation #primary-menu{flex-wrap:wrap;}
.medd-header-modern.medd-native-navigation #masthead{height:auto;}
.medd-header-modern.medd-native-navigation #masthead .site-header-container{height:auto;}
.medd-header-modern.medd-native-navigation #primary-menu>li:focus-within>.ab-submenu{opacity:1;visibility:visible;pointer-events:auto;}
.medd-header-modern #header-aside .header-aside-inner{gap:8px;}
.medd-header-modern #header-aside :is(.notification-link,.header-search-link){box-sizing:border-box;min-width:42px;min-height:42px;display:flex!important;align-items:center;justify-content:center;padding:0;border-radius:12px;background:#f5f7f5;}
.medd-header-modern #header-aside .bb-separator{display:none;}
.medd-header-modern #header-aside>.header-aside-inner>.user-wrap>.user-link>.user-name{display:none;}
.medd-header-modern #header-aside .avatar{border-radius:50%;border:2px solid #e4ece6;}
.medd-header-modern #header-my-account-menu .medd-workspace-menu-item a{font-size:14px;line-height:1.4;}
.medd-header-modern :is(#masthead,.bb-mobile-header,.bb-mobile-panel-wrapper) :is(a,button):focus-visible{outline:3px solid #0e6b50;outline-offset:3px;}
html:has(> body.medd-header-modern:not(.medd-editor-toolbar)){margin-top:0!important;}
body.medd-header-modern:not(.medd-editor-toolbar) #wpadminbar{display:none!important;}
@media(max-width:1150px) and (min-width:901px){
 .medd-header-modern #masthead .site-header-container{padding:0 20px;}
 .medd-header-modern #site-navigation{margin-left:16px;}
 .medd-header-modern #primary-menu>li>a{padding:0 10px!important;}
}
@media(max-width:900px){
 .medd-header-modern #masthead{height:auto!important;min-height:64px;}
 .medd-header-modern #masthead .site-header-container{display:none!important;}
 .medd-header-modern .bb-mobile-header-wrapper{display:block!important;background:#fff;}
 .medd-header-modern .bb-mobile-header{height:64px;min-height:64px;padding:0 16px;}
 .medd-header-modern .bb-mobile-logo{max-width:96px;height:auto;}
 .medd-header-modern .bb-mobile-header :is(.notification-link,.bb-left-panel-mobile){display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;}
}
.medd-header-modern :is(#masthead,.bb-mobile-header-wrapper,.bb-mobile-panel-wrapper){font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;}

/* Existing website editors retain native toolbar controls and their personal preference. */
body.medd-header-modern.medd-editor-toolbar{--medd-toolbar-height:32px;}
html:has(> body.medd-header-modern.medd-editor-toolbar){margin-top:32px!important;}
body.medd-header-modern.medd-editor-toolbar #wpadminbar{display:block!important;position:fixed!important;top:0;}
@media(max-width:782px){
 body.medd-header-modern.medd-editor-toolbar{--medd-toolbar-height:46px;}
 html:has(> body.medd-header-modern.medd-editor-toolbar){margin-top:46px!important;}
}
