/*
 * OTM base layer. Shared across every site, so keep it minimal:
 * only accessibility and sane defaults that Bricks doesn't already provide.
 * Visual design belongs in Bricks theme styles, global classes and variables.
 */

/* Accessibility */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--color-focus, currentColor);
	outline-offset: 2px;
}

.sr-only {
	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) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* Media defaults */
:where(img, video, svg) {
	max-width: 100%;
	height: auto;
}

:where(iframe[src*="youtube"], iframe[src*="vimeo"]) {
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
}

/* Anchor targets clear a sticky header (set --header-height per site if needed) */
:where([id]) {
	scroll-margin-top: var(--header-height, 0px);
}
