/**
 * Section 508 / WCAG 2.0 AA fixes.
 *
 * Loaded after style.css and the Customizer's inline CSS (see
 * vae_accessibility_assets() in functions.php). Color and focus fixes to
 * existing rules were made in place in style.css and are marked "508:".
 */

/* ## Background video pause/play button (WCAG 2.2.2)
--------------------------------------------- */

.video-toggle {
	position: absolute;
	right: 1.6rem;
	bottom: 1.6rem;
	z-index: 11; /* above .home-banner-overlay (10) */
	display: inline-flex;
	align-items: center;
	gap: 0.8rem;
	width: auto;
	height: auto;
	margin: 0;
	padding: 0.6rem 1.4rem;
	color: #fff;
	font-family: 'Open Sans', sans-serif;
	font-size: 1.4rem;
	font-weight: 600;
	line-height: 1.4;
	text-transform: none;
	letter-spacing: normal;
	background: rgba(0, 0, 0, 0.7);
	border: 2px solid #fff;
	border-radius: 9rem;
	box-shadow: none;
	cursor: pointer;
}

.video-toggle[hidden] {
	display: none;
}

.video-toggle:hover {
	background: #000;
	box-shadow: none;
}

/* White ring plus blue halo: visible on both light and dark video frames. */
.video-toggle:focus {
	background: #000;
	outline: 2px solid #fff;
	outline-offset: 2px;
	box-shadow: 0 0 0 5px #2a6fbf;
}

/* Pause icon: two bars. */
.video-toggle__icon {
	position: relative;
	display: block;
	width: 1rem;
	height: 1.2rem;
	border-left: 0.35rem solid #fff;
	border-right: 0.35rem solid #fff;
}

/* Play icon: triangle. */
.video-toggle.is-paused .video-toggle__icon {
	width: 0;
	height: 0;
	border-top: 0.65rem solid transparent;
	border-bottom: 0.65rem solid transparent;
	border-left: 1.1rem solid #fff;
	border-right: 0;
}

/* ## Focus visibility (WCAG 2.4.7)
--------------------------------------------- */

/* The accordion removed its outline entirely. */
.accordion:focus {
	outline: 2px solid #2a6fbf;
	outline-offset: 2px;
}

/* ## Share buttons (WCAG 1.4.3)
--------------------------------------------- */

/* White on the plugin's light blue #09b0ed was 2.48:1. Use X's black. */
.share-filled .twitter .share {
	background: #000;
}

.share-filled .twitter .count,
.share-filled .twitter .count:hover {
	color: #000;
	border-color: #000;
}

.share-filled .twitter:hover .count {
	background: #000 !important;
}
