/* Site Header widget — admin-bar compensation + small polish tweaks.
   The theme header is position:fixed at top:0. When a logged-in user is
   viewing the site, WordPress injects #wpadminbar at position:fixed top:0
   which would overlap the header. These rules shift the fixed header,
   scroll-progress bar and mobile-nav overlay down by the admin bar's
   height (32px desktop, 46px mobile ≤ 782px). */

body.admin-bar .site-header {
    top: 32px;
}
body.admin-bar .scroll-progress {
    top: 32px;
}
body.admin-bar .mobile-nav {
    top: calc(var(--nav-height) + 32px);
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
    body.admin-bar .scroll-progress {
        top: 46px;
    }
    body.admin-bar .mobile-nav {
        top: calc(var(--nav-height) + 46px);
    }
}

/* Keep the logo image from blowing out the 72px nav band when the source
   asset is tall. Width is still auto — respects the source aspect ratio. */
.site-header .site-logo-img {
    max-height: calc(var(--nav-height) - var(--space-6));
    object-fit: contain;
}
