/* Cox GP Accessibility - front-end styles.
   Nothing here changes how a page looks for mouse users. */

/* Text for screen readers only. */
.cgpa-sr-only {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0; border: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

/* Skip link: hidden until it receives keyboard focus. */
.cgpa-skip-link {
	position: absolute;
	left: -9999px; top: 0;
	z-index: 100000;
	padding: 12px 18px;
	background: #111; color: #fff;
	font-size: 16px; line-height: 1.2;
	text-decoration: none;
}
.cgpa-skip-link:focus {
	left: 8px; top: 8px;
	color: #fff;
	outline: 3px solid #ffbf47;
}

/* Visible focus for keyboard users (added only when the fix is on). */
html.cgpa-focus a:focus-visible,
html.cgpa-focus button:focus-visible,
html.cgpa-focus input:focus-visible,
html.cgpa-focus select:focus-visible,
html.cgpa-focus textarea:focus-visible,
html.cgpa-focus summary:focus-visible,
html.cgpa-focus [role="button"]:focus-visible,
html.cgpa-focus [tabindex]:focus-visible {
	outline: 3px solid #005fcc !important;
	outline-offset: 2px !important;
	box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.9) !important;
}

/* Menus: while the visitor is using the keyboard, every drop-down stays shut
   until it is opened on purpose. Mouse hover is untouched. */
html.cgpa-kbd li.cgpa-menu-parent:not(.cgpa-open):not(:hover) ul,
html.cgpa-kbd li.cgpa-menu-parent:not(.cgpa-open):not(:hover) > .nav-dropdown,
html.cgpa-kbd li.cgpa-menu-parent:not(.cgpa-open):not(:hover) > .dt-mega-menu-wrap {
	visibility: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

/* Fallback for themes that have no "open" class of their own. */
li.cgpa-menu-parent.cgpa-force > ul,
li.cgpa-menu-parent.cgpa-force > .sub-menu {
	visibility: visible !important;
	opacity: 1 !important;
	display: block !important;
	left: 0 !important;
	max-height: none !important;
}

/* Extra toggle for parents that are also real links: keyboard focus only. */
.cgpa-submenu-toggle {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0; border: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	background: #111; color: #fff;
	font-size: 12px; line-height: 1;
	cursor: pointer;
}
.cgpa-submenu-toggle:focus {
	position: static !important;
	width: auto; height: auto;
	margin: 0 0 0 4px; padding: 4px 6px;
	clip: auto;
	overflow: visible;
}

/* Slider pause / play button. */
.cgpa-slider-toggle {
	position: absolute;
	left: 10px; bottom: 10px;
	z-index: 30;
	width: 36px; height: 36px;
	min-height: 0;
	margin: 0; padding: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.75);
	color: #fff;
	font-size: 12px; line-height: 32px;
	text-align: center;
	cursor: pointer;
	opacity: 0.85;
}
.cgpa-slider-toggle:hover,
.cgpa-slider-toggle:focus {
	opacity: 1;
	background: #000;
	color: #fff;
}
.cgpa-slider-toggle::before { content: "\275A\275A"; letter-spacing: 1px; }
.cgpa-slider-toggle[data-state="paused"]::before { content: "\25B6"; letter-spacing: 0; }
