/* ═══════════════════════════════════════════════════
   v1.35.0 — Site banner slot (inc/site-banner.php)
   Loaded only on pages that have a banner. --albert-banner-h is the banner's height, set by the
   inline script next to the banner (0 when it's closed). Every offset below is the theme's
   existing value plus that height, so with --albert-banner-h: 0 nothing moves.
   ═══════════════════════════════════════════════════ */

:root { --albert-banner-h: 0px; }

.site-banner { position: fixed; top: 0; left: 0; right: 0; z-index: 1002; }
.site-banner[hidden] { display: none; }
body.admin-bar .site-banner { top: 32px; }

html { scroll-padding-top: var(--albert-banner-h); }

.site-header { top: var(--albert-banner-h); }
body.admin-bar .site-header { top: calc(32px + var(--albert-banner-h)); }

.wp-site-blocks { padding-top: calc(64px + var(--albert-banner-h)); }
.blog-subheader { top: calc(64px + var(--albert-banner-h)); }
body.admin-bar .blog-subheader { top: calc(96px + var(--albert-banner-h)); }
.reading-progress { top: calc(64px + var(--albert-banner-h)); }
body.admin-bar .reading-progress { top: calc(96px + var(--albert-banner-h)); }

@media (max-width: 782px) {
	body.admin-bar .site-banner { top: 46px; }
	body.admin-bar .site-header { top: calc(46px + var(--albert-banner-h)); }
	body.admin-bar .blog-subheader { top: calc(102px + var(--albert-banner-h)); }
}
@media (max-width: 768px) {
	.wp-site-blocks { padding-top: calc(56px + var(--albert-banner-h)); }
	.blog-subheader { top: calc(56px + var(--albert-banner-h)); }
	.reading-progress { top: calc(56px + var(--albert-banner-h)); }
	body.admin-bar .reading-progress { top: calc(102px + var(--albert-banner-h)); }
}

/* Flash card study mode hides the hero and goes full screen: no banner there either. */
html.ezfc-studying .site-banner { display: none; }

/* Never print the banner. */
@media print {
	.site-banner { display: none !important; }
	:root { --albert-banner-h: 0px !important; }
}
