/*
 * Prairie Light base styles.
 * Behavior that is clearer in CSS than theme.json.
 */

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

html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

body {
	margin: 0;
	min-height: 100vh;
	text-rendering: optimizeLegibility;
}

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

iframe {
	max-width: 100%;
}

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

pre,
code,
kbd,
samp {
	overflow-wrap: anywhere;
	word-break: break-word;
}

pre {
	overflow-x: auto;
}

a,
button,
input,
select,
textarea,
summary {
	overflow-wrap: anywhere;
}

input,
button,
textarea,
select {
	font: inherit;
	letter-spacing: inherit;
	color: inherit;
}

textarea {
	min-height: 8rem;
	resize: vertical;
}

:where(a, button, input, select, textarea, summary, [tabindex]:not([tabindex="-1"])):focus-visible {
	outline: 2px solid var(--wp--preset--color--accent, #1a4d7c);
	outline-offset: 3px;
}

.screen-reader-text,
.skip-link.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;
}

.skip-link.screen-reader-text:focus {
	background-color: var(--wp--preset--color--base, #fff);
	clip: auto !important;
	clip-path: none;
	color: var(--wp--preset--color--contrast, #1a1a1a);
	display: block;
	font-size: 1rem;
	font-weight: 600;
	height: auto;
	left: var(--wp--preset--spacing--40, 1rem);
	line-height: normal;
	padding: 0.75rem 1rem;
	text-decoration: none;
	top: var(--wp--preset--spacing--40, 1rem);
	width: auto;
	z-index: 100000;
}

/* Classic TinyMCE / semantic HTML readability inside post content. */
.entry-content > *:first-child,
.wp-block-post-content > *:first-child {
	margin-block-start: 0;
}

.entry-content ul,
.entry-content ol,
.wp-block-post-content ul,
.wp-block-post-content ol {
	padding-inline-start: 1.5rem;
}

.entry-content img.alignleft,
.wp-block-post-content img.alignleft,
.entry-content .alignleft,
.wp-block-post-content .alignleft {
	float: left;
	margin: 0 1.25rem 1rem 0;
}

.entry-content img.alignright,
.wp-block-post-content img.alignright,
.entry-content .alignright,
.wp-block-post-content .alignright {
	float: right;
	margin: 0 0 1rem 1.25rem;
}

.entry-content img.aligncenter,
.wp-block-post-content img.aligncenter,
.entry-content .aligncenter,
.wp-block-post-content .aligncenter {
	display: block;
	margin-inline: auto;
}

.entry-content .wp-caption,
.wp-block-post-content .wp-caption {
	max-width: 100%;
}

.entry-content table,
.wp-block-post-content table {
	width: 100%;
}

.entry-content th,
.entry-content td,
.wp-block-post-content th,
.wp-block-post-content td {
	border: 1px solid var(--wp--preset--color--muted, #5c5c5c);
	padding: 0.5rem 0.75rem;
}

.entry-content::after,
.wp-block-post-content::after {
	clear: both;
	content: "";
	display: table;
}
