/* Hallmark · genre: atmospheric · macrostructure: Stat-Led (home) / Split Studio (marketing) / Long Document (content) · design-system: design.md · designed-as-app
 * theme: custom "dark luxury sports" · paper oklch(11% 0.022 268) · accent oklch(68% 0.185 48) orange · Anton + Montserrat
 * H4 hero knobs: number=display, qualifier=stacked-below, secondary=none · enrichment: Tier-A CSS padel-court plan
 * nav: N10 floating-on-scroll morph · footer: Ft5 statement (width=38ch, wordmark=under, rule=none)
 * pre-emit critique: P5 H4 E4 S5 R4 V5
 */

/* ==========================================================================
   Padelyx — brand stylesheet
   theme.json is the single source of truth for colour, type and spacing.
   Everything below references those presets through short aliases, so a
   palette change in the Site Editor flows through the whole theme.
   ========================================================================== */

:root {
	color-scheme: dark;

	/* ---- Colour aliases (→ theme.json presets) ---- */
	--paper: var(--wp--preset--color--canvas);
	--paper-1: var(--wp--preset--color--ink-850);
	--paper-2: var(--wp--preset--color--surface);
	--paper-3: var(--wp--preset--color--surface-input);
	--paper-4: var(--wp--preset--color--surface-hover);
	--ink: var(--wp--preset--color--white);
	--ink-2: var(--wp--preset--color--text-secondary);
	--ink-3: var(--wp--preset--color--text-muted);
	--ink-4: var(--wp--preset--color--text-faint);
	--accent: var(--wp--preset--color--accent);
	--accent-hover: var(--wp--preset--color--accent-hover);
	--accent-press: var(--wp--preset--color--accent-press);
	--accent-soft: var(--wp--preset--color--accent-soft);
	--on-accent: var(--wp--preset--color--on-accent);
	--bloom-blue: var(--wp--preset--color--blue-glow);
	--line-soft: var(--wp--custom--line--soft);
	--line-mid: var(--wp--custom--line--mid);
	--line-strong: var(--wp--custom--line--strong);
	--line-accent: var(--wp--custom--line--accent);
	--focus: var(--wp--preset--color--accent-hover);

	/* ---- Derived tints (only place colour maths happens) ---- */
	--accent-wash: color-mix(in oklch, var(--accent) 12%, transparent);
	--accent-glow: color-mix(in oklch, var(--accent) 45%, transparent);
	--header-bar: color-mix(in oklch, var(--paper) 0%, transparent);
	--header-pill: color-mix(in oklch, var(--paper-2) 82%, transparent);
	--scrim: color-mix(in oklch, var(--paper) 88%, transparent);
	--court-net: color-mix(in oklch, var(--accent) 75%, transparent);
	--glass: color-mix(in oklch, var(--paper-2) 55%, transparent);
	--spot: color-mix(in oklch, var(--accent) 26%, transparent);
	--spot-rim: color-mix(in oklch, var(--accent-hover) 90%, transparent);

	/* ---- Type ---- */
	--font-display: var(--wp--preset--font-family--display);
	--font-body: var(--wp--preset--font-family--sans);
	--text-xs: var(--wp--preset--font-size--x-small);
	--text-sm: var(--wp--preset--font-size--small);
	--text-md: var(--wp--preset--font-size--medium);
	--text-lg: var(--wp--preset--font-size--large);
	--text-xl: var(--wp--preset--font-size--x-large);
	--text-2xl: var(--wp--preset--font-size--xx-large);
	--text-display: var(--wp--preset--font-size--display-xl);
	--text-mega: var(--wp--preset--font-size--display-mega);
	--tracking-label: 0.18em;

	/* ---- Space (4-pt, named) ---- */
	--space-3xs: var(--wp--preset--spacing--10);
	--space-2xs: var(--wp--preset--spacing--20);
	--space-xs: var(--wp--preset--spacing--30);
	--space-sm: var(--wp--preset--spacing--40);
	--space-md: var(--wp--preset--spacing--50);
	--space-lg: var(--wp--preset--spacing--60);
	--space-xl: var(--wp--preset--spacing--70);
	--space-2xl: var(--wp--preset--spacing--80);
	--space-3xl: var(--wp--preset--spacing--90);
	--space-4xl: var(--wp--preset--spacing--100);
	--gutter: var(--wp--custom--page-gutter);
	--header-h: 4.5rem;

	/* ---- Shape ---- */
	--radius-sm: var(--wp--custom--radius--sm);
	--radius-md: var(--wp--custom--radius--md);
	--radius-lg: var(--wp--custom--radius--lg);
	--radius-xl: var(--wp--custom--radius--xl);
	--radius-pill: var(--wp--custom--radius--pill);
	--shadow-card: var(--wp--preset--shadow--card);
	--shadow-raised: var(--wp--preset--shadow--raised);
	--shadow-pop: var(--wp--preset--shadow--pop);
	--shadow-glow: var(--wp--preset--shadow--glow-accent);

	/* ---- Motion ---- */
	--ease-out: var(--wp--custom--ease--out);
	--ease-in-out: var(--wp--custom--ease--in-out);
	--dur-fast: var(--wp--custom--duration--fast);
	--dur-med: var(--wp--custom--duration--med);
	--dur-slow: var(--wp--custom--duration--slow);

	/* ---- Legacy aliases (kept so saved content using old names still works) ---- */
	--text-primary: var(--ink);
	--text-secondary: var(--ink-2);
	--text-muted: var(--ink-3);
	--text-faint: var(--ink-4);
	--text-accent: var(--accent);
	--text-on-accent: var(--on-accent);
	--surface-card: var(--paper-2);
	--border-soft: var(--line-soft);
	--border-default: var(--line-mid);
	--border-strong: var(--line-strong);
	--page-gutter: var(--gutter);
}

/* Let `details` and other auto-sized boxes transition to/from `auto`. */
@supports (interpolate-size: allow-keywords) {
	:root { interpolate-size: allow-keywords; }
}

/* ==========================================================================
   Base
   ========================================================================== */
html,
body { overflow-x: clip; }

@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

body {
	background-color: var(--paper);
	color: var(--ink);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	accent-color: var(--accent);
}

/* The atmosphere: two fixed blooms on their own layer. A fixed pseudo-element
   (not background-attachment: fixed) so it stays smooth on iOS and never
   repaints on scroll. */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(55% 45% at 92% 8%, color-mix(in oklch, var(--accent) 15%, transparent), transparent 70%),
		radial-gradient(90% 65% at 40% -18%, color-mix(in oklch, var(--bloom-blue) 38%, transparent), transparent 72%),
		var(--paper);
}

::selection { background: var(--accent); color: var(--on-accent); }

:where(h1, h2, h3, h4, .wp-block-post-title) { text-wrap: balance; }
:where(p, li, dd, figcaption) { text-wrap: pretty; }

:where(.wp-site-blocks) :focus-visible {
	outline: 2px solid var(--focus);
	outline-offset: 3px;
	border-radius: 4px;
}

/* Display headings never break the layout on narrow screens. */
:where(h1, h2, .wp-block-post-title) {
	overflow-wrap: anywhere;
	min-width: 0;
}

/* Clear the fixed header on every template's first block. */
main.wp-block-group > :first-child:not(.pdx-hero) {
	padding-top: max(var(--space-3xl), calc(var(--header-h) + var(--space-2xl))) !important;
}

/* ==========================================================================
   Motion — one entrance, one reveal, one page transition
   ========================================================================== */
@keyframes pdx-rise {
	from { opacity: 0; transform: translate3d(0, 0.35em, 0); }
	to { opacity: 1; transform: none; }
}
@keyframes pdx-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

/* Section reveal on scroll — CSS scroll-driven, no JavaScript. Browsers
   without support simply show the content. Opacity only. */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.pdx-reveal {
			animation: pdx-fade linear both;
			animation-timeline: view();
			animation-range: entry 0% cover 22%;
		}
	}
}

/* Cross-document View Transitions: pages cross-fade, the header stays put. */
@view-transition { navigation: auto; }
.pdx-header { view-transition-name: pdx-header; }
::view-transition-old(root),
::view-transition-new(root) {
	animation-duration: var(--dur-med);
	animation-timing-function: var(--ease-out);
}
@media (prefers-reduced-motion: reduce) {
	@view-transition { navigation: none; }
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* ==========================================================================
   Buttons — pill CTA voice (primary fill · secondary outline)
   ========================================================================== */
.wp-block-button__link,
.wp-element-button {
	white-space: nowrap;
	transition:
		background-color var(--dur-fast) var(--ease-out),
		color var(--dur-fast) var(--ease-out),
		border-color var(--dur-fast) var(--ease-out),
		box-shadow var(--dur-med) var(--ease-out),
		transform var(--dur-med) var(--ease-out);
}
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-glow);
}
.wp-block-button__link:active,
.wp-element-button:active {
	transform: translateY(0) scale(0.98);
	transition-duration: var(--dur-fast);
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--ink);
	border: 1px solid var(--line-strong);
	padding: calc(1.15em - 1px) calc(1.9em - 1px);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--line-soft);
	border-color: color-mix(in oklch, var(--ink) 45%, transparent);
	color: var(--ink);
}

.wp-block-button__link[aria-disabled="true"],
.wp-block-button__link:disabled {
	opacity: 0.45;
	pointer-events: none;
}

/* Typographic link CTA — word + arrow + underline that thickens. */
.pdx-link a,
a.pdx-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	color: var(--ink);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: var(--line-accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.35em;
	transition: text-decoration-color var(--dur-fast) var(--ease-out), text-decoration-thickness var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.pdx-link a:hover,
a.pdx-link:hover {
	color: var(--accent-hover);
	text-decoration-color: currentColor;
	text-decoration-thickness: 2px;
}

/* ==========================================================================
   Small typographic helpers
   ========================================================================== */
.pdx-eyebrow,
.pdx-label {
	font-family: var(--font-body);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: var(--tracking-label);
	font-size: 0.75rem;
	line-height: 1.3;
	color: var(--ink-3);
	display: inline-block;
}
.pdx-eyebrow.has-text-align-center,
.pdx-eyebrow.has-text-align-right { display: block; }

.pdx-accent { color: var(--accent); }

.pdx-lede {
	font-size: var(--text-lg);
	line-height: 1.55;
	color: var(--ink-2);
	max-width: 46ch;
}

.pdx-note {
	font-size: var(--text-xs);
	color: var(--ink-3);
}

.pdx-divider {
	width: 7rem;
	height: 2px;
	border: 0;
	margin: var(--space-md) 0;
	background: var(--accent);
}
.pdx-divider.aligncenter,
.has-text-align-center + .pdx-divider { margin-inline: auto; }

/* Accent display heading (legacy class; no glow halo). */
.pdx-hero-title { color: var(--accent) !important; }

/* ==========================================================================
   Header — N10: transparent bar that morphs into a floating pill on scroll
   One DOM, one class (.is-floating), one curve. Height stays constant.
   ========================================================================== */
.pdx-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 100;
	padding: var(--space-xs) var(--gutter) !important;
	background: var(--header-bar);
	border: 0;
	pointer-events: none;
}
.pdx-header__inner {
	pointer-events: auto;
	max-width: var(--wp--style--global--wide-size) !important;
	min-height: 3.5rem;
	margin-inline: auto !important;
	padding: var(--space-2xs) var(--space-3xs) var(--space-2xs) var(--space-2xs);
	border-radius: var(--radius-pill);
	background-color: transparent;
	box-shadow: inset 0 0 0 1px transparent, 0 0 0 0 transparent;
	-webkit-backdrop-filter: blur(0);
	backdrop-filter: blur(0);
	transform: translateY(0);
	transition:
		max-width var(--dur-slow) var(--ease-out),
		padding var(--dur-slow) var(--ease-out),
		background-color var(--dur-slow) var(--ease-out),
		box-shadow var(--dur-slow) var(--ease-out),
		backdrop-filter var(--dur-slow) var(--ease-out),
		-webkit-backdrop-filter var(--dur-slow) var(--ease-out),
		transform var(--dur-slow) var(--ease-out);
}
.pdx-header.is-floating .pdx-header__inner {
	max-width: 62rem !important;
	padding-inline: var(--space-md) var(--space-2xs);
	background-color: var(--header-pill);
	box-shadow: inset 0 0 0 1px var(--line-mid), var(--shadow-pop);
	-webkit-backdrop-filter: saturate(1.4) blur(18px);
	backdrop-filter: saturate(1.4) blur(18px);
	transform: translateY(6px);
}

.pdx-header .wp-block-site-logo,
.pdx-header .wp-block-site-logo img { display: block; }
.pdx-header .wp-block-site-logo img {
	width: auto;
	height: auto;
	max-height: 2.25rem;
	transition: max-height var(--dur-slow) var(--ease-out);
}
.pdx-header.is-floating .wp-block-site-logo img { max-height: 1.9rem; }

.pdx-header .wp-block-navigation-item__content {
	padding: 0.5em 0.15em;
	transition: color var(--dur-fast) var(--ease-out);
}
.pdx-header .wp-block-navigation-item__content:hover,
.pdx-header .current-menu-item > .wp-block-navigation-item__content { color: var(--ink); }

.pdx-header__cta .wp-block-button__link {
	padding: 0.95em 1.4em;
	font-size: 0.75rem;
}
.pdx-cta-short { display: none; }

/* Mobile overlay menu. transform / backdrop-filter on an ancestor trap a
   position:fixed overlay, so both are dropped while the menu is open. */
.pdx-header:has(.wp-block-navigation__responsive-container.is-menu-open) .pdx-header__inner {
	transform: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}
.pdx-header .wp-block-navigation__responsive-container.is-menu-open {
	position: fixed;
	inset: 0;
	padding: var(--space-xl) var(--gutter) var(--space-2xl);
	background: var(--paper) !important;
	animation: pdx-fade var(--dur-med) var(--ease-out);
}
.pdx-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: flex-start;
	margin-top: var(--space-2xl);
}
.pdx-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	align-items: flex-start;
	gap: var(--space-xs);
}
.pdx-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-family: var(--font-display);
	font-size: clamp(2.25rem, 11vw, 3.5rem);
	letter-spacing: 0;
	line-height: 1.05;
	color: var(--ink);
}
.pdx-header .wp-block-navigation__responsive-container-open svg { display: none; }
.pdx-header .wp-block-navigation__responsive-container-open {
	position: relative;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: var(--radius-pill);
	color: var(--ink);
}
.pdx-header .wp-block-navigation__responsive-container-open::before {
	content: "";
	position: absolute;
	inset: 50% 0.8rem auto;
	height: 2px;
	background: currentColor;
	transform: translateY(-50%);
	box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}
.pdx-header .wp-block-navigation__responsive-container-close {
	position: fixed;
	top: calc(var(--space-xs) + var(--space-2xs));
	right: var(--gutter);
	width: 2.75rem;
	height: 2.75rem;
	display: grid;
	place-items: center;
	margin: 0;
	padding: 0;
	color: var(--ink);
}

/* Nav links never wrap to two lines. Six links + CTA need ~1100px, so below
   that the menu collapses into the overlay (core only does this < 600px). */
.pdx-header .wp-block-navigation-item__content { white-space: nowrap; }
@media (max-width: 1100px) {
	.pdx-header__actions > .wp-block-navigation { order: 2; }
	.pdx-header__cta { order: 1; }
}
@media (min-width: 600px) and (max-width: 1100px) {
	.pdx-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.pdx-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}

@media (max-width: 768px) {
	.pdx-cta-full { display: none; }
	.pdx-cta-short { display: inline; }
	.pdx-header__cta .wp-block-button__link { padding: 0.95em 1.15em; }
	.pdx-header .wp-block-site-logo img { max-width: 34vw; max-height: 2rem; }
	.pdx-header.is-floating .pdx-header__inner { padding-inline: var(--space-sm) var(--space-2xs); }
}

@media (max-width: 400px) {
	.pdx-header .pdx-header__actions { gap: var(--space-2xs); }
	.pdx-header .wp-block-site-logo img { max-width: 28vw; }
	.pdx-header__cta .wp-block-button__link { padding-inline: 0.9em; }
}

/* ==========================================================================
   Hero — H4 Stat-Led: the giant "7" on a CSS-drawn padel court
   ========================================================================== */
.pdx-hero {
	position: relative;
	isolation: isolate;
	overflow: clip;
	padding-top: calc(var(--header-h) + var(--space-3xl)) !important;
	padding-bottom: clamp(6rem, 13vw, 11rem) !important;
}

/* A padel court (10 × 20 m) seen from the baseline, laid into perspective
   like the floor of the hall. Net in brand orange across the middle; service
   lines 6.95 m either side of it; centre line between them. */
.pdx-hero::before {
	content: "";
	position: absolute;
	z-index: -1;
	left: 50%;
	bottom: 0;
	width: min(56rem, 118vw);
	aspect-ratio: 1 / 2;
	/* Horizontal lines are drawn thick: the tilt foreshortens them ~4×. */
	border: 2px solid var(--line-mid);
	border-top-width: 8px;
	border-bottom: 0;
	background:
		linear-gradient(90deg, transparent calc(50% - 1px), var(--line-mid) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)) center / 100% 69.5% no-repeat,
		linear-gradient(180deg, transparent calc(15.25% - 4px), var(--line-mid) calc(15.25% - 4px) calc(15.25% + 4px), transparent calc(15.25% + 4px) calc(84.75% - 4px), var(--line-mid) calc(84.75% - 4px) calc(84.75% + 4px), transparent calc(84.75% + 4px)),
		linear-gradient(180deg, transparent calc(50% - 7px), var(--court-net) calc(50% - 7px) calc(50% + 7px), transparent calc(50% + 7px));
	transform: translateX(-50%) perspective(50rem) rotateX(68deg);
	transform-origin: 50% 100%;
	-webkit-mask-image: linear-gradient(to top, #000 35%, transparent 92%);
	mask-image: linear-gradient(to top, #000 35%, transparent 92%);
	pointer-events: none;
}

.pdx-hero__grid {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: end;
	column-gap: clamp(1.5rem, 5vw, 5rem);
	row-gap: var(--space-lg);
}
.pdx-hero__grid > *,
.pdx-hero__stat > *,
.pdx-hero__copy > * { margin-block: 0; }

.pdx-hero__stat {
	display: grid;
	justify-items: start;
}
.pdx-hero__figure {
	font-family: var(--font-display);
	font-size: var(--text-mega);
	line-height: 0.74;
	letter-spacing: -0.02em;
	color: var(--accent);
	font-variant-numeric: tabular-nums;
	margin-bottom: 0.06em !important;
}
.pdx-hero__unit {
	font-family: var(--font-display);
	font-size: var(--text-2xl);
	text-transform: uppercase;
	line-height: 1;
	color: var(--ink);
	padding-top: var(--space-xs);
}
.pdx-hero__unit span { color: var(--ink-3); }

.pdx-hero__copy {
	display: grid;
	gap: var(--space-md);
	padding-bottom: var(--space-xs);
}
.pdx-hero__copy .wp-block-heading {
	font-size: var(--wp--preset--font-size--display-xxl);
	line-height: 0.88;
}
.pdx-hero__copy .wp-block-buttons { margin-top: var(--space-xs) !important; }

@media (prefers-reduced-motion: no-preference) {
	.pdx-hero__figure { animation: pdx-rise 900ms var(--ease-out) both; }
	.pdx-hero__unit { animation: pdx-fade 700ms var(--ease-out) 200ms both; }
	.pdx-hero__copy > * { animation: pdx-rise 800ms var(--ease-out) both; }
	.pdx-hero__copy > :nth-child(2) { animation-delay: 90ms; }
	.pdx-hero__copy > :nth-child(3) { animation-delay: 180ms; }
}

@media (max-width: 860px) {
	.pdx-hero__grid { grid-template-columns: minmax(0, 1fr); }
	.pdx-hero__stat {
		grid-template-columns: auto auto;
		justify-content: start;
		align-items: end;
		column-gap: var(--space-md);
	}
	.pdx-hero__unit { padding-bottom: 0.9em; }
}

/* ==========================================================================
   Spec sheet — F3: the facts, one per row
   ========================================================================== */
.pdx-specs { margin: 0; }
.pdx-specs table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0 2px;
	font-variant-numeric: tabular-nums;
}
.wp-block-table.pdx-specs th,
.wp-block-table.pdx-specs td {
	border: 0;
	padding: var(--space-md) var(--space-lg);
	text-align: left;
	vertical-align: baseline;
	background: var(--paper-2);
}
.pdx-specs tr > :first-child { border-radius: var(--radius-md) 0 0 var(--radius-md); }
.pdx-specs tr > :last-child { border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.pdx-specs th {
	width: 22%;
	font-family: var(--font-body);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: var(--tracking-label);
	font-size: 0.75rem;
	color: var(--ink-3);
}
.pdx-specs td:nth-child(2) {
	font-family: var(--font-display);
	font-size: var(--text-2xl);
	text-transform: uppercase;
	line-height: 1;
	color: var(--ink);
	white-space: nowrap;
}
.pdx-specs td:last-child { color: var(--ink-2); font-size: var(--text-sm); }
.pdx-specs tr { transition: transform var(--dur-med) var(--ease-out); }
.pdx-specs tr:hover > * { background: var(--paper-3); }
.pdx-specs tr:hover td:nth-child(2) { color: var(--accent); }

@media (max-width: 720px) {
	.pdx-specs :where(table, tbody, tr, th, td) { display: block; }
	.pdx-specs tr {
		display: grid;
		gap: var(--space-2xs);
		padding: var(--space-md);
		margin-bottom: 2px;
		background: var(--paper-2);
		border-radius: var(--radius-md);
	}
	.wp-block-table.pdx-specs th,
	.wp-block-table.pdx-specs td { padding: 0; background: none !important; width: auto; border-radius: 0 !important; }
}

/* ==========================================================================
   Split Studio — text on one side, proof on the other
   ========================================================================== */
.pdx-photo-slot {
	position: relative;
	aspect-ratio: 4 / 5;
	display: grid;
	place-items: end start;
	padding: var(--space-lg) !important;
	border-radius: var(--radius-xl) !important;
	background:
		radial-gradient(80% 60% at 70% 20%, var(--accent-wash), transparent 70%),
		var(--paper-2) !important;
	box-shadow: var(--shadow-card);
	overflow: hidden;
}
.pdx-photo-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pdx-photo-slot p { position: relative; margin: 0; }

/* Real photos (wp:image) in split columns and wide bands. */
.pdx-photo { margin: 0; }
.pdx-photo img {
	display: block;
	width: 100%;
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow-raised);
}

/* ==========================================================================
   Sfeer — asymmetric photo mosaic
   ========================================================================== */
.pdx-gallery {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
	grid-template-rows: repeat(2, clamp(11rem, 21vw, 19rem));
	gap: var(--space-xs);
}
.pdx-gallery > * {
	position: relative;
	margin: 0 !important;
	overflow: hidden;
	border-radius: var(--radius-lg);
	background: var(--paper-2);
}
.pdx-gallery__a { grid-row: 1 / 3; }
.pdx-gallery__b { grid-column: 2 / 4; }
.pdx-gallery img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--dur-slow) var(--ease-out);
}
.pdx-gallery > *:hover img { transform: scale(1.03); }
@media (max-width: 720px) {
	.pdx-gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: none;
	}
	.pdx-gallery__a { grid-row: auto; grid-column: 1 / 3; aspect-ratio: 4 / 3; }
	.pdx-gallery__b { grid-column: 1 / 3; aspect-ratio: 16 / 9; }
	.pdx-gallery__c,
	.pdx-gallery__d { aspect-ratio: 1; }
}

/* ==========================================================================
   Closing CTA (home)
   ========================================================================== */
.pdx-closer__title { max-width: 14ch; line-height: 0.9; }

/* ==========================================================================
   Reserveren — split with the Playtomic panel
   ========================================================================== */
.pdx-reserve {
	/* Soft-edged band: fades in and out so it never cuts the blooms off hard. */
	background:
		radial-gradient(60% 80% at 100% 50%, var(--accent-wash), transparent 70%),
		linear-gradient(180deg, transparent, var(--paper-1) 18%, var(--paper-1) 82%, transparent) !important;
}
.pdx-steps {
	list-style: none;
	margin: var(--space-md) 0 0 !important;
	padding: 0 !important;
	display: grid;
	gap: var(--space-xs);
	counter-reset: step;
}
.pdx-steps li {
	counter-increment: step;
	display: grid;
	grid-template-columns: 2.25rem 1fr;
	align-items: baseline;
	color: var(--ink-2);
}
.pdx-steps li::before {
	content: counter(step);
	font-family: var(--font-display);
	font-size: var(--text-xl);
	color: var(--accent);
}

.pdx-playtomic {
	min-height: 22rem;
	display: grid;
	place-items: center;
	text-align: center;
	border-radius: var(--radius-xl);
	background: var(--paper-2);
	box-shadow: inset 0 0 0 1px var(--line-mid), var(--shadow-raised);
	color: var(--ink-3);
	padding: var(--space-xl);
}

/* ==========================================================================
   Reviews — swipeable row on mobile, three-up on desktop
   ========================================================================== */
.pdx-reviews__track {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--space-md);
}
.pdx-reviews__track > * { margin: 0 !important; }
.pdx-review,
.pdx-reviews .pdx-card {
	display: flex;
	flex-direction: column;
	gap: var(--space-md);
	height: 100%;
}
@media (max-width: 860px) {
	.pdx-reviews__track {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: minmax(16rem, 82%);
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: var(--gutter);
		margin-inline: calc(var(--gutter) * -1) !important;
		padding: 0 var(--gutter) var(--space-xs);
		scrollbar-width: none;
	}
	.pdx-reviews__track::-webkit-scrollbar { display: none; }
	.pdx-reviews__track > * { scroll-snap-align: start; }
}

.pdx-stars { color: var(--accent); letter-spacing: 0.2em; font-size: 1rem; line-height: 1; margin: 0; }
.pdx-review-quote {
	font-family: var(--font-body);
	font-size: var(--text-lg);
	font-weight: 500;
	line-height: 1.5;
	color: var(--ink);
	margin: 0;
	flex: 1;
}
.pdx-review-author {
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: var(--tracking-label);
	font-size: 0.75rem;
	color: var(--ink-3);
	margin: 0;
}

/* ==========================================================================
   Cards — elevation via lightness, not glow
   ========================================================================== */
.pdx-card {
	display: block;
	background: var(--paper-2);
	border: 0;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-card);
	padding: var(--space-lg);
	color: var(--ink);
}
.pdx-card--glass { background: var(--paper-2); }
.pdx-card--interactive {
	text-decoration: none;
	transition: transform var(--dur-med) var(--ease-out), background-color var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.pdx-card--interactive:hover,
.pdx-card--interactive:focus-within {
	transform: translateY(-4px);
	background: var(--paper-3);
	box-shadow: var(--shadow-raised);
}

.pdx-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: var(--tracking-label);
	font-size: 0.6875rem;
	line-height: 1;
	padding: 0.75em 1.3em;
	border-radius: var(--radius-pill);
	color: var(--ink-2);
	background: var(--paper-3);
}
.pdx-badge--accent { color: var(--accent-soft); background: var(--accent-wash); }

.pdx-icon-tile {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	border-radius: var(--radius-md);
	background: var(--paper-3);
	color: var(--accent);
}
.pdx-icon-tile svg { width: 1.4rem; height: 1.4rem; }

/* ==========================================================================
   Section head — heading left, typographic link right
   ========================================================================== */
.pdx-section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	justify-content: space-between;
	gap: var(--space-sm) var(--space-lg);
	margin-bottom: var(--space-xl) !important;
}
.pdx-section-head > * { margin: 0 !important; }

/* ==========================================================================
   Blog — lead story + post cards
   ========================================================================== */
.pdx-lead { padding: var(--space-md); overflow: hidden; }
.pdx-lead .wp-block-post-featured-image { margin: 0; }
.pdx-lead .wp-block-post-featured-image img { border-radius: 0; }
.pdx-lead .wp-block-post-title { margin-top: var(--space-2xs); line-height: 1; }
/* No featured image? Drop the empty media column and let the story span. */
.pdx-lead .wp-block-column:not(:has(*)) { display: none; }
.pdx-lead .wp-block-column:not(:has(*)) + .wp-block-column { flex-basis: 100% !important; padding: var(--space-md); }
@media (max-width: 781px) {
	.pdx-lead .wp-block-post-featured-image img { max-height: 20rem; }
}

.pdx-post-card {
	position: relative;
	padding: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
}
.pdx-post-card .wp-block-post-featured-image { margin: 0; overflow: hidden; }
.pdx-post-card .wp-block-post-featured-image img {
	width: 100%;
	border-radius: 0;
	transition: transform var(--dur-slow) var(--ease-out);
}
.pdx-post-card:hover .wp-block-post-featured-image img { transform: scale(1.04); }
.pdx-post-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: var(--space-xs);
	padding: var(--space-md);
}
.pdx-post-card__body > * { margin: 0 !important; }
.pdx-post-card__body .wp-block-post-excerpt { margin-top: auto !important; }
.pdx-post-card .wp-block-post-title a { color: var(--ink); }

/* Glass cards with a light behind them that follows the pointer.
   assets/js/interactions.js writes --mx / --my; without JS the light sits
   centred. Square corners on purpose. */
.pdx-post-card,
.pdx-lead {
	--mx: 50%;
	--my: 50%;
	isolation: isolate;
	border-radius: 0 !important;
	background: var(--glass) !important;
	-webkit-backdrop-filter: saturate(1.3) blur(18px);
	backdrop-filter: saturate(1.3) blur(18px);
	box-shadow: inset 0 0 0 1px var(--line-soft), var(--shadow-card);
}
.pdx-post-card.pdx-card--interactive:hover,
.pdx-post-card.pdx-card--interactive:focus-within,
.pdx-lead.pdx-card--interactive:hover,
.pdx-lead.pdx-card--interactive:focus-within {
	transform: none;
	background: var(--glass) !important;
	box-shadow: inset 0 0 0 1px var(--line-mid), var(--shadow-raised);
}
/* The light: sits on the glass, beneath the content. */
.pdx-post-card::before,
.pdx-lead::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background: radial-gradient(26rem circle at var(--mx) var(--my), var(--spot), transparent 65%);
	opacity: 0;
	transition: opacity var(--dur-med) var(--ease-out);
}
/* The rim: a 1px edge that catches the same light. */
.pdx-post-card::after,
.pdx-lead::after {
	content: "";
	position: absolute;
	inset: 0;
	padding: 1px;
	pointer-events: none;
	background: radial-gradient(16rem circle at var(--mx) var(--my), var(--spot-rim), transparent 70%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	mask-composite: exclude;
	opacity: 0;
	transition: opacity var(--dur-med) var(--ease-out);
}
.pdx-post-card:hover::before,
.pdx-post-card:hover::after,
.pdx-post-card:focus-within::before,
.pdx-post-card:focus-within::after,
.pdx-lead:hover::before,
.pdx-lead:hover::after,
.pdx-lead:focus-within::before,
.pdx-lead:focus-within::after { opacity: 1; }

.wp-block-post-excerpt__more-link { font-weight: 600; }

.pdx-blog-sectionhead {
	display: flex;
	align-items: center;
	gap: var(--space-md);
	margin-bottom: var(--space-lg);
}
.pdx-blog-sectionhead::after { content: ""; flex: 1; height: 2px; background: var(--paper-3); }

/* Query pagination — pill numbers. */
.wp-block-query-pagination { gap: var(--space-2xs); font-weight: 600; font-size: var(--text-sm); }
.wp-block-query-pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 2.75rem;
	height: 2.75rem;
	padding-inline: 0.6em;
	border-radius: var(--radius-pill);
	color: var(--ink-2);
}
.wp-block-query-pagination .page-numbers.current { background: var(--accent); color: var(--on-accent); }

/* ==========================================================================
   Page head + long-read content
   ========================================================================== */
.pdx-page-head .wp-block-post-title,
.pdx-page-head .wp-block-query-title,
.pdx-page-head h1 { margin-top: 0; }
.pdx-page-head .pdx-lede { margin-top: var(--space-md); }

.wp-block-post-title a { color: inherit; transition: color var(--dur-fast) var(--ease-out); }
.wp-block-post-title a:hover { color: var(--accent-hover); }

.pdx-prose > .wp-block-post-content,
.wp-block-post-content.pdx-prose { font-size: var(--text-md); line-height: 1.75; color: var(--ink-2); }
.wp-block-post-content :where(h2) { font-size: var(--text-2xl); margin-top: var(--space-xl); }
.wp-block-post-content :where(h3) { font-size: var(--text-xl); margin-top: var(--space-lg); }
.wp-block-post-content :where(strong) { color: var(--ink); }
.wp-block-post-content :where(a:not(.wp-element-button)) {
	text-decoration: underline;
	text-decoration-color: var(--line-accent);
	text-underline-offset: 0.2em;
}
.wp-block-post-content :where(a:not(.wp-element-button)):hover { text-decoration-color: currentColor; }
.wp-block-quote {
	border-left: 2px solid var(--accent);
	padding-left: var(--space-md);
	margin-inline: 0;
}
.wp-block-pullquote { padding-block: var(--space-xl); color: var(--ink); }
.wp-block-separator { border: 0; height: 1px; background: var(--line-mid); }

.wp-block-post-featured-image img { border-radius: var(--radius-lg); }

.wp-block-post-navigation-link a { color: var(--ink); font-weight: 600; }
.wp-block-post-navigation-link a:hover { color: var(--accent-hover); }

/* ==========================================================================
   Stat strip — T4 (Over ons)
   ========================================================================== */
.pdx-statstrip {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2px !important;
}
.pdx-statstrip > .wp-block-column {
	display: grid;
	gap: var(--space-2xs);
	padding: var(--space-lg);
	background: var(--paper-2);
}
.pdx-statstrip > .wp-block-column:first-child { border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.pdx-statstrip > .wp-block-column:last-child { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.pdx-statstrip > .wp-block-column > * { margin: 0 !important; }
.pdx-stat__figure {
	font-family: var(--font-display);
	font-size: var(--wp--preset--font-size--display-lg);
	line-height: 0.9;
	text-transform: uppercase;
	color: var(--accent);
	font-variant-numeric: tabular-nums;
}
@media (max-width: 781px) {
	.pdx-statstrip { grid-template-columns: minmax(0, 1fr); }
	.pdx-statstrip > .wp-block-column { border-radius: 0 !important; }
	.pdx-statstrip > .wp-block-column:first-child { border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important; }
	.pdx-statstrip > .wp-block-column:last-child { border-radius: 0 0 var(--radius-lg) var(--radius-lg) !important; }
}

/* ==========================================================================
   Contact info
   ========================================================================== */
.pdx-info > * + * { margin-top: var(--space-md) !important; }
.pdx-info .pdx-label { margin-bottom: var(--space-3xs); }
.pdx-info a { color: var(--ink); font-weight: 600; }
.pdx-info a:hover { color: var(--accent-hover); }

/* ==========================================================================
   Partners — logo wall on elevated cells
   ========================================================================== */
.pdx-partners__grid {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 2px !important;
	border-radius: var(--radius-lg);
	overflow: hidden;
}
.pdx-partners__grid > * {
	margin: 0 !important;
	display: grid;
	place-items: center;
	min-height: 8rem;
	padding: var(--space-lg);
	background: var(--paper-2);
	transition: background-color var(--dur-med) var(--ease-out);
}
.pdx-partners__grid > *:hover { background: var(--paper-3); }
.pdx-partners img {
	max-height: 3rem;
	width: auto !important;
	opacity: 0.55;
	filter: grayscale(1);
	transition: opacity var(--dur-med) var(--ease-out), filter var(--dur-med) var(--ease-out);
}
.pdx-partners :hover > img,
.pdx-partners img:hover { opacity: 1; filter: none; }
@media (max-width: 720px) {
	.pdx-partners__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==========================================================================
   FAQ — conversational, smooth open on supporting browsers
   ========================================================================== */
.pdx-faq details {
	box-sizing: border-box;
	border: 0;
	border-radius: var(--radius-lg);
	background: var(--paper-2);
	padding: 0 var(--space-lg);
	margin-block: 0 2px;
	transition: background-color var(--dur-med) var(--ease-out);
}
/* The FAQ page already says "Veelgestelde vragen" in its title. */
.page-template-page-faq .pdx-faq > .wp-block-heading:first-child { display: none; }
.pdx-faq details:hover,
.pdx-faq details[open] { background: var(--paper-3); }
.pdx-faq summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-sm);
	padding: var(--space-md) 0;
	font-size: var(--text-lg);
	font-weight: 600;
	line-height: 1.35;
	color: var(--ink);
}
.pdx-faq summary::-webkit-details-marker { display: none; }
.pdx-faq summary::after {
	content: "+";
	flex: none;
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: var(--radius-pill);
	background: var(--paper-4);
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 1.5rem;
	line-height: 1;
	color: var(--accent);
	transition: transform var(--dur-med) var(--ease-out), background-color var(--dur-med) var(--ease-out), color var(--dur-med) var(--ease-out);
}
.pdx-faq details[open] summary::after { transform: rotate(45deg); background: var(--accent); color: var(--on-accent); }
.pdx-faq details > *:not(summary) {
	margin: 0 0 var(--space-md);
	max-width: 60ch;
	color: var(--ink-2);
	line-height: 1.7;
}
.pdx-faq details::details-content {
	block-size: 0;
	overflow: clip;
	transition: block-size var(--dur-slow) var(--ease-out), content-visibility var(--dur-slow) allow-discrete;
}
.pdx-faq details[open]::details-content { block-size: auto; }

/* ==========================================================================
   Footer — columns + newsletter, closing on a duotone "engraved" court scene
   ========================================================================== */
.pdx-footer { color: var(--ink-3); }
.pdx-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 0.9fr) minmax(0, 1.3fr);
	gap: var(--space-xl) var(--space-2xl);
}
.pdx-footer__grid > *,
.pdx-footer__brand > *,
.pdx-footer__col > * { margin: 0 !important; }
.pdx-footer__brand {
	display: grid;
	gap: var(--space-md);
	align-content: start;
	justify-items: start;
}
.pdx-footer__tagline { font-size: var(--text-md); line-height: 1.6; color: var(--ink-2); max-width: 34ch; }
.pdx-footer__contact {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--space-xs);
	font-size: var(--text-sm);
}
.pdx-footer__contact li { display: flex; align-items: center; gap: var(--space-xs); color: var(--ink-2); }
.pdx-footer__contact svg,
.pdx-newsletter svg {
	flex: none;
	width: 1.15rem;
	height: 1.15rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.pdx-footer__contact svg { color: var(--accent); }
.pdx-footer__contact a { color: var(--ink-2); }
.pdx-footer__contact a:hover { color: var(--ink); }

.pdx-footer__col { display: grid; gap: var(--space-md); align-content: start; }
.pdx-footer__title {
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: var(--tracking-label);
	font-size: 0.75rem;
	color: var(--ink);
}
.pdx-footer__title::after {
	content: "";
	display: block;
	width: 1.75rem;
	height: 2px;
	margin-top: var(--space-xs);
	background: var(--accent);
}
.pdx-footer .wp-block-navigation {
	font-size: var(--text-sm);
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0;
}
.pdx-footer .wp-block-navigation a { color: var(--ink-2); transition: color var(--dur-fast) var(--ease-out); }
.pdx-footer .wp-block-navigation a:hover { color: var(--ink); }
.pdx-footer .wp-block-navigation .wp-block-navigation-item__content { white-space: nowrap; padding: 0; }
.pdx-footer .wp-block-social-links .wp-social-link { color: var(--ink-2); }
.pdx-footer .wp-block-social-links .wp-social-link:hover { color: var(--ink); }
.pdx-footer .wp-block-social-links a { transition: transform var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.pdx-footer .wp-block-social-links a:hover { transform: translateY(-2px); }
.pdx-footer__small { font-size: var(--text-xs); color: var(--ink-3); line-height: 1.6; }

/* Newsletter — pill field with the arrow button inside. */
.pdx-newsletter {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 4px;
	border-radius: var(--radius-pill);
	background: var(--glass);
	box-shadow: inset 0 0 0 1px var(--line-mid);
	transition: box-shadow var(--dur-fast) var(--ease-out);
}
.pdx-newsletter:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }
.pdx-newsletter:focus-within { box-shadow: inset 0 0 0 1px var(--accent); }
.wp-site-blocks .pdx-newsletter input {
	flex: 1;
	min-width: 0;
	padding: 0.7em 1em;
	border: 0;
	background: transparent;
	color: var(--ink);
	outline: none;
}
.pdx-newsletter button {
	flex: none;
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border: 0;
	border-radius: var(--radius-pill);
	background: var(--accent);
	color: var(--on-accent);
	cursor: pointer;
	transition: background-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.pdx-newsletter button:hover { background: var(--accent-hover); }
.pdx-newsletter button:active { background: var(--accent-press); transform: scale(0.95); }
.pdx-newsletter button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.pdx-newsletter__msg { margin: var(--space-xs) 0 0; font-size: var(--text-xs); color: var(--accent-soft); }

.pdx-footer__bottom {
	margin-top: var(--space-2xl) !important;
	padding-block: var(--space-md);
	box-shadow: inset 0 1px 0 var(--line-soft);
}
.pdx-footer__bottom > * { margin: 0 !important; }
.pdx-footer__legal { font-size: var(--text-xs) !important; }
.pdx-footer__legal .wp-block-navigation-item + .wp-block-navigation-item::before {
	content: "·";
	margin-inline: 0.75em;
	color: var(--ink-4);
}

/* The scene: a hand-drawn, engraving-style landscape (assets/images/
   footer-scene.svg). Its sky is transparent, so the canvas becomes the sky.
   Cropped from the bottom-centre on narrow screens (court + player stay). */
.wp-block-image.pdx-footer__scene {
	margin-block: var(--space-xl) 0 !important;
	height: clamp(13rem, 35vw, 34rem);
	overflow: hidden;
}
.wp-block-image.pdx-footer__scene img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 100%;
}

@media (max-width: 960px) {
	.pdx-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-md); }
	.pdx-footer__brand,
	.pdx-footer__news { grid-column: 1 / -1; }
}
@media (max-width: 360px) {
	.pdx-footer__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
	.pdx-footer__legal { justify-content: flex-start !important; }
}

/* ==========================================================================
   Social link chip
   ========================================================================== */
.pdx-social {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.85em;
	padding: 0.9em 1.1em;
	text-decoration: none;
	background: var(--paper-2);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-card);
	transition: transform var(--dur-med) var(--ease-out), background-color var(--dur-med) var(--ease-out);
}
.pdx-social:hover { transform: translateY(-3px); background: var(--paper-3); }
.pdx-social__tile { flex: none; width: 2.75rem; height: 2.75rem; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-md); background: var(--paper-3); color: var(--ink); }
.pdx-social__tile img, .pdx-social__tile svg { width: 1.375rem; height: 1.375rem; }
.pdx-social__text { display: flex; flex-direction: column; gap: 2px; line-height: 1; }
.pdx-social__net { text-transform: uppercase; font-weight: 600; letter-spacing: var(--tracking-label); font-size: 0.625rem; color: var(--ink-3); }
.pdx-social__handle { font-weight: 600; font-size: var(--text-md); color: var(--ink); }
.pdx-social__arrow { margin-left: auto; color: var(--ink-3); transition: color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.pdx-social:hover .pdx-social__arrow { color: var(--accent); transform: translate(2px, -2px); }

/* ==========================================================================
   Cookie banner — an overlay, so a frosted surface earns its place
   ========================================================================== */
.pdx-cookie {
	position: fixed;
	z-index: 9999;
	left: var(--gutter);
	right: var(--gutter);
	bottom: clamp(1rem, 4vw, 2rem);
	max-width: 40rem;
	margin: 0 auto;
	background: var(--scrim);
	-webkit-backdrop-filter: saturate(1.3) blur(18px);
	backdrop-filter: saturate(1.3) blur(18px);
	border-radius: var(--radius-xl);
	box-shadow: inset 0 0 0 1px var(--line-mid), var(--shadow-pop);
	padding: var(--space-md) var(--space-lg);
	transform: translateY(140%);
	opacity: 0;
	transition: transform var(--dur-slow) var(--ease-out), opacity var(--dur-slow) var(--ease-out);
}
.pdx-cookie[data-visible="true"] { transform: translateY(0); opacity: 1; }
.pdx-cookie[hidden] { display: none; }
.pdx-cookie__title { font-family: var(--font-display); text-transform: uppercase; font-size: var(--text-xl); margin: 0 0 var(--space-2xs); }
.pdx-cookie__text { font-size: var(--text-sm); color: var(--ink-2); margin: 0 0 var(--space-sm); }
.pdx-cookie__text a { color: var(--accent); }
.pdx-cookie__actions { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.pdx-cookie__settings { display: none; margin: var(--space-sm) 0 0; padding-top: var(--space-sm); box-shadow: inset 0 1px 0 var(--line-soft); }
.pdx-cookie__settings[data-open="true"] { display: block; }
.pdx-cookie__row { display: flex; align-items: flex-start; gap: var(--space-xs); margin: 0 0 var(--space-xs); }
.pdx-cookie__row label { font-weight: 600; color: var(--ink); font-size: var(--text-sm); }
.pdx-cookie__row p { margin: 2px 0 0; font-size: var(--text-xs); color: var(--ink-3); }

/* Shared button for the banner (mirrors the block button voice). */
.pdx-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6em;
	min-height: 2.75rem;
	padding: 0 1.4em;
	font-family: var(--font-body);
	font-weight: 650;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 0.75rem;
	line-height: 1;
	border-radius: var(--radius-pill);
	border: 1px solid transparent;
	cursor: pointer;
	white-space: nowrap;
	text-decoration: none;
	transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.pdx-btn:active { transform: scale(0.97); }
.pdx-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.pdx-btn--sm { min-height: 2.5rem; padding: 0 1.1em; }
.pdx-btn--primary { background: var(--accent); color: var(--on-accent); }
.pdx-btn--primary:hover { background: var(--accent-hover); }
.pdx-btn--primary:active { background: var(--accent-press); }
.pdx-btn--secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.pdx-btn--secondary:hover { background: var(--line-soft); }
.pdx-btn--ghost { background: transparent; color: var(--ink-2); }
.pdx-btn--ghost:hover { color: var(--ink); }

/* ==========================================================================
   Form controls (comments, search, plugin forms)
   ========================================================================== */
:where(.wp-site-blocks) :where(input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="search"], input[type="password"], input[type="number"], textarea, select) {
	background: var(--paper-2);
	color: var(--ink);
	border: 1px solid var(--line-mid);
	border-radius: var(--radius-md);
	padding: 0.85em 1em;
	font: inherit;
	transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
:where(.wp-site-blocks) :where(input, textarea, select):hover { border-color: var(--line-strong); }
:where(.wp-site-blocks) :where(input, textarea, select):focus-visible {
	border-color: var(--accent);
	background: var(--paper-3);
	outline-offset: 0;
}
:where(.wp-site-blocks) :where(input, textarea)::placeholder { color: var(--ink-4); }
:where(.wp-site-blocks) :where(input, textarea, select):disabled { opacity: 0.5; cursor: not-allowed; }
:where(.wp-site-blocks) [aria-invalid="true"] { border-color: var(--accent-press); }

/* ==========================================================================
   Touch targets
   ========================================================================== */
@media (max-width: 768px) {
	.wp-block-button__link,
	.pdx-btn { min-height: 44px; }
	.wp-block-buttons { gap: var(--space-xs); }
}
