/*
 * Component styles that theme.json cannot express. Colours, fonts and sizes come from theme.json presets.
 * Breakpoint 600px matches the core Navigation block's mobile overlay; 782px matches core Columns stacking.
 * Decoration is CSS only (rings, dots, frames): no images to load, nothing to replace when content arrives.
 */

:root {
	--site-radius: 4px;
	--site-topbar-h: 0px;
	--site-texture: repeating-linear-gradient(135deg, rgb(255 255 255 / 4.5%) 0 1px, transparent 1px 12px);
	--site-dots: radial-gradient(rgb(36 80 63 / 8%) 1px, transparent 1.3px);
	--site-rings: repeating-radial-gradient(circle, transparent 0 2.5rem, rgb(255 255 255 / 7%) 2.5rem calc(2.5rem + 1px));
	--site-shadow: 0 12px 28px rgb(18 55 42 / 12%);
	--site-shadow-lift: 0 18px 36px -12px rgb(18 55 42 / 28%);
	--site-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--site-icon-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h3l2 5-2.5 1.5a11 11 0 0 0 6 6L15 14l5 2v3a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2'/%3E%3C/svg%3E");
	--site-icon-email: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
	--site-icon-chat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L4 20l1-4.6A8 8 0 1 1 21 12z'/%3E%3C/svg%3E");
	--site-icon-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11a7 7 0 0 1 14 0c0 4.8-7 11-7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
	--site-icon-field: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='13' rx='2'/%3E%3Cpath d='M9 7V5a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2M3 13h18'/%3E%3C/svg%3E");
	--site-icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4 10-10'/%3E%3C/svg%3E");
	--site-icon-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
	--site-icon-globe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */

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

:where(h1, h2) {
	letter-spacing: -0.015em;
}

/* Sections butt against each other; the global block gap would leave white strips between moss bands. */
body .wp-site-blocks > *,
.site-main > * {
	margin-block: 0;
}

.wp-block-post-content > .alignfull {
	margin-block-start: 0;
}

.site-section {
	position: relative;
	isolation: isolate;
	padding-block: var(--wp--preset--spacing--60);
}

.has-surface-alt-background-color {
	background-image: var(--site-dots);
	background-size: 18px 18px;
}

.site-eyebrow {
	display: flex;
	gap: 0.65rem;
	align-items: center;
	margin-block-end: 0.25rem;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
}

.site-eyebrow::before {
	content: "";
	flex: none;
	width: 1.75rem;
	height: 2px;
	background: currentcolor;
}

.site-lead {
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--muted);
}

.site-more a {
	display: inline-flex;
	gap: 0.375rem;
	align-items: center;
	font-weight: 700;
}

.site-more a::after {
	content: "";
	width: 1.1em;
	height: 1.1em;
	background: currentcolor;
	mask: var(--site-icon-arrow) center / contain no-repeat;
	transition: translate 0.2s var(--site-ease);
}

/* ---------- Moss sections ---------- */

.is-style-textured {
	background-image: var(--site-texture);
}

:is(.has-primary-background-color, .has-primary-dark-background-color) :where(h1, h2, h3, h4) {
	color: inherit;
}

:is(.has-primary-background-color, .has-primary-dark-background-color) a:where(:not(.wp-element-button)) {
	color: var(--wp--preset--color--surface);
}

:is(.has-primary-background-color, .has-primary-dark-background-color) :where(a, button):focus-visible {
	outline-color: var(--wp--preset--color--accent-light);
}

:is(.has-primary-background-color, .has-primary-dark-background-color) .site-lead,
.site-pagehead__lead,
.site-pagehead__date {
	color: var(--wp--preset--color--on-dark-muted);
}

:is(.has-primary-background-color, .has-primary-dark-background-color) .site-eyebrow {
	color: var(--wp--preset--color--accent-light);
}

/* Concentric rings: hero, page head and contact band share one quiet motif. */
:is(.site-hero, .site-pagehead, .site-band) {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

:is(.site-hero, .site-pagehead, .site-band)::before {
	content: "";
	position: absolute;
	z-index: -1;
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--site-rings);
	pointer-events: none;
}

.site-hero::before {
	width: 48rem;
	top: -20rem;
	right: -16rem;
}

.site-pagehead::before {
	width: 34rem;
	top: -17rem;
	right: -8rem;
}

.site-band::before {
	width: 40rem;
	bottom: -24rem;
	left: -14rem;
}

/* ---------- Buttons ---------- */

.wp-block-button__link {
	transition: background-color 0.15s, color 0.15s, border-color 0.15s, translate 0.2s var(--site-ease);
}

.wp-block-button.is-style-light .wp-block-button__link {
	display: inline-flex;
	gap: 0.5rem;
	align-items: center;
	background: var(--wp--preset--color--accent-light);
	border-color: var(--wp--preset--color--accent-light);
	color: var(--wp--preset--color--primary-dark);
}

.wp-block-button.is-style-light .wp-block-button__link::after {
	content: "";
	width: 1em;
	height: 1em;
	background: currentcolor;
	mask: var(--site-icon-arrow) center / contain no-repeat;
	transition: translate 0.2s var(--site-ease);
}

.wp-block-button.is-style-light .wp-block-button__link:hover {
	background: var(--wp--preset--color--surface);
	border-color: var(--wp--preset--color--surface);
}

.wp-block-button.is-style-light .wp-block-button__link:hover::after {
	translate: 3px 0;
}

.wp-block-button.is-style-ghost .wp-block-button__link {
	background: transparent;
	border-color: rgb(255 255 255 / 70%);
	color: var(--wp--preset--color--surface);
}

.wp-block-button.is-style-ghost .wp-block-button__link:hover {
	border-color: var(--wp--preset--color--surface);
	background: rgb(255 255 255 / 12%);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--primary);
}

/* ---------- Logo ---------- */

.site-brand {
	margin: 0;
	line-height: 1;
}

/* The designer's seal from assets/logo. Appearance › Editor › Site Logo replaces the whole lockup. */
.site-brand a {
	display: inline-flex;
	gap: 0.8rem;
	align-items: center;
	text-decoration: none;
	color: var(--wp--preset--color--primary-dark);
}

.site-brand__mark {
	display: block;
	flex: none;
}

/* Set like the ring text of the seal: small capitals, wide tracking. */
.site-brand__name {
	max-width: 15rem;
	font-size: 0.6875rem;
	font-weight: 700;
	line-height: 1.45;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

/* Phones show a smaller seal. */
@media (max-width: 781px) {
	.site-brand--header .site-brand__mark {
		width: 3.25rem;
		height: auto;
	}
}

/* Below 1100 px the menu needs the room, so the seal stands alone; the name stays for screen readers. */
@media (max-width: 1099px) {
	.site-brand--header .site-brand__name {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}
}

/* Footer: the full seal above the name. */
.site-brand--footer a {
	flex-direction: column;
	align-items: flex-start;
	gap: 1rem;
}

.site-brand--footer .site-brand__name {
	max-width: 26rem;
	color: var(--wp--preset--color--accent-light);
}

/* ---------- Header ---------- */

/* Sticky as a whole, offset by the top bar height so the top bar scrolls away and the header stays. */
.site-header-part {
	position: sticky;
	top: calc(var(--wp-admin--admin-bar--height, 0px) - var(--site-topbar-h));
	z-index: 50;
}

.site-topbar {
	display: none;
	font-size: 0.8125rem;
}

.site-header {
	background: var(--wp--preset--color--surface);
	border-bottom: 1px solid var(--wp--preset--color--border);
	box-shadow: 0 10px 24px -20px rgb(18 55 42 / 55%);
	padding-block: 0.7rem;
}

.site-header__actions {
	gap: 0.75rem;
}

/* Polylang's own stylesheet makes every switcher full width, which pushes it onto its own line. */
.pll-switcher.site-lang {
	width: auto;
}

.site-lang ul {
	display: flex;
	gap: 0.125rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-lang a {
	display: inline-block;
	padding: 0.25rem 0.4rem;
	font-size: 0.8125rem;
	font-weight: 700;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--wp--preset--color--muted);
}

.site-lang .current-lang a {
	color: var(--wp--preset--color--primary);
}

.site-topbar .site-lang a,
.site-footer .site-lang a {
	color: var(--wp--preset--color--on-dark-muted);
}

.site-topbar .site-lang .current-lang a,
.site-footer .site-lang .current-lang a {
	color: var(--wp--preset--color--surface);
}

.site-nav .wp-block-navigation-item__content[aria-current="page"] {
	color: var(--wp--preset--color--primary);
	font-weight: 700;
}

.site-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--text);
}

@media (min-width: 600px) {
	.site-header-part {
		--site-topbar-h: 2.375rem;
	}

	.site-topbar {
		display: block;
		height: var(--site-topbar-h);
	}

	.site-topbar > .alignwide {
		height: 100%;
		align-items: center;
	}

	.site-lang--mobile {
		display: none;
	}

	.site-nav .wp-block-navigation__container > .wp-block-navigation-item:not(:last-child) > a:not([aria-current]) {
		background: linear-gradient(currentcolor, currentcolor) left bottom / 0 2px no-repeat;
		padding-block-end: 2px;
		transition: background-size 0.2s var(--site-ease);
	}

	.site-nav .wp-block-navigation__container > .wp-block-navigation-item:not(:last-child) > a:not([aria-current]):hover {
		background-size: 100% 2px;
	}

	/* The contact page is ordered last, so the last menu item becomes the call to action. */
	.site-nav .wp-block-navigation__container > .wp-block-navigation-item:last-child > a {
		padding: 0.5rem 1rem;
		border-radius: var(--site-radius);
		background: var(--wp--preset--color--primary);
		color: var(--wp--preset--color--surface);
		text-decoration: none;
	}

	.site-nav .wp-block-navigation__container > .wp-block-navigation-item:last-child > a:hover {
		background: var(--wp--preset--color--primary-dark);
	}
}

/* ---------- Contact channels: icon follows the link type ---------- */

.is-style-contact {
	display: grid;
	gap: 0.6rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.is-style-contact a {
	display: inline-flex;
	gap: 0.6rem;
	align-items: center;
	font-weight: 600;
	overflow-wrap: anywhere;
}

.is-style-contact a::before {
	content: "";
	flex: none;
	width: 1.15em;
	height: 1.15em;
	background: currentcolor;
	mask: var(--site-icon-chat) center / contain no-repeat;
}

.is-style-contact a[href^="tel:"]::before { mask-image: var(--site-icon-phone); }
.is-style-contact a[href^="mailto:"]::before { mask-image: var(--site-icon-email); }
.is-style-contact a[href*="maps"]::before { mask-image: var(--site-icon-pin); }

/* The block-ref wrapper of a synced pattern adds no box of its own, so contexts style the list directly. */
.site-topbar .is-style-contact {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.5rem;
}

.site-topbar .is-style-contact a {
	font-weight: 400;
	text-decoration: none;
	color: var(--wp--preset--color--on-dark-muted);
}

.site-topbar .is-style-contact a:hover {
	color: var(--wp--preset--color--surface);
}

.site-topbar .is-style-contact li:has(a[href*="zalo"], a[href*="maps"]) {
	display: none;
}

.site-band__channels .is-style-contact {
	gap: 0;
	border: 1px solid rgb(255 255 255 / 18%);
	border-radius: var(--site-radius);
	background: rgb(0 0 0 / 12%);
	backdrop-filter: blur(2px);
}

.site-band__channels .is-style-contact li {
	padding: 0.95rem 1.1rem;
	border-bottom: 1px solid rgb(255 255 255 / 14%);
	transition: background-color 0.15s;
}

.site-band__channels .is-style-contact li:hover {
	background: rgb(255 255 255 / 6%);
}

.site-band__channels .is-style-contact li:last-child {
	border-bottom: 0;
}

.site-band__channels .is-style-contact a::before {
	background: var(--wp--preset--color--accent-light);
}

.site-footer .is-style-contact a {
	font-weight: 400;
}

.site-contact-cards .is-style-contact {
	grid-template-columns: repeat(auto-fill, minmax(min(16rem, 100%), 1fr));
	gap: 1rem;
	margin-block-start: 1.5rem;
}

/* Light tile from li::before, moss glyph from a::before, both centred on the same spot. */
.site-contact-cards .is-style-contact li {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 5.25rem;
	padding: 1rem 1.25rem 1rem 4.75rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--site-radius);
	background: var(--wp--preset--color--surface);
	transition: border-color 0.2s, box-shadow 0.2s, translate 0.2s var(--site-ease);
}

.site-contact-cards .is-style-contact li:hover {
	border-color: var(--wp--preset--color--primary);
	box-shadow: var(--site-shadow-lift);
}

.site-contact-cards .is-style-contact li::before {
	content: "";
	position: absolute;
	left: 1.25rem;
	top: 50%;
	width: 2.75rem;
	height: 2.75rem;
	translate: 0 -50%;
	border-radius: 0.75rem 0.25rem;
	background: var(--wp--preset--color--tint);
}

.site-contact-cards .is-style-contact a {
	font-size: var(--wp--preset--font-size--large);
}

.site-contact-cards .is-style-contact a::before {
	position: absolute;
	left: calc(1.25rem + 0.625rem);
	top: 50%;
	width: 1.5rem;
	height: 1.5rem;
	translate: 0 -50%;
	background: var(--wp--preset--color--primary);
}

/* ---------- Hero and quick facts ---------- */

.site-hero {
	padding-block: var(--wp--preset--spacing--60) calc(var(--wp--preset--spacing--70) + 1.5rem);
}

/* Warm glow low on the left balances the rings top right. */
.site-hero::after {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 0;
	background: radial-gradient(circle at 8% 115%, rgb(232 194 122 / 16%), transparent 42%);
	pointer-events: none;
}

/* Faint photo under the moss: below the rings and glow (z-index -1), out of the layout so the hero keeps its height.
   Greyscale + luminosity takes the moss hue; low opacity keeps the text contrast of plain moss. */
.site-hero > .site-hero__photo {
	position: absolute;
	z-index: -2;
	inset: 0;
	max-width: none;
	margin: 0;
	pointer-events: none;
	/* Faded out where the text sits, so small text keeps the contrast it has on plain moss:
	   below the text on phones, behind the featured card on wide screens. */
	mask-image: linear-gradient(180deg, rgb(0 0 0 / 8%) 0%, rgb(0 0 0 / 8%) 50%, #000 85%);
}

@media (min-width: 782px) {
	.site-hero > .site-hero__photo {
		mask-image: linear-gradient(90deg, rgb(0 0 0 / 8%) 0%, rgb(0 0 0 / 8%) 40%, #000 72%);
	}
}

.site-hero__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(1);
	mix-blend-mode: luminosity;
	opacity: 0.16;
}

.site-hero h1 {
	font-size: clamp(2.25rem, 5vw, 3.75rem);
	line-height: 1.08;
}

/* Featured service in the hero: a light card on moss. */
.site-feature {
	padding: clamp(1.5rem, 3vw, 2.25rem);
	border-top: 4px solid var(--wp--preset--color--accent-light);
	border-radius: var(--site-radius);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--muted);
	box-shadow: 0 24px 48px -20px rgb(0 0 0 / 45%);
}

.site-feature > * {
	margin-block: 0;
}

.site-feature > * + * {
	margin-block-start: 1rem;
}

.site-feature :where(a, button):focus-visible {
	outline-color: var(--wp--preset--color--accent);
}

.site-feature__tag {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
}

.has-primary-background-color .site-feature__tag {
	color: var(--wp--preset--color--accent-light);
}

/* The hero card is white although it sits in a moss section. */
.site-feature p.site-feature__tag {
	color: var(--wp--preset--color--accent);
}

.site-feature .site-feature__title {
	font-size: clamp(1.75rem, 3.2vw, 2.5rem);
	font-weight: 700;
	line-height: 1.12;
	color: var(--wp--preset--color--primary-dark);
}

/* Offset frame behind the featured card; also frames an image if one replaces it. */
.site-hero .wp-block-column:last-child {
	position: relative;
}

.site-hero .wp-block-column:last-child > * {
	position: relative;
}

.site-hero .wp-block-column:last-child::before {
	content: "";
	position: absolute;
	inset: 1.1rem -1.1rem -1.1rem 1.1rem;
	border: 1.5px solid rgb(232 194 122 / 55%);
	border-radius: var(--site-radius);
}

/* Dot field behind the core values panel, offset up and left. */
.site-split .wp-block-column:first-child {
	position: relative;
}

.site-split .wp-block-column:first-child::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: -1.25rem 2.5rem 2.5rem -1.25rem;
	background-image: radial-gradient(var(--wp--preset--color--primary) 1.2px, transparent 1.5px);
	background-size: 14px 14px;
	opacity: 0.45;
}

/* Core values on moss: five large numbered words where a photo would go, until the company has one. */
.site-values {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	padding: clamp(1.75rem, 4vw, 2.75rem);
	border-radius: var(--site-radius);
	box-shadow: var(--site-shadow);
}

.site-values::before {
	content: "";
	position: absolute;
	z-index: -1;
	width: 26rem;
	aspect-ratio: 1;
	right: -13rem;
	bottom: -13rem;
	border-radius: 50%;
	background: var(--site-rings);
}

.site-values__list {
	display: grid;
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
	counter-reset: site-value;
}

.site-values__list li {
	counter-increment: site-value;
	display: flex;
	gap: 1rem;
	align-items: baseline;
	padding-block: 0.7rem;
	border-bottom: 1px solid rgb(255 255 255 / 14%);
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(1.4rem, 2.6vw, 1.9rem);
	font-weight: 600;
	line-height: 1.2;
}

.site-values__list li:last-child {
	border-bottom: 0;
}

.site-values__list li::before {
	content: counter(site-value, decimal-leading-zero);
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	color: var(--wp--preset--color--accent-light);
}

.site-facts-section {
	position: relative;
	z-index: 1;
	margin-top: -3.5rem;
}

/* Fixed 1, 2 or 4 columns instead of core's auto-fill, so four facts never leave one alone on a row. */
.wp-block-group.site-facts {
	grid-template-columns: minmax(0, 1fr);
	gap: 0;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--site-radius);
	background: var(--wp--preset--color--surface);
	box-shadow: var(--site-shadow);
}

/* The icon is a moss glyph on a light tile: tile from ::before, glyph from ::after. */
.site-fact {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	column-gap: 0.85rem;
	align-items: center;
	padding: 1.2rem 1.35rem;
	box-shadow: 1px 0 0 var(--wp--preset--color--border), 0 1px 0 var(--wp--preset--color--border);
}

.site-fact::before {
	content: "";
	grid-row: span 2;
	width: 2.6rem;
	height: 2.6rem;
	border-radius: 0.75rem 0.25rem;
	background: var(--wp--preset--color--tint);
	box-shadow: inset 0 0 0 1px rgb(36 80 63 / 10%);
}

.site-fact::after {
	content: "";
	position: absolute;
	left: calc(1.35rem + 0.65rem);
	top: 50%;
	width: 1.3rem;
	height: 1.3rem;
	translate: 0 -50%;
	background: var(--wp--preset--color--primary);
	mask: var(--site-icon-field) center / contain no-repeat;
}

@media (min-width: 560px) {
	.wp-block-group.site-facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1000px) {
	.wp-block-group.site-facts {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	/* Three columns: the featured card takes two, so 1 featured + 4 services fill two full rows. */
	.wp-block-group.site-cards:not(.site-cards--wide) {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.wp-block-group.site-cards:not(.site-cards--wide) .site-card--featured {
		grid-column: span 2;
	}
}

.site-fact--lang::after { mask-image: var(--site-icon-globe); }
.site-fact--area::after { mask-image: var(--site-icon-pin); }
.site-fact--phone::after { mask-image: var(--site-icon-phone); }

.site-fact > p {
	margin: 0;
}

.site-fact__label {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.site-fact__value {
	font-weight: 600;
}

/* ---------- Lists ---------- */

.is-style-checks {
	display: grid;
	gap: 0.5rem;
	padding: 0;
	list-style: none;
}

.is-style-checks li {
	display: flex;
	gap: 0.6rem;
}

.is-style-checks li::before {
	content: "";
	flex: none;
	width: 1.1em;
	height: 1.1em;
	margin-top: 0.25em;
	background: var(--wp--preset--color--primary);
	mask: var(--site-icon-check) center / contain no-repeat;
}

.has-primary-background-color .is-style-checks li::before {
	background: var(--wp--preset--color--accent-light);
}

.is-style-steps {
	display: grid;
	gap: 1.5rem;
	margin-block-start: 1.75rem;
	padding: 0;
	list-style: none;
	counter-reset: site-step;
}

/* The number sits beside the text on phones and above it on wider screens; a dashed line joins the numbers. */
.is-style-steps li {
	counter-increment: site-step;
	position: relative;
	min-height: 2.75rem;
	padding-inline-start: 3.6rem;
	color: var(--wp--preset--color--muted);
}

.is-style-steps li::before {
	content: counter(site-step, decimal-leading-zero);
	position: absolute;
	z-index: 1;
	inset-inline-start: 0;
	top: 0;
	display: grid;
	place-items: center;
	box-sizing: border-box;
	width: 2.75rem;
	height: 2.75rem;
	border: 2px solid var(--wp--preset--color--accent);
	border-radius: 50%;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--accent);
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
}

.is-style-steps li:not(:last-child)::after {
	content: "";
	position: absolute;
	inset-inline-start: calc(1.375rem - 1px);
	top: 2.75rem;
	bottom: -1.5rem;
	border-inline-start: 2px dashed rgb(138 90 18 / 35%);
}

.is-style-steps strong {
	display: block;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
	color: var(--wp--preset--color--primary);
}

.is-style-steps br {
	display: none;
}

@media (min-width: 782px) {
	.is-style-steps {
		grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
	}

	.is-style-steps li {
		padding-inline-start: 0;
		padding-block-start: 3.75rem;
	}

	.is-style-steps li:not(:last-child)::after {
		inset-inline: 3.25rem -1rem;
		top: calc(1.375rem - 1px);
		bottom: auto;
		border-inline-start: 0;
		border-top: 2px dashed rgb(138 90 18 / 35%);
	}

	/* Five or more steps wrap into rows of three; the connector stops at the end of each row. */
	.is-style-steps:has(> li:nth-child(5)) {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		row-gap: 2.5rem;
	}

	.is-style-steps:has(> li:nth-child(5)) li:nth-child(3n)::after {
		display: none;
	}
}

/* ---------- Cards and panels ---------- */

.site-section-head {
	margin-block-end: var(--wp--preset--spacing--50);
}

/* Fixed columns instead of core's auto-fill, so the featured card always spans a whole number of columns. */
.wp-block-group.site-cards {
	grid-template-columns: minmax(0, 1fr);
	gap: 1.1rem;
}

.site-cards .site-card--featured {
	grid-column: 1 / -1;
}

@media (min-width: 600px) {
	.wp-block-group.site-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.is-style-card {
	position: relative;
	overflow: hidden;
	padding: 1.5rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--site-radius);
	background: var(--wp--preset--color--surface);
	transition: border-color 0.2s, box-shadow 0.25s, translate 0.25s var(--site-ease);
}

/* Seal motif on every card until real service icons exist: double ring with the logo's gold diamond. */
.site-cards .is-style-card::before {
	content: "";
	display: block;
	width: 2.75rem;
	height: 2.75rem;
	margin-block-end: 1rem;
	border-radius: 50%;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10.5' fill='none' stroke='%2312372A' stroke-width='1.5'/%3E%3Ccircle cx='12' cy='12' r='8' fill='none' stroke='%2312372A' stroke-width='.6'/%3E%3Cpath d='m12 7.5 4.5 4.5-4.5 4.5-4.5-4.5z' fill='%23A97F34'/%3E%3C/svg%3E") center / 100% no-repeat,
		var(--wp--preset--color--tint);
}

.is-style-card::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 3px;
	background: linear-gradient(90deg, var(--wp--preset--color--primary), var(--wp--preset--color--accent-light));
	scale: 0 1;
	transform-origin: left;
	transition: scale 0.35s var(--site-ease);
}

.is-style-card:hover {
	border-color: rgb(36 80 63 / 35%);
	box-shadow: var(--site-shadow-lift);
}

.is-style-card:hover::after,
.is-style-card:focus-within::after {
	scale: 1 1;
}

.is-style-card > * + * {
	margin-block-start: 0.6rem;
}

.is-style-card p,
.is-style-card li {
	color: var(--wp--preset--color--muted);
}

.site-cards--wide .is-style-card h2 {
	font-size: 1.375rem;
}

/* Featured service among the cards: moss, larger, no seal tile; the tag marks it instead. */
.site-cards .site-card--featured {
	padding: clamp(1.5rem, 3vw, 2.25rem);
	border-color: transparent;
}

.site-cards .site-card--featured::before {
	display: none;
}

.site-cards .site-card--featured :is(h2, h3) {
	font-size: clamp(1.6rem, 3vw, 2.25rem);
	line-height: 1.15;
}

.site-cards .site-card--featured :where(p, li) {
	color: var(--wp--preset--color--on-dark-muted);
}

.site-card--featured .is-style-checks li::before {
	background: var(--wp--preset--color--accent-light);
}

/* Service photo across the top of a card, edge to edge; it replaces the seal tile. Wide and short on phones,
   where five photos would otherwise add a lot of scrolling. */
.site-cards .is-style-card {
	--site-card-pad: 1.5rem;
}

.site-cards .site-card--featured {
	--site-card-pad: clamp(1.5rem, 3vw, 2.25rem);
}

.site-cards .is-style-card:has(> .site-card__photo)::before {
	display: none;
}

.is-style-card > .site-card__photo {
	margin: calc(-1 * var(--site-card-pad)) calc(-1 * var(--site-card-pad)) 1.1rem;
	overflow: hidden;
}

.site-card__photo img {
	display: block;
	width: 100%;
	aspect-ratio: 2 / 1;
	object-fit: cover;
	transition: scale 0.5s var(--site-ease);
}

.site-card--featured .site-card__photo img {
	aspect-ratio: 5 / 2;
}

@media (min-width: 600px) {
	.site-card__photo img {
		aspect-ratio: 16 / 9;
	}
}

/* The featured card spans two columns on desktop: text on the left, the photo filling the right side. */
@media (min-width: 1000px) {
	.site-cards .site-card--featured:has(> .site-card__photo) {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
		/* Tag, title, summary, link: the last row takes any height the neighbouring card adds, so the photo fills the card. */
		grid-template-rows: auto auto auto 1fr;
		column-gap: var(--site-card-pad);
	}

	.site-card--featured > :not(.site-card__photo) {
		grid-column: 1;
	}

	/* The text sets the card's height; the photo only fills it, so it is taken out of flow inside its cell. */
	.site-card--featured > .site-card__photo {
		position: relative;
		grid-column: 2;
		grid-row: 1 / span 4;
		margin: calc(-1 * var(--site-card-pad)) calc(-1 * var(--site-card-pad)) calc(-1 * var(--site-card-pad)) 0;
	}

	.site-card--featured > .site-card__photo + * {
		margin-block-start: 0;
	}

	.site-card--featured .site-card__photo img {
		position: absolute;
		inset: 0;
		height: 100%;
		aspect-ratio: auto;
	}
}

/* Vision and mission side by side on the About page. */
.site-pair {
	margin-block: var(--wp--preset--spacing--50);
}

.site-pair .is-style-panel {
	height: 100%;
	border-top: 3px solid var(--wp--preset--color--primary);
}

.is-style-panel {
	position: relative;
	padding: 1.35rem;
	border-radius: var(--site-radius);
	background: var(--wp--preset--color--tint);
}

/* Panel titles may be h2 or h3 depending on the page outline; they look the same. */
.is-style-panel :is(h2, h3) {
	font-size: var(--wp--preset--font-size--large);
}

.site-side {
	display: grid;
	gap: 1rem;
	align-content: start;
}

.site-side-card {
	position: relative;
	overflow: hidden;
	padding: 1.35rem;
	border-radius: var(--site-radius);
}

.site-kv {
	display: grid;
	margin: 0;
	padding-block: 0.6rem;
	border-bottom: 1px solid var(--wp--preset--color--border);
	font-weight: 600;
}

.site-kv:last-child {
	border-bottom: 0;
}

.site-kv__label {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

/* ---------- Languages, fields, commitments ---------- */

/* Language tiles, three by three: the ISO code large, the name under it. */
.site-langs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-langs a {
	display: grid;
	gap: 0.3rem;
	align-content: center;
	min-height: 6.5rem;
	padding: 1rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--site-radius);
	background: var(--wp--preset--color--surface);
	font-size: 0.875rem;
	line-height: 1.3;
	color: var(--wp--preset--color--muted);
	text-decoration: none;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.site-langs a:hover {
	border-color: var(--wp--preset--color--primary);
	box-shadow: var(--site-shadow-lift);
}

.site-langs strong {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.75rem;
	line-height: 1;
	color: var(--wp--preset--color--primary);
}

/* The last tile, other languages on request, is moss. */
.site-langs li:last-child a {
	border-color: transparent;
	background: var(--wp--preset--color--primary) var(--site-texture);
	color: var(--wp--preset--color--on-dark-muted);
}

.site-langs li:last-child strong {
	color: var(--wp--preset--color--accent-light);
}

/* Field cards with document chips: 1, 2 or 4 columns so eight fields never leave one alone. */
.site-fields {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1rem;
}

@media (min-width: 600px) {
	.site-fields {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1000px) {
	.site-fields {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.site-fields > * {
	margin: 0;
}

.site-field {
	padding: 1.25rem;
	border: 1px solid var(--wp--preset--color--border);
	border-top: 3px solid var(--wp--preset--color--primary);
	border-radius: var(--site-radius);
	background: var(--wp--preset--color--surface);
}

.site-field h3 {
	margin: 0 0 0.85rem;
	font-size: var(--wp--preset--font-size--large);
}

/* Chips under a heading in page bodies need a gap; the list block otherwise has none. */
:is(h2, h3) + .site-chips {
	margin-block-start: 1rem;
}

.site-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-chips li {
	padding: 0.3rem 0.65rem;
	border-radius: 999px;
	background: var(--wp--preset--color--tint);
	font-size: 0.8125rem;
	color: var(--wp--preset--color--primary-dark);
}

/* Commitments: numbered cards, three over two on wide screens (six-column grid, spans of 2 and 3). */
.site-pledges {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1rem;
	margin: 1.75rem 0 0;
	padding: 0;
	list-style: none;
	counter-reset: site-pledge;
}

@media (min-width: 600px) {
	.site-pledges {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.site-pledges li:last-child {
		grid-column: 1 / -1;
	}
}

@media (min-width: 1000px) {
	.site-pledges {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}

	.site-pledges li {
		grid-column: span 2;
	}

	.site-pledges li:nth-child(n + 4),
	.site-pledges li:last-child {
		grid-column: span 3;
	}
}

.site-pledges li {
	counter-increment: site-pledge;
	position: relative;
	padding: 1.5rem 1.5rem 1.5rem 4.75rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--site-radius);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--muted);
}

.site-pledges li::before {
	content: counter(site-pledge, decimal-leading-zero);
	position: absolute;
	left: 1.25rem;
	top: 1.35rem;
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	border: 1.5px solid var(--wp--preset--color--primary);
	border-radius: 50%;
	box-shadow: inset 0 0 0 3px var(--wp--preset--color--surface), inset 0 0 0 4px rgb(18 55 42 / 35%);
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	color: var(--wp--preset--color--accent);
}

.site-pledges strong {
	display: block;
	margin-block-end: 0.25rem;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
	color: var(--wp--preset--color--primary);
}

.site-pledges br {
	display: none;
}

/* Plans on the About page: two columns of gold diamonds, the seal's ornament. */
.site-plans {
	margin-block-start: var(--wp--preset--spacing--50);
}

.site-plans__list {
	display: grid;
	gap: 0.6rem 1.5rem;
	margin: 0.75rem 0 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 600px) {
	.site-plans__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.site-plans__list li {
	display: flex;
	gap: 0.6rem;
}

.site-plans__list li::before {
	content: "";
	flex: none;
	width: 0.55rem;
	height: 0.55rem;
	margin-top: 0.55em;
	rotate: 45deg;
	background: var(--wp--preset--color--accent);
}

/* ---------- Dropdown menu ---------- */

.site-nav .wp-block-navigation__submenu-container {
	min-width: 16rem;
	padding: 0.4rem;
	border: 1px solid var(--wp--preset--color--border) !important;
	border-top: 3px solid var(--wp--preset--color--primary) !important;
	border-radius: var(--site-radius);
	box-shadow: var(--site-shadow);
}

.site-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 0.55rem 0.75rem;
	border-radius: var(--site-radius);
}

.site-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--tint);
}

/* The overlay menu on phones lists submenus open; indent them under their parent. */
.site-nav .is-menu-open .wp-block-navigation__submenu-container {
	min-width: 0;
	padding: 0 0 0 1rem !important;
	border: 0 !important;
	box-shadow: none;
}

/* ---------- FAQ, related links ---------- */

.site-faq__item {
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.site-faq__item:first-child {
	border-top: 1px solid var(--wp--preset--color--border);
}

.site-faq__item summary {
	position: relative;
	padding: 1.1rem 2.5rem 1.1rem 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
	color: var(--wp--preset--color--primary);
	list-style: none;
	cursor: pointer;
}

.site-faq__item summary::-webkit-details-marker {
	display: none;
}

/* Plus that turns into a minus: two bars, the vertical one folds away when open. */
.site-faq__item summary::before,
.site-faq__item summary::after {
	content: "";
	position: absolute;
	right: 0.5rem;
	top: 50%;
	width: 0.9rem;
	height: 2px;
	background: var(--wp--preset--color--accent);
	transition: rotate 0.2s var(--site-ease);
}

.site-faq__item summary::after {
	rotate: 90deg;
}

.site-faq__item[open] summary::after {
	rotate: 0deg;
}

.site-faq__item p {
	margin: 0 0 1.1rem;
	color: var(--wp--preset--color--muted);
}

.site-related {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-block-start: 1.25rem;
	padding: 0;
	list-style: none;
}

.site-related a {
	display: inline-flex;
	gap: 0.4rem;
	align-items: center;
	padding: 0.6rem 1rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	background: var(--wp--preset--color--surface);
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.site-related a::after {
	content: "";
	width: 1em;
	height: 1em;
	background: currentcolor;
	mask: var(--site-icon-arrow) center / contain no-repeat;
}

.site-related a:hover {
	border-color: var(--wp--preset--color--primary);
	box-shadow: var(--site-shadow-lift);
}

/* ---------- Floating call and Zalo buttons ---------- */

.site-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.site-float {
	position: fixed;
	z-index: 40;
	right: max(1rem, env(safe-area-inset-right));
	bottom: max(1rem, env(safe-area-inset-bottom));
	display: grid;
	gap: 0.7rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-float a {
	display: grid;
	place-items: center;
	width: 3.25rem;
	height: 3.25rem;
	border: 2px solid var(--wp--preset--color--surface);
	border-radius: 50%;
	box-shadow: 0 10px 22px -8px rgb(0 0 0 / 45%);
	color: var(--wp--preset--color--surface);
	text-decoration: none;
	transition: translate 0.2s var(--site-ease);
}

.site-float a:hover {
	translate: 0 -2px;
}

.site-float a:focus-visible {
	outline: 3px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
}

/* Zalo's own blue, so the button is recognised at a glance. */
.site-float__zalo {
	background: #0068ff;
	font-size: 0.8125rem;
	font-weight: 700;
}

.site-float__call {
	position: relative;
	background: var(--wp--preset--color--primary);
}

.site-float__call::before {
	content: "";
	width: 1.45rem;
	height: 1.45rem;
	background: currentcolor;
	mask: var(--site-icon-phone) center / contain no-repeat;
}

@media (prefers-reduced-motion: no-preference) {
	/* A slow ring that draws the eye to the call button without moving it. */
	.site-float__call::after {
		content: "";
		position: absolute;
		inset: 0;
		border-radius: 50%;
		box-shadow: 0 0 0 0 rgb(36 80 63 / 45%);
		animation: site-ping 2.4s ease-out infinite;
	}

	@keyframes site-ping {
		to { box-shadow: 0 0 0 0.9rem rgb(36 80 63 / 0%); }
	}
}

/* ---------- Page head, footer, 404 ---------- */

.site-pagehead {
	padding-block: 2.25rem 3rem;
}

.site-pagehead h1 {
	font-size: clamp(2.125rem, 4.5vw, 3.25rem);
}

.site-crumbs {
	margin-block-end: 0.75rem;
	font-size: 0.8125rem;
	letter-spacing: 0.02em;
	color: var(--wp--preset--color--on-dark-muted);
}

.site-crumbs a:hover {
	color: var(--wp--preset--color--surface);
}

.site-crumbs span[aria-hidden] {
	margin-inline: 0.35rem;
	color: var(--wp--preset--color--accent-light);
}

.site-pagehead__lead {
	max-width: 64ch;
	font-size: var(--wp--preset--font-size--medium);
}

.site-pagehead__date {
	font-size: 0.875rem;
	letter-spacing: 0.02em;
}

/* With a featured image: text on the left, photo on the right in a gold offset frame like the hero card. */
.site-pagehead__photo {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	margin-block-start: 1.75rem;
	border-radius: var(--site-radius);
	box-shadow: 0 1.1rem 0 -0.35rem rgb(232 194 122 / 45%), 0 24px 48px -28px rgb(0 0 0 / 60%);
}

@media (min-width: 900px) {
	.site-pagehead:has(.site-pagehead__photo) {
		padding-block: 3rem 3.75rem;
	}

	.site-pagehead__inner:has(.site-pagehead__photo) {
		display: grid;
		grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
		gap: clamp(2rem, 5vw, 4rem);
		align-items: center;
	}

	.site-pagehead__photo {
		aspect-ratio: 3 / 2;
		margin-block-start: 0;
	}
}

/* ---------- Articles ---------- */

.site-posts__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 700px) {
	.site-posts__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1000px) {
	.site-posts__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.site-posts__grid > li {
	margin: 0;
}

/* The title link covers the whole card, so photo and excerpt are clickable too. */
.site-post-card {
	position: relative;
	height: 100%;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--site-radius);
	background: var(--wp--preset--color--surface);
	transition: border-color 0.2s, box-shadow 0.2s, translate 0.2s var(--site-ease);
}

.site-post-card:hover {
	border-color: var(--wp--preset--color--primary);
	box-shadow: var(--site-shadow-lift);
}

.site-post-card .wp-block-post-featured-image {
	margin: 0;
}

.site-post-card__body {
	padding: 1.1rem 1.25rem 1.35rem;
}

.site-post-card__body > * {
	margin-block: 0;
}

.site-post-card .wp-block-post-date {
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--muted);
}

.site-post-card .wp-block-post-title {
	margin-block-start: 0.4rem;
	font-size: var(--wp--preset--font-size--large);
}

.site-post-card .wp-block-post-title a {
	color: var(--wp--preset--color--primary);
}

.site-post-card .wp-block-post-title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.site-post-card .wp-block-post-excerpt {
	margin-block-start: 0.6rem;
	color: var(--wp--preset--color--muted);
}

.site-post-card .wp-block-post-excerpt__excerpt {
	margin: 0;
}

.site-posts__pages {
	margin-block-start: 2rem;
	gap: 0.75rem;
	font-weight: 600;
}

.site-posts__pages .current {
	color: var(--wp--preset--color--primary);
}

/* Article body: reading width from contentSize, a little more air between blocks. */
.site-article .wp-block-post-content > * + * {
	margin-block-start: 1.15em;
}

.site-article .wp-block-post-content > h2 {
	margin-block-start: 2em;
}

.site-article .wp-block-post-content ul {
	padding-inline-start: 1.25em;
}

.site-article .wp-block-post-content li + li {
	margin-block-start: 0.4em;
}

/* Without underlines, links inside running text are told apart by weight as well as colour. */
:is(.site-article, .site-section) p > a:not([class]) {
	font-weight: 600;
}

/* Field card titles link to the field's page. */
.site-field h3 a {
	display: inline-flex;
	gap: 0.4rem;
	align-items: center;
	color: var(--wp--preset--color--primary);
}

.site-field h3 a::after {
	content: "";
	flex: none;
	width: 0.85em;
	height: 0.85em;
	background: currentcolor;
	mask: var(--site-icon-arrow) center / contain no-repeat;
	transition: translate 0.2s var(--site-ease);
}

.site-field h3 a:hover::after {
	translate: 3px 0;
}

.site-footer {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	padding-block: 3rem 1.25rem;
	font-size: 0.9375rem;
}

.site-footer .wp-block-site-tagline {
	margin-block-start: 1rem;
	max-width: 32ch;
}

.site-footer__heading {
	margin-block-end: 0.75rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.8125rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-light);
}

.site-footer__pages {
	display: grid;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Keep the language switcher clear of the floating buttons in the corner. */
.site-footer__bottom {
	padding-inline-end: 4.5rem;
}

@media (max-width: 781px) {
	.site-footer {
		padding-block-end: 9rem;
	}
}

.site-footer__bottom {
	margin-block-start: 2rem;
	padding-block-start: 1rem;
	border-top: 1px solid rgb(255 255 255 / 14%);
	font-size: 0.8125rem;
}

.site-404__code {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(4.5rem, 12vw, 7.5rem);
	font-weight: 700;
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 2px var(--wp--preset--color--accent);
}

.site-quicklinks {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(14rem, 100%), 1fr));
	gap: 0.75rem;
	margin-block-start: 1.5rem;
	padding: 0;
	list-style: none;
}

.site-quicklinks a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 1.1rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--site-radius);
	font-weight: 700;
	text-decoration: none;
	color: var(--wp--preset--color--primary);
	transition: border-color 0.2s, box-shadow 0.2s;
}

.site-quicklinks a::after {
	content: "";
	width: 1.1em;
	height: 1.1em;
	background: currentcolor;
	mask: var(--site-icon-arrow) center / contain no-repeat;
}

.site-quicklinks a:hover {
	border-color: var(--wp--preset--color--primary);
	box-shadow: var(--site-shadow-lift);
}

/* ---------- Motion: only for people who have not asked for less ---------- */

@media (prefers-reduced-motion: no-preference) {
	.site-hero .wp-block-column > *,
	.site-pagehead .alignwide > * {
		animation: site-rise 0.7s var(--site-ease) both;
	}

	.site-hero .wp-block-column > :nth-child(2),
	.site-pagehead .alignwide > :nth-child(2) { animation-delay: 0.06s; }

	.site-hero .wp-block-column > :nth-child(3),
	.site-pagehead .alignwide > :nth-child(3) { animation-delay: 0.12s; }

	.site-hero .wp-block-column > :nth-child(4) { animation-delay: 0.18s; }
	.site-hero .wp-block-column > :nth-child(5) { animation-delay: 0.24s; }

	.is-style-card:hover,
	.site-contact-cards .is-style-contact li:hover {
		translate: 0 -4px;
	}

	.is-style-card:is(:hover, :focus-within) .site-card__photo img {
		scale: 1.04;
	}

	.site-more a:hover::after {
		translate: 3px 0;
	}

	.site-nav a {
		transition: background-color 0.15s, color 0.15s, background-size 0.2s var(--site-ease);
	}
}

@keyframes site-rise {
	from {
		opacity: 0;
		translate: 0 14px;
	}
}
