/* Global Merdaj Books header and footer; the theme's own chrome is hidden only on the public frontend. */
body:not(.wp-admin) :is(header.header, header.site-header, #masthead, .site-header, .builder-item--header, footer.site-footer, #colophon, .footer--row){display:none!important}
body:not(.wp-admin) .mbui-global-header,body:not(.wp-admin) .mbui-global-footer{display:block!important}
.mbui-global-header,.mbui-global-footer{box-sizing:border-box;font-family:inherit;color:#222723}
.mbui-global-header *,.mbui-global-footer *{box-sizing:border-box}
.mbui-global-header{position:sticky;top:0;z-index:99990;background:#fff;border-bottom:1px solid #ecece9;width:100%;box-shadow:0 2px 12px rgba(0,0,0,.025)}
body.admin-bar .mbui-global-header{top:32px}
.mbui-global-header-inner{max-width:1320px;margin:auto;height:65px;min-height:65px;padding:6px clamp(18px,4vw,48px);display:flex;align-items:center;justify-content:space-between;gap:32px}
.mbui-brand{display:flex;align-items:center;min-width:0}
.mbui-brand .mbui-brand-logo{display:block;line-height:0;flex-shrink:0}
.mbui-global-header .mbui-brand .mbui-brand-logo img{display:block!important;width:auto!important;height:40px!important;max-height:40px!important;max-width:110px!important;object-fit:contain!important;object-position:left center!important}
.mbui-brand-text{font-size:23px;font-weight:750;color:#1f2520;text-decoration:none}
.mbui-nav-list,.mbui-footer-nav-list,.mbui-mobile-nav-list{margin:0;padding:0;list-style:none}
.mbui-nav-list{display:flex;align-items:center;gap:clamp(18px,2.2vw,36px)}
.mbui-global-header a,.mbui-global-footer a{color:inherit;text-decoration:none}
.mbui-nav-list a{display:block;font-size:15px;font-weight:500;line-height:1.5;padding:9px 0;transition:color .2s}
.mbui-nav-list a:hover,.mbui-nav-list .current-menu-item>a,.mbui-footer-nav-list a:hover{color:#54805b}
.mbui-mobile-menu{display:none;position:relative}
.mbui-mobile-menu summary{cursor:pointer;list-style:none;width:44px;height:44px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:1px solid #e9e9e6;border-radius:9px}
.mbui-mobile-menu summary::-webkit-details-marker{display:none}
.mbui-mobile-menu summary span{display:block;width:19px;height:2px;background:#202621;border-radius:2px}
.mbui-mobile-menu nav{position:absolute;top:calc(100% + 12px);right:0;width:min(320px,calc(100vw - 32px));background:white;border:1px solid #ecece8;border-radius:12px;box-shadow:0 18px 40px #0002;padding:12px;z-index:99999}
.mbui-mobile-nav-list li{margin:0}
.mbui-mobile-nav-list a{display:block;padding:12px 14px;font-size:15px;border-radius:6px}
.mbui-mobile-nav-list a:hover{background:#f5f6f2}
.mbui-global-footer{background:#f5f5f1;border-top:1px solid #e8e9e4;width:100%}
.mbui-global-footer-inner{max-width:1320px;margin:auto;padding:40px clamp(18px,4vw,48px);display:flex;align-items:center;justify-content:space-between;gap:22px;flex-wrap:wrap}
.mbui-footer-nav-list{display:flex;gap:12px 26px;align-items:center;flex-wrap:wrap}
.mbui-footer-nav-list a{font-size:14px}
.mbui-footer-copy{font-size:12px;color:#777e77}
@media(max-width:850px){.mbui-desktop-nav{display:none}.mbui-mobile-menu{display:block}.mbui-global-header-inner{height:56px;min-height:56px;padding-top:5px;padding-bottom:5px}.mbui-global-header .mbui-brand .mbui-brand-logo img{height:34px!important;max-height:34px!important;max-width:90px!important}.mbui-global-footer-inner{align-items:flex-start;flex-direction:column;padding-top:32px;padding-bottom:32px}}
@media(max-width:782px){body.admin-bar .mbui-global-header{top:46px}}
@media(max-width:600px){body.admin-bar .mbui-global-header{top:0}}
