@charset "UTF-8";
/* =========================================================================
 * Asteri — child stylesheet
 *
 * Loaded AFTER the parent's main.css, on the frontend and in the editor.
 * The parent owns the framework (layout primitives, resets, WooCommerce);
 * this file owns the SITE'S IDENTITY only.
 *
 * Token VALUES live in theme.json. This file re-exports the child-only ones
 * and sets the things theme.json cannot express: the heading scale (a
 * component — see the parent's AGENTS.md, "Typography: two systems, one
 * boundary") and component styling.
 * ========================================================================= */

/* -------------------------------------------------------------------------
 * 1. Child-only token aliases
 *
 * The parent's main.css §1 already re-exports the shared tokens
 * (--color-text, --space-md, --radius, …). These are the ones this child adds
 * to theme.json and therefore has to alias itself.
 * ---------------------------------------------------------------------- */
:root {
	--radius-sm: var(--wp--custom--radius-sm);
	--radius-pill: var(--wp--custom--radius-pill);
	/* Running text: the colour of an ordinary paragraph. Darker than
	   --color-muted, which stays for what is deliberately quieter — leads,
	   notes, secondary labels. */
	--color-body: var(--wp--custom--color--body);
	/* The outline of a form field. The 10% hairline (--color-border) is right
	   for dividers but nearly vanishes around an input on the cream ground, so
	   a field gets the same cocoa at 45% (25% still read too faint). */
	--color-border-field: var(--wp--custom--color--border-field);
	--color-surface-alt: var(--wp--custom--color--surface-alt);
	--color-dark: var(--wp--custom--color--dark);
	/* Pure white, as a palette entry ("Bela") now that `background` is the
	   cream #FDF7EF — for the places that mean white, not "the page". */
	--color-white: var(--wp--preset--color--white);
	--band-inset: var(--wp--custom--band-inset);

	/* One step below the `xs` preset, for uppercase micro-type (card meta). Lives
	   in theme.json `settings.custom`, so it is a token without becoming a size an
	   author can pick — the convention the internal colours already use. */
	--font-size-micro: var(--wp--custom--font-size-micro);

	/* The two page fades, re-exported so pattern CSS uses the same two the editor
	   offers instead of re-declaring the gradient. The values live in theme.json
	   (settings.color.gradients) and reference the palette through var(), so a
	   retint of `background` or `white` carries the gradients with it.
	
	   THE ONE DUPLICATE TO KNOW ABOUT: each var() in theme.json carries a literal
	   hex fallback, so the two colours appear there a second time. The fallback is
	   insurance, not the working path — measured on WP 7.1, the preset vars resolve
	   in BOTH the canvas iframe and the sidebar, which is the scope that was in
	   doubt, so the fallback never fires today. It is kept for contexts not
	   measured (the Site Editor's own styles UI, inserter thumbnails), where an
	   unresolved var would paint nothing. The cost is that a palette retint has to
	   touch the fallbacks too, or a future scoping change would silently paint the
	   OLD cream. Retint `background` or `white` -> update both gradient strings.
	
	   Background only: WordPress has no gradient TEXT colour, and neither do these
	   — that needs a background-clip: text component, which the theme does not
	   ship. */
	--gradient-fade-to-white: var(--wp--preset--gradient--fade-to-white);
	--gradient-fade-to-cream: var(--wp--preset--gradient--fade-to-cream);
	/* The two three-stop fades: out to the other tone at the middle and back.
	   For a section that should start AND end on the colour of its neighbours
	   — white between two white sections, cream between two cream ones — with
	   a lift in between, where a two-stop fade would leave a hard edge at one
	   end. Same tokens, same fallback caveat as the pair above. */
	--gradient-fade-white-cream-white: var(--wp--preset--gradient--fade-white-cream-white);
	--gradient-fade-cream-white-cream: var(--wp--preset--gradient--fade-cream-white-cream);

	/* Type roles, so components never name a family directly. */
	--font-display: var(--wp--preset--font-family--display);
	--font-body: var(--wp--preset--font-family--body);

	/* Card shadow.
	   SYSTEM.md's Phase 1 table lists shadows as "a shadow token in child CSS —
	   the theme ships none, an explicit extension". This is that token, added
	   when hero-002 needed a raised card on a photograph. Three patterns still
	   hand-roll their own lift (contact-split, feature-grid hover, the header
	   submenu); folding those into this token is worth doing, but is a separate
	   change with its own before/after. */
	--shadow-card: 0 1.5rem 3rem -1.5rem color-mix(in srgb, var(--color-text) 42%, transparent);

	/* Heading scale steps.
	   Declared as tokens rather than inline on h1–h6 so a pattern that needs a
	   heading-sized element WITHOUT a heading's semantics can consume the step
	   instead of copying its clamp. Copying is how a scale silently drifts. */
	/* 42px on a phone to 90px at a 1920px window. It used to reach 90px at
	   1440px, which gave a 13-inch laptop the headline of a desktop monitor in
	   half the column: four lines in a split cover, and the button under the
	   fold. Same two ends, a longer run between them. */
	--step-h1: clamp(2.625rem, 1.86rem + 3.14vw, 5.625rem);
	/* Retuned with h1, for the same reason and so the two keep their distance:
	   38px on a phone to 70px at a 1920px window (was 1440px). */
	--step-h2: clamp(2.375rem, 1.865rem + 2.09vw, 4.375rem);
	/* Same line as before up to a 1440px window (28px on a phone, 46px there),
	   but it now keeps climbing to 54px at 1920px instead of stopping. h1 and h2
	   were retuned to top out at 1920px; left capped at 1440px, h3 fell behind
	   them on a large monitor and read a size too small. */
	--step-h3: clamp(1.75rem, 1.332rem + 1.71vw, 3.375rem);
	--step-h4: clamp(1.375rem, 1.19rem + 0.76vw, 1.875rem);
	--step-h5: clamp(1.25rem, 1.11rem + 0.57vw, 1.625rem);
	--step-h6: clamp(1.1875rem, 1.118rem + 0.29vw, 1.375rem);

	/* Display steps — ABOVE the heading scale, for the handful of places where a
	   word is the composition (a page cover, a closing call to action).

	   They exist because the heading scale stops growing at 1440px by design:
	   h1 tops out at 90px, which is right for a heading and small for a poster on
	   a wide screen. These keep tracking the viewport well past that, so a cover
	   word spans the same share of a 2560px monitor as of a laptop.

	        390px   1440px   2560px
	   display  56     181      314
	   poster   44     120      176   (cap)

	   Tokens, not per-pattern clamps, for the same reason as the steps above. */
	--step-display: clamp(3.5rem, 0.6rem + 11.9vw, 20rem);
	--step-poster: clamp(2.75rem, 0.98rem + 7.24vw, 11rem);

	/* The one easing every editorial reveal shares, so motion across patterns
	   reads as one hand. CSS transitions use it; the GSAP side names its twin
	   (`expo.out`) in each pattern.js. */
	--ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/**
 * Remove the default WordPress padding on a column with a background.
 *
 * One class of weight, not none. Core's rule is `:where(.wp-block-columns.has-background)`
 * at (0,0,0), so a reset written the same way only ties, and a tie goes to source
 * order — which LiteSpeed reverses on staging: it combines the theme's stylesheets
 * at the top and leaves core's block styles inline after them, so core's padding
 * won there (24px × 45.6px on Feature List 002's cards) and lost locally. A padding
 * set with the block's own control is inline, so it still wins over this.
 */
:where(.wp-block-columns).has-background {
	padding: 0;
}

/* -------------------------------------------------------------------------
 * 2. Typography — the heading scale
 *
 * Bespoke clamps, as the parent's §3 defines the boundary: headings are a
 * component and do NOT read the font-size presets. Every clamp interpolates
 * between the reference design's own mobile (390px) and desktop (1440px)
 * values, so the scale matches at both ends and moves smoothly between them.
 *
 *        mobile → desktop
 *   h1     42   →   90
 *   h2     38   →   70
 *   h3     28   →   46
 *   h4     22   →   30
 *   h5     20   →   26
 *   h6     19   →   22
 *
 * Hedvig Letters Serif ships a single weight (400), so no heading is bolder
 * than regular — that restraint is the face's character, not an oversight.
 * ---------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-display);
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0;
	text-wrap: balance;
}

h1 {
	font-size: var(--step-h1);
	line-height: 1.2;
}

h2 {
	font-size: var(--step-h2);
}

h3 {
	font-size: var(--step-h3);
}

h4 {
	font-size: var(--step-h4);
}

h5 {
	font-size: var(--step-h5);
}

h6 {
	font-size: var(--step-h6);
}

/* Body copy.
   The family, weight, size and line-height all come from theme.json
   (styles.typography; the size is the "base" preset). Until maxi-starter 1.9.0
   the parent's main.css hard-coded the size and line-height on `body`, so both
   had to be restated here; since 1.9.0 the parent leaves them to theme.json. */
body {
	color: var(--color-body);
}

/* Slovenian builds long compounds — "mikrodermoabrazija", "radiofrekvenca",
   "anticelulitni". At heading sizes on a 390px screen one of those is wider than
   its column, and a grid track sized `1fr` (whose minimum is min-content) grows
   to fit it, pushing the whole page sideways. The tracks are now minmax(0, 1fr)
   so they cannot grow; this lets the word itself break rather than overflow the
   track it is now confined to. Both halves are needed. */
h1, h2, h3, h4, h5, h6 {
	/* `hyphens` first, so an over-long word breaks at a real syllable boundary
	   with a hyphen. WordPress sets lang="sl-SI" on <html>, which is what lets
	   the browser use Slovenian patterns. `overflow-wrap` is the fallback for
	   engines with no sl dictionary — a hard break is ugly, but it beats a word
	   hanging out of its column. */
	hyphens: auto;
	overflow-wrap: break-word;
}

/* The menu panels' titles are Heading blocks printed as <p>
   (inc/menu-headings.php), so they stay out of the page outline. They keep
   everything a heading gets by its element: the display family (theme.json),
   the rule above, and the balanced wrap. Sizes and colour are in their own
   rules (§13b, §14b). */
.mega-cards__headline,
.mega-cards__title,
.mobile-menu__title {
	font-family: var(--font-display);
	hyphens: auto;
	overflow-wrap: break-word;
	text-wrap: balance;
}

/* Headings take the cocoa ink; body copy is the softer brown. */
h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--color-text);
}

/* -------------------------------------------------------------------------
 * 2a. Eyebrow — the small uppercase label above a heading
 *
 * A recurring device in the design: dot + letterspaced caps in the deep
 * brown, optionally inside a pill. Add `.eyebrow` to a paragraph.
 * ---------------------------------------------------------------------- */
.eyebrow {
	font-family: var(--font-body);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--color-primary-dark);
}

/* A link inside an eyebrow looks like the eyebrow, not like a link — the pill is
   the affordance, and an eyebrow rendering in a different colour from every other
   eyebrow on the site reads as a mistake. Two of them are links: the category chip
   on a single post (core/post-terms) and the "Asteri blog" chip on the archive.

   `color` is the half this rule was missing: it zeroed the underline but let the
   link keep the global link colour, so both chips rendered #986A3E against the
   #70441B of the text around them.

   `:any-link` is here for WEIGHT, not for matching. The global link colour comes
   from `:root :where(a:where(:not(.wp-element-button)))`, which is (0,1,1) — the
   same as a bare `.eyebrow a`, so that would merely TIE and resolve by stylesheet
   order, which is reversed between the front end and the editor. `:any-link` takes
   it to (0,2,1), which wins in both. */
.eyebrow a:any-link {
	color: inherit;
	text-decoration: none;
}

/* Without the colour difference the link needs some affordance of its own:
   the drawn underline of §5, with nothing at rest. */
.eyebrow a:any-link {
	--link-rest: 0%;
}

.eyebrow--pill {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	padding: 0.5em 1em;
	border-radius: var(--radius-pill);
	background: var(--color-secondary);
}

.eyebrow--pill::before {
	content: "";
	width: 0.35em;
	height: 0.35em;
	border-radius: 50%;
	background: var(--color-primary);
	flex: none;
}

/* The pill on a coloured ground.
 *
 * The pill's own fill is the sand `secondary` — the same colour as a `.band`
 * and as a section given the Sekundarna background in the editor. On those the
 * pill vanished: sand on sand, leaving a dot and some text floating with no
 * shape. There it takes the page's lightest surface instead, so it reads as a
 * pill again.
 *
 * AUTOMATIC, so nobody has to remember a class: any pill inside a sand band or
 * a sand-backgrounded block switches by itself. `eyebrow--light` is the same
 * fill as an explicit class, for a ground this cannot detect (a photograph, a
 * custom colour).
 *
 * Not for dark grounds — `.band--dark` and the dark CTA style their own labels.
 * `:where()` keeps the context at zero weight, so each rule weighs the same as
 * `.eyebrow--pill` and simply follows it in source order. */
:where(.band:not(.band--dark), .has-secondary-background-color) .eyebrow--pill,
.eyebrow--light {
	background: var(--color-surface-alt);
}

/* -------------------------------------------------------------------------
 * 2b. Heading "With image" — `is-style-inline-image`
 *
 * A picture set into the line of a heading, between two words. The author
 * places it with the heading's own toolbar (More → Inline image) and picks it
 * from the Media Library; this block style only sizes it from the TEXT, so it
 * keeps the letters' height at every width and every heading level, whatever
 * width the editor wrote.
 *
 * That width is an inline `style="width:…px"` the editor puts on every inline
 * image. An inline declaration beats any selector, so `!important` is the only
 * way past it — scoped to this style, so inline images elsewhere keep theirs.
 *
 * Cut-outs (transparent WebP/PNG) are what it is made for; a plain rectangular
 * photo works too and simply sits as a small block in the line. Leave the alt
 * text empty when the picture only decorates — the heading already says it, and
 * an alt would be read out in the middle of the sentence.
 * ---------------------------------------------------------------------- */
.wp-block-heading.is-style-inline-image img {
	display: inline-block;
	/* About the height of a capital, sitting on the baseline: the image's
	   bottom edge drops a hair below it, as a photographed object would. */
	block-size: 0.9em !important;
	inline-size: auto !important;
	max-inline-size: none;
	/* No margin: the word spaces either side already set the gap. */
	margin: 0;
	vertical-align: -0.1em;
	object-fit: contain;
}

/* -------------------------------------------------------------------------
 * 3. Buttons — pill-shaped
 *
 * The parent styles buttons off --radius, which would leave them merely
 * round-cornered. The design's buttons are full pills, so the radius is
 * overridden.
 *
 * Geometry is set through the parent's component tokens (main.css §5) rather
 * than by re-declaring the properties. Feeding the parent's rule needs no
 * specificity, so none of this has to double its class to out-weigh core's
 * `:root :where(.wp-element-button, …)` — that fight belongs to the parent now.
 * Only what has NO token stays as CSS below.
 *
 * --button-font-weight is set to 500, down from the parent's 600: the labels
 * read lighter and closer to the body text (Oct 2026). Every button reads the
 * token — core buttons, the Text style and the FluentForm submits — so this is
 * the one place to change it.
 * ---------------------------------------------------------------------- */
:root {
	--button-font-weight: 500;
	--button-border-width: 1px;
	--button-radius: var(--radius-pill);
	--button-padding: 0.9em 1.75em;
	--button-bg: var(--wp--preset--color--text);        /* #58443C */
	--button-color: var(--color-on-dark);     /* #FDF7EF */
	--button-outline-color: var(--wp--preset--color--text);

	/* The arrow and its slot reel (§3a).
	
	   The size is set so the arrow's INK matches the label's cap height — not so
	   the BOX does. The two differ, and that is what made 15px read as too tall:
	   the glyph is drawn across ~95% of the mask (the path spans 0.75–10.65 of 12,
	   and the 1.5 stroke adds half its width at each end), so a 15px box put
	   14.25px of ink against a 12.31px cap. Measured on the real button — General
	   Sans 600 at 16.8px, cap height 12.31px, 0.733em — which wants a 12.96px box.
	
	   WHOLE PIXELS, deliberately, not an em: a fractional box put the 1.5-unit
	   stroke between pixels and it shimmered through the roll. The cost is that the
	   arrow no longer scales with the label, which is fine while every button takes
	   the same `sm` size; revisit if one ever sets its own. */
	--button-arrow: 13px;          /* the window, and each glyph */
	--button-arrow-gap: 0.75em;    /* between the label and the window */
	--button-arrow-slot-gap: 10px; /* between the two glyphs on the reel */
	--button-arrow-roll: 0.45s;

	/* Secondary is frosted, not hollow. The parent defaults --button-outline-bg
	   to `transparent`; this fills it with 20% white behind the blur below.

	   Written through --color-white rather than as a literal rgba() so it stays
	   inside the token system; it resolves to exactly rgba(255, 255, 255, 0.2).
	   It used to read --color-background, back when that palette entry was
	   #fff — once the background became cream, the glass silently turned cream
	   with it. The glass is specified as WHITE, so it names white. */
	--button-outline-bg: color-mix(in srgb, var(--color-white) 20%, transparent);
}

/* Hover darkens the fill. The parent's hover sets --button-bg to
   --color-primary-dark (#70441B), which was right while the fill was primary —
   but against this text-colour fill (#58443C) it is LIGHTER, so a hover read as a
   fade rather than a press. --color-dark (#261813) is the only token darker than
   the rest fill.

   Same selectors as the parent's rule, so this ties it at (0,2,0) and wins on
   source order: this sheet loads after main.css on the front end and in the
   editor alike. It deliberately does NOT out-specify the outline variant's hover
   (`.is-style-secondary … :hover`, (0,3,0)) — that one fills with its own ink,
   and a doubled class here would tie it and override it. */
.wp-block-button__link:hover,
.wp-block-button__link:focus,
.wp-element-button:hover,
.wp-element-button:focus {
	--button-bg: var(--color-dark);
}

/* No token for these three, so they stay properties — and they still have to
   double their class. Core's button rule is not only about colour: it also ships
   `font-family: inherit; font-size: inherit; letter-spacing: inherit`, so a
   single class merely TIES it at (0,1,0) and the winner is decided by source
   order — theme last on the front end, core last in the editor. Verified: the
   type is correct on the front end either way, and would fall back to `inherit`
   in the canvas without the doubling. */
.wp-block-button__link.wp-block-button__link,
.wp-element-button.wp-element-button {
	font-family: var(--font-body);
	font-size: var(--wp--preset--font-size--sm);
	letter-spacing: 0.01em;
	/* Capitals are the site's button voice, so they are the default rather
	   than a per-button setting: most buttons were being given the Uppercase
	   control one by one, and the ones that were missed read as a different
	   component. A button can still opt out with its own Letter case setting —
	   that is an inline style, which outranks this. */
	text-transform: uppercase;
}

/* -------------------------------------------------------------------------
 * 3a. Button arrow — the slot reel
 *
 * Every core button carries an arrow on the right. On hover it rolls up out of
 * its window while an identical one rolls in beneath it. The background is left
 * alone entirely — it keeps the plain hover it always had.
 *
 * THE MASK NEVER MOVES. This was first built with pseudo-elements, where the
 * only way to move the glyph is to animate `mask-position`, because the glyph IS
 * the mask. An SVG mask is re-rasterised at every new position, and under a fast
 * pointer that flashed — no tuning removes it, it is inherent to animating a
 * mask. So `inc/button-arrow.php` injects a real element instead: the mask is
 * static and rasterised once, and what animates is a `transform` on the reel
 * inside an `overflow: hidden` window, which is composited and never repaints.
 *
 * It also decouples the gap. As a mask it had to be empty space inside the SVG's
 * viewBox, kept in step with a ratio in this file; now it is just a margin.
 * ---------------------------------------------------------------------- */
.wp-block-button__link.wp-block-button__link {
	/* Ties the parent's `inline-block` at (0,2,0) and wins on source order, which
	   is child-last in the editor as well as on the front end. */
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--button-arrow-gap);
}

/* The window. Square, and the only thing here that clips. */
.button-arrow {
	flex: none;
	inline-size: var(--button-arrow);
	block-size: var(--button-arrow);
	overflow: hidden;
}

.button-arrow__reel {
	display: block;
	transition: transform var(--button-arrow-roll) ease;
}

.button-arrow__glyph {
	display: block;
	inline-size: var(--button-arrow);
	block-size: var(--button-arrow);
	/* currentColor, so the arrow simply IS the label's colour — primary, Secondary
	   and the on-dark patterns all get the right arrow with no tokens of their own. */
	background-color: currentColor;
	/* Bump the ?v= whenever the SVG changes: deploy.sh versions what WordPress
	   enqueues, but a url() inside a stylesheet gets none of that, so a returning
	   visitor would keep the old artwork. */
	-webkit-mask: url("../masks/arrow-corner.svg?v=3") center / contain no-repeat;
	mask: url("../masks/arrow-corner.svg?v=3") center / contain no-repeat;
}

.button-arrow__glyph + .button-arrow__glyph {
	margin-block-start: var(--button-arrow-slot-gap);
}

/* Deliberately SHORTER than the window, so the incoming arrow is already on
   screen before the outgoing one has left. At a gap equal to the window the reel
   shows nothing at the midpoint of every roll, which reads as a blink. */
.wp-block-button__link:hover .button-arrow__reel,
.wp-block-button__link:focus-visible .button-arrow__reel,
.arrow-link a:hover .button-arrow__reel,
.arrow-link a:focus-visible .button-arrow__reel {
	transform: translateY(calc(-1 * (var(--button-arrow) + var(--button-arrow-slot-gap))));
}

/* Sideways — `button-arrow--next` / `button-arrow--prev` on the window: the
   same corner glyph turned to point right or left, and a reel that rolls the
   way the arrow points. The resting arrow leaves on that side while the next
   comes in from behind it. Used by the slider arrows of Posts Slider 001 and
   Testimonial Slider 002 (each pattern's script builds the reel), so it lives
   here, not in either pattern.

   The window is 6px larger than the glyph, with the glyph centred (3px in from
   each edge): turned, the arrow runs along its diagonal, longer than its own
   side, and a window the glyph's size clipped its ends. The glyphs sit in a
   row, `--button-arrow-slot-gap` apart, as they stack in the vertical reel.
   For next, the reel is shifted left by one step, so the visible arrow is
   the last one and the next one waits to its left. */
.button-arrow--next,
.button-arrow--prev {
	--button-arrow-window: calc(var(--button-arrow) + 6px);
	--button-arrow-step: calc(var(--button-arrow) + var(--button-arrow-slot-gap));
	inline-size: var(--button-arrow-window);
	block-size: var(--button-arrow-window);
}

.button-arrow--next .button-arrow__reel,
.button-arrow--prev .button-arrow__reel {
	display: flex;
	inline-size: max-content;
	padding: 3px;
}

.button-arrow--next .button-arrow__reel {
	margin-inline-start: calc(-1 * var(--button-arrow-step));
}

.button-arrow--next .button-arrow__glyph,
.button-arrow--prev .button-arrow__glyph {
	flex: none;
}

.button-arrow--next .button-arrow__glyph {
	rotate: 45deg;
}

.button-arrow--prev .button-arrow__glyph {
	rotate: -135deg;
}

.button-arrow--next .button-arrow__glyph + .button-arrow__glyph,
.button-arrow--prev .button-arrow__glyph + .button-arrow__glyph {
	margin-block-start: 0;
	margin-inline-start: var(--button-arrow-slot-gap);
}

:where(button, a):hover:not(:disabled) > .button-arrow--next .button-arrow__reel,
:where(button, a):focus-visible > .button-arrow--next .button-arrow__reel {
	transform: translateX(var(--button-arrow-step));
}

:where(button, a):hover:not(:disabled) > .button-arrow--prev .button-arrow__reel,
:where(button, a):focus-visible > .button-arrow--prev .button-arrow__reel {
	transform: translateX(calc(-1 * var(--button-arrow-step)));
}

@media (prefers-reduced-motion: reduce) {
	.button-arrow__reel {
		transition: none;
	}
}

/* Phone button — add `has-phone-icon` to a Button block (Advanced → Additional
   CSS class) whose label is a phone number and whose link is `tel:`.

   The arrow's slot is reused as it is: the same reel, the same roll on hover.
   Only two things change. The glyph is the handset instead of the arrow, and
   the row is reversed so the icon LEADS the number — an icon that names what
   the text is reads before it, where an arrow that says "go" reads after.
   A step larger than the arrow, because a handset has more detail to resolve;
   whole pixels, for the reason §3's arrow gives. */
.wp-block-button.has-phone-icon .wp-block-button__link {
	flex-direction: row-reverse;
	--button-arrow: 16px;
}

.wp-block-button.has-phone-icon .button-arrow__glyph {
	-webkit-mask-image: url("../masks/phone.svg?v=1");
	mask-image: url("../masks/phone.svg?v=1");
}

/* The header's call button, on phones and tablets in place of a booking icon:
   the handset alone, the number kept as the link's text so a screen reader
   still announces it. A Text-style button with `has-phone-icon` (above), so it
   is the same glyph and the same roll on press; here it loses its label
   visually (font-size 0 — the reel is sized in px, so it stays) and becomes a
   44px square tap target, the size of the menu toggle opposite it. The glyph is
   a step larger than in a button, to weigh the same as the toggle's lines.
   Three classes, over the Text style's (0,2,0) padding and the button's type. */
.site-header__call .wp-block-button.has-phone-icon .wp-block-button__link {
	--button-arrow: 22px;
	justify-content: center;
	inline-size: 2.75rem;
	block-size: 2.75rem;
	padding: 0;
	gap: 0;
	font-size: 0;
}

/* A phone number must never break across lines. */
.wp-block-button.has-phone-icon .wp-block-button__link {
	white-space: nowrap;
	font-variant-numeric: lining-nums tabular-nums;
}

/* The arrow on a text link — a paragraph with the class `arrow-link`
   (inc/button-arrow.php puts the same reel inside its link). The link becomes a
   small flex row so the arrow sits on the text's centre line at the button's
   own gap; everything else about the reel is the rules above. */
.arrow-link a {
	display: inline-flex;
	align-items: center;
	gap: var(--button-arrow-gap);
	/* The arrow is this link's hover; it takes no drawn underline (§5). */
	background-image: none;
}

/* Buttons change state INSTANTLY — no colour fade.
 *
 * Isolated by testing the three things layered on a button independently: with the
 * fade off the button is calm whether the arrow and the blur are on or off; with
 * the fade on it flashes even with both of them gone. So the fade is the cause and
 * neither of the others is.
 *
 * What it actually is: a fade makes hover OSCILLATION visible. Grazing the edge of
 * a button toggles `:hover` on and off repeatedly — and so does the sticky
 * auto-hide header sliding out from under a stationary cursor, which is why the
 * header button was the worst and why it seemed random. Each toggle restarts the
 * transition, so the button pulses. Without a transition the same toggling is
 * invisible, because both states paint instantly and identically.
 *
 * Two selectors because two rules have to be beaten: the parent's at (0,2,0), and
 * the header-alt easing further down this file. That second one is itself (0,3,0),
 * so matching it would only TIE — and it is declared LATER, so the tie goes to it.
 * Measured exactly that on the first attempt: content buttons went to `none` while
 * the header CTA kept its 0.3s. Hence the third class, for (0,4,0).
 *
 * The reel's own `transform` transition is untouched — it lives on a child, and
 * the tests confirmed it is not involved.
 *
 * COST, accepted: if a `.header-alt` band is ever added, the header CTA will snap
 * between the two looks while the rest of the bar eases. No page carries one today
 * (checked: zero `.header-alt` elements site-wide), so this is theoretical for now
 * — but it is the thing to revisit if that feature gets used.
 */
.wp-block-button__link.wp-block-button__link,
.site-header__actions .wp-block-button__link.wp-block-button__link.wp-block-button__link {
	transition: none;
}

/* The blur behind Secondary's translucent fill.
 *
 * The fill itself is a token (--button-outline-bg, set at the top of §3), but
 * there is no token for a filter, so this is the one part of the frosted look
 * that has to be a property. `.is-style-outline` is on the same rule because it
 * is aliased to Secondary below — a frosted fill with nothing blurred behind it
 * would be the one place the two visibly diverged.
 *
 * Only (0,2,0), deliberately: the four on-dark treatments in the pattern
 * packages (hero-001, hero-003, cta-band-001, faq-accordion-001) declare their
 * own tint, border and blur at (0,3,0) and must keep winning. They are the same
 * effect on a dark ground — light fill, light border, light label — so they are
 * now duplicating this at a different opacity, and folding them onto the tokens
 * is worth doing as its own change with its own before/after.
 *
 * Prefixed for Safari, which still needs -webkit- for backdrop-filter. Left on
 * through :hover as well: the hover fills solid, so the blur has nothing to
 * sample and costs nothing visible, and dropping it there would mean a second
 * rule for no gain. */
.is-style-secondary .wp-block-button__link,
.is-style-outline .wp-block-button__link,
.wp-block-button__link.is-style-outline {
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

/* Core's own "Outline" button style, made to match Secondary.
 *
 * core/button ships two styles in its block.json — Fill (default) and Outline —
 * and the framework registers a third, Secondary, which is ITS outline variant.
 * So the editor's style picker offers Outline and Secondary side by side, and
 * only one of them worked: every rule core writes for Outline is
 * `:root :where(…)`, which weighs (0,1,0), while the parent paints buttons from
 * `.wp-block-button__link.wp-block-button__link` at (0,2,0). The parent wins all
 * four — background, colour, border and padding — so picking Outline changed
 * nothing and the button stayed filled. Measured on /aparature/vacushape/:
 * `background: rgb(88, 68, 60)`, identical to the Fill button beside it.
 *
 * Rather than out-specify core (which would fight the parent instead), this
 * feeds the parent's own outline tokens, exactly as the parent's
 * `.is-style-secondary` rule does — so the two styles stay identical by
 * construction, and a retune of --button-outline-* moves both.
 *
 * Both class placements are covered because core styles both: the editor puts
 * `is-style-outline` on the wrapper, but the class is legal on the link too. */
.is-style-outline .wp-block-button__link,
.wp-block-button__link.is-style-outline {
	--button-bg: var(--button-outline-bg);
	--button-color: var(--button-outline-color);
	--button-border-color: var(--button-outline-color);
}

/* (0,3,0), so it beats the rule above — and it has to exist, because that rule
   at (0,2,0) already out-weighs the generic `:hover` at (0,1,1) further up, so
   without this an Outline button would have no hover at all. */
.is-style-outline .wp-block-button__link:hover,
.is-style-outline .wp-block-button__link:focus,
.wp-block-button__link.is-style-outline:hover,
.wp-block-button__link.is-style-outline:focus {
	--button-bg: var(--button-outline-color);
	--button-color: var(--color-on-dark);
	--button-border-color: var(--button-outline-color);
}

/* The "Text" button style (inc/block-styles.php): the label and its arrow,
 * nothing else — no fill, no outline, no side padding, so the label starts on
 * the content's edge. The vertical padding stays, so a Text button beside a
 * filled one sits on the same line and has the same hit height.
 *
 * Sentence case, not the buttons' capitals: set as a phrase it reads as a link
 * to follow, which is the point of the style. The arrow reel (§3a) rolls on
 * hover exactly as on every other button.
 *
 * It feeds the parent's button tokens rather than overriding properties, the
 * same way the Outline alias above does, so the border keeps its width (just
 * transparent) and the box measures like its neighbours. Both class placements,
 * because the editor puts the style class on the wrapper but it is legal on the
 * link too. (0,2,0): ties the parent's doubled-class button rule and wins on
 * source order, which is child-last in the editor as well. */
.is-style-text .wp-block-button__link,
.wp-block-button__link.is-style-text {
	--button-bg: transparent;
	--button-color: var(--color-text);
	--button-border-color: transparent;
	padding-inline: 0;
	text-transform: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

/* (0,3,0): over the generic hover at (0,1,1), which would otherwise fill it. */
.is-style-text .wp-block-button__link:hover,
.is-style-text .wp-block-button__link:focus,
.wp-block-button__link.is-style-text:hover,
.wp-block-button__link.is-style-text:focus {
	--button-bg: transparent;
	--button-color: var(--color-dark);
	--button-border-color: transparent;
}

/* -------------------------------------------------------------------------
 * 4. Rounded surfaces
 *
 * The parent squares everything by default (main.css §2, `border-radius: 0`).
 * This design is soft-cornered throughout, so media and card surfaces opt back
 * in. The reset is a bare `*` selector at specificity (0,0,0), so any class or
 * element rule below beats it.
 * ---------------------------------------------------------------------- */
.wp-block-image img,
.wp-block-image .wp-block-image__crop-area,
.wp-block-post-featured-image img,
.wp-block-cover,
.wp-block-video video,
.wp-block-embed iframe {
	border-radius: var(--radius);
}

/* -------------------------------------------------------------------------
 * 4a. Band — the inset, rounded, full-width section
 *
 * The design's signature container: a colour block inset from the viewport by
 * a gutter and rounded, rather than bleeding edge to edge. Put `.band` on a
 * full-width Group; it still holds a `.site-container` inside.
 *
 * `.section` (vertical rhythm) comes from the parent and composes with this.
 * ---------------------------------------------------------------------- */
/*
 * The fill is painted by a pseudo-element inset from the section's edges, NOT by
 * sizing the section itself.
 *
 * Why: the parent owns full-bleed via `.site-main .alignfull { margin-inline:
 * calc(-1 * var(--gutter)) }` — and mirrors it in the editor with a DIFFERENT,
 * heavier selector (`.wp-block-post-content.is-root-container .alignfull`). A
 * `width` + `margin-inline: auto` on .band loses to both, which left the band
 * flush against the left edge with all the slack on the right. Out-specifying
 * would mean beating (0,3,0) in one context and (0,2,0) in the other — a rule
 * that has to win two different fights is a rule that will lose one of them
 * later. Compositing on top of the framework's mechanism instead means there is
 * no fight: the section still bleeds exactly as the parent intends, and the
 * visible band is drawn inside it.
 */
.band {
	position: relative;
}

.band::before {
	content: "";
	position: absolute;
	inset-block: 0;
	inset-inline: var(--band-inset);
	z-index: -1;
	border-radius: var(--radius);
	background: var(--color-secondary);
}

/* A band that is given a Background of its own (colour or gradient, in the
   editor) is a plain full-bleed section: the background fills it edge to edge
   and the inset panel has no part to play.

   That was already what you saw, but only by accident of paint order — the
   panel sits at z-index -1, which puts it BEHIND the section's own background
   as long as the section is not a stacking context. Anything that makes it one
   (the recede effect's `z-index`, a transform, an opacity) lifts the panel in
   front of the background instead, and the author's gradient vanishes under a
   sand box with a margin. Said outright, it no longer depends on that. */
.band.has-background::before {
	content: none;
}

.band--surface::before {
	background: var(--color-surface);
}

.band--dark::before {
	background: var(--color-dark);
}

.band--dark {
	color: var(--color-on-dark);
}

.band--dark :is(h1, h2, h3, h4, h5, h6) {
	color: var(--color-on-dark);
}

/* On a phone the panel sits close to the screen edge. The token is retuned on
   :root, not on `.band`, so a pattern that draws its own inset panel
   (price-list-002) can stand on the same line. And the band then pads itself
   by that inset: its content already keeps the page gutter from the SCREEN,
   which left it only half a gutter from the PANEL's edge — tight enough to read
   as text running into the side of its own box. Weighted (0,3,0) to outrank
   `.section.has-background` just below, which zeroes inline padding at
   (0,2,0) and comes later in the file. */
@media (max-width: 48rem) {
	:root {
		--band-inset: 0.625rem;
	}

	.site-main .band.band {
		padding-inline: var(--band-inset);
	}
}

/* -------------------------------------------------------------------------
 * 4b. Full width, but not full bleed
 *
 * The site's gutter is a PAIR of rules in the parent (main.css §4):
 *
 *     .site-main            { padding-inline: var(--gutter); }
 *     .site-main .alignfull { margin-inline: calc(-1 * var(--gutter)); }
 *
 * — the page is inset by the gutter, and a Full-width block cancels that inset
 * with an equal negative margin so its background reaches the screen edge.
 *
 * So "full width, but keep the gutter" is not a width calculation at all: it is
 * simply declining the breakout. Add `has-gutter` in Advanced → Additional CSS
 * class(es) and the block sits at the page's own width — exactly the gutter
 * `.site-container` uses, because it is literally the same declaration being
 * undone. Nothing to keep in sync, and no second value to drift.
 *
 * The first version of this rule did compute a width
 * (`width: calc(100% - var(--gutter) * 2); margin-inline: auto`) and was wrong in
 * a way worth recording: `margin-inline: auto` also discards the breakout, so the
 * block lost the gutter twice over — measured 60px of inset against the intended
 * 30px, and a different 30px when nested inside a full-bleed parent, because the
 * two contexts start from different margins.
 *
 * Scoped to `.site-main` (and the editor's `.is-root-container`) so it pairs with
 * the exact rule it cancels, and out-specifies it at (0,3,0) vs (0,2,0).
 *
 * ⚠ Do NOT add it to a band that already wraps a `.site-container` — that band is
 * meant to be full-bleed, and its inner container is already supplying the gutter.
 *
 * ⚠ It only works on a block whose edges come from the breakout — i.e. one sitting
 * in the page's own content. A Full-width block nested inside an already
 * full-bleed parent simply fills that parent, so there is no negative margin to
 * decline and the class does nothing (measured: still 0px of gap). Put the class
 * on the OUTERMOST full-width block instead.
 * ---------------------------------------------------------------------- */
.site-main .alignfull.has-gutter,
.wp-block-post-content.is-root-container .alignfull.has-gutter {
	margin-inline: 0;
}

/* -------------------------------------------------------------------------
 * 4c. A wider section
 *
 * `section--wide` on a full-width section widens the `.site-container` inside
 * it from the site's standard measure to the wide one the pinned-photo and
 * technology sections use — for a section that reads better with more room on
 * a large monitor.
 *
 * It works by re-pointing the container token for that section only, so
 * `.site-container` keeps its own formula and its gutter; nothing is
 * re-declared. On screens narrower than the wide measure there is no visible
 * difference: the viewport is the limit there, not the container.
 *
 * The value matches the cap in Feature List 003 and Feature Split 002. If those
 * are ever retuned, this should follow.
 * ---------------------------------------------------------------------- */
.section--wide {
	--container-width: 104rem;
}

/* A section given a Background colour in the editor keeps its own edges.
 *
 * Core pads any Group that has a background
 * (`:where(.wp-block-group.has-background) { padding: 1.25em 2.375em }`). On a
 * `.section` the vertical half already loses to the section's rhythm, but the
 * horizontal half survives — and a section's content is inset by its
 * `.site-container`, so that padding is a SECOND inset: 38px a side on a phone,
 * on top of the gutter. Zeroed here so "pick a background colour" is all an
 * author has to do to get a full-bleed coloured section. (0,2,0) over a
 * weight-0 `:where()`. */
.section.has-background {
	padding-inline: 0;
}

/* -------------------------------------------------------------------------
 * 5. Links in content
 * ---------------------------------------------------------------------- */
.wp-block-post-content a:not(.wp-element-button):not(.wp-block-button__link) {
	color: var(--color-primary-dark);
	text-decoration: none;
}

/* The underline, drawn rather than decorated, so it can move.
 *
 * Two hairlines along the foot of the link: a faint one that is always there
 * (a share of the link's own colour, so it holds on any ground), and over it a
 * line in the full colour that is drawn in from the left on hover and leaves
 * to the right when the pointer goes — the start edge flips with the state,
 * which is what makes it travel through rather than shrink back.
 *
 * They are backgrounds, not `text-decoration`, because a decoration cannot be
 * drawn progressively. A background on an inline link is one continuous strip
 * across its line breaks, so on a link that wraps the line travels along the
 * first row and carries on along the next.
 *
 * WRITTEN AT ZERO SPECIFICITY, on purpose. A link that should carry no line —
 * an arrow link, a card that is itself a link, a title — says so with
 * `background-image: none` beside its `text-decoration: none`, and any
 * selector at all outranks this one, in the editor as on the front end.
 * Left out by shape: buttons, groups that are links, and links around an
 * image or an icon.
 *
 * Two knobs, for a context to set on the link or above it:
 *   --link-line   the resting line's colour
 *   --link-rest   the resting line's length: 100% (always underlined) or 0%
 *                 (underlined only while hovered)
 * The footer's links and a link inside an eyebrow use the second. */
:where(
	.wp-block-post-content a:not(.wp-element-button, .wp-block-button__link, .wp-block-group, :has(img, svg, picture)),
	.site-footer a:not(.wp-element-button, .wp-block-button__link, :has(img, svg, picture)),
	.wp-block-template-part:has(> .site-footer__inner) a:not(.wp-element-button, .wp-block-button__link, :has(img, svg, picture))
) {
	padding-block-end: 0.1em;
	background-image:
		linear-gradient(currentColor, currentColor),
		linear-gradient(var(--link-line, color-mix(in srgb, currentColor 30%, transparent)), var(--link-line, color-mix(in srgb, currentColor 30%, transparent)));
	background-repeat: no-repeat;
	background-position: 100% 100%, 0 100%;
	background-size: 0% 1px, var(--link-rest, 100%) 1px;
	transition: background-size 0.6s var(--ease-out-expo), color 0.3s ease;
}

:where(
	.wp-block-post-content a:not(.wp-element-button, .wp-block-button__link, .wp-block-group, :has(img, svg, picture)),
	.site-footer a:not(.wp-element-button, .wp-block-button__link, :has(img, svg, picture)),
	.wp-block-template-part:has(> .site-footer__inner) a:not(.wp-element-button, .wp-block-button__link, :has(img, svg, picture))
):is(:hover, :focus-visible) {
	background-position: 0 100%, 0 100%;
	background-size: 100% 1px, var(--link-rest, 100%) 1px;
}

@media (prefers-reduced-motion: reduce) {
	:where(.wp-block-post-content, .site-footer, .wp-block-template-part) a {
		transition: none;
	}
}

/* -------------------------------------------------------------------------
 * 6. Focus
 *
 * The palette is low-contrast and warm, so the default focus ring is easy to
 * lose. Make it explicit and keyboard-only.
 * ---------------------------------------------------------------------- */
:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 3px;
	border-radius: var(--radius-sm);
}

/* -------------------------------------------------------------------------
 * 7. Section head
 *
 * Pill eyebrow + heading + lead. Used by nearly every pattern, so it lives here
 * rather than in any one pattern package — the "component TWO patterns share"
 * case from the parent's AGENTS.md. Patterns compose it; none of them owns it.
 * ---------------------------------------------------------------------- */
.section-head {
	max-width: 44rem;
	margin-block-end: var(--space-md);
}

.section-head--center {
	margin-inline: auto;
	text-align: center;
}

.section-head__title {
	margin-block: var(--space-sm) 0;
}

.section-head__lead {
	margin-block: var(--space-sm) 0;
	font-size: var(--wp--preset--font-size--lg);
	line-height: 1.5;
	color: var(--color-body, var(--color-muted));
}

.section-head--center .section-head__lead {
	max-width: 34rem;
	margin-inline: auto;
}

/* Wide: for a head whose heading should run on one line and whose lead is a
   couple of full sentences. The default caps (44rem, and 34rem for a centred
   lead) suit a short label-like heading; under a long question they stack the
   heading in two and the lead in four, a tall narrow column over a wide grid.
   Opt-in per head — add `section-head--wide` beside the other classes.
   The lead rule is (0,3,0) so it out-weighs the centred lead's cap above. */
.section-head--wide {
	max-width: 62rem;
}

.section-head--center.section-head--wide .section-head__lead {
	max-width: 48rem;
}

/* The eyebrow, as a pill with a leading dot. Overrides the plain .eyebrow
   spacing when both classes are present. */
.section-head .eyebrow {
	margin-block: 0;
}

/* -------------------------------------------------------------------------
 * 7a. Icon chip
 *
 * A small rounded badge holding a core Icon block. The reference design leans
 * on these throughout — beside list items, at the top of cards.
 * ---------------------------------------------------------------------- */
.icon-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 2.75rem;
	block-size: 2.75rem;
	flex: none;
	border-radius: var(--radius-pill);
	background: var(--color-surface);
	color: var(--color-primary);
	box-shadow: inset 0 0 0 1px var(--color-border);
}

.icon-chip .wp-block-icon,
.icon-chip svg {
	inline-size: 1.25rem;
	block-size: 1.25rem;
}

.band .icon-chip {
	background: var(--color-background);
}

/* -------------------------------------------------------------------------
 * 7b. Check list
 *
 * Icon-chip bullet rows, as used beside the practitioner portrait and in the
 * benefit lists of the reference.
 * ---------------------------------------------------------------------- */
.check-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--space-sm);
}

.check-list li {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
	margin: 0;
}

.check-list li::before {
	content: "";
	inline-size: 1.65rem;
	block-size: 1.65rem;
	flex: none;
	border-radius: var(--radius-pill);
	background: var(--color-secondary);
	/* The tick is a MASK, not a background-image, so its colour comes from
	   background-color — i.e. from a token — and survives a re-skin. A colour
	   written inside a data-URI could never read a CSS variable. */
	-webkit-mask: var(--check-mask) center / 0.85rem no-repeat;
	mask: var(--check-mask) center / 0.85rem no-repeat;
	background-color: var(--color-primary);
	box-shadow: inset 0 0 0 1px var(--color-border);
}

/* An item holding a link. A flex row makes every run of text and every inline
   element its own flex item, so "<a>Name</a> — description" would break into
   three columns. Such an item flows as ordinary text instead, with the marker
   taken out of flow and centred on it — the same picture as the flex row. */
.check-list li:has(a) {
	display: block;
	position: relative;
	padding-inline-start: calc(1.65rem + var(--space-sm));
}

.check-list li:has(a)::before {
	position: absolute;
	inset-inline-start: 0;
	inset-block-start: 50%;
	translate: 0 -50%;
}

/* The masks are written `data:image/svg+xml,…` — never `…svg+xml,…`. The
 * semicolon in `;utf8` made LiteSpeed's CSS minifier misread these custom
 * properties, after which it left the whole rest of this file unminified: the
 * combined stylesheet shipped ~85KB of comments and whitespace (2026-11-01). */
:root {
	--arrow-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23000' d='M4,11.15 L18.2,11.15 L18.2,12.85 L4,12.85 Z M12.6,6.1 L13.8,5.05 L19.9,12 L13.8,18.95 L12.6,17.9 L17.7,12 Z'/></svg>");
	--check-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23000' d='M4.79,13.31 L9.29,17.81 L10.71,16.39 L6.21,11.89 Z M10.75,17.77 L19.25,8.27 L17.75,6.93 L9.25,16.43 Z'/></svg>");
}

/* -------------------------------------------------------------------------
 * 7c. Media frame
 *
 * A rounded, cropped image with an optional caption bar across the bottom —
 * the treatment the reference uses for portraits and treatment photography.
 * ---------------------------------------------------------------------- */
.media-frame {
	position: relative;
	margin: 0;
	border-radius: var(--radius);
	overflow: hidden;
}

.media-frame img {
	display: block;
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
}

.media-frame__caption {
	position: absolute;
	inset-inline: var(--space-sm);
	inset-block-end: var(--space-sm);
	margin: 0;
	padding: var(--space-sm);
	border-radius: var(--radius-sm);
	background: color-mix(in srgb, var(--color-dark) 55%, transparent);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	color: var(--color-on-dark);
	font-size: var(--wp--preset--font-size--sm);
}

/* -------------------------------------------------------------------------
 * 8. Site header
 *
 * The child overrides parts/header.html (logo · nav · enquiry button), so the
 * layout rules that only make sense with that markup live here. The parent
 * still owns the BAR itself — background, border, sticky/auto-hide behaviour —
 * which is why the part keeps the framework's .site-header__* class names.
 * ---------------------------------------------------------------------- */
/* --- The floating pill --------------------------------------------------
   The header is a FLOATING GLASS PILL on every page: the template-part wrapper
   is a transparent, borderless carrier, and `.site-header__inner` is the only
   thing that paints.

   The doubled class is load-bearing. The parent paints the bar with
   `.site-header, .wp-block-template-part:has(> .site-header__inner)` — (0,1,0)
   and (0,2,0). A bare `.site-header` would LOSE to the `:has()` half, so match
   the wrapper's two classes to tie at (0,2,0) and win on source order (the
   child loads later). Every template part renders both classes.

   The top gap is PADDING on the carrier, not a margin on the pill: a margin
   would collapse up through the header and leave a strip of page background
   above it. Padding also keeps the gap inside `header.offsetHeight`, which is
   what header.js publishes as --header-height and what the hero pull-up uses. */
.site-header.wp-block-template-part {
	/* background: transparent; */
	border-bottom: 0;
}

.site-header {
	/*padding-block-start: var(--space-sm);*/
	--space-sm: 2.25rem;
}

/* The pill itself. Frosted in BOTH states — it never becomes a solid bar; only
   the ink and the tint flip (§12).

   The pill's BOX spans the content width and its contents are inset by the
   pill's own padding. Solar instead grows the container by 2× the padding so the
   pill's CONTENT box equals the content width and the logo lands on the page's
   content edge. That was rejected here: the grown cap (1360 + 2×50 = 1460px)
   only fits above a ~1520px viewport, so at 1440 — the design width — the
   container clamps to the viewport and the alignment silently breaks by 40px a
   side. A pill is a distinct floating object; its own edge aligning to the
   content grid reads correctly and holds at every width. */
.site-header__inner {
	gap: var(--space-sm);
	padding: var(--space-xs) var(--space-md);
	border: var(--border);
	border-radius: var(--radius-pill);
	background: color-mix(in srgb, var(--color-surface) 72%, transparent);
	/* Warm shadow (site ink, not black) so the pill reads as a raised object over
	   cream content, where a white-tinted glass would otherwise be invisible. */
	box-shadow: 0 0.75rem 2rem -0.75rem color-mix(in srgb, var(--color-text) 30%, transparent);
	-webkit-backdrop-filter: blur(14px) saturate(130%);
	backdrop-filter: blur(14px) saturate(130%);

	background:transparent;
	border:none;
	padding:var(--space-sm) 0;
	box-shadow:none;
	backdrop-filter:none;
}

/* Both of these queries used to narrow the bar's `padding-inline` as well, on
   the reasoning that the pill's side padding ate into a narrow viewport. Those
   declarations never applied: a later plain rule (see "the bar sits on the
   gutter", further down) sets `padding-inline: var(--gutter)` at the same
   (0,1,0) specificity with no media query, so it won at every width — measured
   19.5px at 390px, which is the gutter and not `--space-sm`. The bar has sat on
   the gutter line ever since that rule landed, which is the intended behaviour,
   so removing them changes nothing; they only made the file look as though the
   narrow widths were handled somewhere they were not. The second query went
   with its last declaration, and note it was keyed to 30rem, which is not one
   of the theme's three breakpoints either. */
@media (max-width: 48rem) {
	.site-header__inner {
		/* A 116px bar on a phone: 36px of padding either side of 44px of
		   content. The padding is the whole of the excess — the content is just
		   the drawer toggle at its 2.75rem box — so bringing it to `xs` takes
		   the bar to 64px without touching anything inside it.

		   NOT `var(--space-sm)`, which is what the parent's rule uses: the
		   header redefines that token locally (`.site-header { --space-sm:
		   2.25rem }`) to set its own height, so inside this element `sm` means
		   36px, not the scale's 20px. `xs` is not shadowed and means what it
		   says.

		   Plus 0.3rem a side (Oct 2026): at bare `xs` the bar felt pressed
		   against the logo; this gives it about 5px more air top and bottom.
		   Bespoke, a small nudge rather than a step of the scale. */
		padding-block: calc(var(--space-xs) + 0.3rem);
	}
}

/* The logo IS the wordmark, so the Site Title block is not rendered at all in
   the child's header. Nothing to hide — this only sizes the mark. The width
   attribute on the block sets the upper bound; this keeps it from growing past
   the bar on small screens. */
.site-header__brand .wp-block-site-logo img {
	/* A DEFINITE width, not `auto` under a max-width. With both dimensions
	   auto the image has no size at all until its file arrives — the width
	   and height attributes only give the browser a ratio, and a ratio needs
	   one real dimension to work from. So for a frame or more on every page
	   load the logo was 0px tall, the bar was 16px shorter, and when the file
	   landed the menu and the button dropped 8px into place: the flicker in
	   the header on each navigation. Sized like this, the height is reserved
	   from the first paint. */
	width: min(170px, 42vw);
	/* And not capped at 100% of its column. The column is sized by its
	   content, and an image that may shrink to 100% of its container tells
	   the layout its smallest width is zero — so the grid squeezed the logo's
	   column, and the logo with it, down to a few pixels on a phone. */
	max-width: none;
	height: auto;
}

.site-header__end {
	align-items: center;
	gap: var(--space-md);
}

/* Nav: smaller than body copy, because seven items plus a button is a lot of
   bar. Below the desktop breakpoint core's overlay takes over. */
/* The parent sets the header's links a step heavier than the body (500). This
   site's text is the regular weight throughout, the header included. Two
   classes, over the parent's `.site-header__nav a`. */
.site-header .site-header__nav a {
	font-weight: 400;
}

.site-header__nav {
	/* font-size: var(--wp--preset--font-size--sm); */

	/* The links' colour is set HERE, on the nav, not on the links. Core's
	   navigation stylesheet gives every item `color: inherit` at (0,3,0), which
	   beats the parent's `.site-header__nav a` — so a colour on the <a> never
	   applies and the links fell through to the body's muted grey. Setting it on
	   the container is what they actually inherit. The alt state (§12) overrides
	   this same property on the same element. */
	color: var(--color-text);
}

.site-header__nav .wp-block-navigation__container {
	gap: var(--space-sm);
}

.site-header__nav .wp-block-navigation-item__content {
	letter-spacing: 0.01em;
}

/* The header button is a compact version of the secondary style — a full-size
   pill button makes the bar too tall. `nowrap` because on a phone the bar holds
   the logo, the menu toggle and this button, and "Naročite se" was breaking
   across two lines rather than staying one pill. */
.site-header__actions {
	--button-padding: 0.6em 1.4em;
}

.site-header__actions .wp-block-button__link {
	font-size: var(--wp--preset--font-size--sm);
	white-space: nowrap;
}

@media (max-width: 30rem) {
	.site-header__brand .wp-block-site-logo img {
		width: 120px;
	}

	.site-header__end {
		gap: var(--space-sm);
	}

	.site-header__actions {
		/* Shorthand, so the block value has to be restated alongside the inline one. */
		--button-padding: 0.6em 1em;
	}

	.site-header__actions .wp-block-button__link {
		font-size: var(--wp--preset--font-size--xs);
	}
}

/* Core's submenu popover: square-cornered by the parent reset, so opt back in
   and give it the site's surface treatment. */
.site-header__nav .wp-block-navigation__submenu-container {
	padding-block: var(--space-xs);
	border: var(--border);
	border-radius: var(--radius-sm);
	background: var(--color-surface);
	box-shadow: 0 18px 40px -24px color-mix(in srgb, var(--color-text) 45%, transparent);
}

.site-header__nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding-block: 0.5em;
	padding-inline: var(--space-sm);
}

/* The header's own links take the drawn underline of §5 on hover — hover
   only, nothing at rest. TOP LEVEL ONLY: the child combinators stop at the
   bar's own items, so nothing inside a mega panel is touched. The line sits on
   the label, not on the link, so it runs under the word and not under the
   caret beside "Storitve"; it stays drawn while that item's panel is open. */
.site-header__nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content > .wp-block-navigation-item__label {
	padding-block-end: 0.2em;
	background: linear-gradient(currentColor, currentColor) 100% 100% / 0% 1px no-repeat;
	transition: background-size 0.6s var(--ease-out-expo);
}

.site-header__nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content:is(:hover, :focus-visible) > .wp-block-navigation-item__label,
.site-header__nav .wp-block-navigation__container > .wp-block-navigation-item.is-open > .wp-block-navigation-item__content > .wp-block-navigation-item__label {
	background-position: 0 100%;
	background-size: 100% 1px;
}

@media (prefers-reduced-motion: reduce) {
	.site-header__nav .wp-block-navigation-item__label {
		transition: none;
	}
}

/* Current page, for orientation on a seven-item menu. */
.site-header__nav .current-menu-item > .wp-block-navigation-item__content,
.site-header__nav .current_page_item > .wp-block-navigation-item__content {
	color: var(--color-primary);
}

/* Core's mobile overlay inherits none of the above; give it room to breathe. */
@media (max-width: 47.99rem) {
	.site-header__nav .wp-block-navigation__responsive-container.is-menu-open {
		background: var(--color-background);
		padding: var(--space-md);
		font-size: var(--wp--preset--font-size--xl);
	}
}

/* -------------------------------------------------------------------------
 * 9. Site footer
 *
 * Four rows: the contact details, four across (phone, e-mail, hours, address);
 * under a rule, the brand beside three link columns; under another, "follow
 * us" beside the newsletter signup; then the legal bar. The parent paints the
 * footer's background and top border off `.site-footer__inner`, so that class
 * stays on the part's outermost group and everything here sits inside it.
 *
 * The contact row lives here, not in a page section, so every page ends with
 * the way to reach the studio whatever its last section is.
 * ---------------------------------------------------------------------- */
 .site-footer {
	border-top:0;
 }
.site-footer__inner {
	display: block;
	padding-block: var(--space-lg) var(--space-md);
}

/* ── First row: the contact details ── four across, each an icon beside a
   label and its value, closed by a rule. Doubled, over core's generated grid
   class and the flow layout's block gap. */
.site-footer__facts.site-footer__facts {
	/* Phone, hours, address, e-mail: the two middle cells hold two lines of
	   running text, so they get half as much room again as the outer two. */
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) minmax(0, 3fr) minmax(0, 2fr);
	gap: var(--space-md);
	margin-block: 0 var(--space-lg);
	padding-block-end: var(--space-md);
	border-block-end: var(--border);
}

.site-footer__facts > .site-footer__fact {
	gap: var(--space-sm);
}

/* The icon keeps its size whatever the text beside it does. 1.5rem is the
   glyph's own size, a line and a half of the small print it sits beside. */
.site-footer__fact > .site-footer__fact-icon {
	flex: none;
	inline-size: 1.5rem;
	color: var(--color-primary);
}

.site-footer__fact-icon.site-footer__fact-icon > svg {
	display: block;
	inline-size: 100%;
	block-size: auto;
}

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

.site-footer__fact-label {
	font-size: var(--font-size-micro);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--color-primary-dark);
}

/* Doubled: the footer mutes its paragraphs, which would leave the hours and
   address lighter than the phone and e-mail links beside them. */
.site-footer__fact-value.site-footer__fact-value {
	font-size: var(--wp--preset--font-size--sm);
	line-height: 1.5;
	color: var(--color-text);
}

.site-footer__top {
	gap: var(--space-md);
	align-items: start;
}

.site-footer__brand {
	grid-column: span 2;
	max-width: 30rem;
	/* One size for the whole column, matching the menu links beside it. The column
	   had drifted to three different sizes: the address at `sm` (correct), the
	   contact line at the body default because it carries no class at all, and the
	   sub-line and social labels below `sm`. Setting it here catches everything
	   that simply inherits — the contact line included — so only the children that
	   declare a size of their own need naming below. */
	font-size: var(--wp--preset--font-size--sm);
}

/* `.site-footer__note` is `xs` globally (shared with `.site-footer__hours`), so it
   is overridden HERE rather than changed there — it keeps its muted colour, and
   any other use of the class keeps its smaller size. */
.site-footer__brand .site-footer__note {
	font-size: var(--wp--preset--font-size--sm);
}

/* The social labels need core's own selector shape to be beaten. Core sizes them
   at `.wp-block-social-links .wp-social-link span:not(.screen-reader-text)`, which
   is (0,3,1) — a plain `.site-footer__brand .wp-block-social-link-label` is only
   (0,2,0) and loses, which is exactly what happened first time. Mirroring core's
   chain under the column class reaches (0,4,1).

   Core also puts `font-size: 24px` on the block itself and sizes the labels at
   .65em of it, which is where the odd 15.6px came from. The icons are unaffected:
   § above pins them to 1.25rem rather than leaving them on that 24px. */
.site-footer__social-block .wp-block-social-links .wp-social-link span:not(.screen-reader-text) {
	margin-inline: 0;
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 400;
}

/* Business name and address, then the registration numbers: two short blocks
   with a small gap between them rather than five undivided lines. */
.site-footer__brand .site-footer__address {
	margin-block: var(--space-sm) 0;
	color: var(--color-muted);
	line-height: 1.6;
}

.site-footer__brand .site-footer__address + .site-footer__address {
	margin-block-start: var(--space-xs);
}

.site-footer__brand .wp-block-site-logo img {
	width: auto;
	max-width: 190px;
	height: auto;
}

.site-footer__tagline {
	margin-block: var(--space-sm) 0;
	color: var(--color-muted);
	font-size: var(--wp--preset--font-size--sm);
}

/* ── Second row: follow + newsletter ── one rule across the full width, then
   the two side by side on the brand/columns split of the row above (both are
   six-column grids, three and three), so "Ostanimo v stiku" starts on the same
   edge as the first link column. */
.site-footer__follow {
	margin-block-start: var(--space-lg);
	padding-block-start: var(--space-md);
	border-block-start: var(--border);
	column-gap: var(--space-md);
	row-gap: var(--space-md);
	align-items: start;
}

.site-footer__follow > * {
	min-width: 0;
}

.site-footer__social {
	gap: var(--space-sm) var(--space-md);
}


/* A link group's title is the summary of a Details block (it folds away on a
   phone, see the phone breakpoint below), styled exactly like the other titles. */
.site-footer__title,
.site-footer__details > summary {
	margin-block: 0 var(--space-sm);
	font-family: var(--font-body);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--color-primary-dark);
}

.site-footer__details > summary {
	display: block;
	list-style: none;
}

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

/* From tablet up the summary is only a column title: the groups stay open and
   it cannot be clicked shut (footer-details.js also drops it from the tab order). */
@media (min-width: 48rem) {
	.site-footer__details > summary {
		pointer-events: none;
	}
}

/* The link columns are lists, so the marker and indent have to go. Doubled
   class: the parent's list rules are single-class and would otherwise tie. */
.site-footer__links.site-footer__links {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: var(--wp--preset--font-size--sm);
}

.site-footer__links li + li {
	margin-block-start: 0.5em;
}

/* The parent's link styling is scoped to .wp-block-post-content, so footer
   links fall back to the browser default (blue, underlined). Style them here. */
.site-footer a:not(.wp-element-button),
.wp-block-template-part:has(> .site-footer__inner) a:not(.wp-element-button) {
	color: var(--color-text);
	text-decoration: none;
}

.site-footer a:not(.wp-element-button):hover,
.site-footer a:not(.wp-element-button):focus,
.wp-block-template-part:has(> .site-footer__inner) a:not(.wp-element-button):hover,
.wp-block-template-part:has(> .site-footer__inner) a:not(.wp-element-button):focus {
	color: var(--color-primary);
}

/* Footer links are plain at rest and take §5's drawn underline on hover. */
.site-footer,
.wp-block-template-part:has(> .site-footer__inner) {
	--link-rest: 0%;
}

/* Social marks: the logo-only style drops core's pill; here each is simply an
   icon with its name beside it — no frame. The icon is sized as an object, a
   step larger than the label's text, not as text itself. */
.site-footer__social {
	--site-footer-social-icon: 1.75rem;
}

/* Tripled: the logos-only style colours each mark with its own brand colour
   from `.wp-block-social-links.is-style-logos-only .wp-social-link-<name>`,
   (0,3,0), and the anchor then takes `currentColor` from this item. */
.site-footer__social.site-footer__social.site-footer__social .wp-social-link {
	margin: 0;
	background: none;
	color: var(--color-primary-dark);
}

/* Doubled: core pads the anchor from `.wp-block-social-links .wp-social-link a`. */
.site-footer__social.site-footer__social .wp-social-link a {
	display: inline-flex;
	align-items: center;
	gap: var(--space-xs);
	padding: 0;
	color: var(--color-primary-dark);
	transition: color 0.2s ease;
}

.site-footer__social.site-footer__social .wp-social-link svg {
	width: var(--site-footer-social-icon);
	height: var(--site-footer-social-icon);
}

/* The footer's link hover underlines; here the whole mark takes the accent
   instead — an underline under an icon-and-label pair reads as a stray rule. */
.site-footer .site-footer__social a:not(.wp-element-button):hover,
.site-footer .site-footer__social a:not(.wp-element-button):focus {
	color: var(--color-primary);
	text-decoration: none;
}

.site-footer__col :is(p, li) {
	font-size: var(--wp--preset--font-size--sm);
}


.site-footer__note,
.site-footer__hours {
	color: var(--color-muted);
	font-size: var(--wp--preset--font-size--xs);
}

/* Newsletter — the second half of the follow row: a title in the columns' own
   style, then the field with its button beside it and the consent beneath.

   The form is FluentForm's, so its markup is fixed: a fieldset holding a hidden
   paragraph, a one-column container (the e-mail group and the consent group
   inside it), and the submit wrapper. `display: contents` on the container and
   its cell lifts the two groups up to be flex items of the fieldset alongside
   the button, which is what lets field and button share a line while the
   consent takes the next. */
.site-footer__newsletter > * {
	margin-block: 0;
}

/* The same step as under "follow us" beside it (a column title's own), so
   the two halves of the row start on one line. Two classes, over the reset above. */
.site-footer__newsletter .site-footer__title {
	margin-block-end: var(--space-sm);
}

/* A two-column grid: the e-mail field and the button share the first row, and
   everything else — the field's error message, the consent line and its own
   error — runs below in the first column or across. The row is as tall as the
   field, and the button stretches to it.

   It was a wrapping flex row, and FluentForm puts the error message INSIDE the
   field's group, so on an empty submit the group grew by a line and the
   stretched button grew with it (51px -> 73px) while the field kept its height.
   Here the field's group and its content box are `display: contents`, so the
   input and the error are grid items of their own, and the error takes a row
   below instead of making the first row taller. */
.site-footer__newsletter-form .fluentform fieldset {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: stretch;
	gap: var(--space-xs);
}

.site-footer__newsletter-form .fluentform fieldset > p {
	display: none;
}

.site-footer__newsletter-form .fluentform .ff-t-container,
.site-footer__newsletter-form .fluentform .ff-t-cell {
	display: contents;
}

.site-footer__newsletter-form .fluentform .ff-el-group {
	margin: 0;
}

/* The field's label is kept for assistive technology and hidden from view: the
   placeholder and the row's own title say what the field is. */
.site-footer__newsletter-form .fluentform .ff-el-input--label {
	position: absolute;
	inline-size: 1px;
	block-size: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.site-footer__newsletter-form .fluentform .ff-el-group:has(input[type="email"]),
.site-footer__newsletter-form .fluentform .ff-el-group:has(input[type="email"]) > .ff-el-input--content {
	display: contents;
}

.site-footer__newsletter-form .fluentform input[type="email"] {
	grid-row: 1;
	grid-column: 1;
	inline-size: 100%;
	block-size: 100%;
	/* Cream, not the white that every other form's fields take (§10): this
	   field sits on the footer's own panel, where the design draws it in the
	   surface tone. (0,3,1), over the default's (0,2,1). */
	background: var(--color-surface);
}

/* FluentForm's clearfix on the field's group (`::before` / `::after`,
   `display: table`). With the group `display: contents`, the two become grid
   items of their own and open an empty row — a second gap between the field and
   the consent line (19px instead of 10px). Nothing floats here to clear. */
.site-footer__newsletter-form .fluentform .ff-el-group:has(input[type="email"])::before,
.site-footer__newsletter-form .fluentform .ff-el-group:has(input[type="email"])::after {
	content: none;
}

/* Under the field, in its column, 4px below it as FluentForm sets it — the
   row gap is taken back, so the message reads as the field's, not as a row of
   its own. Auto-placed, so with no error there is no empty row. */
.site-footer__newsletter-form .fluentform .ff-el-group:has(input[type="email"]) .error {
	grid-column: 1;
	margin: calc(4px - var(--space-xs)) 0 0;
}

.site-footer__newsletter-form .fluentform .ff_submit_btn_wrapper {
	grid-row: 1;
	grid-column: 2;
	display: flex;
	padding: 0;
}

.site-footer__newsletter-form .fluentform .ff_submit_btn_wrapper .ff-btn {
	block-size: 100%;
	margin: 0;
}

.site-footer__newsletter-form .fluentform .ff-el-group:has(.ff-el-tc) {
	grid-column: 1 / -1;
}

/* The footer's consent line stays at the xs step, on its panel. Named with
   `.fluentform` as well: at (0,2,0) this only TIED the site-wide consent rule
   in §10, and lost on source order the moment that rule moved to sm. */
.site-footer__newsletter-form .fluentform .ff_t_c {
	font-size: var(--wp--preset--font-size--xs);
}

.site-footer__bottom {
	margin-block-start: var(--space-md);
	padding-block-start: var(--space-sm);
	border-block-start: var(--border);
	gap: var(--space-sm);
}

.site-footer__legal,
.site-footer__legal-links,
.site-footer__credit {
	margin: 0;
	color: var(--color-muted);
	font-size: var(--wp--preset--font-size--xs);
}

/* Where the legal links wrap (a phone), they break BETWEEN links, never inside
   one — "Izdelava strani: Maxi Web" had left "Web" alone on a line — and the
   lines are balanced rather than one long and one short. */
.site-footer__legal-links {
	text-wrap: balance;
}

.site-footer__legal-links a,
.site-footer__credit a {
	white-space: nowrap;
}

/* Copyright · legal links · credit. The block declares a three-column grid;
   the side tracks are kept equal here so the legal links sit on the page's
   centre line whatever the two sides measure. Doubled, over core's generated
   equal-thirds class. Stacks below lg (see the media query further down). */
@media (min-width: 64rem) {
	.site-footer__bottom.site-footer__bottom {
		grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
		align-items: baseline;
	}

	.site-footer__legal-links {
		text-align: center;
	}

	.site-footer__credit {
		text-align: end;
	}

	/* Room for the Back To Top 001 button, which is fixed in the bottom right
	   corner (48px square, 20px in): at the very end of the page it sat on the
	   credit, covering "Web" at 1024px. With this the row ends above the button.
	   Only on the row layout — stacked and centred (below), the credit is clear
	   of the corner. Only while the button is on the page. */
	body:has(.back-to-top-001) .site-footer__bottom {
		padding-block-end: 3rem;
	}
}

@media (max-width: 63.99rem) {
	/* Copyright, legal links and credit stack, centred on one axis: three in a
	   row do not fit a tablet. Doubled, over core's generated grid class. */
	.site-footer__bottom.site-footer__bottom {
		grid-template-columns: minmax(0, 1fr);
		justify-items: center;
		text-align: center;
	}

	/* The contact row goes two across. Doubled, over core's grid class. */
	.site-footer__facts.site-footer__facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* The three link groups share one row; the company block keeps a full row
	   above them. Doubled, over core's generated grid class. */
	.site-footer__top.site-footer__top {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.site-footer__brand {
		grid-column: 1 / -1;
	}

	/* This is the bug, and it starts HERE rather than at the phone breakpoint.
	   One footer column carries an explicit grid placement (the block's Column
	   start = 4), which the framework's grid-placement filter re-emits on the
	   front end as an INLINE `grid-column: 4`. Inline beats every stylesheet
	   rule, so the item stays pinned to column 4 however few columns the
	   template declares — and a pinned item forces the grid to invent the
	   implicit columns needed to reach it.

	   At phone width that was the sideways scroll: a template of `1fr`
	   resolving to `364px 100px 0px 71px`, i.e. 535px of grid inside a 315px
	   container. At tablet it did not overflow, so it was invisible, but it was
	   the same fault — `repeat(2, 1fr)` was really resolving to
	   `236px 236px 0px 118px`, a phantom track and a column in the wrong place.

	   `!important` is deliberate and is the only weight that beats an inline
	   style. It is scoped to the columns, so the brand's span above still
	   applies, and to these breakpoints, so the bento placement is untouched at
	   the widths it was designed for. */
	.site-footer__col {
		grid-column: auto !important;
	}

	/* Grid items floor at min-content, so one long unbreakable string could
	   re-open the same hole even with the placement neutralised. */
	.site-footer__top > * {
		min-width: 0;
	}

	/* The follow row: socials and the newsletter side by side, on the same
	   three tracks as the link row, so the newsletter starts under Tretmaji and
	   has two columns' room for its field and button. Doubled, over core's
	   generated grid class and its span classes. */
	.site-footer__follow.site-footer__follow {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.site-footer__follow.site-footer__follow > * {
		grid-column: auto;
	}

	.site-footer__follow.site-footer__follow > .site-footer__newsletter {
		grid-column: span 2;
	}
}

/* Phone: the links folded, the company last.
   1. The contact row is hidden — on a phone the header's call button already
      reaches the studio, and Kontakt holds the rest.
   2. The three link groups are rows that open on a tap (core Details blocks;
      footer-details.js closes them at this width).
   3. Logo and company details close the column, centred, as small print. */
@media (max-width: 47.99rem) {
	/* Doubled, over core's generated grid class. */
	.site-footer__facts.site-footer__facts {
		display: none;
	}

	.site-footer__top.site-footer__top {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 0;
	}

	/* Socials, then the newsletter, each full width. */
	.site-footer__follow.site-footer__follow {
		grid-template-columns: minmax(0, 1fr);
	}

	/* The socials centred on the column's axis, under the centred logo block.
	   Doubled, over the social-links block's own flex justification. */
	.site-footer__social-block {
		text-align: center;
	}

	.site-footer__social.site-footer__social {
		justify-content: center;
	}

	.site-footer__follow.site-footer__follow > .site-footer__newsletter {
		grid-column: auto;
	}

	.site-footer__col {
		border-block-end: var(--border);
	}

	.site-footer__brand + .site-footer__col {
		border-block-start: var(--border);
	}

	/* A row: the title, and a plus that turns into a minus. 2.75rem keeps the
	   row a comfortable thumb's height. */
	.site-footer__details > summary {
		display: flex;
		align-items: center;
		justify-content: space-between;
		min-block-size: 2.75rem;
		margin: 0;
		cursor: pointer;
	}

	.site-footer__details > summary::after {
		content: "";
		flex: none;
		inline-size: 0.75rem;
		block-size: 0.75rem;
		color: var(--color-primary);
		background:
			linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
			linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
		transition: background-size 0.25s ease;
	}

	.site-footer__details[open] > summary::after {
		background-size: 100% 1.5px, 1.5px 0;
	}

	/* Tripled, over the list reset's doubled class. */
	.site-footer__details .site-footer__links.site-footer__links {
		margin: 0;
		padding-block: var(--space-xs) var(--space-sm);
	}

	/* The block's own right padding (inline, a sidebar setting) would push the
	   centred column off centre, so it is lifted here. */
	.site-footer__top > .site-footer__brand {
		order: 1;
		grid-column: auto;
		max-width: none;
		padding: var(--space-lg) 0 0 !important;
		text-align: center;
		font-size: var(--wp--preset--font-size--xs);
	}

	.site-footer__brand .wp-block-site-logo {
		display: flex;
		justify-content: center;
	}
}


/* -------------------------------------------------------------------------
 * 10. Forms (FluentForm)
 *
 * The plugin ships its own blue-and-grey defaults. Rather than fight them per
 * field, the whole form is re-based on the theme's tokens here — one place, so
 * the enquiry form on Kontakt and the footer signup stay identical.
 *
 * Fields are WHITE by default. A form normally stands directly on the page
 * ground, where a cream field reads as absent and its 1px border is left doing
 * all the work; white gives it back its edges. The one form that sits on a
 * panel — the footer newsletter — takes the cream surface in its own rules
 * (§9), where everything else about it is set.
 * ---------------------------------------------------------------------- */
.fluentform .ff-el-group {
	margin-block-end: var(--space-sm);
}

/* A <select> is sized by its widest OPTION and does not shrink to its
   container, so a long option overflows the form and takes the page with it —
   the Kontakt enquiry form measured a 328px control inside a 259px field at
   390px. Text inputs are already border-box and behave; this is specifically a
   select, but the cap is harmless on all of them. */
.fluentform .ff-el-form-control {
	max-width: 100%;
}

.fluentform .ff-el-input--label label {
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 400;
	color: var(--color-text);
}

/* FluentForm paints the asterisk from
   `.fluentform .ff-el-input--label.ff-el-is-required.asterisk-right label:after`
   (0,4,2), in its own danger red — the theme's plainer rule never reached it.
   The doubled class out-weighs it. */
.fluentform .ff-el-input--label.ff-el-is-required.asterisk-right.asterisk-right label::after {
	color: var(--color-primary);
}

/* `select` and `textarea` are named with the control class as well: plain
   `.fluentform select` weighs (0,1,1) and loses to FluentForm's
   `.ff-default .ff-el-form-control` (0,2,0), so those two kept the plugin's
   grey border, 7px corners, grey text and system font while the inputs beside
   them were re-based. The classed selectors (0,2,1) out-weigh it. */
.fluentform input[type="text"],
.fluentform input[type="email"],
.fluentform input[type="tel"],
.fluentform input[type="number"],
.fluentform select,
.fluentform select.ff-el-form-control,
.fluentform textarea,
.fluentform textarea.ff-el-form-control {
	padding: 0.7em 1.1em;
	border: 1px solid var(--color-border-field);
	border-radius: var(--radius-sm);
	background: var(--color-white);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: var(--wp--preset--font-size--base);
	font-weight: 400;
	line-height: 1.4;
	box-shadow: none;
}

/* …except that `select` and `textarea` never actually received the rule above.
 *
 * `.fluentform select` and `.fluentform textarea` weigh (0,1,1), while
 * FluentForm's own `.ff-default .ff-el-form-control` weighs (0,2,0) and sets
 * `padding: 11px 15px; line-height: 1`. So the plugin won for exactly those two.
 * The text inputs escaped only because their `[type="…"]` attribute selector
 * lifts them to (0,2,1) — an accident of the selector, not a decision.
 *
 * The visible symptom was the Kontakt form: the service select rendered 48.5px
 * tall beside inputs of 55.8px, and the message box was padded differently again.
 *
 * Nothing about the VALUES changes here — the declarations are the same as above.
 * Naming the control class simply matches the plugin's weight so they apply.
 */
.fluentform select.ff-el-form-control,
.fluentform textarea.ff-el-form-control {
	padding: 0.7em 1.1em;
	line-height: 1.4;
}

/* One more step for the select alone: Chrome ignores an author `line-height` on
   a <select>, so it keeps computing `normal` (~1.25) and still lands ~2px under
   the inputs even once the padding matches.

   The floor is written as the inputs' own box — their line-height plus their two
   paddings plus the two borders — rather than as a measured pixel value, so it
   follows the rule above if those change instead of silently drifting from it. */
.fluentform select.ff-el-form-control {
	min-block-size: calc(1.4em + (0.7em * 2) + 2px);
	/* The browser's own arrow cannot be moved off the edge, so it goes, and a
	   drawn chevron takes its place (below), set in by the field's own side
	   padding. Room is kept on the right so a long option never runs under it. */
	appearance: none;
	-webkit-appearance: none;
	padding-inline-end: calc(1.1em + 1em + var(--space-xs));
	cursor: pointer;
}

/* The chevron. A select cannot carry a pseudo-element, so it hangs off the
   field's wrapper; a mask, so its colour is a token; it lets clicks through
   to the select under it. */
.fluentform .ff-el-input--content:has(> select.ff-el-form-control) {
	position: relative;
}

.fluentform .ff-el-input--content:has(> select.ff-el-form-control)::after {
	content: "";
	position: absolute;
	inset-block-start: 50%;
	inset-inline-end: 1.1em;
	inline-size: 1em;
	block-size: 1em;
	translate: 0 -50%;
	background-color: var(--color-text);
	-webkit-mask: url("../masks/chevron-down.svg?v=1") center / contain no-repeat;
	mask: url("../masks/chevron-down.svg?v=1") center / contain no-repeat;
	pointer-events: none;
}

/* The help tooltip is an inline-block that computes ~30px tall around a 16px
   glyph, which is taller than the 26px label line beside it — so any field
   carrying help text gets a ~2px taller label, and its control drops out of line
   with the field sharing its row. (Seen on Kontakt: "Željeni termin" sat 2px
   below "Katera storitev vas zanima?".) Collapsing the wrapper's line box to the
   glyph keeps the tooltip and puts the row back on one line. */
.fluentform .ff-el-input--label .ff-el-tooltip {
	line-height: 0;
}

/* The help icon: in the brand colour instead of FluentForm's blue, and a step
   larger than its fixed 16px so it reads beside a label. Still shorter than
   the label's line, so the row stays level (see above). The SVG carries
   width/height attributes, which a CSS size overrides. Two classes, over the
   plugin's `.fluentform .ff-el-tooltip svg` (0,2,1). */
.fluentform .ff-el-input--label .ff-el-tooltip svg {
	inline-size: 1.25rem;
	block-size: 1.25rem;
	fill: var(--color-primary);
}

.fluentform .ff-el-input--label .ff-el-tooltip:hover svg {
	fill: var(--color-text);
}

/* The tooltip itself. FluentForm appends it to <body>, outside the form, and
   sets it at a fixed 11px in the system font — too small to read. The site's
   small size and body face instead, with room to breathe. Its width is the
   plugin's (set inline from the field). Doubled, over its single class. */
.ff-el-pop-content.ff-el-pop-content {
	/* The same deep brown as the contact icons' chips (Contact Split 001),
	   instead of the plugin's black. */
	background-color: var(--color-primary-dark);
	color: var(--color-white);
	padding: var(--space-xs) var(--space-sm);
	font-family: var(--font-body);
	font-size: var(--wp--preset--font-size--sm);
	line-height: 1.45;
}

.fluentform input:focus,
.fluentform select:focus,
.fluentform textarea:focus {
	border-color: var(--color-primary);
	outline: 2px solid color-mix(in srgb, var(--color-primary) 30%, transparent);
	outline-offset: 1px;
}

/* Placeholder text in the site's own warm muted tone. The plain
   `.fluentform ::placeholder` that stood here never applied: FluentForm sets a
   cool grey from `.ff-default .ff-el-form-control::placeholder`, (0,2,1), which
   outweighed it — so every field showed that grey against the cream. The
   doubled control class takes this to (0,3,1). `opacity: 1` because Firefox
   dims placeholders by default, which would lighten it a second time. */
.fluentform .ff-el-form-control.ff-el-form-control::placeholder {
	color: color-mix(in srgb, var(--color-muted) 80%, transparent);
	opacity: 1;
}

/* Consent row: a quiet block of legal text with the box beside it, at the
   field labels' size so it reads as one more line of the form (it was the xs
   step, which set it apart from every label above it; the footer newsletter
   keeps xs in its own rules, where it sits on a panel). Scoped to the consent
   row (`.ff-el-tc`): written as `.ff-el-form-check` it also caught every radio
   and checkbox OPTION. */
.fluentform .ff-el-tc,
.fluentform .ff_t_c {
	font-size: var(--wp--preset--font-size--sm);
	color: var(--color-muted);
	line-height: 1.5;
}

/* The consent box sits in a table cell FluentForm sizes at 20px for an 18px box,
   which left 2px before the text. Widened by one small step. Doubled class, over
   the plugin's `.fluentform .ff-el-tc label.ff_tc_label > span` (0,3,2). */
.fluentform .ff-el-tc.ff-el-tc label.ff_tc_label > span {
	inline-size: calc(1.125rem + var(--space-xs));
}

/* An option (a radio or checkbox in a list): the control and its label side by
   side with a small gap, the label at the FIELD LABELS' size and ink, so an
   option reads as a label of the form — "Želim dodati opombo" beside "Telefon"
   — rather than a line of body copy. (It was the body size; beside the sm
   field labels that looked like a mismatch.) Not the consent row, whose label
   is a table row of its own. */
.fluentform .ff-el-form-check-label:not(.ff_tc_label) {
	display: inline-flex;
	align-items: center;
	gap: var(--space-xs);
	font-size: var(--wp--preset--font-size--sm);
	color: var(--color-text);
	cursor: pointer;
}

/* The plugin lifts every option control by 2px for its own box size; the flex
   row above centres it instead. (0,3,1), over its (0,3,0). */
.fluentform .ff-el-form-check-label:not(.ff_tc_label) .ff-el-form-check-input {
	top: 0;
}

/* The plugin gives every option a 10px bottom margin, so the LAST option in a
   group adds it to the group's own gap and the next field sits 30px down
   instead of the 20px every other field gets — visible under "Želim dodati
   opombo", where the note box it reveals hung lower than the rest. The last
   option's margin goes; the gap between options stays. (0,3,0). */
.fluentform .ff-el-input--content > .ff-el-form-check:last-child {
	margin-block-end: 0;
}

/* Options in a row: a little more air between them than the plugin's 15px.
   Doubled, over `.fluentform .ff-el-group.ff_list_inline .ff-el-form-check`. */
.fluentform .ff-el-group.ff_list_inline.ff_list_inline .ff-el-form-check {
	margin-inline-end: var(--space-md);
}

.fluentform .ff_t_c a {
	color: var(--color-primary);
}

/* Radios and checkboxes, drawn by the theme instead of the browser, so they
   take the field outline and the brand colour. `appearance: none` removes the
   native control; the box and its border are the element itself, and the mark
   (a dot, a tick) is ::before, scaled from nothing when checked. The size is
   bespoke control geometry, not a spacing step: a touch over the label's cap
   height, so the box reads as belonging to the line beside it. Two classes,
   over FluentForm's `.ff-el-form-check-label .ff-el-form-check-input`. */
.fluentform input[type="radio"].ff-el-form-check-input,
.fluentform input[type="checkbox"].ff-el-form-check-input,
.fluentform input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	display: inline-grid;
	place-content: center;
	flex: none;
	inline-size: 1.125rem;
	block-size: 1.125rem;
	margin: 0;
	border: 1px solid var(--color-border-field);
	background: var(--color-white);
	color: var(--color-primary);
	vertical-align: middle;
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.fluentform input[type="radio"].ff-el-form-check-input {
	border-radius: 50%;
}

.fluentform input[type="checkbox"].ff-el-form-check-input,
.fluentform input[type="checkbox"] {
	border-radius: var(--radius-sm);
}

.fluentform input[type="radio"].ff-el-form-check-input::before,
.fluentform input[type="checkbox"].ff-el-form-check-input::before,
.fluentform input[type="checkbox"]::before {
	content: "";
	inline-size: 0.55em;
	block-size: 0.55em;
	background: currentColor;
	scale: 0;
	transition: scale 0.2s var(--ease-out-expo);
}

/* The radio's mark is a dot in the brand colour on the white box. */
.fluentform input[type="radio"].ff-el-form-check-input::before {
	border-radius: 50%;
}

/* The checkbox fills with the brand colour and its tick turns white. The tick
   is cut with a clip-path, so its colour stays a token. */
.fluentform input[type="checkbox"].ff-el-form-check-input::before,
.fluentform input[type="checkbox"]::before {
	inline-size: 0.65em;
	block-size: 0.65em;
	background: var(--color-white);
	clip-path: polygon(14% 44%, 0% 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.fluentform input[type="radio"].ff-el-form-check-input:checked,
.fluentform input[type="checkbox"].ff-el-form-check-input:hover,
.fluentform input[type="radio"].ff-el-form-check-input:hover,
.fluentform input[type="checkbox"]:hover {
	border-color: var(--color-primary);
}

.fluentform input[type="checkbox"].ff-el-form-check-input:checked,
.fluentform input[type="checkbox"]:checked {
	border-color: var(--color-primary);
	background: var(--color-primary);
}

.fluentform input[type="radio"].ff-el-form-check-input:checked::before,
.fluentform input[type="checkbox"].ff-el-form-check-input:checked::before,
.fluentform input[type="checkbox"]:checked::before {
	scale: 1;
}

.fluentform input[type="radio"].ff-el-form-check-input:focus-visible,
.fluentform input[type="checkbox"].ff-el-form-check-input:focus-visible,
.fluentform input[type="checkbox"]:focus-visible {
	outline: 2px solid color-mix(in srgb, var(--color-primary) 30%, transparent);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.fluentform input[type="radio"].ff-el-form-check-input,
	.fluentform input[type="checkbox"],
	.fluentform input[type="radio"].ff-el-form-check-input::before,
	.fluentform input[type="checkbox"]::before {
		transition: none;
	}
}

/* The submit button becomes the theme's primary button, not the plugin's.
 *
 * A FluentForm submit is a plain `<button>` with none of the classes the parent
 * paints (`.wp-block-button__link` / `.wp-element-button`), so it can't inherit
 * the button rule — it has to re-declare each property. But it reads the same
 * component tokens (main.css §5) rather than naming values, so it is fed by §3
 * above and moves with every other button on the site.
 *
 * That matters, because hardcoding is exactly how this one drifted: written
 * before the tokens existed, it kept `--color-primary` (#986A3E) as its fill
 * while §3 moved the site's buttons to the text colour (#58443C), and the form
 * button had been a different colour from every other button since. It also had
 * no border, 2em side padding against the button scale's 1.75em, and no
 * letter-spacing.
 *
 * The border is not decorative here. The theme's button carries a 1px border in
 * the fill's own colour, so it measures the same box as a Secondary button
 * beside it; dropping it would make this one 2px shorter and narrower.
 *
 * `--button-border-color` is referenced as a var() FALLBACK, never declared —
 * see the parent's note. It resolves on this element, so the border tracks
 * whatever --button-bg is here, including on hover.
 *
 * THE THIRD CLASS IS LOAD-BEARING. FluentForm's per-form Styler stores a button
 * colour in the DB and prints it as
 *   `form.fluent_form_3 .ff-btn-submit:not(.ff_btn_no_style)` — (0,3,1),
 * which outranks the (0,3,0) this rule had. That override sets background-color
 * and color only, so everything else here always applied and only those two were
 * silently the plugin's — and since the Styler happened to hold #986A3E, the same
 * value the old hardcoded `var(--color-primary)` resolved to, the rule LOOKED
 * like it was working. It was not: swapping in --button-bg changed nothing on
 * screen. Adding the button's real `ff-btn` class takes this to (0,4,0), which
 * beats (0,3,1) on class count, and covers forms 3 and 4 and any form added
 * later without anyone having to remember the Styler. */
.fluentform .ff-btn.ff-btn-submit.ff-btn-submit {
	padding: var(--button-padding);
	border: var(--button-border-width) solid var(--button-border-color, var(--button-bg));
	border-radius: var(--button-radius);
	background: var(--button-bg);
	color: var(--button-color);
	font-weight: var(--button-font-weight);
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;

	/* No token for these four, so they mirror the parent's rule literally — the
	   same reason §3 keeps its own trio as properties. line-height is the one
	   that shows: the button inherits the form's 1.5, which made it 5px taller
	   than a theme button beside it. */
	font-family: var(--font-body);
	font-size: var(--wp--preset--font-size--sm);
	letter-spacing: 0.01em;
	line-height: 1.2;
	/* Capitals, like every other button (§3). */
	text-transform: uppercase;
	/* The arrow reel (inc/button-arrow.php) beside the label, as on every core
	   button (§3a). */
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--button-arrow-gap);
}

.fluentform .ff-btn-submit:hover .button-arrow__reel,
.fluentform .ff-btn-submit:focus-visible .button-arrow__reel {
	transform: translateY(calc(-1 * (var(--button-arrow) + var(--button-arrow-slot-gap))));
}

/* Retunes the token rather than re-declaring `background`, so the border above
   follows the fill through its fallback. Same --color-dark as §3's hover: the
   parent's --color-primary-dark is LIGHTER than this fill and reads as a fade. */
.fluentform .ff-btn.ff-btn-submit.ff-btn-submit:hover,
.fluentform .ff-btn.ff-btn-submit.ff-btn-submit:focus {
	--button-bg: var(--color-dark);
}

/* The submit button fills its row at every width, label and arrow centred in
   it: the form's last row is the one action, and a content-sized button sat
   alone at one edge read as an afterthought. `flex`, not `block`, so the arrow
   reel stays centred beside the label as above. (It was phone-only at first;
   the booking form asked for it everywhere, and the other forms follow.)
   Scoped to the page content: the footer newsletter's button is a grid cell of
   its own (§9). */
.site-main .fluentform .ff-btn.ff-btn-submit.ff-btn-submit {
	display: flex;
	inline-size: 100%;
}

/* And it stands off the last field by a step more than the fields stand off
   each other (sm, the group margin above it): the action is a row of its own,
   not the next field. Scoped to the page content like the rule above. */
.site-main .fluentform .ff_submit_btn_wrapper {
	margin-block-start: var(--space-md);
}

/* A field whose label is hidden in the form editor ("Label placement:
   hidden"). The plugin removes it with `display: none`, which also takes it
   from screen readers and leaves the control with no accessible name. Here
   the label stays in the document and is only taken off screen, the usual
   visually-hidden recipe — so the booking form's service select, under the
   step title that already says what it is, is still "Storitev" to a reader.
   (0,3,0), over the plugin's (0,2,0). */
.fluentform .ff-el-form-hide_label > .ff-el-input--label {
	display: block;
	visibility: visible;
	position: absolute;
	inline-size: 1px;
	block-size: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* A note placed between fields (the form editor's Custom HTML element): a
   small, quiet line in the muted ink, flush left under the row it explains —
   what used to be a tooltip on the booking form's date field. */
.fluentform .ff-custom_html {
	font-size: var(--wp--preset--font-size--xs);
	line-height: 1.5;
	color: var(--color-muted);
}

.fluentform .ff-custom_html > p {
	margin: 0;
}

/* Before Choices.js has built its widget, the services field is still the
   native `select multiple`: a four-row listbox, 127px tall against the 52px
   box that replaces it, with the preselected option highlighted in the
   browser's grey. It painted for a frame or two on every load, then collapsed
   when the widget arrived and pulled the rest of the form up by 75px. While the
   select is still a direct child of its wrapper (the widget moves it inside
   `.choices`, so the wrapper stops matching the moment it is built), the
   wrapper is drawn as the finished box — the field border, white, one row
   tall — and the select inside it is made invisible, so the first paint is the
   empty field the widget will fill. Only under `html.js`: with no script there
   is no widget coming, and the native select stays as it is. The failsafe
   keyframes hand the native select back after 3s if the widget's script never
   ran (an error earlier in the bundle, a blocked request). */
html.js .fluentform .ff-el-input--content:has(> select[multiple]) {
	box-sizing: border-box;
	/* The widget's box with the preselected service in it, which the form
	   always opens with: the field floor below (one text row plus the field's
	   vertical padding), or one pill (its sm line plus its own padding) inside
	   the even inset the box takes once pills are in it, whichever is taller —
	   at phone sizes the pill row wins by a couple of pixels. Plus two borders. */
	block-size: calc(max(1.4em + (0.7em * 2), (1.9 * var(--wp--preset--font-size--sm)) + (2 * var(--space-xs))) + 2px);
	border: 1px solid var(--color-border-field);
	border-radius: var(--radius-sm);
	background: var(--color-white);
	font-size: var(--wp--preset--font-size--base);
	line-height: 1.4;
	animation: asteri-multiselect-wrapper-failsafe 0s 3s forwards;
}

html.js .fluentform .ff-el-input--content > select[multiple] {
	margin: 0;
	block-size: 100%;
	opacity: 0;
	animation: asteri-multiselect-failsafe 0s 3s forwards;
}

@keyframes asteri-multiselect-wrapper-failsafe {
	to {
		block-size: auto;
		border: 0;
		background: transparent;
	}
}

@keyframes asteri-multiselect-failsafe {
	to {
		opacity: 1;
	}
}

/* Multi-select — the booking form's services field. A `select multiple` that
   the plugin hands to Choices.js, which builds its own box, pills and
   dropdown and ships them in its own grey. Re-based here on the field rule
   above: the same border, corners, white and type as every other field, the
   chosen services as pills in the brand colour, the list in the field's
   colours with the page's own group headings. Each selector carries
   `.fluentform` so it out-weighs the widget's single-class rules. */
.fluentform .choices {
	font-family: var(--font-body);
}

/* Named with the plugin's own wrapper class and type attribute: its
   `.frm-fluent-form .choices[data-type*=select-multiple] .choices__inner`
   is (0,3,1) and zeroes the vertical padding, which left the pills touching
   the box's top edge once they wrapped. */
.fluentform .frm-fluent-form .choices[data-type*="select-multiple"] .choices__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-xs);
	/* The field's vertical padding less the pills' own, so a one-pill row is
	   as tall as the text inputs beside it; the box floor is the inputs' box. */
	min-block-size: calc(1.4em + (0.7em * 2) + 2px);
	padding: calc(0.7em - 0.25em) 1.1em;
	border: 1px solid var(--color-border-field);
	border-radius: var(--radius-sm);
	background: var(--color-white);
	font-size: var(--wp--preset--font-size--base);
	line-height: 1.4;
}

.fluentform .is-focused .choices__inner,
.fluentform .is-open .choices__inner {
	border-color: var(--color-primary);
	border-radius: var(--radius-sm);
}

.fluentform .choices__list--multiple {
	display: contents;
}

.fluentform .choices__list--multiple .choices__item {
	margin: 0;
	padding: 0.25em 0.8em;
	border: 0;
	border-radius: var(--radius-sm);
	background: var(--color-primary);
	color: var(--color-on-dark);
	font-size: var(--wp--preset--font-size--sm);
	line-height: 1.4;
}

.fluentform .choices__list--multiple .choices__item.is-highlighted {
	background: var(--color-primary-dark);
}

.fluentform .choices[data-type*="select-multiple"] .choices__button {
	border-inline-start-color: color-mix(in srgb, var(--color-on-dark) 50%, transparent);
	opacity: 0.85;
}

/* Named at the plugin's weight, like the box above: its
   `.frm-fluent-form .choices[data-type*=select-multiple] .choices__input`
   sets the padding and line this undoes. */
.fluentform .frm-fluent-form .choices[data-type*="select-multiple"] .choices__input {
	margin: 0;
	/* No vertical padding: the input shares a row with the pills once they
	   wrap, and at the plugin's 6px on a 1.6 line it stood taller than a pill,
	   so that row grew and the pill beside it floated — the gaps read 10px,
	   then 16px on a phone. At the base size on a 1.4 line it is a touch
	   shorter than a pill, so every row is the pills' height. */
	padding: 0;
	background: transparent;
	font-size: var(--wp--preset--font-size--base);
	line-height: 1.4;
	color: var(--color-text);
}

.fluentform .choices__input::placeholder {
	color: color-mix(in srgb, var(--color-muted) 80%, transparent);
	opacity: 1;
}

.fluentform .choices__list--dropdown,
.fluentform .choices__list[aria-expanded] {
	margin-block-start: var(--space-xs);
	border: 1px solid var(--color-border-field);
	border-radius: var(--radius-sm);
	background: var(--color-white);
	box-shadow: 0 1rem 2rem -1rem color-mix(in srgb, var(--color-text) 35%, transparent);
	word-break: normal;
}

.fluentform .choices__list--dropdown .choices__item,
.fluentform .choices__list[aria-expanded] .choices__item {
	padding: var(--space-xs) var(--space-sm);
	font-size: var(--wp--preset--font-size--base);
	color: var(--color-text);
}

.fluentform .choices__list--dropdown .choices__item--selectable.is-highlighted,
.fluentform .choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
	background: var(--color-secondary);
	color: var(--color-text);
}

/* The widget's "Press to select" hint, drawn as a pseudo-element on every row
   in English with no setting to translate it, becomes "+ Dodaj" on the
   hovered row — Slovene, and only where the pointer is. The row is the
   widget's; the pseudo-element is positioned on its right edge. */
.fluentform .choices__list--dropdown .choices__item--selectable,
.fluentform .choices__list[aria-expanded] .choices__item--selectable {
	position: relative;
	padding-inline-end: calc(var(--space-sm) + 4.5em);
}

.fluentform .choices__list--dropdown .choices__item--selectable::after,
.fluentform .choices__list[aria-expanded] .choices__item--selectable::after {
	content: "+ Dodaj";
	position: absolute;
	inset-inline-end: var(--space-sm);
	inset-block-start: 50%;
	/* The widget already lifts its hint by half its height with a transform;
	   a `translate` on top of it lifted it twice, 10px above the middle. */
	transform: translateY(-50%);
	opacity: 0;
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--color-primary-dark);
	transition: opacity 0.15s ease;
}

.fluentform .choices__list--dropdown .choices__item--selectable.is-highlighted::after,
.fluentform .choices__list[aria-expanded] .choices__item--selectable.is-highlighted::after {
	opacity: 1;
}

/* With pills in the box, one even inset all round — the same step as the
   gap between the pills — so a pill sits as far from the box's edges as from
   its neighbours. (Empty, the box keeps the field padding above, so the
   placeholder lines up with the text in the inputs around it.) Weighted like
   the box rule, over the plugin's. */
.fluentform .frm-fluent-form .choices[data-type*="select-multiple"] .choices__inner:has(.choices__list--multiple .choices__item) {
	padding: var(--space-xs);
}

/* The placeholder only while nothing is chosen. With a pill in the box the
   text input still carries "Izberite eno ali več storitev" and wraps onto a
   row of its own; it keeps a small width so the caret still has somewhere to
   land, and the placeholder is cleared. */
.fluentform .choices__inner:has(.choices__list--multiple .choices__item) input.choices__input {
	/* Grows into whatever the pills leave on their last row and shrinks to
	   nothing when they leave none, so it never wraps onto an empty row of its
	   own: with three pills nearly filling the row, a 2em minimum still did on
	   some renderings. Typing still works — the widget widens the input as the
	   text grows and the row wraps then, with content to show for it. */
	flex: 1 1 0;
	/* The widget writes the input's min-width INLINE, sized to the placeholder
	   it is about to hide. An inline style is beaten only by !important. */
	min-inline-size: 0 !important;
	inline-size: auto;
}

.fluentform .choices__inner:has(.choices__list--multiple .choices__item) input.choices__input::placeholder {
	color: transparent;
}

.fluentform .choices__heading {
	padding: var(--space-xs) var(--space-sm);
	border-block-end: 1px solid var(--color-border);
	color: var(--color-primary-dark);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* Section breaks — the numbered steps of the booking form ("1. Izberite
   storitev", …). FluentForm prints them as an h3 and an <hr>, so untouched they
   take the page's h3 clamp and dwarf the fields they introduce. Sized at the h5
   step: a step label inside a form, not a section title on the page. The plugin's
   rule under it is hidden; the empty description box is dropped. A section after
   the first stands off the fields above it by a step of the spacing scale. */
.fluentform .ff-el-section-break .ff-el-section-title {
	margin: 0;
	font-size: var(--step-h5);
	/* The plugin bolds its section titles (600); the site's headings are the
	   display serif at regular, and these are headings. */
	font-weight: 400;
	line-height: 1.2;
}

.fluentform .ff-el-section-break .ff-section_break_desk:empty {
	display: none;
}

/* The plugin draws an <hr> under every section title; the title and the
   space around it are the divider here, so the rule goes. It stays in the
   markup (the plugin prints it), just unseen. */
.fluentform .ff-el-section-break hr {
	display: none;
}

.fluentform .ff-el-section-break:not(:first-child) {
	margin-block-start: var(--space-md);
}

.ff-message-success {
	padding: var(--space-sm);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	background: var(--color-surface);
	color: var(--color-text);
}

/* -------------------------------------------------------------------------
 * 11. Prose
 *
 * A reading-width column for long-form text — the legal pages. Not a pattern:
 * two pages share it and neither owns it (the parent's AGENTS.md, "the middle
 * case: a component TWO patterns share").
 * ---------------------------------------------------------------------- */
.prose {
	max-width: var(--reading-width);
	margin-inline: auto;
}

.prose > * {
	margin-block: 0 var(--space-sm);
}

.prose__title {
	margin-block-end: var(--space-md);
	font-size: var(--step-h3);
}

.prose__heading {
	margin-block: var(--space-md) var(--space-xs);
	font-size: var(--step-h5);
}

.prose p,
.prose li {
	color: var(--color-body, var(--color-muted));
}

.prose ul {
	padding-inline-start: 1.2em;
}

.prose li + li {
	margin-block-start: 0.35em;
}

/* A standing caveat — this text has not been reviewed by a lawyer. */
.prose__notice {
	padding: var(--space-sm);
	border-inline-start: 3px solid var(--color-primary);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	background: var(--color-secondary);
	font-size: var(--wp--preset--font-size--sm);
}

.prose__notice.prose__notice {
	color: var(--color-text);
}

/* A subsection under a .prose__heading (5.1, 5.2 …): one step smaller. */
.prose__heading--sub {
	margin-block: var(--space-sm) var(--space-xs);
	font-size: var(--step-h6);
}

/* A data table in the reading column (the cookie list). Core's Table block
   draws a box around every cell and a 3px rule under the head at (0,1,1);
   the section class out-weighs both. Six columns do not fit a phone, so the
   table keeps a readable minimum and core's figure scrolls it sideways.
   Six columns also do not fit the reading width, so the table alone runs
   wider than the text, centred on the column and never past the container.
   A percentage margin resolves against the column, so (100% - width) / 2 is
   the equal overhang each side — negative on desktop, zero on a phone where
   the table and the column are the same width. */
.prose .wp-block-table {
	--prose-table-width: min(64rem, 100vw - (var(--gutter) * 2), var(--container-width));
	inline-size: var(--prose-table-width);
	max-inline-size: none;
	margin-inline: calc((100% - var(--prose-table-width)) / 2);
	margin-block-end: var(--space-md);
}

.prose .wp-block-table table {
	inline-size: 100%;
	min-inline-size: 44rem; /* below this the purpose column becomes a ribbon */
	border-collapse: collapse;
	font-size: var(--wp--preset--font-size--sm);
}

.prose .wp-block-table thead {
	border: 0;
}

.prose .wp-block-table th,
.prose .wp-block-table td {
	padding: var(--space-xs);
	border: 0;
	border-block-end: 1px solid var(--color-border);
	text-align: start;
	vertical-align: top;
}

.prose .wp-block-table th {
	border-block-end-color: var(--color-border-field);
	color: var(--color-text);
	font-weight: 600;
}

.prose .wp-block-table td {
	color: var(--color-body, var(--color-muted));
}

/* A cookie name is one token: broken mid-word it stops being searchable. */
.prose .wp-block-table td:first-child {
	color: var(--color-text);
	white-space: nowrap;
}

/* -------------------------------------------------------------------------
 * 12. Header states — transparent-over-hero, and the alternate colour
 *
 * The FRAMEWORK ships the mechanics: main.css §6b makes the bar transparent
 * under `body.header-transparent` and solid again on `.is-stuck`, and
 * assets/js/header.js toggles `body.is-header-alt` for whichever `.header-alt`
 * band currently sits under the bar. Neither ships a single colour — that is
 * deliberate, and this section is Asteri's half of the contract.
 *
 * Which pages get what is decided in inc/header.php, from two independent
 * markers on the page's first band:
 *   `header-overlap` → the bar floats over that band  (layout)
 *   `header-alt`     → the bar switches to its light-on-dark look  (colour)
 *
 * DO NOT add a `transition` to `.site-header` here. §6b declares exactly one on
 * the bar and every mode contributes a duration through a variable
 * (`--header-slide`, `--header-fade`, `--header-z-delay`); a second declaration
 * is a shorthand and would silently discard the others. The transitions below
 * are all on the bar's CHILDREN, which §6b does not touch.
 * ---------------------------------------------------------------------- */

/* First-paint header height, so an overlapping hero pulls up by the right amount
   BEFORE header.js runs and re-measures. The parent's 4.5rem fallback is a generic
   guess; getting it wrong here shows as the hero jumping on load.
   Asteri's box, term by term (§8 owns every value):
     top gap    .site-header padding-block-start   var(--space-sm)
   + pill pad   .site-header__inner, × 2          var(--space-xs) * 2
   + tallest row item — the logo, 170px wide at
     the mark's 1288 × 433 ratio                  3.575rem
   Keep in sync with §8 if the pill's padding or the logo cap changes. The sum
   is unchanged from the pre-pill bar (20 + 20 + 57.2 ≈ 97px): the bar's old
   symmetric --space-sm padding became one --space-sm gap above the pill plus
   --space-xs inside it, top and bottom. That is why introducing the pill did
   not move the hero. */
:root {
	--header-height: calc(var(--space-sm) + var(--space-xs) * 2 + 3.575rem);
}

@media (max-width: 30rem) {
	/* §8 caps the logo at 120px below this width — 2.52rem tall. */
	:root { --header-height: calc(var(--space-sm) + var(--space-xs) * 2 + 2.52rem); }
}

/* Pull the first band up under the floating bar. Targets the first child rather
   than a named class, because ANY band can opt in — the marker is what decides,
   not the pattern. */
body.header-transparent .wp-block-post-content > :first-child {
	margin-block-start: calc(-1 * var(--header-height));
}

/* --- Suppressing the parent's transparent → solid flip -------------------
   §6b's `header-transparent` mode swaps the bar back to a solid cream bar with a
   border once `.is-stuck` is set. This design never wants that: the pill is the
   only thing that paints, in every state, so the carrier must stay transparent
   when stuck too. Matching the parent's two selectors exactly (it targets both
   the class and the `:has()` wrapper) keeps this a tie the child wins on order. */
body.header-transparent .site-header.is-stuck,
body.header-transparent .wp-block-template-part.is-stuck:has(> .site-header__inner) {
	background: transparent;
	border-bottom-color: transparent;
}

/* --- The alternate look ------------------------------------------------
   Light ink over a dark band. Core forces navigation links to `color: inherit`,
   so the colour is set on the nav CONTAINER and the links follow.

   COLOUR FOLLOWS THE BAND, FULL STOP — no `header-transparent`, no
   `:not(.is-stuck)`. Those two qualifiers WERE here, and were correct against a
   bar that had only two looks: see-through, or solid cream. Both failures they
   fixed were really the same bug — the bar had no fill of its own, so light ink
   was only safe while it was genuinely see-through:

   1. The framework's two thresholds do not coincide. `.is-stuck` flips when the
      hero's bottom edge reaches the bar's BOTTOM, while the colour spy flips when
      that edge reaches the bar's MIDDLE. That left a window exactly half a bar
      tall — 49px — of light ink on a bar that had already gone cream.
   2. 19 of the 21 pages never made the bar transparent at all, yet every one ends
      on the dark CTA band, which is marked `header-alt` — cream text on a cream
      bar at the bottom of each.

   THE PILL REMOVES THE PREMISE. It carries its own tint in both states, so the
   band under it is the only thing that decides the look, and the gate would now
   be actively wrong: `.is-stuck` no longer means "solid", so keeping it would
   snap the ink to cocoa the moment you scrolled past the hero while the pill was
   still floating over dark content. Dropping `header-transparent` is what finally
   makes `header-alt` on the CTA band do something on the other 19 pages. */

/* The alt pill is a DARK glass, not a lighter one. Solar tints its alt pill with
   white at 12%, which is a look, not a contrast fix — and Asteri had a measured
   accessibility defect here: light ink over the hero photograph came out at
   1.54:1 average, 1.09:1 at worst, against the 4.5:1 AA minimum. A 65% fill of
   --color-dark is the same value a standalone scrim was measured at before it was
   removed as scope creep; over the worst case a photograph can present (pure
   white) it composites to ~5.4:1 for --color-on-dark text, and the backdrop blur
   only pulls extremes toward the local mean. The pill absorbing the scrim's job
   is what makes it a fix rather than a decoration. */
body.is-header-alt .site-header__inner {
	background: color-mix(in srgb, var(--color-dark) 65%, transparent);
	border-color: color-mix(in srgb, var(--color-on-dark) 22%, transparent);
	box-shadow: none;
}

body.is-header-alt .site-header .site-header__nav,
body.is-header-alt .site-header .site-header__brand {
	color: var(--color-on-dark);
}

body.is-header-alt .site-header .site-header__nav a,
body.is-header-alt .site-header .site-header__nav .wp-block-navigation-item__content {
	color: inherit;
}

/* The logo is a single-colour SVG delivered as an <img> (the Site Logo block), so
   it cannot inherit `currentColor` the way an inline mark would. `brightness(0)`
   flattens it to black and `invert(1)` lifts it to white — correct for a
   one-colour mark, and it needs no second asset in the markup.
   (`assets/logo/asteri-logo-light.svg` still exists for places that need a real
   light file, e.g. an email signature or a dark PDF.) */
body.is-header-alt .site-header .site-header__brand .wp-block-site-logo img {
	filter: brightness(0) invert(1);
}

/* The enquiry button is an outline pill in bronze by default; over a dark band it
   becomes a solid light pill so it stays the most prominent thing in the bar. */
body.is-header-alt .site-header .site-header__actions .wp-block-button__link {
	--button-bg: var(--color-on-dark);
	--button-color: var(--color-primary-dark);
}

/* Current page, in the alt state: the default rule (§8) tints it bronze, which
   disappears against a dark band. */
body.is-header-alt .site-header .site-header__nav .current-menu-item > .wp-block-navigation-item__content,
body.is-header-alt .site-header .site-header__nav .current_page_item > .wp-block-navigation-item__content {
	color: var(--color-on-dark);
	text-decoration: underline;
	text-underline-offset: 0.4em;
}

/* Submenu popovers keep the default light look in BOTH states — they are their own
   surface, floating away from the band, so inheriting white text would make them
   unreadable on their cream card. */
body.is-header-alt .site-header .site-header__nav .wp-block-navigation__submenu-container {
	color: var(--color-text);
}

body.is-header-alt .site-header .site-header__nav .wp-block-navigation__submenu-container a {
	color: var(--color-text);
}

/* Ease between the two looks rather than snapping. Children only — see the warning
   at the top of this section about the bar's own `transition`.
   ONE level per inheritance chain: the nav container eases, and its links inherit
   the value as it animates. A link that also carried its own transition would be
   chasing a value that is itself still moving — 0.3s + 0.3s — and would land
   visibly after the rest of the bar. */
.site-header__inner,
.site-header__brand,
.site-header__nav,
.site-header__brand .wp-block-site-logo img,
.site-header__actions .wp-block-button__link.wp-block-button__link {
	transition:
		color 0.3s ease-out,
		background-color 0.3s ease-out,
		border-color 0.3s ease-out,
		filter 0.3s ease-out;
}

@media (prefers-reduced-motion: reduce) {
	.site-header__inner,
	.site-header__brand,
	.site-header__nav,
	.site-header__brand .wp-block-site-logo img,
	.site-header__actions .wp-block-button__link.wp-block-button__link {
		transition: none;
	}
}

/* --- Mega panel, against a transparent bar -----------------------------
   Two problems the framework cannot solve generically, both only visible once the
   header can be transparent:

   1. The panel is injected INSIDE the nav, so its links inherit whatever colour the
      nav is currently using — white, over a dark hero — on the panel's own light
      card. Reset them to ink.
   2. The page-dim overlay covers the whole viewport, so a transparent bar lets the
      scrim show THROUGH it and the header reads as dimmed. While a panel is open the
      bar goes opaque, and its contents flip back to the default ink look regardless
      of the band underneath. */
.site-header__nav .mega-panel {
	color: var(--color-text);
}

.site-header__nav .wp-block-navigation-item .mega-panel a {
	color: var(--color-text);
	padding: 0;
}

@media (min-width: 48rem) {
	/* NO WIDTH OVERRIDE HERE — and that is a deliberate reversal worth recording.
	   While the header was a frosted pill, its `backdrop-filter` made IT the
	   containing block for the absolutely-positioned panel (a filter establishes
	   one regardless of `position`, so §6a's `position: static` never reached it).
	   The panel therefore hung off the pill, already capped, and §6a's default —
	   a centred `min(100% - gutter*2, --container-width)` box — inset it a second
	   time; the fix then was `width: 100%`.

	   The pill has since been switched off in §8 (`backdrop-filter: none`), so the
	   panel anchors to the full-width carrier again and §6a's default is correct:
	   a content-width card aligned with the page. Keeping the old override made the
	   card span the whole viewport — measured 2545px against a 1360px header.

	   IF THE PILL EVER COMES BACK, this override has to come back with it. The
	   dependency is invisible from either file on its own, which is exactly why it
	   is written down here rather than left to be rediscovered. */

	/* §6a's invisible hover bridge sits ABOVE the panel to cover the dead strip
	   between a trigger and a bar-anchored dropdown. Against the pill there is no
	   such strip — the panel starts at the pill's own edge — so the bridge instead
	   lies over the pill's bottom var(--space-md), with `pointer-events: auto`,
	   swallowing clicks on the nav links it covers. Remove it. */
	.mega-panel::before {
		display: none;
	}

	/* While a panel is open the pill goes OPAQUE and squares its bottom edge so it
	   merges into the card below. Opacity is not cosmetic: §6a's page-dim scrim is
	   full-viewport at z-index 900 and the header lifts to 1000, so the scrim sits
	   behind the pill — and a backdrop-filter samples exactly that, which read as a
	   dimmed header. The filter stays (dormant behind the fill) because removing it
	   would drop the containing block and collapse the panel's width mid-animation. */
	.site-header:has(.wp-block-navigation-item.is-open > .mega-panel) .site-header__inner {
		background: var(--color-background);
		border-color: var(--color-border);
		border-bottom-color: transparent;
		border-end-start-radius: 0;
		border-end-end-radius: 0;
	}

	/* Out-specifies the `body.is-header-alt` rules above, so an open panel always
	   reads ink-on-cream even over a dark hero. */
	body.is-header-alt .site-header:has(.wp-block-navigation-item.is-open > .mega-panel) .site-header__nav,
	body.is-header-alt .site-header:has(.wp-block-navigation-item.is-open > .mega-panel) .site-header__brand {
		color: var(--color-text);
	}

	body.is-header-alt .site-header:has(.wp-block-navigation-item.is-open > .mega-panel) .wp-block-site-logo img {
		filter: none;
	}

	body.is-header-alt .site-header:has(.wp-block-navigation-item.is-open > .mega-panel) .site-header__actions .wp-block-button__link {
		--button-bg: transparent;
		--button-border-color: var(--color-primary);
		--button-color: var(--color-primary-dark);
	}
}

/* -------------------------------------------------------------------------
 * 13. Mega panel content
 *
 * The panel MECHANISM and its chrome (`.mega-panel` / `.mega-panel__inner`, the
 * caret, the page-dim overlay) are the framework's — main.css §6a. This styles
 * the CONTENT of a panel, which is a synced pattern and therefore lives in the
 * database, not in a file. The classes below are the contract between the two:
 * name a panel's blocks `mega-nav__*` and it inherits this layout, whichever menu
 * item it hangs off.
 *
 * §12 handles what happens when a panel opens against a TRANSPARENT bar.
 * ---------------------------------------------------------------------- */
/* One gap token on BOTH axes. The column gap was --space-lg (158px at desktop),
   which reads well across three columns but starves four: at the panel's ~1260px
   of usable width, three --space-lg gutters leave each column 196px — too narrow
   for a link plus its blurb. --space-md gives 277px and keeps the panel legible.
   Revisit if a panel ever goes back to three columns. */
.mega-nav {
	gap: var(--space-md);
	align-items: start;
	padding-block: var(--space-sm);
}

.mega-nav__title {
	margin-block: 0 var(--space-sm);
	font-family: var(--font-body);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--color-primary-dark);
}

/* Each link is a two-line block: the page name, then a line of context. Laid out
   as a grid so a name that wraps still keeps its blurb aligned under it. */
.mega-nav__link {
	margin-block: 0;
}

.mega-nav .mega-nav__link a {
	display: grid;
	gap: 0.15em;
	padding-block: 0.5em;
	color: var(--color-text);
	text-decoration: none;
}

.mega-nav .mega-nav__link a:hover strong,
.mega-nav .mega-nav__link a:focus-visible strong {
	color: var(--color-primary);
}

.mega-nav__blurb {
	color: var(--color-muted);
	font-size: var(--wp--preset--font-size--xs);
	line-height: 1.4;
}

.mega-nav__lead {
	margin-block: 0;
	color: var(--color-body, var(--color-muted));
	font-size: var(--wp--preset--font-size--sm);
}

.mega-nav .mega-nav__more {
	margin-block-start: auto;
	padding-block-start: var(--space-sm);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 600;
}

.mega-nav .mega-nav__more a {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	color: var(--color-primary-dark);
	text-decoration: none;
}

.mega-nav .mega-nav__more a::after {
	content: "";
	inline-size: 0.85em;
	block-size: 0.85em;
	background: currentColor;
	-webkit-mask: var(--arrow-mask) center / contain no-repeat;
	mask: var(--arrow-mask) center / contain no-repeat;
}

/* The image card. A definite height, because the panel has no other content to
   give the figure one — component geometry, not a spacing step. */
.mega-nav__col--card {
	position: relative;
	z-index: 0;
	border-radius: var(--radius-sm);
	overflow: hidden;
	block-size: clamp(8rem, 12vw, 11rem);
}

.mega-nav .mega-nav__media {
	position: absolute;
	inset: 0;
	margin: 0;
	z-index: 0;
}

.mega-nav__media img {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	border-radius: 0;
}

.mega-nav__col--card::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		to top,
		color-mix(in srgb, var(--color-dark) 78%, transparent),
		color-mix(in srgb, var(--color-dark) 10%, transparent)
	);
}

/* Pinned to the foot of the card. `margin-block-start: auto` would be the tidier
   move, but the card is a FLOW container — the auto margin needs a flex parent, and
   making it one for a single caption is more machinery than the job needs. The card
   is already `position: relative; z-index: 0`, so absolute is exact and cheap. */
.mega-nav .mega-nav__caption {
	position: absolute;
	inset-inline: 0;
	inset-block-end: 0;
	z-index: 2;
	margin-block: 0;
	padding: var(--space-sm);
	color: var(--color-on-dark);
	font-size: var(--wp--preset--font-size--sm);
}

/* Below the desktop breakpoint the framework reveals the panel as a flowing block
   inside the nav rather than a dropdown, so the three columns become one. */
@media (max-width: 47.99rem) {
	.mega-nav.mega-nav {
		grid-template-columns: minmax(0, 1fr);
	}

	.mega-nav__col--card {
		display: none;
	}
}

/* -------------------------------------------------------------------------
 * 13b. Mega panel content — service cards (`mega-cards`)
 *
 * The Storitve panel: a short introduction on the left and one photograph
 * card per service page beside it. Like §13 this styles a SYNCED PATTERN — the
 * blocks live in the database, the classes are the contract:
 *
 *   Group .mega-cards                 a Grid: the intro, then the cards
 *     Group .mega-cards__intro        eyebrow, a serif line, a lead, links
 *     Group .mega-cards__card  ×N     "Group link" -> the service page
 *       Image                         Aspect ratio 4/5, Scale: cover
 *       Heading .mega-cards__title
 *       Paragraph .mega-cards__blurb
 *
 * Each card is ONE link (the Group's own link setting), so the whole card is
 * the target — photograph included — and there is nothing inside it to tab
 * through twice.
 *
 * The grid uses the panel's full width, inside the same gutter as the header
 * bar (`mega-full`, padded with `--gutter` below), so the intro starts on the
 * logo's line and the last card ends on the call to action's. It used to be
 * capped at 104rem and centred, which left it inset from the bar above it on
 * any screen wider than that.
 * ---------------------------------------------------------------------- */
/* The gaps are the block's own Block spacing (md rows, sm columns), set in
   the synced pattern — not here, so the editor's slider works. Only the
   asymmetric tracks, which have no block control, stay in CSS. */
.mega-cards.mega-cards {
	/* The intro takes a little more than a card; the cards share the rest. */
	grid-template-columns: minmax(0, 1.25fr) repeat(5, minmax(0, 1fr));
	align-items: start;
	/* No top padding: the panel's own top padding is the gutter (the
	   `mega-full` rule further down), and this used to stack on top of it. */
	padding-block: 0 var(--space-sm);
}

/* ---- Intro ---- */

.mega-cards__intro > * {
	margin-block: 0;
}

/* Its gap is the block's Block spacing (xs). */
.mega-cards .mega-cards__intro {
	padding-inline-end: var(--space-sm);
}

/* The headline sits on the lead with only the intro's block gap between them:
   no extra margin, and the card titles' tight 1.2 leading, so the two read as
   one statement rather than a heading floating above a paragraph. */
.mega-cards__headline {
	font-size: var(--step-h4);
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.mega-cards__lead {
	color: var(--color-body, var(--color-muted));
	font-size: var(--wp--preset--font-size--sm);
	line-height: 1.5;
}

/* The two links ("Celoten cenik", "Darilni boni") are set exactly like the
   cards' titles beside them — the heading face at the h5 step, the heading ink,
   darkening on hover — with the same arrow after the last word. They are
   `arrow-link` paragraphs, so the reel is already there and already rolls on
   hover (§3a); only the type and the arrow's placement change here. */
.mega-cards__intro > .mega-cards__links {
	margin-block-start: var(--space-xs);
	font-family: var(--font-display);
	font-size: var(--step-h5);
	font-weight: 400;
	line-height: 1.2;
}

.mega-cards__links > * {
	margin-block: 0;
}

/* (0,4,1): the nav resets every link in a panel to ink at (0,3,1). Inline
   rather than `.arrow-link`'s flex row, and the title's 0.45em before the
   arrow, so the two read as one family. */
.site-header__nav .mega-panel .mega-cards__links a {
	display: inline;
	/* Each link on one line with its arrow — in the desktop intro column, just
	   above the laptop step, "Celoten cenik" otherwise broke before the arrow. */
	white-space: nowrap;
	color: var(--color-text);
	text-decoration: none;
	transition: color 0.3s ease;
}

.site-header__nav .mega-panel .mega-cards__links a:is(:hover, :focus-visible) {
	color: var(--color-primary-dark);
}

.mega-cards__links .button-arrow {
	display: inline-block;
	margin-inline-start: 0.45em;
}

/* ---- Card ---- */

.mega-cards .mega-cards__card {
	display: block;
	text-decoration: none;
}

.mega-cards__card > * {
	margin-block: 0;
}

/* The frame clips; the photograph inside it is what moves on hover. */
.mega-cards__card > .wp-block-image {
	overflow: hidden;
}

/* The photo sits as far above its title as the cards sit from each other —
   the same step as the grid's column gap. Measured to the top of the LETTERS,
   not of the line: a heading's line box carries about a quarter of an em of
   empty leading above its capitals, and left in, the gap read as the wider of
   the two. Two classes, over `.mega-cards__card > *` above. */
.mega-cards__card > .mega-cards__title {
	margin-block-start: calc(var(--space-sm) - 0.25em);
}

.mega-cards__card > .wp-block-image img {
	display: block;
	inline-size: 100%;
	transition: scale 0.9s var(--ease-out-expo);
}

.mega-cards__card:hover > .wp-block-image img,
.mega-cards__card:focus-visible > .wp-block-image img {
	scale: 1.05;
}

/* Title with the buttons' arrow after it — the same slot reel (§3a,
   inc/button-arrow.php injects it), rolling when the card is hovered or
   focused, as on the buttons and the blog cards. */
.mega-cards__title {
	font-size: var(--step-h5);
	line-height: 1.2;
	transition: color 0.3s ease;
}

/* Inline after the last word, not a flex item: on a title that wraps
   ("Obrvi in trepalnice") it then follows the last line instead of floating
   between the two. Its clipped box makes its baseline the bottom edge, so it
   stands on the text's baseline at about the letters' cap height. */
.mega-cards__title .button-arrow {
	display: inline-block;
	margin-inline-start: 0.45em;
}

.mega-cards__card:hover .mega-cards__title,
.mega-cards__card:focus-visible .mega-cards__title {
	color: var(--color-primary-dark);
}

.mega-cards__card:hover .mega-cards__title .button-arrow__reel,
.mega-cards__card:focus-visible .mega-cards__title .button-arrow__reel {
	transform: translateY(calc(-1 * (var(--button-arrow) + var(--button-arrow-slot-gap))));
}

.mega-cards__card > .mega-cards__blurb {
	margin-block-start: 0.35em;
	color: var(--color-muted);
	font-size: var(--wp--preset--font-size--xs);
	line-height: 1.45;
}

.mega-cards__card:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 4px;
}

/* ---- Entrance ----
   The panel goes from display:none to block, so there is no "before" state for
   a transition to start from; @starting-style supplies one. The intro and the
   cards rise a little and settle, one after another. */
@media (min-width: 48rem) and (prefers-reduced-motion: no-preference) {
	.is-open > .mega-panel .mega-cards > * {
		opacity: 1;
		translate: 0 0;
		transition: opacity 0.5s ease, translate 0.8s var(--ease-out-expo);
		transition-delay: calc(var(--mega-cards-i, 0) * 55ms);
	}

	@starting-style {
		.is-open > .mega-panel .mega-cards > * {
			opacity: 0;
			translate: 0 1rem;
		}
	}

	.mega-cards > :nth-child(2) { --mega-cards-i: 1; }
	.mega-cards > :nth-child(3) { --mega-cards-i: 2; }
	.mega-cards > :nth-child(4) { --mega-cards-i: 3; }
	.mega-cards > :nth-child(5) { --mega-cards-i: 4; }
	.mega-cards > :nth-child(6) { --mega-cards-i: 5; }
}

/* Laptops and tablet-width desktops: six columns no longer fit, so the intro
   moves above the cards as one band — eyebrow, headline and lead on the left,
   the two links side by side on the right — and the five cards take the row
   below. 80rem (1280px) is the site's laptop step (also the posts slider, CTA
   Band 007 and Header 001). Stacked in a column beside the cards, the intro
   squeezed the headline to three lines and the links broke from their arrows. */
@media (max-width: 80rem) {
	.mega-cards.mega-cards {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}

	/* A grid in place of the block's vertical flex: the text keeps its order in
	   the left column, and the links span its rows on the right, standing on the
	   lead's last line. A breakpoint layout, which core's layouts cannot express.
	   (0,3,0), over the block's generated flex class. */
	.mega-cards > .mega-cards__intro.mega-cards__intro {
		grid-column: 1 / -1;
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		column-gap: var(--space-md);
		align-items: end;
		padding-inline-end: 0;
	}

	.mega-cards__intro > :not(.mega-cards__links) {
		grid-column: 1;
	}

	.mega-cards__intro > .mega-cards__lead {
		max-inline-size: var(--reading-width);
	}

	/* Less air between the bar and the band than the desktop gutter: on a
	   laptop screen the panel's height is what is short. The class is doubled
	   to out-rank the gutter rule further down the file, which has the same
	   selector and would otherwise win on source order. */
	.wp-block-navigation-item.mega-full.mega-full > .mega-panel > .mega-panel__inner {
		padding-block-start: var(--space-md);
	}

	/* One step smaller than the card titles here: across the band they are
	   secondary to the headline beside them, not peers of the cards below. */
	.mega-cards__intro > .mega-cards__links.mega-cards__links {
		grid-column: 2;
		grid-row: 1 / span 3;
		flex-direction: row;
		gap: var(--space-md);
		margin-block-start: 0;
		font-size: var(--step-h6);
	}
}

/* Tablet-width desktops: the lead goes as well, so the band is the eyebrow and
   headline beside the links and the panel stays inside a short window (with
   the lead, the card titles fell off the bottom of the screen). */
@media (max-width: 64rem) {
	.mega-cards__intro > .mega-cards__lead {
		display: none;
	}

	.mega-cards__intro > .mega-cards__links.mega-cards__links {
		grid-row: 1 / span 2;
	}
}

/* Below the desktop breakpoint the panel is a flowing block inside the nav. */
@media (max-width: 47.99rem) {
	.mega-cards.mega-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* -------------------------------------------------------------------------
 * §14 — Horizontal alignment: the header bar and full-width mega panels
 *
 * Everything full-width on this site lines up on ONE inset: `--gutter`. That is
 * what `.site-main`'s padding gives the page, what `has-gutter` restores to a
 * full-bleed band that would otherwise break out of it, and — from here — what
 * the header bar and an edge-to-edge mega panel use too. One token, so the logo,
 * the nav, the panel's first column and the top of the page all sit on the same
 * line at every viewport.
 *
 * Both rules exist because neither element aligned on its own:
 *
 *   • The header carried `padding: XL` as a BLOCK SETTING on `.site-header__inner`
 *     — 128px against the gutter's 112px, so the bar sat 16px inside the content
 *     below it. That setting has been removed from the template part rather than
 *     overridden here, because a block's padding serialises INLINE and no selector
 *     can beat an inline style; the alternative was an `!important` that would also
 *     have made the editor lie (the sidebar reading XL while the bar rendered
 *     something else). The parent already owns this element's `padding-block` in
 *     CSS, so owning `padding-inline` too is the consistent move, not a new one.
 *
 *   • `mega-full` panels inherit `.mega-panel__inner`'s card padding (`--space-md`,
 *     40px), which is right for the centred content-width card and much too tight
 *     once the panel spans the viewport — the first column started 72px inside the
 *     page content it sits above.
 *
 * `--gutter` is a clamp, so both follow it down on narrow screens without a
 * breakpoint of their own.
 * ------------------------------------------------------------------------- */

.site-header__inner {
	padding-inline: var(--gutter);
}

/* Desktop only, and the selector deliberately mirrors the framework's own
   (main.css §6a) so it ties on specificity and wins on source order — asteri.css
   is enqueued after main.css. Below the desktop breakpoint the panel is a flowing
   block inside the nav, not an edge-to-edge dropdown, so it keeps its card
   padding. */
@media (min-width: 48rem) {
	.wp-block-navigation-item.mega-full > .mega-panel > .mega-panel__inner {
		padding-inline: var(--gutter);
		/* The space between the bar and the panel's content is the side gutter
		   too, so the content sits as far below the bar as it does in from the
		   edges. The card grid adds no top padding of its own (`.mega-cards`). */
		padding-block-start: var(--gutter);
	}
}

/* The drawer's hamburger is the one thing in the bar that still read as inset once
   everything else landed on the gutter, and it was not a padding problem: the block
   ships the trigger as a 2.75rem square with its 1.5rem bars centred inside
   (`maxi-starter-blocks/drawer/style.css`), so the glyph sat 10px in from a button
   whose box was already flush. Shrinking the box to its content puts the first bar
   on the gutter line.

   The hit area survives this: the trigger keeps its 2.75rem height, so the target
   becomes 24 × 44px — still past the 24 × 24 minimum. Do not add a width back
   without checking that. */
.maxi-drawer__trigger {
	width: max-content;
}

/* The mobile menu's hamburger sits on the same line, for the same reason. */
.maxi-mobile-nav__trigger {
	width: max-content;
}

/* -------------------------------------------------------------------------
 * 14b. Mobile menu — the panel's content (`mobile-menu`)
 *
 * The off-canvas panel is the `maxi/mobile-nav` block (the hamburger in the
 * header, shown below 64rem); what it shows is the synced pattern
 * "mobile-menu". As with the mega panel (§13b) the blocks live in the
 * database and these classes are the contract:
 *
 *   Group .mobile-menu
 *     Paragraph .eyebrow
 *     Group .mobile-menu__services
 *       Group .mobile-menu__service  ×N   "Group link" -> the service page
 *         Image .mobile-menu__thumb       Aspect ratio 1, Scale: cover
 *         Group  > Heading .mobile-menu__title + Paragraph .mobile-menu__blurb
 *     Group .mobile-menu__links           a two-column Grid of plain links
 *     Group .mobile-menu__foot            Buttons + contact lines
 *
 * The block styles its panel generically (stacked links with big tap
 * targets); this replaces that with the site's own look. Rules are scoped
 * under `.maxi-mobile-nav__content` where they have to outweigh the block's
 * `.maxi-mobile-nav__content a` (0,1,1).
 * ---------------------------------------------------------------------- */
.maxi-mobile-nav {
	/* A touch wider than the block's default on tablets; a phone gets the full
	   width either way (the block caps it at 100vw). */
	--maxi-mobile-nav-size: 28rem;
}

.maxi-mobile-nav__close {
	color: var(--color-text);
}

.maxi-mobile-nav .maxi-mobile-nav__content {
	padding: 0 var(--space-md) var(--space-md);
}

.mobile-menu > * {
	margin-block: 0;
}

.mobile-menu > .eyebrow {
	margin-block-end: var(--space-xs);
}

/* ---- Services ---- */

.mobile-menu__services > * {
	margin-block: 0;
}

.maxi-mobile-nav__content a.mobile-menu__service {
	display: flex;
	padding-block: var(--space-xs);
	border-block-start: 1px solid var(--color-border);
	color: var(--color-text);
	text-decoration: none;
}

.mobile-menu__services > .mobile-menu__service:last-child {
	border-block-end: 1px solid var(--color-border);
}

.mobile-menu__service > .mobile-menu__thumb {
	flex: none;
	inline-size: 4rem;
	margin: 0;
}

.mobile-menu__thumb img {
	display: block;
	inline-size: 100%;
}

.mobile-menu__service > .wp-block-group {
	flex: 1 1 auto;
	min-inline-size: 0;
}

.mobile-menu__service > .wp-block-group > * {
	margin-block: 0;
}

.mobile-menu__title {
	font-size: var(--step-h5);
	line-height: 1.2;
}

.mobile-menu__blurb {
	margin-block-start: 0.2em;
	color: var(--color-muted);
	font-size: var(--wp--preset--font-size--xs);
	line-height: 1.4;
}

/* The arrow at the end of each row: the buttons' reel (inc/button-arrow.php),
   a pixel larger as it stands alone, and rolling when the row is hovered. */
.mobile-menu__service {
	--button-arrow: 14px;
}

.mobile-menu__service > .button-arrow {
	color: var(--color-primary);
}

.mobile-menu__service:hover > .button-arrow .button-arrow__reel,
.mobile-menu__service:focus-visible > .button-arrow .button-arrow__reel {
	transform: translateY(calc(-1 * (var(--button-arrow) + var(--button-arrow-slot-gap))));
}

/* ---- Other pages ---- */

.mobile-menu > .mobile-menu__links.mobile-menu__links {
	gap: 0 var(--space-sm);
	margin-block-start: var(--space-sm);
}

.mobile-menu__links > * {
	margin-block: 0;
}

.maxi-mobile-nav__content .mobile-menu__links a {
	padding-block: 0.6em;
	color: var(--color-text);
	/* The service names' size, in the body face. */
	font-size: var(--step-h5);
	font-weight: 400;
	text-decoration: none;
}

/* ---- Foot ---- */

.mobile-menu > .mobile-menu__foot {
	margin-block-start: var(--space-sm);
	padding-block-start: var(--space-sm);
	border-block-start: 1px solid var(--color-border);
}

.mobile-menu__foot > * {
	margin-block: 0;
}

.mobile-menu__foot .wp-block-button,
.maxi-mobile-nav__content .mobile-menu__foot .wp-block-button__link {
	inline-size: 100%;
}

/* The button keeps its own padding and colours; only the block's "every link
   is a stacked row" default is undone. */
.maxi-mobile-nav__content .mobile-menu__foot .wp-block-button__link {
	display: inline-flex;
	justify-content: center;
	padding: var(--button-padding);
}

.mobile-menu__foot > .mobile-menu__contact {
	margin-block-start: var(--space-sm);
	color: var(--color-muted);
	font-size: var(--wp--preset--font-size--sm);
	line-height: 1.6;
}

.maxi-mobile-nav__content .mobile-menu__contact a {
	display: inline;
	padding: 0;
	color: var(--color-text);
}

/* ---- Entrance ----
   The dialog slides in on its own; the rows follow, one after another.
   @starting-style gives them a state to start from, since the dialog comes
   from display:none. */
@media (prefers-reduced-motion: no-preference) {
	.maxi-mobile-nav[open] .mobile-menu__service,
	.maxi-mobile-nav[open] .mobile-menu__links,
	.maxi-mobile-nav[open] .mobile-menu__foot {
		opacity: 1;
		translate: 0 0;
		transition: opacity 0.5s ease, translate 0.7s var(--ease-out-expo);
		transition-delay: calc(120ms + var(--mobile-menu-i, 0) * 50ms);
	}

	@starting-style {
		.maxi-mobile-nav[open] .mobile-menu__service,
		.maxi-mobile-nav[open] .mobile-menu__links,
		.maxi-mobile-nav[open] .mobile-menu__foot {
			opacity: 0;
			translate: -0.75rem 0;
		}
	}

	.mobile-menu__service:nth-child(2) { --mobile-menu-i: 1; }
	.mobile-menu__service:nth-child(3) { --mobile-menu-i: 2; }
	.mobile-menu__service:nth-child(4) { --mobile-menu-i: 3; }
	.mobile-menu__service:nth-child(5) { --mobile-menu-i: 4; }
	.mobile-menu__links { --mobile-menu-i: 5; }
	.mobile-menu__foot { --mobile-menu-i: 6; }
}

/* -------------------------------------------------------------------------
 * 15. Sitemap
 *
 * The Sitemap page lists every published page through core's Page List block,
 * so the index maintains itself — add a page and it appears. Core ships that
 * block as a bare <ul>, which at two dozen entries reads as a thin ribbon of
 * default bullets down the left edge. This gives it the site's own vocabulary:
 * the arrow marker used elsewhere for "go", and columns, so the list reads as
 * an index rather than an accident.
 *
 * The marker reuses --arrow-mask from §7b as a MASK, so its colour comes from
 * background-color — i.e. from a token — and survives a re-skin.
 * ---------------------------------------------------------------------- */
.sitemap__list {
	list-style: none;
	margin: 0;
	padding: 0;
	columns: 3;
	column-gap: var(--space-lg);
}

.sitemap__list .wp-block-pages-list__item {
	/* A link and its marker must not split across a column boundary. */
	break-inside: avoid;
	margin: 0 0 var(--space-sm);
}

/* Nested pages indent under their parent; the list is flat today, but the
   block renders a child <ul> as soon as one page gets a parent. */
.sitemap__list .wp-block-pages-list__item ul {
	list-style: none;
	margin: var(--space-sm) 0 0;
	padding-inline-start: var(--space-sm);
}

.sitemap__list .wp-block-pages-list__item__link {
	display: inline-flex;
	align-items: center;
	gap: var(--space-xs);
	color: var(--color-text);
	text-decoration: none;
	background-image: none;
	border-block-end: 1px solid transparent;
	transition: color 0.2s, border-color 0.2s;
}

.sitemap__list .wp-block-pages-list__item__link::before {
	content: "";
	/* Sized to the cap height of the link text, not to a spacing step. */
	inline-size: 0.85rem;
	block-size: 0.85rem;
	flex: none;
	background-color: var(--color-primary);
	-webkit-mask: var(--arrow-mask) center / contain no-repeat;
	mask: var(--arrow-mask) center / contain no-repeat;
}

.sitemap__list .wp-block-pages-list__item__link:hover,
.sitemap__list .wp-block-pages-list__item__link:focus-visible {
	color: var(--color-primary);
	border-block-end-color: var(--color-primary);
}

@media (max-width: 48rem) {
	.sitemap__list {
		columns: 2;
	}
}

@media (max-width: 40rem) {
	.sitemap__list {
		columns: 1;
	}
}


/* Special effects - these should eventually be organized differently */

/* Image reveal — the image wipes in, and fades up with it, as it enters the
 * viewport. Both properties ride one tween on one ease, so they stay locked
 * together for the whole run rather than drifting apart. Timing lives in the
 * script, not here — don't restate the duration in this comment.
 *
 * Four directions, one mechanism: the variant classes below set ONLY which edge
 * the hidden state clips from. The script animates every one of them to
 * `inset(0% 0% 0% 0%)` and never learns the direction, so adding a fifth is a
 * one-line CSS change with no JS to touch.
 *
 * The resting state here is the VISIBLE one, and the clipped/transparent start
 * state is armed by assets/js/special-effects.js adding `.is-reveal-armed`. That
 * split is the whole progressive-enhancement story: a clip-path reveal is the
 * inverse of the parent's parallax, whose CSS is harmlessly inert without its JS
 * (main.css §8b — the oversize needs a definite height the JS supplies). Here
 * the hidden state is active by construction, so declaring `clip-path` and
 * `opacity` unconditionally means no GSAP, a JS error, or
 * `prefers-reduced-motion` leaves the photo PERMANENTLY invisible — with nothing
 * on screen to say why.
 *
 * The script arms only when it is actually going to animate, so every bail-out
 * path lands on a plainly visible image.
 *
 * No flash from arming late: these figures sit well below the fold, and the
 * script is a normal blocking footer script, so it runs before they could paint.
 */
.image-reveal,
.image-reveal-top,
.image-reveal-right,
.image-reveal-left {
  overflow: hidden;
}

.image-reveal img,
.image-reveal-top img,
.image-reveal-right img,
.image-reveal-left img {
  display: block;
  width: 100%;
  height: auto;
}

/* Direction — the only thing that differs between the four.
 *
 * `inset()` clips AWAY from each edge, in the order top/right/bottom/left. So
 * the hidden state clips 100% from the edge the wipe travels TOWARD, which
 * leaves a zero-size strip pinned against the OPPOSITE edge for the image to
 * grow out of. Handy consequence: the class suffix and the inset edge are the
 * same word, which is the only reason four inset() quadruples stay readable.
 *
 * `.image-reveal` is the "-bottom" case under a shorter name, per the brief.
 *
 * The variants sit AFTER the default deliberately. All four weigh (0,1,0), so a
 * figure carrying both `image-reveal` and `image-reveal-left` is decided by
 * source order — this way the specific direction wins instead of it being a
 * coin toss nobody can see in the markup.
 *
 * Declared on the FIGURE and read on the <img>: custom properties inherit, and
 * keeping the switch on the figure is what lets one class change a direction. */
.image-reveal       { --reveal-from: inset(0% 0% 100% 0%); }  /* top → bottom */
.image-reveal-top   { --reveal-from: inset(100% 0% 0% 0%); }  /* bottom → top */
.image-reveal-right { --reveal-from: inset(0% 100% 0% 0%); }  /* left → right */
.image-reveal-left  { --reveal-from: inset(0% 0% 0% 100%); }  /* right → left */

/* Armed by the script. Two classes = (0,2,1), which is deliberate: it must not
   collide with the parallax rules on the same <img> — those set height/top/
   position, this sets only clip-path and opacity, so they compose rather than
   compete.

   NOTE: the fade is currently OFF at both ends — opacity is 1 here, and the
   tween's `opacity` line is commented out in special-effects.js. Re-enabling it
   means changing both. */
.image-reveal.is-reveal-armed img,
.image-reveal-top.is-reveal-armed img,
.image-reveal-right.is-reveal-armed img,
.image-reveal-left.is-reveal-armed img {
  clip-path: var(--reveal-from);
  opacity: 1;
}

/* One-shot image reveal — `.image-reveal-once` on an Image block. The photo
 * wipes open top to bottom, once, when it comes into view (special-effects.js).
 * For a photograph near the top of a page, where the scrubbed reveal above has
 * no scroll distance to ride.
 *
 * Held closed from the FIRST PAINT, unlike the scrubbed reveal: this one is
 * meant for images that are on screen at load, where arming late would show
 * the photo, hide it, then wipe it in. The same guards as the staggered groups
 * below give it back on every path where the effect will not run — no
 * JavaScript, reduced motion, the script bailing (`is-reveal-armed`), or the
 * script never arriving (the 3s failsafe). */
@media (prefers-reduced-motion: no-preference) {
  html.js .image-reveal-once:not(.is-reveal-armed) {
    clip-path: inset(0% 0% 100% 0%);
    animation: image-reveal-once-failsafe 0s 3s forwards;
  }
}

@keyframes image-reveal-once-failsafe {
  to { clip-path: inset(0% 0% 0% 0%); }
}

/* Veil reveal — `.image-reveal-veil` on an Image block. The photo is there
 * from the first paint under a veil (white, or the section's own background —
 * see Hero 004), and the veil is wiped away top to bottom (special-effects.js):
 * the same gesture as the one-shot wipe above, but drawn on the veil, not on
 * the photo.
 *
 * That difference is the point of it. Chrome times the Largest Contentful
 * Paint by when an image is painted and does not look at what lies on top. The
 * one-shot wipe clips the photo itself, so on the home page it was counted only
 * once the script had opened it — 1.9s of "render delay" in PageSpeed for a
 * photo that had long arrived. Covered instead of clipped, it counts at once.
 *
 * Before the script: a plain veil, this ::after, from the first paint. The
 * script lays its own veil over it and adds `is-reveal-armed` in the same step,
 * which takes the plain one away. The same exits as the reveals above give the
 * photo back — no JavaScript, reduced motion, the script bailing, or the 3s
 * failsafe if it never arrives. */
.image-reveal-veil {
  position: relative;
}

@media (prefers-reduced-motion: no-preference) {
  html.js .image-reveal-veil:not(.is-reveal-armed)::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: var(--color-white);
    animation: image-reveal-veil-failsafe 0s 3s forwards;
  }
}

@keyframes image-reveal-veil-failsafe {
  to { visibility: hidden; }
}

/* The script's veil: removed once the wipe is done. */
.image-reveal-veil__veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: var(--color-white);
}

/* Staggered blur reveal — assets/js/special-effects.js splits a
 * `.staggered-blur-reveal` heading into characters and animates them in.
 *
 * All the motion is GSAP's; this only warns the browser that each character
 * is about to animate filter and opacity, so the blur is composited rather
 * than repainted per frame. Scoped under the effect class because SplitText's
 * `.char` is a generic name that would otherwise catch anything on the site.
 *
 * The split is reverted once the animation finishes, so these wrappers exist
 * only for the duration of the reveal. */
.staggered-blur-reveal .char {
  will-change: filter, opacity;
}

/* Hidden from the first paint, so the heading does not flash as plain text,
 * vanish when the script splits it, then animate back in.
 *
 * Every way this could strand the heading invisible is closed off, because a
 * CSS-hidden element that waits on a script is the same trap the image reveal
 * is built to avoid:
 *   - no JS at all        -> `html.js` is never set (inc/enqueue.php), so this
 *                            never applies and the heading is simply visible;
 *   - reduced motion      -> the media query below shows it; the script bails;
 *   - GSAP or SplitText missing, or the script bails -> the script un-hides it;
 *   - the script errors or never arrives -> the failsafe animation shows it
 *     after 3s regardless. The script, if it turns up later than that, leaves
 *     the heading plain rather than hide a visible heading to animate it.
 *
 * `visibility`, not `opacity`: the script hides each character itself, and
 * a parent's opacity would multiply into theirs; visibility is simply switched
 * back on for the element the moment the characters are in place. */
html.js .staggered-blur-reveal {
  visibility: hidden;
  animation: staggered-blur-reveal-failsafe 0s 3s forwards;
}

@keyframes staggered-blur-reveal-failsafe {
  to { visibility: visible; }
}

/* Staggered groups (`.stagger-group` > `.stagger-item`, special-effects.js):
 * held invisible from the FIRST PAINT, for the same reason as the heading
 * above. The script runs after the page has been drawn, so without this the
 * items showed, were hidden by the script, and then animated in — a flash on
 * every load.
 *
 * Opacity, not `display` or `visibility`: the content stays in the document,
 * in the layout and in the accessibility tree, so nothing moves when it
 * appears and a crawler reads the page exactly as before.
 *
 * Every way the effect might NOT run gives the items back:
 *   - no JavaScript            `html.js` is never set, so this never applies
 *   - reduced motion            excluded by the media query
 *   - the script bails or runs  it adds `is-stagger-armed` to the group
 *   - the script never arrives  the failsafe shows them after 3s
 * An item outside a group is never animated, so it is never hidden. */
@media (prefers-reduced-motion: no-preference) {
  html.js .stagger-group:not(.is-stagger-armed) .stagger-item {
    opacity: 0;
    animation: stagger-item-failsafe 0s 3s forwards;
  }
}

@keyframes stagger-item-failsafe {
  to { opacity: 1; }
}

/* Settle — `.settle-in` on a page's largest first-screen element when that is
 * an image (unused since 2026-11-01: the home page's brand mark, which it was
 * made for, is now an SVG block, which PageSpeed does not time at all). It is
 * painted in full at the first frame and only eases down into place: a touch
 * larger and lower, settling over 1.1s.
 *
 * The opposite of the holds above, on purpose. Those keep an element invisible
 * until special-effects.js arrives, and PageSpeed times its largest paint by
 * the moment that element is shown — so a hidden brand mark cost the home page
 * about 1.5s of "render delay" and most of its Performance score. This needs
 * no script and hides nothing: the motion is transform only, from the first
 * paint, so the element counts as painted at once. Not a stagger item for the
 * same reason — leave `stagger-item` off it. */
@media (prefers-reduced-motion: no-preference) {
  .settle-in {
    animation: settle-in 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}

@keyframes settle-in {
  from { transform: translateY(28px) scale(1.035); }
}

@media (prefers-reduced-motion: reduce) {
  html.js .staggered-blur-reveal {
    visibility: visible;
    animation: none;
  }
}

/* -------------------------------------------------------------------------
 * Contact map band
 *
 * A full-width map between the contact split and the FAQ on /kontakt. It lives
 * here rather than in a pattern folder because it is a one-off page section
 * composed of core blocks, not a reusable composition — and because the embed
 * it wraps is a third-party iframe, which is exactly the "markup no core block
 * produces" case Custom HTML exists for.
 *
 * The height is a clamp rather than an aspect-ratio: a map is a viewport onto a
 * place, so it should stay a comfortable band on every screen instead of going
 * letterbox-thin on a phone.
 * ---------------------------------------------------------------------- */
.contact-map__frame {
	border-radius: var(--radius);
	overflow: hidden;
	block-size: clamp(22rem, 45vw, 40rem);
}

.contact-map__frame iframe {
	display: block;
	inline-size: 100%;
	block-size: 100%;
	border: 0;
}

/* -------------------------------------------------------------------------
 * 12. Blog — single post, and the post card shared with the archive
 *
 * The design was drawn from this token system, which is worth knowing before
 * changing anything here: --step-h1 maxes at 90px, h2 at 70, h3 at 46, h4 at 30
 * and h5 at 26 — exactly the sizes the Figma frame specifies. So nothing below
 * transcribes a pixel value for type; it names the step the design was drawn to.
 * ---------------------------------------------------------------------- */

/* ── Post header ─────────────────────────────────────────────────────────── */

/* The title takes the container, not the shared head's 44rem measure. That cap
   is right for a section heading introducing a grid below it; a post title is
   the page's subject and the design runs it the full width, where even a long
   one falls in two lines instead of three. The lead keeps its own measure. */
.single-post__head .section-head {
	max-inline-size: none;
}

/* The lead is a subtitle, not body copy: wider than the reading measure would
   allow but still short of the heading, so it reads as one block with it. */
.single-post__lead {
	/* The design draws this at 720px, which is `--reading-width` exactly — named
	   rather than restated, so it follows if the measure is ever retuned. */
	max-inline-size: var(--reading-width);
	margin-inline: auto;
	font-size: var(--wp--preset--font-size--lg);
	color: var(--color-body, var(--color-muted));
}

/* The meta line — "16. SEPTEMBER 2026 · 5 MIN BRANJA". The separator is drawn
   between items rather than written into the markup, so the line stays correct
   whichever items a template includes and however many. */
.post-meta {
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-muted);
}

.post-meta .post-meta__item {
	margin-block: 0;
}

.post-meta .post-meta__item + .post-meta__item::before {
	/* Written as a CSS escape, NOT as a literal "·". The stylesheet is served as
	   `text/css` with no charset parameter, so a browser that does not inherit the
	   document's UTF-8 decodes the file as Latin-1 and renders the separator's two
	   UTF-8 bytes (C2 B7) as the two characters "Â·". An escape is plain ASCII, so
	   it survives any decoding. The @charset at the top of this file fixes the same
	   thing globally; this one is belt as well as braces, because the separator is
	   the one non-ASCII character here that a reader actually SEES. */
	content: "\00B7";
	margin-inline-end: 0.75em;
	/* The gap on the flex parent supplies the space after the dot. */
}

.post-meta a {
	color: inherit;
	text-decoration: none;
	background-image: none;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */

.single-post__hero-media img {
	inline-size: 100%;
	object-fit: cover;
}

/* ── Article body ────────────────────────────────────────────────────────── */

/* The measure is the reading token, not the container: the hero above spans the
   full container while the prose stays readable beneath it. */
.single-post__body .wp-block-post-content {
	max-inline-size: var(--reading-width);
	margin-inline: auto;
	font-size: var(--wp--preset--font-size--base);
}

/* In-article headings are NOT the document scale. An h2 inside a post would
   otherwise render at --step-h2 (70px) — the size of a section banner — because
   the global scale is tuned for page headings. The design sets in-article
   headings at 30px and 26px, which are h4 and h5 on that same scale. */
.single-post__body .wp-block-post-content h2 {
	margin-block: var(--space-md) 0;
	font-size: var(--step-h4);
}

.single-post__body .wp-block-post-content h3 {
	margin-block: var(--space-md) 0;
	font-size: var(--step-h5);
}

/* The opening paragraph carries the piece — set a step up from the body, the way
   a standfirst is. `:first-of-type` rather than a class, so an author writing in
   the editor gets it without knowing the class exists. */
.single-post__body .wp-block-post-content > p:first-of-type {
	font-size: var(--wp--preset--font-size--lg);
}

.single-post__body .wp-block-post-content :is(img, figure) {
	margin-block: var(--space-md);
}

.single-post__body .wp-block-post-content blockquote {
	margin-block: var(--space-md);
	padding-inline-start: var(--space-md);
	border-inline-start: 2px solid var(--color-primary);
	font-family: var(--font-display);
	font-size: var(--step-h5);
	line-height: 1.2;
}

.single-post__body .wp-block-post-content blockquote p {
	margin-block: 0;
	font-size: inherit;
}

/* ── Post card — shared by the related row and the /blog archive ─────────────
 * Named for the component, not for either surface, because two templates render
 * it. Per the framework's "middle case", a component two places share belongs to
 * the site stylesheet so that neither owns it.
 */
/* White at rest, the brand cream while the card is hovered or one of its links
   has focus — the card lights up as a whole, like the image zoom below. */
.post-card {
	background-color: var(--color-white);
	block-size: 100%;
	transition: background-color 0.3s ease;
}

.post-card:hover,
.post-card:focus-within {
	background-color: var(--color-secondary);
}

/* The frame clips, so the image can grow inside it without pushing the card
   around. The figure has no size of its own — the block's aspectRatio is inline
   on the <img> — so clipping here is safe: it crops the scaled image, it does
   not change the slot. */
.post-card__media {
	overflow: hidden;
}

.post-card__media img {
	inline-size: 100%;
	object-fit: cover;
	/* 1.04 over 0.7s is the theme's existing zoom — same figures as
	   process-accordion-001's slides, so the two read as one gesture. */
	transition: transform 0.7s ease;
}

/* The whole card is the hover target, not just the photograph: the title and the
   image are separate links, and zooming only when the cursor is over the image
   would make the card feel like two components. `:focus-within` gives keyboard
   users the same cue when either link takes focus. */
.post-card:hover .post-card__media img,
.post-card:focus-within .post-card__media img {
	transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
	.post-card,
	.post-card__media img {
		transition: none;
	}

	.post-card:hover .post-card__media img,
	.post-card:focus-within .post-card__media img {
		transform: none;
	}
}

/* NO padding here. It is a block setting on all three templates that render this
   card — the layout carve-out — and an inline style beats this rule anyway, so a
   value here would have been dead on two surfaces and live on one. That is
   exactly how the related row drifted to 20px while /blog sat at 40px. */
.post-card__body {
	flex: 1;
}

.post-card__title {
	margin-block: 0;
	font-size: var(--step-h5);
}

.post-card__title a {
	color: inherit;
	text-decoration: none;
	background-image: none;
}

.post-card__excerpt {
	/* Pushes the meta row to the bottom, so cards of unequal copy still line
	   their footers up across the row. */
	flex: 1;
	margin-block: 0;
	font-size: var(--wp--preset--font-size--sm);
	color: var(--color-body, var(--color-muted));
}

.post-card__meta {
	padding-block: var(--space-xs);
	border-block-start: var(--border);
}

/* One step below the smallest editor size. Uppercase and letterspaced, this line
   reads larger than its nominal size, so at `xs` it competed with the excerpt
   above it. The step is a token (theme.json settings.custom, NOT a font-size
   preset) so it stays off the editor's size picker — the same reason the internal
   colours live in `custom` rather than in the palette.

   Two classes, because it overrides `.post-meta`, and scoped to the card on
   purpose: the single post's header meta is a standalone line and keeps `xs`. */
.post-card__meta .post-meta {
	font-size: var(--font-size-micro);
	/* Regular in the card: at this size the semi-bold made the line heavier
	   than the title above it. */
	font-weight: 400;
}

/* The card's arrow is the buttons' arrow: on the front end
   inc/button-arrow.php swaps the Icon block's SVG for the slot reel (§3a),
   which takes the buttons' size and rolls when the card is hovered or focused.
   The SVG rule is for the editor, which still draws the Icon block itself
   (`asteri/arrow-corner`, the same glyph). */
.post-card__arrow {
	display: flex;
	color: var(--color-text);
}

.post-card__arrow svg {
	inline-size: var(--button-arrow);
	block-size: var(--button-arrow);
	fill: currentColor;
}

.post-card:hover .post-card__arrow .button-arrow__reel,
.post-card:focus-within .post-card__arrow .button-arrow__reel {
	transform: translateY(calc(-1 * (var(--button-arrow) + var(--button-arrow-slot-gap))));
}

/* The grid the cards sit in — 2 across on /blog, 3 in the related row, both set
   on the block as the layout carve-out requires. Core's `columnCount` has NO
   responsive layer, so without this a 3-up row stays three 110px cards at phone
   width; the breakpoints are the stylesheet's job and this is the only place
   they can live.

   The class is DOUBLED deliberately. Core emits the column count as a generated
   class of weight (0,1,0) — identical to a bare `.post-card-grid`, so a single
   class would merely TIE and resolve by source order, which is reversed between
   the front end and the editor. (0,2,0) wins in both.

   One rule serves both surfaces because the class is shared: the 64rem step
   takes the related row from 3 to 2 and is a no-op on the archive, which is
   already 2.

   There is deliberately NO phone step here. Core already ships one —
   `.wp-block-post-template-is-layout-grid[class*=columns-]:not(.has-native-responsive-grid)`
   at max-width 600px — and at (0,3,0) it OUTWEIGHS the doubled class below, so a
   40rem rule of ours would lose everywhere it mattered while looking in this file
   as though the phone case were handled here. It is handled, by core, at 600px;
   the only width our rule would have added is 600-640px, where two ~290px cards
   read fine. If core's guard class ever lands on the block, this is the comment
   that says where the stacking went. */
@media (max-width: 63.99rem) {
	.post-card-grid.post-card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ── Blog archive ─────────────────────────────────────── */

/* The archive head is the same centred display head the openers use, so it takes
   the same two width liftings rather than inventing its own — see
   `.opener-001--center`, which does this verbatim, and `.single-post__head`,
   which does the first half. The shared `.section-head` 44rem cap is a reading
   measure for a left-aligned column and is too narrow for a centred h1; the
   34rem lead cap from `.section-head--center` breaks this lead over three lines
   where 40rem gives two.

   Specificity is deliberate, not incidental. The lead rule it overrides is
   itself two classes, so a two-class selector here would merely TIE and resolve
   by stylesheet order — which is reversed between the front end and the editor.
   Naming the modifier as well reaches (0,3,0) and wins in both. The title rule
   only has to beat a single class, so two suffice. */
.blog-archive .section-head {
	max-inline-size: none;
}

.blog-archive .section-head--center .section-head__lead {
	max-inline-size: 40rem;
}

/* Pagination, in the meta line's voice rather than as buttons — the archive's
   emphasis belongs on the cards. Gap and centring come from the block's flex
   layout; only what has no block control is here. */
.blog-archive__pagination {
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-muted);
}

.blog-archive__pagination a {
	color: inherit;
	text-decoration: none;
	background-image: none;
}

.blog-archive__pagination a:hover,
.blog-archive__pagination a:focus-visible {
	color: var(--color-primary);
}

/* The page you are on, marked by weight and ink rather than a filled chip, so
   the row stays type and not a widget. */
.blog-archive__pagination .page-numbers.current {
	color: var(--color-text);
}

/* ── Related posts ───────────────────────────────────────────────────────── */

/* "Preberite tudi" sits below the article's h1, so it is an h2 semantically —
   but the design draws it at 46px, which is the h3 step. Size and level are
   separate decisions and this is the case that shows why. */
.related-posts__title {
	margin-block: 0;
	font-size: var(--step-h3);
}


/* -------------------------------------------------------------------------
 * 16. Placeholder images read as a tonal panel
 *
 * The placeholder is a grey glyph on pure white. Dropped into a large frame it
 * is the brightest thing on a cream page and reads as a hole. Multiplied over
 * the sand fill it becomes a quiet panel in the page's own tone, with the glyph
 * as a faint watermark — so a layout can be judged before its photography
 * arrives.
 *
 * Keyed on the FILE NAME, so it cannot touch a real photograph: the moment an
 * author replaces the placeholder the rule simply stops matching. Both the
 * theme's own copy and the Media Library's carry this name.
 * ---------------------------------------------------------------------- */
.wp-block-image:has(> img[src*="image-placeholder"]) {
	background: var(--color-secondary);
}

.wp-block-image > img[src*="image-placeholder"] {
	mix-blend-mode: multiply;
	opacity: 0.55;
}

/* On a sand section the sand panel would vanish into its ground, so there it
   takes the page's own cream instead — the same contexts the light eyebrow
   (§ eyebrow) keys on. */
:is(.band:not(.band--dark), .has-secondary-background-color) .wp-block-image:has(> img[src*="image-placeholder"]) {
	background: var(--color-background);
}

/* -------------------------------------------------------------------------
 * 17. Line reveal — `.reveal-lines`
 *
 * A heading or paragraph rises into place line by line from behind a mask
 * (assets/js/special-effects.js). Shared by the editorial patterns, so it
 * lives here rather than in any one of them.
 *
 * Hidden from first paint under `html.js`, with the same three exits as the
 * blur reveal above: no JS never hides it, reduced motion shows it, and the
 * failsafe shows it after 3s if the script never arrives.
 * ---------------------------------------------------------------------- */
html.js .reveal-lines {
	visibility: hidden;
	animation: staggered-blur-reveal-failsafe 0s 3s forwards;
}

/* SplitText wraps each line in a clipping mask exactly one line-box tall, and
   Hedvig's descenders hang below a tight line box — at line-height 1.1 the tail
   of a "j" or "g" was cut off for the whole reveal. The padding gives the mask
   room for the descender and the equal negative margin takes that room back, so
   the line spacing does not change. */
.reveal-lines .line-mask {
	padding-block-end: 0.18em;
	margin-block-end: -0.18em;
}

@media (prefers-reduced-motion: reduce) {
	html.js .reveal-lines {
		visibility: visible;
		animation: none;
	}
}

/* -------------------------------------------------------------------------
 * 18. Hover preview — a photograph that trails the cursor over a list row
 *
 * Shared by Feature List 001 and Feature List 005 (assets/js/hover-image.js),
 * so it lives here rather than in either pattern folder.
 *
 * Give a row a `data-hover-img` custom data attribute (Advanced → Custom data
 * attributes, the parent's inc/data-attributes.php) and hovering it floats that
 * photograph below the cursor, trailing it. A row without the attribute behaves
 * exactly as before — the whole feature is opt-in per row, and a section where no
 * row has one never builds anything.
 *
 * THE VALUE CANNOT BE CONSUMED IN CSS, which is why hover-image.js exists at all:
 * `attr()` outside `content` has no browser support, so `background-image:
 * url(attr(data-hover-img))` does nothing. The attribute has to be read in JS and
 * handed to an `<img>`.
 *
 * WHAT EACH SIDE OWNS, the same split as feature-list-002: the script writes two
 * numbers — `--hover-x` and `--hover-y`, the trailed cursor position in viewport
 * pixels — and nothing else. Size, offset, shape and the fade all live here, so
 * they are tunable without touching the script.
 *
 * THE ELEMENT IS APPENDED TO `<body>`, not to the section, and that is deliberate:
 * `position: fixed` resolves against the nearest transformed ancestor rather than
 * the viewport, and this pattern's rows are `stagger-item` elements that GSAP
 * transforms. Keeping the follower outside the section makes it immune to that,
 * and to any transform a future instance picks up. The cost is that it cannot
 * inherit `--hover-img-*` from the section, so the tunables live on its own rule.
 */
.hover-img-follower {
	/* Tunables. Size is off-scale on purpose — this is bespoke geometry (how big a
	   preview reads under a cursor), not spacing, and there is no type or spacing
	   step that means "a legible thumbnail". The offset is the gap between the
	   cursor and the image's top edge. */
	--hover-img-size: 20rem;
	--hover-img-offset: var(--space-md);

	/* One duration for both fades: the follower appearing and leaving, and the new
	   photograph fading in over the previous one on a swap. Kept short because this
	   tracks a cursor — past roughly half a second a fade reads as lag rather than
	   as grace, and the reader is already looking at the next row. */
	--hover-img-fade: 0.3s;

	position: fixed;
	inset-block-start: 0;
	inset-inline-start: 0;

	/* Under the header (1000) and the mega-menu overlay (900), above content. */
	z-index: 800;

	inline-size: var(--hover-img-size);
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var(--radius);

	/* Never let the follower become the hover target — it sits under the cursor by
	   construction, so without this it would steal the pointer from the row that
	   is summoning it and the two would fight every frame. */
	pointer-events: none;

	/* Positioned entirely from the two numbers hover-image.js writes. The percentages
	   resolve against the follower's OWN box: the x centres it on the pointer and
	   the y offset drops its top edge below the cursor, so the image hangs under
	   the cursor rather than beside it and never sits over the row being read. */
	translate:
		calc((var(--hover-x, 0) * 1px) - 50%)
		calc((var(--hover-y, 0) * 1px) + var(--hover-img-offset));

	opacity: 0;
	transition: opacity var(--hover-img-fade) ease;

	/* Phones and small tablets never get one. This is the real gate — the script
	   checks the same width, but only so it does no work; the display rule is what
	   makes it true. */
	display: none;
}

/*
 * TWO IMAGE LAYERS, STACKED — this is what makes a row-to-row move a fade rather
 * than a swap. With one `<img>`, changing `src` is instantaneous and there is
 * nothing to transition: the photograph is simply replaced mid-hover. Fading the
 * follower out and back in instead would be worse, because it has no background of
 * its own, so the reader would watch a hole open where the image was.
 *
 * ONLY THE INCOMING LAYER EVER ANIMATES, and hover-image.js is careful about it. A true
 * cross-fade — one out while the other comes in — is the obvious thing and is wrong
 * here: opacity composites as 1 - (1 - a)(1 - b), so two layers passing each other
 * at 0.5 are only 0.75 opaque between them, and the row's own text reads through the
 * middle of every swap. The outgoing layer therefore stays fully opaque for the
 * whole fade and is simply covered over.
 *
 * `position: absolute` resolves against the follower, which is `position: fixed`,
 * so the layers fill it and `overflow: hidden` clips them to its radius.
 *
 * WHICH LAYER IS ON TOP IS `is-top`, A SEPARATE CLASS FROM `is-front`, and the two
 * are deliberately orthogonal: `is-front` is the opacity the layer is animating
 * toward, `is-top` is where it sits in the stack. Reordering the elements in the DOM
 * would express the same thing more simply and cannot be used — moving a node
 * re-resolves its style, so the change from transparent to opaque loses its starting
 * point and the fade is replaced by a jump. Measured: no transition started at all.
 */
.hover-img-follower img {
	position: absolute;
	inset: 0;
	display: block;
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	z-index: 0;
	opacity: 0;
	transition: opacity var(--hover-img-fade) ease;
}

/* The opacity the layer animates toward. */
.hover-img-follower img.is-front {
	opacity: 1;
}

/* Which layer the other one fades in over. A z-index change never animates, so
   swapping this mid-fade is free. */
.hover-img-follower img.is-top {
	z-index: 1;
}

@media (min-width: 48rem) {
	.hover-img-follower {
		display: block;
	}

	.hover-img-follower.is-visible {
		opacity: 1;
	}
}

/* The trailing lag is decoration; the follow is a direct response to the reader's
 * own pointer, so it stays. hover-image.js sets its easing to 1 here, which makes the
 * image track the cursor exactly, and the fade goes with it. */
@media (prefers-reduced-motion: reduce) {
	.hover-img-follower,
	.hover-img-follower img {
		transition: none;
	}
}

/* -------------------------------------------------------------------------
 * 20. Recede — `is-scroll-recede`
 *
 * Add the class to a full-width section and, as it leaves, it scrolls at a
 * fraction of the page's speed while what FOLLOWS slides up over it at full
 * speed (assets/js/special-effects.js). The motion is the script's; the
 * stacking that makes the rest of the page cover it is here.
 *
 *   --scroll-recede   how much it is held back, 0 to 0.9 — 0.5 is half speed.
 *                     Set it on the section to tune one instance.
 *
 * EVERYTHING after the section is stacked above it, not just the next block.
 * The receding section is still on screen for half a viewport after its slot
 * has scrolled away, and a short block right after it (a one-line row under a
 * cover, say) is not tall enough to hide that on its own — the section would
 * reappear below it, on top of whatever came next.
 *
 * Whatever covers has to be opaque, or the receding section shows through. A
 * following block with no background of its own is therefore given the page's
 * colour — what was showing behind it anyway.
 *
 * Both of those rules weigh NOTHING (`:where`), so a block's own position or
 * background, set in the editor or by its pattern, always wins. That is also
 * what lets the class sit on consecutive sections: a receding section keeps
 * its own z-index below, and among equals the later one in the page is on top.
 *
 * Without the script (no JS, reduced motion) none of this changes anything you
 * can see: sections, one after the other.
 * ---------------------------------------------------------------------- */
.is-scroll-recede {
	--scroll-recede: 0.5;

	position: relative;
	z-index: 0;
}

:where(.is-scroll-recede ~ *) {
	position: relative;
	z-index: 1;
}

/* A receding section that FOLLOWS another receding section. The rule above
   is zero weight, so `.is-scroll-recede`'s own z-index: 0 won over it and the
   later section sat BELOW everything between the two — the sections before
   it are at 1. Harmless while every section stays inside its box; the moment
   one of them let content run past its edge (Feature List 003's chapters
   recede on phones, so its last chapter extends into the next section) that
   content painted over the following section instead of under it. At 1, in
   source order, it paints above what precedes it and still below what
   follows, which is all a receding section needs. */
.is-scroll-recede ~ .is-scroll-recede {
	z-index: 1;
}

:where(.is-scroll-recede ~ :not(.has-background)) {
	background-color: var(--color-background);
}

/* The block right after may sit inside the page gutter (`has-gutter`) rather
   than run edge to edge, and its background stops where it does — leaving a
   strip either side through which the receding section shows. A spread shadow
   in the same colour carries the fill out to the screen edges; the clip keeps
   that shadow from reaching up or down over its neighbours. Only the adjacent
   block needs it: it is the one that meets the receding section edge to edge. */
:where(.is-scroll-recede + :not(.has-background)) {
	box-shadow: 0 0 0 100vmax var(--color-background);
	clip-path: inset(0 -100vmax);
}


/* -------------------------------------------------------------------------
 * 21. Scroll shader — `is-scroll-shader`
 *
 * Add the class to an Image block, or to a block that contains images, and
 * those photographs bow and split their colours a little with the speed of the
 * scroll, settling back to the plain photograph when the page stops
 * (assets/js/scroll-shader.js). The script lays a canvas over each photograph
 * and, once it has drawn, hides the <img> beneath; both classes below are set
 * by the script, so without it nothing here applies.
 *
 * The canvas is larger than the photograph (`--scroll-shader-pad`, a share of
 * its size past each edge) so the bow has room. A parent that clips will clip
 * it — the effect still works, the photograph just keeps a straight edge.
 * ---------------------------------------------------------------------- */
:where(.has-scroll-shader) {
	position: relative;
}

.scroll-shader__canvas {
	position: absolute;
	inset: calc(var(--scroll-shader-pad, 0) * -100%);
	inline-size: calc(100% + var(--scroll-shader-pad, 0) * 200%);
	block-size: calc(100% + var(--scroll-shader-pad, 0) * 200%);
	max-inline-size: none;
	pointer-events: none;
}

.has-scroll-shader.is-shader-on img {
	visibility: hidden;
}

/* -------------------------------------------------------------------------
 * 22. Consent banner (Complianz) — what its settings cannot reach
 *
 * The banner's colours, corners, font size, position, labels and logo are
 * Complianz SETTINGS (Complianz → Consent Banner), deliberately: its editor then
 * shows what the visitor sees. This section covers only what those settings
 * cannot express — the header's layout, and the colour of the "always active"
 * label and the category chevrons.
 *
 * Complianz lays the header out as three fixed columns (100px | 1fr | 100px)
 * with the title centred and the logo capped at 40px tall in the first one.
 * Here the logo gets a definite, slightly larger width, and the title sits at
 * the right, just before the close button.
 * Doubled classes: Complianz's own rules are `.cmplz-cookiebanner .cmplz-…`
 * (0,2,0+) and its stylesheet loads after this one.
 * ---------------------------------------------------------------------- */
.cmplz-cookiebanner.cmplz-cookiebanner .cmplz-header {
	grid-template-columns: auto minmax(0, 1fr) auto;
	column-gap: var(--space-sm);
}

.cmplz-cookiebanner.cmplz-cookiebanner .cmplz-logo a {
	display: block;
}

/* A definite width, never `max-width` alone: an image sized only by its ratio
   has no size until its file arrives (§ CSS traps in the framework guide). */
.cmplz-cookiebanner.cmplz-cookiebanner .cmplz-logo img {
	display: block;
	inline-size: 130px;
	block-size: auto;
	max-block-size: none;
}

.cmplz-cookiebanner.cmplz-cookiebanner .cmplz-title {
	justify-self: end;
}

/* "Vedno omogočeni" beside the functional cookies: Complianz paints it with its
   own variable, hard-coded to `green` and not among the colour settings. Set on
   the banner itself, so it wins over Complianz's :root value. */
.cmplz-cookiebanner {
	--cmplz_category_header_always_active_color: var(--color-primary-dark);
}

/* The categories' open/close chevrons in the same brown. Their SVG path has no
   fill of its own, so it rendered in the SVG default black. The fill is set on
   the SVG itself: the toggle's `color` is pinned by a five-class Complianz rule,
   and nothing styles the SVG, so this needs no specificity fight. */
.cmplz-cookiebanner .cmplz-category-toggle svg {
	fill: var(--color-primary-dark);
}
