/* Allegory fixed header: viewport anchored; no clipping of logo or menu. */
html body #masthead{
position:fixed!important;top:var(--alg-header-top,0px)!important;left:0!important;right:0!important;bottom:auto!important;
width:100%!important;max-width:none!important;margin:0!important;padding:0!important;box-sizing:border-box;
transform:none!important;overflow:visible!important;max-height:none!important;z-index:9999;
background:rgba(255,245,248,.97);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
border-bottom:1px solid rgba(20,6,9,.08)}
html body #masthead .ast-primary-header-bar,
html body #masthead .ast-above-header-bar,
html body #masthead .ast-below-header-bar{margin:0!important;box-sizing:border-box}
#masthead .site-logo-img,#masthead .custom-logo-link{overflow:visible;flex-shrink:0}
#masthead .custom-logo-link{display:inline-flex;align-items:center}
#masthead img.custom-logo{height:auto!important;object-fit:contain;display:block}
html{scroll-padding-top:calc(var(--alg-header-height,90px) + var(--alg-header-top,0px) + 16px)}
#alg-header-space{display:block;flex-shrink:0;width:100%;pointer-events:none}
@media(max-width:921px){
html body #masthead .ast-above-header-bar,html body #masthead .ast-primary-header-bar{padding:12px 20px!important}
#masthead .site-logo-img{padding:0!important}
#masthead .custom-logo-link img{width:160px!important;max-width:calc(100vw - 120px)!important}
#masthead .ast-mobile-header-content{position:absolute;left:0;right:0;top:100%;max-height:calc(100dvh - var(--alg-header-height,80px) - var(--alg-header-top,0px));overflow-y:auto;overscroll-behavior:contain;background:#fff5f8}
}
@media print{html body #masthead{position:static!important}#alg-header-space{display:none}}

/* Reset inherited Astra logo offsets (mobile previously -95px / -77px). */
html body #masthead .ast-site-identity{margin:0!important;padding:20px 0!important}
@media(max-width:921px){html body #masthead .ast-site-identity{padding:8px 0!important}html body #masthead .ast-above-header-bar{min-height:72px}}
