/* Prototype navigation, scoped to the classic Divi header. Footer rules are untouched. */
body #page-container #main-header.st-prototype-header{background:#f7fafa!important;border-bottom:1px solid #dde6e8;box-shadow:none!important}
#main-header.st-prototype-header .et_menu_container{display:flex;align-items:center;gap:0;width:calc(100% - 80px);max-width:1360px!important;min-height:80px;height:80px;padding:0;position:static}
#main-header.st-prototype-header .logo_container{position:static;width:118px;flex:0 0 118px;height:auto;margin:0;line-height:1}
#main-header.st-prototype-header .logo_container a{display:block}
#main-header.st-prototype-header #logo{display:block;width:118px;height:auto;max-width:100%;max-height:none;margin:0;transform:none}
#main-header.st-prototype-header .logo-white{display:none!important}
#main-header.st-prototype-header #et-top-navigation{display:flex;align-items:center;float:none;margin:0 0 0 56px;padding:0!important;flex:1;line-height:1}
#main-header.st-prototype-header #top-menu{display:flex!important;gap:24px;align-items:center;float:none}
#main-header.st-prototype-header #top-menu>li{display:block;margin:0;padding:0;line-height:1}
/* Outrank the legacy fixed-header padding so scrolling cannot move the underline. */
#main-header.st-prototype-header #et-top-navigation #top-menu>li>a{display:block;box-sizing:border-box;height:36px;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"!important;font-size:14px;font-weight:500;line-height:20px;color:#566a70!important;padding:8px 0!important;opacity:1;position:relative;transition:color .15s cubic-bezier(.4,0,.2,1)}
#main-header.st-prototype-header #et-top-navigation #top-menu>li>a:hover,#main-header.st-prototype-header #et-top-navigation #top-menu>li.current-menu-item>a{color:#397977!important}
#main-header.st-prototype-header #et-top-navigation #top-menu>li.current-menu-item>a:after{content:'';display:block;position:absolute;bottom:-4px;left:0;right:0;height:2px;border-radius:999px;background:#397977}
#main-header.st-prototype-header #top-menu>li.st-nav-mobile-only{display:none!important}
#main-header.st-prototype-header .menu-action-menu-container{display:block!important;flex:0 0 auto;width:auto;margin-left:24px}
#main-header.st-prototype-header #action-menu{display:flex;align-items:center;gap:24px;padding:0;margin:0}
#main-header.st-prototype-header #action-menu li{padding:0;margin:0}
#main-header.st-prototype-header #action-menu a{font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"!important;font-size:14px;font-weight:500;line-height:20px;color:#0f1416}
/* The action menu is a sibling of #et-top-navigation. Scope through the page
   container to override legacy Divi buttons without depending on that ancestor. */
#page-container #main-header.st-prototype-header #action-menu li.st-nav-book>a,
#page-container #main-header.st-prototype-header #action-menu li.st-nav-book>a:is(:hover,:focus,:active){display:inline-flex;align-items:center;justify-content:center;gap:8px;width:auto;max-width:none;height:36px!important;min-height:36px;box-sizing:border-box;margin:0;padding:8px 16px!important;border:0!important;line-height:20px!important;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"!important;font-size:14px!important;font-weight:500!important;letter-spacing:normal;white-space:nowrap;text-decoration:none;opacity:1;transform:none;background:#397977!important;border-radius:6px!important;color:#f7fafa!important;box-shadow:inset 0 1px 0 #ffffff24,0 1px 2px #0f141629;transition:color .15s cubic-bezier(.4,0,.2,1),background-color .15s cubic-bezier(.4,0,.2,1),border-color .15s cubic-bezier(.4,0,.2,1)!important}
#page-container #main-header.st-prototype-header #action-menu li.st-nav-book>a:hover{background-color:#2c5d5c!important}
#page-container #main-header.st-prototype-header #action-menu li.st-nav-book>a:active{background-image:linear-gradient(#00000026,#00000026)!important}
#page-container #main-header.st-prototype-header #action-menu li.st-nav-book>a:focus-visible{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #a3a3a380}
#page-container #main-header.st-prototype-header #action-menu li.st-nav-book>a:before{display:none!important}
#page-container #main-header.st-prototype-header #action-menu li.st-nav-book>a:after{content:''!important;display:block!important;position:static;opacity:1;margin:0;flex:0 0 16px;width:16px;height:16px;background:currentColor;transform:none;mask:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M5 12h14"/%3E%3Cpath d="m12 5 7 7-7 7"/%3E%3C/svg%3E') center/contain no-repeat}
#main-header.st-prototype-header a:focus-visible,#main-header.st-prototype-header .mobile_menu_bar:focus-visible{outline:2px solid #1d4d46;outline-offset:5px}
#main-header.st-prototype-header #et_mobile_nav_menu{display:none!important}
#main-header.st-prototype-header .m-show-demo{display:none!important}
@media(max-width:1023px){
 #main-header.st-prototype-header .et_menu_container{width:calc(100% - 40px)}
 #main-header.st-prototype-header #et-top-navigation{justify-content:flex-end;margin:0;padding:0!important}
 #main-header.st-prototype-header #top-menu-nav,#main-header.st-prototype-header #top-menu,#main-header.st-prototype-header .menu-action-menu-container{display:none!important}
 #main-header.st-prototype-header #et_mobile_nav_menu{display:block!important;margin:0;float:none}
 #main-header.st-prototype-header .mobile_nav{background:transparent;padding:0}
 #main-header.st-prototype-header .mobile_menu_bar{display:block;padding:0;cursor:pointer;line-height:1}
 #main-header.st-prototype-header .mobile_menu_bar:before{font-size:28px;color:#0f1416;top:0}
 #main-header.st-prototype-header .mobile_nav.opened .mobile_menu_bar:before{content:'\4d'}
 #main-header.st-prototype-header #mobile_menu{top:80px;width:100%!important;height:auto!important;max-height:calc(100dvh - 126px);padding:12px 20px 20px!important;margin:0;background:#f7fafa!important;border-top:1px solid #dde6e8;box-shadow:0 6px 10px #0001;transition:none!important}
 #main-header.st-prototype-header #mobile_menu>li{display:block!important;width:100%;padding:0!important;margin:0!important}
 #main-header.st-prototype-header #mobile_menu>li>a{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;font-size:16px;line-height:24px;font-weight:400;color:#0f1416!important;padding:8px 0!important;background:transparent;border:0}
 #main-header.st-prototype-header #mobile_menu>li.current-menu-item>a{color:#397977!important}
 #main-header.st-prototype-header #mobile_menu>li.st-nav-book{padding-top:12px!important}
 #main-header.st-prototype-header #mobile_menu>li.st-nav-book>a{padding:8px 16px!important;background:#397977!important;border-radius:6px;color:#f7fafa!important;text-align:center;font-size:14px;line-height:20px;font-weight:500;transition:background-color .15s cubic-bezier(.4,0,.2,1)}
 #main-header.st-prototype-header #mobile_menu>li.st-nav-book>a:is(:hover,:focus-visible){background:#2c5d5c!important}
}
@media(max-width:1023px){
 #main-header.st-prototype-header .mobile_menu_bar{width:36px;height:36px;background:none!important;display:flex;align-items:center;justify-content:center}
 #main-header.st-prototype-header .mobile_menu_bar:before{display:block!important;position:static;line-height:36px;font-size:28px}
 #main-header.st-prototype-header .mobile_menu_bar:after{display:none!important}
}
/* Keep the logged-in toolbar account item inside the toolbar instead of over the menu toggle. */
body.admin-bar:has(#main-header.st-prototype-header) #wpadminbar #wp-admin-bar-top-secondary{position:absolute;right:0;top:0}
body.admin-bar:has(#main-header.st-prototype-header) #wpadminbar #wp-admin-bar-root-default{height:32px;overflow:hidden;padding-right:52px}
@media(max-width:782px){body.admin-bar:has(#main-header.st-prototype-header) #wpadminbar #wp-admin-bar-root-default{height:46px}}
#main-header.st-prototype-header .mobile_menu_bar .bar-icon{display:none!important}

/* Match the prototype’s 32px tablet gutters; desktop uses 40px, mobile 20px. */
@media(min-width:640px) and (max-width:1023px){#main-header.st-prototype-header .et_menu_container{width:calc(100% - 64px)}}

/* Override the legacy mobile logo offset; the flex container handles centering. */
@media(max-width:1023px){#main-header.st-prototype-header #logo{top:0!important;bottom:auto!important}}

/* The reference keeps its 80px header on mobile as well as desktop. */
@media(max-width:1023px){#et-boc .et-l .et_pb_section.stv2.st-library.sl-hero{margin-top:80px!important}}
