/**
 * Accessibility styles foundation.
 *
 * @package Psychologies
 */

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--psy-background);
	border-radius: var(--psy-radius);
	box-shadow: var(--psy-shadow-md);
	clip: auto !important;
	clip-path: none;
	color: var(--psy-text);
	display: block;
	font-size: var(--psy-font-size-base);
	height: auto;
	left: var(--psy-spacing-sm);
	line-height: normal;
	padding: var(--psy-spacing-md);
	text-decoration: none;
	top: var(--psy-spacing-sm);
	width: auto;
	z-index: 100000;
}

.psy-skip-link {
	position: absolute;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.psy-skip-link:focus {
	left: var(--psy-spacing-sm);
	top: var(--psy-spacing-sm);
	width: auto;
	height: auto;
	z-index: 100000;
}

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
	outline: 2px solid var(--psy-primary);
	outline-offset: 2px;
}

.psy-search-bar__input:focus,
.psy-search-bar__input:focus-visible {
	outline: none;
	outline-offset: 0;
	box-shadow: none;
}

.psy-menu-toggle {
	cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
