/* Copyright (c) 2026 Web Upp Limited. Licensed under the GPL-2.0-or-later; see LICENSE. */
/*
 * WebUpp Platform Theme: shared section primitives for the parent's section blocks and
 * any child's own sections: container, section rhythm, glows and the dot
 * grid, section heads, chips, buttons, text links.
 *
 * The parent supplies the sections; a child supplies values for the --wu-*
 * slots below (the list is CONTRACT.md "--wu-* slots"). The defaults are the
 * neutral default register: the palette slots read the active theme.json
 * palette (ground, surface, surface-2, line, line-strong, text, muted,
 * accent, success, gradient "brand"), which the parent's own theme.json
 * fills with grey and white, and every other default is written for a light
 * ground. A child on a dark ground sets the slots it needs (2.0.0: the dot
 * grid, ghost faces and primary button face and text used to default to a
 * dark ground; a child that relied on that now sets them, as WebUpp,
 * VirtualCRO and WebUpp Styles do).
 *
 * The class prefix stays "wu-" so the WebUpp page's markup did not change
 * when these moved; see docs/SPIKE-LOG.md, VirtualCRO build, task 0.
 *
 * A trap for children with a second scheme: a custom property that refers
 * to another is resolved on the element that declares it, so a scheme must
 * remap the preset colours on :root (where these are declared), not on
 * body.
 *
 * From 3.20.0 the button slots are also printed by the parent's bridge
 * (inc/defaults.php, handle upp-bridge) from the site's theme.json, where it
 * differs from the parent's: the primary's shape (--wu-button-pad-y, -pad-x,
 * -size, -weight, -case, -font, -border-width), its edge
 * (--wu-button-border, an image) and its hover (--wu-button-hover-text,
 * -hover-border, -hover-inset), and the secondary's (--wu-ghost-text-hover,
 * --wu-ghost-glow). Each reads, unset, the value drawn before 3.20.0.
 *
 * Optional child slots, read with a fallback where they are used, so a child
 * that never sets them renders as before: --wu-button-glow (primary hover
 * glow), --wu-button-radius (every button the parent draws, from 3.9.0,
 * default --wu-radius read where the button is), --wu-card-shadow (glass
 * tiles and sequence panels, none),
 * --wu-stack-back-filter (the hero stack's back frames), and the block slots
 * listed in CONTRACT.md.
 */

:root {
	--wu-ground: var(--wp--preset--color--ground);
	--wu-surface: var(--wp--preset--color--surface);
	--wu-surface-2: var(--wp--preset--color--surface-2);
	--wu-line: var(--wp--preset--color--line);
	--wu-line-strong: var(--wp--preset--color--line-strong);
	--wu-text: var(--wp--preset--color--text);
	--wu-muted: var(--wp--preset--color--muted);
	--wu-success: var(--wp--preset--color--success);
	--wu-gradient: var(--wp--preset--gradient--brand);
	/* Brand slots a child sets: text accent (chips, links, focus), the
	   tint of hover glows and shadows, three backdrop glows (named after
	   WebUpp's, used as first, second and third), the chip pill. */
	--wu-accent: var(--wp--preset--color--accent, var(--wu-text));
	--wu-glow-tint: var(--wu-text);
	--wu-glow-red: transparent;
	--wu-glow-purple: transparent;
	--wu-glow-blue: transparent;
	/* From 3.12.0 (R31): two more glow slots for a block's named glows
	   (webupp_glows()), transparent until the child colours them. */
	--wu-glow-accent: transparent;
	--wu-glow-custom: transparent;
	--wu-chip-bg: var(--wu-surface);
	--wu-chip-border: var(--wu-line-strong);
	--wu-dot: color-mix(in srgb, var(--wu-text) 8%, transparent);
	--wu-ghost-face: transparent;
	--wu-ghost-face-hover: var(--wu-surface);
	--wu-ghost-border-hover: var(--wu-text);
	/* Primary button: face, text, and the gradient that fades in on hover
	   (white text on it). */
	--wu-button-face: var(--wu-text);
	--wu-button-text: var(--wu-ground);
	--wu-button-hover-face: var(--wu-gradient);
	--wu-panel-top: color-mix(in srgb, var(--wu-surface-2) 72%, transparent);
	--wu-panel-bottom: color-mix(in srgb, var(--wu-surface) 72%, transparent);
	--wu-ease: var(--wp--custom--ease--out, cubic-bezier(0.33, 1, 0.68, 1));
	--wu-radius: var(--wp--custom--radius, 10px);
	--wu-card-radius: var(--wp--custom--card-radius, 16px);
	--wu-header-h: var(--wp--custom--header-height, 72px);
	--wu-gutter: 16px;
	--wu-section-y: 64px;
	--wu-mono: var(--wp--preset--font-family--mono);
	--wu-display: var(--wp--preset--font-family--heading);
	/* From 3.2.0, the slots the customer children lacked (R17 inventory,
	   "Slots the promotions need"): the body face, the page width (the
	   container's measure without the gutters), the section heading's weight
	   and tracking, the image radius, and the three section grounds a block
	   can stand on (base is --wu-ground; alt and inverse below, with the
	   inverse ground's text). Each default is the value the parent already
	   drew, so a child that sets none of them renders as before. */
	--wu-body: var(--wp--preset--font-family--body);
	--wu-wrap: var(--wp--style--global--wide-size, 1240px);
	--wu-heading-weight: 700;
	--wu-heading-tracking: -0.02em;
	--wu-image-radius: var(--wu-radius);
	--wu-ground-alt: var(--wu-surface);
	--wu-inverse-ground: var(--wu-text);
	--wu-inverse-text: var(--wu-ground);
}

@media (min-width: 768px) {
	:root {
		--wu-gutter: 32px;
		--wu-section-y: 80px;
	}
}

@media (min-width: 1025px) {
	:root {
		--wu-gutter: 40px;
		--wu-section-y: 120px;
	}
}

/* ---------- Container and section rhythm ---------- */

.wu-wrap {
	box-sizing: border-box;
	width: 100%;
	max-width: calc(var(--wu-wrap, var(--wp--style--global--wide-size, 1240px)) + 2 * var(--wu-gutter));
	margin-inline: auto;
	padding-inline: var(--wu-gutter);
}

.wu-section {
	position: relative;
	padding-block: var(--wu-section-y);
	color: var(--wu-text);
}

/* A hairline between sections, inside the container. */
.wu-section--rule::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	width: min(calc(100% - 2 * var(--wu-gutter)), var(--wp--style--global--wide-size, 1240px));
	height: 1px;
	transform: translateX(-50%);
	background: linear-gradient(90deg, transparent, var(--wu-line) 20%, var(--wu-line) 80%, transparent);
}

.upp-main > .wp-block-post-content,
.upp-main > .wp-block-post-content > * {
	margin-block: 0;
}

.upp-main > .wp-block-post-content {
	padding-inline: 0;
}

/* ---------- Glows and the dot grid ---------- */

/*
 * Glows are large radial gradients at 22% (theme.json custom.glow), so they
 * are soft without a filter: blur() on a viewport-sized layer costs a full
 * repaint per frame. They drift on transform only, 20 s, and stand still
 * under reduced motion.
 */
.wu-glows {
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
	z-index: 0;
}

.wu-glow {
	position: absolute;
	width: 900px;
	height: 900px;
	border-radius: 50%;
	will-change: transform;
}

.wu-glow--red {
	background: radial-gradient(closest-side, var(--wu-glow-red), transparent 100%);
	animation: wu-drift-a 20s ease-in-out infinite alternate;
}

.wu-glow--purple {
	background: radial-gradient(closest-side, var(--wu-glow-purple), transparent 100%);
	animation: wu-drift-b 20s ease-in-out infinite alternate;
}

.wu-glow--blue {
	background: radial-gradient(closest-side, var(--wu-glow-blue), transparent 100%);
	animation: wu-drift-c 20s ease-in-out infinite alternate;
}

/*
 * Named glows (3.12.0, R31): the `glows` list of webupp/hero and of the
 * glows extension on the other section blocks (webupp_glows()). Each is
 * `.wu-glow.wu-glow--<colour>.wu-glow--<anchor>.wu-glow--<size>`: the
 * colour a slot (the three above, accent and custom), the size its width
 * and height (--wu-glow-size: small 600px, medium 900px, large 1200px),
 * the anchor the point of the section's box its centre sits on, moved by
 * --wu-glow-x and --wu-glow-y (0 unless the child sets them). The section
 * that draws them carries wu-has-glows: it is the glows' box and its own
 * stacking context, so they sit under its content and over its ground.
 * Drift is the three keyframes in turn by the glow's place in the list,
 * on transform only; `--still` and reduced motion hold it.
 */
.wu-glow--accent {
	background: radial-gradient(closest-side, var(--wu-glow-accent), transparent 100%);
	animation: wu-drift-a 20s ease-in-out infinite alternate;
}

.wu-glow--custom {
	background: radial-gradient(closest-side, var(--wu-glow-custom), transparent 100%);
	animation: wu-drift-b 20s ease-in-out infinite alternate;
}

.wu-glow--small {
	--wu-glow-size: 600px;
}

.wu-glow--medium {
	--wu-glow-size: 900px;
}

.wu-glow--large {
	--wu-glow-size: 1200px;
}

.wu-glow:is(.wu-glow--small, .wu-glow--medium, .wu-glow--large) {
	top: calc(var(--wu-glow-ay, 50%) - var(--wu-glow-size) / 2 + var(--wu-glow-y, 0px));
	left: calc(var(--wu-glow-ax, 50%) - var(--wu-glow-size) / 2 + var(--wu-glow-x, 0px));
	width: var(--wu-glow-size);
	height: var(--wu-glow-size);
}

.wu-glow--top-left { --wu-glow-ax: 0%; --wu-glow-ay: 0%; }
.wu-glow--top { --wu-glow-ax: 50%; --wu-glow-ay: 0%; }
.wu-glow--top-right { --wu-glow-ax: 100%; --wu-glow-ay: 0%; }
.wu-glow--left { --wu-glow-ax: 0%; --wu-glow-ay: 50%; }
.wu-glow--centre { --wu-glow-ax: 50%; --wu-glow-ay: 50%; }
.wu-glow--right { --wu-glow-ax: 100%; --wu-glow-ay: 50%; }
.wu-glow--bottom-left { --wu-glow-ax: 0%; --wu-glow-ay: 100%; }
.wu-glow--bottom { --wu-glow-ax: 50%; --wu-glow-ay: 100%; }
.wu-glow--bottom-right { --wu-glow-ax: 100%; --wu-glow-ay: 100%; }

.wu-glow--still {
	animation: none;
}

@media (prefers-reduced-motion: no-preference) {
	.wu-glow:is(.wu-glow--small, .wu-glow--medium, .wu-glow--large):not(.wu-glow--still):nth-child(3n + 1) {
		animation-name: wu-drift-a;
	}

	.wu-glow:is(.wu-glow--small, .wu-glow--medium, .wu-glow--large):not(.wu-glow--still):nth-child(3n + 2) {
		animation-name: wu-drift-b;
	}

	.wu-glow:is(.wu-glow--small, .wu-glow--medium, .wu-glow--large):not(.wu-glow--still):nth-child(3n) {
		animation-name: wu-drift-c;
	}
}

:where(.wu-has-glows) {
	position: relative;
	isolation: isolate;
}

.wu-has-glows > .wu-glows {
	z-index: -1;
}

@keyframes wu-drift-a {
	0% { transform: translate3d(0, 0, 0) scale(1); }
	50% { transform: translate3d(80px, 40px, 0) scale(1.08); }
	100% { transform: translate3d(20px, 100px, 0) scale(0.96); }
}

@keyframes wu-drift-b {
	0% { transform: translate3d(0, 0, 0) scale(1); }
	50% { transform: translate3d(-90px, 50px, 0) scale(1.1); }
	100% { transform: translate3d(60px, -40px, 0) scale(1); }
}

@keyframes wu-drift-c {
	0% { transform: translate3d(0, 0, 0) scale(1.04); }
	50% { transform: translate3d(-60px, -70px, 0) scale(0.95); }
	100% { transform: translate3d(-120px, 30px, 0) scale(1.06); }
}

/* Dot grid (--wu-dot) that fades out towards the content it sits under. */
.wu-dots {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background-image: radial-gradient(var(--wu-dot) 1px, transparent 1.5px);
	background-size: 28px 28px;
	background-position: -14px -14px;
	-webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 80%);
	mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 80%);
}

/* ---------- Section head: chip, h2, standfirst ---------- */

/* From 4.6.0 (build 31 G6, FD6 2.2) the head's measure, its space below
   (one slot at both widths: a site gives two values by width in
   design.json), the space between its parts and the standfirst's measure
   and space above are slots: --wu-head-width, --wu-head-gap,
   --wu-head-inner-gap, --wu-standfirst-width, --wu-standfirst-gap. Each is
   read in the rule that set the value before, with that value as its
   fallback, so a site that sets none draws as before. The heads with a
   default of their own (stats, contact, section head) keep it. */
.wu-head {
	max-width: var(--wu-head-width, 760px);
	margin-bottom: var(--wu-head-gap, 48px);
}

@media (min-width: 1025px) {
	.wu-head {
		margin-bottom: var(--wu-head-gap, 64px);
	}
}

/* From 3.26.0, where WordPress's layout rules reach (a child of a flow or
   constrained layout, `:root :where(.is-layout-flow) > *` and the rest,
   0-1-0, which the editor prints after this sheet), the same margins at
   0-1-1, so they win by weight there, never by order (CONTRACT.md
   "Stylesheets on both sides" (a)). Elsewhere the rule above stands alone,
   at its old weight. */
body :where(.is-layout-flow, .is-layout-constrained) > .wu-head {
	margin-bottom: var(--wu-head-gap, 48px);
}

@media (min-width: 1025px) {
	body :where(.is-layout-flow, .is-layout-constrained) > .wu-head {
		margin-bottom: var(--wu-head-gap, 64px);
	}
}

/* From 3.17.0, the questions' head measure (--wu-faq-head-width, 760px as
   every head): read here for a site that loads this file, and in the
   block's own stylesheet at no weight for a site that draws .wu-head
   itself (CONTRACT.md, "Slots on the shared head parts"). From 4.6.0 it falls back
   to the shared --wu-head-width. */
:where(.wu-faq) .wu-head {
	max-width: var(--wu-faq-head-width, var(--wu-head-width, 760px));
}

/* From 3.18.0, the reviews head's gap (--wu-reviews-head-gap, the shared
   head's 48px and 64px from 1025px): read here at the shared head's weight
   for a site that loads this file, and in the block's own stylesheet at no
   weight for a site that draws .wu-head itself (CONTRACT.md, "Slots on the
   shared head parts"; 3.17.0 read it in the block alone). From 4.6.0 it
   falls back to the shared --wu-head-gap. */
:where(.wu-reviews) .wu-head {
	margin-bottom: var(--wu-reviews-head-gap, var(--wu-head-gap, 48px));
}

@media (min-width: 1025px) {
	:where(.wu-reviews) .wu-head {
		margin-bottom: var(--wu-reviews-head-gap, var(--wu-head-gap, 64px));
	}
}

body :where(.wu-reviews) :where(.is-layout-flow, .is-layout-constrained) > .wu-head {
	margin-bottom: var(--wu-reviews-head-gap, var(--wu-head-gap, 48px));
}

@media (min-width: 1025px) {
	body :where(.wu-reviews) :where(.is-layout-flow, .is-layout-constrained) > .wu-head {
		margin-bottom: var(--wu-reviews-head-gap, var(--wu-head-gap, 64px));
	}
}

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

.wu-head > * {
	margin-block: 0;
}

/* The standfirst's space above inside a head is read by the same rules,
   through --wu-head-inner-now, which .wu-standfirst sets from
   --wu-standfirst-gap (unset, it falls through to the head's inner gap).
   So it keeps the weight and place of the rule it replaces, and the chip's
   and the rule label's rules below still win after those. */
.wu-head > * + * {
	margin-top: var(--wu-head-inner-now, var(--wu-head-inner-gap, 18px));
}

/* From 3.26.0, where WordPress's layout rules reach (a child of a flow or
   constrained layout, `:root :where(.is-layout-flow) > *` and the rest,
   0-1-0, which the editor prints after this sheet), the same margins at
   0-1-1, so they win by weight there, never by order (CONTRACT.md
   "Stylesheets on both sides" (a)). Elsewhere the rule above stands alone,
   at its old weight. */
body .wu-head:where(.is-layout-flow, .is-layout-constrained) > * {
	margin-block: 0;
}

body .wu-head:where(.is-layout-flow, .is-layout-constrained) > * + * {
	margin-top: var(--wu-head-inner-now, var(--wu-head-inner-gap, 18px));
}

.wu-head > .wu-chip + * {
	margin-top: 20px;
}

/* From 4.6.0 (build 31 G6, FD7 4.3) the space after the rule label, beside
   the chip's rule and at its weight: --wu-label-rule-below, then the
   head's inner gap. The numbered label and the chip are not touched. */
.wu-head > .wu-label--rule + * {
	margin-top: var(--wu-label-rule-below, var(--wu-head-inner-gap, 18px));
}

.wu-h2 {
	font-family: var(--wu-display);
	font-size: var(--wp--preset--font-size--heading-2);
	font-weight: var(--wu-heading-weight, 700);
	/* From 4.6.0 (build 31 G6) the line height is a slot beside the weight
	   and tracking: --wu-h2-line, 1.1 as before. */
	line-height: var(--wu-h2-line, 1.1);
	letter-spacing: var(--wu-heading-tracking, -0.02em);
	text-wrap: balance;
}

.wu-standfirst {
	--wu-head-inner-now: var(--wu-standfirst-gap);
	max-width: var(--wu-standfirst-width, 60ch);
	color: var(--wu-muted);
	font-size: var(--wp--preset--font-size--standfirst);
	line-height: 1.5;
	text-wrap: pretty;
}

/* From 3.17.0, two block-scoped sizes of the standfirst, read where the
   shared rule above sets them, with its values as the fallbacks: the
   section head's (--wu-shead-standfirst-size) and the split and full
   heroes' (--wu-hero-standfirst-size, --wu-hero-standfirst-line). Each
   block's own stylesheet reads the same slots at no weight for a site that
   draws .wu-standfirst itself. */
:where(.wu-shead) .wu-standfirst {
	font-size: var(--wu-shead-standfirst-size, var(--wp--preset--font-size--standfirst));
}

.wu-hero__standfirst {
	font-size: var(--wu-hero-standfirst-size, var(--wp--preset--font-size--standfirst));
	line-height: var(--wu-hero-standfirst-line, 1.5);
}

/* From 4.0.0, the hero standfirst's colour and line breaking in all three
   layouts (--wu-hero-standfirst-colour, --wu-hero-standfirst-wrap, the
   text-wrap of .wu-standfirst above, pretty) and the plain layout's line
   height (the split and full layouts' --wu-hero-standfirst-line, read on
   .wu-ihero__standfirst too), at the weight of .wu-standfirst and printed
   after it, with its values as the fallbacks. They live in this shared
   sheet, not the hero's, because a block's sheet prints after the child's
   sheets (CONTRACT.md, "Stylesheets on both sides"): a site that dequeues
   this sheet keeps the colour, line breaking and line it inherits. The
   hero's stylesheet reads them again at no weight with no fallback, as it
   reads the two above. */
.wu-hero__standfirst,
.wu-ihero__standfirst,
.wu-ghero__standfirst {
	color: var(--wu-hero-standfirst-colour, var(--wu-muted));
	text-wrap: var(--wu-hero-standfirst-wrap, pretty);
}

.wu-ihero__standfirst {
	line-height: var(--wu-hero-standfirst-line, 1.5);
}

.wu-head--center .wu-standfirst {
	margin-inline: auto;
}

/* Chips and small data: the mono family, uppercase, tracked. From 4.0.0
   the chip's padding, corners, text colour and type are slots beside its
   ground and edge (--wu-chip-pad, -radius, -colour, -font, -size, -weight,
   -tracking, -case), each falling back to the value drawn before. */
.wu-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: var(--wu-chip-pad, 6px 12px);
	border: 1px solid var(--wu-chip-border);
	border-radius: var(--wu-chip-radius, 999px);
	/* A child keeps --wu-chip-bg opaque, so a glow behind never lowers the
	   chip text's contrast. */
	background: var(--wu-chip-bg);
	color: var(--wu-chip-colour, var(--wu-accent));
	font-family: var(--wu-chip-font, var(--wu-mono));
	font-size: var(--wu-chip-size, var(--wp--preset--font-size--chip));
	font-weight: var(--wu-chip-weight, 500);
	line-height: 1.4;
	letter-spacing: var(--wu-chip-tracking, 0.12em);
	text-transform: var(--wu-chip-case, uppercase);
}

/* Numbered label: a number, a drawn rule and the section name (a real rule, not typed dashes).
   Set by a block's "Section number" field instead of the pill chip. From
   4.0.0 its type is slots (--wu-label-font, -size, -weight, -tracking,
   -case), each falling back to the value drawn before, read again at no
   weight by every block that draws an eyebrow, as --wu-label-gap is. From
   4.6.0 (build 31 G6) its colour is a slot too, --wu-label-colour, the
   accent as before, read here alone. On the alt ground it reads
   --wu-alt-label-colour first, through the internal carrier
   --wu-label-ground (never set it): the alt ground sets the carrier, the
   inverse ground clears it, and unset the label draws as before. On the
   inverse ground each block's --wu-<block>-inverse-accent colours it,
   where the block has one, else this chain. */
.wu-label {
	display: flex;
	align-items: center;
	gap: var(--wu-label-gap, 14px);
	margin: 0;
	color: var(--wu-label-ground, var(--wu-label-colour, var(--wu-accent)));
	font-family: var(--wu-label-font, var(--wu-mono));
	font-size: var(--wu-label-size, var(--wp--preset--font-size--chip, 12px));
	font-weight: var(--wu-label-weight, 500);
	line-height: 1.4;
	letter-spacing: var(--wu-label-tracking, 0.12em);
	text-transform: var(--wu-label-case, uppercase);
}

.wu-label__num {
	font-variant-numeric: tabular-nums;
}

/* The rule of the "rule" and "numbered" eyebrows. From 3.17.0 its length,
   thickness (its width, as --wu-steps-rule-width and --wu-hero-rule-width
   name a rule's), colour, opacity and corners, and the gap between the
   eyebrow's parts above, are slots with the values drawn before as their
   fallbacks; every block that draws an eyebrow reads them again at no
   weight in its own stylesheet, for a site that dequeues this file
   (CONTRACT.md, "Slots on the shared head parts"). */
.wu-label__rule {
	flex: none;
	width: var(--wu-label-rule-length, 48px);
	height: var(--wu-label-rule-width, 1px);
	border-radius: var(--wu-label-rule-radius, 0);
	background: var(--wu-label-rule, currentColor);
	opacity: var(--wu-label-rule-opacity, 0.6);
}

.wu-head--center .wu-label {
	justify-content: center;
}

/* Eyebrow variants (3.2.0, webupp_eyebrow()). "pill" is .wu-chip and
   "numbered" the .wu-label above; "rule" is .wu-label without the number;
   "plain", the neutral default, is the text alone in the accent colour. */
.wu-eyebrow {
	margin: 0;
	color: var(--wu-accent);
	font-family: var(--wu-body);
	font-size: var(--wp--preset--font-size--small, 15px);
	font-weight: 600;
	line-height: 1.4;
}

/* Section grounds (3.2.0): a child's own block stands on the alternate or
   the inverse ground through these classes and slots. */
.wu-ground--alt {
	background: var(--wu-ground-alt);
	/* From 4.6.0 (build 31 G6): the eyebrow's colour on this ground. Unset,
	   the carrier is invalid and .wu-label reads its own chain. An alt
	   section inside an inverse one does not take the inverse ground's ring
	   colour: the focus ring reads --wu-focus-colour again. */
	--wu-label-ground: var(--wu-alt-label-colour);
	--wu-focus-ground: initial;
}

.wu-ground--inverse {
	background: var(--wu-inverse-ground);
	color: var(--wu-inverse-text);
	/* From 3.17.0: the ghost button on the inverse ground. Its words and
	   edge read --wu-text and --wu-line-strong, made for the page's ground,
	   so on this ground (--wu-inverse-ground, which is --wu-text unless a
	   child sets it) they vanished. The ground gives the ghost button its
	   own pair, as the hero's and the split's remaps already did: the words
	   in the inverse text, the edge at 55% of it, the hover face at 10%. A
	   child sets these on .wu-ground--inverse to choose otherwise.
	   From 4.6.0 (build 31 G20) the ground owns the whole set of every
	   see-through button: the face is clear and the hover words are the
	   inverse text too, so a face or a hover colour a site set for the page
	   no longer crosses onto this ground (a white face under white words
	   was 1.0:1). The third button's six colour slots are put to initial
	   (the guaranteed-invalid value), so each falls back to the ground's
	   --wu-ghost-* and the third draws as the secondary here, set or not.
	   Set nothing and every value equals what the page already drew. The
	   primary keeps its own face and words. The glow is left alone. */
	--wu-ghost-face: transparent;
	--wu-ghost-text: var(--wu-inverse-text);
	--wu-ghost-border: color-mix(in srgb, var(--wu-inverse-text) 55%, transparent);
	--wu-ghost-border-hover: var(--wu-inverse-text);
	--wu-ghost-face-hover: color-mix(in srgb, var(--wu-inverse-text) 10%, transparent);
	--wu-ghost-text-hover: var(--wu-inverse-text);
	--wu-tertiary-face: initial;
	--wu-tertiary-text: initial;
	--wu-tertiary-border: initial;
	--wu-tertiary-face-hover: initial;
	--wu-tertiary-text-hover: initial;
	--wu-tertiary-border-hover: initial;
	/* From 4.6.0 (build 31 G6): an inverse section inside an alt one does
	   not take the alt ground's eyebrow colour, and the focus ring reads
	   --wu-inverse-focus-colour first (each unset, as before). */
	--wu-label-ground: initial;
	--wu-focus-ground: var(--wu-inverse-focus-colour);
}

/* From 4.6.0 (build 31 G6): the focus ring's inverse colour over the hero's
   photograph too, the words-over-a-photograph places of the hero's ghost
   rule below. At no weight. */
:where(.wu-hero--full.wu-hero--media .wu-hero__wrap, .wu-hero--full .wu-hero__slide--media .wu-hero__wrap) {
	--wu-focus-ground: var(--wu-inverse-focus-colour);
}

/* From 4.6.0 (build 31 G6): the focus ring on links, buttons and summaries,
   the menu's links and buttons included, at no weight, so a site's own ring
   still wins. It draws only once a site sets --wu-focus-colour (or
   --wu-inverse-focus-colour on the inverse ground): --wu-focus-width (2px)
   solid that colour. Unset, the internal carrier --wu-focus-now (never set
   it) is invalid and the outline takes revert, the browser's own ring, so
   no page moves. Never a plain "outline: 2px solid var(--slot)": unset,
   that computes to no outline and removes the browser's ring. The gap is
   --wu-focus-offset, 3px once the ring draws and the browser's own while
   it does not. A style query on the control's parent ties the gap to the
   ring: the two rules after this one, both at no weight (style queries for
   custom properties: Chrome 111, Safari 18, Firefox 151). A browser
   without them drops both and reads this rule: the browser's gap until a
   site sets the offset. The ring's colour set on the control itself draws
   at the browser's gap, as the query reads the parent: set it on a
   section or above. */
:where(a, button, summary):where(:focus-visible) {
	--wu-focus-now: var(--wu-focus-width, 2px) solid var(--wu-focus-ground, var(--wu-focus-colour));
	outline: var(--wu-focus-now, revert);
	outline-offset: var(--wu-focus-offset, revert);
}

/* From 4.6.0 (build 31 G6): the ring draws, so the gap is the site's or 3px. */
@container style(--wu-focus-ground) or style(--wu-focus-colour) {
	:where(a, button, summary):where(:focus-visible) {
		outline-offset: var(--wu-focus-offset, 3px);
	}
}

/* From 4.6.0 (build 31 G6): no ring of the Platform's draws, so the gap is
   the browser's, an offset set alone included. */
@container not (style(--wu-focus-ground) or style(--wu-focus-colour)) {
	:where(a, button, summary):where(:focus-visible) {
		outline-offset: revert;
	}
}

/* From 4.5.0: the text link on the inverse ground. .wu-textlink reads
   --wu-accent, made for the page's ground, so on this ground it could fall
   below 4.5:1 (1.73:1 measured on one child). On the inverse ground it reads
   the slot --wu-inverse-link, unset by default, which falls back to the
   inverse ground's text: on the parent's neutral palette #FFFFFF on #1C1C1C,
   17.04:1, where the accent drew 1.25:1. The hero and the split remap
   --wu-accent on their inverse ground to their own inverse accent (the
   inverse text unless a child sets it), so a link there keeps that accent
   when --wu-inverse-link is unset. A child sets --wu-inverse-link on :root
   (design.json) for a coloured link on every inverse ground. */
/* From 4.6.0 (build 31 G36, Platform 5.0.0 ticket section 62 item 7,
   records/b31f-g36-shape-ruling-2026-11-26.txt section 4.3): this rule
   reaches only words whose nearest ground is the inverse one. It does not
   reach an alt block or a light face (sections.css's light-face list) that
   stands inside an inverse ground (an inverse prose part's words), where
   the page's own value is the right one. The second rule is a block on its
   own inverse ground inside such an alt ground or face, three grounds deep.
   Two rules, so the first never falls if a browser drops the second. Each
   weighs what the one rule weighed (the guards sit in :where()).
   From 4.6.0 (G36 part D, records/b31g-g36-shape2-ruling-2026-11-27.txt
   4.4) each face in the list but the alt ground takes
   ":not(.wu-flat-<face> *)". The Platform marks the body with that
   class where the site leaves the face see-through (inc/flat-faces.php),
   so a marked face is not light there and its words keep the inverse
   ground's value. Inside :where(), so no weight. */
.wu-ground--inverse .wu-textlink:where(:not(.wu-ground--inverse :is(.wu-ground--alt, .wu-cards__card:not(.wu-flat-cards *), .wu-prices__card:not(.wu-flat-prices *):where(:not(.wu-prices__item--featured *, .wu-prices--panel *)), .wu-prices__card:where(.wu-prices__item--featured *):not(.wu-flat-prices-featured *):where(:not(.wu-prices--panel *)), .wu-prices__card:where(.wu-prices--panel *):not(.wu-flat-prices-panel *), .wu-tile:not(.wu-flat-tile *), .wu-seq__panel:not(.wu-flat-seq *), .wu-cost__panel:not(.wu-flat-cost *), .wu-steps--cards .wu-steps__inner:not(.wu-flat-steps-cards *), .wu-steps__panel:not(.wu-flat-steps-panel *)) *)),
.wu-ground--inverse .wu-textlink:hover:where(:not(.wu-ground--inverse :is(.wu-ground--alt, .wu-cards__card:not(.wu-flat-cards *), .wu-prices__card:not(.wu-flat-prices *):where(:not(.wu-prices__item--featured *, .wu-prices--panel *)), .wu-prices__card:where(.wu-prices__item--featured *):not(.wu-flat-prices-featured *):where(:not(.wu-prices--panel *)), .wu-prices__card:where(.wu-prices--panel *):not(.wu-flat-prices-panel *), .wu-tile:not(.wu-flat-tile *), .wu-seq__panel:not(.wu-flat-seq *), .wu-cost__panel:not(.wu-flat-cost *), .wu-steps--cards .wu-steps__inner:not(.wu-flat-steps-cards *), .wu-steps__panel:not(.wu-flat-steps-panel *)) *)) {
	color: var(--wu-inverse-link, var(--wu-inverse-text));
}

:where(.wu-ground--inverse :is(.wu-ground--alt, .wu-cards__card:not(.wu-flat-cards *), .wu-prices__card:not(.wu-flat-prices *):where(:not(.wu-prices__item--featured *, .wu-prices--panel *)), .wu-prices__card:where(.wu-prices__item--featured *):not(.wu-flat-prices-featured *):where(:not(.wu-prices--panel *)), .wu-prices__card:where(.wu-prices--panel *):not(.wu-flat-prices-panel *), .wu-tile:not(.wu-flat-tile *), .wu-seq__panel:not(.wu-flat-seq *), .wu-cost__panel:not(.wu-flat-cost *), .wu-steps--cards .wu-steps__inner:not(.wu-flat-steps-cards *), .wu-steps__panel:not(.wu-flat-steps-panel *))) .wu-ground--inverse .wu-textlink:where(:not(.wu-ground--inverse :is(.wu-ground--alt, .wu-cards__card:not(.wu-flat-cards *), .wu-prices__card:not(.wu-flat-prices *):where(:not(.wu-prices__item--featured *, .wu-prices--panel *)), .wu-prices__card:where(.wu-prices__item--featured *):not(.wu-flat-prices-featured *):where(:not(.wu-prices--panel *)), .wu-prices__card:where(.wu-prices--panel *):not(.wu-flat-prices-panel *), .wu-tile:not(.wu-flat-tile *), .wu-seq__panel:not(.wu-flat-seq *), .wu-cost__panel:not(.wu-flat-cost *), .wu-steps--cards .wu-steps__inner:not(.wu-flat-steps-cards *), .wu-steps__panel:not(.wu-flat-steps-panel *)) .wu-ground--inverse :is(.wu-ground--alt, .wu-cards__card:not(.wu-flat-cards *), .wu-prices__card:not(.wu-flat-prices *):where(:not(.wu-prices__item--featured *, .wu-prices--panel *)), .wu-prices__card:where(.wu-prices__item--featured *):not(.wu-flat-prices-featured *):where(:not(.wu-prices--panel *)), .wu-prices__card:where(.wu-prices--panel *):not(.wu-flat-prices-panel *), .wu-tile:not(.wu-flat-tile *), .wu-seq__panel:not(.wu-flat-seq *), .wu-cost__panel:not(.wu-flat-cost *), .wu-steps--cards .wu-steps__inner:not(.wu-flat-steps-cards *), .wu-steps__panel:not(.wu-flat-steps-panel *)) *)),
:where(.wu-ground--inverse :is(.wu-ground--alt, .wu-cards__card:not(.wu-flat-cards *), .wu-prices__card:not(.wu-flat-prices *):where(:not(.wu-prices__item--featured *, .wu-prices--panel *)), .wu-prices__card:where(.wu-prices__item--featured *):not(.wu-flat-prices-featured *):where(:not(.wu-prices--panel *)), .wu-prices__card:where(.wu-prices--panel *):not(.wu-flat-prices-panel *), .wu-tile:not(.wu-flat-tile *), .wu-seq__panel:not(.wu-flat-seq *), .wu-cost__panel:not(.wu-flat-cost *), .wu-steps--cards .wu-steps__inner:not(.wu-flat-steps-cards *), .wu-steps__panel:not(.wu-flat-steps-panel *))) .wu-ground--inverse .wu-textlink:hover:where(:not(.wu-ground--inverse :is(.wu-ground--alt, .wu-cards__card:not(.wu-flat-cards *), .wu-prices__card:not(.wu-flat-prices *):where(:not(.wu-prices__item--featured *, .wu-prices--panel *)), .wu-prices__card:where(.wu-prices__item--featured *):not(.wu-flat-prices-featured *):where(:not(.wu-prices--panel *)), .wu-prices__card:where(.wu-prices--panel *):not(.wu-flat-prices-panel *), .wu-tile:not(.wu-flat-tile *), .wu-seq__panel:not(.wu-flat-seq *), .wu-cost__panel:not(.wu-flat-cost *), .wu-steps--cards .wu-steps__inner:not(.wu-flat-steps-cards *), .wu-steps__panel:not(.wu-flat-steps-panel *)) .wu-ground--inverse :is(.wu-ground--alt, .wu-cards__card:not(.wu-flat-cards *), .wu-prices__card:not(.wu-flat-prices *):where(:not(.wu-prices__item--featured *, .wu-prices--panel *)), .wu-prices__card:where(.wu-prices__item--featured *):not(.wu-flat-prices-featured *):where(:not(.wu-prices--panel *)), .wu-prices__card:where(.wu-prices--panel *):not(.wu-flat-prices-panel *), .wu-tile:not(.wu-flat-tile *), .wu-seq__panel:not(.wu-flat-seq *), .wu-cost__panel:not(.wu-flat-cost *), .wu-steps--cards .wu-steps__inner:not(.wu-flat-steps-cards *), .wu-steps__panel:not(.wu-flat-steps-panel *)) *)) {
	color: var(--wu-inverse-link, var(--wu-inverse-text));
}

:is(.wu-hero, .wu-ihero, .wu-split).wu-ground--inverse .wu-textlink,
:is(.wu-hero, .wu-ihero, .wu-split).wu-ground--inverse .wu-textlink:hover {
	color: var(--wu-inverse-link, var(--wu-accent));
}

.wu-mono {
	font-family: var(--wu-mono);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.02em;
	color: var(--wu-muted);
}

/* Gradient wash on a phrase (h1 key phrase). Large text only. From 4.6.0
   (build 31 G6) the wash is a slot of its own, --wu-text-wash, apart from the
   gradient the buttons and glows read; unset it is --wu-gradient as
   before. The sequence's step numbers read it too. */
.wu-wash {
	background-image: var(--wu-text-wash, var(--wu-gradient));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

/* ---------- Buttons ---------- */

.wu-button {
	box-sizing: border-box;
	position: relative;
	isolation: isolate;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	/* From 4.6.0 (build 31 G6) the least height and the line height are
	   slots: --wu-button-min-height (auto, no least height, as before) and
	   --wu-button-line (1). */
	min-height: var(--wu-button-min-height, auto);
	padding: var(--wu-button-pad-y, 14px) var(--wu-button-pad-x, 22px);
	border: var(--wu-button-border-width, 1px) solid transparent;
	border-radius: var(--wu-button-radius, var(--wu-radius));
	font-family: var(--wu-button-font, var(--wp--preset--font-family--body));
	font-size: var(--wu-button-size, 15px);
	font-weight: var(--wu-button-weight, 500);
	line-height: var(--wu-button-line, 1);
	text-decoration: none;
	/* No fallback on purpose: unset, the declaration computes as unset, so
	   the words inherit their case as before 3.20.0. */
	text-transform: var(--wu-button-case);
	white-space: nowrap;
	cursor: pointer;
	transition: transform 0.25s var(--wu-ease), border-color 0.2s, background-color 0.2s, box-shadow 0.25s var(--wu-ease), color 0.2s;
}

/* From 4.6.0 (build 31 G6) the hover lift is a slot, --wu-button-lift
   (-1px as before; 0 for none), the name the form skin's submit already
   reads after its own --wu-submit-lift. */
.wu-button:hover {
	transform: translateY(var(--wu-button-lift, -1px));
	text-decoration: none;
}

/*
 * Primary: a 1px gradient hairline (two backgrounds, padding-box and
 * border-box) round the button face (--wu-button-face, --wu-button-text).
 * From 3.21.0 a face that is a gradient comes as --wu-button-face-image
 * (the bridge prints it only then), drawn in the face's place.
 * Hover fades a gradient face in on a pseudo-element, white text on it; the
 * face is sized 220% and centred so the text sits on the gradient's middle.
 */
.wu-button--primary,
.wu-button--primary:visited {
	background: var(--wu-button-face-image, linear-gradient(var(--wu-button-face), var(--wu-button-face))) padding-box, var(--wu-button-border-now, var(--wu-button-border, var(--wu-gradient))) border-box;
	color: var(--wu-button-text);
	box-shadow: 0 0 0 0 transparent;
}

.wu-button--primary::before {
	content: "";
	position: absolute;
	inset: var(--wu-button-hover-inset, -1px);
	z-index: -1;
	border-radius: inherit;
	background-image: var(--wu-button-hover-face);
	background-size: 220% 100%;
	background-position: 50% 50%;
	opacity: 0;
	transition: opacity 0.3s var(--wu-ease);
}

/* --wu-button-glow: optional child token (a second scheme may soften it);
   unset, the glow is the tint at 70% as before. */
.wu-button--primary:hover {
	--wu-button-border-now: var(--wu-button-hover-border, var(--wu-button-border, var(--wu-gradient)));
	color: var(--wu-button-hover-text, #fff);
	box-shadow: 0 10px 40px -10px var(--wu-button-glow, color-mix(in srgb, var(--wu-glow-tint) 70%, transparent));
}

.wu-button--primary:hover::before {
	opacity: 1;
}

.wu-button--ghost,
.wu-button--ghost:visited {
	border-color: var(--wu-ghost-border, var(--wu-line-strong));
	background: var(--wu-ghost-face);
	color: var(--wu-ghost-text, var(--wu-text));
}

.wu-button--ghost:hover {
	border-color: var(--wu-ghost-border-hover);
	background: var(--wu-ghost-face-hover);
	color: var(--wu-ghost-text-hover, var(--wu-ghost-text, var(--wu-text)));
	box-shadow: var(--wu-ghost-glow, none);
}

/* From 4.6.0 (build 31 G20, with G6's rule: FD1's ruling 3.7): the third
   button, the secondary's twin. Each colour reads the --wu-tertiary-* slot
   the bridge prints only when a site sets the Button block's `tertiary`
   style, then the secondary's slot, then the secondary's own fallback. So a
   site that sets nothing draws its third button as the secondary its slots
   draw. A child that draws its secondary by its own rule on
   .wu-button--ghost, not through the slots, gets this plain secondary for
   an unset third until it names .wu-button--tertiary too. On the inverse
   ground the six colour slots are initial (above), so it draws the
   ground's set. */
.wu-button--tertiary,
.wu-button--tertiary:visited {
	border-color: var(--wu-tertiary-border, var(--wu-ghost-border, var(--wu-line-strong)));
	background: var(--wu-tertiary-face, var(--wu-ghost-face));
	color: var(--wu-tertiary-text, var(--wu-ghost-text, var(--wu-text)));
}

.wu-button--tertiary:hover {
	border-color: var(--wu-tertiary-border-hover, var(--wu-ghost-border-hover));
	background: var(--wu-tertiary-face-hover, var(--wu-ghost-face-hover));
	color: var(--wu-tertiary-text-hover, var(--wu-ghost-text-hover, var(--wu-ghost-text, var(--wu-text))));
	box-shadow: var(--wu-tertiary-glow, var(--wu-ghost-glow, none));
}

/* From 4.0.0 (the styles parity ruling's O3), the hero's ghost face over
   its inverse ground and its full layout's photograph: the slots
   --wu-hero-inverse-ghost-face and --wu-hero-inverse-ghost-face-hover,
   read on the button with the page's face and hover face as the
   fallbacks, so a site that sets neither draws as before. They live in
   this shared sheet, not the hero's, because a block's sheet prints after
   the child's sheets (CONTRACT.md, "Stylesheets on both sides"), and a
   child's own ghost rule at the same weight must keep winning here.
   From 4.6.0 (G20) the third button takes the same face there. */
:where(.wu-hero--full.wu-hero--media .wu-hero__wrap, .wu-hero--full .wu-hero__slide--media .wu-hero__wrap, .wu-hero.wu-ground--inverse, .wu-ihero.wu-ground--inverse) :is(.wu-button--ghost, .wu-button--tertiary),
:where(.wu-hero--full.wu-hero--media .wu-hero__wrap, .wu-hero--full .wu-hero__slide--media .wu-hero__wrap, .wu-hero.wu-ground--inverse, .wu-ihero.wu-ground--inverse) :is(.wu-button--ghost, .wu-button--tertiary):visited {
	background: var(--wu-hero-inverse-ghost-face, var(--wu-ghost-face));
}

:where(.wu-hero--full.wu-hero--media .wu-hero__wrap, .wu-hero--full .wu-hero__slide--media .wu-hero__wrap, .wu-hero.wu-ground--inverse, .wu-ihero.wu-ground--inverse) :is(.wu-button--ghost, .wu-button--tertiary):hover {
	background: var(--wu-hero-inverse-ghost-face-hover, var(--wu-ghost-face-hover));
}

/* From 4.6.0 (build 31 G20, the ruling's section 9): the see-through
   buttons over the full hero's photograph, on a hero that is not on the
   inverse ground. The wrap is not a ground, so nothing else gives it the
   set: a clear face, the words, hover words and edge in the hero's
   remapped text and line (--wu-text and --wu-line-strong, set on the wrap
   by the hero's sheet), and the third's six colour slots initial, so the
   third draws as the secondary there. A face, words or edge a site set for
   the page do not cross onto the photograph. Set nothing and each value
   equals what the wrap drew before. The rule has no weight, so a child's
   own line on .wu-hero__wrap wins from its sheet. On a hero on the inverse
   ground it does not match: the wrap takes the ground's lines, and a
   child's line on .wu-ground--inverse reaches it. In both cases the hover
   face and hover edge are the exception: the hero sets those itself, as
   at 4.5.0, and its hover face takes --wu-hero-inverse-ghost-face-hover. */
@media (min-width: 768px) {
	:where(.wu-hero--full.wu-hero--media:not(.wu-ground--inverse) .wu-hero__wrap,
	.wu-hero--full:not(.wu-ground--inverse) .wu-hero__slide--media .wu-hero__wrap) {
		--wu-ghost-face: transparent;
		--wu-ghost-text: var(--wu-text);
		--wu-ghost-border: var(--wu-line-strong);
		--wu-ghost-text-hover: var(--wu-text);
		--wu-tertiary-face: initial;
		--wu-tertiary-text: initial;
		--wu-tertiary-border: initial;
		--wu-tertiary-face-hover: initial;
		--wu-tertiary-text-hover: initial;
		--wu-tertiary-border-hover: initial;
	}
}

.wu-button svg {
	width: 16px;
	height: 16px;
	transition: transform 0.2s var(--wu-ease);
}

/* From 4.6.0 (build 31 G6) the arrow's shift on hover, on the button and
   the text link, is a slot: --wu-button-arrow-shift (3px as before; 0 for
   none), beside --wu-button-arrow, the arrow's display. */
.wu-button:hover svg {
	transform: translateX(var(--wu-button-arrow-shift, 3px));
}

.wu-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

/* From 4.6.0 (build 31 G6, FD6 2.1) the text link's look is eight slots,
   each with the value drawn before as its fallback: --wu-textlink-colour
   (at rest and on hover), -weight, -size, -rule (the line at rest, none),
   -rule-width, -rule-colour, -rule-offset and -rule-hover-width. The
   shorthands stay, so the style and any value a lower rule sets are reset
   as before, with the longhands after them. The inverse ground's two rules
   above outweigh the colour slot there. */
.wu-textlink {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: 100%;
	color: var(--wu-textlink-colour, var(--wu-accent));
	font-weight: var(--wu-textlink-weight, 500);
	text-decoration: none;
	text-decoration-line: var(--wu-textlink-rule, none);
	text-decoration-thickness: var(--wu-textlink-rule-width, auto);
	text-decoration-color: var(--wu-textlink-rule-colour, currentColor);
	text-underline-offset: var(--wu-textlink-rule-offset, 4px);
	overflow-wrap: break-word;
}

/* No weight, so that unset it declares only what the cascade gives. */
:where(.wu-textlink) {
	font-size: var(--wu-textlink-size, inherit);
}

.wu-textlink svg {
	width: 16px;
	height: 16px;
	transition: transform 0.2s var(--wu-ease);
}

/* From 4.6.0 the arrow stays with the last word (Platform 5.0.0 ticket
   section 37 item 4). webupp_textlink_words() prints all the words in
   .wu-textlink__words, one flex item, so they wrap as one run of text, and
   the last word (.wu-textlink__word) with the arrow in .wu-textlink__last,
   one box with one flex line, so the arrow cannot leave the word's line.
   The gap is the link's own 6px. Both spans take the link's line and its
   thickness: a box drawn inline-flex is not reached by its parent's line.
   The last word takes the thickness too, or WebKit at device scale 2
   draws its line a row thin. A label wider than its column breaks inside
   the column: each box may go as narrow as the column (the link's and the
   last box's max-width, the words' and the last word's min-width) and the
   link breaks a word that overflows (overflow-wrap), except the header's
   call to action from 768px, which stays on one line. From G6d no column
   on the way to a text link takes its width from the label (each block's
   sheet). A button is one line by design and is not changed. The ruling:
   docs/mockups/r400/build/records/b31d-g6c-review-2026-11-24.txt, (c) and
   section 8 F1, measured in records/b31d-g6c-lab2-2026-11-24.txt (c2). */
.wu-textlink__words {
	min-width: 0;
	text-decoration: inherit;
	text-decoration-thickness: inherit;
}

.wu-textlink__last {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: 100%;
	text-decoration: inherit;
	text-decoration-thickness: inherit;
}

.wu-textlink__word {
	min-width: 0;
	text-decoration-thickness: inherit;
}

.wu-textlink:hover {
	color: var(--wu-textlink-colour, var(--wu-accent));
	text-decoration: underline;
	text-decoration-thickness: var(--wu-textlink-rule-hover-width, var(--wu-textlink-rule-width, auto));
	text-decoration-color: var(--wu-textlink-rule-colour, currentColor);
	text-underline-offset: var(--wu-textlink-rule-offset, 4px);
}

.wu-textlink:hover svg {
	transform: translateX(var(--wu-button-arrow-shift, 3px));
}

/* From 4.6.0 (build 31 G16, FD4's ruling 8.3): a link typed in a block's
   words (webupp_text_links(), inc/helpers-text.php). It reads the site's
   seven link settings through the --wu-link-* slots the bridge prints
   where the site differs from the parent. Each falls back to the parent's
   value, so unset it draws as WordPress draws the site's other links: the
   accent, the browser's underline, its thickness and offset. On hover the
   colour, line and thickness unset are the values at rest. The colour and
   the line read a ground's value first, through the carriers
   --wu-link-ground-colour and --wu-link-ground-rule (G16 fix round 1, the
   review's 3.4, in G6's form): a ground sets the carriers, a light face
   inside it puts them back to initial, and unset the slots decide. */
.wu-link {
	color: var(--wu-link-ground-colour, var(--wu-link-colour, var(--wp--preset--color--accent)));
	text-decoration-line: var(--wu-link-ground-rule, var(--wu-link-rule, underline));
	text-decoration-thickness: var(--wu-link-rule-width, auto);
	text-underline-offset: var(--wu-link-rule-offset, auto);
}

.wu-link:hover {
	color: var(--wu-link-ground-colour, var(--wu-link-hover-colour, var(--wu-link-colour, var(--wp--preset--color--accent))));
	text-decoration-line: var(--wu-link-ground-rule, var(--wu-link-hover-rule, var(--wu-link-rule, underline)));
	text-decoration-thickness: var(--wu-link-rule-hover-width, var(--wu-link-rule-width, auto));
}

/* From 4.6.0 (G16, FD4's ruling 8.4, level 1): a ground sets the link's
   carriers for the links inside it. The inverse ground gives them the
   inverse link (--wu-inverse-link, else the inverse text), as the text
   link reads it, at rest and on hover, and always an underline: a site
   with no line at rest would draw a link there that looks like the words
   around it. The hero, the split and the prose part remap --wu-accent on
   their inverse ground, so a link there keeps that accent. A child sets
   --wu-inverse-link for every inverse ground, or the two carriers on a
   block's listed class for one kind of block. */
.wu-ground--inverse {
	--wu-link-ground-colour: var(--wu-inverse-link, var(--wu-inverse-text));
	--wu-link-ground-rule: underline;
}

:is(.wu-hero, .wu-ihero, .wu-split, .wu-prose).wu-ground--inverse {
	--wu-link-ground-colour: var(--wu-inverse-link, var(--wu-accent));
}

/* The alternate ground is a light ground: a section on it inside an
   inverse one (a block placed in an inverse prose part's words) draws its
   words in --wu-text, so it puts both carriers back to initial (the
   guaranteed-invalid value) and a link there draws the site's own link
   colour and line, as on the page's ground. G6 puts its own carrier back
   on this ground the same way (above). On the neutral palette the inverse
   link there was 1.09:1 (computed). Before the words class, so a block on
   this ground set to "As the words around it" keeps that look (G16 fix
   round 2, the read's R1). */
.wu-ground--alt {
	--wu-link-ground-colour: initial;
	--wu-link-ground-rule: initial;
}

/* A light face inside a section (a card that draws --wu-surface) is not
   the ground: it puts both carriers back to initial (the
   guaranteed-invalid value), so a link there draws the site's own link
   colour and line, as on the page's ground. On the neutral palette the
   inverse link on that face was 1.09:1, the site's link is 12.46:1
   (computed). No weight, so a child's own line on those classes wins, and
   the overlay card's rule below, after it, sets them again. The bento
   tile, the sequence panel and the cost panel are light faces that hold a
   typed link too, reached inside an inverse ground when the block is
   placed in an inverse prose part's words (G16 fix round 2, R1's class).
   From 4.6.0 (G36, ticket section 62 item 6) the steps cards look's card
   and the band's panel join: a typed link on a steps card on its own
   inverse ground drew the inverse link on the light card (1.09:1).
   From 4.6.0 (G36 part D, records/b31g-g36-shape2-ruling-2026-11-27.txt
   4.5) each face takes ":not(.wu-flat-<face> *)": a face the site leaves
   see-through is marked on the body (inc/flat-faces.php), so a typed
   link on it keeps the ground's link, not the site's own.
   The prices card is three members, one per rule that paints it (a
   package, a featured package, the panel), each with its own guard, so a
   card that still paints is not left out beside one that is cleared
   (G36 H71, records/b31h-g36-rulec-2026-11-28.txt section 5). */
:where(.wu-cards__card:not(.wu-flat-cards *), .wu-prices__card:not(.wu-flat-prices *):where(:not(.wu-prices__item--featured *, .wu-prices--panel *)), .wu-prices__card:where(.wu-prices__item--featured *):not(.wu-flat-prices-featured *):where(:not(.wu-prices--panel *)), .wu-prices__card:where(.wu-prices--panel *):not(.wu-flat-prices-panel *), .wu-tile:not(.wu-flat-tile *), .wu-seq__panel:not(.wu-flat-seq *), .wu-cost__panel:not(.wu-flat-cost *), .wu-steps--cards .wu-steps__inner:not(.wu-flat-steps-cards *), .wu-steps__panel:not(.wu-flat-steps-panel *)) {
	--wu-link-ground-colour: initial;
	--wu-link-ground-rule: initial;
}

/* The same carriers where a block draws an inverse ground through a class
   of its own (FD4 8.4: "A block that draws a ground through a class of its
   own sets the same three slots", carried by the two carriers since the
   G16 fix round): the full hero's photograph from 768px, where the hero's
   sheet remaps --wu-accent to its inverse accent (as the see-through
   buttons' rule above), and an overlay card's photograph. No weight, so a
   child's own line on those classes wins. A block set to "As the words
   around it" keeps that look there too. */
@media (min-width: 768px) {
	:where(.wu-hero--full.wu-hero--media:not(.wu-ground--inverse, .wu-links--words) .wu-hero__wrap,
	.wu-hero--full:not(.wu-ground--inverse, .wu-links--words) .wu-hero__slide--media .wu-hero__wrap) {
		--wu-link-ground-colour: var(--wu-inverse-link, var(--wu-accent));
		--wu-link-ground-rule: underline;
	}
}

:where(.wu-cards--overlay:not(.wu-links--words) .wu-cards__item--image .wu-cards__card) {
	--wu-link-ground-colour: var(--wu-inverse-link, var(--wu-inverse-text));
	--wu-link-ground-rule: underline;
}

/* From 4.6.0 (G16, FD4's ruling 8.4, level 2): a block's links field at
   "As the words around it" (webupp_links_class(), the class
   wu-links--words on the block's root) draws its links in the words'
   colour, underlined, at rest and on hover. It sets the carriers, so it
   wins over a ground on the same root, and the three slots, so a link
   inside a light face (where the carriers are initial) keeps that look.
   The second selector outweighs the hero's, the split's and the prose
   part's inverse ground above. */
.wu-links--words,
:is(.wu-hero, .wu-ihero, .wu-split, .wu-prose).wu-links--words {
	--wu-link-ground-colour: currentColor;
	--wu-link-ground-rule: underline;
	--wu-link-colour: currentColor;
	--wu-link-hover-colour: currentColor;
	--wu-link-rule: underline;
}


/* ---------- Reduced motion: glows still, no hover travel ---------- */

/* From 4.6.0 (build 31 G6) the arrow's hover rules are listed too: they
   weigh 0,2,1, so the 0,1,1 arrow selectors alone lost to them and the
   arrow still stepped on hover. Every hover transform in this sheet is in
   this list (tools/proof/sections-equal.php checks it). */
@media (prefers-reduced-motion: reduce) {
	.wu-glow {
		animation: none;
	}

	.wu-button,
	.wu-button:hover,
	.wu-button svg,
	.wu-button:hover svg,
	.wu-textlink svg,
	.wu-textlink:hover svg {
		transition: none;
		transform: none;
	}
}

/* ---------- The email-only form (3.15.0) ---------- */

/* webupp_signup_form(): webupp/contact with `aside` email and webupp/cta
   with `signup` draw it. The label above, the address and the button on
   one line from 480px, the consent line and the status under them. The
   trap field is out of sight and out of the tab order. A child that
   dequeues this stylesheet styles wu-signup in its own. */
.wu-signup {
	width: 100%;
	max-width: var(--wu-signup-max, 520px);
}

.wu-cta .wu-signup {
	margin: 24px auto 0;
}

.wu-signup__form {
	display: grid;
	gap: 8px;
	margin: 0;
}

.wu-signup__label {
	color: inherit;
	/* From 3.20.0 the Design tab's Forms (--wu-field-label-*) reach the
	   sign-up's label; its colour stays the section's (the form sits on any
	   ground, the inverse one included). */
	font: var(--wu-signup-label-font, var(--wu-field-label-weight, 600) var(--wu-field-label-size, 15px)/1.4 var(--wu-body));
	text-transform: var(--wu-field-label-case);
	text-align: left;
}

.wu-signup__row {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

@media (min-width: 480px) {
	.wu-signup__row {
		flex-direction: row;
	}
}

.wu-signup__input {
	box-sizing: border-box;
	flex: 1 1 auto;
	min-width: 0;
	padding: 12px 14px;
	border: var(--wu-field-line-width, 1px) solid var(--wu-signup-border, var(--wu-field-line, var(--wu-line-strong)));
	border-radius: var(--wu-button-radius, var(--wu-radius));
	background: var(--wu-signup-face, var(--wu-field-face, var(--wu-ground)));
	color: var(--wu-signup-text, var(--wu-field-text, var(--wu-text)));
	font: inherit;
	font-size: 16px;
}

.wu-signup__input:focus-visible {
	outline: 2px solid var(--wu-accent);
	outline-offset: 2px;
}

.wu-signup__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.wu-signup__consent,
.wu-signup__status {
	margin: 10px 0 0;
	color: var(--wu-signup-note-colour, var(--wu-muted));
	font-size: 14px;
	line-height: 1.45;
	text-align: left;
}

.wu-signup__status--thanks {
	color: var(--wu-signup-thanks, var(--wu-success, inherit));
	font-weight: 600;
}

/* From 4.6.0 (build 31 G36, Platform 5.0.0 ticket section 62 item 7,
   records/b31f-g36-shape-ruling-2026-11-26.txt section 4.3): this rule
   reaches only words whose nearest ground is the inverse one. It does not
   reach an alt block or a light face (sections.css's light-face list) that
   stands inside an inverse ground (an inverse prose part's words), where
   the page's own value is the right one. The second rule is a block on its
   own inverse ground inside such an alt ground or face, three grounds deep.
   Two rules, so the first never falls if a browser drops the second. Each
   weighs what the one rule weighed (the guards sit in :where()).
   From 4.6.0 (G36 part D, records/b31g-g36-shape2-ruling-2026-11-27.txt
   4.4) each face in the list but the alt ground takes
   ":not(.wu-flat-<face> *)". The Platform marks the body with that
   class where the site leaves the face see-through (inc/flat-faces.php),
   so a marked face is not light there and its words keep the inverse
   ground's value. Inside :where(), so no weight. */
.wu-ground--inverse .wu-signup__consent:where(:not(.wu-ground--inverse :is(.wu-ground--alt, .wu-cards__card:not(.wu-flat-cards *), .wu-prices__card:not(.wu-flat-prices *):where(:not(.wu-prices__item--featured *, .wu-prices--panel *)), .wu-prices__card:where(.wu-prices__item--featured *):not(.wu-flat-prices-featured *):where(:not(.wu-prices--panel *)), .wu-prices__card:where(.wu-prices--panel *):not(.wu-flat-prices-panel *), .wu-tile:not(.wu-flat-tile *), .wu-seq__panel:not(.wu-flat-seq *), .wu-cost__panel:not(.wu-flat-cost *), .wu-steps--cards .wu-steps__inner:not(.wu-flat-steps-cards *), .wu-steps__panel:not(.wu-flat-steps-panel *)) *)),
.wu-ground--inverse .wu-signup__status:where(:not(.wu-ground--inverse :is(.wu-ground--alt, .wu-cards__card:not(.wu-flat-cards *), .wu-prices__card:not(.wu-flat-prices *):where(:not(.wu-prices__item--featured *, .wu-prices--panel *)), .wu-prices__card:where(.wu-prices__item--featured *):not(.wu-flat-prices-featured *):where(:not(.wu-prices--panel *)), .wu-prices__card:where(.wu-prices--panel *):not(.wu-flat-prices-panel *), .wu-tile:not(.wu-flat-tile *), .wu-seq__panel:not(.wu-flat-seq *), .wu-cost__panel:not(.wu-flat-cost *), .wu-steps--cards .wu-steps__inner:not(.wu-flat-steps-cards *), .wu-steps__panel:not(.wu-flat-steps-panel *)) *)) {
	color: var(--wu-inverse-text);
}

:where(.wu-ground--inverse :is(.wu-ground--alt, .wu-cards__card:not(.wu-flat-cards *), .wu-prices__card:not(.wu-flat-prices *):where(:not(.wu-prices__item--featured *, .wu-prices--panel *)), .wu-prices__card:where(.wu-prices__item--featured *):not(.wu-flat-prices-featured *):where(:not(.wu-prices--panel *)), .wu-prices__card:where(.wu-prices--panel *):not(.wu-flat-prices-panel *), .wu-tile:not(.wu-flat-tile *), .wu-seq__panel:not(.wu-flat-seq *), .wu-cost__panel:not(.wu-flat-cost *), .wu-steps--cards .wu-steps__inner:not(.wu-flat-steps-cards *), .wu-steps__panel:not(.wu-flat-steps-panel *))) .wu-ground--inverse .wu-signup__consent:where(:not(.wu-ground--inverse :is(.wu-ground--alt, .wu-cards__card:not(.wu-flat-cards *), .wu-prices__card:not(.wu-flat-prices *):where(:not(.wu-prices__item--featured *, .wu-prices--panel *)), .wu-prices__card:where(.wu-prices__item--featured *):not(.wu-flat-prices-featured *):where(:not(.wu-prices--panel *)), .wu-prices__card:where(.wu-prices--panel *):not(.wu-flat-prices-panel *), .wu-tile:not(.wu-flat-tile *), .wu-seq__panel:not(.wu-flat-seq *), .wu-cost__panel:not(.wu-flat-cost *), .wu-steps--cards .wu-steps__inner:not(.wu-flat-steps-cards *), .wu-steps__panel:not(.wu-flat-steps-panel *)) .wu-ground--inverse :is(.wu-ground--alt, .wu-cards__card:not(.wu-flat-cards *), .wu-prices__card:not(.wu-flat-prices *):where(:not(.wu-prices__item--featured *, .wu-prices--panel *)), .wu-prices__card:where(.wu-prices__item--featured *):not(.wu-flat-prices-featured *):where(:not(.wu-prices--panel *)), .wu-prices__card:where(.wu-prices--panel *):not(.wu-flat-prices-panel *), .wu-tile:not(.wu-flat-tile *), .wu-seq__panel:not(.wu-flat-seq *), .wu-cost__panel:not(.wu-flat-cost *), .wu-steps--cards .wu-steps__inner:not(.wu-flat-steps-cards *), .wu-steps__panel:not(.wu-flat-steps-panel *)) *)),
:where(.wu-ground--inverse :is(.wu-ground--alt, .wu-cards__card:not(.wu-flat-cards *), .wu-prices__card:not(.wu-flat-prices *):where(:not(.wu-prices__item--featured *, .wu-prices--panel *)), .wu-prices__card:where(.wu-prices__item--featured *):not(.wu-flat-prices-featured *):where(:not(.wu-prices--panel *)), .wu-prices__card:where(.wu-prices--panel *):not(.wu-flat-prices-panel *), .wu-tile:not(.wu-flat-tile *), .wu-seq__panel:not(.wu-flat-seq *), .wu-cost__panel:not(.wu-flat-cost *), .wu-steps--cards .wu-steps__inner:not(.wu-flat-steps-cards *), .wu-steps__panel:not(.wu-flat-steps-panel *))) .wu-ground--inverse .wu-signup__status:where(:not(.wu-ground--inverse :is(.wu-ground--alt, .wu-cards__card:not(.wu-flat-cards *), .wu-prices__card:not(.wu-flat-prices *):where(:not(.wu-prices__item--featured *, .wu-prices--panel *)), .wu-prices__card:where(.wu-prices__item--featured *):not(.wu-flat-prices-featured *):where(:not(.wu-prices--panel *)), .wu-prices__card:where(.wu-prices--panel *):not(.wu-flat-prices-panel *), .wu-tile:not(.wu-flat-tile *), .wu-seq__panel:not(.wu-flat-seq *), .wu-cost__panel:not(.wu-flat-cost *), .wu-steps--cards .wu-steps__inner:not(.wu-flat-steps-cards *), .wu-steps__panel:not(.wu-flat-steps-panel *)) .wu-ground--inverse :is(.wu-ground--alt, .wu-cards__card:not(.wu-flat-cards *), .wu-prices__card:not(.wu-flat-prices *):where(:not(.wu-prices__item--featured *, .wu-prices--panel *)), .wu-prices__card:where(.wu-prices__item--featured *):not(.wu-flat-prices-featured *):where(:not(.wu-prices--panel *)), .wu-prices__card:where(.wu-prices--panel *):not(.wu-flat-prices-panel *), .wu-tile:not(.wu-flat-tile *), .wu-seq__panel:not(.wu-flat-seq *), .wu-cost__panel:not(.wu-flat-cost *), .wu-steps--cards .wu-steps__inner:not(.wu-flat-steps-cards *), .wu-steps__panel:not(.wu-flat-steps-panel *)) *)) {
	color: var(--wu-inverse-text);
}
