/* No dimensions change: video, tint and controls sit inside the existing header. */
.ssv-has-header-video {
	position: relative;
	isolation: isolate;
	overflow: hidden;
}
.ssv-has-header-video > .ssv-header-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none !important;
	margin: 0 !important;
	pointer-events: none;
}
/* Deliberately no stacking context on the wrapper: its button stays above text. */
.ssv-header-video__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	border: 0;
	object-fit: cover;
	object-position: center;
}
.ssv-header-video::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(16, 28, 65, .82), rgba(24, 42, 86, .72) 52%, rgba(12, 25, 57, .82));
}
.ssv-has-header-video > .ssv-hslide__scrim {
	background: none;
	pointer-events: none;
}
.ssv-pagehead.ssv-has-header-video > :not(.ssv-header-video) {
	position: relative;
	z-index: 2;
}
.ssv-header-video__toggle {
	position: absolute;
	right: clamp(.75rem, 2vw, 1.5rem);
	bottom: clamp(.65rem, 1.5vw, 1rem);
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .45rem;
	min-width: 44px;
	min-height: 44px;
	box-sizing: border-box;
	margin: 0;
	padding: .55rem .8rem;
	border: 1px solid rgba(255, 255, 255, .45);
	border-radius: 999px;
	background: rgba(9, 22, 52, .8);
	color: #fff;
	font: inherit;
	font-size: .75rem;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	pointer-events: auto;
}
.ssv-header-video__toggle[hidden] { display: none; }
.ssv-header-video__toggle:hover { background: #243062; border-color: #fff; }
.ssv-header-video__toggle:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.ssv-header-video__toggle-icon { min-width: 1em; font-size: 1rem; line-height: 1; }
@media (max-width: 600px) {
	/* Reserve room below long headings so the touch target never covers text. */
	.ssv-pagehead.ssv-has-header-video { padding-bottom: calc(var(--wp--preset--spacing--50, 3rem) + 1.25rem) !important; }
	.ssv-header-video__toggle { width: 44px; padding: .55rem; }
	.ssv-header-video__toggle-label {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}
}
@media (prefers-reduced-motion: reduce) {
	.ssv-header-video__toggle { display: none; }
}
