/* =====================================================================
   [ab_video]: click-to-play YouTube video (Gareth's Awareness section)
   ===================================================================== */
.ab-video { margin: 0; }

.ab-video .ab-video__frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: var(--ab-radius-lg, 24px);
	overflow: hidden;
	background: var(--ab-ink, #1F2A28);
}

.ab-video .ab-video__play {
	position: absolute;
	inset: 0;
	display: block;
	color: #fff;
	text-decoration: none;
}
.ab-video .ab-video__play[hidden] { display: none; }

.ab-video .ab-video__thumb {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}
.ab-video .ab-video__play:hover .ab-video__thumb { transform: scale(1.03); }

/* White circle with an orange triangle */
.ab-video .ab-video__icon {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 88px;
	height: 88px;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5l12 7-12 7z' fill='%23C25700'/%3E%3C/svg%3E") 56% 50% / 30px no-repeat;
	box-shadow: 0 8px 24px rgba(39, 75, 71, .18);
	transition: transform .2s ease;
}
.ab-video .ab-video__play:hover .ab-video__icon { transform: translate(-50%, -50%) scale(1.08); }

.ab-video .ab-video__label {
	position: absolute;
	left: 16px;
	bottom: 16px;
	padding: 6px 12px;
	border-radius: 8px;
	background: var(--ab-teal, #274B47);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
}

.ab-video .ab-video__play:focus-visible { outline: none; box-shadow: inset 0 0 0 4px var(--ab-orange, #FF7300); }

.ab-video .ab-video__player {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.ab-video .ab-video__close {
	margin-top: 12px;
	min-height: 48px;
	padding: 0 20px;
	border: 2px solid var(--ab-teal, #274B47);
	border-radius: 10px;
	background: #fff;
	color: var(--ab-teal, #274B47);
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
}
.ab-video .ab-video__close:hover { background: var(--ab-sage, #E7EDE0); }
.ab-video .ab-video__close:focus-visible { outline: none; box-shadow: var(--ab-focus-ring, 0 0 0 2px #C25700, 0 0 0 6px rgba(255,115,0,.2)); }

.ab-video .ab-video__kicker {
	display: block;
	margin-bottom: 4px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--ab-orange-dark, #C25700);
}
.ab-video .ab-video__caption {
	margin-top: 12px;
	font-size: 16px;
	color: var(--ab-muted, #4A5856);
}

/* Screen-reader-only text (also defined in the theme; repeated so the plugin works alone) */
.ab-video .ab-visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
	.ab-video .ab-video__thumb, .ab-video .ab-video__icon { transition: none; }
	.ab-video .ab-video__play:hover .ab-video__thumb { transform: none; }
}

/* No thumbnail (e.g. a Vimeo video without image="…"): a plain teal panel */
.ab-video .ab-video__thumb--none {
	background: linear-gradient(135deg, var(--ab-teal, #274B47), var(--ab-teal-dark, #1B3734));
}
