/* Kestra — base: reset, skip-link, focus, motion */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
}

/* Sections manage their own vertical rhythm via .kk-section padding, so the
   root blockGap margin WP inserts between header/main/footer is redundant —
   it only shows up as unwanted whitespace against full-bleed sections. */
.wp-site-blocks > * {
	margin-block-start: 0;
}

img,
svg,
video,
iframe {
	max-width: 100%;
	height: auto;
	display: block;
}

:where(ul, ol) {
	padding-inline-start: 1.2em;
}

table {
	border-collapse: collapse;
	width: 100%;
}

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

.skip-link:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	margin: 0;
	position: fixed;
	top: var(--wp--preset--spacing--20);
	left: var(--wp--preset--spacing--20);
	z-index: 100;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
	padding: 0.6em 1em;
	border-radius: var(--wp--custom--radius--sm);
	text-decoration: none;
}

:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
	border-radius: 2px;
}

main#main {
	display: block;
}

.wp-block-table__scrollable-wrapper,
.wp-block-embed__wrapper {
	overflow-x: auto;
}

@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;
	}
}
