/*--------------------------------------------------------------
AIF2026R1 — supplemental front-end styles.
Loaded on top of the global block styles generated from theme.json.
--------------------------------------------------------------*/

/* Fluid page gutter used by the root padding in theme.json. */
:root {
	--aif--page-pad: clamp(1rem, 3.5vw, 2.5rem);
}

/* ---------- Selection + focus ---------- */
::selection {
	background: var(--wp--preset--color--aif-red);
	color: #fff;
}

:where(.wp-site-blocks *:focus-visible) {
	outline: 2px solid var(--wp--preset--color--aif-red);
	outline-offset: 3px;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ---------- Polylang language switcher ---------- */
.wp-block-polylang-language-switcher {
	margin-left: 0.75rem;
}

.wp-block-polylang-language-switcher select {
	appearance: none;
	-webkit-appearance: none;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	background-color: var(--wp--preset--color--base);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2317181B' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.9rem center;
	color: var(--wp--preset--color--ink);
	font-family: inherit;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	line-height: 1;
	padding: 0.55rem 2.25rem 0.55rem 1.1rem;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wp-block-polylang-language-switcher select:hover,
.wp-block-polylang-language-switcher select:focus-visible {
	border-color: var(--wp--preset--color--aif-red);
	box-shadow: 0 0 0 3px rgba(196, 0, 0, 0.12);
}

.wp-block-polylang-language-switcher select option {
	color: var(--wp--preset--color--ink);
}

/* ---------- Header tweaks ---------- */
.site-header {
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.site-header .wp-block-navigation ul {
	gap: 1.5rem;
}

/* ---------- Outline buttons ---------- */
.wp-block-button.is-style-outline .wp-block-button__link {
	background-color: transparent !important;
	border: 2px solid currentColor !important;
}

/* ---------- Post card helpers ---------- */
.is-style-aif-card .wp-block-post-title {
	margin-block-start: 0;
}

/* ---------- Fluid spacing for hero ---------- */
.hero-cover {
	min-height: min(78vh, 44rem);
}

/* ---------- Skip link ---------- */
.wp-site-blocks .skip-link {
	background: var(--wp--preset--color--aif-red);
	color: #fff;
	padding: 0.5rem 1rem;
	border-radius: 0 0 0.5rem 0;
}
