/*
 * Emetco header and footer frame (concept 06-v2). Tokens only, never a hex.
 * The header and footer blocks' own style.css hold the rest.
 */
:root{--em-hdr-h:64px}
@media (min-width:860px){:root{--em-hdr-h:76px}}

/* Sticky header: the template-part wrapper is the direct child of .wp-site-blocks. */
.base-header-wrap:has(.em-hdr){position:sticky;inset-block-start:0;z-index:50}
.admin-bar .base-header-wrap:has(.em-hdr){inset-block-start:var(--wp-admin--admin-bar--height,32px)}
@media (max-width:600px){.admin-bar .base-header-wrap:has(.em-hdr){inset-block-start:0}}
.admin-bar .em-mnav{inset-block-start:calc(var(--em-hdr-h) + var(--wp-admin--admin-bar--height,46px))}

.em-hdr{margin:0;background:color-mix(in srgb,var(--base-surface) 88%,transparent);-webkit-backdrop-filter:saturate(180%) blur(18px);backdrop-filter:saturate(180%) blur(18px);transition:box-shadow var(--base-dur) var(--base-ease)}
.em-scrolled .em-hdr,.em-hdr:has(.em-mnav:popover-open){box-shadow:0 1px 0 var(--base-outline-variant);background:var(--base-surface)}
.em-hdr__bar{display:flex;align-items:center;justify-content:space-between;gap:16px;block-size:var(--em-hdr-h)}
.em-hdr__bar>*{margin-block:0}
.em-hdr .base-logo{display:flex;align-items:center;min-block-size:48px;flex:none}
.em-hdr .base-logo__img{block-size:32px;inline-size:auto}
.em-hdr .base-logo:focus-visible{outline:2.5px solid var(--base-focus);outline-offset:4px;border-radius:var(--base-radius-s)}
@media (min-width:860px){.em-hdr .base-logo__img{block-size:40px}}

/* No page scroll behind the open phone menu */
html:has(.em-mnav:popover-open){overflow:hidden}

/* Footer: the wrapper sits flush under the page. */
.base-footer-wrap:has(.em-ftr){margin-block-start:0}
