/* Shared frontend smart chrome: the announcement and Astra Header move together. */
body.cacio-smart-header-ready .cacio2-announcement,
body.cacio-smart-header-ready #masthead {
	position: fixed;
	right: 0;
	left: 0;
	width: 100%;
	margin: 0;
	transition: transform .26s ease;
}

body.cacio-smart-header-ready .cacio2-announcement {
	top: var(--cacio-smart-adminbar-offset, 0px);
	z-index: 1001;
}

body.cacio-smart-header-ready #masthead {
	top: calc(var(--cacio-smart-adminbar-offset, 0px) + var(--cacio-smart-notice-height, 0px));
	z-index: 1000;
}

body.cacio-smart-header-ready .site-chrome-spacer {
	display: block;
	width: 100%;
	pointer-events: none;
}

body.cacio-smart-header-ready #content {
	scroll-margin-block-start: calc(var(--cacio-smart-adminbar-offset, 0px) + var(--cacio-smart-chrome-height, 0px) + 24px);
}

/* Keep the centered Astra logo link pointer-quiet while preserving keyboard focus. */
#masthead .site-branding .site-logo-img > a.custom-logo-link:focus:not(:focus-visible) {
	outline: none;
}

#masthead .site-branding .site-logo-img > a.custom-logo-link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

body.cacio-smart-header-ready.cacio-smart-header-hidden .cacio2-announcement,
body.cacio-smart-header-ready.cacio-smart-header-hidden #masthead {
	transform: translateY(calc(0px - var(--cacio-smart-chrome-height, 0px)));
}

body.cacio-smart-header-ready.cacio-smart-mobile-menu-open .cacio2-announcement,
body.cacio-smart-header-ready.cacio-smart-mobile-menu-open #masthead {
	transform: none;
	transition: none;
}

@media (prefers-reduced-motion: reduce) {
	body.cacio-smart-header-ready .cacio2-announcement,
	body.cacio-smart-header-ready #masthead {
		transition: none;
	}
}
