/*
 * JDB 3.0 header bridge.
 * Keep the completed legacy .jdb-site-header and remove duplicate shells.
 */
body.jdb-v3-site-shell .l-header#header,
#body_wrap.jdb-v3-site-shell .l-header#header,
html:has(#body_wrap.jdb-v3-site-shell) .l-header#header {
	display: none !important;
}

/* Stage 1 temporarily rendered this second custom header. It is no longer
 * output, but hiding it makes cache transitions harmless. */
body.jdb-v3-site-shell > .jdb-v3-header,
html:has(#body_wrap.jdb-v3-site-shell) body > .jdb-v3-header,
body.jdb-v3-site-shell > .jdb-v3-header__backdrop,
html:has(#body_wrap.jdb-v3-site-shell) body > .jdb-v3-header__backdrop {
	display: none !important;
}

/* The existing header is the visual source of truth on every JDB shell. */
body.jdb-v3-site-shell .jdb-site-header,
html:has(#body_wrap.jdb-v3-site-shell) .jdb-site-header {
	display: block !important;
}

#body_wrap.jdb-v3-site-shell #jdb-v3-search-input {
	scroll-margin-top: 96px;
}

@media (prefers-reduced-motion: reduce) {
	body.jdb-v3-site-shell .jdb-site-header * {
		scroll-behavior: auto;
	}
}
