:where(html) {
	scroll-behavior: smooth;
}

:where(body) {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

:where(img) {
	height: auto;
	max-width: 100%;
}

:where(a) {
	transition: color 0.2s ease;
}

.wp-element-button {
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.wp-element-button:active {
	transform: scale(0.98);
}

:where(.wp-block-navigation a):hover {
	color: var(--wp--preset--color--accent);
}

.wp-block-separator {
	opacity: 1;
}

:where(::selection) {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--surface);
}

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

:where(table) {
	width: 100%;
	border-collapse: collapse;
}

:where(th) {
	text-align: left;
	font-weight: 600;
}

:where(th, td) {
	padding: 0.75rem 1rem;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

:where(thead th) {
	border-bottom-width: 2px;
}

:where(input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select) {
	width: 100%;
	padding: 0.65rem 0.85rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 6px;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--primary);
	font-family: inherit;
	font-size: inherit;
	line-height: 1.5;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

:where(input:focus, textarea:focus, select:focus) {
	border-color: var(--wp--preset--color--accent);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
	outline: none;
}

:where(textarea) {
	min-height: 120px;
	resize: vertical;
}

:where(label) {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 500;
	font-size: 0.875rem;
}

.is-style-card {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 8px;
	padding: var(--wp--preset--spacing--40);
}

.is-style-card-hover {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 8px;
	padding: var(--wp--preset--spacing--40);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.is-style-card-hover:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.is-style-rounded :where(img) {
	border-radius: 9999px;
}

.is-style-shadow :where(img) {
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.is-style-checkmarks {
	list-style: none;
	padding-left: 0;
}

.is-style-checkmarks li {
	padding-left: 1.75em;
	position: relative;
}

.is-style-checkmarks li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	color: var(--wp--preset--color--success);
	font-weight: 700;
}

.is-style-wide {
	max-width: 100%;
}

.wp-block-post-comments-form :where(input[type="text"],
input[type="email"],
input[type="url"],
textarea) {
	width: 100%;
}

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

.screen-reader-text:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	margin: 0;
	overflow: visible;
	position: static;
}

@media (max-width: 781px) {
	.wp-block-columns {
		gap: var(--wp--preset--spacing--40) !important;
	}
}

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

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

@media print {
	:where(body) {
		background: #fff;
		color: #000;
	}

	:where(a) {
		color: #000;
		text-decoration: underline;
	}

	:where(header, footer, nav, .wp-block-navigation) {
		display: none;
	}

	:where(img) {
		max-width: 100%;
		page-break-inside: avoid;
	}

	:where(h1, h2, h3, h4, h5, h6) {
		page-break-after: avoid;
	}
}
