/*
 * PhoenixSS sections (inc/sections/*.php). Loaded everywhere, front end and
 * editor. Each block below is scoped to its section's class; colours, type
 * and spacing come from theme.json tokens.
 */

/* ------------------------------------------------------------------ Tiles
 * The rounded square behind an icon or step number (features, tools,
 * downloads). Used with the core Icon block or a paragraph.
 */

.pss-tile {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	box-sizing: border-box;
	width: 44px;
	height: 44px;
	margin: 0;
	border: 1px solid var(--wp--custom--line--ink);
	border-radius: var(--wp--custom--radius--lg);
	background: var(--wp--custom--tile--dark);
	color: var(--wp--preset--color--brand-ember);
	font-size: var(--wp--preset--font-size--h-5);
	line-height: 1;
}
.pss-tile svg { width: 24px; height: 24px; }
.pss-tile--light {
	border-color: transparent;
	border-radius: var(--wp--custom--radius--md);
	background: var(--wp--custom--tile--light);
}

/* ------------------------------------------------------------------- Hero */

/* The intro under the title: the lead size, as on the Home hero. */
.pss-hero .pss-hero__text { max-width: 780px; font-size: var(--wp--preset--font-size--lead); line-height: 1.5; }
.pss-hero .wp-block-button__link { padding: 20px 26px; border-radius: var(--wp--custom--radius--lg); }
.pss-hero .wp-block-breadcrumbs {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
}
.pss-hero .wp-block-breadcrumbs ol { justify-content: center; }
.pss-hero .wp-block-breadcrumbs a { color: inherit; }

/* --------------------------------------------------- Split (light, dark)
 * Copy beside a portrait (Figma: Home Intro and Principles, Why Phoenix, Temp
 * Intro and Sectors, Candidate Tools, Roles, Proof & Stats). The portraits are
 * the design's photos on white, blended into the glow ("multiply"). They fill
 * the section's height, bleed to its outer edge and stand on its bottom edge:
 * the photo is positioned over its column, stretched into the section's top
 * and bottom padding. Light sections show the whole photo, anchored bottom
 * right (its white left side may run under the copy, as in the design); dark
 * ones fill the left column with the person centred.
 */

.pss-split,
.pss-proof,
.pss-split-dark { position: relative; overflow: hidden; }
.pss-split .pss-split__image,
.pss-proof .pss-split__image,
.pss-split-dark .pss-split-dark__image { margin: 0; }
.pss-split .pss-split__image img,
.pss-proof .pss-split__image img,
.pss-split-dark .pss-split-dark__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pss-split .pss-split__image img,
.pss-proof .pss-split__image img { object-fit: contain; object-position: 100% 100%; }
/* The section sizes these photos, not the image block's own settings: a
   width, height or aspect ratio set in the editor (or its resize box) can't
   shrink them. To change a photo, use Replace. */
:is(.pss-split, .pss-proof, .pss-split-dark) :is(.pss-split__image, .pss-split-dark__image) :is(img, .components-resizable-box__container) {
	width: 100% !important;
	max-width: none !important;
	height: 100% !important;
	aspect-ratio: auto !important;
}
.pss-split-dark .pss-split-dark__image img { object-position: 50% 100%; }
.pss-split .wp-block-column:not(.pss-split__media),
.pss-proof .wp-block-column:not(.pss-split__media),
.pss-split-dark .pss-split-dark__text { position: relative; z-index: 1; }
/* Proof: the copy wraps as designed ("Proof, not / promises."). */
.pss-proof .wp-block-column:first-child > * { max-width: 400px; }
/* Sectors (chips): the intro wraps at about 400px, as designed. */
.pss-split-dark .pss-split-dark__text:has(.is-style-chips) > p { max-width: 400px; }

@media (min-width: 782px) {
	.pss-split .wp-block-column.pss-split__media,
	.pss-proof .wp-block-column.pss-split__media,
	.pss-split-dark .wp-block-column.pss-split-dark__media { position: relative; align-self: stretch; }
	.pss-split .pss-split__image,
	.pss-proof .pss-split__image,
	.pss-split-dark .pss-split-dark__image {
		position: absolute;
		top: calc(-1 * var(--wp--preset--spacing--section));
		bottom: calc(-1 * var(--wp--preset--spacing--section));
		left: 0;
		right: 0;
	}
	/* Light: room for the whole photo, reaching back under the copy. */
	.pss-split .pss-split__image,
	.pss-proof .pss-split__image { left: -50%; }
}

/* Home intro (Figma: Home → Intro): the portrait starts lower (102px down at
   1440), fills the rest of the section and runs 145px past the right edge.
   It is placed against the section itself rather than its column. Narrower
   than 1240px that puts the man behind the copy (it did from 1024 to about
   1200px until 20 Nov 2026), so there it's placed like the other light
   split sections. */
@media (min-width: 1240px) {
	/* The copy column keeps its width (488px of text at 1440) plus the indent. */
	.pss-split--intro .pss-split__text { flex-shrink: 0; }
	.pss-split--intro .wp-block-column.pss-split__media { position: static; }
	/* The design's size: 88.5% of its section height. The section has 40px
	   more padding than the design (20px top and bottom), so that's 88.5% of
	   (height − 40px), which keeps the photo from growing towards the copy.
	   It stands on the bottom edge, whole (Figma hides its last 27px under
	   the Stats section; the client wants the hands and tablet in full). */
	.pss-split--intro .pss-split__image {
		top: calc(11.5% + 35.4px);
		bottom: 0;
		left: auto;
		right: -10%;
		aspect-ratio: 1400 / 781;
	}
}
@media (min-width: 1440px) {
	/* Raised (client, 20 Nov 2026) so there's less space above the hard hat,
	   which also makes the photo a little larger. Only from 1440px: narrower,
	   the larger photo would reach the copy. */
	.pss-split--intro .pss-split__image { top: calc(4.5% + 35.4px); }
}
@media (min-width: 1441px) {
	/* …and keeps the same distance from the content column on wider screens. */
	.pss-split--intro .pss-split__image { right: calc((100% - var(--wp--style--global--content-size)) / 2 - 245px); }
}

/* Service pages' intros (Labour Hire, Permanent, Executive Search): the
   portrait fills the section's height, so the sections share one minimum
   height, Labour Hire's own at desktop, and the portraits draw the same size
   however long the copy is (client, Oct 2026). The columns stretch to fill it,
   since the photo is sized from their row. Phones size the photos already. */
@media (min-width: 782px) {
	.pss-split--service {
		display: flex;
		flex-direction: column;
		box-sizing: border-box;
		min-height: 653px;
	}
	.pss-split--service > .wp-block-columns { flex: 1; }
}

/* Wider than the 1440px design: keep its composition. The copy lines up with
   the page's 1240px content column and the columns stop at the design's width
   (1440 − 100), so headings and text wrap as designed. */
@media (min-width: 1441px) {
	/* Sections are full-bleed inside the page's padded content area, so 100%
	   is that area's width: add the root padding back. */
	.wp-block-group:is(.pss-split, .pss-proof) { padding-left: calc((100% - var(--wp--style--global--content-size)) / 2 + var(--wp--style--root--padding-left)) !important; }
	.wp-block-group.pss-split-dark { padding-right: calc((100% - var(--wp--style--global--content-size)) / 2 + var(--wp--style--root--padding-right)) !important; }
	:is(.pss-split, .pss-proof, .pss-split-dark) > .wp-block-columns { max-width: 1340px; }
	.pss-split-dark > .wp-block-columns { margin-left: auto; }
}

@media (max-width: 781.98px) {
	/* Phones: the portrait follows the copy, full width, with the person
	   standing on the section's bottom edge (client, Nov 2026, as on Home).
	   Each photo is framed from where its person stands, so they show whole
	   rather than cropped to the phone's width: --pss-phone-ratio (the frame's
	   width ÷ height) and --pss-phone-x come from inc/images.php. The photo's
	   white background blends into the section. */
	.wp-block-group:is(.pss-split, .pss-proof, .pss-split-dark) { padding-bottom: 0 !important; }
	.pss-split-dark .wp-block-column.pss-split-dark__media { order: 2; }
	:is(.pss-split, .pss-proof) .pss-split__image,
	.pss-split-dark .pss-split-dark__image {
		height: min(calc(100vw / var(--pss-phone-ratio, 1.111)), 520px);
		margin: var(--wp--preset--spacing--lg) 0 0 calc(-1 * var(--wp--preset--spacing--gutter));
	}
	/* The sections' glows are placed for desktop, where they sit behind the
	   portrait. On a phone they'd land behind the copy and drag the orange
	   text below 4.5:1 (WCAG 1.4.3), so there the copy sits on plain black or
	   cream and the glow moves behind the portrait. */
	.wp-block-group.pss-split-dark.has-background { background: var(--wp--preset--color--surface-ink) !important; }
	.wp-block-group.has-intro-glow-gradient-background { background-image: radial-gradient(95% 42% at 75% 100%, #F9C6A2 0%, rgba(247, 243, 239, 0) 72%) !important; }
	/* Dark sections have the gutter on both sides, and the portrait brings its
	   own glow (otherwise the blended photo all but disappears into the
	   black). */
	.pss-split-dark .pss-split-dark__image {
		margin-right: calc(-1 * var(--wp--preset--spacing--gutter));
		background: radial-gradient(75% 80% at 50% 62%, rgba(234, 97, 36, 0.62) 0%, rgba(234, 97, 36, 0) 72%);
	}
	:is(.pss-split, .pss-proof) .pss-split__image img,
	.pss-split-dark .pss-split-dark__image img { object-fit: cover; object-position: var(--pss-phone-x, 50%) 100%; }
	.pss-split .wp-block-column:first-child,
	.pss-proof .wp-block-column:not(:last-child) { padding-right: var(--wp--preset--spacing--gutter); }
	.wp-block-group.pss-split-dark { padding-left: var(--wp--preset--spacing--gutter) !important; }
}
/* Chips sit 32px under the intro (Figma: Temp Recruitment → Sectors). */
.pss-split-dark .wp-block-list.is-style-chips { margin-top: var(--wp--preset--spacing--xl); }

/* Candidate tools: link cards in a 2 × 2 grid (whole card is the link). */
.pss-tools.wp-block-group { gap: var(--wp--preset--spacing--ml); }
.pss-tool {
	position: relative;
	gap: var(--wp--preset--spacing--md);
	padding: 18px 24px;
	border-radius: var(--wp--custom--radius--md);
	background: var(--wp--preset--color--surface-paper-2);
	transition: translate 0.25s var(--pss-ease), box-shadow 0.25s var(--pss-ease);
}
.pss-tool .pss-tile { border: 0; background: var(--wp--custom--tile--light); }
.pss-tool__title { flex: 1; margin: 0; font-size: var(--wp--preset--font-size--h-4); line-height: 1.25; }
.pss-tool__title a { color: inherit; text-decoration: none; }
.pss-tool__title a::after { content: ""; position: absolute; inset: 0; } /* stretched link */
.pss-tool__more { margin: 0; color: var(--wp--custom--accent--on-white); font-size: var(--wp--preset--font-size--label); font-weight: 600; white-space: nowrap; }
.pss-tool:is(:hover, :focus-within) .pss-tool__more .pss-arrow { translate: 4px 0; }

/* One card a row until the copy column is wide enough for two (titles would
   otherwise break mid-word). */
@media (max-width: 1279.98px) {
	.pss-tools.wp-block-group { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------- Features */

.pss-features .pss-features__intro { max-width: 760px; }
.pss-features--center .pss-features__intro { margin-inline: auto; }
/* Left-aligned intros start under their heading. The page layout centres a
   narrower box, so line it up with the content column instead (0 when the
   column is the full width). Also Offices below. */
.pss-features:not(.pss-features--center) .pss-features__intro,
.pss-offices .pss-offices__intro { margin-left: max(0px, calc((100% - var(--wp--style--global--content-size)) / 2)) !important; }
.pss-features--center .pss-features__items .wp-block-column { align-items: center; }
.pss-features--center .pss-tile { margin-inline: auto; }
/* Light rows (tone "paper") use the light icon tiles, as the Candidate tools do. */
.pss-features--paper .pss-tile { border: 0; background: var(--wp--custom--tile--light); }
.pss-features .pss-features__cta { margin-top: var(--wp--preset--spacing--2-xl); }
/* Mission, Vision & Values: 34px from icon to title (other steps: 16px). */
.pss-features--center .pss-features__items .pss-tile + .wp-block-heading { margin-top: 34px; }
/* Icons in feature rows: a solid tile in the buttons' orange with a white
   icon, a size up from the other tiles (client, Nov 2026: the pale tiles were
   too quiet). They fade in with their item, no extra pop. */
.pss-features .pss-features__items .wp-block-icon.pss-tile {
	width: 64px;
	height: 64px;
	border: 0;
	border-radius: var(--wp--custom--radius--lg);
	background: var(--wp--preset--color--brand-ember-deep);
	color: #fff;
}
.pss-features .pss-features__items .wp-block-icon.pss-tile svg { width: 34px; height: 34px; fill: currentColor; }
@media (forced-colors: active) {
	.pss-features .pss-features__items .wp-block-icon.pss-tile { border: 1px solid CanvasText; }
}

/* Icon rows (left-aligned): the heading, and intro if any, on the left and
   the points in a 2 × 2 grid on the right in larger text, so they don't read
   as a second four-column row beside the numbered steps (client, Nov 2026).
   Tablets: heading above, points 2 × 2. Phones: one under another. The side
   tracks keep the content to the page's content width on wide screens. */
@media (min-width: 782px) {
	.pss-features:not(.pss-features--center) > .pss-features__items:has(> .wp-block-column > .wp-block-icon.pss-tile) {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: var(--wp--preset--spacing--2-xl);
	}
	.pss-features:not(.pss-features--center) > .pss-features__items > .wp-block-column:has(> .wp-block-icon.pss-tile) > p {
		font-size: var(--wp--preset--font-size--body) !important;
		line-height: 1.6 !important;
		max-width: 46ch;
	}
}
@media (min-width: 1024px) {
	.pss-features:not(.pss-features--center):has(> .pss-features__items > .wp-block-column > .wp-block-icon.pss-tile) {
		display: grid;
		grid-template-columns:
			max(0px, calc((100% - var(--wp--style--global--content-size)) / 2))
			minmax(0, 2fr)
			minmax(0, 3fr)
			max(0px, calc((100% - var(--wp--style--global--content-size)) / 2));
		grid-template-rows: auto 1fr;
		align-items: start;
	}
	.pss-features:not(.pss-features--center):has(> .pss-features__items > .wp-block-column > .wp-block-icon.pss-tile) > * {
		grid-column: 2;
		max-width: none;
		margin-inline: 0 !important;
	}
	.pss-features:not(.pss-features--center):has(> .pss-features__items > .wp-block-column > .wp-block-icon.pss-tile) > :first-child { grid-row: 1; margin-top: 0 !important; }
	.pss-features:not(.pss-features--center):has(> .pss-features__items > .wp-block-column > .wp-block-icon.pss-tile) > .pss-features__intro { grid-row: 2; max-width: 36ch; }
	.pss-features:not(.pss-features--center) > .pss-features__items:has(> .wp-block-column > .wp-block-icon.pss-tile) {
		grid-column: 3;
		grid-row: 1 / span 2;
		margin-top: 0 !important;
		padding: 0 0 0 var(--wp--preset--spacing--3-xl);
	}
}

/* Steps: rows whose items start with a number (the process sections) read as
   a timeline rather than icon tiles (Nov 2026). A big outlined numeral, a line
   running across the row with a dot at each step, then the title and text.
   As the row scrolls into view the line draws left to right and each step's
   numeral and dot turn ember as it passes. Without motion it's simply drawn.
   Phones: one step under another, each with its own line. */
.pss-features__items:has(> .wp-block-column > p.pss-tile) {
	--pss-step-size: clamp(56px, 5.4vw, 84px);
	--pss-step-line: var(--wp--custom--line--ink);
	--pss-step-dim: rgba(255, 255, 255, 0.28);
	--pss-step-gap: var(--wp--preset--spacing--block);
	--pss-step-run: 0.45s;
}
.pss-features--paper .pss-features__items:has(> .wp-block-column > p.pss-tile) {
	--pss-step-line: var(--wp--custom--line--paper);
	--pss-step-dim: rgba(20, 12, 28, 0.25);
}
.pss-features__items > .wp-block-column:has(> p.pss-tile) { position: relative; }
.pss-features__items > .wp-block-column:nth-child(2) { --pss-step-i: 1; }
.pss-features__items > .wp-block-column:nth-child(3) { --pss-step-i: 2; }
.pss-features__items > .wp-block-column:nth-child(4) { --pss-step-i: 3; }
.pss-features__items > .wp-block-column:nth-child(5) { --pss-step-i: 4; }
.pss-features__items > .wp-block-column:nth-child(n + 6) { --pss-step-i: 5; }
.pss-features__items > .wp-block-column > p.pss-tile {
	position: relative;
	display: block;
	width: auto;
	height: auto;
	padding: 0 0 28px;
	border: 0;
	border-radius: 0;
	background: none;
	color: transparent;
	-webkit-text-stroke: 1.5px var(--wp--preset--color--brand-ember);
	font-family: var(--wp--preset--font-family--display) !important;
	font-size: var(--pss-step-size);
	line-height: 0.9;
	letter-spacing: 0.01em;
}
/* "01": the leading zero is decoration, so screen readers still hear "1". */
.pss-features__items > .wp-block-column > p.pss-tile::before {
	content: "0";
	content: "0" / "";
}
/* The line, carried across the gap to the next step. */
.pss-features__items > .wp-block-column > p.pss-tile::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: calc(100% + var(--pss-step-gap));
	height: 1px;
	background: linear-gradient(var(--wp--preset--color--brand-ember), var(--wp--preset--color--brand-ember)) 0 0 / 100% 100% no-repeat, var(--pss-step-line);
}
.pss-features__items > .wp-block-column:last-child > p.pss-tile::after { width: 100%; }
/* The dot where each step starts, centred on the line. */
.pss-features__items > .wp-block-column:has(> p.pss-tile)::before {
	content: "";
	position: absolute;
	z-index: 1;
	top: calc(var(--pss-step-size) * 0.9 + 23px);
	left: 0;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--wp--preset--color--brand-ember);
}
.pss-features__items > .wp-block-column > p.pss-tile + .wp-block-heading { margin-top: var(--wp--preset--spacing--lg); }
@media (max-width: 781.98px) {
	.pss-features__items:has(> .wp-block-column > p.pss-tile) { --pss-step-size: 52px; --pss-step-gap: 0px; --pss-step-run: 0.6s; }
}
@media (prefers-reduced-motion: no-preference) {
	.pss-motion .pss-features__items > .wp-block-column { --pss-step-at: calc(0.3s + var(--pss-step-i, 0) * var(--pss-step-run)); }
	.pss-motion .pss-features__items > .wp-block-column > p.pss-tile {
		-webkit-text-stroke-color: var(--pss-step-dim);
		transition: -webkit-text-stroke-color 0.5s ease var(--pss-step-at);
	}
	.pss-motion .pss-features__items > .wp-block-column > p.pss-tile::after {
		background-size: 0% 100%, auto;
		transition: background-size var(--pss-step-run) linear var(--pss-step-at);
	}
	.pss-motion .pss-features__items > .wp-block-column:has(> p.pss-tile)::before {
		background-color: var(--pss-step-dim);
		transition: background-color 0.3s ease var(--pss-step-at);
	}
	.pss-motion .pss-features__items.is-revealed > .wp-block-column > p.pss-tile { -webkit-text-stroke-color: var(--wp--preset--color--brand-ember); }
	.pss-motion .pss-features__items.is-revealed > .wp-block-column > p.pss-tile::after { background-size: 100% 100%, auto; }
	.pss-motion .pss-features__items.is-revealed > .wp-block-column:has(> p.pss-tile)::before { background-color: var(--wp--preset--color--brand-ember); }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 781.98px) {
	/* Stacked, each step draws with its own fade-in rather than in turn. */
	.pss-motion .pss-features__items > .wp-block-column { --pss-step-at: calc(0.3s + var(--pss-step-i, 0) * 0.1s); }
}

/* Items sit 24px in from the section edges, as the design's cards do. */
@media (min-width: 782px) {
	.pss-features__items.wp-block-columns { padding-inline: var(--wp--preset--spacing--lg); }
}

@media (max-width: 781.98px) {
	.pss-features__items.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
		flex-basis: calc(50% - var(--wp--preset--spacing--block) / 2) !important;
		flex-grow: 0;
	}
}
@media (max-width: 479.98px) {
	.pss-features__items.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column { flex-basis: 100% !important; }
}

/* ------------------------------------------------------------- Industries */

.pss-industries > .wp-block-buttons { margin-top: var(--wp--preset--spacing--block); }

/* ------------------------------------------------------------------ Proof */

.pss-proof__figures p { margin: 0; }

/* ------------------------------------------------------------------ Cards */

.pss-cards .pss-cards__intro { max-width: 740px; }
.pss-card .pss-card__image { margin-bottom: 0; }
.pss-card .pss-card__image img { border-radius: var(--wp--custom--radius--sm); }
/* The photo's frame: it drifts inside it as the page scrolls (main.js). */
.pss-card .pss-card__image { overflow: clip; border-radius: var(--wp--custom--radius--sm); }
.pss-card .wp-block-buttons { margin-top: auto; padding-top: var(--wp--preset--spacing--ml); }
.pss-card.wp-block-column { display: flex; flex-direction: column; }

/* -------------------------------------------------------------- Downloads */

.pss-downloads__grid.wp-block-group { gap: var(--wp--preset--spacing--md); }
.pss-download {
	position: relative;
	gap: var(--wp--preset--spacing--lg);
	padding: 28px 24px;
	border: 1px solid var(--wp--custom--line--paper);
	border-radius: var(--wp--custom--radius--md);
	background: var(--wp--preset--color--surface-paper-2);
	transition: translate 0.25s var(--pss-ease), box-shadow 0.25s var(--pss-ease);
}
.pss-download > .wp-block-group { flex: 1; }
.pss-download p { margin: 0; }
.pss-download__title { margin: 0; }
.pss-download__title a { color: inherit; text-decoration: none; }
.pss-download__title a::after { content: ""; position: absolute; inset: 0; } /* stretched link */
.pss-download .pss-tile svg { width: 26px; height: 26px; }

@media (max-width: 1023.98px) {
	.pss-downloads__grid.wp-block-group { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599.98px) {
	.pss-downloads__grid.wp-block-group { grid-template-columns: 1fr; }
}

/* Link cards (candidate tools, downloads): lift a little with a soft shadow
   on hover or keyboard focus; no movement for reduced motion. (`translate`,
   not `transform`, so it doesn't fight the scroll-reveal animation.) */
.pss-tool:is(:hover, :focus-within),
.pss-download:is(:hover, :focus-within) {
	translate: 0 -4px;
	box-shadow: var(--wp--custom--shadow--hover);
}
@media (prefers-reduced-motion: reduce) {
	.pss-tool:is(:hover, :focus-within),
	.pss-download:is(:hover, :focus-within) { translate: none; }
}

/* ------------------------------------------------------------------ Logos */

/* Even rows: seven logos a row on desktop, four on tablets, two on phones;
   a short last row is centred. Each logo's size comes from its shape
   (inc/blocks.php), so they all look about the same size. */
.pss-logos__grid.wp-block-group { --pss-logos-row: 7; gap: 50px 24px; }
.pss-logos__grid > .wp-block-image {
	display: flex;
	flex: 0 0 calc((100% - (var(--pss-logos-row) - 1) * 24px) / var(--pss-logos-row));
	justify-content: center;
	margin: 0;
}
.pss-logos__grid img { width: auto !important; max-width: min(160px, 100%); }
@media (max-width: 1023.98px) {
	.pss-logos__grid.wp-block-group { --pss-logos-row: 4; }
}
@media (max-width: 599.98px) {
	.pss-logos__grid.wp-block-group { --pss-logos-row: 2; row-gap: 36px; }
}

/* ------------------------------------------------------------------- Team */

.pss-team__grid.wp-block-group { gap: 60px; }
.pss-person > * { margin-block: 0; }
.pss-person .pss-person__photo { margin: 0 0 var(--wp--preset--spacing--xs); width: 100%; }
.pss-person .pss-person__photo img { width: 100%; border-radius: var(--wp--custom--radius--sm); }

@media (max-width: 1023.98px) {
	.pss-team__grid.wp-block-group { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
}
@media (max-width: 781.98px) {
	.pss-team__grid.wp-block-group { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
}

/* -------------------------------------------------------------- Statement */

.pss-statement .wp-block-column > p:first-child { margin-top: 0; }

/* ---------------------------------------------------------- Contact & forms */

.pss-contact__direct a { color: inherit; }
.pss-form-card {
	padding: 40px;
	border: 1px solid var(--wp--custom--line--paper);
	border-radius: var(--wp--custom--radius--md);
	background: var(--wp--custom--form--card);
}
/* Upload CV: white card, 20px in (Figma); Contact keeps 40px on the glow. */
.pss-cv .pss-form-card { padding: 20px; background: var(--wp--preset--color--surface-paper-2); }
@media (max-width: 599.98px) {
	.pss-form-card { padding: 20px; }
}

.pss-cv__panel { padding: 20px; }
.pss-cv__panel a { color: inherit; }
.pss-cv__panel > * + * { margin-top: 10px; }
.pss-cv__panel p:not(.pss-cv__panel-last) { padding-bottom: 20px; border-bottom: 1px solid var(--wp--custom--line--on-accent); }
.pss-cv__panel .pss-cv__panel-last { margin-top: 20px; }
.pss-cv__privacy { padding-block: 20px; border-block: 1px solid var(--wp--custom--line--paper); }
.pss-cv__privacy > * { margin-block: 0; }
.pss-cv__privacy > * + * { margin-top: 10px; }
.pss-cv__privacy > .wp-block-heading + p { margin-top: 5px; }
.pss-cv__privacy > .pss-cv__policy { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--wp--custom--line--paper); }
.pss-cv__policy a { font-size: var(--wp--preset--font-size--label); font-weight: 600; }

/* ---------------------------------------------------------------- Offices */

.pss-offices .pss-offices__intro { max-width: 600px; }
.pss-office > * { margin-block: 0; }
.pss-office .wp-block-image { margin: 0; }
.pss-office__line { position: relative; padding-left: 30px; }
.pss-office__line::before {
	content: "";
	position: absolute;
	left: 0;
	top: 3px;
	width: 16px;
	height: 16px;
	background: currentColor;
	-webkit-mask: var(--pss-icon) center / contain no-repeat;
	mask: var(--pss-icon) center / contain no-repeat;
}
.pss-office__address { --pss-icon: url(../icons/map-pin.svg); }
.pss-office__hours { --pss-icon: url(../icons/clock.svg); }
.pss-office__phone { --pss-icon: url(../icons/support.svg); }
:is(.pss-office__address, .pss-office__phone) a { color: inherit; text-decoration: underline; text-underline-offset: 3px; opacity: 0.85; }
/* An office without a photo yet. */
.pss-office__placeholder { width: 100%; aspect-ratio: 2 / 1; }

@media (max-width: 781.98px) {
	.pss-offices__grid.wp-block-group { grid-template-columns: 1fr; }
}

/* Two sides (inc/sections/two-sides.php): the heading column is the first
   column holding the big h-3-lg heading (matched by structure, not its width,
   so the editor's markup and a changed width both still match). Below wide
   desktops that column is too narrow for the big headings ("COMMITMENT." overflowed at
   tablet width), so the heading and intro take their own row above the two
   cards. */
@media (min-width: 782px) and (max-width: 1279px) {
	.wp-block-columns:has(> .wp-block-column:first-child > .wp-block-heading.has-h-3-lg-font-size) { flex-wrap: wrap !important; }
	.wp-block-columns > .wp-block-column:first-child:has(> .wp-block-heading.has-h-3-lg-font-size) { flex-basis: 100% !important; }
	.wp-block-columns > .wp-block-column:first-child:has(> .wp-block-heading.has-h-3-lg-font-size) > p { max-width: 640px; }
}
/* From 1280px the heading sits beside the cards again, scaled with the screen
   so its longest word still fits the column. */
@media (min-width: 1280px) {
	.wp-block-columns > .wp-block-column:first-child > .wp-block-heading.has-h-3-lg-font-size { font-size: min(var(--wp--preset--font-size--h-3-lg), 3.3vw) !important; }
}
