/* The navigation remains visible; the brand scrolls away on wide screens. */
.site-header{position:sticky;top:calc(var(--ffa-admin-offset,0px) - var(--ffa-brand-height,0px));z-index:100;background:var(--paper)}
.site-header.is-stuck{box-shadow:0 5px 18px #25256f12}
#main-content,.entry-content [id]{scroll-margin-top:calc(var(--ffa-admin-offset,0px) + var(--ffa-visible-header,64px) + 16px)}
.back-to-top{position:fixed;right:max(24px,env(safe-area-inset-right));bottom:max(24px,env(safe-area-inset-bottom));z-index:1000;display:grid;place-items:center;width:48px;height:48px;padding:0;border:1px solid #ffffff66;border-radius:50%;background:var(--wine);color:#fff;box-shadow:0 4px 18px #25256f30;cursor:pointer;transition:background .15s,transform .15s}
.back-to-top[hidden]{display:none}
.back-to-top:hover{background:var(--wine-dark);transform:translateY(-2px)}
.back-to-top svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:1050px){
 .site-header{top:var(--ffa-admin-offset,0px)}
 .site-nav.is-open{max-height:calc(100vh - var(--ffa-admin-offset,0px) - var(--ffa-brand-height,90px) - 20px);max-height:calc(100dvh - var(--ffa-admin-offset,0px) - var(--ffa-brand-height,90px) - 20px);overflow-y:auto;overscroll-behavior:contain}
}
@media(max-width:700px){.back-to-top{right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));width:46px;height:46px}}
@media(prefers-reduced-motion:reduce){.back-to-top{transition:none}}
