/**
 * Editorial foundation — WeCurate.
 *
 * Tokens, base typography, shared primitives, the lane layout for editor
 * content, prose, and the block patterns. Loaded on every page after
 * generate-style; hero.css, archive-hero.css, blog.css and team.css build
 * on it and hold only what is specific to them.
 *
 * Breakpoints: 600 phone · 768 GP sidebar collapse · 782 WP tablet · 900 desktop.
 *
 * @package GeneratePress_Child
 */

/*--------------------------------------------------------------
# Tokens
--------------------------------------------------------------*/
:root {
	--wc-font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--wc-font-serif: "Cormorant Garamond", "Times New Roman", Times, serif;

	/* Containers — true content widths, no padding subtracted. */
	--container: 1440px;         /* default; Align: Wide */
	--container-desktop: 1200px; /* .is-desktop */
	/* The default container as an inline size: 1440 or the viewport minus the gutter. */
	--container-inline: min(var(--container), 100% - (var(--editorial-gutter) * 2));

	/* Text measures — caps on type, never container options. */
	--content-reading: 760px;
	--content-measure-ch: 65ch; /* long-form prose only; ch on a heading computes wider than its box */
	--prose-measure: min(var(--content-reading), var(--content-measure-ch));
	--split-measure-ch: 58ch;   /* body copy beside an image (Media & Text) */
	--split-padding: clamp(2rem, 5vw, 4.5rem); /* Media & Text content inset */
	--editorial-heading-measure: clamp(40rem, 64vw, 60rem);

	/* Page inset (a grid lane, not element padding) vs. gaps inside components. */
	--editorial-gutter: clamp(1rem, 0.6rem + 1.6vw, 2.5rem);
	--editorial-gap: clamp(1rem, 0.75rem + 1vw, 2rem);

	/* Vertical rhythm. */
	--editorial-space-2xs: 0.5rem;
	--editorial-space-xs: 0.75rem;
	--editorial-space-sm: 1rem;
	--editorial-space-md: 1.5rem;
	--editorial-space-lg: clamp(2rem, 1.5rem + 2vw, 3rem);
	--editorial-space-xl: clamp(3rem, 2rem + 4vw, 6rem);
	--space-content: var(--editorial-space-md);
	--space-block: clamp(2.5rem, 2rem + 2.5vw, 4rem);
	--space-section: clamp(4rem, 2.5rem + 6vw, 8rem);

	/* Type scale. Middle terms are rem + vw so text still zooms (WCAG 1.4.4). */
	--editorial-font-size-base: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
	--editorial-font-size-lede: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
	--editorial-font-size-h1: clamp(2.5rem, 1.83rem + 2.67vw, 4.2rem);
	--editorial-font-size-display: clamp(3rem, 1.5rem + 5vw, 6.5rem); /* archive band headline */
	--editorial-font-size-h2: clamp(2.25rem, 1.67rem + 2.33vw, 4rem);
	--editorial-font-size-h3: clamp(1.75rem, 1.33rem + 1.67vw, 3rem);
	--editorial-font-size-h4: clamp(1.375rem, 1.17rem + 0.83vw, 2rem);
	--editorial-font-size-h5: clamp(1.25rem, 1.17rem + 0.33vw, 1.5rem);
	--editorial-font-size-h6: clamp(1.125rem, 1.08rem + 0.17vw, 1.25rem);
	--editorial-line-height: 1.5;
	--editorial-heading-line-height: 1.1;

	/*----------------------------------------------------------
	  Colour, in two layers. See docs/05-admin-theme-guide.md.

	  1. PALETTE — the brand's colours and the only place a hex
	     lives. These are the defaults; Appearance → Customize →
	     WeCurate Colors overrides them (inc/colors.php, whose
	     defaults must match). Components never use them directly.

	  2. ROLES — what a colour is for (page, band, text, link,
	     rule…), built from the palette. Components use roles only,
	     so a palette change lands everywhere it should and nowhere
	     it shouldn't.

	  The rule that keeps text readable: the brand pink, the accent
	  red and sage are FILLS, LINES and large marks. As text they fail
	  (pink 1.8:1, sage 2.1:1, red 3.9:1 on white). Text always takes
	  a *-text role, which is the same hue darkened past 4.5:1 — so a
	  new accent picked in the Customizer can't produce unreadable
	  links.
	----------------------------------------------------------*/

	/* 1. Palette */
	--wc-we-curate-pink: #e5b5ab;    /* brand pink: fills, bands, hover */
	--wc-color-red: #cb5050;         /* accent: rules, bullets, badges */
	--wc-color-sage: #a7b5a8;        /* second brand colour: fills */
	--wc-color-taupe: #988280;       /* muted (its text shade is darker) */
	--wc-color-medium-pink: #968380; /* mauve: accent rules, input focus */
	--wc-color-greige: #dfd4d1;      /* borders, card surfaces */
	--wc-color-light-pink: #faf6f4;  /* blush: tinted bands, the archive band */
	--wc-color-plum: #2d0f10;        /* editor swatch */
	--wc-color-brown: #42281e;       /* editor swatch */
	--wc-color-black: #000000;
	--wc-color-white: #ffffff;
	/* The accent's old name, from when it was a pink. It is red. */
	--wc-color-pink: var(--wc-color-red);

	/* 2. Roles */

	/* Surfaces */
	--editorial-page: var(--wc-color-white);
	--editorial-band: var(--wc-color-light-pink);
	--editorial-surface: color-mix(in srgb, var(--wc-color-greige) 40%, var(--wc-color-white));
	/* Brand fills, with --editorial-on-fill over them: black on the pink
	   is 11.5:1, on sage 9.8:1. Never white text on either (1.8:1). */
	--editorial-brand-fill: var(--wc-we-curate-pink);
	--editorial-brand-fill-alt: var(--wc-color-sage);

	/* Text */
	--editorial-text: color-mix(in srgb, var(--wc-color-black) 86.6%, var(--wc-color-white)); /* #222222, GP's body text */
	--editorial-heading: var(--wc-color-black);
	--editorial-muted: var(--wc-color-taupe);
	/* Accent text is the accent itself, solid: eyebrows, links and labels
	   show the colour as picked. Note it is the editor's job to pick one
	   dark enough to read: the default #cb5050 is 4.4:1 on white, just
	   under AA for small text. The muted shade is still darkened. */
	--editorial-accent-text: var(--editorial-accent);
	--editorial-muted-text: color-mix(in srgb, var(--editorial-muted) 70%, var(--wc-color-black)); /* #6a5b5a */
	/* 62% clears AA for small text on white (5.1:1) and large-text 3:1
	   on the band and the greige expertise band (3.8:1). */
	--editorial-sage-text: color-mix(in srgb, var(--wc-color-sage) 62%, var(--wc-color-black)); /* #687068 */
	--editorial-link: var(--editorial-accent-text);
	--editorial-link-hover: var(--editorial-text);
	--editorial-on-image: var(--wc-color-white);  /* over photos and dark scrims */
	--editorial-on-fill: var(--wc-color-black);   /* over the brand fills */
	--editorial-on-accent: var(--wc-color-white); /* over --editorial-accent-fill / -text */

	/* Accent marks */
	--editorial-accent: var(--wc-color-red);
	/* White on the accent is 4.4:1, just short of AA for the small
	   uppercase badges, so they fill with a slightly darker mix (5.1:1). */
	--editorial-accent-fill: color-mix(in srgb, var(--editorial-accent) 92%, var(--wc-color-black)); /* #ba4a4a */
	--editorial-accent-rule: var(--wc-color-medium-pink);

	/* Lines */
	--editorial-border: var(--wc-color-greige);
	--editorial-rule-width: 70px;

	/* Earlier names, kept so nothing breaks. Softened text mixes toward
	   --editorial-soft-bg (a solid mix, never opacity, which would also
	   fade the links inside it). */
	--editorial-soft-bg: var(--editorial-band);
	--editorial-base-2: var(--editorial-band);
	--we-curate-primary: var(--editorial-brand-fill);
	--we-curate-secondary: var(--editorial-brand-fill-alt);

	/* GeneratePress's Global Colors, driven by the roles so one panel
	   (WeCurate Colors) sets everything. GP prints its own values on
	   :root earlier in the page; these come later and win. Its two cool
	   greys give way to warm ones and its copy of the pink (#e4b5ac)
	   becomes the brand pink. */
	--contrast: var(--editorial-text);
	--contrast-2: var(--editorial-muted-text);
	--contrast-3: var(--editorial-accent-rule);
	--base: var(--editorial-surface);
	--base-2: var(--editorial-band);
	--base-3: var(--editorial-page);
	--accent: var(--editorial-brand-fill);
}

/* Turns the measure caps off for a scope (body, or one wrapper). */
.no-reading-measure {
	--content-reading: 100%;
	--content-measure-ch: 100%;
	--prose-measure: none; /* computed on :root, so it must be reset here too */
	--editorial-heading-measure: 100%;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/
/* GP's default body font is the system stack; set the brand type once here
   instead of on every component. Sizes for h1–h6 stay scoped to content.
   The page is white: GP paints the body with --base-2, which this theme
   keeps as the light-pink band colour (--editorial-soft-bg), so the body
   is set here rather than by changing that token. */
body {
	background-color: var(--editorial-page);
	font-family: var(--wc-font-sans);
	font-size: var(--editorial-font-size-base);
	line-height: var(--editorial-line-height);
}

h1, h2 {
	color: var(--editorial-heading);
	font-family: var(--wc-font-serif);
	font-weight: 600;
	line-height: var(--editorial-heading-line-height);
	text-wrap: balance;
}

/* Only h1 and h2 are serif. h3-h6 are sans at medium weight: the serif's
   600 reads too heavy in DM Sans, and the sans wants a little more line
   spacing than Cormorant's 1.1. */
h3, h4, h5, h6 {
	color: var(--editorial-heading);
	font-family: var(--wc-font-sans);
	font-weight: 400;
	line-height: 1.2;
	text-wrap: balance;
}
h4 {
	color: var(--editorial-accent);
}
h3 {
	font-weight: 300;
}
.main-navigation a,
.main-navigation .main-nav ul ul li a {
	padding-inline: 10px !important;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

/* Text in the accent family always uses the darkened text shade. GP's
   Global Colors set --accent to the We-Curate pink and use it for every
   plain link, the current menu item and the "Accent" text colour in the
   editor — 1.8:1 on white, so article links, pagination, tags, author
   names and the current nav item were close to unreadable. --accent
   stays the pink for what it is good at: backgrounds
   (.has-accent-background-color) and fills with dark text on top. */
a,
:root .has-accent-color,
.main-navigation .main-nav ul li[class*="current-menu-"] > a {
	color: var(--editorial-link);
}

/* Every link shows the hand cursor, including its children. */
a[href],
a[href] * {
	cursor: pointer;
}

/* GP's dropdown arrow: space before it, none after, so a parent item and
   its arrow read as one unit and the gap to the next item stays even. */
.main-navigation .menu-item-has-children .dropdown-menu-toggle {
	padding-left: 0.3rem;
	padding-right: 0;
}

/* The one reduced-motion rule: every transition and animation ends at
   once, so components never need their own transition: none. The few
   blocks below that remain under this query undo transforms or smooth
   scrolling, which this rule can't. */
@media ( prefers-reduced-motion: reduce ) {
	*, ::before, ::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}

/*--------------------------------------------------------------
# Shared primitives
--------------------------------------------------------------*/
/* One definition per look; each lists the classes that wear it. Add a
   class to a list rather than restyling. :is() keeps class specificity so
   these beat GP's element rules (ul, input[type=search]); a component
   overrides a value with a two-class selector. */

/* Container: sits on the default 1440 lane with the page gutter. */
:is(
	.wc-page-header--contained,
	.editorial-grid-toolbar,
	.team-grid,
	.team-grid__empty,
	.team-biography,
	.team-profile__layout,
	.team-related,
	.wc-form-section-auto
) {
	width: var(--container-inline);
	margin-inline: auto;
}

/* Eyebrow: small accent label above or below a title. */
:is(
	.entry-hero__eyebrow,
	.entry-hero__excerpt-eyebrow,
	.entry-hero__meta-label,
	.wc-page-header__eyebrow,
	.blog-card__eyebrow,
	.editorial-lead__eyebrow,
	.wc-services-section__eyebrow,
	.wc-service__eyebrow,
	.wc-section__eyebrow,
	.wc-form-section__eyebrow,
	.wc-next-event__date,
	.post-navigation__label
) {
	margin: 0 0 var(--editorial-space-xs);
	color: var(--editorial-accent-text);
	font-family: var(--wc-font-sans);
	font-size: 1.2rem;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: uppercase;
}

/* Tracked label: quiet uppercase caption (toolbar label, sidebar titles). */
:is(
	.editorial-archive__label,
	.blog-sidebar__section h2,
	.team-languages__label
) {
	color: var(--editorial-muted-text);
	font-family: var(--wc-font-sans);
	font-size: 1.1rem;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: uppercase;
}

/* Accent link: "View profile →", "Learn more". */
:is(
	.team-card__link,
	.wc-service__link
) {
	color: var(--editorial-accent-text);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
}

:is(
	.team-card__link,
	.wc-service__link
):is(:hover, :focus-visible) {
	color: var(--editorial-accent-text);
	text-decoration: underline;
}

/* Cover link: the title's link stretches over its positioned card, so the
   whole card is the target without wrapping it in an <a>. The card needs
   position: relative. */
:is(.wc-services--cards, .wc-services--gallery, .wc-services--grid, .wc-services--numbered) .wc-service__title a::after,
.team-card h2 a::after,
.wc-next-event h3 a::after,
.post-navigation :is(.prev, .next) a::after {
	content: "";
	position: absolute;
	inset: 0;
}

/* Keyboard focus rings the whole card, not the title text. A card sets
   --wc-cover-focus to change the ring colour. (The services formats have
   their own focus treatments.) */
:is(.team-card h2, .wc-next-event h3, .post-navigation :is(.prev, .next)) a:focus-visible {
	outline: none;
}

:is(.team-card h2, .wc-next-event h3, .post-navigation :is(.prev, .next)) a:focus-visible::after {
	outline: 2px solid var(--wc-cover-focus, var(--editorial-heading));
	outline-offset: 2px;
}

/* Theme lists are layout, not prose: no bullets, no indent, no per-item
   reading cap (the Prose rule caps every content <li> at 760px). */
.entry-content :is(.wc-services, .wc-social, .wc-map-cities, .wc-brand-logos, .wc-gallery__slides, .wc-gallery__row, .wp-block-navigation) {
	padding: 0;
}

.entry-content :is(.wc-services, .wc-social, .wc-map-cities, .wc-brand-logos, .wc-gallery__slides, .wc-gallery__row) > li,
.entry-content .wp-block-navigation li {
	max-width: none;
	margin: 0;
	padding: 0;
}

.entry-content :is(.wc-services, .wc-social, .wc-map-cities, .wc-brand-logos, .wc-gallery__slides, .wc-gallery__row) > li::before,
.entry-content .wp-block-navigation li::before {
	content: none;
}

/* Title link: heading text that is a link, underlined only on hover. */
:is(.blog-card :is(h2, h3), .team-card h2, .wc-service__title, .wc-next-event h3) a,
:is(.blog-sidebar__link) {
	color: inherit;
	text-decoration: none;
}

:is(.blog-card :is(h2, h3), .team-card h2, .wc-next-event h3) a:is(:hover, :focus-visible),
.blog-sidebar__link:is(:hover, :focus-visible) .blog-sidebar__item-title {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}

/* Page header (wc_render_page_header): eyebrow / left-aligned title / lede.
   --contained puts it on the container; the blog's sits in its column. */
.wc-page-header {
	padding-block: var(--editorial-space-sm) var(--editorial-space-sm);
}

.wc-page-header h1 {
	max-width: none;
	margin: 0 0 var(--editorial-space-xs);
	text-align: left;
	font-size: var(--editorial-font-size-h1);
	overflow-wrap: anywhere;
	-webkit-hyphens: auto;
	hyphens: auto;
}

/* Lede: sans intro paragraph under a page-header title, softened with
   opacity rather than a lighter swatch so it tracks the text colour. */
.wc-page-header__intro {
	max-width: var(--content-reading);
	color: color-mix(in srgb, var(--editorial-text) 90%, var(--editorial-soft-bg));
	font-family: var(--wc-font-sans);
	font-size: clamp(.9rem, .7rem + 0.3vw, 1rem);
	line-height: 1.5;
}

:is(.wc-page-header__intro, .team-biography, .entry-hero__intro) > :last-child {
	margin-bottom: 0;
}

/* Archive band (brands, retailers, events, team): the header sits on a
   full-bleed blush band — eyebrow, a display-size headline that balances
   onto two lines ("BEYOND / THE SHOW."), and the lede in black at reading
   size. The container inset is padding, not a wrapper, so the header keeps
   the three children wc_render_page_header() prints. The band colour is
   the Customizer's Blush. */
.wc-page-header--band {
	width: 100%;
	padding-block: var(--editorial-space-lg);
	padding-inline: max(var(--editorial-gutter), calc((100% - var(--container)) / 2));
	background: var(--editorial-band);
}

.wc-page-header--band .wc-page-header__eyebrow {
	margin-block-end: var(--editorial-space-md);
}

.wc-page-header--band h1 {
	max-width: min(100%, 8.5em);
	margin: 0 0 var(--editorial-space-md);
	font-size: var(--editorial-font-size-display);
	font-weight: 500;
	line-height: 1;
	text-wrap: balance;
}

.wc-page-header--band .wc-page-header__intro {
	max-width: min(100%, 62rem);
	color: var(--editorial-text);
	font-size: clamp(1.05rem, 0.95rem + 0.35vw, 1.25rem);
	line-height: 1.4;
}

/* The toolbar under the band gets a breath of white first. */
.wc-page-header--band + .editorial-grid-toolbar {
	padding-block-start: var(--editorial-space-lg);
}

/* Accent rule: the short line under a section title, and as a divider.
   Extra selectors sit outside the :is() so its specificity stays put. */
:is(.entry-content h2, .wc-form-section h2, .team-related > h2),
.team-profile__hero .entry-hero__subtitle {
	position: relative;
	padding-bottom: var(--editorial-space-xs);
}

:is(.entry-content h2, .wc-form-section h2, .team-related > h2)::after,
.team-profile__hero .entry-hero__subtitle::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: var(--editorial-rule-width);
	height: 1px;
	background: var(--editorial-accent);
}

/* No rule on a heading set on the accent background: the accent-coloured
   line disappears into it or clashes (the homepage's pink band). */
.entry-content .has-accent-background-color h2 {
	padding-bottom: 0;
}

.entry-content .has-accent-background-color h2::after {
	content: none;
}

/* Brand rule: the same line, 2px in We-Curate pink, under the homepage
   hero's heading (the Media & Text block that opens the front page) and
   a team member's job title. The homepage hero's small label after it
   (BEAUTY | LIFESTYLE) is text, so it takes the accent's text shade —
   the pink itself is 1.8:1 on white. */
.home .entry-content > .wp-block-media-text:first-child h2::after,
.team-profile__hero .entry-hero__subtitle::after {
	height: 2px;
	background: var(--editorial-brand-fill);
}

.home .entry-content > .wp-block-media-text:first-child h2 + p,
.home .entry-content > .wp-block-media-text:first-child h2 + p a {
	color: var(--editorial-accent-text);
}

:is(.entry-hero__divider, .entry-hero__excerpt-divider) {
	display: block;
	width: var(--editorial-rule-width);
	height: 1px;
	background: var(--editorial-accent);
}

/* Section title: h2-sized, left, on the container (related row).
   margin-inline stays auto — the container rule above centres it; a
   margin shorthand here would reset that and push the title to the edge. */
.team-related > h2 {
	margin-block: 0 var(--space-content);
	font-weight: 600;
	text-align: left;
}

/* Underline input: search fields with only a bottom rule. The element
   prefix outranks GP's input[type=search] styling. */
input:is(.editorial-grid-search__input, .blog-sidebar__search-input) {
	width: 100%;
	border: 0;
	border-bottom: 1px solid currentColor;
	border-radius: 0;
	background: transparent;
	color: inherit;
}

input:is(.editorial-grid-search__input, .blog-sidebar__search-input)::placeholder {
	color: var(--editorial-muted-text);
	opacity: 1;
}

input:is(.editorial-grid-search__input, .blog-sidebar__search-input):focus {
	outline: none;
	opacity: 1;
}

input:is(.editorial-grid-search__input, .blog-sidebar__search-input)::-webkit-search-decoration,
input:is(.editorial-grid-search__input, .blog-sidebar__search-input)::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

/* Chips: bordered tags, a small uppercase label (markets, hero
   categories); --linked for hover feedback on <a> items. */
.wc-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35em;
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--wc-font-sans);
}

.wc-chips li {
	padding: 0.35em 0.7em;
	border: 1px solid var(--editorial-border);
	background: var(--editorial-surface);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1.3;
	text-transform: uppercase;
}

.wc-chips a {
	color: inherit;
	text-decoration: none;
}

.wc-chips--linked li:is(:hover, :focus-within) {
	border-color: var(--editorial-muted);
}

/* Card frame: white panel with a hairline. */
.team-card,
.post-navigation :is(.nav-previous, .nav-next) {
	border: 1px solid var(--editorial-border);
	background: var(--editorial-page);
}

/*--------------------------------------------------------------
# Lane layout
--------------------------------------------------------------*/
.entry-content {
	container: editorial / inline-size;
}

/* Full-width templates stretch .entry-content edge to edge; instead of
   padding each child, the wrapper is a grid of named lanes and each child
   picks one: full > container/wide (1440) > desktop/compact (1200) > content (760).
   Declared here, not on :root, so the gutter override in the container
   query below is picked up. */
.entry-content,
.editorial-section {
	--lane-avail: calc(100% - (var(--editorial-gutter) * 2));
	--lane-wide: min(var(--container), var(--lane-avail));
	--lane-desktop: min(var(--container-desktop), var(--lane-avail));
	--lane-content: min(var(--content-reading), var(--lane-avail));
	--lane-spacer-wide: max(0px, calc((var(--lane-wide) - var(--lane-desktop)) / 2));
	--lane-spacer-desktop: max(0px, calc((var(--lane-desktop) - var(--lane-content)) / 2));

	--editorial-lanes:
		[full-start]
			minmax(var(--editorial-gutter), 1fr)
		[container-start wide-start]
			var(--lane-spacer-wide)
		[desktop-start compact-start]
			var(--lane-spacer-desktop)
		[content-start]
			var(--lane-content)
		[content-end]
			var(--lane-spacer-desktop)
		[desktop-end compact-end]
			var(--lane-spacer-wide)
		[container-end wide-end]
			minmax(var(--editorial-gutter), 1fr)
		[full-end];

	display: grid;
	grid-template-columns: var(--editorial-lanes);
}

/* Paragraph-to-paragraph gap; anything bigger adds its own margin on top. */
.entry-content {
	row-gap: var(--space-content);
}

/* The front page is full-bleed sections that carry their own padding. */
.home .entry-content {
	row-gap: 0;
}

.entry-content > *,
.editorial-section > * {
	grid-column: content;
	min-width: 0;
}

/* Raw media reads wider than text by default. Pattern components are not
   listed: they ship align="wide" in their markup so the width is editable. */
.entry-content > figure,
.entry-content > .wp-block-image,
.entry-content > .wp-block-gallery,
.entry-content > .wp-block-video,
.entry-content > .wp-block-embed,
.entry-content > .entry-gallery,
.editorial-section > figure,
.editorial-section > .wp-block-image,
.editorial-section > .wp-block-gallery {
	grid-column: container;
}

/* Explicit width: the Align toolbar (.alignwide/.alignfull) or an is-* class
   from Additional CSS class(es) for the widths the toolbar has no button for. */
.entry-content > .alignwide,
.entry-content > .is-wide,
.editorial-section > .alignwide,
.editorial-section > .is-wide {
	grid-column: wide;
}

.entry-content > .is-container,
.editorial-section > .is-container {
	grid-column: container;
}

.entry-content > :is(.is-desktop, .is-compact),
.editorial-section > :is(.is-desktop, .is-compact) {
	grid-column: desktop;
}

.entry-content > .is-reading,
.entry-content > .is-contained,
.editorial-section > .is-reading,
.editorial-section > .is-contained {
	grid-column: content;
}

.entry-content > .alignfull,
.entry-content > .is-full,
.editorial-section > .alignfull,
.editorial-section > .is-full {
	grid-column: full;
}

/* Core layout blocks (section builders, not prose) default to full bleed. */
.entry-content > :is(.wp-block-media-text, .wp-block-columns, .wp-block-cover, .wp-block-group):not(.alignwide, .is-wide, .is-container, .is-desktop, .is-compact, .is-reading),
.editorial-section > :is(.wp-block-media-text, .wp-block-columns, .wp-block-cover, .wp-block-group):not(.alignwide, .is-wide, .is-container, .is-desktop, .is-compact, .is-reading) {
	grid-column: full;
}

/* A full-lane Group that doesn't constrain its children gets the page gutter. */
.entry-content > .wp-block-group:not(.is-layout-constrained):not(.alignwide, .is-wide, .is-container, .is-desktop, .is-compact, .is-reading):not([class*="editorial-"]),
.editorial-section > .wp-block-group:not(.is-layout-constrained):not(.alignwide, .is-wide, .is-container, .is-desktop, .is-compact, .is-reading):not([class*="editorial-"]) {
	padding-inline: var(--editorial-gutter);
}

/* Text-led components keep a gutter when full-bleed (grids stay edge to edge). */
.entry-content > :is(.editorial-duo-grid, .editorial-lead):is(.alignfull, .is-full),
.editorial-section > :is(.editorial-duo-grid, .editorial-lead):is(.alignfull, .is-full) {
	padding-inline: var(--editorial-gutter);
}

/* Full-bleed Columns: no outer inset; the outermost cells carry the gutter. */
.entry-content > .wp-block-columns:not(.alignwide, .is-wide, .is-container, .is-desktop, .is-compact, .is-reading),
.editorial-section > .wp-block-columns:not(.alignwide, .is-wide, .is-container, .is-desktop, .is-compact, .is-reading) {
	padding-inline: 0;
}

.entry-content > .wp-block-columns:not(.alignwide, .is-wide, .is-container, .is-desktop, .is-compact, .is-reading) > .wp-block-column:first-child,
.editorial-section > .wp-block-columns:not(.alignwide, .is-wide, .is-container, .is-desktop, .is-compact, .is-reading) > .wp-block-column:first-child {
	padding-inline-start: var(--editorial-gutter);
}

.entry-content > .wp-block-columns:not(.alignwide, .is-wide, .is-container, .is-desktop, .is-compact, .is-reading) > .wp-block-column:last-child,
.editorial-section > .wp-block-columns:not(.alignwide, .is-wide, .is-container, .is-desktop, .is-compact, .is-reading) > .wp-block-column:last-child {
	padding-inline-end: var(--editorial-gutter);
}

/* Media & Text: core's 8% padding scales with the cell; use a clamped inset,
   and the page gutter on the side that touches the viewport when full-bleed.
   The shorter split measure is a token for the text inside (Prose), never a
   width on the column itself. */
.entry-content .wp-block-media-text__content,
.editorial-section .wp-block-media-text__content {
	--prose-measure: min(var(--content-reading), var(--split-measure-ch));
	padding-inline: var(--split-padding);
	padding-block: var(--space-content);
}

.entry-content > .wp-block-media-text:not(.alignwide, .is-wide, .is-container, .is-desktop, .is-compact, .is-reading):not(.has-media-on-the-right) .wp-block-media-text__content {
	padding-inline-end: var(--editorial-gutter);
}

.entry-content > .wp-block-media-text:not(.alignwide, .is-wide, .is-container, .is-desktop, .is-compact, .is-reading).has-media-on-the-right .wp-block-media-text__content {
	padding-inline-start: var(--editorial-gutter);
}

/* Stacked (core stacks at 600): both sides touch the viewport. */
@media ( max-width: 600px ) {
	.entry-content .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content,
	.editorial-section .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content {
		padding-inline: var(--editorial-gutter);
	}
}

/* Full-bleed text keeps the gutter as an inset (an image would touch the edge). */
.entry-content > :is(h1, h2, h3, h4, h5, h6, p, ul, ol, dl, blockquote):is(.alignfull, .is-full) {
	padding-inline: var(--editorial-gutter);
}

.entry-content > h2:is(.alignfull, .is-full)::after {
	left: var(--editorial-gutter);
}

/* A wider lane must also drop the measure caps, or the setting looks inert. */
.entry-content > :is(.alignwide, .alignfull, .is-wide, .is-full),
.editorial-section > :is(.alignwide, .alignfull, .is-wide, .is-full) {
	max-width: none;
}

/* Neutralise GP's own negative-margin full-bleed hack; the lane already spans. */
.entry-content > .alignfull,
.entry-content > .is-full,
.editorial-section > .alignfull,
.editorial-section > .is-full {
	width: auto;
	margin-left: 0;
	margin-right: 0;
}

/* A column has no wider lane to reach, but the editor still offers Align
   Wide/Full inside one, and WordPress answers with max-width: calc(100% +
   60px) — the Footprint heading's eyebrow ran 30px off a phone that way.
   Inside a column, wide and full mean the column's own width. */
.entry-content .wp-block-column > :is(.alignwide, .alignfull) {
	max-width: 100%;
	margin-inline: 0;
}

/* Grid children don't collapse margins: rhythm is row-gap plus one-directional
   margins on the few elements that need more. */
.entry-content > :is(p, ul, ol, dl, blockquote, table, figure, pre, h1, h2, h3, h4, h5, h6) {
	margin-block: 0;
}

.entry-content > :is(figure, blockquote) {
	margin-inline: 0;
}

.entry-content > :is(figure, .wp-block-image, .wp-block-gallery, .wp-block-video, .wp-block-embed, .entry-gallery) {
	margin-block: var(--editorial-space-lg);
}

.entry-content > :first-child {
	margin-block-start: 0;
}

.entry-content > :last-child {
	margin-block-end: 0;
}

/*--------------------------------------------------------------
# Section component
--------------------------------------------------------------*/
.editorial-section {
	padding-block: var(--space-section);
	row-gap: var(--editorial-space-sm);
}

.editorial-section--tight {
	padding-block: var(--space-block);
}

.editorial-section--surface {
	background: var(--editorial-surface);
}

.editorial-section--surface + .editorial-section--surface {
	padding-block-start: 0;
}

/*--------------------------------------------------------------
# Prose
--------------------------------------------------------------*/
/* Text caps at the pixel measure or the character count, whichever is
   smaller, independent of the block's own width: paragraphs, headings, list
   items, definitions and quotes. On a heading 65ch is wider than 760px, so
   the pixel measure is what applies. Eyebrow labels aren't text to measure;
   :where() keeps that exclusion at zero specificity so component rules
   below still set their own widths. Lists are capped per item, so UI lists
   (grids, service rows) keep their own layout. */
.entry-content :is(p:where(:not([class*="eyebrow"])), h1, h2, h3, h4, h5, h6, li, dt, dd, blockquote),
.team-biography > * {
	max-width: var(--prose-measure);
}

/* Aligned text keeps its alignment inside a capped box. */
.entry-content > :is(p, h1, h2, h3, h4, h5, h6).has-text-align-center {
	margin-inline: auto;
}

.entry-content > :is(p, h1, h2, h3, h4, h5, h6).has-text-align-right {
	margin-inline-start: auto;
}

/* Body copy, softened. :where() keeps it at zero specificity, so any
   class or block colour (eyebrows, has-*-color) wins, and currentColor
   follows the section's text colour (white on dark sections). */
:where(
	.entry-content p,
	.entry-content li,
	.entry-content dd,
	.entry-content blockquote,
	.team-biography > *
) {
	color: color-mix(in srgb, currentColor 80%, var(--editorial-soft-bg));
}

.entry-content p {
	text-wrap: pretty;
}

.entry-content blockquote {
	border-left: 1px solid var(--editorial-accent);
	font-family: var(--wc-font-sans);
	font-style: italic;
}


/* Headings: sizes only — family, colour and line-height come from the base.
   Contact Sections render after the content, outside .entry-content, so
   they're listed to get the same sizes. */
:is(.entry-content, .wc-form-section) h1 { font-size: var(--editorial-font-size-h1); }
:is(.entry-content, .wc-form-section) h2 { font-size: var(--editorial-font-size-h2); }
:is(.entry-content, .wc-form-section) h3 { font-size: var(--editorial-font-size-h3); }
:is(.entry-content, .wc-form-section) h4 { font-size: var(--editorial-font-size-h4); }
:is(.entry-content, .wc-form-section) h5 { font-size: var(--editorial-font-size-h5); }
:is(.entry-content, .wc-form-section) h6 { font-size: var(--editorial-font-size-h6); }

/* Headings get room above; row-gap covers below. */
.entry-content > h2 {
	margin-block-start: var(--space-block);
}

.entry-content > h3,
.entry-content > h4 {
	margin-block-start: var(--editorial-space-lg);
}

.entry-content > :is(h1, h2, h3, h4, h5, h6):first-child {
	margin-block-start: 0;
}

/* Post/archive title lives outside .entry-content and keeps its own measure. */
.entry-header {
	width: 100%;
}

.entry-title,
.page-title {
	margin-left: auto;
	margin-right: auto;
	text-align: center;
	font-size: var(--editorial-font-size-h1);
}

/* Lists in prose: accent dot on ul, accent numerals on ol. "Prose" is any
   container holding editor or field text; UI lists (menus, chips, widgets)
   are deliberately not listed. Add a container here, not a new rule. */
:where(
	.entry-content,
	.editorial-section,
	.team-biography,
	.entry-hero__intro,
	.entry-hero__excerpt,
	.wc-page-header__intro,
	.comment-content,
	.wc-prose
) ul > li {
	list-style: none;
	position: relative;
	padding-left: 1em;
}

:where(
	.entry-content,
	.editorial-section,
	.team-biography,
	.entry-hero__intro,
	.entry-hero__excerpt,
	.wc-page-header__intro,
	.comment-content,
	.wc-prose
) ul > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.65em;
	width: 6px;
	height: 6px;
	background: var(--editorial-accent);
	border-radius: 50%;
}

/* Navigation style "Separated ( | )" (inc/patterns.php): a menu shown in
   the content as one line of links split by thin pipes, wrapping on small
   screens. The pipe is the item's ::before, so it never dangles at the end
   of a line's last link. */
.entry-content .wp-block-navigation.is-style-wc-separated .wp-block-navigation__container {
	flex-wrap: wrap;
	justify-content: inherit;
	row-gap: 0.35em;
	column-gap: 0;
}

.entry-content .wp-block-navigation.is-style-wc-separated .wp-block-navigation-item + .wp-block-navigation-item::before {
	content: "|";
	position: static;
	width: auto;
	height: auto;
	margin-inline: 0.6em;
	background: none;
	border-radius: 0;
	opacity: 0.6;
}

.entry-content .wp-block-navigation.is-style-wc-separated .wp-block-navigation-item__content {
	color: inherit;
	text-decoration: none;
}

.entry-content .wp-block-navigation.is-style-wc-separated .wp-block-navigation-item__content:is(:hover, :focus-visible) {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

:where(
	.entry-content,
	.editorial-section,
	.team-biography,
	.entry-hero__intro,
	.entry-hero__excerpt,
	.wc-page-header__intro,
	.comment-content,
	.wc-prose
) ol > li::marker {
	color: var(--editorial-accent-text);
	font-family: var(--wc-font-serif);
}

.entry-content ul,
.entry-content ol {
	margin: 0 0 var(--editorial-space-sm);
	padding-left: 1.2em;
}

:where(
	.team-biography,
	.entry-hero__intro,
	.wc-page-header__intro,
	.comment-content,
	.wc-prose
) :is(ul, ol) {
	margin-block: 0 var(--editorial-space-sm);
	padding-left: 0.25em;
}

.entry-content li {
	margin: var(--editorial-space-2xs) 0;
}

/*--------------------------------------------------------------
# Tables — one look site-wide, whatever the block style
  (Default or Stripes) or "fixed width" setting: sans throughout,
  a tinted uppercase header row, horizontal rules only. The
  .wp-block-table selectors outrank core's block CSS (cell borders,
  3px thead rule, grey stripes).
--------------------------------------------------------------*/
.wp-block-table,
.entry-content figure.wp-block-table {
	margin-block: var(--editorial-space-md);
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

table,
.wp-block-table table,
.entry-content table {
	width: 100%;
	margin-block: var(--editorial-space-md);
	border: 0;
	border-collapse: collapse;
	border-top: 1px solid var(--editorial-heading);
	border-bottom: 1px solid var(--editorial-heading);
	font-family: var(--wc-font-sans);
	font-size: 0.925em;
	line-height: 1.45;
}

.wp-block-table table {
	margin-block: 0;
}

:is(table, .wp-block-table table) :is(th, td),
.wp-block-table :is(th, td) {
	padding: 0.85rem 1rem;
	border: 0;
	border-bottom: 1px solid var(--editorial-border);
	text-align: left;
	vertical-align: top;
	/* Narrow columns: wrap at spaces, don't hyphenate mid-word. */
	-webkit-hyphens: manual;
	hyphens: manual;
	overflow-wrap: break-word;
}

:is(table, .wp-block-table table) :is(thead, tfoot),
.wp-block-table :is(thead, tfoot) {
	border: 0;
}

:is(table, .wp-block-table table) th,
.wp-block-table th,
.wp-block-table thead th {
	background: var(--editorial-surface);
	border-bottom: 1px solid var(--editorial-heading);
	color: var(--editorial-heading);
	font-family: var(--wc-font-sans);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	vertical-align: bottom;
}

/* Row headers (a th inside tbody) read as bold text, not a header band. */
:is(table, .wp-block-table table) tbody th,
.wp-block-table tbody th {
	background: transparent;
	border-bottom-color: var(--editorial-border);
	font-size: inherit;
	letter-spacing: 0;
	text-transform: none;
	vertical-align: top;
}

:is(table, .wp-block-table table) tbody tr:last-child > *,
.wp-block-table tbody tr:last-child > * {
	border-bottom: 0;
}

:is(table, .wp-block-table table) tfoot td,
.wp-block-table tfoot td {
	border-top: 1px solid var(--editorial-heading);
	font-weight: 600;
}

/* Stripes style: same table, no grey bands. */
.wp-block-table.is-style-stripes {
	border-bottom: 0;
}

.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
	background-color: transparent;
}

.wp-block-table.is-style-stripes :is(th, td) {
	border-color: var(--editorial-border);
}

.wp-block-table.is-style-stripes thead th {
	border-color: var(--editorial-heading);
}

.wp-block-table figcaption,
.wp-block-table .wp-element-caption {
	margin-top: var(--editorial-space-xs);
	color: var(--editorial-muted-text);
	font-family: var(--wc-font-sans);
	font-size: 0.85rem;
	text-align: left;
}

/* Long URLs/words wrap; code doesn't hyphenate. */
.entry-title,
.entry-content {
	overflow-wrap: anywhere;
	-webkit-hyphens: auto;
	hyphens: auto;
}

/* Multi-column components are narrow by design — a 1440 lane split five
   ways is ~280px, and a tinted band split four ways less again. With
   overflow-wrap: anywhere inherited from .entry-content, "MARKET
   INTELLIGENCE" shatters one letter per line in those columns, so they
   wrap at word boundaries like ordinary prose instead. */
.entry-content :is(
	.wc-services--numbered,
	.wc-services--grid,
	.wc-services--index,
	.wc-services--showcase,
	.wc-fractional,
	.wc-markets,
	.wc-stats,
	.wc-footprint-head,
	.wc-brands-head,
	.editorial-info-grid
),
.entry-content :is(
	.wc-services--numbered,
	.wc-services--grid,
	.wc-services--index,
	.wc-services--showcase,
	.wc-fractional,
	.wc-markets,
	.wc-stats,
	.wc-footprint-head,
	.wc-brands-head,
	.editorial-info-grid
) * {
	overflow-wrap: normal;
	-webkit-hyphens: none;
	hyphens: none;
}

.entry-content pre,
.entry-content code {
	overflow-wrap: normal;
	-webkit-hyphens: none;
	hyphens: none;
	white-space: pre-wrap;
}

/*--------------------------------------------------------------
# Patterns
--------------------------------------------------------------*/
/* Pattern children are core Group blocks: WP injects per-block layout CSS
   (max-width 750, block-gap margins) at class specificity, later in source.
   The .entry-content prefix outranks it; the > * reset releases the caps. */
.entry-content .editorial-card-grid > *,
.entry-content .editorial-info-grid > *,
.entry-content .editorial-duo-grid > *,
.editorial-section .editorial-card-grid > *,
.editorial-section .editorial-info-grid > *,
.editorial-section .editorial-duo-grid > * {
	max-width: none;
	margin-block: 0;
	margin-left: 0;
	margin-right: 0;
}

/* Duo: label + description rows.
   .editorial-duo-grid > .editorial-duo-item > (.editorial-duo-title + .editorial-duo-text) */
.editorial-duo-grid {
	display: flex;
	flex-direction: column;
	gap: var(--editorial-space-sm);
	margin-block: var(--editorial-space-lg);
}

.editorial-duo-item {
	display: flex;
	flex-wrap: wrap;
	gap: var(--editorial-space-xs) var(--editorial-space-lg);
	padding-block: var(--editorial-space-sm);
	border-top: 1px solid var(--editorial-border);
	transition: background-color 0.2s;
}

.editorial-duo-item:last-child {
	border-bottom: 1px solid var(--editorial-border);
}

.editorial-duo-item:hover {
	background-color: var(--editorial-surface);
}

.entry-content .editorial-duo-title {
	flex: 0 0 200px;
	position: relative;
	max-width: none;
	margin: 0;
	padding-left: 0.8rem;
	font-size: 1.2rem;
	line-height: 1.35;
	text-align: left;
	text-wrap: initial;
}

.entry-content .editorial-duo-title::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.25rem;
	bottom: 0.25rem;
	width: 2px;
	background: var(--editorial-accent-rule);
}

.entry-content .editorial-duo-text {
	flex: 1 1 420px;
	max-width: var(--content-reading);
	margin: 0;
	text-wrap: initial;
}

/* Card grid: 3 per row, image + title + subtitle.
   .editorial-card-grid > .editorial-card > (image + __title + __subtitle) */
.entry-content .editorial-card-grid,
.editorial-section .editorial-card-grid,
.editorial-card-grid.editorial-card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: stretch;
	gap: var(--editorial-gap);
	margin-block: var(--editorial-space-lg);
}

.entry-content .editorial-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	max-width: none;
}

/* The ratio lives on the figure so every card image is the same height. */
.editorial-card :is(figure, .wp-block-image) {
	margin: 0 0 var(--editorial-space-md);
	overflow: hidden;
}

.editorial-card :is(figure, .wp-block-image),
.editorial-card > img {
	aspect-ratio: var(--editorial-card-ratio, 5 / 4);
}

.editorial-card :is(figure, .wp-block-image) img,
.editorial-card > img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	margin: 0;
}

.editorial-card > img {
	margin-bottom: var(--editorial-space-md);
}

/* Under the picture: a heavy uppercase sans title ("01 / Brand Discovery")
   and the sentence right beneath it, both in the body sans at reading
   size, black, tight leading. The title is a plain <h3>; the class is for
   cards saved before that, when it was an h4 with editorial-card__title. */
.entry-content :is(.editorial-card h3, .editorial-card__title) {
	margin: 0 0 0.15em;
	max-width: none;
	color: var(--editorial-heading);
	font-family: var(--wc-font-sans);
	font-size: clamp(1.1rem, 0.85rem + 0.8vw, 1.5rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	text-wrap: initial;
}

/* The sentence: the pattern's subtitle, or any paragraph an editor put in
   the card instead (the TFWA write-up swapped the subtitle for a plain
   paragraph, which must look the same). */
.entry-content .editorial-card :is(.editorial-card__subtitle, p) {
	margin: 0;
	max-width: none;
	color: var(--editorial-heading);
	font-family: var(--wc-font-sans);
	font-size: clamp(1.1rem, 0.95rem + 0.6vw, 1.5rem);
	line-height: 1.15;
	letter-spacing: -0.01em;
	text-wrap: initial;
}

/* Info grid: banded key facts. The 1px gap on the wrapper's border colour
   draws the hairlines, so it survives wrapping.
   .editorial-info-grid > .editorial-info-item > (__title + __meta) */
.editorial-info-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 1px;
	margin-block: var(--editorial-space-lg);
	background: var(--editorial-border);
}

.entry-content .editorial-info-item {
	max-width: none;
	min-width: 0;
	padding: var(--editorial-space-md);
	background: var(--editorial-surface);
	text-align: center;
}

.entry-content .editorial-info-item__title {
	margin: 0 0 0.3em;
	max-width: var(--content-reading);
	font-family: var(--wc-font-serif);
	font-size: 1.1rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-wrap: initial;
}

.entry-content .editorial-info-item__meta {
	margin: 0;
	max-width: var(--content-reading);
	font-size: 0.8rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--editorial-muted-text);
	text-wrap: initial;
}

/* Lead: eyebrow + big centred statement. :where() keeps the measure at
   zero specificity so Align can still widen it. */
.entry-content :where(.editorial-lead) {
	max-width: var(--editorial-heading-measure);
}

.entry-content .editorial-lead {
	text-align: center;
}

.entry-content .editorial-lead__eyebrow {
	max-width: none;
	margin-bottom: 0.6em;
	text-wrap: initial;
}

.entry-content .editorial-lead h2 {
	max-width: none;
	margin: 0;
	padding-bottom: 0;
	font-size: clamp(1.75rem, 1.4rem + 2vw, 3rem);
	line-height: 1.3;
}

.entry-content .editorial-lead h2::after {
	content: none;
}

@media ( max-width: 900px ) {
	.editorial-card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media ( max-width: 600px ) {
	.editorial-card-grid,
	.editorial-info-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/*--------------------------------------------------------------
# Services list ([wc_services])
--------------------------------------------------------------*/
/* Icon column beside title / intro / link, one service per row. The
   Services pattern puts it in a Media & Text with the image on the right;
   inside .entry-content the list is a plain block, so the > * resets apply. */
.wc-services {
	display: flex;
	flex-direction: column;
	gap: var(--editorial-space-lg);
	margin: var(--editorial-space-lg) 0 0;
	padding: 0;
	list-style: none;
}

.wc-service {
	display: grid;
	grid-template-columns: 5.5rem minmax(0, 1fr);
	column-gap: var(--editorial-space-md);
	align-items: start;
}

.wc-service__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1;
}

.wc-service__icon img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Always the second column, so a service without a logo keeps the icon
   column as white space and its text lines up with the others. */
.wc-service__body {
	grid-column: 2;
	display: flex;
	flex-direction: column;
	gap: var(--editorial-space-2xs);
}

/* Two classes to beat the .entry-content p prose rules. */
.wc-service .wc-service__eyebrow {
	margin: 0; /* the body's gap spaces it from the title */
	opacity: 1;
}

.wc-service__title {
	margin: 0;
	font-size: var(--editorial-font-size-h5);
	line-height: 1.2;
}

.wc-service__title a:is(:hover, :focus-visible) {
	color: var(--editorial-accent-text);
}

.wc-service__intro {
	font-size: var(--editorial-font-size-base);
	line-height: 1.55;
	/* No fade toward --editorial-soft-bg here: it was tuned against white
	   and drops this to 3.1:1 on the greige expertise band. The inherited
	   muted colour is already a step down from the title. */
	color: inherit;
}

/* The same goes for the <p> wpautop wraps the intro in: the prose rule
   fades every content paragraph 20% toward --editorial-soft-bg, which on
   top of the muted intro colour gave 4.1:1 on the expertise band and
   4.3:1 in the gallery, both under AA. */
.wc-service__intro p {
	color: inherit;
}

.wc-service__intro > :last-child {
	margin-bottom: 0;
}

.wc-service__link {
	align-self: flex-start;
	margin-top: var(--editorial-space-2xs);
}

/* direction="horizontal": the cards side by side, wrapping as the row
   fills; the icon sits above the text instead of beside it. The page
   lane comes from the shortcode's width="" (an is-* lane class). */
.wc-services--horizontal {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
	gap: var(--editorial-space-lg);
}

/* align-content: a shorter card in a tall row keeps its rows at the top
   instead of spreading them, so titles line up across the row. */
.wc-services--horizontal .wc-service {
	grid-template-columns: minmax(0, 1fr);
	align-content: start;
	row-gap: var(--editorial-space-sm);
}

.wc-services--horizontal .wc-service__icon {
	width: 5.5rem;
}

.wc-services--horizontal .wc-service__body {
	grid-column: 1;
}

/* style="cards": bordered panels of equal height; the title link covers
   the card, the link sits at the bottom, intros stop at four lines. */
.wc-services--cards {
	gap: var(--editorial-space-md);
}

/* Three classes: .entry-content .wc-services > li zeroes the padding. */
.wc-services.wc-services--cards > .wc-service {
	position: relative;
	height: 100%;
	padding: var(--editorial-space-md);
	border: 1px solid var(--editorial-border);
	background: var(--editorial-page);
	transition: border-color 160ms ease, transform 160ms ease;
}

.wc-services--cards .wc-service:has(.wc-service__title a:is(:hover, :focus-visible)) {
	border-color: var(--editorial-accent);
	transform: translateY(-2px);
}

.wc-services--cards .wc-service__icon {
	width: 3.5rem;
}

.wc-services--cards .wc-service__title {
	text-wrap: balance;
}

/* Icon row, then the body stretched over the rest of the card, so the
   link pinned to its bottom lines up across a row. */
.wc-services--cards.wc-services--horizontal .wc-service {
	grid-template-rows: auto 1fr;
	align-items: stretch;
}

.wc-services--cards.wc-services--horizontal .wc-service__body {
	grid-row: 2;
}

.wc-services--cards .wc-service__intro {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	line-clamp: 4;
	overflow: hidden;
}

.wc-services--cards .wc-service__link {
	margin-top: auto;
	padding-top: var(--editorial-space-xs);
}

/* Vertical cards: one card per row, the grid set on .wc-service survives. */
.wc-services--cards.wc-services--vertical .wc-service {
	height: auto;
}

/* style="gallery": the Services index. Two image-led cards to a row,
   tops aligned and each pair the same height: the image row, then the
   body stretched over the rest, with the link pinned to its foot so it
   lines up across the row. The featured image crops to 4:3 and eases in
   on hover; the title link covers the card. */
.wc-services.wc-services--gallery {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: var(--editorial-space-xl);
	row-gap: var(--space-block);
	margin-top: var(--space-block);
}

.entry-content .wc-services--gallery > .wc-service,
.wc-services--gallery > .wc-service {
	position: relative;
	height: 100%;
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: auto 1fr;
	align-content: stretch;
	align-items: stretch; /* the base rule's start would shrink the body */
	row-gap: var(--editorial-space-md);
}

.wc-service__media {
	position: relative;
	aspect-ratio: 4 / 3;
	margin: 0;
	overflow: hidden;
	background: var(--editorial-band);
}

.wc-service__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* No featured image: a quiet tinted panel with the number set large in
   the serif, so a missing photo still looks deliberate. */
.wc-service__media--empty {
	display: grid;
	place-items: center;
	background: linear-gradient(160deg, var(--editorial-band), var(--editorial-border));
}

.wc-service__media-number {
	color: var(--editorial-on-image);
	font-family: var(--wc-font-serif);
	font-size: clamp(5rem, 3rem + 8vw, 9rem);
	font-style: italic;
	font-weight: 300;
	line-height: 1;
	transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.wc-services--gallery > .wc-service:is(:hover, :focus-within) .wc-service__media img,
.wc-services--gallery > .wc-service:is(:hover, :focus-within) .wc-service__media-number {
	transform: scale(1.04);
}

.wc-services--gallery .wc-service__body {
	grid-column: 1;
	gap: var(--editorial-space-xs);
}

/* Number, hairline, eyebrow on one line. */
.wc-services--gallery .wc-service .wc-service__eyebrow {
	display: flex;
	align-items: center;
	gap: var(--editorial-space-xs);
	font-size: 0.75rem;
	letter-spacing: 0.12em;
}

.wc-service__count {
	display: inline-flex;
	align-items: center;
	gap: var(--editorial-space-xs);
	color: var(--editorial-muted-text);
}

.wc-service__count::after {
	content: "";
	width: 2rem;
	height: 1px;
	background: currentColor;
}

.wc-services--gallery .wc-service__title {
	font-family: var(--wc-font-serif);
	font-size: var(--editorial-font-size-h4);
	font-weight: 600;
	line-height: 1.15;
	text-wrap: balance;
}

.wc-services--gallery .wc-service__intro {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
	max-width: var(--split-measure-ch);
	color: var(--editorial-muted-text);
}

.wc-services--gallery .wc-service__link {
	margin-top: auto;
	padding-top: var(--editorial-space-xs);
}

.wc-services--gallery .wc-service__link span {
	display: inline-block;
	transition: transform 250ms ease;
}

.wc-services--gallery > .wc-service:is(:hover, :focus-within) .wc-service__link span {
	transform: translateX(0.35rem);
}

@media ( max-width: 782px ) {
	.wc-services.wc-services--gallery {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* style="grid": the homepage's Our Expertise as image cards, rows of
   --wc-services-columns (set inline, default 4, so eight services make
   two rows). White cards on the band; the number sits on the photo; the
   short Card title in the serif; two lines of intro; Learn More pinned
   to the foot so it lines up across the row. Hover lifts the card, eases
   the photo in and slides the arrow. */
.wc-services.wc-services--grid {
	display: grid;
	grid-template-columns: repeat(var(--wc-services-columns, 4), minmax(0, 1fr));
	gap: var(--editorial-space-md);
	margin-top: var(--editorial-space-lg);
}

.entry-content .wc-services--grid > .wc-service,
.wc-services--grid > .wc-service {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	background: var(--editorial-page);
	box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
	transition: transform 300ms cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 300ms ease;
}

.wc-services--grid > .wc-service:is(:hover, :focus-within) {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px -18px rgb(0 0 0 / 0.28);
}

.wc-services--grid .wc-service__media {
	flex: none;
}

.wc-services--grid > .wc-service:is(:hover, :focus-within) .wc-service__media img,
.wc-services--grid > .wc-service:is(:hover, :focus-within) .wc-service__media-number {
	transform: scale(1.05);
}

/* The number on the photo: a small white tab in the corner. */
.wc-service__badge {
	position: absolute;
	top: var(--editorial-space-sm);
	left: var(--editorial-space-sm);
	z-index: 1;
	padding: 0.3em 0.6em;
	background: var(--editorial-page);
	color: var(--editorial-heading);
	font-family: var(--wc-font-serif);
	font-size: 1.1rem;
	font-style: italic;
	font-weight: 600;
	line-height: 1;
}

.wc-services--grid .wc-service__media-number {
	font-size: clamp(3.5rem, 2.5rem + 3vw, 5.5rem);
}

.wc-services--grid .wc-service__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: var(--editorial-space-2xs);
	padding: var(--editorial-space-md);
}

.wc-services--grid .wc-service__eyebrow {
	display: none;
}

.wc-services--grid .wc-service__title {
	font-family: var(--wc-font-serif);
	font-size: var(--editorial-font-size-h5);
	font-weight: 600;
	line-height: 1.2;
	text-wrap: balance;
}

/* An accent rule draws under the title on hover. */
.wc-services--grid .wc-service__title a {
	text-decoration: none;
	background: linear-gradient(var(--editorial-accent-text), var(--editorial-accent-text)) 0 100% / 0 1px no-repeat;
	transition: background-size 350ms ease, color 200ms ease;
}

.wc-services--grid > .wc-service:is(:hover, :focus-within) .wc-service__title a {
	background-size: 100% 1px;
}

.wc-services--grid .wc-service__intro {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	color: var(--editorial-muted-text);
	font-size: 0.95rem;
	line-height: 1.5;
}

.wc-services--grid .wc-service__link {
	margin-top: auto;
	padding-top: var(--editorial-space-sm);
}

.wc-services--grid .wc-service__link span {
	display: inline-block;
	transition: transform 250ms ease;
}

.wc-services--grid > .wc-service:is(:hover, :focus-within) .wc-service__link span {
	transform: translateX(0.35rem);
}

@media ( max-width: 1100px ) {
	.wc-services.wc-services--grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media ( max-width: 560px ) {
	.wc-services.wc-services--grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.wc-services--grid .wc-service__media {
		aspect-ratio: 16 / 9;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.wc-services--grid > .wc-service,
	.wc-services--grid > .wc-service:is(:hover, :focus-within),
	.wc-services--grid > .wc-service:is(:hover, :focus-within) .wc-service__media img,
	.wc-services--grid > .wc-service:is(:hover, :focus-within) .wc-service__link span {
		transform: none;
		transition: none;
	}
}

/* style="showcase": the numbered service titles on the left, one large
   preview on the right (picture, intro, Learn More) for whichever title
   is active — the first to begin with, then the one last hovered or
   focused (services-showcase.js). Every panel sits in the same place,
   pinned to the list's height, so the picture fills that space and the
   switch cross-fades without moving anything. On phones each panel opens
   under its title instead, one at a time. */
.wc-services.wc-services--showcase {
	--showcase-gap: var(--editorial-space-xl);
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 0 var(--showcase-gap); /* the hairlines space the titles */
	align-content: start;
	min-height: 36rem;
	margin-top: var(--editorial-space-lg);
}

.entry-content .wc-services--showcase > .wc-service,
.wc-services--showcase > .wc-service {
	position: static; /* the panels are placed against the list, not the item */
	display: block;
	grid-column: 1;
}

.wc-services--showcase .wc-service__title {
	margin: 0;
	border-top: 1px solid var(--editorial-border);
	font-family: var(--wc-font-serif);
	font-size: var(--editorial-font-size-h4);
	font-weight: 600;
	line-height: 1.15;
}

.wc-services--showcase > .wc-service:last-child .wc-service__title {
	border-bottom: 1px solid var(--editorial-border);
}

.wc-services--showcase .wc-service__title a {
	display: flex;
	align-items: baseline;
	gap: var(--editorial-space-md);
	padding-block: var(--editorial-space-sm);
	color: var(--editorial-muted-text);
	transition: color 250ms ease;
}

/* An arrow at the far end marks the active title. */
.wc-services--showcase .wc-service__title a::after {
	content: "\2192";
	margin-inline-start: auto;
	color: var(--editorial-accent-text);
	font-family: var(--wc-font-sans);
	font-size: 1.1rem;
	opacity: 0;
	transform: translateX(-0.5rem);
	transition: opacity 250ms ease, transform 250ms ease;
}

.wc-services--showcase .wc-service__index {
	flex: none;
	min-width: 2ch;
	color: var(--editorial-muted-text);
	font-family: var(--wc-font-sans);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	transition: color 250ms ease;
}

.wc-services--showcase .wc-service__name {
	text-wrap: balance;
}

.wc-services--showcase > .wc-service.is-active .wc-service__title a,
.wc-services--showcase .wc-service__title a:is(:hover, :focus-visible) {
	color: var(--editorial-heading);
}

.wc-services--showcase > .wc-service.is-active .wc-service__index {
	color: var(--editorial-accent-text);
}

.wc-services--showcase > .wc-service.is-active .wc-service__title a::after {
	opacity: 1;
	transform: none;
}

/* The preview: every panel in the right half, full list height; only the
   active one is visible. */
.wc-services--showcase .wc-service__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: calc(50% + var(--showcase-gap) / 2);
	display: flex;
	flex-direction: column;
	gap: var(--editorial-space-sm);
	opacity: 0;
	visibility: hidden;
	transition: opacity 450ms ease, visibility 0s linear 450ms;
}

.wc-services--showcase > .wc-service.is-active .wc-service__panel {
	opacity: 1;
	visibility: visible;
	transition-delay: 0s;
}

.wc-services--showcase .wc-service__media {
	flex: 1 1 auto;
	min-height: 14rem;
	aspect-ratio: auto;
}

.wc-services--showcase .wc-service__media img {
	position: absolute;
	inset: 0;
	transform: scale(1.04);
	transition: transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.wc-services--showcase > .wc-service.is-active .wc-service__media img {
	transform: none;
}

.wc-services--showcase .wc-service__intro {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
	max-width: 40rem;
	color: var(--editorial-muted-text);
}

.wc-service__button {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	align-self: flex-start;
	padding: 0.85em 1.5em;
	background: var(--editorial-heading);
	color: var(--editorial-on-accent);
	font-family: var(--wc-font-sans);
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-decoration: none;
	transition: background-color 200ms ease;
}

.wc-service__button:is(:hover, :focus-visible) {
	background: var(--editorial-accent-fill);
	color: var(--editorial-on-accent);
}

.wc-service__button span {
	display: inline-block;
	transition: transform 250ms ease;
}

.wc-service__button:hover span {
	transform: translateX(0.3rem);
}

/* Phones: the panel opens under its title. Without the script every
   panel shows, so nothing is ever out of reach. */
@media ( max-width: 781px ) {
	.wc-services.wc-services--showcase {
		display: block;
		min-height: 0;
	}

	.wc-services--showcase .wc-service__panel {
		position: static;
		padding-bottom: var(--editorial-space-md);
		opacity: 1;
		visibility: visible;
	}

	.wc-services--showcase.is-enhanced > .wc-service:not(.is-active) .wc-service__panel {
		display: none;
	}

	.wc-services--showcase .wc-service__media {
		flex: none;
		min-height: 0;
		aspect-ratio: 16 / 9;
	}

	/* The arrow points down at the open panel. */
	.wc-services--showcase > .wc-service.is-active .wc-service__title a::after {
		transform: rotate(90deg);
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.wc-services--showcase .wc-service__panel,
	.wc-services--showcase .wc-service__media img,
	.wc-services--showcase .wc-service__title a::after {
		transform: none;
		transition: none;
	}
}

/* The pattern's Media & Text: content column padded like the rest of the
   page; the image stretches to the section's full height and crops (done
   here rather than with the block's imageFill, whose markup differs between
   WordPress versions and breaks block validation). */
.wc-services-section .wp-block-media-text__content {
	padding-block: var(--space-section);
}

.wc-services-section .wp-block-media-text__media {
	height: 100%;
}

.wc-services-section .wp-block-media-text__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}


@media ( max-width: 600px ) {
	.wc-services-section .wp-block-media-text__media img {
		height: auto;
		aspect-ratio: 4 / 3;
	}
}

/* Phones: icon above the text. The body must leave column 2 as well, or
   it lands in an implicit column and the icon overlaps it. */
@media ( max-width: 600px ) {
	.wc-service {
		grid-template-columns: minmax(0, 1fr);
		row-gap: var(--editorial-space-xs);
	}

	.wc-service__icon {
		width: 3.5rem;
	}

	.wc-service__body {
		grid-column: 1;
	}
}

/*--------------------------------------------------------------
# Form section (template-parts/content-form-section.php)
--------------------------------------------------------------*/
/* The one contact form design, for every Contact Section and the
   "Contact form" pattern ([wc_contact_section]): eyebrow, heading and
   intro on the left (40%), the Fluent Form on the right, split by a
   hairline; stacked with a hairline between below 782px. */
.wc-form-section {
	padding-block: var(--space-block);
}

.wc-form-section .wp-block-columns.wc-form-section__columns {
	display: flex;
	gap: 0;
	margin: 0;
}

.wc-form-section .wc-form-section__columns > .wp-block-column {
	min-width: 0;
}

@media ( min-width: 782px ) {
	.wc-form-section .wc-form-section__columns > .wp-block-column.wc-form-section__copy {
		flex: 0 0 40%;
		padding-inline-end: var(--editorial-space-xl);
	}

	.wc-form-section .wc-form-section__columns > .wp-block-column.wc-form-section__form {
		flex: 1 1 0;
		padding-inline-start: var(--editorial-space-xl);
		border-inline-start: 1px solid var(--editorial-border);
	}
}

@media ( max-width: 781px ) {
	.wc-form-section .wp-block-columns.wc-form-section__columns {
		flex-direction: column;
	}

	.wc-form-section .wc-form-section__columns > .wp-block-column.wc-form-section__form {
		margin-top: var(--space-block);
		padding-top: var(--space-block);
		border-top: 1px solid var(--editorial-border);
	}
}

/* A Contact Section added below the page content (inc/contact-sections.php):
   a hairline off the content above. */
.wc-form-section-auto {
	border-top: 1px solid var(--editorial-border);
}

/* Copy side: a plain <h2> title and <h5> intro, styled by the global
   heading rules; only their spacing and the intro's measure are set here.
   Two classes to beat the prose rules. */
.wc-form-section__copy h2 {
	margin: 0 0 var(--editorial-space-md);
}

.wc-form-section__copy h5 {
	max-width: 32em;
	margin: 0 0 var(--editorial-space-lg);
}

.wc-form-section__copy h5 a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}

.wc-form-section .wc-form-section__copy > :last-child {
	margin-bottom: 0;
}

.wc-form-section .wc-form-section__note {
	margin: var(--editorial-space-md) 0 0;
	color: var(--editorial-muted-text);
	font-family: var(--wc-font-serif);
	font-size: 1.05rem;
	opacity: 1;
}

/*--------------------------------------------------------------
# Footer contact row (template-parts/site-contact.php)
--------------------------------------------------------------*/
/* Phone, address and the social icons (Appearance → Contact & Social),
   side by side above the copyright line on every page, wrapping when
   narrow. */
.wc-site-contact {
	width: var(--container-inline);
	margin-inline: auto;
	padding-block: var(--editorial-space-lg);
	border-top: 1px solid var(--editorial-border);
}

.wc-site-contact__details {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
	gap: var(--editorial-space-md) var(--editorial-space-lg);
	margin: 0;
}

.wc-site-contact__details dt {
	margin: 0 0 0.35em;
	color: var(--editorial-accent-text);
	font-family: var(--wc-font-sans);
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.wc-site-contact__details dd {
	margin: 0;
	color: var(--editorial-heading);
	font-size: var(--editorial-font-size-base);
	line-height: 1.4;
}

.wc-site-contact__details a {
	color: inherit;
	text-decoration: none;
}

.wc-site-contact__details a:is(:hover, :focus-visible) {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.wc-site-contact__social .wc-social {
	margin-top: 0.35em;
}

/*--------------------------------------------------------------
# Fluent Forms
--------------------------------------------------------------*/
/* Restyled wherever the theme places a form: the contact form section,
   the team profile's "Send a message" panel (team.css keeps only what the
   narrow panel changes) and the events' meeting pop-up. The wrapper
   prefix outranks Fluent's own
   ".fluentform …" and per-form "form.fluent_form_N …" rules. */
:is(.wc-form-section, .team-contact, .wc-meeting) .fluentform .ff-el-group {
	margin-bottom: var(--editorial-space-md);
}

/* Two Column Container (Name | Email): Fluent's flex row, with our gap. */
:is(.wc-form-section, .team-contact, .wc-meeting) .fluentform .ff-t-container {
	gap: var(--editorial-space-sm);
}

:is(.wc-form-section, .team-contact, .wc-meeting) .fluentform .ff-t-cell {
	padding-inline: 0;
}

:is(.wc-form-section, .team-contact, .wc-meeting) .fluentform .ff-el-input--label label {
	color: var(--editorial-heading);
	font-family: var(--wc-font-sans);
	font-size: 0.95rem;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
}

:is(.wc-form-section, .team-contact, .wc-meeting) .fluentform .ff-el-is-required.asterisk-right label::after {
	color: var(--editorial-accent-text);
}

:is(.wc-form-section, .team-contact, .wc-meeting) .fluentform .ff-el-form-control {
	padding: 1.1em 1.35em;
	border: 1px solid var(--editorial-border);
	border-radius: 0;
	background: var(--editorial-page);
	color: var(--editorial-text);
	font-family: var(--wc-font-sans);
	font-size: 0.95rem;
	box-shadow: none;
}

:is(.wc-form-section, .team-contact, .wc-meeting) .fluentform .ff-el-form-control::placeholder {
	color: var(--editorial-muted-text);
	opacity: 1;
}

:is(.wc-form-section, .team-contact, .wc-meeting) .fluentform .ff-el-form-control:focus {
	border-color: var(--editorial-accent-rule);
	outline: none;
	box-shadow: none;
}

:is(.wc-form-section, .team-contact, .wc-meeting) .fluentform textarea.ff-el-form-control {
	min-height: 11rem;
	resize: vertical;
}

:is(.wc-form-section, .team-contact, .wc-meeting) .fluentform .ff-el-is-error .ff-el-form-control {
	border-color: var(--editorial-accent);
}

:is(.wc-form-section, .team-contact, .wc-meeting) .fluentform .error {
	color: var(--editorial-heading);
	font-size: 0.8rem;
}

/* Submit: the soft pink block, arrow added here. */
/* Soft button: the pale accent block. Fluent's submit and the team
   profile's Reach out toggle (team.css sizes it); GP paints every
   button state dark, so each state is set here. */
:is(.wc-form-section, .team-contact, .wc-meeting) .fluentform .ff-btn-submit:not(.ff_btn_no_style),
button.team-contact__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.75em;
	padding: 1.3em 5em;
	border: 0;
	border-radius: 0;
	background: color-mix(in srgb, var(--editorial-accent) 45%, var(--editorial-page));
	color: var(--editorial-heading);
	font-family: var(--wc-font-sans);
	font-size: 0.95rem;
	font-weight: 500;
	letter-spacing: 0.15em;
	line-height: 1.2;
	text-transform: uppercase;
	box-shadow: none;
	opacity: 1;
	transition: background-color 160ms ease;
}

:is(.wc-form-section, .team-contact, .wc-meeting) .fluentform .ff-btn-submit:not(.ff_btn_no_style)::after {
	content: "\2192";
}

:is(.wc-form-section, .team-contact, .wc-meeting) .fluentform .ff-btn-submit:not(.ff_btn_no_style):is(:hover, :focus, :active),
button.team-contact__button:is(:hover, :focus, :active) {
	background: color-mix(in srgb, var(--editorial-accent) 70%, var(--editorial-page));
	color: var(--editorial-heading);
}

:is(.wc-form-section, .team-contact, .wc-meeting) .fluentform .ff-btn-submit:focus-visible,
button.team-contact__button:focus-visible {
	outline: 1px solid var(--editorial-accent-rule);
	outline-offset: 3px;
}

/* Fluent's success message, shown in place of the form. */
:is(.wc-form-section, .team-contact, .wc-meeting) .ff-message-success {
	margin: 0;
	padding: var(--editorial-space-sm) var(--editorial-space-md);
	border: 0;
	border-left: 2px solid var(--editorial-accent-rule);
	background: var(--editorial-band);
	color: var(--editorial-heading);
	font-family: var(--wc-font-serif);
	font-size: var(--editorial-font-size-lede);
	font-style: italic;
	box-shadow: none;
}

:is(.wc-form-section, .team-contact, .wc-meeting) .ff-message-success:focus {
	outline: none;
}

:is(.wc-form-section, .team-contact, .wc-meeting) .ff-message-success > :last-child {
	margin-bottom: 0;
}

:is(.wc-form-section, .team-contact, .wc-meeting) .ff-errors-in-stack {
	margin-top: var(--editorial-space-sm);
	font-size: 0.9rem;
}

@media ( max-width: 600px ) {
	:is(.wc-form-section, .team-contact, .wc-meeting) .fluentform .ff-t-container {
		flex-direction: column;
	}

	:is(.wc-form-section, .team-contact, .wc-meeting) .fluentform .ff-btn-submit:not(.ff_btn_no_style) {
		width: 100%;
		padding-inline: 1.5em;
	}
}

/*--------------------------------------------------------------
# Media feed (Columns style "Instagram post", or an image panel)
--------------------------------------------------------------*/
/* A block style on core Columns (inc/patterns.php), so any Columns block
   can take it and both columns stay ordinary columns. The column holding
   the Instagram embed is the post; the other is the content, which runs
   its full length with the page while the post stays pinned beside it. The post sits on whichever
   side it was put. Stacks below 782, where core Columns do.

   The crop: the embed is a cross-origin iframe, so it can't be styled
   inside; instead the iframe is given a fixed height that ends right after
   the like/comment/share row, and scrolling="no" clips the rest (likes
   count, caption, comment box). Its chrome is fixed px around a media box
   that scales with width, measured from instagram.com/p/…/embed/:
   header 54 + media (width × ratio) + "View more" 44 + actions 41.

   Post column: .instagram-media on the front end; in the editor the embed
   is inside a sandboxed preview, so the Custom HTML block's wrapper. */
.wp-block-columns.is-style-wc-media-feed {
	--wc-ig-ratio: 1.25; /* 4:5 portrait */
	--wc-ig-chrome-top: 54px;
	--wc-ig-chrome-bottom: 85px;
}

.wp-block-columns.is-style-wc-media-feed.is-ig-square {
	--wc-ig-ratio: 1;
}

.wp-block-columns.is-style-wc-media-feed.is-ig-landscape {
	--wc-ig-ratio: 0.5236; /* 1.91:1 */
}

/* The post column is the size container the crop height is computed from. */
.wp-block-columns.is-style-wc-media-feed > .wp-block-column:has(.instagram-media, > .block-library-html__edit) {
	container-type: inline-size;
}

/* embed.js writes max/min-width, margin and border as inline styles on the
   blockquote and the iframe it becomes; only !important outranks those. */
.wp-block-columns.is-style-wc-media-feed .instagram-media {
	display: block;
	width: 100% !important;
	min-width: 0 !important;
	max-width: none !important;
	height: calc(var(--wc-ig-chrome-top) + 100cqi * var(--wc-ig-ratio) + var(--wc-ig-chrome-bottom)) !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	overflow: hidden;
	outline: 1px solid var(--editorial-border);
	outline-offset: -1px;
}

.wp-block-columns.is-style-wc-media-feed > .wp-block-column > :first-child {
	margin-top: 0;
}

.wp-block-columns.is-style-wc-media-feed > .wp-block-column > :last-child {
	margin-bottom: 0;
}

@media ( min-width: 782px ) {
	.wp-block-columns.is-style-wc-media-feed > .wp-block-column:has(.instagram-media, > .block-library-html__edit) {
		flex: 0 0 min(42%, 600px);
		min-width: 326px; /* Instagram's own minimum; narrower breaks its header */
	}

	.wp-block-columns.is-style-wc-media-feed > .wp-block-column:not(:has(.instagram-media, > .block-library-html__edit)) {
		flex: 1 1 0;
	}

	/* Sticky post: the content scrolls with the page (no inner scroll to
	   discover) and the post stays in view beside it until the content
	   ends. Pinned below the admin bar; when the post is taller than the
	   window, assets/js/media-feed.js sets --wc-feed-post-h and the second
	   min() term pins it by its bottom edge instead, so the like/share row
	   is never cut off. Front end only: on the editor canvas (which alone
	   has block-editor-block-list__block) it stays a plain column. */
	.wp-block-columns.is-style-wc-media-feed > .wp-block-column:has(.instagram-media):not(.block-editor-block-list__block) {
		position: sticky;
		top: min(
			calc(var(--wp-admin--admin-bar--height, 0px) + var(--editorial-space-lg)),
			calc(100vh - var(--wc-feed-post-h, 0px) - var(--editorial-space-md))
		);
		align-self: flex-start;
	}
}

/* Stacked: the post keeps Instagram's natural width, the content runs its
   full height underneath. */
@media ( max-width: 781px ) {
	.wp-block-columns.is-style-wc-media-feed > .wp-block-column:has(.instagram-media) {
		max-width: 540px;
	}

	/* Full-bleed Columns pad only the outer side of the first and last cell
	   ("Lane layout"); stacked, each cell needs the gutter on both sides. */
	.entry-content > .wp-block-columns.is-style-wc-media-feed:not(.alignwide, .is-wide, .is-container, .is-desktop, .is-compact, .is-reading) > .wp-block-column {
		padding-inline: var(--editorial-gutter);
	}
}

/* Image panel: the same style with a Cover block in place of the
   Instagram embed. The Cover column is the panel: on desktop it fills the
   window's height and stays pinned while the content beside it scrolls,
   like a viewport; any text added inside the Cover sits on the image. The
   Cover's own Minimum height setting gives way to the window height here.
   It runs to the page edge when the Columns block is full width.
   Front end only, as with the post; on the editor canvas it stays a
   plain column at the height set on the block. */
.wp-block-columns.is-style-wc-media-feed > .wp-block-column:has(> .wp-block-cover) > .wp-block-cover {
	margin: 0;
}

@media ( min-width: 782px ) {
	.wp-block-columns.is-style-wc-media-feed > .wp-block-column:has(> .wp-block-cover) {
		flex: 0 0 50%;
	}

	.wp-block-columns.is-style-wc-media-feed > .wp-block-column:has(> .wp-block-cover):not(.block-editor-block-list__block) {
		position: sticky;
		top: var(--wp-admin--admin-bar--height, 0px);
		align-self: flex-start;
	}

	.wp-block-columns.is-style-wc-media-feed > .wp-block-column:has(> .wp-block-cover):not(.block-editor-block-list__block) > .wp-block-cover {
		min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px)) !important;
		min-height: calc(100svh - var(--wp-admin--admin-bar--height, 0px)) !important;
	}

	/* Full width: no gutter on the panel's outer side, so the image meets
	   the window edge (the lane rules give the outermost cells one). */
	.entry-content > .wp-block-columns.is-style-wc-media-feed:not(.alignwide, .is-wide, .is-container, .is-desktop, .is-compact, .is-reading) > .wp-block-column:has(> .wp-block-cover) {
		padding-inline: 0;
	}
}

/* Stacked: the panel goes full width above the content, a little shorter
   than the window so the content's start shows beneath it. */
@media ( max-width: 781px ) {
	.wp-block-columns.is-style-wc-media-feed > .wp-block-column:has(> .wp-block-cover):not(.block-editor-block-list__block) > .wp-block-cover {
		min-height: 70vh !important;
		min-height: 70svh !important;
	}

	.entry-content > .wp-block-columns.is-style-wc-media-feed:not(.alignwide, .is-wide, .is-container, .is-desktop, .is-compact, .is-reading) > .wp-block-column:has(> .wp-block-cover) {
		padding-inline: 0;
	}
}

/*--------------------------------------------------------------
# Container query
--------------------------------------------------------------*/
/* A narrow .entry-content (boxed with a sidebar) on a wide viewport would
   get a vw-sized gutter; shrink it. --editorial-lanes re-substitutes. */
@container editorial (max-width: 45em) {
	.entry-content {
		--editorial-gutter: var(--editorial-space-sm);
	}
}

/*--------------------------------------------------------------
# Social links (inc/social-links.php)
--------------------------------------------------------------*/
/* Outline icons in a row; used in the footer contact row. */
.wc-social {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wc-social > li {
	margin: 0;
	padding: 0;
}

.wc-social__link {
	display: inline-flex;
	color: var(--editorial-heading);
	font-size: 2.25rem;
	line-height: 1;
	transition: color 0.2s ease;
}

.wc-social__link:is(:hover, :focus-visible) {
	color: var(--editorial-accent-text);
}

.wc-social__icon {
	width: 1em;
	height: 1em;
}



/*--------------------------------------------------------------
# Services — numbered (one-pager format)
--------------------------------------------------------------*/
/* style="numbered": the flyer's 01-05 run. A big sage counter over a
   short caps title, hairline rules between items. Deliberately quiet —
   it's a map of the offer, not five competing cards. */
.wc-services--numbered {
	--wc-services-visible: 5;
	gap: 0;
}

.entry-content .wc-services--numbered > .wc-service,
.wc-services--numbered > .wc-service {
	position: relative;
	/* A fifth of the 1440 lane is ~272px; space-lg each side left only
	   ~176px for the text, which wrapped two words to a line. */
	padding: 0 var(--editorial-space-md);
	row-gap: var(--editorial-space-xs);
	text-align: center;

	/* No fixed height: the grid row stretches every card to the tallest
	   one, so the row is still a band rather than a ragged edge, but it
	   grows and shrinks with the copy instead of clipping it or leaving
	   a gap. The link is pushed to the bottom so it sits on one line
	   across the row. */
	/* Two children — the number and the body — so the body takes the
	   remaining row and its own margin-top:auto can drop the link to the
	   foot of the card, level across the row. align-content from the
	   horizontal rule would otherwise pack both rows at the top. */
	grid-template-rows: auto 1fr;
	align-content: stretch;
	align-items: stretch;
}

.entry-content .wc-services--numbered > .wc-service::before {
	content: none;
}

/* Hairline between items, not after the last — a border-inline-start on
   every item but the first survives wrapping, which a :not(:last-child)
   border-inline-end does not. */
.wc-services--numbered > .wc-service + .wc-service {
	border-inline-start: 1px solid var(--editorial-border);
}

.wc-services--numbered .wc-service__number {
	margin: 0;
	color: var(--editorial-sage-text);
	font-family: var(--wc-font-sans);
	font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
	font-weight: 700;
	line-height: 1;
	transition: color 220ms ease, transform 220ms ease;
}

/* The number answers the hover, so the whole card feels live without
   moving anything that would cost a layout pass. */
.wc-services--numbered > .wc-service:hover .wc-service__number,
.wc-services--numbered > .wc-service:focus-within .wc-service__number {
	color: var(--editorial-accent-text);
	transform: translateY(-2px);
}

.wc-services--numbered .wc-service__title {
	margin: 0;
	font-family: var(--wc-font-sans);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.3;
	text-transform: uppercase;
}

.wc-services--numbered .wc-service__title a:hover,
.wc-services--numbered .wc-service__title a:focus-visible {
	color: var(--editorial-accent-text);
}

.wc-services--numbered .wc-service__eyebrow {
	display: none;
}

/* The body fills the rest of the card so the link can sit at its foot. */
.wc-services--numbered .wc-service__body {
	display: flex;
	flex-direction: column;
	gap: var(--editorial-space-xs);
	min-height: 0;
}

.wc-services--numbered .wc-service__intro {
	font-size: 0.9rem;
	line-height: 1.5;
}

.wc-services--numbered .wc-service__intro > :last-child {
	margin-bottom: 0;
}

/* The title link already covers the card, so this is the visible cue
   (the template marks it aria-hidden and out of the tab order).
   align-self overrides the base rule's flex-start, which would otherwise
   shrink it and leave margin-top:auto nothing to push against. */
.wc-services--numbered .wc-service__link {
	display: block;
	align-self: stretch;
	margin-top: auto;
	padding-top: var(--editorial-space-xs);
	color: var(--editorial-accent-text);
	font-family: var(--wc-font-sans);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-decoration: none;
	transition: transform 200ms ease, color 200ms ease;
}

/* Scales rather than underlines. transform-origin keeps it growing from
   its own centre instead of drifting right. */
.wc-services--numbered > .wc-service:hover .wc-service__link,
.wc-services--numbered > .wc-service:focus-within .wc-service__link {
	transform: scale(1.1);
	text-decoration: none;
}


/*--------------------------------------------------------------
# Services — horizontal scroll
--------------------------------------------------------------*/
/* scroll="yes": one row that scrolls sideways. --wc-services-visible (set
   inline by the shortcode) decides how many fit; the rest are a swipe or
   a drag away. Each item is a snap point so a scroll lands on an item
   rather than halfway through one. Grid, not flex: the items keep the
   equal widths they already have. */
.wc-services--scroll {
	grid-auto-flow: column;
	grid-template-columns: none;
	grid-auto-columns: calc(
		(100% - (var(--editorial-space-lg) * (var(--wc-services-visible) - 1)))
		/ var(--wc-services-visible)
	);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	/* Room for the scrollbar so it never sits on the last item's text. */
	padding-bottom: var(--editorial-space-sm);
	scrollbar-width: thin;
	scrollbar-color: var(--editorial-border) transparent;
}

.wc-services--scroll > .wc-service {
	scroll-snap-align: start;
}

.wc-services--scroll.wc-services--numbered {
	grid-auto-columns: calc(100% / var(--wc-services-visible));
}

.wc-services--scroll::-webkit-scrollbar {
	height: 4px;
}

.wc-services--scroll::-webkit-scrollbar-thumb {
	background: var(--editorial-border);
}

/* Below the tablet break five across is unreadable, so the row shows
   roughly two and keeps scrolling. */
@media ( max-width: 900px ) {
	.wc-services--scroll,
	.wc-services--scroll.wc-services--numbered {
		grid-auto-columns: minmax(14rem, 45%);
	}
}

@media ( max-width: 600px ) {
	.wc-services--scroll,
	.wc-services--scroll.wc-services--numbered {
		grid-auto-columns: minmax(12rem, 80%);
	}

	.wc-services--numbered > .wc-service {
		padding-inline: var(--editorial-space-md);
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.wc-services--scroll {
		scroll-behavior: auto;
	}
}

/* Scroll affordance (scroller.js). Without JS the row keeps its native
   scrollbar; with it, the scrollbar gives way to three cues that there's
   more to the right: the far edge fades out, arrows step one item at a
   time (the only way across for a mouse with no sideways wheel), and a
   hairline bar shows how much of the row is in view and where. */
.wc-scroller.is-scrollable > :is(.wc-services--scroll, .wc-brand-logos--slider, .wc-gallery__row) {
	--wc-fade-start: 0px;
	--wc-fade-end: clamp(3rem, 8%, 7rem);
	padding-bottom: 0;
	scrollbar-width: none;
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--wc-fade-start), #000 calc(100% - var(--wc-fade-end)), transparent 100%);
	mask-image: linear-gradient(to right, transparent 0, #000 var(--wc-fade-start), #000 calc(100% - var(--wc-fade-end)), transparent 100%);
}

.wc-scroller.is-scrollable > :is(.wc-services--scroll, .wc-brand-logos--slider, .wc-gallery__row)::-webkit-scrollbar {
	display: none;
}

.wc-scroller.is-scrollable:not(.is-at-start) > :is(.wc-services--scroll, .wc-brand-logos--slider, .wc-gallery__row) {
	--wc-fade-start: clamp(3rem, 8%, 7rem);
}

.wc-scroller.is-scrollable.is-at-end > :is(.wc-services--scroll, .wc-brand-logos--slider, .wc-gallery__row) {
	--wc-fade-end: 0px;
}

.wc-scroller__controls {
	display: flex;
	align-items: center;
	gap: var(--editorial-space-xs);
	margin-top: var(--editorial-space-md);
}

.wc-scroller__controls[hidden] {
	display: none;
}

.wc-scroller__track {
	position: relative;
	flex: 1;
	height: 2px;
	margin-inline-end: var(--editorial-space-sm);
	overflow: hidden;
	background: var(--editorial-border);
}

.wc-scroller__bar {
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	background: var(--editorial-accent-text);
	transition: transform 120ms linear;
}

.wc-scroller__button {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid var(--editorial-accent-text);
	border-radius: 50%;
	background: transparent;
	color: var(--editorial-accent-text);
	cursor: pointer;
	transition: background-color 200ms ease, color 200ms ease, opacity 200ms ease;
}

.wc-scroller__button:hover:not(:disabled),
.wc-scroller__button:focus-visible {
	background: var(--editorial-accent-text);
	color: var(--editorial-on-accent);
}

.wc-scroller__button:disabled {
	opacity: 0.3;
	cursor: default;
}

/* RTL: the arrows point the way the row moves. */
.wc-scroller:dir(rtl) .wc-scroller__button svg {
	transform: scaleX(-1);
}

.wc-scroller.is-hinting .wc-scroller__button[data-dir="1"] {
	animation: wc-scroller-nudge 1.4s ease-in-out 0.4s 3;
}

@keyframes wc-scroller-nudge {
	0%, 60%, 100% { transform: translateX(0); }
	30% { transform: translateX(6px); }
}

/*--------------------------------------------------------------
# One-pager homepage sections
--------------------------------------------------------------*/
/* The opening statement: one paragraph, larger than body copy, allowed to
   run wider than the reading measure because it is the page's first
   impression rather than an article. */
.entry-content .wc-lead {
	max-width: var(--editorial-heading-measure);
	font-family: var(--wc-font-serif);
	font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.75rem);
	line-height: 1.4;
}

/* Footprint head: the heading sits left, the figures run across on the
   right, as on the flyer.

   The block holds its own 1440 ceiling and centres itself rather than
   stretching with its container. max-width + margin auto only — NOT
   --container-inline: that token subtracts the page gutter, and the lane
   this sits in has already done so, so using it here took 1440 down to
   ~1388 on a wide screen. Generous padding above and below separates it
   from the map that follows. */
.wc-footprint-head {
	align-items: flex-end;
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	margin-bottom: 0;
	padding-block: var(--space-block);
}

/* "Our Global Footprint" wrapped to two lines at the section h2 size in a
   third of the lane. It is a label for the band rather than a section
   title that has to shout, so it is sized to sit on one line and
   text-wrap: nowrap keeps it there if the copy is edited. */
.entry-content .wc-footprint-head h2 {
	margin: 0 0 var(--editorial-space-2xs);
	font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
	text-wrap: nowrap;
}

@media ( max-width: 600px ) {
	/* On a phone the column is the full width, so let it wrap again
	   rather than overflow. */
	.entry-content .wc-footprint-head h2 {
		text-wrap: balance;
	}
}

/* The eyebrow sits under the heading here, so the margin goes the other way. */
.wc-footprint-head .wc-section__eyebrow {
	margin: 0;
	color: var(--editorial-heading);
	font-weight: 400;
	letter-spacing: 0.04em;
	text-transform: none;
	font-size: 0.95rem;
}

/* Four figures across, hairline-separated, sitting on the heading's
   baseline rather than in a tinted band. */
.wc-footprint-head .wc-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0;
	background: none;
	text-align: center;
}

.entry-content .wc-footprint-head .wc-stats .editorial-info-item {
	padding: 0 var(--editorial-space-sm);
	background: none;
}

.wc-footprint-head .wc-stats .editorial-info-item + .editorial-info-item {
	border-inline-start: 1px solid var(--editorial-border);
}

@media ( max-width: 900px ) {
	.wc-footprint-head .wc-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: var(--editorial-space-md);
	}

	/* With two per row the third starts a new row, so its left rule would
	   dangle at the row start. */
	.wc-footprint-head .wc-stats .editorial-info-item:nth-child(odd) {
		border-inline-start: 0;
	}
}

/* Footprint stats: the numbers carry the weight, the label sits under.
   Black, not an accent colour — at this size they are the heading of
   each stat, and 21:1 beats the 5.1:1 the sage text shade gave. */
.wc-stats .editorial-info-item__title {
	color: var(--editorial-heading);
	font-family: var(--wc-font-sans);
	font-size: clamp(2rem, 1.6rem + 1.6vw, 3rem);
	font-weight: 700;
	line-height: 1;
}

.wc-stats .editorial-info-item__meta {
	font-size: 0.85rem;
	line-height: 1.4;
}

.wc-map img {
	display: block;
	width: 100%;
	height: auto;
	/* world-map.svg is 1678x822. Declaring the ratio reserves the box
	   before the file lands, which is what the markets row below it was
	   being shifted by (0.094 of the 0.099 CLS). */
	aspect-ratio: 1678 / 822;
}

/* The three market blocks under the map. */
.wc-markets .wc-market__region {
	display: inline-block;
	margin: 0 0 var(--editorial-space-2xs);
	padding: 0.2em 0.6em;
	background: var(--editorial-accent-fill);
	color: var(--editorial-on-accent);
	font-family: var(--wc-font-sans);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.wc-markets .wc-market__city {
	margin: 0 0 var(--editorial-space-2xs);
	color: var(--editorial-muted-text);
	font-family: var(--wc-font-sans);
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* A short rule above the title, as on the flyer. It was a border-bottom
   on the title, which spanned the whole column and read as a line running
   to the page edge on the last market. */
.entry-content .wc-markets .wc-market__title {
	position: relative;
	margin: var(--editorial-space-sm) 0 var(--editorial-space-2xs);
	padding-top: var(--editorial-space-sm);
	font-size: clamp(1.1rem, 1rem + 0.4vw, 1.35rem);
}

.entry-content .wc-markets .wc-market__title::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 48px;
	height: 1px;
	background: var(--editorial-accent-rule);
}

/*--------------------------------------------------------------
# Homepage feeds: What's Next and From the Journal (inc/home-sections.php)
--------------------------------------------------------------*/
/* The shortcode's wrapper takes the wide lane, under the section's
   eyebrow and heading; the "see all" button follows the feed. */
.wc-home-feed__body {
	display: flex;
	flex-direction: column;
	gap: var(--space-block);
	margin-top: var(--editorial-space-md);
}

.wc-home-feed__more {
	justify-content: flex-start;
	margin: 0;
}

/* What's Next: one event as a split panel on the surface colour, image
   left, text right. The title link's ::after covers the card, so the
   whole panel is one click target and one tab stop. */
.wc-next-events {
	display: grid;
	gap: var(--editorial-gap);
}

.wc-next-event {
	position: relative;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	background: var(--editorial-surface);
}

.wc-next-event:not(:has(.wc-next-event__media)) {
	grid-template-columns: minmax(0, 1fr);
}

.wc-next-event__media {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--editorial-surface);
}

.wc-next-event__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 400ms ease;
}

.wc-next-event:hover .wc-next-event__image {
	transform: scale(1.03);
}

.wc-next-event__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: var(--editorial-space-xs);
	padding: var(--split-padding);
}

/* Eyebrow (shared primitives), a size down and tracked. */
.wc-next-event__date {
	margin: 0;
	font-size: 0.85rem;
	letter-spacing: 0.08em;
}

/* h3 is sans site-wide; these titles are the serif of the card titles
   on the blog and the services list. */
.entry-content .wc-next-event h3 {
	margin: 0;
	font-family: var(--wc-font-serif);
	font-size: var(--editorial-font-size-h3);
	line-height: 1.1;
	text-wrap: balance;
}

.wc-next-event__location {
	margin: 0;
	color: var(--editorial-muted-text);
	font-family: var(--wc-font-sans);
	font-size: 0.95rem;
}

.wc-next-event__intro {
	max-width: var(--split-measure-ch);
	margin: var(--editorial-space-2xs) 0 0;
	line-height: 1.6;
}

/* Reads as the call to action; the link itself is the title's. */
.wc-next-event__cta {
	align-self: flex-start;
	margin-top: var(--editorial-space-sm);
	padding: 0.75em 1.5em;
	background: var(--editorial-heading);
	color: var(--editorial-page);
	font-family: var(--wc-font-sans);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	transition: transform 200ms ease, background-color 200ms ease, color 200ms ease;
}

.wc-next-event:is(:hover, :focus-within) .wc-next-event__cta {
	transform: scale(1.06);
	background: var(--editorial-accent-fill);
	color: var(--editorial-on-accent);
}

/* From the Journal: three blog cards across. */
.wc-latest-posts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--space-block) var(--editorial-gap);
}

.wc-latest-posts .blog-card {
	margin: 0;
}

.entry-content .wc-latest-posts .blog-card h3 {
	font-family: var(--wc-font-serif);
	line-height: 1.2;
}

@media ( max-width: 900px ) {
	.wc-next-event {
		grid-template-columns: minmax(0, 1fr);
	}

	/* Phones and tablets: the cards become a swipeable row, the next
	   card peeking in from the edge, instead of three tall cards stacked. */
	.wc-latest-posts {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: min(78%, 22rem);
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		padding-bottom: var(--editorial-space-sm);
	}

	.wc-latest-posts .blog-card {
		scroll-snap-align: start;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.wc-next-event:hover .wc-next-event__image,
	.wc-next-event:is(:hover, :focus-within) .wc-next-event__cta {
		transform: none;
	}
}

/*--------------------------------------------------------------
# Map: sticky band
--------------------------------------------------------------*/
/* The footprint band carries no vertical padding of its own — the map
   runs flush to the sections above and below. Its heading and figures
   keep their own padding (see .wc-footprint-head), so only the map
   touches the edges. */
.home .entry-content > .editorial-section:has(.wc-map-markets) {
	padding-block: 0;
}

/*--------------------------------------------------------------
# Sticky map group (Home 2+3 pattern)
--------------------------------------------------------------*/
/* The map holds still while the section after it scrolls up over the
   top. position: sticky does this on the compositor — no scroll
   listener, no JavaScript, nothing running per frame.

   This only works because the pattern puts the map and the covering
   section inside one Group: a sticky element can only travel within its
   own container, so with the map alone in a section there was nowhere
   to stick. The map is also sized to the viewport here; a sticky
   element taller than the screen cannot pin usefully.

   The covering section rides above the map and must be opaque, or the
   map shows through it. */
.wc-sticky-map-group {
	position: relative;
}

/* 1101px, the same width the map itself appears at. Below that there is
   no map in this group — only the cards — and pinning those while the
   next section rides up over them would bury the thing the band is for. */
@media ( min-width: 1101px ) {
	/* No height is set here on purpose. The pins and hotspots are
	   positioned as percentages of this element, so it has to stay
	   exactly the size of the image — give it a fixed height and
	   object-fit letterboxes the map inside it and every pin drifts off
	   its city. At the map's own ratio (1678x822) a full-width band is
	   about 700px tall, which already fits a normal viewport. */
	.wc-sticky-map-group > .wc-map-markets {
		position: sticky;
		top: 0;
		z-index: 0;
	}

	.wc-sticky-map-group > .wc-map-markets ~ * {
		position: relative;
		z-index: 1;
		background-color: var(--editorial-page);
	}
}

/*--------------------------------------------------------------
# Map: city pins and market hotspots
--------------------------------------------------------------*/
/* The markets sit on the map itself and open their card on rollover,
   with the four cities pinned alongside.

   The coordinates are not guesses. assets/img/world-map.svg is a fixed
   file with one path per country, so each point was measured off that
   artwork and expressed as a percentage of its viewBox (1678x822) — they
   hold at any rendered size. Replacing the map with different artwork is
   the one thing that would invalidate them.

   Below 1100px the hotspots unstack into the plain row under the map:
   there is no hover on a phone, and a card over a 375px map is
   unreadable. The text is in the DOM either way, so nothing is hidden
   from search engines or screen readers. */
.wc-map-markets {
	position: relative;
}

.wc-map-markets .wc-map {
	margin: 0;
}

.wc-map-markets .wc-map img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1678 / 822;
}

/* Below 1101px: no map, just the cards.

   This is the width at which the pins and hotspots stop being positioned
   on the artwork (see the min-width: 1101px block below), so from here
   down the map carried no interaction at all — on a phone it rendered as
   a 184px-tall strip of unreadable coastline, with the four city names
   orphaned underneath it and the cards stacked below that. The cards say
   everything the map was labelling.

   Nothing is lost by hiding the city list: every one of its four cities
   is already named in a card (New York · Los Angeles, London, Paris).

   The band also gets its vertical padding back. It was set to 0 so the
   map could run flush into the sections above and below; with no map
   there, the cards would otherwise butt straight into them. */
@media ( max-width: 1100px ) {
	.wc-map-markets .wc-map,
	.entry-content .wc-map-cities {
		display: none;
	}

	.home .entry-content > .editorial-section:has(.wc-map-markets) {
		padding-block: var(--space-section);
	}
}

/* City pins — decoration that labels the map, matching the flyer. */
.entry-content .wc-map-cities {
	margin: 0;
	padding: 0;
	list-style: none;
}

@media ( min-width: 1101px ) {
	.entry-content .wc-map-cities {
		position: absolute;
		inset: 0;
		pointer-events: none;
	}

	.entry-content .wc-map-cities .wc-map-city {
		position: absolute;
		left: var(--x);
		top: var(--y);
		margin: 0;
		padding-left: 0.85rem;
		color: var(--editorial-heading);
		font-family: var(--wc-font-serif);
		font-size: 0.85rem;
		line-height: 1;
		white-space: nowrap;
		transform: translateY(-50%);
	}

	.entry-content .wc-map-cities .wc-map-city::before {
		content: "";
		position: absolute;
		left: 0;
		top: 50%;
		width: 7px;
		height: 7px;
		border-radius: 50%;
		background: var(--editorial-heading);
		transform: translateY(-50%);
	}

	.entry-content .wc-map-cities .is-la { --x: 14.48%; --y: 42.70%; }
	.entry-content .wc-map-cities .is-ny { --x: 25.92%; --y: 38.08%; }
	.entry-content .wc-map-cities .is-london { --x: 46.60%; --y: 32.12%; }
	.entry-content .wc-map-cities .is-paris { --x: 48.27%; --y: 33.58%; }

	/* London and Paris are close together, so their labels sit on
	   opposite sides to stop them colliding. */
	.entry-content .wc-map-cities .is-london {
		padding-left: 0;
		padding-right: 0.85rem;
		transform: translate(-100%, -50%);
	}

	.entry-content .wc-map-cities .is-london::before {
		left: auto;
		right: 0;
	}

	/* --- Market hotspots --- */
	.entry-content .wc-map-markets .wc-markets {
		position: absolute;
		inset: 0;
		display: block;
		width: auto;
		margin: 0;
		pointer-events: none;
	}

	.entry-content .wc-markets .wc-market {
		position: absolute;
		left: var(--x);
		top: var(--y);
		width: 2.5rem;
		height: 2.5rem;
		padding: 0;
		transform: translate(-50%, -50%);
		pointer-events: auto;
	}

	/* Set clear of the city pins rather than exactly on each region's
	   centroid: at the centroid the three tags overlapped each other and
	   the London pin. US sits low over the Gulf, UK north of Britain in
	   open sea, Europe south-east over the continent. */
	.entry-content .wc-markets .is-us { --x: 21.50%; --y: 48.50%; }
	.entry-content .wc-markets .is-uk { --x: 43.20%; --y: 24.50%; }
	.entry-content .wc-markets .is-eu { --x: 53.00%; --y: 37.50%; }

	/* The open card must clear its neighbours: Europe sits close to the UK. */
	.entry-content .wc-markets .wc-market:hover,
	.entry-content .wc-markets .wc-market:focus-within {
		z-index: 2;
	}

	.entry-content .wc-markets .wc-market__region {
		position: absolute;
		top: 50%;
		left: 50%;
		margin: 0;
		transform: translate(-50%, -50%);
		white-space: nowrap;
		cursor: default;
		transition: transform 180ms ease;
	}

	.entry-content .wc-markets .wc-market:hover .wc-market__region,
	.entry-content .wc-markets .wc-market:focus-within .wc-market__region {
		transform: translate(-50%, -50%) scale(1.06);
	}

	/* One panel, laid out in normal flow inside, so the card cannot come
	   apart when the copy is edited. */
	.entry-content .wc-markets .wc-market__card {
		position: absolute;
		top: calc(50% + 1.6rem);
		left: 50%;
		width: 17rem;
		padding: 0;
		background: none;
		transform: translateX(-50%) translateY(-0.4rem);
		opacity: 0;
		visibility: hidden;
		transition: opacity 180ms ease, transform 180ms ease;
	}

	.entry-content .wc-markets .wc-market:hover .wc-market__card,
	.entry-content .wc-markets .wc-market:focus-within .wc-market__card {
		opacity: 1;
		visibility: visible;
		transform: translateX(-50%) translateY(0);
	}

	/* The US hotspot is far enough left that a centred card would hang off
	   the page; Europe is close to the right of its neighbours. */
	.entry-content .wc-markets .is-eu .wc-market__card {
		transform: translateX(-72%) translateY(-0.4rem);
	}

	.entry-content .wc-markets .is-eu:hover .wc-market__card,
	.entry-content .wc-markets .is-eu:focus-within .wc-market__card {
		transform: translateX(-72%) translateY(0);
	}

	.entry-content .wc-markets .wc-market__card-inner {
		padding: var(--editorial-space-md);
		background: var(--editorial-page);
		box-shadow: 0 12px 28px rgb(0 0 0 / 0.12);
	}

	.entry-content .wc-markets .wc-market__card p {
		font-size: 0.9rem;
		line-height: 1.5;
	}

	.entry-content .wc-markets .wc-market__card > :last-child,
	.entry-content .wc-markets .wc-market__card-inner > :last-child {
		margin-bottom: 0;
	}

	.entry-content .wc-markets .wc-market__card .wc-market__title {
		margin-block: var(--editorial-space-sm) var(--editorial-space-2xs);
	}
}

/* Below the breakpoint the hotspots unstack into the plain row and the
   city pins are redundant — the markets name their own cities. */
@media ( max-width: 1100px ) {
	.wc-map-markets .wc-markets {
		margin-top: var(--space-block);
	}

	/* The map group is full width, so as an alignwide child the row fell
	   to WordPress's constrained-layout rule (max-width: calc(100% + 60px)
	   with negative side margins) and ran 30px past each edge of a phone,
	   giving the page a sideways scroll. Same fix as the fractional band:
	   width from the container token. */
	.entry-content .wc-map-markets > .wc-markets {
		width: var(--container-inline);
		max-width: none;
		margin-inline: auto;
	}

	.entry-content .wc-map-cities {
		display: none;
	}
}

/* The fractional-team band — the flyer's one tinted panel. The band runs
   edge to edge; its contents keep the page gutter so the text doesn't sit
   against the tint's edge. */
.wc-fractional {
	padding-block: var(--space-section);
	padding-inline: var(--editorial-gutter);
	background: var(--editorial-band);
}

/* Four words in a third of the lane broke "The Fractional Team Model" over
   four lines at the section h2 size; the flyer sets it on two. */
.entry-content .wc-fractional h2 {
	margin: 0 0 var(--editorial-space-2xs);
	font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
	text-wrap: balance;
}

/* The band is not a lane grid, so an alignwide child falls to WordPress's
   own constrained-layout rule (max-width: calc(100% + 80px) with a
   negative right margin), which pushed it 80px past the viewport and gave
   the page a horizontal scrollbar. Inside the band, width comes from the
   container token instead. */
.wc-fractional > .wp-block-columns,
.wc-fractional > .alignwide,
.wc-fractional > .alignfull {
	width: var(--container-inline);
	max-width: none;
	margin-inline: auto;
}

.entry-content .wc-fractional__lead {
	max-width: none;
	font-size: 1.05rem;
	line-height: 1.5;
}

.wc-fractional__title {
	margin: 0 0 var(--editorial-space-2xs);
	font-family: var(--wc-font-sans);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* Four across, each with a rule to its left, so they read as one band
   rather than four cards. */
.wc-fractional__items .wp-block-column + .wp-block-column {
	padding-inline-start: var(--editorial-space-md);
	border-inline-start: 1px solid var(--editorial-accent-rule);
}

.wc-fractional__items p:not(.wc-fractional__title) {
	font-size: 0.9rem;
	line-height: 1.5;
}

/* Logo wall. Rows of logos at a common height, greyed back so the wall
   reads as one texture and no single brand shouts. */
.entry-content .wc-brand-logos,
.wc-brand-logos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--editorial-space-lg) var(--space-block);
	margin: var(--space-content) 0 0;
	padding: 0;
	list-style: none;
}

.wc-brand-logos img {
	display: block;
	width: auto;
	max-width: 10rem;
	height: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
	object-fit: contain;
	filter: grayscale(1);
	opacity: 0.75;
	transition: opacity 200ms ease, filter 200ms ease, transform 200ms ease;
}

.wc-brand-logos:not(.wc-brand-logos--mosaic) .wc-brand-logos__link:hover img,
.wc-brand-logos:not(.wc-brand-logos--mosaic) .wc-brand-logos__link:focus-visible img {
	transform: scale(1.04);
}

.wc-brand-logos__link:hover img,
.wc-brand-logos__link:focus-visible img {
	filter: grayscale(0);
	opacity: 1;
}

/* style="mosaic": the pictures tile into one block with no gaps, cropped
   square, in full colour — a texture of the portfolio rather than a row
   of marks. Sits beside the heading in the Home 5 pattern. */
.entry-content .wc-brand-logos--mosaic,
.wc-brand-logos--mosaic {
	display: grid;
	grid-template-columns: repeat(var(--wc-brand-columns, 5), minmax(0, 1fr));
	gap: 0;
	margin: 0;
}

.entry-content .wc-brand-logos--mosaic > .wc-brand-logos__item {
	margin: 0;
	padding: 0;
}

.entry-content .wc-brand-logos--mosaic > .wc-brand-logos__item {
	overflow: hidden;
}

.wc-brand-logos--mosaic .wc-brand-logos__link {
	display: block;
	height: 100%;
}

/* max-width/height from the logo row would letterbox these; a mosaic tile
   is a square the picture fills. */
.wc-brand-logos--mosaic img {
	width: 100%;
	max-width: none;
	height: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	filter: none;
	opacity: 1;
	/* transform only: it composites on the GPU, so the zoom costs no
	   layout or paint of the rest of the page. The tile's overflow:hidden
	   keeps the zoom inside it. */
	transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.wc-brand-logos--mosaic .wc-brand-logos__link:hover img,
.wc-brand-logos--mosaic .wc-brand-logos__link:focus-visible img {
	transform: scale(1.15);
}

@media ( max-width: 900px ) {
	.entry-content .wc-brand-logos--mosaic,
	.wc-brand-logos--mosaic {
		grid-template-columns: repeat(min(var(--wc-brand-columns, 5), 4), minmax(0, 1fr));
	}
}

@media ( max-width: 600px ) {
	.entry-content .wc-brand-logos--mosaic,
	.wc-brand-logos--mosaic {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* style="slider": the same full-colour pictures in one row that slides
   sideways, --wc-brand-visible (set inline) at a time, each a snap point.
   The arrows, progress bar and edge fades come from the scroller
   (scroller.js, "Services — horizontal scroll" above). */
.entry-content .wc-brand-logos--slider,
.wc-brand-logos--slider {
	--wc-brand-gap: var(--editorial-space-sm);
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc(
		(100% - (var(--wc-brand-gap) * (var(--wc-brand-visible, 4) - 1)))
		/ var(--wc-brand-visible, 4)
	);
	gap: var(--wc-brand-gap);
	justify-content: start;
	margin: 0;
	padding-bottom: var(--editorial-space-sm);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	scrollbar-color: var(--editorial-border) transparent;
}

.entry-content .wc-brand-logos--slider > .wc-brand-logos__item {
	overflow: hidden;
	scroll-snap-align: start;
}

.wc-brand-logos--slider .wc-brand-logos__link {
	display: block;
}

.wc-brand-logos--slider img {
	width: 100%;
	max-width: none;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	filter: none;
	opacity: 1;
	transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.wc-brand-logos--slider .wc-brand-logos__link:hover img,
.wc-brand-logos--slider .wc-brand-logos__link:focus-visible img {
	transform: scale(1.15);
}

@media ( max-width: 900px ) {
	.entry-content .wc-brand-logos--slider,
	.wc-brand-logos--slider {
		grid-auto-columns: minmax(12rem, 34%);
	}
}

@media ( max-width: 600px ) {
	.entry-content .wc-brand-logos--slider,
	.wc-brand-logos--slider {
		grid-auto-columns: 70%;
	}
}

/* style="carousel": one large picture at a time (carousel.js). The slides
   share one grid cell and cross-fade, so the box holds its size and
   nothing shifts; the visible one drifts in slowly. Dots and the pause
   button sit in a small frosted pill at the bottom centre. */
.wc-carousel {
	position: relative;
	overflow: hidden;
}

/* One stretched column: the logo wall's justify-content: center would
   otherwise size the track to each picture's own width, leaving a
   narrower image in a wide column. */
.entry-content .wc-brand-logos--carousel,
.wc-brand-logos--carousel {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	justify-content: stretch;
	align-items: stretch;
	gap: 0;
	margin: 0;
	padding: 0;
}

.entry-content .wc-brand-logos--carousel > .wc-carousel__slide {
	grid-area: 1 / 1;
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	transition: opacity 900ms ease, visibility 0s linear 900ms;
}

.entry-content .wc-brand-logos--carousel > .wc-carousel__slide.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity 900ms ease, visibility 0s;
}

.wc-brand-logos--carousel .wc-brand-logos__link {
	display: block;
	height: 100%;
}

.wc-brand-logos--carousel img {
	width: 100%;
	max-width: none;
	height: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	filter: none;
	opacity: 1;
	transform: scale(1);
	transition: transform 7s linear;
}

.wc-brand-logos--carousel .is-active img {
	transform: scale(1.06);
}

/* Centred with inset + auto margins rather than left: 50%, which would
   cap the pill at half the picture and wrap the dots on phones. */
.wc-carousel__controls {
	position: absolute;
	inset-inline: 0;
	bottom: var(--editorial-space-sm);
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 0.15rem;
	width: fit-content;
	max-width: calc(100% - var(--editorial-space-md));
	margin-inline: auto;
	padding: 0.2rem 0.5rem;
	border-radius: 999px;
	background: rgb(0 0 0 / 0.3);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.wc-carousel__controls[hidden] {
	display: none;
}

.wc-carousel__dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

/* The button is the 24px touch target; the dot is its ::before. The
   current one stretches into a short bar. */
.wc-carousel__dot,
.wc-carousel__toggle {
	display: inline-grid;
	place-items: center;
	min-width: 1.5rem;
	height: 1.5rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--editorial-on-image);
	cursor: pointer;
}

.wc-carousel__dot::before {
	content: "";
	width: 0.45rem;
	height: 0.45rem;
	border-radius: 999px;
	background: rgb(255 255 255 / 0.55);
	transition: width 300ms ease, background-color 300ms ease;
}

.wc-carousel__dot:is(:hover, :focus-visible)::before {
	background: var(--editorial-on-image);
}

.wc-carousel__dot[aria-current="true"] {
	min-width: 2rem;
}

.wc-carousel__dot[aria-current="true"]::before {
	width: 1.25rem;
	background: var(--editorial-on-image);
}

.wc-carousel__dot:focus-visible,
.wc-carousel__toggle:focus-visible {
	outline: 2px solid var(--editorial-on-image);
	outline-offset: -2px;
	border-radius: 999px;
}

/* Phones: a little narrower, so a dozen dots still sit on one line. */
@media ( max-width: 600px ) {
	.wc-carousel__dot {
		min-width: 1.25rem;
	}

	.wc-carousel__dot[aria-current="true"] {
		min-width: 1.75rem;
	}
}

.wc-carousel__icon-play,
.wc-carousel__toggle.is-paused .wc-carousel__icon-pause {
	display: none;
}

.wc-carousel__toggle.is-paused .wc-carousel__icon-play {
	display: block;
}

@media ( prefers-reduced-motion: reduce ) {
	.wc-brand-logos--carousel .is-active img {
		transform: none;
	}
}

/*--------------------------------------------------------------
# Gallery block: Carousel and Slider styles (gallery-styles.php)
--------------------------------------------------------------*/
/* Each image keeps WordPress's own <figure class="wp-block-image">, so
   only its spacing and crop are set here. */
.wc-gallery {
	margin-inline: 0;
}

.wc-gallery :is(.wc-gallery__slides, .wc-gallery__row) {
	margin: 0;
	padding: 0;
	list-style: none;
}

.wc-gallery .wc-gallery__item .wp-block-image {
	margin: 0;
}

.wc-gallery img {
	display: block;
	width: 100%;
	max-width: none;
	height: auto;
}

.wc-gallery .wp-element-caption {
	margin: var(--editorial-space-2xs) 0 0;
	color: var(--editorial-muted-text);
	font-size: 0.85rem;
	text-align: left;
}

/* The gallery's own caption, under the whole gallery. */
.wc-gallery > .blocks-gallery-caption {
	margin: var(--editorial-space-sm) 0 0;
	color: var(--editorial-muted-text);
	font-size: 0.85rem;
	text-align: center;
}

/* Carousel: the slides share one cell and cross-fade, so the box keeps
   its size; the visible picture drifts in slowly, like the brand
   carousel. Dots and pause come from the shared .wc-carousel__controls. */
.wc-gallery__slides {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
}

.wc-gallery__slides > .wc-carousel__slide {
	grid-area: 1 / 1;
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	transition: opacity 900ms ease, visibility 0s linear 900ms;
}

.wc-gallery__slides > .wc-carousel__slide.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity 900ms ease, visibility 0s;
}

.wc-gallery--carousel .wp-block-image {
	overflow: hidden;
}

/* 3:2, but never taller than most of the screen: a full-width gallery
   would otherwise fill it and push the dots below the fold. */
.wc-gallery--carousel img {
	aspect-ratio: 3 / 2;
	max-height: 80vh;
	max-height: 80svh;
	object-fit: cover;
	transform: scale(1);
	transition: transform 7s linear;
}

.wc-gallery--carousel .is-active img {
	transform: scale(1.06);
}

/* Slider: one row, the gallery's Columns setting (--wc-gallery-visible,
   set inline) in view, each image a snap point. Arrows, progress bar and
   edge fades come from the scroller ("Services — horizontal scroll"). */
.wc-gallery__row {
	--wc-gallery-gap: var(--editorial-space-sm);
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc(
		(100% - (var(--wc-gallery-gap) * (var(--wc-gallery-visible, 3) - 1)))
		/ var(--wc-gallery-visible, 3)
	);
	gap: var(--wc-gallery-gap);
	align-items: start;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	scrollbar-color: var(--editorial-border) transparent;
}

/* Two classes: room for the native scrollbar when there's no JS (the
   list reset above zeroes it; the scroller hides it again with JS). */
.wc-gallery .wc-gallery__row {
	padding-bottom: var(--editorial-space-sm);
}

.wc-gallery__row > .wc-gallery__item {
	scroll-snap-align: start;
}

/* "Crop images to fit" on (WordPress's default): one shape for all. */
.wc-gallery__row.is-cropped img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

@media ( max-width: 900px ) {
	.wc-gallery__row {
		grid-auto-columns: minmax(12rem, 45%);
	}
}

@media ( max-width: 600px ) {
	.wc-gallery--carousel img {
		aspect-ratio: 4 / 3;
	}

	.wc-gallery__row {
		grid-auto-columns: 80%;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.wc-gallery--carousel .is-active img {
		transform: none;
	}
}

/* Home 5 · Brands carousel: the retailers section's split, with the
   carousel where its picture would be — flush to the page edge, text
   column inset like a Media & Text. */
.entry-content > .wp-block-columns.wc-brand-feature {
	gap: 0;
	align-items: center;
}

.entry-content > .wp-block-columns.wc-brand-feature > .wp-block-column:first-child {
	padding-inline-start: 0;
}

.entry-content > .wp-block-columns.wc-brand-feature > .wp-block-column:last-child {
	--prose-measure: min(var(--content-reading), var(--split-measure-ch));
	padding-block: var(--space-content);
	padding-inline: var(--split-padding) var(--editorial-gutter);
}

@media ( max-width: 781px ) {
	.entry-content > .wp-block-columns.wc-brand-feature > .wp-block-column:last-child {
		padding-inline: var(--editorial-gutter);
	}
}

/* The heading column beside the mosaic. Full section h2 size here, unlike
   the footprint and fractional heads: at a third of the lane it falls on
   two lines, which is the proportion the design has. It only looked
   broken before because the words were breaking mid-word — fixed by the
   overflow-wrap rule near the top of this file, not by shrinking it. */
.entry-content .wc-brands-head h2 {
	margin: 0 0 var(--editorial-space-sm);
	text-wrap: balance;
}

.wc-brands-head .wc-section__eyebrow {
	max-width: 26rem;
}

/* The mosaic's five tiles would otherwise squeeze the text column: the
   pictures scale down happily, the words do not. */
.wc-brands-head > .wp-block-column:first-child {
	flex-shrink: 0;
}

/* A brand carousel or slider beside text: always an even split, whatever
   widths the Columns block was given in the editor (they are saved as
   inline flex-basis, hence !important). The mosaic keeps its third/two
   thirds. Below 782px WordPress stacks the columns, so this stops there. */
@media ( min-width: 782px ) {
	.wp-block-columns:has(> .wp-block-column :is(.wc-brand-logos--carousel, .wc-brand-logos--slider)) > .wp-block-column {
		flex-basis: 50% !important;
		flex-grow: 0;
		flex-shrink: 1;
	}
}

/* Closing call to action — centred, the one place the page asks. */
.wc-cta {
	text-align: center;
}

.entry-content .wc-cta > * {
	margin-inline: auto;
}

.wc-cta .wp-block-buttons {
	justify-content: center;
}

/*--------------------------------------------------------------
# Buttons
--------------------------------------------------------------*/
/* Two sets, picked in the editor's Styles panel (assets/js/button-styles.js):

     Black · Solid     is-style-fill (the default; also no style class)
     Black · Outline   is-style-wc-outline-black
     Accent · Solid    is-style-wc-accent
     Accent · Outline  is-style-outline
     Text link         is-style-wc-text-link

   All square, in bold sans capitals with a ↗ after the label. On hover a
   solid button turns into its outline and an outline fills in, so the two
   halves of a set answer each other; the arrow nudges out.

   The `a` and the :not(.has-background) are load-bearing, not decoration.
   GeneratePress styles buttons as
   `a.wp-block-button__link:not(.has-background):hover` (inc/css-output.php),
   which is one element more specific than a plain two-class selector —
   without matching its shape these declarations are simply ignored.
   Mirroring :not(.has-background) also means a background set on the
   block in the editor still wins. The line is an inset shadow, not a
   border, so the 1px never changes the button's size. */
.wp-block-button__link,
.wp-element-button {
	border-radius: 0;
}

.wp-block-button > a.wp-block-button__link:not(.has-background),
.entry-hero__cta a.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6em;
	padding: 1em 1.75em;
	border: 0;
	box-shadow: inset 0 0 0 1px var(--btn-line);
	background-color: var(--btn-bg);
	color: var(--btn-text);
	font-family: var(--wc-font-sans);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
	transition: transform 200ms ease, background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}

.wp-block-button > a.wp-block-button__link:not(.has-background)::after,
.entry-hero__cta a.button::after {
	content: "\2197";
	font-weight: 300;
	font-size: 1.15em;
	line-height: 1;
	transform: translateY(-0.12em);
	transition: transform 200ms ease;
}

.wp-block-button > a.wp-block-button__link:not(.has-background):is(:hover, :focus-visible),
body .entry-hero__cta a.button:is(:hover, :focus-visible) {
	transform: scale(1.04);
	box-shadow: inset 0 0 0 1px var(--btn-line-hover, var(--btn-line));
	background-color: var(--btn-bg-hover);
	color: var(--btn-text-hover);
	text-decoration: none;
}

.wp-block-button > a.wp-block-button__link:not(.has-background):is(:hover, :focus-visible)::after,
.entry-hero__cta a.button:is(:hover, :focus-visible)::after {
	transform: translate(0.15em, -0.3em);
}

/* Black · Solid, the default. */
.wp-block-button > a.wp-block-button__link {
	--btn-bg: var(--wc-color-black);
	--btn-line: var(--wc-color-black);
	--btn-text: var(--wc-color-white);
	--btn-bg-hover: var(--wc-color-white);
	--btn-text-hover: var(--wc-color-black);
}

/* Black · Outline: white, so it holds up over a photo too. */
.wp-block-button.is-style-wc-outline-black > a.wp-block-button__link {
	--btn-bg: var(--wc-color-white);
	--btn-line: var(--wc-color-black);
	--btn-text: var(--wc-color-black);
	--btn-bg-hover: var(--wc-color-black);
	--btn-text-hover: var(--wc-color-white);
}

/* Accent · Solid: the darker accent fill, so white text stays readable. */
.wp-block-button.is-style-wc-accent > a.wp-block-button__link {
	--btn-bg: var(--editorial-accent-fill);
	--btn-line: var(--editorial-accent-fill);
	--btn-text: var(--editorial-on-accent);
	--btn-bg-hover: transparent;
	--btn-text-hover: var(--editorial-accent-text);
	--btn-line-hover: var(--editorial-accent-text);
}

/* Accent · Outline (core's Outline style, and the hero CTA button on
   brand, retailer, event and Hero pages). */
.wp-block-button.is-style-outline > a.wp-block-button__link,
.wp-block-button > a.wp-block-button__link.is-style-outline,
.entry-hero__cta a.button {
	--btn-bg: transparent;
	--btn-line: var(--editorial-accent-text);
	--btn-text: var(--editorial-accent-text);
	--btn-bg-hover: var(--editorial-accent-fill);
	--btn-text-hover: var(--editorial-on-accent);
	--btn-line-hover: var(--editorial-accent-fill);
}

/* Text link: no box, the label underlined in black (EXPLORE OUR BRANDS ↗). */
.wp-block-button.is-style-wc-text-link > a.wp-block-button__link {
	--btn-bg: transparent;
	--btn-line: transparent;
	--btn-text: var(--editorial-heading);
	--btn-bg-hover: transparent;
	--btn-text-hover: var(--editorial-accent-text);
}

.wp-block-button.is-style-wc-text-link > a.wp-block-button__link:not(.has-background) {
	padding: 0;
	font-size: clamp(1rem, 0.9rem + 0.35vw, 1.25rem);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.25em;
}

.wp-block-button.is-style-wc-text-link > a.wp-block-button__link:not(.has-background):is(:hover, :focus-visible) {
	transform: none;
	text-decoration: underline;
}

/* GeneratePress's own `a.button` (outside the hero) answers a hover with
   the accent fill rather than GP's grey. */
body a.button:is(:hover, :focus) {
	background-color: var(--editorial-accent-fill);
	color: var(--editorial-on-accent);
}

/* Over the fullscreen hero's photo the accent would sit dark on the dark
   gradient: white line and label there, filling white with dark text. */
.entry-hero--fullscreen .entry-hero__cta a.button {
	--btn-line: var(--editorial-on-image);
	--btn-text: var(--editorial-on-image);
	--btn-bg-hover: var(--editorial-on-image);
	--btn-line-hover: var(--editorial-on-image);
	--btn-text-hover: var(--editorial-heading);
}

/*--------------------------------------------------------------
# Homepage hero
--------------------------------------------------------------*/
/* patterns/home-0-hero.php: a Cover block across the window, the headline
   in serif capitals, a paragraph and two buttons on the left, the picture's
   subject on the right (its focal point is set in the editor). On phones
   the text comes first on plain white and the picture follows as a band,
   so nothing has to be read over the products. */
.wp-block-cover.wc-home-hero {
	min-height: clamp(30rem, 37.5vw, 42rem) !important; /* beats the block's inline min-height, which is only the editor's guide */
	padding-block: clamp(3rem, 6vw, 5.5rem);
	padding-inline: max(var(--editorial-gutter), calc((100% - var(--container)) / 2));
	justify-content: flex-start;
}

/* GeneratePress's 40px above the content would leave a white strip
   between the header and the picture. */
.home .site-content:has(.entry-content > .wc-home-hero:first-child) {
	padding-top: 0;
}

.wc-home-hero .wp-block-cover__inner-container {
	width: 100%;
	max-width: 42rem;
	margin: 0;
	color: var(--editorial-heading);
}

.entry-content .wc-home-hero__title {
	margin: 0 0 0.45em;
	color: var(--editorial-heading);
	font-family: var(--wc-font-serif);
	font-size: clamp(2.25rem, 1.1rem + 3.3vw, 4.25rem);
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1;
	text-transform: uppercase;
}

.entry-content .wc-home-hero__text {
	max-width: 37rem;
	margin: 0;
	color: var(--editorial-heading);
	font-size: clamp(1rem, 0.85rem + 0.5vw, 1.375rem);
	line-height: 1.45;
}

.wc-home-hero .wp-block-buttons {
	gap: 0.9rem;
	margin-top: clamp(1.5rem, 1rem + 1.2vw, 2.25rem);
}

@media ( max-width: 781px ) {
	.wp-block-cover.wc-home-hero {
		flex-direction: column;
		align-items: stretch;
		min-height: 0 !important;
		padding: 0;
		background: var(--wc-color-white);
	}

	.wp-block-cover.wc-home-hero .wp-block-cover__inner-container {
		order: 1;
		max-width: none;
		padding: 2.5rem var(--editorial-gutter) 2rem;
	}

	.wp-block-cover.wc-home-hero > .wp-block-cover__image-background {
		position: relative;
		inset: auto;
		order: 2;
		width: 100%;
		height: 17rem;
	}

	.wc-home-hero .wp-block-buttons {
		flex-direction: column;
		align-items: stretch;
	}

	.wc-home-hero .wp-block-button > a.wp-block-button__link {
		width: 100%;
	}
}

/*--------------------------------------------------------------
# Homepage figures band
--------------------------------------------------------------*/
/* patterns/home-2-figures.php: "Global Vision. Local Expertise." on the
   left, four figures beside it, each opened by a hairline. Two figures to
   a row below 900px, with the heading across the top. */
.wc-figures {
	padding-block: clamp(3rem, 2rem + 3vw, 5rem);
}

/* GeneratePress pulls a nested .alignwide out by 40px each side; the
   section's lane already gives the width. */
.entry-content .editorial-section.wc-figures > .wc-figures__row {
	width: auto;
	max-width: none;
	margin-inline: 0;
}

.wc-figures__row {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr));
	align-items: stretch;
}

.entry-content .wc-figures__title {
	align-self: center;
	margin: 0;
	padding: 0 clamp(1rem, 2vw, 2rem) 0 0;
	color: var(--editorial-heading);
	font-size: clamp(2.25rem, 1.2rem + 2.6vw, 4rem);
	line-height: 1.05;
}

/* No short accent rule under this heading. */
.entry-content .wc-figures__title::after {
	content: none;
}

.wc-figures__row > .wc-figure {
	display: flex;
	flex-direction: column;
	justify-content: flex-start; /* numbers stay level when one label runs to more lines */
	margin: 0;
	padding: 0.25rem clamp(0.5rem, 1.2vw, 1.25rem);
	border-inline-start: 1px solid color-mix(in srgb, var(--editorial-heading) 22%, transparent);
	text-align: center;
}

.entry-content .wc-figure__number {
	margin: 0 0 0.15em;
	color: var(--editorial-heading);
	font-family: var(--wc-font-serif);
	font-size: clamp(2.5rem, 1.4rem + 2.9vw, 4.5rem);
	font-weight: 500;
	font-variant-numeric: lining-nums;
	line-height: 1;
	white-space: nowrap;
}

.entry-content .wc-figure__label {
	margin: 0;
	color: var(--editorial-heading);
	font-size: 0.8125rem;
	letter-spacing: 0.02em;
	line-height: 1.3;
	text-transform: uppercase;
}

.wc-figure__label strong {
	font-weight: 700;
}

@media ( max-width: 900px ) {
	.wc-figures__row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 2rem;
	}

	.entry-content .wc-figures__title {
		grid-column: 1 / -1;
		padding: 0;
	}

	/* The heading is child 1, so figures 2 and 4 start a row: no rule there. */
	.wc-figures__row > .wc-figure:nth-child(even) {
		border-inline-start: 0;
	}
}

/*--------------------------------------------------------------
# Homepage expertise index
--------------------------------------------------------------*/
/* patterns/home-3-expertise-index.php: eyebrow, heading and lead on the
   left with Discover our services beside them, then [wc_services
   style="index"]: "01." in accent serif before each short title, an intro
   under it, four to a row with hairlines between the columns and a rule
   between the rows. Two to a row below 900px, one below 600px. */
.entry-content .editorial-section > .wc-expertise__head {
	width: auto;
	max-width: none;
	margin-inline: 0;
}

.wc-expertise__head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	column-gap: 2rem;
	align-items: start;
	margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}

.wc-expertise__head > * {
	grid-column: 1;
	margin: 0;
}

.wc-expertise__head > .wp-block-buttons {
	grid-column: 2;
	grid-row: 1 / span 3;
	margin: 0;
}

.entry-content .wc-expertise__head h2 {
	margin: 0.15em 0 0.3em;
	padding-bottom: 0;
	font-size: clamp(2.25rem, 1.2rem + 2.6vw, 4rem);
	line-height: 1.05;
}

.entry-content .wc-expertise__head h2::after {
	content: none;
}

.entry-content .wc-expertise__lead {
	max-width: 48rem;
	-webkit-hyphens: none;
	hyphens: none;
	color: var(--editorial-heading);
	font-size: clamp(1.05rem, 0.9rem + 0.45vw, 1.375rem);
	line-height: 1.45;
}

.wc-services.wc-services--index {
	--wc-home-rule: color-mix(in srgb, var(--editorial-heading) 22%, transparent);
	--wc-index-pad: clamp(1rem, 0.5rem + 1.4vw, 2rem);
	display: grid;
	grid-template-columns: repeat(var(--wc-services-columns, 4), minmax(0, 1fr));
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.entry-content .wc-services--index > .wc-service {
	display: block;
	position: relative;
	margin: 0;
	padding: 1.5rem var(--wc-index-pad);
}

/* Hairline before every column but the first, stopping short of the row
   rules; a rule above every row but the first. Written for four across. */
.entry-content .wc-services--index > .wc-service:nth-child(4n+1) {
	padding-inline-start: 0;
}

.entry-content .wc-services--index > .wc-service:not(:nth-child(4n+1))::before {
	content: "";
	position: absolute;
	top: 1.5rem;
	bottom: 1.5rem;
	left: 0;
	width: 1px;
	height: auto;
	background: var(--wc-home-rule);
}

.entry-content .wc-services--index > .wc-service:nth-child(n+5) {
	border-top: 1px solid var(--wc-home-rule);
}

.entry-content .wc-services--index .wc-service__title {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	margin: 0 0 0.6rem;
	padding: 0;
	font-family: var(--wc-font-sans);
	font-size: clamp(0.875rem, 0.8rem + 0.2vw, 1rem);
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.2;
	text-transform: uppercase;
}

.entry-content .wc-services--index .wc-service__title::after {
	content: none;
}

.wc-services--index .wc-service__number {
	flex-shrink: 0;
	color: var(--editorial-accent-text);
	font-family: var(--wc-font-serif);
	font-size: clamp(1.75rem, 1.3rem + 1.2vw, 2.5rem);
	font-variant-numeric: lining-nums;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0;
}

.wc-services--index .wc-service__title a {
	color: var(--editorial-heading);
	text-decoration: none;
}

/* The title's link covers the whole item. */
.wc-services--index .wc-service__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.wc-services--index .wc-service:is(:hover, :focus-within) .wc-service__title a {
	color: var(--editorial-accent-text);
}

.entry-content .wc-services--index .wc-service__intro {
	margin: 0;
	color: var(--editorial-heading);
	font-size: clamp(0.875rem, 0.8rem + 0.25vw, 1.0625rem);
	line-height: 1.45;
}

@media ( max-width: 900px ) {
	.wc-expertise__head {
		grid-template-columns: minmax(0, 1fr);
	}

	.wc-expertise__head > .wp-block-buttons {
		grid-column: 1;
		grid-row: auto;
		margin-top: 1.5rem;
	}

	.wc-services.wc-services--index {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.entry-content .wc-services--index > .wc-service:nth-child(n) {
		padding-inline-start: var(--wc-index-pad);
		border-top: 0;
	}

	.entry-content .wc-services--index > .wc-service:nth-child(2n+1) {
		padding-inline-start: 0;
	}

	.entry-content .wc-services--index > .wc-service:nth-child(n)::before {
		content: none;
	}

	.entry-content .wc-services--index > .wc-service:nth-child(2n)::before {
		content: "";
	}

	.entry-content .wc-services--index > .wc-service:nth-child(n+3) {
		border-top: 1px solid var(--wc-home-rule);
	}
}

@media ( max-width: 600px ) {
	.wc-services.wc-services--index {
		grid-template-columns: minmax(0, 1fr);
	}

	.entry-content .wc-services--index > .wc-service:nth-child(n) {
		padding-inline: 0;
		border-top: 1px solid var(--wc-home-rule);
	}

	.entry-content .wc-services--index > .wc-service:first-child {
		border-top: 0;
	}

	.entry-content .wc-services--index > .wc-service:nth-child(n)::before {
		content: none;
	}
}

/*--------------------------------------------------------------
# Homepage split panels
--------------------------------------------------------------*/
/* A Media & Text block with the class wc-split
   (patterns/home-5-brand-universe.php): the picture edge to edge on one
   side, filling the panel's height, and a tinted panel with eyebrow,
   heading, text and a link on the other. Media on the right works the
   same way. Stacked below 600px (core's breakpoint), picture first. */
.wp-block-media-text.wc-split {
	min-height: clamp(24rem, 30vw, 34rem);
	background: var(--editorial-surface);
}

.wc-split > .wp-block-media-text__media {
	align-self: stretch;
	height: 100%;
	margin: 0;
}

.wc-split > .wp-block-media-text__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.entry-content .wc-split > .wp-block-media-text__content {
	padding-block: clamp(2.5rem, 2rem + 2.5vw, 4.5rem);
}

.entry-content .wc-split:not(.has-media-on-the-right) > .wp-block-media-text__content {
	padding-inline-start: clamp(1.25rem, 0.5rem + 2vw, 2.5rem);
}

.entry-content .wc-split.has-media-on-the-right > .wp-block-media-text__content {
	padding-inline-end: clamp(1.25rem, 0.5rem + 2vw, 2.5rem);
}

.wc-split > .wp-block-media-text__content > * {
	margin-block: 0;
}

.entry-content .wc-split .wc-section__eyebrow {
	margin-bottom: 0.6rem;
}

.entry-content .wc-split h2 {
	margin: 0 0 0.45em;
	padding-bottom: 0;
	font-size: clamp(2.25rem, 1.2rem + 2.6vw, 4rem);
	line-height: 1.05;
}

.entry-content .wc-split h2::after {
	content: none;
}

.entry-content .wc-split__text {
	max-width: 50rem;
	color: var(--editorial-heading);
	font-size: clamp(1.05rem, 0.9rem + 0.45vw, 1.375rem);
	line-height: 1.45;
	-webkit-hyphens: none;
	hyphens: none;
}

.wc-split .wp-block-buttons {
	margin-top: clamp(1.25rem, 1rem + 1vw, 2rem);
}

@media ( max-width: 600px ) {
	.wp-block-media-text.wc-split {
		min-height: 0;
	}

	.wc-split > .wp-block-media-text__media {
		height: 18rem;
	}
}

/*--------------------------------------------------------------
# Homepage fractional model
--------------------------------------------------------------*/
/* patterns/home-4-fractional-model.php: text, picture and the four points
   side by side; the points sit in a two-by-two grid split by a cross of
   hairlines. Below 1100px the text runs across the top with the picture
   and points under it; below 600px it all stacks. */
.entry-content .editorial-section > .wc-model {
	width: auto;
	max-width: none;
	margin-inline: 0;
}

.wc-model {
	--wc-home-rule: color-mix(in srgb, var(--editorial-heading) 22%, transparent);
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr);
	gap: 2.5rem clamp(1.5rem, 0.5rem + 2.5vw, 2.75rem);
	align-items: stretch;
}

.entry-content .wc-model > * {
	margin: 0;
}

.entry-content .wc-model__text > * {
	margin-block: 0;
}

.entry-content .wc-model__text h2 {
	margin: 0.15em 0 0.4em;
	padding-bottom: 0;
	font-size: clamp(2.25rem, 1.2rem + 2.6vw, 4rem);
	line-height: 1.05;
}

.entry-content .wc-model__text h2::after {
	content: none;
}

.entry-content .wc-model__lead {
	color: var(--editorial-heading);
	font-size: clamp(1.05rem, 0.9rem + 0.45vw, 1.375rem);
	line-height: 1.45;
	-webkit-hyphens: none;
	hyphens: none;
}

.wc-model__text .wp-block-buttons {
	margin-top: clamp(1.5rem, 1rem + 1.2vw, 2.25rem);
}

.entry-content .wc-model__image {
	min-height: 20rem;
}

.wc-model__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wc-model__items {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-template-rows: repeat(2, auto);
}

.entry-content .wc-model__items > .wc-model__item {
	display: flex;
	flex-direction: column;
	justify-content: center;
	margin: 0;
	padding: clamp(1rem, 0.5rem + 1.5vw, 2rem) clamp(0.75rem, 0.25rem + 1.2vw, 1.25rem);
}

/* A cross of hairlines: right of the first column, under the first row. */
.wc-model__items > .wc-model__item:nth-child(odd) {
	border-inline-end: 1px solid var(--wc-home-rule);
}

.wc-model__items > .wc-model__item:nth-child(-n+2) {
	border-bottom: 1px solid var(--wc-home-rule);
}

.entry-content .wc-model__item > p {
	margin: 0;
	overflow-wrap: normal;
	-webkit-hyphens: none;
	hyphens: none;
	color: var(--editorial-heading);
	font-size: clamp(0.875rem, 0.8rem + 0.2vw, 1rem);
	line-height: 1.4;
}

.entry-content .wc-model__item > .wc-model__item-title {
	margin-bottom: 0.3rem;
	font-weight: 700;
	text-transform: uppercase;
}

@media ( max-width: 1100px ) {
	.wc-model {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
	}

	.wc-model__text {
		grid-column: 1 / -1;
	}
}

@media ( max-width: 600px ) {
	.wc-model {
		grid-template-columns: minmax(0, 1fr);
	}

	.entry-content .wc-model__image {
		min-height: 0;
		aspect-ratio: 4 / 3;
	}
}

/*--------------------------------------------------------------
# Homepage What's Next (split)
--------------------------------------------------------------*/
/* patterns/home-7-whats-next-split.php with [wc_next_event style="split"]:
   eyebrow, heading, line and the event (name, place, dates) on the left,
   the event's picture on the right running to the window's edge. The
   shortcode's wrapper is display: contents, so its two pieces take their
   places in this grid. On phones the picture follows the text, full
   width. */
.entry-content .wc-whats-next-split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 48%;
	grid-template-rows: auto auto auto 1fr;
	column-gap: clamp(2rem, 1rem + 3.5vw, 4.5rem);
	padding-block: clamp(3rem, 2rem + 3vw, 5rem);
}

.entry-content .wc-whats-next-split > * {
	grid-column: 1;
	margin: 0;
}

/* wpautop's empty paragraphs around the Shortcode block's output. */
.entry-content .wc-whats-next-split > p:empty {
	display: none;
}

.entry-content .wc-whats-next-split .wc-section__eyebrow {
	margin-bottom: 0.6rem;
}

.entry-content .wc-whats-next-split h2 {
	margin: 0 0 0.4em;
	padding-bottom: 0;
	font-size: clamp(2.25rem, 1.2rem + 2.6vw, 4rem);
	line-height: 1.05;
}

.entry-content .wc-whats-next-split h2::after {
	content: none;
}

.entry-content .wc-whats-next-split__lead {
	max-width: 40rem;
	color: var(--editorial-heading);
	font-size: clamp(1.05rem, 0.9rem + 0.45vw, 1.375rem);
	line-height: 1.45;
	-webkit-hyphens: none;
	hyphens: none;
}

.wc-next-split {
	display: contents;
}

.wc-next-split__events {
	display: grid;
	grid-column: 1;
	grid-row: 4;
	gap: 1.75rem;
	align-content: start;
	margin-top: clamp(2rem, 1.5rem + 2.5vw, 4rem);
}

.wc-next-split__event {
	position: relative;
}

.entry-content .wc-next-split__event h3 {
	margin: 0 0 0.15rem;
	padding: 0;
	font-family: var(--wc-font-sans);
	font-size: clamp(1rem, 0.9rem + 0.35vw, 1.25rem);
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.25;
	text-transform: uppercase;
}

.entry-content .wc-next-split__event h3::after {
	content: none;
}

.wc-next-split__event h3 a {
	color: var(--editorial-heading);
	text-decoration: none;
}

/* The name's link covers the whole block. */
.wc-next-split__event h3 a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.wc-next-split__event:is(:hover, :focus-within) h3 a {
	color: var(--editorial-accent-text);
}

.entry-content .wc-next-split__event p {
	margin: 0;
	color: var(--editorial-heading);
	font-size: clamp(1rem, 0.9rem + 0.35vw, 1.25rem);
	line-height: 1.4;
}

.wc-next-split__media {
	display: block;
	grid-column: 2;
	grid-row: 1 / 5;
	min-height: 20rem;
	margin-inline-end: calc(-1 * var(--editorial-gutter));
	overflow: hidden;
}

.wc-next-split__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media ( max-width: 900px ) {
	.entry-content .wc-whats-next-split {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: none;
		padding-bottom: 0;
	}

	.wc-next-split__events {
		grid-row: auto;
	}

	.wc-next-split__media {
		grid-column: 1;
		grid-row: auto;
		min-height: 0;
		aspect-ratio: 4 / 3;
		margin: clamp(2rem, 1.5rem + 2vw, 3rem) calc(-1 * var(--editorial-gutter)) 0;
	}
}

/*--------------------------------------------------------------
# Homepage motion
--------------------------------------------------------------*/
/* A gentle rise as each band comes into view. Scroll-driven animations
   run on the compositor, off the main thread — no JS, no scroll
   listener, no IntersectionObserver, so it costs nothing per frame.
   Browsers without animation-timeline (Safari and Firefox at the time of
   writing) simply never match the @supports block and show the sections
   as they always were; nothing is hidden by default, so there is no
   possibility of content being stuck invisible. */
@supports (animation-timeline: view()) {
	/* The min-height guard is deliberate. Scroll progress is meaningless
	   when the viewport has no height (an embedded or collapsed frame),
	   and the element then sits at the start keyframe — invisible. Seen
	   exactly that while testing in a collapsed pane. Below 400px tall
	   the reveal simply doesn't apply and the content shows as normal. */
	@media ( prefers-reduced-motion: no-preference ) and ( min-height: 400px ) {
		@keyframes wc-rise {
			from {
				opacity: 0;
				transform: translateY(1.5rem);
			}
		}

		.home .entry-content > .editorial-section,
		.home .entry-content > .wc-fractional,
		.home .entry-content > .wc-map-markets {
			animation: wc-rise linear both;
			animation-timeline: view();
			/* Start as the band enters and finish a third of the way up,
			   so it has settled well before it is being read. */
			animation-range: entry 0% cover 30%;
		}
	}
}

/* Everything above moves transform/opacity/filter only; this turns the
   lot off in one place for anyone who asks for less motion. */
@media ( prefers-reduced-motion: reduce ) {
	.wc-brand-logos--mosaic .wc-brand-logos__link:hover img,
	.wc-brand-logos:not(.wc-brand-logos--mosaic) .wc-brand-logos__link:hover img,
	.wc-services--numbered > .wc-service:hover .wc-service__number,
	.wc-services--numbered > .wc-service:hover .wc-service__link,
	.wp-block-button > a.wp-block-button__link:not(.has-background):is(:hover, :focus-visible),
	body .entry-hero__cta a.button:is(:hover, :focus-visible),
	.blog-card:hover .blog-card__image {
		transform: none;
	}
}
