/*
Theme Name: Finest Spotlight
Theme URI: https://thefinestimpact.com
Author: The Finest Impact
Description: Spotlight-stijl voor The Finest Impact (donkere hero, gesplitste foto/tekst-secties, ijsblauwe knoppen, sticky header, paginaovergangen). Custom block theme voor The Finest Impact: AI-marketingplatform voor onafhankelijke opticiens. Gebouwd rond de merkgids: zwart/linnen/klei (70/25/5), Jost voor koppen, Hanken Grotesk voor lopende tekst.
Version: 2.3.1
Requires at least: 6.8
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: finest-spotlight
Tags: block-theme, full-site-editing, one-column, custom-colors, editor-style, translation-ready
*/

/* Design tokens live in theme.json. This file only holds small, global rules
   that theme.json cannot express (see each rule for why). */

html {
	scroll-behavior: smooth;
	/* WCAG 2.2 SC 2.4.11 Focus Not Obscured: the header (parts/header.html)
	   is position:sticky and always sits on top of the content below it.
	   Without this, a keyboard-focused element or an anchor-link target
	   near the top of a section can land directly underneath that opaque
	   header. 96px is a deliberate overestimate of the real header height
	   (16px+16px padding plus a ~120px-wide logo) — a little extra
	   clearance here is free, too little isn't. */
	scroll-padding-top: 96px;
}

body {
	/* .finest-article's full-bleed images (below) intentionally break out
	   to 100vw via margin: calc(50% - 50vw). 100vw includes the vertical
	   scrollbar's own width, so on any desktop with a visible scrollbar
	   that calc is a few pixels wider than the viewport minus scrollbar --
	   enough to introduce a sliver of horizontal page scroll. Clipping it
	   here is cheaper and more reliable than scrollbar-width arithmetic.
	   `hidden` is a fallback only: unlike `hidden`/`auto`, `clip` does not
	   turn body into a scroll container, so it can't affect the sticky
	   header (parts/header.html) the way overflow-x:hidden on body
	   sometimes does in older engines. */
	overflow-x: hidden;
	overflow-x: clip;
}

/* Sticky header. WordPress wraps the header template part in its own
   <header class="wp-block-template-part"> that is exactly as tall as the
   header, and a sticky element can only travel inside its parent's box — so
   `position: sticky` on the header group INSIDE it (via the block's position
   setting or an inline style, both of which this theme used to carry) can
   never stick: it just scrolls away with the page. The wrapper, a direct
   child of the full-height .wp-site-blocks, is the element that has to stick.
   The offset variable is core's own: it keeps the header below the admin bar
   for logged-in users and is 0 for everyone else. 50 keeps it above the
   pinned stories rail and the scroll-progress bar. */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: var(--wp-admin--admin-bar--position-offset, 0px);
	z-index: 50;
}

/* WCAG 2.2 SC 2.4.1 Bypass Blocks: parts/header.html's sticky header
   repeats on every template, so a keyboard/screen-reader user otherwise
   has to tab through the logo, full nav, and the login button before
   reaching any actual page content. Visually hidden until focused;
   #wp--skip-link--target is set on every template's <main>. */
.finest-skip-link {
	position: absolute;
	top: -100px;
	left: 16px;
	z-index: 100;
	background: var(--wp--preset--color--zwart);
	color: var(--wp--preset--color--linnen);
	padding: 12px 20px;
	font-family: var(--wp--preset--font-family--jost);
	font-size: 14px;
	text-decoration: none;
	border-radius: 2px;
	transition: top 0.2s ease;
}
.finest-skip-link:focus-visible {
	top: 16px;
}

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

/* One background per section (brand rule): never let a block's own children
   introduce a second background inside a dark section without deliberate
   contrast handling. */
.is-style-fi-dark-section {
	background-color: var(--wp--preset--color--zwart);
	color: var(--wp--preset--color--linnen);
}
.is-style-fi-dark-section a {
	color: var(--wp--preset--color--linnen);
}

.fi-eyebrow {
	font-family: var(--wp--preset--font-family--jost);
	font-size: 12px;
	letter-spacing: 0.28em;
	text-transform: uppercase;
}

.fi-hairline {
	width: 64px;
	height: 1px;
	background: var(--wp--preset--color--klei);
	border: none;
	margin: 24px 0;
}

/* Buttons: brand guide says weight never heavier than 500, generous tracking */
.wp-block-button__link {
	font-family: var(--wp--preset--font-family--jost);
	font-weight: 400;
	letter-spacing: 0.04em;
	border-radius: 2px;
	padding: 16px 32px;
}

.wp-block-button.is-style-fi-outline .wp-block-button__link {
	background: transparent;
	border: 1px solid currentColor;
	color: inherit;
}

/* Team / card grid photo crop consistency */
.fi-team-photo img {
	aspect-ratio: 4/5;
	object-fit: cover;
	width: 100%;
}

/* Smooth, deliberate hover on every button (verostudio.com's own easing
   curve for this exact kind of micro-interaction — easeOutQuart). */
.wp-block-button__link {
	transition: background-color 0.3s cubic-bezier(0.165, 0.84, 0.44, 1),
		color 0.3s cubic-bezier(0.165, 0.84, 0.44, 1),
		border-color 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* --- motion layer (assets/js/motion.js) ---
   `js-motion` is added by an inline, render-blocking snippet in <head>
   (functions.php, finest_print_motion_class) before first paint, so these
   "about to reveal" states never flash visible first. `motion-fallback` is
   added either by that same snippet (prefers-reduced-motion) or by
   motion.js itself the moment anything fails to load or init — and always
   wins via !important, so content can never get stuck hidden. */
html.js-motion:not(.reduced-motion):not(.motion-fallback) .fi-reveal-lines,
html.js-motion:not(.reduced-motion):not(.motion-fallback) .is-style-fi-reveal-lines {
	opacity: 0;
}

html.js-motion:not(.reduced-motion):not(.motion-fallback) .fi-reveal,
html.js-motion:not(.reduced-motion):not(.motion-fallback) .is-style-fi-reveal {
	clip-path: inset(16% 16% 16% 16% round 2px);
	transform: scale(1.06);
}

html.motion-fallback .fi-reveal-lines,
html.motion-fallback .is-style-fi-reveal-lines,
html.motion-fallback .fi-reveal,
html.motion-fallback .is-style-fi-reveal {
	opacity: 1 !important;
	clip-path: none !important;
	transform: none !important;
}

/* Hero "video" (see finest_home_page_content(), functions.php comment):
   a native Cover block, video-upgradeable from wp-admin with no code
   change. Until real footage exists, a slow continuous zoom on the photo
   reads as ambient motion rather than a static image — plain CSS
   animation, so the existing @media (prefers-reduced-motion) rule above
   already disables it, no extra JS wiring needed. */
.fi-hero-video {
	overflow: hidden;
}
.fi-hero-video .wp-block-cover__image-background,
.fi-hero-video .wp-block-cover__video-background {
	animation: fi-kenburns 24s ease-in-out infinite alternate;
	will-change: transform;
}
@keyframes fi-kenburns {
	from {
		transform: scale(1);
	}
	to {
		transform: scale(1.08);
	}
}

/* Team member headshots (see finest_team_photo_block(), inc/content-pages.php).
   Fixed aspect-ratio + object-fit:cover so four portraits of different
   source dimensions still line up evenly in the wp:columns grid, and a
   background fallback shows while the image loads. */
.finest-team-photo {
	margin: 0 0 16px;
}
.finest-team-photo img {
	aspect-ratio: 4 / 5;
	width: 100%;
	height: auto;
	object-fit: cover;
	background: var(--wp--preset--color--klei);
	display: block;
}

.fi-scroll-progress {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 2px;
	background: var(--wp--preset--color--zwart);
	transform: scaleX(0);
	z-index: 9999;
	pointer-events: none;
}

/* The second full-bleed photo (finest_photo_block(), "portret 2") has no
   intrinsic size info in the markup until the image itself loads — reserve
   its layout space up front so the page doesn't jump once it does (CLS).
   16/9 fits this theme's full-bleed "photo break" treatment; the hero's own
   image never needs this since its Cover block already carries an explicit
   min-height. */
.fi-reveal img,
.is-style-fi-reveal img {
	aspect-ratio: 16 / 9;
	width: 100%;
	height: auto;
	object-fit: cover;
	background: var(--wp--preset--color--klei);
}

/* A little extra safety margin behind the hero headline (WCAG 2.2 SC 1.4.3):
   dimRatio:50 on the Cover block (inc/content-pages.php) already darkens
   the whole photo, but text sitting over a bright patch of a *specific*
   crop could still fall under the 4.5:1/3:1 minimums depending on the
   actual photo and breakpoint. This adds a second, localized gradient
   directly behind the text block itself — contrast only gets better, never
   worse, regardless of what's in the photo underneath. */
.wp-block-cover__inner-container {
	position: relative;
}
.fi-hero-video .wp-block-cover__inner-container::before {
	content: "";
	position: absolute;
	inset: -24px -24px -24px -24px;
	background: linear-gradient(0deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 75%);
	z-index: -1;
	pointer-events: none;
}

/* ---------- scroll-driven explainer diagrams (assets/js/explainers.js) ----------
   finest_explainer_block() (inc/content-pages.php) pairs a <canvas> with its
   paragraph content in a two-column grid; mobile collapses to one column
   with the canvas scrolling normally above the text (not sticky — a short
   canvas pinned above a much taller text block would finish drawing long
   before the text is read). */
.explainer-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 36px;
	align-items: center;
}
.explainer-canvas {
	width: 100%;
	max-width: 420px;
	margin: 0 auto 8px;
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.explainer-canvas.in {
	opacity: 1;
	transform: translateY(0);
}
.explainer-canvas canvas {
	width: 100%;
	height: auto;
	display: block;
}
@media (min-width: 900px) {
	.explainer-grid {
		grid-template-columns: 1fr 0.86fr;
		gap: 64px;
	}
	.explainer-grid--reverse {
		grid-template-columns: 0.86fr 1fr;
	}
	.explainer-grid--reverse .explainer-canvas {
		order: -1;
	}
	.explainer-canvas {
		position: sticky;
		top: 110px;
		max-width: none;
		margin-bottom: 0;
	}
}

/* ---------- Optiek Stories: pinned horizontal rail (finest_stories_block()) ----------
   .finest-stories-query/.finest-stories-track are WordPress's own
   core/query + core/post-template block wrappers (see inc/content-pages.php)
   — the individual cards are core's own .wp-block-post, not a custom class,
   so a klantverhaal published from wp-admin tomorrow picks up this exact
   styling with no theme change needed. Mobile: a normal horizontally
   scrollable, scroll-snapping row (no JS required for this to work at all).
   Desktop (>=900px): assets/js/motion.js additionally pins the whole
   section and scrubs the row across the viewport as you scroll vertically
   — `html.stories-pinned` only exists while that's active. */
.finest-stories-query .finest-stories-track {
	display: flex;
	gap: 20px;
	padding: 4px var(--wp--preset--spacing--50, 20px) 28px;
	margin: 0 calc(var(--wp--preset--spacing--50, 20px) * -1);
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	-webkit-overflow-scrolling: touch;
}
.finest-stories-query .finest-stories-track::-webkit-scrollbar {
	display: none;
}
.finest-stories-query .wp-block-post {
	scroll-snap-align: start;
	flex: 0 0 78vw;
	max-width: 340px;
}
.finest-stories-query .wp-block-post-featured-image {
	aspect-ratio: 4 / 5;
	background: var(--wp--preset--color--klei);
	overflow: hidden;
	margin-bottom: 18px;
}
.finest-stories-query .wp-block-post-featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
@media (min-width: 900px) {
	.finest-stories-query .wp-block-post {
		flex: 0 0 300px;
	}
	.finest-stories-query .finest-stories-track {
		gap: 28px;
	}
}
html.stories-pinned .finest-stories-query .finest-stories-track {
	overflow: visible;
}
/* ScrollTrigger wraps the pinned rail in its own .pin-spacer, a direct child
   of the (wide) .finest-stories group — which makes it subject to core's
   constrained-layout rule that caps every non-aligned child at the 760px
   content width. The spacer's inline width (1200px) loses to that max-width,
   so the wide rail would start at x=340 and overflow to the right. */
.finest-stories > .pin-spacer {
	max-width: none;
}

/* Several full-width things legitimately extend past the viewport edge while
   at rest — GSAP's initial scale(1.06) on the full-bleed photo, and the
   pinned rail's track before it has scrubbed across. Clip once, at the page
   container, instead of per section. `clip` (unlike `hidden`/`auto`) doesn't
   create a scroll container, so the sticky header and ScrollTrigger's fixed
   pinning are unaffected, and the rail still runs to the true screen edges. */
.wp-site-blocks {
	overflow-x: clip;
}

/* ---------- touch targets ----------
   The native <details>/<summary> FAQ accordion (finest_faq_item()) has no
   deliberate sizing of its own — add comfortable vertical padding so the
   tap target clears the ~44px minimum this theme already honors everywhere
   else (buttons, nav toggle). */
.wp-block-details {
	border-top: 1px solid var(--wp--preset--color--rand);
	padding: 4px 0;
	/* the page's block gap would otherwise add 24px between every row */
	margin-block: 0;
}
.wp-block-details:last-of-type {
	border-bottom: 1px solid var(--wp--preset--color--rand);
}
.wp-block-details summary {
	padding: 14px 0;
	min-height: 44px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	cursor: pointer;
	list-style: none;
	font-family: var(--wp--preset--font-family--jost);
	font-size: 18px;
}
/* display:flex above removes the browser's own disclosure triangle, so the
   open/closed state is drawn here (+ / minus), as on the demo. */
.wp-block-details summary::-webkit-details-marker {
	display: none;
}
.wp-block-details summary::after {
	content: "+";
	flex: none;
	font-size: 20px;
}
.wp-block-details[open] summary::after {
	content: "\2212";
}
.wp-block-details > :not(summary) {
	color: var(--wp--preset--color--grijs);
}

/* ---------- blog: category pills (finest_category_pills()) ---------- */
.finest-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.finest-pill {
	display: inline-flex;
	align-items: center;
	/* border-box so min-height:44px is the whole pill — an <a> is content-box by
	   default, which turned 44px + 24px padding + 2px border into a 70px oval. */
	box-sizing: border-box;
	font-family: var(--wp--preset--font-family--jost);
	font-size: 13px;
	letter-spacing: 0.02em;
	padding: 12px 18px;
	min-height: 44px;
	line-height: 20px;
	/* grijs, not rand: rand-on-linnen measures ~1.3:1, well under the 3:1
	   SC 1.4.11 floor for a UI-component border; grijs clears 3:1. */
	border: 1px solid var(--wp--preset--color--grijs);
	border-radius: 999px;
	color: var(--wp--preset--color--zwart);
	text-decoration: none;
	transition: background-color 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.finest-pill:hover,
.finest-pill:focus-visible {
	background: var(--wp--preset--color--zwart);
	border-color: var(--wp--preset--color--zwart);
	color: var(--wp--preset--color--linnen);
}
.finest-pill:focus-visible {
	outline: 2px solid var(--wp--preset--color--zwart);
	outline-offset: 2px;
}

/* ---------- blog: editorial card grid (Nieuws/Klantverhalen overview, archive, search, index) ----------
   Used by four different Query Loop blocks (inc/content-pages.php,
   templates/archive.html, templates/search.html, templates/index.html) —
   one definition, so every post listing in the theme looks and behaves
   identically. Mobile-first: one column by default, matching
   .team-grid's own breakpoints (620px / 900px) for the same reason that
   rule gives — consistency beats inventing a new breakpoint per
   component. */
.finest-blog-grid .finest-blog-grid__track {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--wp--preset--spacing--60) var(--wp--preset--spacing--40);
	margin-top: 8px;
}
@media (min-width: 620px) {
	.finest-blog-grid .finest-blog-grid__track {
		grid-template-columns: 1fr 1fr;
	}
	/* A page's last row can land a single odd-one-out card alone in the
	   left column with a dangling empty slot beside it (e.g. perPage:9 on
	   the Nieuws/Klantverhalen grids leaves 1 card on page 4). Center it at
	   half width instead of letting it look like a layout bug. Related
	   posts (perPage:3, below) skip straight from 1 to 3 columns instead,
	   so this never applies there. */
	.finest-blog-grid:not(.finest-related-posts) .finest-blog-grid__track > .finest-blog-card:nth-child(odd):last-child {
		grid-column: 1 / -1;
		max-width: calc(50% - var(--wp--preset--spacing--40) / 2);
		margin-inline: auto;
	}
}
@media (min-width: 900px) {
	.finest-blog-grid .finest-blog-grid__track {
		grid-template-columns: repeat(3, 1fr);
		gap: var(--wp--preset--spacing--70) var(--wp--preset--spacing--60);
	}
	.finest-blog-grid:not(.finest-related-posts) .finest-blog-grid__track > .finest-blog-card:nth-child(odd):last-child {
		grid-column: auto;
		max-width: none;
		margin-inline: 0;
	}
}
/* Related posts (templates/single.html, perPage:3): 3 items split across
   the general 2-column tablet breakpoint always strands one card alone.
   Skip that intermediate layout here and jump straight from 1 to 3
   columns, so there's never an orphan to center. */
.finest-related-posts .finest-blog-grid__track {
	grid-template-columns: 1fr;
}
@media (min-width: 900px) {
	.finest-related-posts .finest-blog-grid__track {
		grid-template-columns: repeat(3, 1fr);
	}
}
.finest-blog-card {
	display: flex;
	flex-direction: column;
	position: relative;
}
/* Same safety pattern as .fi-reveal-lines/.fi-reveal above: the hidden
   pre-animation state only ever applies once html.js-motion proves the
   render-blocking inline script (functions.php, finest_print_motion_class)
   actually ran, and never when .reduced-motion or .motion-fallback is
   also set. If JS is disabled outright, html never gets the js-motion
   class in the first place, this selector simply never matches, and the
   cards stay at their normal, visible opacity — never opt-in to hiding
   content it can't guarantee it will later reveal. */
html.js-motion:not(.reduced-motion):not(.motion-fallback) .finest-blog-card {
	opacity: 0;
	transform: translateY(20px);
}
.finest-blog-card__media {
	aspect-ratio: 4 / 5;
	background: var(--wp--preset--color--klei);
	margin: 0 0 var(--wp--preset--spacing--40);
	/* Deliberately NOT overflow:hidden (see .finest-blog-card__media a::after
	   below for why) -- the corner rounding and the hover-zoom clip both
	   move to the <img> itself instead, which clips to its own
	   border-radius without needing an overflow:hidden ancestor (standard
	   behavior for replaced elements). */
}
.finest-blog-card__media a,
.finest-blog-card__media img {
	display: block;
	width: 100%;
	height: 100%;
}
.finest-blog-card__media img {
	object-fit: cover;
	border-radius: 2px;
	transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.finest-blog-card:hover .finest-blog-card__media img {
	transform: scale(1.04);
}
/* Whole-card click target: the image, title and excerpt/date gaps should
   all be one tap area on mobile, not three separate hotspots with dead
   zones between them. This stretches the image's own link (same href as
   the title link -- both point at the post) over the full card via its
   containing block, .finest-blog-card (position:relative, above). It
   can't live on .finest-blog-card__title's own link instead: that
   element needs overflow:hidden for its line-clamp (below), and an
   overflow:hidden ancestor clips an absolutely-positioned pseudo-element
   to its own box even when the pseudo's containing block is further up
   the tree -- which would silently shrink the "whole card" click area
   back down to just the title's own text. The figure/anchor here carry no
   such clip, so inset:0 genuinely reaches the full card. Generated
   content on ::after is never exposed to assistive tech, so this adds no
   duplicate stop for screen-reader users tabbing through the card's real
   links (image, title, category). z-index 1 sits below
   .finest-blog-card__cat (2) and .finest-blog-card__title a (2) so the
   category link (a different, term-archive URL) and the title's own
   hover/focus feedback both still win over the overlay in their own
   areas. */
.finest-blog-card__media a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}
.finest-blog-card__media a:focus-visible {
	outline: 2px solid var(--wp--preset--color--zwart);
	outline-offset: 2px;
}
.finest-blog-card__cat {
	font-family: var(--wp--preset--font-family--jost);
	font-size: 11px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--wp--preset--color--grijs);
	margin-bottom: 10px;
	/* A long/multi-term category list wraps instead of growing the card
	   taller than its grid row-mates (rows stretch to the tallest item). */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	/* Sits above the full-card overlay link below so the term link (which
	   goes to the category archive, not the post) stays independently
	   tappable rather than being swallowed by the card-wide hit area. */
	position: relative;
	z-index: 2;
}
.finest-blog-card__cat a {
	color: inherit;
	text-decoration: none;
}
.finest-blog-card__cat a:hover,
.finest-blog-card__cat a:focus-visible {
	text-decoration: underline;
}
.finest-blog-card__title {
	margin-bottom: 10px;
	line-height: 1.25;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.finest-blog-card__title a {
	/* position+z-index above the full-card overlay (.finest-blog-card__media
	   a::after, z-index 1) so hovering/focusing the title text itself still
	   triggers ITS OWN underline feedback below, rather than the overlay
	   anchor silently taking the hover state since it paints on top. */
	position: relative;
	z-index: 2;
	text-decoration: none;
	color: var(--wp--preset--color--zwart);
	background-image: linear-gradient(currentColor, currentColor);
	background-position: 0 100%;
	background-repeat: no-repeat;
	background-size: 0% 1px;
	transition: background-size 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.finest-blog-card__title a:hover,
.finest-blog-card__title a:focus-visible {
	background-size: 100% 1px;
}
.finest-blog-card__excerpt {
	color: var(--wp--preset--color--grijs);
	margin-bottom: 10px;
}
.finest-blog-card__date {
	font-size: 12px;
	color: var(--wp--preset--color--grijs);
	margin-top: auto;
}

/* Related-posts variant (templates/single.html, .finest-related-posts) sits
   on a klei background — the card media's own klei placeholder would be
   invisible against it while an image loads, so give it the darker "rand"
   tone instead just in this context. The same klei background also drops
   grijs text to ~4.3:1, under the 4.5:1 AA floor for this size text, so
   the category/date labels switch to full zwart here (13.5:1) instead. */
.finest-related-posts .finest-blog-card__media {
	background: var(--wp--preset--color--rand);
}
.finest-related-posts .finest-blog-card__cat,
.finest-related-posts .finest-blog-card__date {
	color: var(--wp--preset--color--zwart);
}

.finest-pagination {
	margin-top: 24px;
	font-family: var(--wp--preset--font-family--jost);
	font-size: 14px;
}
.finest-pagination .wp-block-query-pagination-numbers a,
.finest-pagination .wp-block-query-pagination-numbers span,
.finest-pagination .wp-block-query-pagination-previous,
.finest-pagination .wp-block-query-pagination-next {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 8px;
	text-decoration: none;
	color: var(--wp--preset--color--zwart);
}
.finest-pagination .wp-block-query-pagination-numbers a:focus-visible,
.finest-pagination .wp-block-query-pagination-previous:focus-visible,
.finest-pagination .wp-block-query-pagination-next:focus-visible {
	outline: 2px solid var(--wp--preset--color--zwart);
	outline-offset: 2px;
}
/* .wp-block-query-pagination-numbers is repeated in the selector (instead
   of just ".finest-pagination .current") purely to out-specificity the
   ".finest-pagination .wp-block-query-pagination-numbers span" rule above
   -- both match the current-page element, and without this its color:
   zwart would otherwise win over color: linnen below, making the label
   invisible against its own background. */
.finest-pagination .wp-block-query-pagination-numbers .current {
	/* Jost's variable fontFace only covers weights 200–500 (theme.json);
	   600 clamps to 500 and renders identically to a non-current page, so
	   the real distinction has to come from color/background, not weight. */
	font-weight: 500;
	background: var(--wp--preset--color--zwart);
	color: var(--wp--preset--color--linnen);
	border-radius: 999px;
	text-decoration: none;
}

/* Query Loop's no-results fallback (inc/content-pages.php's Nieuws/
   Klantverhalen grids, templates/search.html) -- give the empty state a
   deliberate centered treatment instead of a bare default paragraph
   dropped under an otherwise art-directed grid. */
.finest-no-results {
	max-width: 480px;
	margin: 0 auto;
	padding: var(--wp--preset--spacing--70) 0;
	text-align: center;
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--grijs);
}

/* ---------- blog: single post (templates/single.html) ---------- */
.finest-article-byline {
	color: var(--wp--preset--color--grijs);
	font-size: 14px;
	gap: 12px;
}
/* post-author and post-date sit side by side (the group's own inline
   gap:12px, templates/single.html) but need a visual break between them
   -- a plain middot on the author block reads as "by X · date" without
   adding a text node a screen reader would announce separately. */
.finest-article-byline .wp-block-post-author::after {
	content: "\00B7";
	margin-left: 12px;
}
/* This is the page's LCP element. It's a dynamic core/post-featured-image
   block (templates/single.html) and deliberately carries no loading or
   fetchpriority attribute: WordPress core (6.3+) already detects "the main
   query's first featured image on a singular template" and applies eager
   loading + fetchpriority:high itself (the homepage hero gets the same
   treatment at render time, since its markup is kept to exactly what
   core/cover's save() emits — see finest_home_page_content()). This
   comment exists so a future change to how this template is rendered
   (AMP/cache layer, REST preview, etc.) is a deliberate decision, not a
   silent LCP regression nobody noticed. */
.finest-article-hero {
	aspect-ratio: 16 / 9;
	width: 100%;
	object-fit: cover;
	background: var(--wp--preset--color--klei);
}
@media (min-width: 900px) {
	.finest-article-hero {
		aspect-ratio: 21 / 9;
	}
}
.finest-article-back a,
.finest-article-back a:visited {
	color: var(--wp--preset--color--zwart);
	text-decoration: none;
	font-family: var(--wp--preset--font-family--jost);
	font-size: 14px;
}
.finest-article-back a:hover {
	text-decoration: underline;
}

/* Editorial reading typography for the post body (wp:post-content). This
   is the one place on the site where a client writes long-form prose in
   the block editor, so it gets its own, slightly more generous rhythm
   than the short marketing copy elsewhere: wider paragraph spacing, a
   deliberate pull-quote treatment for core/quote, and full-bleed images
   that break out of the (deliberately narrow, 680px) reading column
   without the surrounding text doing the same. */
.finest-article {
	font-size: 18px;
	line-height: 1.75;
}
.finest-article > * {
	margin-bottom: 28px;
}
.finest-article h2 {
	font-size: var(--wp--preset--font-size--kop);
	margin-top: 12px;
}
.finest-article h3 {
	font-size: var(--wp--preset--font-size--medium);
}
.finest-article blockquote,
.finest-article .wp-block-quote {
	border-left: 3px solid var(--wp--preset--color--zwart);
	padding-left: 24px;
	margin-left: 0;
	font-family: var(--wp--preset--font-family--jost);
	font-size: var(--wp--preset--font-size--medium);
	font-style: normal;
	font-weight: 300;
}
.finest-article a {
	color: var(--wp--preset--color--zwart);
	text-decoration-color: var(--wp--preset--color--rand);
	text-underline-offset: 3px;
}
.finest-article figure.wp-block-image.alignfull,
.finest-article figure.wp-block-image.alignwide {
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	max-width: none;
	width: 100vw;
}
.finest-article figcaption {
	text-align: center;
	font-size: 13px;
	color: var(--wp--preset--color--grijs);
	margin-top: 8px;
}

/* The "Lees ook" interlink paragraph finest_append_read_also()
   (inc/provisioning.php) appends to a seed article's own post_content —
   it's the article's literal last paragraph, so it inherits .finest-
   article's body rhythm by default. This marks it as a related-reading
   signpost rather than another sentence of the piece: a top rule (reusing
   the pull-quote's hairline treatment) and the Jost display face, same
   as every other "next step" link on the site (.btn-link equivalents). */
.finest-article .finest-read-also {
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--wp--preset--color--rand);
	font-family: var(--wp--preset--font-family--jost);
	font-size: 15px;
	color: var(--wp--preset--color--grijs);
}
.finest-article .finest-read-also a {
	color: var(--wp--preset--color--zwart);
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--rand);
	text-underline-offset: 3px;
}
.finest-article .finest-read-also a:hover,
.finest-article .finest-read-also a:focus-visible {
	text-decoration-color: currentColor;
}

/* ==========================================================================
   Contact bar (inc/cta-bar.php): "Neem contact op" + WhatsApp.
   Mobile-first: a slim bar in the thumb zone; from 768px a small floating
   pair bottom-right. The hidden state only applies under html.js-cta (set in
   <head>), so without JavaScript the bar is simply always visible.
   ========================================================================== */
html {
	/* WCAG 2.2 SC 2.4.11 Focus Not Obscured: keep keyboard focus and anchor
	   jumps clear of the bar. */
	scroll-padding-bottom: 88px;
}

.finest-cta-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 40; /* below the header (50) and the mobile menu overlay */
	background: var(--wp--preset--color--linnen);
	border-top: 1px solid var(--wp--preset--color--rand);
	padding: 10px var(--wp--preset--spacing--50, 16px) calc(10px + env(safe-area-inset-bottom, 0px));
	transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.3s ease, visibility 0s linear 0s;
}

.finest-cta-bar__inner {
	display: flex;
	gap: 10px;
	max-width: 560px;
	margin: 0 auto;
}

.finest-cta-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 18px;
	box-sizing: border-box;
	font-family: var(--wp--preset--font-family--jost);
	font-size: 0.95rem;
	font-weight: 400;
	letter-spacing: 0.04em;
	line-height: 1;
	text-decoration: none;
	border: 1px solid var(--wp--preset--color--zwart);
	border-radius: 2px;
	white-space: nowrap;
	transition: background-color 0.3s cubic-bezier(0.165, 0.84, 0.44, 1),
		color 0.3s cubic-bezier(0.165, 0.84, 0.44, 1),
		border-color 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.finest-cta-btn--primary {
	flex: 1 1 auto;
	background: var(--wp--preset--color--zwart);
	color: var(--wp--preset--color--linnen);
}

.finest-cta-btn--primary:hover {
	background: var(--wp--preset--color--grijs);
	border-color: var(--wp--preset--color--grijs);
}

.finest-cta-btn--wa {
	flex: 0 0 auto;
	background: transparent;
	color: var(--wp--preset--color--zwart);
}

.finest-cta-btn--wa:hover {
	background: var(--wp--preset--color--klei);
}

.finest-cta-btn__icon {
	flex: 0 0 auto;
	color: #0b6b3a; /* WhatsApp green, darkened to stay readable on linnen */
}

.finest-cta-btn:focus-visible {
	outline: 2px solid var(--wp--preset--color--zwart);
	outline-offset: 3px;
}

/* Hidden until the first screen has been scrolled, and over the footer. */
html.js-cta .finest-cta-bar:not(.is-visible) {
	transform: translateY(110%);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.3s ease, visibility 0s linear 0.4s;
}

@media (min-width: 768px) {
	.finest-cta-bar {
		left: auto;
		right: 24px;
		bottom: 24px;
		padding: 8px;
		border: 1px solid var(--wp--preset--color--rand);
		border-radius: 4px;
		box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
	}

	.finest-cta-bar__inner {
		max-width: none;
		margin: 0;
	}

	.finest-cta-btn {
		min-height: 44px;
		font-size: 0.9rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.finest-cta-bar,
	html.js-cta .finest-cta-bar:not(.is-visible) {
		transition: none;
		transform: none;
	}
}

@media print {
	.finest-cta-bar {
		display: none;
	}
}

/* ==========================================================================
   Contact form: The Finest Impact design (board "Contact"). One block of CSS
   for Contact Form 7 and for the built-in fallback form. State comes from
   form[data-status]: init | validating | submitting | invalid | unaccepted |
   spam | failed | sent (the names Contact Form 7 itself uses).
   ========================================================================== */
.tfi-form-wrap {
	--tfi-ink: var(--wp--preset--color--zwart, var(--zwart, #000));
	--tfi-paper: var(--wp--preset--color--linnen, var(--linnen, #F7F3EE));
	--tfi-clay: var(--wp--preset--color--klei, var(--klei, #DCCDBC));
	--tfi-muted: var(--wp--preset--color--grijs, var(--grijs, #5C5C5C));
	/* Field underline: the brand's --rand is only 1.3:1 on linen, below the 3:1
	   WCAG 1.4.11 asks of a control boundary, so fields use a darker rule. */
	--tfi-rule: #8A857F;
	--tfi-error: #8B1E1E;
	--tfi-display: var(--wp--preset--font-family--jost, var(--font-display, 'Jost', sans-serif));
	--tfi-body: var(--wp--preset--font-family--hanken-grotesk, var(--font-body, 'Hanken Grotesk', sans-serif));
	--tfi-ease: cubic-bezier(0.165, 0.84, 0.44, 1);
	max-width: 640px;
}

.tfi-form .tfi-field {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0 0 32px;
}
.tfi-form .wpcf7-form-control-wrap { display: block; position: relative; }

.tfi-form label {
	font-family: var(--tfi-display);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--tfi-muted);
	line-height: 1.4;
}
.tfi-form .tfi-optional { text-transform: none; letter-spacing: 0.02em; }

.tfi-form input[type="text"],
.tfi-form input[type="email"],
.tfi-form input[type="tel"],
.tfi-form textarea,
.tfi-form .tfi-input {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 10px 0;
	border: 0;
	border-bottom: 1px solid var(--tfi-rule);
	border-radius: 0;
	background: transparent;
	color: var(--tfi-ink);
	font-family: var(--tfi-body);
	font-size: 17px;
	line-height: 1.5;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.3s var(--tfi-ease), box-shadow 0.3s var(--tfi-ease);
}
.tfi-form textarea { min-height: 120px; resize: vertical; }
.tfi-form .tfi-input::placeholder,
.tfi-form textarea::placeholder { color: #6B6761; opacity: 1; }

.tfi-form .tfi-input:hover { border-bottom-color: var(--tfi-ink); }
.tfi-form .tfi-input:focus,
.tfi-form input:focus,
.tfi-form textarea:focus {
	outline: 0;
	border-bottom-color: var(--tfi-ink);
	box-shadow: 0 1px 0 0 var(--tfi-ink);
}
.tfi-form .tfi-input:focus-visible,
.tfi-form textarea:focus-visible {
	outline: 0;
	border-bottom-color: var(--tfi-ink);
	box-shadow: 0 2px 0 0 var(--tfi-ink);
	background: rgba(0, 0, 0, 0.03);
}
.tfi-form .tfi-field:focus-within > label { color: var(--tfi-ink); }

/* Invalid */
.tfi-form .wpcf7-not-valid,
.tfi-form [aria-invalid="true"] { border-bottom-color: var(--tfi-error); box-shadow: 0 1px 0 0 var(--tfi-error); }
.tfi-form .wpcf7-not-valid-tip {
	display: block;
	margin-top: 8px;
	font-family: var(--tfi-body);
	font-size: 14px;
	line-height: 1.5;
	color: var(--tfi-error);
}
.tfi-form .wpcf7-not-valid-tip::before {
	content: "!";
	display: inline-grid;
	place-items: center;
	width: 16px;
	height: 16px;
	margin-right: 8px;
	border: 1px solid currentColor;
	border-radius: 50%;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	vertical-align: 1px;
}

/* Honeypot: off-screen, never focusable */
.tfi-form .tfi-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Consent checkbox */
.tfi-form .tfi-consent {
	margin: 0 0 32px;
	font-family: var(--tfi-body);
	font-size: 14px;
	line-height: 1.6;
	color: var(--tfi-muted);
}
.tfi-form .tfi-consent .wpcf7-list-item { display: block; margin: 0; }
.tfi-form .tfi-consent label {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-family: var(--tfi-body);
	font-size: 14px;
	letter-spacing: 0;
	text-transform: none;
	color: var(--tfi-muted);
	cursor: pointer;
}
.tfi-form .wpcf7-list-item-label::before,
.tfi-form .wpcf7-list-item-label::after { content: none; }
.tfi-form input[type="checkbox"] {
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
	margin: 0;
	border: 1px solid var(--tfi-rule);
	border-radius: 2px;
	background: transparent;
	-webkit-appearance: none;
	appearance: none;
	display: inline-grid;
	place-content: center;
	cursor: pointer;
	transition: background-color 0.2s var(--tfi-ease), border-color 0.2s var(--tfi-ease);
}
.tfi-form input[type="checkbox"]::after {
	content: "";
	width: 12px;
	height: 7px;
	border-left: 2px solid var(--tfi-paper);
	border-bottom: 2px solid var(--tfi-paper);
	transform: rotate(-45deg) scale(0);
	margin-top: -2px;
	transition: transform 0.2s var(--tfi-ease);
}
.tfi-form input[type="checkbox"]:checked { background: var(--tfi-ink); border-color: var(--tfi-ink); }
.tfi-form input[type="checkbox"]:checked::after { transform: rotate(-45deg) scale(1); }
.tfi-form input[type="checkbox"]:focus-visible { outline: 2px solid var(--tfi-ink); outline-offset: 3px; }
.tfi-form .tfi-consent a { color: var(--tfi-ink); text-underline-offset: 3px; }

/* Submit: the design's text link with an arrow */
.tfi-form .tfi-actions { margin: 0; }
.tfi-form .tfi-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	margin: 0;
	padding: 14px 0 4px;
	border: 0;
	border-bottom: 1px solid currentColor;
	border-radius: 0;
	background: none;
	color: var(--tfi-ink);
	font-family: var(--tfi-display);
	font-size: 15px;
	font-weight: 400;
	letter-spacing: 0.03em;
	line-height: 1.4;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}
.tfi-form .tfi-btn__arrow { display: inline-block; transition: transform 0.35s var(--tfi-ease); }
.tfi-form .tfi-btn:hover .tfi-btn__arrow { transform: translateX(5px); }
.tfi-form .tfi-btn:focus-visible { outline: 2px solid var(--tfi-ink); outline-offset: 4px; }
.tfi-form .tfi-btn__busy,
.tfi-form .tfi-btn__spinner { display: none; }
.tfi-form .tfi-btn::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	height: 1px;
	width: 0;
	background: var(--tfi-ink);
}

/* Loader (submitting) */
.tfi-form[data-status="submitting"] .tfi-fields { opacity: 0.5; pointer-events: none; transition: opacity 0.3s var(--tfi-ease); }
.tfi-form[data-status="submitting"] .tfi-btn { pointer-events: none; border-bottom-color: var(--tfi-rule); }
.tfi-form[data-status="submitting"] .tfi-btn__arrow { display: none; }
.tfi-form[data-status="submitting"] .tfi-btn__busy { display: inline; }
.tfi-form[data-status="submitting"] .tfi-btn__spinner {
	display: inline-block;
	width: 14px;
	height: 14px;
	border: 1.5px solid currentColor;
	border-top-color: transparent;
	border-radius: 50%;
	animation: tfi-spin 0.8s linear infinite;
}
/* The label stays in the DOM for assistive tech (button keeps its name) */
.tfi-form[data-status="submitting"] .tfi-btn__label {
	position: absolute;
	width: 1px; height: 1px;
	margin: -1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap;
}
.tfi-form[data-status="submitting"] .tfi-btn::after { animation: tfi-bar 1.2s var(--tfi-ease) infinite; }
@keyframes tfi-spin { to { transform: rotate(360deg); } }
@keyframes tfi-bar {
	0% { left: 0; width: 0; }
	50% { left: 0; width: 100%; }
	100% { left: 100%; width: 0; }
}

/* Messages. Doubled class = beats Contact Form 7's own stylesheet. */
.tfi-form-wrap .tfi-form.tfi-form .wpcf7-response-output {
	margin: 28px 0 0;
	padding: 16px 18px;
	border: 0;
	border-left: 2px solid var(--tfi-ink);
	background: rgba(0, 0, 0, 0.04);
	color: var(--tfi-ink);
	font-family: var(--tfi-body);
	font-size: 15px;
	line-height: 1.6;
}
.tfi-form-wrap .tfi-form.tfi-form[data-status="invalid"] .wpcf7-response-output,
.tfi-form-wrap .tfi-form.tfi-form[data-status="unaccepted"] .wpcf7-response-output,
.tfi-form-wrap .tfi-form.tfi-form[data-status="failed"] .wpcf7-response-output,
.tfi-form-wrap .tfi-form.tfi-form[data-status="spam"] .wpcf7-response-output,
.tfi-form-wrap .tfi-form.tfi-form[data-status="aborted"] .wpcf7-response-output {
	border-left-color: var(--tfi-error);
	background: rgba(139, 30, 30, 0.06);
}
.tfi-form .wpcf7-response-output:empty { display: none; }
.tfi-form .wpcf7-spinner { display: none; }
.tfi-form[data-status="init"] .wpcf7-response-output,
.tfi-form[data-status="submitting"] .wpcf7-response-output { display: none; }


/* Success */
.tfi-form .tfi-success { display: none; }
.tfi-form[data-status="sent"] .tfi-fields { display: none; }
.tfi-form[data-status="sent"] .tfi-success {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	padding: 8px 0 0;
}
.tfi-form .tfi-success:focus { outline: 0; }
.tfi-form .tfi-success__title {
	margin: 0;
	font-family: var(--tfi-display);
	font-weight: 200;
	font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem);
	line-height: 1.05;
	letter-spacing: -0.015em;
	color: var(--tfi-ink);
}
.tfi-form .tfi-again {
	font-family: var(--tfi-display);
	font-size: 15px;
	letter-spacing: 0.03em;
	color: var(--tfi-ink);
	text-underline-offset: 5px;
	padding: 8px 0;
}
.tfi-form .tfi-check { display: block; }
.tfi-form .tfi-check__ring,
.tfi-form .tfi-check__tick { fill: none; stroke: var(--tfi-ink); stroke-linecap: round; stroke-linejoin: round; }
.tfi-form .tfi-check__ring { stroke-width: 1.5; stroke-dasharray: 151; stroke-dashoffset: 151; }
.tfi-form .tfi-check__tick { stroke-width: 2; stroke-dasharray: 36; stroke-dashoffset: 36; }
.tfi-form[data-status="sent"] .tfi-check__ring { animation: tfi-draw 0.7s var(--tfi-ease) forwards; }
.tfi-form[data-status="sent"] .tfi-check__tick { animation: tfi-draw 0.45s var(--tfi-ease) 0.5s forwards; }
@keyframes tfi-draw { to { stroke-dashoffset: 0; } }

/* Direct alternative under the form */
.tfi-form-wrap .tfi-alt { margin: 36px 0 0; font-family: var(--tfi-body); font-size: 15px; color: var(--tfi-muted); }
.tfi-form-wrap .tfi-alt a { color: var(--tfi-ink); text-underline-offset: 4px; }

/* Reduced motion: no spinner/bar/draw; text label + final state only */
@media (prefers-reduced-motion: reduce) {
	.tfi-form .tfi-input,
	.tfi-form .tfi-btn__arrow,
	.tfi-form input[type="checkbox"],
	.tfi-form input[type="checkbox"]::after { transition: none; }
	.tfi-form[data-status="submitting"] .tfi-btn__spinner { display: none; }
	.tfi-form[data-status="submitting"] .tfi-btn::after { animation: none; width: 100%; }
	.tfi-form[data-status="sent"] .tfi-check__ring,
	.tfi-form[data-status="sent"] .tfi-check__tick { animation: none; stroke-dashoffset: 0; }
}

/* Contact page layout (board: form left, "Direct contact" right) */
@media (min-width: 782px) {
	.tfi-contact-grid { gap: 96px; }
	.tfi-contact-grid > .wp-block-column:first-child { flex-grow: 1.2; }
}
.tfi-contact-grid > .wp-block-column > h2 {
	margin-bottom: 32px;
	font-family: var(--wp--preset--font-family--jost, 'Jost', sans-serif);
	font-size: 12px !important; /* beats the has-medium-font-size preset class */
	font-weight: 400;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--grijs, #5C5C5C);
}
.tfi-contact > p { max-width: 640px; }

/* Footer links: the global link colour is black (theme.json), which made the
   e-mail address and the legal links invisible on the black footer. Footer
   copy is linen; the navigation block already sets its own colour. */
.wp-site-blocks > footer a:not(.wp-block-navigation-item__content),
.wp-site-blocks > footer a:not(.wp-block-navigation-item__content):visited {
	color: var(--wp--preset--color--linnen);
	text-underline-offset: 3px;
}
.wp-site-blocks > footer a:not(.wp-block-navigation-item__content):hover {
	color: var(--wp--preset--color--klei);
}

/* The response message is focused programmatically so screen readers read it;
   it is not interactive, so no focus ring around the box. */
.tfi-form .wpcf7-response-output:focus,
.tfi-form .tfi-success:focus { outline: 0; }

/* Reminder shown to administrators only when a legal detail is still empty */
.tfi-company .tfi-todo { background: #fff3cd; color: #5c4400; padding: 0 4px; }

/* ---------- design parity with the demo (v1.5.11) ---------- */

/* Header: wordmark left, menu right, hairline underneath. */
.finest-site-header {
	align-items: center;
	padding: 14px 20px;
	border-bottom: 1px solid var(--wp--preset--color--rand);
}
.finest-site-header .wp-block-site-title {
	margin: 0;
	font-family: var(--wp--preset--font-family--jost);
	font-size: 15px;
	letter-spacing: 0.02em;
}
.finest-site-header .wp-block-site-title a {
	text-decoration: none;
}
@media (min-width: 900px) {
	.finest-site-header { padding: 18px 40px; }
}
.finest-site-header .wp-block-navigation {
	font-family: var(--wp--preset--font-family--jost);
	font-size: 13px;
	letter-spacing: 0.03em;
}
.finest-site-header .wp-block-navigation__container,
.finest-site-header .wp-block-navigation .wp-block-navigation__container {
	gap: 40px;
}
.finest-site-header .wp-block-navigation-item__content {
	opacity: 0.6;
	text-decoration: none;
	transition: opacity 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.finest-site-header .wp-block-navigation-item__content:hover,
.finest-site-header .wp-block-navigation-item__content:focus-visible,
.finest-site-header .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content,
.finest-site-header .is-menu-open .wp-block-navigation-item__content {
	opacity: 1;
}
.finest-site-header .finest-nav-login .wp-block-navigation-item__content {
	opacity: 0.5;
}

/* Hero: text block inset from the screen edge, wraps at 760px like the demo. */
.wp-block-cover.fi-hero-video {
	padding: 48px 20px 40px;
}
.fi-hero-video .wp-block-cover__inner-container {
	width: 100%;
	max-width: 760px;
	margin-right: auto;
}
@media (min-width: 900px) {
	.wp-block-cover.fi-hero-video {
		padding: 0 64px 64px;
		min-height: 85vh !important;
	}
}

/* Buttons on black bands: outlined in linen (a black button on black is invisible). */
.has-zwart-background-color .wp-block-button:not(.is-style-fi-outline) .wp-block-button__link:not(.has-background) {
	background: transparent;
	color: var(--wp--preset--color--linnen);
	border: 1px solid var(--wp--preset--color--linnen);
}
.has-zwart-background-color .wp-block-button:not(.is-style-fi-outline) .wp-block-button__link:not(.has-background):hover,
.has-zwart-background-color .wp-block-button:not(.is-style-fi-outline) .wp-block-button__link:not(.has-background):focus-visible {
	background: var(--wp--preset--color--linnen);
	color: var(--wp--preset--color--zwart);
}

/* Stacked wordmark (brand guide 01/02), footer + closing band. */
.finest-lockup {
	display: inline-flex;
	flex-direction: column;
	font-family: var(--wp--preset--font-family--jost);
	text-transform: lowercase;
	line-height: 1;
	color: var(--wp--preset--color--linnen);
	text-decoration: none;
}
.finest-lockup span { display: block; }
.finest-lockup .ll-the {
	font-size: 0.34em;
	font-weight: 300;
	letter-spacing: 0.03em;
	align-self: flex-start;
	margin-bottom: -0.08em;
}
.finest-lockup .ll-finest {
	font-size: 1em;
	font-weight: 300;
	letter-spacing: -0.01em;
}
.finest-lockup .ll-impact {
	font-size: 0.34em;
	font-weight: 300;
	letter-spacing: 0.22em;
	align-self: flex-end;
	margin-top: -0.1em;
}
.finest-lockup--footer { font-size: 42px; }
.finest-lockup-row { margin-top: 48px; }

/* Footer: tighter link stack, full-width hairline. */
.wp-site-blocks > footer .wp-block-navigation__container { gap: 10px; }
.wp-site-blocks > footer .wp-block-navigation-item__content { text-decoration: none; }

/* Diensten: four steps side by side from tablet up. */
.fi-steps h3 {
	font-weight: 500;
	line-height: 1.25;
}
.fi-steps p { color: var(--wp--preset--color--grijs); }

/* Contact: intro paragraph lines up with the heading above it. */
.tfi-contact > p { margin-left: 0 !important; }

/* Team cards: name reads as a name (darker, heavier), like the demo. */
.finest-team-photo + h3 {
	font-weight: 500;
	font-size: 16px;
	line-height: 1.3;
	margin-top: 0;
}
.finest-team-photo + h3 + p {
	margin-top: 4px;
}

/* Lenis (smooth wheel scrolling): its own state classes on <html>. */
html.lenis,
html.lenis body {
	height: auto;
}
.lenis.lenis-smooth {
	scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
	overscroll-behavior: contain;
}
.lenis.lenis-stopped {
	overflow: hidden;
}
.lenis.lenis-scrolling iframe {
	pointer-events: none;
}

/* Current page in the menu: full strength and heavier. */
.finest-site-header .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content,
.finest-site-header .wp-block-navigation-item__content[aria-current="page"] {
	opacity: 1;
	font-weight: 500;
}

/* Nieuws / related cards: left-aligned like the demo. The card group uses a
   constrained layout, whose auto side margins centred every child inside the
   flex column. */
.finest-blog-card > * {
	margin-left: 0 !important;
	margin-right: 0 !important;
	max-width: none !important;
	align-self: stretch;
}
.finest-blog-card__cat {
	letter-spacing: 0.12em;
	margin-bottom: 8px;
}
.finest-blog-card__title,
.finest-blog-card__title a {
	font-weight: 400;
}
.finest-blog-card__excerpt {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--warm-donker);
	margin-bottom: 10px;
}
.finest-blog-card__date {
	letter-spacing: 0.06em;
}

/* Card spacing: the page's block gap added 24px above every card child and
   above cards 2 and 3 (uneven photo tops); spacing is set explicitly instead. */
.finest-blog-grid__track > *,
.finest-blog-card > * {
	margin-block-start: 0 !important;
}
.finest-blog-card__media {
	margin-bottom: 16px;
}

/* Heading line reveal: SplitText wraps each line in a clipping mask, which cut
   the tails of g, y, p and j at the line-height of 1.1. Extra room below (and a
   hair above) keeps the full glyphs; the negative margin leaves the layout alone. */
.fi-line-mask {
	padding-top: 0.06em;
	padding-bottom: 0.22em;
	margin-top: -0.06em;
	margin-bottom: -0.22em;
}

/* Settings > Beweging: "text and image animations" switched off. */
html.fi-no-reveals .fi-reveal-lines,
html.fi-no-reveals .is-style-fi-reveal-lines,
html.fi-no-reveals .fi-reveal,
html.fi-no-reveals .is-style-fi-reveal,
html.fi-no-reveals .finest-blog-card {
	opacity: 1 !important;
	clip-path: none !important;
	transform: none !important;
}

/* =====================================================================
   SPOTLIGHT (v2.0.0): dark header, dark hero with reeded photo, split
   photo/text sections, ice-blue pill buttons, black closing band, Optiek
   Stories grid. Everything below overrides the v1 rules above on purpose;
   colours/sizes come from theme.json presets.
   ===================================================================== */

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
body { overflow-wrap: break-word; }
img, video { max-width: 100%; }

/* ---------- Header: black, sticky, wordmark left, menu right ---------- */
.finest-site-header {
	background: var(--wp--preset--color--zwart);
	color: var(--wp--preset--color--linnen);
	padding: 14px 20px;
	border-bottom: 1px solid rgba(247, 243, 238, 0.14);
	transition: padding 0.25s ease, box-shadow 0.25s ease;
}
html.is-scrolled .finest-site-header {
	padding-top: 8px;
	padding-bottom: 8px;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
@media (min-width: 1024px) {
	.finest-site-header { padding: 16px 40px; }
	html.is-scrolled .finest-site-header { padding-top: 10px; padding-bottom: 10px; }
}
.finest-site-header a { color: inherit; }
.finest-lockup--header { font-size: 26px; flex: 0 0 auto; }
.finest-lockup--header .ll-finest { font-weight: 300; }
.finest-site-header .wp-block-navigation {
	font-family: var(--wp--preset--font-family--hanken-grotesk);
	font-size: 12px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}
.finest-site-header .wp-block-navigation__container { gap: 6px; }
.finest-site-header .wp-block-navigation-item__content {
	display: inline-block;
	padding: 10px 14px;
	border: 1px solid transparent;
	border-radius: 8px;
	opacity: 0.72;
	text-decoration: none;
	transition: opacity 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}
.finest-site-header .wp-block-navigation-item__content:hover,
.finest-site-header .wp-block-navigation-item__content:focus-visible { opacity: 1; border-color: rgba(247, 243, 238, 0.3); }
.finest-site-header .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content,
.finest-site-header .wp-block-navigation-item__content[aria-current="page"] {
	opacity: 1;
	font-weight: 500;
	border-color: rgba(247, 243, 238, 0.55);
}
.finest-site-header .finest-nav-login .wp-block-navigation-item__content {
	opacity: 1;
	border-color: rgba(247, 243, 238, 0.55);
	margin-left: 10px;
}
.finest-site-header .finest-nav-login .wp-block-navigation-item__content:hover { background: var(--wp--preset--color--linnen); color: var(--wp--preset--color--zwart); }
.finest-site-header :focus-visible { outline: 2px solid var(--wp--preset--color--ijs); outline-offset: 3px; }

/* Hamburger below 1024px (core switches at 600px, too early for 7 items). */
@media (max-width: 1023px) {
	.finest-site-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.finest-site-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
.finest-site-header .wp-block-navigation__responsive-container-open {
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	color: var(--wp--preset--color--linnen);
}
.finest-site-header .wp-block-navigation__responsive-container-open svg { width: 28px; height: 28px; }
.finest-site-header .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--zwart);
	color: var(--wp--preset--color--linnen);
	padding: 20px 24px 32px;
}
.finest-site-header .wp-block-navigation__responsive-container-close {
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--wp--preset--color--linnen);
}
.finest-site-header .is-menu-open .wp-block-navigation__container {
	gap: 4px;
	align-items: flex-start;
	margin-top: 28px;
}
.finest-site-header .is-menu-open .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--jost);
	font-size: clamp(1.6rem, 7vw, 2.25rem);
	font-weight: 200;
	letter-spacing: -0.01em;
	text-transform: none;
	padding: 10px 0;
	min-height: 44px;
	border: 0;
	opacity: 1;
}
.finest-site-header .is-menu-open .finest-nav-login .wp-block-navigation-item__content {
	margin: 18px 0 0;
	padding: 12px 24px;
	font-family: var(--wp--preset--font-family--hanken-grotesk);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	border: 1px solid rgba(247, 243, 238, 0.55);
	border-radius: 999px;
}

/* ---------- Buttons: ice pills, outline variant ---------- */
.wp-block-button__link { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.wp-block-button.is-style-fi-outline .wp-block-button__link {
	background: transparent;
	color: currentColor;
	border: 1px solid currentColor;
}
.wp-block-button.is-style-fi-outline .wp-block-button__link:hover,
.wp-block-button.is-style-fi-outline .wp-block-button__link:focus-visible {
	background: var(--wp--preset--color--ijs);
	border-color: var(--wp--preset--color--ijs);
	color: var(--wp--preset--color--zwart);
}
/* On black bands the primary button stays ice (v1 turned it into an outline). */
.has-zwart-background-color .wp-block-button:not(.is-style-fi-outline) .wp-block-button__link:not(.has-background),
.has-nacht-background-color .wp-block-button:not(.is-style-fi-outline) .wp-block-button__link:not(.has-background) {
	background: var(--wp--preset--color--ijs);
	color: var(--wp--preset--color--zwart);
	border: 0;
}
.has-zwart-background-color .wp-block-button:not(.is-style-fi-outline) .wp-block-button__link:not(.has-background):hover,
.has-nacht-background-color .wp-block-button:not(.is-style-fi-outline) .wp-block-button__link:not(.has-background):hover {
	background: var(--wp--preset--color--klei);
	color: var(--wp--preset--color--zwart);
}
.wp-block-button__link:focus-visible { outline: 2px solid var(--wp--preset--color--zwart); outline-offset: 3px; }
.has-zwart-background-color .wp-block-button__link:focus-visible,
.has-nacht-background-color .wp-block-button__link:focus-visible { outline-color: var(--wp--preset--color--ijs); }

/* ---------- Eyebrow ---------- */
.fi-eyebrow {
	font-family: var(--wp--preset--font-family--hanken-grotesk);
	font-size: 12px;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--wp--preset--color--klei);
	margin-bottom: 18px;
}
.fi-eyebrow--dark { color: var(--wp--preset--color--grijs); }

/* ---------- Hero ---------- */
.fi-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	padding: 0 !important;
	margin-block: 0 !important;
	gap: 0;
}
.fi-hero__text {
	padding: 48px var(--wp--preset--spacing--50) 40px;
	align-self: center;
	margin: 0 !important;
}
.fi-hero__text > * { max-width: 36rem; margin-left: 0 !important; margin-right: 0 !important; }
.fi-hero__title {
	font-family: var(--wp--preset--font-family--hanken-grotesk);
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.06;
	margin-bottom: 20px;
}
.fi-hero__sub { color: var(--wp--preset--color--klei); font-size: 18px; margin-bottom: 32px; }
.fi-hero__buttons { gap: 14px; }
.fi-hero__media { margin: 0 !important; position: relative; min-height: 340px; overflow: hidden; }
.fi-hero__media img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	object-position: center 28%;
	filter: brightness(0.82) saturate(0.85) contrast(1.08);
}
/* Reeded-glass texture over the photo: fine vertical dark lines. */
.fi-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: repeating-linear-gradient(90deg, rgba(10, 20, 23, 0.55) 0, rgba(10, 20, 23, 0.55) 2px, transparent 2px, transparent 7px);
}
@media (min-width: 900px) {
	.fi-hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); min-height: min(88svh, 880px); }
	.fi-hero__text { padding: 72px clamp(40px, 6vw, 96px); }
	.fi-hero__media { min-height: 0; }
}

/* ---------- Intro ---------- */
.fi-intro { padding: clamp(56px, 8vw, 112px) var(--wp--preset--spacing--50); }
.fi-intro__cols { gap: clamp(32px, 6vw, 96px); }
.fi-intro__lead { font-size: clamp(1.2rem, 1rem + 0.9vw, 1.65rem); line-height: 1.4; }

/* ---------- Split sections ---------- */
.fi-split {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	padding: 0 !important;
	margin-block: 0 !important;
	gap: 0;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.fi-split__media { margin: 0 !important; position: relative; min-height: 340px; overflow: hidden; }
.fi-split__media img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; }
.fi-split__text { padding: clamp(48px, 7vw, 104px) var(--wp--preset--spacing--50); align-self: center; margin: 0 !important; }
.fi-split__text > * { max-width: 34rem; margin-left: 0 !important; margin-right: 0 !important; }
.fi-split__text h2 { margin-bottom: 20px; }
@media (min-width: 900px) {
	.fi-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: min(92svh, 980px); }
	.fi-split--media-right .fi-split__media { order: 2; }
	.fi-split__text { padding-left: clamp(40px, 6vw, 96px); padding-right: clamp(40px, 6vw, 96px); }
}

/* ---------- Black closing band ---------- */
.fi-close {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 48px;
	align-items: center;
	padding: clamp(64px, 9vw, 128px) var(--wp--preset--spacing--50) !important;
	margin-block: 0 !important;
}
.fi-close__text > * { max-width: 36rem; margin-left: 0 !important; margin-right: 0 !important; }
.fi-close__mark { display: flex; justify-content: center; }
.finest-lockup--big { font-size: clamp(88px, 13vw, 168px); }
.finest-lockup--big .ll-finest { font-weight: 200; }
@media (min-width: 900px) {
	.fi-close { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); padding-left: clamp(40px, 6vw, 96px) !important; padding-right: clamp(40px, 6vw, 96px) !important; }
}

/* ---------- Optiek Stories ---------- */
.finest-stories { padding: clamp(56px, 8vw, 104px) var(--wp--preset--spacing--50); margin-block: 0 !important; }
.finest-stories__head { align-items: flex-end; margin-bottom: 40px; gap: 16px; }
.finest-stories__title { position: relative; margin: 0; padding-top: 28px; }
.finest-stories__title::before { content: ""; position: absolute; top: 0; left: 0; width: 220px; max-width: 60%; height: 4px; background: var(--wp--preset--color--zwart); }
.finest-stories__all { margin: 0; }
.finest-stories__all a { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; padding-bottom: 6px; border-bottom: 1px solid currentColor; }
.finest-stories-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px 16px;
	list-style: none;
	padding: 0;
	margin: 0;
}
@media (min-width: 900px) { .finest-stories-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 32px; } }
.finest-stories-grid > li { margin: 0; }
.finest-stories__media { margin: 0 0 14px; overflow: hidden; }
.finest-stories__media img { transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.finest-stories-grid > li:hover .finest-stories__media img { transform: scale(1.04); }
.finest-stories__label { margin: 0 0 8px; font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; }
.finest-stories__label a { text-decoration: none; color: var(--wp--preset--color--grijs); }
.finest-stories__post-title { font-family: var(--wp--preset--font-family--jost); font-weight: 300; font-size: clamp(0.95rem, 0.85rem + 0.5vw, 1.35rem); line-height: 1.3; margin: 0; }
.finest-stories__post-title a { text-decoration: none; }
.finest-stories-grid > li:hover .finest-stories__post-title a { text-decoration: underline; text-underline-offset: 5px; }

/* ---------- Footer ---------- */
.finest-footer-label { font-family: var(--wp--preset--font-family--hanken-grotesk); font-size: 11px !important; font-weight: 400; letter-spacing: 0.24em; text-transform: uppercase; color: #b9b1a5; margin-bottom: 14px; }
.finest-footer-tagline { color: var(--wp--preset--color--klei); line-height: 1.7; }
.finest-lockup--footer { font-size: 46px; margin-bottom: 18px; }

/* ---------- Mobile polish ---------- */
@media (max-width: 781px) {
	.finest-lockup--header { font-size: 22px; }
	.fi-hero__title { font-size: clamp(2rem, 8.4vw, 2.6rem); }
	.fi-hero__buttons .wp-block-button { width: 100%; }
	.fi-hero__buttons .wp-block-button__link { width: 100%; }
	.fi-close__mark { justify-content: flex-start; }
	.finest-cta-bar { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
}
@media (hover: none) {
	.finest-stories-grid > li:hover .finest-stories__media img { transform: none; }
}
/* No gap between header, page sections and footer (sections carry their own padding). */
.wp-site-blocks > * + * { margin-block-start: 0; }

/* Mobile overlay menu: core paints it white through a more specific rule, so repeat the selector chain. */
.finest-site-header .wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open,
.finest-site-header .wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--wp--preset--color--zwart);
	color: var(--wp--preset--color--linnen);
}
.finest-site-header .is-menu-open .wp-block-navigation__responsive-container-content,
.finest-site-header .is-menu-open .wp-block-navigation__container,
.finest-site-header .is-menu-open .wp-block-page-list {
	justify-content: flex-start;
	align-items: flex-start;
	text-align: left;
}
.finest-site-header .wp-block-navigation__responsive-container-close svg { width: 28px; height: 28px; }

/* Contrast: step copy on the clay band (grijs on klei is below 4.5:1). */
.fi-steps p { color: var(--wp--preset--color--warm-donker); }

/* ==========================================================================
   SPOTLIGHT SUB PAGES (v2.1.0)
   ========================================================================== */

/* Page header: the home hero in a shorter version, or a full-width dark band. */
.fi-hero--page .fi-hero__title { font-size: clamp(2.1rem, 1.4rem + 3vw, 4rem); line-height: 1.08; }
.fi-hero h1, .fi-hero h2, .fi-close h2, .fi-process h2, .fi-process h3 { color: inherit; }
.fi-hero--page { min-height: 0; }
.fi-hero--page .fi-hero__text { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }
.fi-hero--page .fi-hero__text > * { max-width: 40rem; }
.fi-hero--page .fi-hero__sub a { color: var(--wp--preset--color--ijs); text-underline-offset: 4px; }
.fi-hero--page .fi-eyebrow a { color: inherit; text-decoration: none; }
.fi-hero--text { grid-template-columns: minmax(0, 1fr); }
.fi-hero--text .fi-hero__text > * { max-width: 52rem; }
.finest-article-intro .finest-article-byline { color: var(--wp--preset--color--klei); }
@media (min-width: 900px) {
	.fi-hero--page { min-height: min(62svh, 600px); }
	.fi-hero--text { grid-template-columns: minmax(0, 1fr); min-height: 0; }
	.fi-hero--page .fi-hero__text { padding-left: clamp(40px, 6vw, 96px); padding-right: clamp(40px, 6vw, 96px); }
	.fi-hero--text .fi-hero__text { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(48px, 6vw, 80px); }
}

/* Legal pages: space between the dark header, the text and the footer. */
.fi-hero--legal + * { margin-top: clamp(40px, 6vw, 72px) !important; }
.fi-hero--legal ~ *:last-child { margin-bottom: clamp(64px, 9vw, 120px) !important; }

/* Diensten: black process band with four numbered steps. */
.fi-process { padding: clamp(64px, 9vw, 120px) var(--wp--preset--spacing--50) !important; margin-block: 0 !important; }
.fi-process .fi-eyebrow { margin-bottom: 18px; }
.fi-process__intro { max-width: 40rem; margin-left: 0 !important; margin-bottom: clamp(32px, 5vw, 64px) !important; color: var(--wp--preset--color--klei); }
.fi-process__cols { gap: clamp(28px, 4vw, 56px); }
.fi-process__num {
	font-family: var(--wp--preset--font-family--jost);
	font-weight: 200;
	font-size: clamp(2.6rem, 2rem + 2vw, 4rem);
	line-height: 1;
	color: var(--wp--preset--color--ijs);
	margin: 0 0 18px !important;
	padding-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.28);
}
.fi-process h3 { font-weight: 500; line-height: 1.25; }
.fi-process p.has-small-font-size { color: #d8d2c7; line-height: 1.65; }

/* Klantverhalen / nieuws: the grids sit in the same padded band as the home sections. */
.finest-stories--archive { padding-top: clamp(24px, 4vw, 48px); }
.finest-stories--archive .finest-pagination { margin-top: 48px; }
.fi-news .finest-blog-grid { margin-top: 8px; }
.fi-team .wp-block-columns { margin-top: 32px; gap: clamp(24px, 4vw, 56px); }

/* Contact: form on the light band under the dark header. */
.fi-intro.tfi-contact { padding-top: clamp(48px, 7vw, 96px); }

/* Sections with a heading above wide columns: the heading lines up with the columns' left edge
   (a plain constrained group would centre it in the 760px reading column). */
.fi-process > *:not(.alignwide):not(.wp-block-columns),
.fi-team > *:not(.alignwide):not(.wp-block-columns) {
	max-width: var(--wp--style--global--wide-size, 1200px);
	margin-left: auto !important;
	margin-right: auto !important;
}
.fi-process > .fi-process__intro,
.fi-team > p {
	width: min(100%, 40rem);
	margin-left: max(0px, calc((100% - var(--wp--style--global--wide-size, 1200px)) / 2)) !important;
	margin-right: auto !important;
}

/* Nieuws: category pills line up with the card grid; no double gap above the stories grid. */
.fi-news > .alignwide > * { max-width: none; margin-left: 0 !important; margin-right: 0 !important; }
.fi-intro:has(+ .finest-stories--archive) { padding-bottom: 0; }

/* Header wordmark: the tappable area grows to 44px without moving anything (invisible, so the design stays as drawn). */
.finest-site-header .finest-lockup--header { position: relative; }
.finest-site-header .finest-lockup--header::after { content: ""; position: absolute; inset: -8px -8px; }
