/*
Theme Name: Tyneside 3d Prints
Theme URI: https://tyneside3dprints.com/
Author: Raihan Ahmad Khan
Author URI: https://moarblur.digital/
Description: A bespoke, high-performance WordPress block theme built for Tyneside 3D Prints. Engineered for instant print cost estimation, multi-step CAD quote requests, additive manufacturing material selection, and UK GDPR-compliant workshop enquiries. Built natively with Full Site Editing (FSE) block architecture and zero builder plugins for maximum Core Web Vitals speed.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.3
Version: 0.4.35
License: Proprietary
License URI: https://moarblur.digital/
Update URI: false
Text Domain: 3dprint-uk
Tags: block-theme, full-site-editing, custom-colors, custom-logo, editor-style, translation-ready
*/

/* ============================================================
   Tyneside 3d Prints — client brand system (mirrors theme.json tokens)

   Brand palette taken from the client's own filament spool label:
     Primary   Dark blue   #213C51
     Secondary Light blue  #6594B1
     Tertiary  White       #EEEEEE

   The page sits on a soft blue-grey (#EDF2F6) rather than pure
   white; cards stay #FFFFFF so they read as raised surfaces.

   Contrast (WCAG 2.1, verified against each surface it is used on):
     #213C51 on #EDF2F6   10.18:1   body text, headings   AAA
     #213C51 on #FFFFFF   11.48:1   body text, headings   AAA
     #4F6274 on #EDF2F6    5.59:1   secondary text        AA
     #4F6274 on #E4ECF2    5.28:1   secondary text        AA
     #3F6E8C on #FFFFFF    5.50:1   links                 AA
     #3F6E8C on #EDF2F6    4.88:1   links                 AA
     #FFFFFF on #213C51   11.48:1   on-brand text         AAA
     #C9D8E2 on #16303F    9.42:1   footer secondary text  AAA
     #6594B1 on #16303F    4.20:1   accent ON dark only
   #6594B1 measures 3.27:1 on white, so it is NEVER used for body
   text or small labels on light surfaces — decorative fills,
   1px rules, focus-adjacent accents and large display text only.
   #C6D4DE measures 1.51:1 on white: a visible border, never text.
   ============================================================ */
:root {
	/* ---- Client brand: Primary / Secondary / Tertiary ---- */
	--dpuk-brand: #213c51; /* Primary  — dark blue  */
	--dpuk-brand-deep: #16303f;
	--dpuk-brand-night: #122937;
	--dpuk-brand-light: #6594b1; /* Secondary — light blue */
	--dpuk-brand-light-deep: #3f6e8c;
	--dpuk-brand-white: #eee; /* Tertiary  — white */

	/* ---- Functional surfaces ---- */
	--dpuk-page: #edf2f6;
	--dpuk-white: #fff;
	--dpuk-alt: #e4ecf2;
	--dpuk-surface: #eee;
	--dpuk-tint: #d9e5ee;
	--dpuk-tint-soft: #e1ebf2;

	/* ---- Text ---- */
	--dpuk-ink: var(--dpuk-brand);
	--dpuk-muted: #4f6274;
	--dpuk-on-brand: #fff;
	--dpuk-on-brand-muted: #c9d8e2;
	--dpuk-border: #c6d4de;
	--dpuk-border-strong: #a9bccb;

	/* ---- Roles kept from the pre-0.4 palette (same names, new values) ---- */
	--dpuk-primary: var(--dpuk-brand);
	--dpuk-primary-dark: var(--dpuk-brand-deep);
	--dpuk-primary-ink: var(--dpuk-brand-light-deep);
	--dpuk-accent: var(--dpuk-brand-light);
	--dpuk-accent-deep: var(--dpuk-brand-light-deep);
	--dpuk-footer-bg: var(--dpuk-brand-deep);
	--dpuk-footer-muted: #c9d8e2;

	/* ---- Status ---- */
	--dpuk-error: #b42318;
	--dpuk-error-bg: #fceeec;
	--dpuk-success: #16794c;
	--dpuk-success-bg: #e6f4ee;
	--dpuk-focus: var(--dpuk-brand);

	/* ---- Shape + depth ---- */
	--dpuk-radius-card: 20px;
	--dpuk-radius-pill: 999px;
	--dpuk-radius-input: 10px;
	--dpuk-shadow-card: 0 1px 2px rgba(33, 60, 81, 0.05),
		0 10px 30px rgba(33, 60, 81, 0.08);
	--dpuk-shadow-lift: 0 18px 44px rgba(33, 60, 81, 0.18);

	/* ---- Type + metrics ---- */
	--dpuk-font-body: "Inter", -apple-system, blinkmacsystemfont, "Segoe UI",
		roboto, sans-serif;
	--dpuk-font-heading: "Outfit", "Inter", -apple-system, blinkmacsystemfont,
		"Segoe UI", sans-serif;
	--dpuk-header-h: 3.75rem;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html,
body {
	overflow-x: clip;
	max-width: 100vw;
}

body {
	background-color: var(--dpuk-page);
	color: var(--dpuk-ink);
	font-family: var(--dpuk-font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizelegibility;
}

input,
select,
textarea,
button,
fieldset {
	max-width: 100%;
}

img {
	max-width: 100%;
	height: auto;
}

figure {
	margin: 0 0 1.5rem;
}

figcaption,
.wp-element-caption {
	color: var(--dpuk-muted);
	font-size: 0.875rem;
	line-height: 1.5;
	margin-top: 0.5rem;
}

/* ---------- Lists: properly indented content lists (policy pages) ----------

   Content lists sit indented inside the body text column:
   - The list container keeps the layout gutter matching headings and paragraphs,
     and indents list items with clean spacing.
   - List items use in-flow custom markers for bullet and numbering consistency:
     • Unordered items get a bullet marker (•) aligned inside the list indent.
     • Ordered items get a numbered counter (1., 2.) aligned inside the list indent.
   - Wrapped lines wrap cleanly under the item text, not under the marker.
   - Nested lists step another 1.25rem further to the right.
   - Component lists (footer, navigation, estimator) retain their own scoped styles.
*/
.entry-content ul:not([class*="dpuk-"]),
.entry-content ol:not([class*="dpuk-"]) {
	counter-reset: dpuk-ol;
	list-style: none;
	margin-block: 0.75rem 1.25rem;
}

.entry-content ul:not([class*="dpuk-"]) > li {
	position: relative;
	margin-block-end: 0.5rem;
	padding-inline-start: 1.75rem;
	line-height: 1.6;
}

.entry-content ol:not([class*="dpuk-"]) > li {
	position: relative;
	margin-block-end: 0.5rem;
	padding-inline-start: 2rem;
	line-height: 1.6;
}

.entry-content ul:not([class*="dpuk-"]) > li::before {
	content: "•";
	position: absolute;
	inset-inline-start: 0.75rem;
	color: var(--dpuk-secondary, #6594b1);
	font-weight: 700;
	font-size: 1.15em;
	line-height: 1.4;
}

.entry-content ol:not([class*="dpuk-"]) > li::before {
	content: counter(dpuk-ol) ".";
	counter-increment: dpuk-ol;
	position: absolute;
	inset-inline-start: 0.5rem;
	font-weight: 600;
	color: var(--dpuk-primary, #213c51);
}

/* Deeper levels (nested lists) step further right */
.entry-content li > ul:not([class*="dpuk-"]),
.entry-content li > ol:not([class*="dpuk-"]) {
	margin-block: 0.4rem;
	margin-inline-start: 1.25rem;
	padding-inline-start: 0;
}

/* Fluid type: balanced scale for headings and body */
h1,
.dpuk-hero h1 {
	font-size: clamp(1.85rem, 1.25rem + 1.8vw, 2.45rem);
	line-height: 1.15;
	letter-spacing: -0.015em;
	margin-bottom: 1rem;
}

h2 {
	font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
	line-height: 1.22;
	letter-spacing: -0.01em;
	margin-bottom: 0.85rem;
}

h3 {
	font-size: clamp(1.2rem, 1.08rem + 0.5vw, 1.45rem);
	line-height: 1.3;
	margin-bottom: 0.5rem;
}

/* Anchored sections sit flush below the sticky header when jumped to. */
section[id],
div[id],
main[id],
h1[id],
h2[id],
h3[id],
h4[id] {
	scroll-margin-top: calc(var(--dpuk-header-h) + 1rem);
}

html {
	scroll-behavior: smooth;
}

/* ---------- Skip link (core + explicit .dpuk-skip-link) ---------- */

.skip-link:focus,
.dpuk-skip-link:focus {
	position: fixed !important;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 200;
	display: inline-block;
	width: auto !important;
	height: auto !important;
	padding: 0.75rem 1.25rem;
	clip-path: none !important;
	clip: auto !important;
	background: var(--dpuk-ink);
	color: var(--dpuk-white) !important;
	border-radius: var(--dpuk-radius-pill);
	font-weight: 600;
	text-decoration: none;
	box-shadow: var(--dpuk-shadow-lift);
}

/* ---------- Visually hidden but exposed to assistive tech ----------
   Defined here rather than inherited from core so the clip recipe is
   guaranteed on the front end, in the block editor (add_editor_style loads
   this same file) and in any future child theme. The element keeps its
   box in the accessibility tree and stays focusable; only the painting is
   removed. `:focus` restores it so a visually-hidden-but-focusable link or
   button (option tooltips, swatch filters) can never be trapped off-screen. */
.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	clip: rect(0, 0, 0, 0);
	block-size: 1px;
	inline-size: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	white-space: nowrap;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	block-size: auto !important;
	clip-path: none;
	clip: auto !important;
	inline-size: auto;
	margin: 0;
	overflow: visible;
	padding: 0.5rem 1rem;
	color: var(--dpuk-on-brand);
	background: var(--dpuk-ink);
	border-radius: var(--dpuk-radius-pill);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	z-index: 210;
}

/* ---------- Header: sticky + simple mobile breakpoint ---------- */

header.wp-block-template-part,
.wp-block-template-part:has(.dpuk-header) {
	position: sticky;
	top: 0;
	z-index: 1000;
	width: 100%;
}

.dpuk-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	width: 100%;
	max-width: 100% !important;
	padding-left: clamp(1rem, 4vw, 4.5rem) !important;
	padding-right: clamp(1rem, 4vw, 4.5rem) !important;
	background: rgba(237, 242, 246, 0.85);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--dpuk-border);
	transition:
		box-shadow 0.25s ease,
		border-color 0.25s ease,
		background-color 0.25s ease;
}

.dpuk-header > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
	max-width: 100% !important;
	width: 100% !important;
}

/* Remove backdrop-filter while mobile menu modal is open so position:fixed isn't trapped */
.dpuk-header:has(.is-menu-open),
html.has-modal-open .dpuk-header,
body.has-modal-open .dpuk-header,
header.wp-block-template-part:has(.is-menu-open) {
	backdrop-filter: none !important;
	-webkit-backdrop-filter: none !important;
}

.dpuk-header.is-scrolled {
	background: rgba(237, 242, 246, 0.95);
	box-shadow: 0 4px 20px rgba(33, 61, 85, 0.08);
	border-bottom-color: var(--dpuk-border);
}

.dpuk-header a:not(.wp-block-button__link) {
	text-decoration: none;
}

.dpuk-header .wp-block-navigation a {
	position: relative;
	padding: 0.25rem 0;
	transition: color 0.2s ease;
}

.dpuk-header .wp-block-navigation a:hover {
	color: var(--dpuk-primary-ink);
}

.dpuk-header .wp-block-navigation a.is-active {
	color: var(--dpuk-ink);
	font-weight: 600;
}

.dpuk-header .wp-block-navigation a.is-active::after {
	content: "";
	position: absolute;
	bottom: -4px;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--dpuk-primary);
	border-radius: 2px;
}

/* Header never overflows: brand stays one line, links may wrap gracefully.
   The site title is the first focusable thing on the page and it measured
   91.8 x 23, one pixel under the WCAG 2.2 SC 2.5.8 minimum, so the link gets
   a 1.5rem inline-block target without changing the type size. */
.dpuk-header .wp-block-site-title {
	white-space: nowrap;
	font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
}

.dpuk-header .wp-block-site-title a {
	display: inline-flex;
	align-items: center;
	min-block-size: 1.5rem;
}

.dpuk-header .wp-block-group-is-layout-flex {
	flex-wrap: wrap;
	row-gap: 0.35rem;
}

.dpuk-header .wp-block-navigation ul,
.dpuk-header ul.wp-block-navigation__container {
	flex-wrap: wrap;
	row-gap: 0.25rem;
	column-gap: 1.25rem;
}

/* Sleek mobile header: brand left, CTA button in middle, hamburger right */
@media (max-width: 47.9375rem) {
	.dpuk-header .wp-block-group-is-layout-flex {
		flex-wrap: nowrap;
		align-items: center;
		gap: 0.65rem;
	}

	.dpuk-header .wp-block-site-title {
		font-size: 1.1rem;
	}

	/* Position Get a quote before hamburger menu on mobile */
	.dpuk-header .wp-block-buttons {
		display: flex;
		align-items: center;
		order: 1;
		margin: 0;
	}

	.dpuk-header nav {
		display: flex;
		align-items: center;
		order: 2;
	}

	.dpuk-header .wp-block-navigation__responsive-container-open {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 36px;
		height: 36px;
		padding: 5px;
		background: var(--dpuk-white);
		border: 1px solid var(--dpuk-border);
		border-radius: 8px;
		color: var(--dpuk-ink);
		cursor: pointer;
		transition:
			background-color 0.2s ease,
			border-color 0.2s ease;
	}

	.dpuk-header .wp-block-navigation__responsive-container-open:hover {
		background: var(--dpuk-alt);
		border-color: var(--dpuk-primary);
	}

	.dpuk-header .wp-block-navigation__responsive-container-open svg {
		width: 18px;
		height: 18px;
		fill: currentcolor;
	}

	.dpuk-header .wp-block-button__link {
		padding: 0.4rem 0.85rem;
		font-size: 0.825rem;
	}
}

/* Full-screen sleek mobile navigation drawer */
.wp-block-navigation__responsive-container.is-menu-open {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 100vw !important;
	height: 100vh !important;
	height: 100dvh !important;
	background: var(--dpuk-white) !important;
	z-index: 999999 !important;
	padding: 1.5rem !important;
	display: flex !important;
	flex-direction: column !important;
	overflow-y: auto !important;
	opacity: 1 !important;
	visibility: visible !important;
}

.wp-block-navigation__responsive-container.is-menu-open
	.wp-block-navigation__responsive-dialog {
	display: flex !important;
	flex-direction: column !important;
	width: 100% !important;
	max-width: 28rem !important;
	margin: 0 auto !important;
	opacity: 1 !important;
	visibility: visible !important;
}

.wp-block-navigation__responsive-container.is-menu-open
	.wp-block-navigation__responsive-container-close {
	align-self: flex-end;
	background: var(--dpuk-alt);
	border: 1px solid var(--dpuk-border);
	border-radius: 8px;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	margin-bottom: 2rem;
	color: var(--dpuk-ink);
}

.wp-block-navigation__responsive-container.is-menu-open
	.wp-block-navigation__responsive-container-close
	svg {
	width: 22px;
	height: 22px;
	fill: currentcolor;
}

.wp-block-navigation__responsive-container.is-menu-open
	ul.wp-block-navigation__container,
.wp-block-navigation.items-justified-right
	.wp-block-navigation__responsive-container.is-menu-open
	ul.wp-block-navigation__container {
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	justify-content: flex-start !important;
	gap: 0.5rem !important;
	padding: 0 !important;
	margin: 0 !important;
	list-style: none !important;
	width: 100% !important;
	max-width: 100% !important;
}

.wp-block-navigation__responsive-container.is-menu-open
	ul.wp-block-navigation__container
	li,
.wp-block-navigation.items-justified-right
	.wp-block-navigation__responsive-container.is-menu-open
	ul.wp-block-navigation__container
	li {
	width: 100% !important;
	text-align: left !important;
}

.wp-block-navigation__responsive-container.is-menu-open
	ul.wp-block-navigation__container
	li
	a,
.wp-block-navigation.items-justified-right
	.wp-block-navigation__responsive-container.is-menu-open
	ul.wp-block-navigation__container
	li
	a {
	font-family: var(--dpuk-font-heading);
	font-size: 1.35rem;
	font-weight: 600;
	color: var(--dpuk-ink);
	padding: 0.85rem 0.5rem;
	border-bottom: 1px solid var(--dpuk-border);
	display: block !important;
	width: 100% !important;
	text-decoration: none;
	text-align: left !important;
	transition:
		color 0.2s ease,
		padding-left 0.2s ease;
}

.wp-block-navigation__responsive-container.is-menu-open
	ul.wp-block-navigation__container
	li
	a:hover,
.wp-block-navigation.items-justified-right
	.wp-block-navigation__responsive-container.is-menu-open
	ul.wp-block-navigation__container
	li
	a:hover {
	color: var(--dpuk-primary-ink);
	padding-left: 0.75rem;
}

/* ---------- Hero: page-tinted base with soft organic light-blue blobs -----
   The hero sits on the page colour (--dpuk-page), never plain white, so it
   reads as a band of the brand page rather than white-on-white. No
   rectangular colour panels: depth comes only from large blurred radial
   blobs (border-radius 50%, smooth opacity falloff) in the client's light
   blue. Body text contrast over --dpuk-page is AAA. */

.dpuk-hero {
	position: relative;
	isolation: isolate;
	overflow-x: clip;
	background: var(--dpuk-page);
	padding-top: clamp(2.5rem, 5vw, 4.5rem);
	padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.dpuk-hero::before,
.dpuk-hero::after {
	content: "";
	position: absolute;
	z-index: -1;
	border-radius: 50%;
	filter: blur(60px);
	pointer-events: none;
}

.dpuk-hero::before {
	width: clamp(28rem, 60vw, 52rem);
	height: clamp(18rem, 38vw, 32rem);
	top: -12rem;
	left: -10rem;
	background: radial-gradient(
		closest-side,
		rgba(101, 148, 177, 0.22),
		rgba(101, 148, 177, 0) 72%
	);
}

.dpuk-hero::after {
	width: clamp(24rem, 55vw, 46rem);
	height: clamp(16rem, 34vw, 28rem);
	right: -10rem;
	bottom: -12rem;
	background: radial-gradient(
		closest-side,
		rgba(101, 148, 177, 0.16),
		rgba(101, 148, 177, 0) 72%
	);
}

.dpuk-hero__eyebrow {
	color: var(--dpuk-primary-ink);
	font-weight: 600;
	font-size: 0.875rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin-bottom: 1rem;
}

.dpuk-hero__grid {
	align-items: center;
	gap: 2.25rem;
}

.dpuk-hero__media figure {
	margin-bottom: 1rem;
}

.dpuk-hero__media img {
	border-radius: var(--dpuk-radius-card);
	box-shadow: var(--dpuk-shadow-lift);
	border: 1px solid var(--dpuk-border);
}

.dpuk-hero__thumbs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.dpuk-hero__thumbs figure {
	margin-bottom: 0;
}

.dpuk-hero__trust {
	margin-top: 1.25rem;
	font-size: 0.925rem;
	color: var(--dpuk-muted);
	line-height: 1.5;
}

/* Gentle hero float (motion-gated at the bottom of this file). */
@keyframes dpuk-float {
	0%,
	100% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(-8px);
	}
}

.dpuk-hero__float {
	animation: dpuk-float 7s ease-in-out infinite;
}

/* ---------- Cards: 20px radius + soft edge (no hard 1px border) ----------
   Border is transparent; the edge is a subtle inset navy hairline and a
   light shadow only, so cards stay card-white (#FFFFFF) and read as raised
   surfaces against the blue-grey page. Contrast + focus rings unchanged. */
.dpuk-card,
.wp-block-group.dpuk-card,
.dpuk-estimator,
.dpuk-quote-form,
.dpuk-enquiry-form,
.dpuk-faq {
	border-radius: var(--dpuk-radius-card);
	background: var(--dpuk-white);
	border: 1px solid transparent;
	box-shadow:
		var(--dpuk-shadow-card),
		inset 0 0 0 1px rgba(33, 61, 85, 0.08);
	padding: clamp(1.2rem, 2vw, 1.65rem);
}

/* ---------- Responsive grids: auto-fit minmax for steps/values ---------- */

.dpuk-grid {
	display: grid;
	gap: clamp(1.25rem, 3vw, 2rem);
	grid-template-columns: 1fr;
}

.dpuk-grid--steps {
	grid-template-columns: 1fr;
}

.dpuk-grid--values {
	grid-template-columns: 1fr;
}

.dpuk-grid .dpuk-card {
	padding: 1.5rem;
	margin: 0;
}

.dpuk-grid .dpuk-card h3 {
	margin-top: 0;
}

.dpuk-step-no {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	background: var(--dpuk-tint-soft);
	border: 1px solid var(--dpuk-border);
	color: var(--dpuk-primary-ink);
	font-family: var(--dpuk-font-heading);
	font-weight: 700;
	font-size: 1.15rem;
	margin-bottom: 1rem;
	box-shadow: 0 2px 6px rgba(33, 61, 85, 0.08);
}

/* Number sits in line with the card title. */
.dpuk-step-head {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
}

.dpuk-step-head > .dpuk-step-no {
	flex: none;
	margin-bottom: 0;
}

.dpuk-step-head > h3 {
	margin-top: 0;
	margin-bottom: 0;
}

/* ---------- Alternating section panels: --dpuk-alt + soft blobs ----------
   Sections alternate against the page: .dpuk-hero and the default section
   ride --dpuk-page, every .dpuk-alt band rides --dpuk-alt (one step
   darker), so no band is ever transparent or white. Depth on top of that
   flat panel comes only from round blurred blobs (border-radius 50%,
   transparent falloff, no straight edges) in the client's light blue.
   Cards stay card-white on top of either panel, so contrast is unchanged.
   overflow: clip (not hidden) contains the blobs without creating a
   scroll container, so position:sticky children keep working. */

/* Section intros: a restrained lead — clearly subordinate to the H2,
   comfortable to read, never competing with titles. */
.dpuk-lead {
	font-size: 1.125rem;
	line-height: 1.6;
	color: var(--dpuk-ink);
	max-width: 44rem;
	margin-top: 0;
}

.dpuk-alt {
	position: relative;
	isolation: isolate;
	overflow: clip;
	background-color: var(--dpuk-alt);
}

.dpuk-alt::before,
.dpuk-alt::after {
	content: "";
	position: absolute;
	z-index: -1;
	border-radius: 50%;
	filter: blur(70px);
	pointer-events: none;
	transform: translate3d(0, var(--dpuk-drift, 0), 0);
}

.dpuk-alt::before {
	width: clamp(22rem, 48vw, 40rem);
	height: clamp(14rem, 28vw, 24rem);
	top: -9rem;
	right: -11rem;
	background: radial-gradient(
		closest-side,
		rgba(101, 148, 177, 0.2),
		rgba(101, 148, 177, 0) 60%
	);
}

.dpuk-alt::after {
	width: clamp(20rem, 44vw, 36rem);
	height: clamp(13rem, 26vw, 22rem);
	bottom: -9rem;
	left: -11rem;
	background: radial-gradient(
		closest-side,
		rgba(101, 148, 177, 0.15),
		rgba(101, 148, 177, 0) 60%
	);
	transform: translate3d(0, calc(var(--dpuk-drift, 0px) * -0.6), 0);
}

/* Site footer: one faint round blob in the accent light blue over the dark
   navy panel, so the page melts into the footer without a hard seam.

   NOTE: parts/footer.html emits the panel as a plain
   `<div class="wp-block-group dpuk-footer dpuk-footer__inner">` — there is no
   <footer> element to hang a `footer.` selector off, so these rules key off
   the class alone. A `footer.wp-block-group.dpuk-footer` selector silently
   matches nothing and deletes the blob, the `overflow: clip` and the
   `isolation: isolate` that keeps axe-core from walking into the stacking
   context. `isolation` is load-bearing, not decoration. */
.wp-block-group.dpuk-footer,
footer.wp-block-group.dpuk-footer {
	position: relative;
	isolation: isolate;
	overflow: clip;
	background-color: var(--dpuk-footer-bg);
}

.wp-block-group.dpuk-footer::before,
footer.wp-block-group.dpuk-footer::before {
	content: "";
	position: absolute;
	z-index: -1;
	border-radius: 50%;
	filter: blur(70px);
	pointer-events: none;
	width: clamp(24rem, 60vw, 46rem);
	height: 16rem;
	top: -8rem;
	left: 50%;
	transform: translateX(-50%) translateY(var(--dpuk-drift, 0));
	background: radial-gradient(
		closest-side,
		rgba(101, 148, 177, 0.14),
		rgba(101, 148, 177, 0) 60%
	);
}

/* ---------- Modern FSE Block Footer ----------
   --dpuk-footer-bg is the client's dark navy (#16303F), so every text role
   inside the footer flips to the on-brand ramp: --dpuk-on-brand for
   headings and emphasis, --dpuk-on-brand-muted for secondary copy. The
   local --dpuk-muted override is a safety net so any future muted text
   dropped into the footer stays light. Borders are a white alpha hairline
   (a grey border token would read as a bright line on navy). */

.dpuk-footer {
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	background-color: var(--dpuk-footer-bg);
	--dpuk-muted: var(--dpuk-on-brand-muted);
	width: 100% !important;
	max-width: 100% !important;
	padding-left: clamp(1rem, 4vw, 4.5rem) !important;
	padding-right: clamp(1rem, 4vw, 4.5rem) !important;
}

.dpuk-footer > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
	max-width: 100% !important;
	width: 100% !important;
}

.dpuk-footer__brand {
	font-family: var(--dpuk-font-heading);
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--dpuk-on-brand);
	margin-top: 0;
	margin-bottom: 0.75rem;
}

.dpuk-footer__title {
	font-family: var(--dpuk-font-heading);
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--dpuk-on-brand);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-top: 0;
	margin-bottom: 1rem;
}

.dpuk-footer__text {
	color: var(--dpuk-on-brand-muted);
	font-size: 0.9375rem;
	line-height: 1.6;
	margin-top: 0;
	margin-bottom: 1rem;
}

.dpuk-footer__subtext {
	color: var(--dpuk-on-brand-muted);
	font-size: 0.8125rem;
	margin: 0;
}

.dpuk-footer__list {
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

.dpuk-footer__list li {
	margin-bottom: 0.625rem;
	line-height: 1.4;
}

.dpuk-footer__list a {
	color: var(--dpuk-on-brand-muted);
	text-decoration: none;
	font-size: 0.9375rem;
	transition: color 0.15s ease;
}

.dpuk-footer__list a:hover,
.dpuk-footer__list a:focus-visible {
	color: var(--dpuk-brand-light);
	text-decoration: underline;
}

.dpuk-footer__info {
	color: var(--dpuk-on-brand-muted);
	font-size: 0.875rem;
	line-height: 1.55;
	margin-top: 0;
	margin-bottom: 0.75rem;
}

.dpuk-footer__info strong {
	color: var(--dpuk-on-brand);
}

.dpuk-footer__bottom {
	color: var(--dpuk-on-brand-muted);
	font-size: 0.875rem;

	/* The inline style in parts/footer.html hard-codes var(--dpuk-border)
	   for this hairline, which would read as a bright grey line on navy. */
	border-top-color: rgba(255, 255, 255, 0.14) !important;
}

.dpuk-footer__copyright,
.dpuk-footer__badge {
	margin: 0;
	color: var(--dpuk-on-brand-muted);
}

@media (max-width: 47.9375rem) {
	.dpuk-footer__columns.wp-block-columns {
		display: flex !important;
		flex-direction: column !important;
		gap: 2rem !important;
	}

	.dpuk-footer__columns > .wp-block-column {
		flex-basis: 100% !important;
		margin: 0 !important;
	}
}

/* ---------- Section framing: content flows from the top ---------- */

#dpuk-main > section,
#dpuk-main > .wp-block-post-content > section,
#dpuk-main > .dpuk-hero,
.dpuk-hero {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	scroll-margin-top: calc(var(--dpuk-header-h) + 0.5rem);
	box-sizing: border-box;
}

#dpuk-main > section > .dpuk-section,
#dpuk-main > .wp-block-post-content > section > .dpuk-section {
	width: 100%;
	margin-top: auto;
	margin-bottom: auto;
}

.dpuk-section {
	padding-top: clamp(3rem, 7svh, 5rem);
	padding-bottom: clamp(3rem, 7svh, 5rem);
}

/* Build envelope note (How it works) */
.dpuk-envelope-note {
	margin-top: 2rem;
	margin-bottom: 0;
	font-size: 0.95rem;
	color: var(--dpuk-muted);
	line-height: 1.5;
}

.dpuk-split__footnote {
	color: var(--dpuk-muted);
	font-size: 0.875rem;
	line-height: 1.5;
	margin-top: 1rem;
	margin-bottom: 0;
}

/* Bulk & FAQ footers */
.dpuk-bulk__cta-note {
	text-align: center;
	margin-top: 2rem;
	margin-bottom: 1.25rem;
	font-size: 1rem;
	color: var(--dpuk-muted);
}

.dpuk-section .wp-block-buttons.is-content-justification-center,
.wp-block-buttons.is-content-justification-center {
	display: flex !important;
	justify-content: center !important;
	text-align: center !important;
}

.dpuk-faq__footer-note {
	text-align: center;
	margin-top: 1.75rem;
	margin-bottom: 0;
	font-size: 0.95rem;
	color: var(--dpuk-muted);
}

.dpuk-faq__footer-note a {
	color: var(--dpuk-primary-ink);
	font-weight: 600;
	text-decoration: underline;
}

/* ---------- Pill buttons ----------
   Brand navy fill + white text on every pill button, hover/focus on the
   deeper navy. Declared here as well as in theme.json so core button
   markup, hand-written markup and the block editor preview all agree. */

.wp-element-button,
.wp-block-button__link,
.wp-block-search__button,
button[type="submit"] {
	border-radius: var(--dpuk-radius-pill) !important;
	font-family: var(--dpuk-font-heading);
	font-weight: 600;
	background: var(--dpuk-primary);
	border-color: var(--dpuk-primary);
	color: var(--dpuk-on-brand);
	transition:
		transform 0.25s ease,
		box-shadow 0.25s ease,
		background-color 0.25s ease,
		border-color 0.25s ease;
}

.wp-element-button:hover,
.wp-block-button__link:hover,
.wp-block-search__button:hover,
button[type="submit"]:hover,
.wp-element-button:focus-visible,
.wp-block-button__link:focus-visible,
.wp-block-search__button:focus-visible,
button[type="submit"]:focus-visible {
	background: var(--dpuk-primary-dark);
	border-color: var(--dpuk-primary-dark);
	color: var(--dpuk-on-brand);
}

.wp-block-button__link:hover,
.wp-element-button:hover,
button[type="submit"]:hover {
	transform: translateY(-2px);
	box-shadow: var(--dpuk-shadow-lift);
}

.wp-block-button.is-style-outline .wp-block-button__link,
.wp-block-button.is-style-outline .wp-element-button {
	background: transparent;
	border: 2px solid var(--dpuk-primary);
	color: var(--dpuk-primary-ink);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-element-button:hover {
	background: var(--dpuk-tint-soft);
	border-color: var(--dpuk-primary-dark);
	color: var(--dpuk-primary-ink);
}

/* ---------- Card hover lift ---------- */

.dpuk-lift {
	transition:
		transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
		box-shadow 0.28s ease;
}

.dpuk-lift:hover {
	transform: translateY(-4px);
	box-shadow: var(--dpuk-shadow-lift);
}

/* ---------- Scroll fade-up: VISIBLE by default (no-JS safe) ----------
   .dpuk-fade-up only ever hides after JS adds .dpuk-js to <html>
   (see assets/js/view.js). If JS is blocked or fails, content
   stays visible. This inverts the old opacity:0-first footgun. */
.dpuk-fade-up {
	opacity: 1;
	transform: none;
}

.dpuk-js .dpuk-fade-up {
	opacity: 0;
	transform: translateY(16px);
	transition:
		opacity 0.6s ease,
		transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.dpuk-js .dpuk-fade-up.is-visible {
	opacity: 1;
	transform: none;
}

/* ---------- Tables: scroll wrapper + readable styling ---------- */

.wp-block-table {
	overflow-x: auto;
	margin: 1.25rem 0 2rem;
}

.wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
	font-size: 0.95rem;
}

.wp-block-table th,
.wp-block-table td {
	padding: 0.85rem 1.15rem;
	border: 1px solid var(--dpuk-border);
	text-align: left;
	vertical-align: top;
	overflow-wrap: break-word;
}

.wp-block-table thead th {
	background: var(--dpuk-tint-soft);
	color: var(--dpuk-ink);
	font-family: var(--dpuk-font-heading);
	font-weight: 600;
	border-bottom: 2px solid var(--dpuk-border);
}

.wp-block-table tbody tr:last-child th,
.wp-block-table tbody tr:last-child td {
	border-bottom: 1px solid var(--dpuk-border);
}

/* ---------- Quotes / Policy callouts ---------- */

.wp-block-quote {
	border-inline-start: 4px solid var(--dpuk-secondary, #6594b1);
	background-color: var(--dpuk-tint-soft, #e1ebf2);
	padding: 1.1rem 1.35rem;
	border-radius: 0 10px 10px 0;
	margin-block: 1.25rem 1.75rem;
	color: var(--dpuk-ink, #213c51);
	font-size: 0.95rem;
	line-height: 1.6;
}

.wp-block-quote p {
	margin: 0 0 0.5rem;
}

.wp-block-quote p:last-child {
	margin-bottom: 0;
}

/* ---------- Policy Table of Contents card ---------- */

.dpuk-policy-toc {
	background-color: var(--dpuk-white, #fff);
	border: 1px solid var(--dpuk-border, #c6d4de);
	border-radius: 14px;
	padding: 1.35rem 1.75rem;
	margin-block: 1.5rem 2.25rem;
	box-shadow: 0 2px 10px rgba(33, 60, 81, 0.05);
}

.dpuk-policy-toc h2 {
	font-size: 1.2rem;
	margin-top: 0;
	margin-bottom: 0.75rem;
	color: var(--dpuk-ink, #213c51);
	border-bottom: 1px solid var(--dpuk-border, #c6d4de);
	padding-bottom: 0.5rem;
}

.dpuk-policy-toc ol {
	margin-block: 0.5rem 0.25rem;
}

/* ---------- Separators ---------- */

.wp-block-separator {
	border: none;
	border-top: 1px solid var(--dpuk-border, #c6d4de);
	margin-block: 2.25rem;
	opacity: 0.85;
}

/* ---------- Forms: labels, inputs, fieldset, range, errors ----------
   All text inputs/selects/buttons meet a 44px (2.75rem) target. */

.dpuk-form p {
	margin-bottom: 0.9rem;
}

.dpuk-form-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0 1.25rem;
}

@media (min-width: 48rem) {
	.dpuk-form-grid {
		grid-template-columns: 1fr 1fr;
	}

	.dpuk-form-grid__full {
		grid-column: 1 / -1;
	}
}

.dpuk-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.35rem;
	font-size: 0.9375rem;
}

.dpuk-form label input[type="checkbox"],
.dpuk-form label input[type="radio"] {
	display: inline-block;
	vertical-align: middle;
	margin: 0 0.5rem 0 0;
}

.dpuk-form input[type="text"],
.dpuk-form input[type="email"],
.dpuk-form input[type="tel"],
.dpuk-form input[type="number"],
.dpuk-form input[type="url"],
.dpuk-form select,
.dpuk-form textarea,
.dpuk-estimator select {
	box-sizing: border-box;
	display: block;
	width: 100%;
	max-width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid var(--dpuk-border);
	border-radius: var(--dpuk-radius-input);
	background: var(--dpuk-white);
	color: var(--dpuk-ink);
	font: inherit;
	font-size: 1rem;
	line-height: 1.5;
}

.dpuk-form input[type="text"],
.dpuk-form input[type="email"],
.dpuk-form input[type="tel"],
.dpuk-form input[type="number"],
.dpuk-form input[type="url"],
.dpuk-form select,
.dpuk-estimator select {
	min-height: 2.75rem;
}

.dpuk-form textarea {
	min-height: 7rem;
	resize: vertical;
}

.dpuk-form input::placeholder {
	color: var(--dpuk-muted);
	opacity: 1;
}

.dpuk-form input:hover,
.dpuk-form select:hover,
.dpuk-form textarea:hover {
	border-color: var(--dpuk-primary);
}

.dpuk-form fieldset {
	border: 1px solid var(--dpuk-border);
	border-radius: var(--dpuk-radius-card);
	padding: 1.5rem 1.25rem 0.5rem;
	margin: 0 0 1.5rem;
	background: var(--dpuk-alt);
}

.dpuk-form legend {
	padding: 0 0.5rem;
	font-weight: 700;
	font-family: var(--dpuk-font-heading);
}

/* Visually hide legend in quote form because the wizard progress tabs already label each step clearly */
.dpuk-quote-form legend {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

span[data-step-heading]:focus {
	outline: none;
}

/* Range slider: full-width, keyboard-operable, 44px touch target. */
.dpuk-form input[type="range"],
.dpuk-estimator input[type="range"] {
	width: 100%;
	min-height: 2.75rem;
	accent-color: var(--dpuk-primary);
	cursor: pointer;
}

/* Checkboxes/radios: 24px box (WCAG 2.2 SC 2.5.8 minimum), brand accent.
   The enquiry form's consent box carries no class at all, so the size has to
   live on the type selector as well as on .dpuk-option__input /
   .dpuk-check__input. `accent-color` keeps the rendered control on-brand. */
.dpuk-form input[type="checkbox"],
.dpuk-form input[type="radio"],
.dpuk-estimator input[type="checkbox"],
.dpuk-estimator input[type="radio"],
input.dpuk-option__input,
input.dpuk-check__input {
	min-inline-size: 1.5rem;
	min-block-size: 1.5rem;
	accent-color: var(--dpuk-primary);
	flex-shrink: 0;
}

.dpuk-form small,
.dpuk-form__meta {
	display: block;
	margin-top: 0.5rem;
	color: var(--dpuk-muted);
	font-size: 0.875rem;
}

.dpuk-form button[type="submit"] {
	display: inline-block;
	min-height: 2.75rem;
	padding: 0.75rem 2rem;
	border: none;
	background: var(--dpuk-primary);
	color: var(--dpuk-on-brand);
	cursor: pointer;
}

.dpuk-form button[type="submit"]:hover {
	background: var(--dpuk-primary-dark);
}

.dpuk-form button[type="submit"]:disabled,
.dpuk-form button[type="submit"].is-submitting {
	background: var(--dpuk-brand-light-deep) !important;
	opacity: 0.88;
	cursor: not-allowed !important;
	pointer-events: none;
}

.dpuk-spinner {
	display: inline-block;
	width: 0.95rem;
	height: 0.95rem;
	vertical-align: -0.12rem;
	margin-right: 0.5rem;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: dpuk-spin 0.7s linear infinite;
}

@keyframes dpuk-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Inline error summary. --dpuk-error on --dpuk-error-bg is 6.57:1 (AAA),
   and the 1px currentcolor ring keeps the box edge visible without a
   second hard-coded colour. */
.dpuk-form__errors {
	background: var(--dpuk-error-bg);
	color: var(--dpuk-error);
	border: 1px solid currentcolor;
	border-radius: var(--dpuk-radius-input);
	padding: 0.45rem 0.8rem;
	margin: 0.5rem 0;
	font-size: 0.8125rem;
	line-height: 1.4;
	font-weight: 500;
}

.dpuk-form__errors[hidden] {
	display: none !important;
}

.dpuk-form input[aria-invalid="true"],
.dpuk-form select[aria-invalid="true"],
.dpuk-form textarea[aria-invalid="true"] {
	border-color: var(--dpuk-error) !important;
	background: var(--dpuk-error-bg);
}

.dpuk-form input[aria-invalid="true"]:focus,
.dpuk-form select[aria-invalid="true"]:focus,
.dpuk-form textarea[aria-invalid="true"]:focus {
	outline: 2px solid var(--dpuk-error) !important;
	outline-offset: 1px;
}

.dpuk-form input[type="checkbox"][aria-invalid="true"] {
	outline: 2px solid var(--dpuk-error);
	outline-offset: 2px;
}

/* Inline success banner with reference badge */
.dpuk-form__success {
	background: var(--dpuk-success-bg);
	color: var(--dpuk-success);
	border: 1px solid var(--dpuk-success);
	border-radius: var(--dpuk-radius-input);
	padding: 0.65rem 0.85rem;
	margin-top: 1rem;
	font-size: 0.8125rem;
}

.dpuk-form__success[hidden] {
	display: none;
}

.dpuk-form__success h4 {
	margin: 0 0 0.35rem 0;
	color: var(--dpuk-success);
	font-size: 0.9375rem;
	font-weight: 700;
}

.dpuk-form__success p {
	margin: 0 0 0.35rem 0;
	font-size: 0.8125rem;
	line-height: 1.45;
	color: #0f4a2d;
}

.dpuk-form__success p:last-child {
	margin-bottom: 0;
}

.dpuk-form__success .dpuk-ref-badge {
	display: inline-block;
	background: #fff;
	color: #0f4a2d;
	padding: 0.1rem 0.45rem;
	border-radius: 4px;
	border: 1px solid var(--dpuk-success);
	font-family: monospace;
	font-size: 0.8125rem;
	font-weight: 700;
	margin: 0.15rem 0;
}

.dpuk-form__envelope {
	background: var(--dpuk-tint-soft);
	border: 1px solid var(--dpuk-border);
	border-radius: var(--dpuk-radius-input);
	padding: 0.75rem 1rem;
	margin-bottom: 1.25rem;
}

.dpuk-form__honeypot {
	display: none !important;
	margin: 0 !important;
	padding: 0 !important;
	height: 0 !important;
	line-height: 0 !important;
}

/* ============================================================
   Form v2 shared components (docs/form-v2-contract.md §2)

   The estimator and the quote wizard both render their fields from
   this one vocabulary, so everything shared lives together here.
   These rules are written to come AFTER the older `.dpuk-form …`
   block above: several of them deliberately out-specify an older
   selector (for example `.dpuk-form label` styling every label in
   the enquiry form, and `.dpuk-form fieldset` styling the wizard
   step panels) without needing !important.
   ============================================================ */

/* ---------- Field wrapper (contract §2.2) ---------- */

/* The wrapper is a <p> inside .dpuk-form and a <fieldset> when it groups
   options, so both forms are listed to get the same outer rhythm. */
.dpuk-field,
.dpuk-form .dpuk-field {
	margin: 0 0 1.15rem;
}

/* Both forms nest a fieldset.dpuk-field inside fieldset[data-step], which
   `.dpuk-form fieldset` above paints as a step panel (border, fill,
   padding). A group fieldset must not inherit any of that. */
fieldset.dpuk-field,
.dpuk-form fieldset.dpuk-field {
	border: 0;
	margin: 0 0 1.15rem;
	padding: 0;
	min-inline-size: 0;
	background: transparent;
}

/* Every .dpuk-field__label is a real <label for=…> target, and several of
   them (the estimator's "Model weight" measured 183 x 21) sat a few pixels
   under the WCAG 2.2 SC 2.5.8 minimum. A flex row with `align-items: center`
   clears 24px and still contains a wrapped second line.
   `min-block-size` rather than `height` so nothing is ever clipped. */
.dpuk-field__label,
.dpuk-form label.dpuk-field__label {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	min-block-size: 1.5rem;
	margin: 0 0 0.3rem;
	font-family: var(--dpuk-font-heading);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--dpuk-ink);
}

/* A group fieldset labels itself with <legend class="dpuk-field__label">.
   `.dpuk-quote-form legend` hides every legend in the wizard (the progress
   tabs already label each step), so this restores the group legends — and
   the padding that `.dpuk-form legend` adds — without un-hiding the step
   headings or the `.screen-reader-text` legends. */
legend.dpuk-field__label,
.dpuk-quote-form legend.dpuk-field__label,
.dpuk-estimator legend.dpuk-field__label {
	position: static;
	inline-size: auto;
	block-size: auto;
	margin: 0 0 0.35rem;
	padding: 0;
	overflow: visible;
	clip-path: none;
	clip: auto;
	white-space: inherit;
}

.dpuk-field__hint,
.dpuk-form small.dpuk-field__hint {
	display: block;
	margin: 0.3rem 0 0;
	color: var(--dpuk-muted);
	font-size: 0.875rem;
	line-height: 1.5;
}

/* Compliance / Consent checkbox: consistent across Enquiry and Quote forms */
.dpuk-consent-wrap,
.dpuk-quote-form .dpuk-consent-wrap,
.dpuk-form .dpuk-consent-wrap {
	margin-top: 1.75rem !important;
	margin-bottom: 1.25rem !important;
}

.dpuk-consent-label,
.dpuk-form label.dpuk-consent-label,
.dpuk-quote-form label.dpuk-consent-label,
.dpuk-field__check,
.dpuk-form label.dpuk-field__check {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	margin: 0;
	font-family: var(--dpuk-font-body);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.5;
	color: var(--dpuk-ink);
	cursor: pointer;
}

.dpuk-consent-label input[type="checkbox"],
.dpuk-field__check input[type="checkbox"],
input.dpuk-check__input {
	inline-size: 1.35rem;
	min-inline-size: 1.35rem;
	block-size: 1.35rem;
	min-block-size: 1.35rem;
	margin: 0.15rem 0 0;
	accent-color: var(--dpuk-primary);
	flex-shrink: 0;
	cursor: pointer;
}

/* Text inputs, number inputs, search inputs and textareas all carry
   .dpuk-input; textareas additionally carry .dpuk-textarea. */
.dpuk-input,
.dpuk-textarea {
	display: block;
	inline-size: 100%;
	max-inline-size: 100%;
	min-block-size: 2.75rem;
	padding: 0.7rem 0.9rem;
	border: 1px solid var(--dpuk-border);
	border-radius: var(--dpuk-radius-input);
	background: var(--dpuk-white);
	color: var(--dpuk-ink);
	font: inherit;
	font-size: 1rem;
	line-height: 1.5;
	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}

.dpuk-textarea {
	min-block-size: 7rem;
	resize: vertical;
}

.dpuk-input::placeholder,
.dpuk-textarea::placeholder {
	color: var(--dpuk-muted);
	opacity: 1;
}

/* Focus ring is the brand navy, matching the global :focus-visible ring. */
.dpuk-input:focus-visible,
.dpuk-textarea:focus-visible {
	border-color: var(--dpuk-focus);
	outline: 2px solid var(--dpuk-focus);
	outline-offset: 1px;
	box-shadow: 0 0 0 4px rgba(33, 61, 85, 0.12);
}

/* Server-side / JS-side validation marks the control; `:user-invalid`
   covers native constraint validation (the wizard form is novalidate, so
   the inline .dpuk-form__errors summary remains the primary signal).
   No .is-invalid class is written by the block JS. */
.dpuk-input:user-invalid,
.dpuk-textarea:user-invalid,
.dpuk-input[aria-invalid="true"],
.dpuk-textarea[aria-invalid="true"] {
	border-color: var(--dpuk-error);
	background: var(--dpuk-error-bg);
}

/* ---------- Option cards (contract §2.1) ----------
   Grid order is `radio | label | tip`, so the tooltip trigger is never
   inside the <label> and never swallows the click target. */

/* auto-fit rather than a fixed 2/3 split: a two-option group sits side by
   side as soon as the group is 13rem wide and collapses to one column below
   it. The track floor is 13rem, NOT 15rem — at 15rem two columns need
   490.4px and the estimator's inner width was 484px, so every option group
   silently fell to a single 484px column and the card grew to two lines.
   `min(100%, …)` is what keeps 320px reflow intact (SC 1.4.10). */
.dpuk-options {
	display: grid;
	gap: 0.5rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr));
}

.dpuk-option {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 0.65rem;
	background: var(--dpuk-white);
	border: 1px solid var(--dpuk-border);
	border-radius: var(--dpuk-radius-input);
	transition:
		border-color 0.15s ease,
		background-color 0.15s ease,
		box-shadow 0.15s ease;
}

.dpuk-option:hover {
	border-color: var(--dpuk-border-strong);
}

/* Checked state is derived in CSS from the real input state — no JS class
   toggle — so it cannot drift out of sync with the form data. */
.dpuk-option:has(> .dpuk-option__input:checked) {
	border-color: var(--dpuk-primary);
	background: var(--dpuk-tint-soft);
	box-shadow: 0 2px 10px rgba(33, 61, 85, 0.12);
}

.dpuk-option:has(> .dpuk-option__input:focus-visible) {
	border-color: var(--dpuk-focus);
	box-shadow: 0 0 0 3px rgba(33, 61, 85, 0.22);
}

/* 24px target (SC 2.5.8). The global `.dpuk-form input[type=…]` rule also
   sets this, but it is repeated here so the card keeps a 24px radio even if
   it is ever dropped into a non-.dpuk-form wrapper. */
.dpuk-option > .dpuk-option__input {
	inline-size: 1.5rem;
	block-size: 1.5rem;
	min-inline-size: 1.5rem;
	min-block-size: 1.5rem;
	margin: 0;
	padding: 0;
	accent-color: var(--dpuk-primary);
	flex: none;
	justify-self: start;
}

/* The card label is a real click target as well as the radio. At one line of
   1rem/1.35 it measured 21.6px tall, just under SC 2.5.8, so it gets the same
   1.5rem floor as every other label on the site. */
.dpuk-option .dpuk-option__label,
.dpuk-form .dpuk-option__label {
	display: flex;
	align-items: center;
	min-block-size: 1.5rem;
	min-width: 0;
	margin: 0;
	padding: 0;
	font-family: var(--dpuk-font-body);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.35;
	color: var(--dpuk-ink);
	cursor: pointer;
}

.dpuk-option__title {
	display: inline-block;
	font-family: var(--dpuk-font-heading);
	font-weight: 600;
	color: var(--dpuk-ink);
	white-space: nowrap;
	flex-shrink: 0;
}

/* The card label stays on ONE single clean line (title + price/meta).
   No wrapping onto a second line. */
.dpuk-option__label-text {
	display: flex;
	align-items: baseline;
	gap: 0.4rem;
	flex-wrap: nowrap;
	min-inline-size: 0;
	white-space: nowrap;
}

.dpuk-option__meta {
	margin-top: 0;
	font-size: 0.875rem;
	color: var(--dpuk-muted);
	white-space: nowrap;
	flex-shrink: 0;
}

/* Meta stays inline with the title on the same baseline. */
.dpuk-option__meta:is(span, div) {
	display: inline;
	white-space: nowrap;
}

.dpuk-option__label > .dpuk-option__meta {
	display: inline;
	white-space: nowrap;
	margin-inline-start: 0.35rem;
}

.dpuk-option:has(> .dpuk-option__input:checked) .dpuk-option__title {
	color: var(--dpuk-brand-night);
}

/* ---------- Tooltips (contract §2.1) ----------
   WCAG 1.4.13 content-on-hover is satisfied in CSS: the bubble is hidden
   until hover, keyboard focus or the `.is-open` class that
   assets/js/view.js toggles; it stays inside the hovered wrapper so the
   pointer can travel onto it (hoverable) and it does not auto-dismiss. */

.dpuk-tip {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	justify-self: end;
}

.dpuk-tip__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 1.6rem;
	block-size: 1.6rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--dpuk-muted);
	cursor: help;
	transition:
		background-color 0.15s ease,
		color 0.15s ease;
}

.dpuk-tip__btn:hover {
	background: var(--dpuk-tint-soft);
	color: var(--dpuk-primary-ink);
}

.dpuk-tip__btn:focus-visible {
	outline: 2px solid var(--dpuk-focus);
	outline-offset: 2px;
	color: var(--dpuk-primary-ink);
}

.dpuk-tip__icon {
	inline-size: 1rem;
	block-size: 1rem;
}

.dpuk-tip__body {
	position: absolute;
	top: calc(100% + 0.5rem);
	left: 0;
	z-index: 60;

	/* `inline-size: max-content` is load-bearing, not cosmetic. An absolutely
	   positioned box sizes itself from its containing block — here the 1.6rem
	   `.dpuk-tip` grid item — so without this the bubble shrink-wraps to 1.6rem
	   and every word wraps to one character per line. max-inline-size then
	   caps the result, and `wrap: pretty` keeps the last line from being a
	   single orphan word. */
	inline-size: max-content;
	max-inline-size: min(18rem, 72vw);
	padding: 0.7rem 0.85rem;
	border: 1px solid var(--dpuk-border-strong);
	border-radius: 10px;
	background: var(--dpuk-white);
	box-shadow: var(--dpuk-shadow-lift);
	color: var(--dpuk-ink);
	font-family: var(--dpuk-font-body);
	font-size: 0.875rem;
	font-weight: 400;
	line-height: 1.5;
	text-align: left;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	pointer-events: none;
	transition:
		opacity 0.16s ease,
		transform 0.16s ease,
		visibility 0.16s;
}

.dpuk-tip:hover > .dpuk-tip__body,
.dpuk-tip:focus-within > .dpuk-tip__body,
.dpuk-tip.is-open > .dpuk-tip__body {
	opacity: 1;
	visibility: visible;
	transform: none;

	/* Hoverable: the bubble must accept the pointer so it can be read
	   without the wrapper firing mouseleave. */
	pointer-events: auto;
}

/* Right-align the bubble of the last option in a row so a long tooltip
   never pushes a horizontal scrollbar onto the page. */
.dpuk-option:last-child .dpuk-tip__body {
	right: 0;
	left: auto;
}

/* Coarse-pointer / narrow-viewport fallback: tap opens a bubble anchored to
   the option card.

   The previous fallback dissolved the wrapper with `display: contents` and
   promoted every .dpuk-tip__body to static, always-visible helper text
   inside the option card. That cost 502px at 375px and 599px at 320px of
   tooltip copy on a form with 6-12 tips, and it duplicated what the bubble
   already says.

   assets/js/view.js already binds tap-to-open (.is-open), outside-tap,
   Escape and scroll-to-close, so the same bubble works on touch: it stays
   hidden until one of those fires.

   WHY THIS IS NOT `position: fixed`
   ---------------------------------
   A bottom sheet (`position: fixed; inset-inline: 1rem; margin-inline: auto`)
   was tried and measured landing ~1,000px BELOW the fold. The cause is not
   the sheet: it is the scroll reveal. `.dpuk-fade-up` animates `opacity` and
   `transform: translateY(16px)` (see the .dpuk-js block above), and a
   non-`none` transform or a fractional opacity on an ancestor makes that
   ancestor the CONTAINING BLOCK for `position: fixed` descendants. Tall
   sections oscillate around the reveal threshold on a phone, so at exactly
   the moment a user is looking at the card and taps it, the fixed box is
   positioned against the section instead of the viewport.

   Anchoring to the card instead is immune to that (the whole subtree moves
   with the transform, so the bubble stays visually correct) and it is the
   only variant that cannot overflow horizontally:

     .dpuk-tip is set to `position: static` so the bubble's containing block
     is `.dpuk-option` (position: relative) rather than the 1.6rem trigger;
     `left: 0; right: 0` then spans the card exactly, so the bubble is always
     inside the card's own box at 320px and at 1920px alike.

   Cost: no full-viewport scrim, and the bubble overlays the next card
   instead of floating at the bottom of the screen. Both are the honest
   trade for a bubble that is in the right place at the moment it opens. */
@media (hover: none), (max-width: 47.9375rem) {
	.dpuk-option {
		position: relative;
	}

	/* keep the trigger on the card's own row (radio | label | tip) */
	.dpuk-tip {
		display: inline-flex;
		position: static;
	}

	/* Listed alongside the :last-child override above so it out-specifies
	   `.dpuk-option:last-child .dpuk-tip__body { right: 0; left: auto }`
	   — a media query adds no specificity of its own. */
	.dpuk-tip__body,
	.dpuk-option:last-child .dpuk-tip__body {
		position: absolute;
		top: calc(100% - 0.4rem);
		left: 0;
		right: 0;
		bottom: auto;
		max-inline-size: none;
		inline-size: auto;
		margin: 0;
		padding: 0.6rem 0.75rem;
		border: 1px solid var(--dpuk-border-strong);
		border-radius: 10px;
		background: var(--dpuk-white);
		box-shadow: var(--dpuk-shadow-lift);
		color: var(--dpuk-ink);
		font-size: 0.8125rem;
		line-height: 1.5;
		overflow-wrap: anywhere;
		z-index: 20;
		opacity: 0;
		visibility: hidden;
		transform: translateY(-4px);
		pointer-events: none;
		transition:
			opacity 0.16s ease,
			transform 0.16s ease,
			visibility 0.16s;
	}

	.dpuk-tip:hover > .dpuk-tip__body,
	.dpuk-tip:focus-within > .dpuk-tip__body,
	.dpuk-tip.is-open > .dpuk-tip__body,
	.dpuk-option:last-child .dpuk-tip:hover > .dpuk-tip__body,
	.dpuk-option:last-child .dpuk-tip:focus-within > .dpuk-tip__body,
	.dpuk-option:last-child .dpuk-tip.is-open > .dpuk-tip__body {
		opacity: 1;
		visibility: visible;
		transform: none;

		/* Hoverable: the pointer can travel onto the bubble to read it
		   without the wrapper firing mouseleave. */
		pointer-events: auto;
	}
}

/* ---------- Colour picker: one trigger, one popover (contract §2.3) ----------

   render.php emits one trigger button per colour mode — single (radio) and
   multi (checkbox) — and hides the other with `hidden`. The 30 Bambu PLA
   Basic chips live in a popover anchored under that trigger, so the closed
   state costs one 2.75rem row. The always-open palette it replaced was the
   largest block on wizard step 2: 1920px at 320 wide, 884px at 1440x900 —
   more than every other field on the step combined, and the customer had to
   scroll past 30 colours to reach the requirements box.

   view.js owns the open state end to end. Hover, focus and click all write
   `hidden` on .dpuk-colour__pop and `is-open` on the wrapper; nothing here
   uses `:hover` to reveal the panel. That is deliberate for coarse pointers,
   where a synthetic :hover sticks after a tap and the popover would hang
   around the finger — on `(hover: none)` the JS skips hover-open entirely
   and tap is the only route in. */

/* `[hidden]` *is* the open/closed mechanism for both the inactive mode and
   the closed panel, and any author `display` out-specifies the UA rule for
   it. Without these guards the hidden picker would still be laid out. */
.dpuk-colour[hidden],
.dpuk-colour__pop[hidden] {
	display: none;
}

/* The popover is positioned against this box, so it must be the containing
   block. It shrink-wraps the trigger (`fit-content`) rather than spanning
   the row: view.js opens the panel on wrapper hover, so a full-width wrapper
   made the whole row — including empty space beside the pill — a hover
   target that popped the palette open. `min-inline-size: 0` keeps a long
   colour name from forcing the field wider than its column. */
.dpuk-colour {
	position: relative;
	inline-size: fit-content;
	max-inline-size: 100%;
	min-inline-size: 0;
}

/* Belt and braces: the wrapper is `position: relative`, so when the panel is
   up this lifts the whole picker above the wizard nav and anything else in
   the step it would otherwise sit behind. */
.dpuk-colour.is-open {
	z-index: 70;
}

/* Narrow screens keep the wrapper full width so the panel below can fill
   the field edge to edge. A shrink-wrapped wrapper would squeeze the panel
   into the pill's ~170px and stack 30 colours into an unusable tall ribbon.
   The row-wide hover zone this restores is moot where it matters: coarse
   pointers never hover-open (tap is the only route in), and ≤34rem fine
   pointers are a vanishingly small window. */
@media (max-width: 34rem) {

	.dpuk-colour {
		inline-size: auto;
	}
}

/* ---------- Trigger ----------
   The only thing the customer sees when the picker is closed, so it has to
   read as one small control rather than a full-width input. Content-sized at
   every width and capped at the panel width, so the hit target hugs the
   chips and the name instead of spanning the whole row. `min-block-size:
   2.75rem` keeps a comfortable 44px target, well clear of the WCAG 2.2 SC
   2.5.8 24px minimum. */
.dpuk-colour__trigger {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	inline-size: fit-content;
	max-inline-size: min(24rem, 100%);
	min-block-size: 2.75rem;
	padding: 0.4rem 0.85rem;
	border: 1px solid var(--dpuk-border);
	border-radius: var(--dpuk-radius-input);
	background: var(--dpuk-white);
	color: var(--dpuk-ink);
	font-family: var(--dpuk-font-heading);
	font-size: 0.9375rem;
	line-height: 1.3;
	text-align: start;
	cursor: pointer;
	transition:
		background-color 0.18s ease,
		border-color 0.18s ease;
}

.dpuk-colour__trigger:hover {
	border-color: var(--dpuk-border-strong);
}

/* Focus and open share one ring, and `border-radius` restated because the
   global `button:focus-visible` rule carries a 4px radius at lower
   specificity than the ring it also shares. The open state additionally
   fills, so it is obvious the popover is up even when the pointer has
   wandered off the trigger. */
.dpuk-colour__trigger:focus-visible,
.dpuk-colour__trigger[aria-expanded="true"] {
	border-radius: var(--dpuk-radius-input);
	outline: 2px solid var(--dpuk-focus);
	outline-offset: 2px;
}

.dpuk-colour__trigger[aria-expanded="true"] {
	border-color: var(--dpuk-primary);
	background: var(--dpuk-tint-soft);
}

/* ---------- Chips on the trigger ----------
   JS empties .dpuk-colour__chips and refills it with one chip per chosen
   colour — one in single mode, up to four in multi. `flex: none` keeps the
   chip row out of the label's shrink calculation so a long name truncates
   instead of squashing the circles. */
.dpuk-colour__chips {
	display: inline-flex;
	align-items: center;
	flex: none;
	gap: 0.2rem;
}

.dpuk-colour__chip {
	display: inline-block;
	flex: none;
	inline-size: 1.35rem;
	block-size: 1.35rem;
	border-radius: 50%;
	background: var(--swatch, var(--dpuk-surface));

	/* Jade White (#fff) and the pale greys would otherwise vanish into the
	   white control. Same hairline the grid chips use. */
	box-shadow: inset 0 0 0 1px rgba(33, 61, 85, 0.2);
}

/* Overlap the stack so four multi-colour choices still fit one compact
   control. -0.45rem against a 0.2rem gap is a 4px overlap on a 21.6px chip,
   so every circle keeps most of its own area. */
.dpuk-colour__chips > .dpuk-colour__chip + .dpuk-colour__chip {
	margin-inline-start: -0.45rem;
}

/* ---------- Trigger label ----------
   The label wraps; it is never truncated.

   Multi-colour joins up to four names with " + ", so an ellipsised line can
   hide two of the four colours the customer just chose. Truncation is also
   simply not available here: WCAG 1.4.12 requires the text to survive the
   user's spacing overrides intact, and a two-line clamp plus
   `max-block-size` silently clips the moment letter-spacing widens the
   string — which is exactly what the spacing-override check caught at 375px.

   So: no clamp, no fixed height, no ellipsis. Let it wrap and let the trigger
   grow with it. `flex: 0 1 auto` + `min-inline-size: 5.5rem` keeps the control
   shrinkable while holding a usable footprint before JS fills the label in. */
.dpuk-colour__trigger-label {
	flex: 0 1 auto;
	min-inline-size: 5.5rem;
	overflow-wrap: break-word;
	color: var(--dpuk-ink);
	font-family: var(--dpuk-font-heading);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.25;
}

/* ---------- Caret ----------
   `margin-inline-start: auto` pins it to the trailing edge however short the
   label is. Rotating rather than swapping glyphs means one transition covers
   both directions. */
.dpuk-colour__caret {
	flex: none;
	margin-inline-start: auto;
	transition: transform 0.18s ease;
}

/* The caret points at the panel, so it tracks placement rather than the open
   state. Rotating on `[aria-expanded]` was wrong: the panel almost always
   opens BELOW the trigger, so the chevron spent its open state pointing away
   from the palette. `.is-above` (below) is the only case that flips it. */

/* ---------- Popover ----------
   The panel takes a DEFINITE width, not `max-content`, and that distinction
   matters. The swatch grid is `repeat(auto-fill, minmax(1.75rem, 1fr))`, and
   `auto-fill` needs a resolved inline size to count tracks against. Under
   `max-content` the intrinsic width of an `fr` track collapses toward zero,
   so the grid counted two columns and the 30 swatches stacked into a 756px
   ribbon instead of three tidy rows. A definite `inline-size` is what lets
   `auto-fill` do its job.

   `min(24rem, calc(100vw - 2rem))` keeps the panel clear of the viewport on a
   phone. At the 24rem ceiling the grid fits 11 tracks, so 30 colours resolve
   to three rows and the whole palette is on screen at once.

   Below 34rem the panel goes edge to edge inside the field instead, because
   the picker sits in the right-hand column of a ~700px card that is nearly
   full width at 320-414px, and a left-anchored 24rem panel would leave the
   viewport there. `inline-size: auto` with both insets at 0 makes it fill the
   field; that width is still definite (it resolves against the field, not
   against content) so `auto-fill` keeps working. */
.dpuk-colour__pop {
	position: absolute;
	inset-inline-start: 0;
	top: calc(100% + 0.4rem);
	z-index: 70;
	inline-size: min(24rem, calc(100vw - 2rem));
	padding: 1rem 1.1rem 0.9rem;
	border: 1px solid var(--dpuk-border-strong);
	border-radius: var(--dpuk-radius-input);
	background: var(--dpuk-white);
	box-shadow: var(--dpuk-shadow-lift);
	color: var(--dpuk-ink);
	font-size: 0.9375rem;
	line-height: 1.5;
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	transition:
		opacity 0.22s ease,
		transform 0.22s ease,
		visibility 0.22s;
}

/* Fade-out state: view.js adds this on dismiss and only sets `hidden` once
   the transition has run, so the panel dissolves instead of snapping away. */
.dpuk-colour__pop.is-closing {
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	pointer-events: none;
}

/* Invisible hover bridge over the 0.4rem gap between trigger and panel.
   Without it the pointer briefly leaves the picker mid-travel, the wrapper
   fires mouseleave, and a hover-opened panel snaps shut before it is
   reached — which is why hover alone never seemed to stick. The bridge is
   part of the panel so the travel counts as staying inside the picker. */
.dpuk-colour__pop::before {
	content: "";
	position: absolute;
	inset-inline: 0;
	top: -0.6rem;
	block-size: 0.6rem;
	background: transparent;
}

@media (max-width: 34rem) {

	.dpuk-colour__pop {
		inset-inline: 0;
		inline-size: auto;
		max-inline-size: none;
		padding: 0.75rem 0.8rem;
	}
}

@media (min-width: 34.0625rem) and (max-width: 47.9375rem), (hover: none) and (pointer: coarse) and (min-width: 34.0625rem) {

	.dpuk-colour__pop {
		inline-size: min(32rem, calc(100vw - 2rem));
		padding: 0.85rem 1rem;
	}
}

/* Right-anchored variant for a picker that sits hard against the inline end
   of its container. Available for the day the JS grows a placement hint; not
   wired up today because the panel is anchored from the inline start at every
   width and no mode adds `.dpuk-colour--end`. */
.dpuk-colour--end .dpuk-colour__pop {
	inset-inline-start: auto;
	inset-inline-end: 0;
}

/* ---------- Popover placement ----------
   view.js measures the space under the trigger and adds `.is-above` when the
   panel would run off the bottom of a short viewport. The panel is ~190px on a
   desktop and ~330px on a 320px phone, so this is the difference between the
   whole palette being visible and the customer having to scroll to see it. */
.dpuk-colour.is-above .dpuk-colour__pop {
	top: auto;
	bottom: calc(100% + 0.4rem);
}

/* Mirror the hover bridge when the panel opens above the trigger. */
.dpuk-colour.is-above .dpuk-colour__pop::before {
	top: auto;
	bottom: -0.6rem;
}

.dpuk-colour.is-above .dpuk-colour__caret {
	transform: rotate(180deg);
}

/* ---------- Swatch grid ----------
   All 30 colours are laid out at once. There is deliberately no `max-block-size`
   and no `overflow-y`: a scrollable palette inside a popover inside a form
   meant the customer had to scroll a grid inside a panel inside a page to
   find a colour, which is the exact friction the popover was introduced to
   remove.

   Fixed 2.75rem tracks centred with `justify-content: center`, so every row
   — including a short last row — sits centred in the panel instead of
   stretching edge to edge. Each cell is a fixed square so the circle chips
   line up evenly. The 0.55rem gap keeps neighbouring chips clearly apart.

   Every cell is well over the 24px WCAG 2.5.8 minimum. */
.dpuk-colour__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, 2.75rem);
	justify-content: center;
	justify-items: center;
	gap: 0.55rem;
	margin: 0;
	padding: 0.25rem 0;
	min-inline-size: 0;
}

/* Touch devices & mobile phones: thumb-friendly swatches with doubled radius.
   The color chips are increased to 3rem (48px diameter / 24px radius),
   providing an effortless target for thumbs on touch devices and mobile phones.
   The grid tracks automatically wrap based on screen width so the list can
   grow vertically, while remaining comfortably visible at once on screen.
   Desktop with fine mouse pointer keeps the original compact 2rem/2.75rem sizing.
 *
 * This block must come after the base rule above: both selectors are a single
 * class, so source order decides, and putting the media query first silently
 * did nothing. */
@media (max-width: 47.9375rem), (hover: none) and (pointer: coarse) {

	.dpuk-colour__grid {
		grid-template-columns: repeat(auto-fill, 3rem);
		gap: 0.5rem;
	}
}

/* Belt and braces: the scroll region itself is not focusable (the inputs
   inside are), but if it ever becomes a tab stop the ring has to say that
   arrow keys will scroll it. */
.dpuk-colour__grid:focus-visible {
	outline: 2px solid var(--dpuk-focus);
	outline-offset: 2px;
}

/* ---------- Swatch ----------
   Circle-only cells: the name and Bambu code are no longer painted on every
   chip (30 of them at this size wrapped over three lines). They reach the
   customer as the input's aria-label, as the trigger's label, and as the
   caption under the grid, so colour is never the only cue (WCAG 1.4.1). */
.dpuk-swatch {
	position: relative;
	display: block;
	inline-size: 2.75rem;
	block-size: 2.75rem;
	min-inline-size: 0;
}

@media (max-width: 47.9375rem), (hover: none) and (pointer: coarse) {

	.dpuk-swatch {
		inline-size: 3rem;
		block-size: 3rem;
	}
}

/* view.js no longer filters the palette, but the grid layout above would
   out-specify the UA `[hidden]` rule if anything ever hid a swatch again. */
.dpuk-swatch[hidden] {
	display: none;
}

/* The swatch inputs must stay focusable and submittable, so they are
   visually hidden with the clip recipe rather than display: none. */
.dpuk-swatch__input {
	position: absolute;
	inline-size: 1px;
	block-size: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Two selectors because `.dpuk-form label` (0,1,1) sets display, weight and
   margin on every label in the form and must not win here.
   2rem chip + 0.2rem padding + a 2px ring = 42.4px, comfortably over SC 2.5.8.
   The ring is transparent rather than absent so selection and hover change
   colour without the grid reflowing. */
.dpuk-swatch__label,
.dpuk-form .dpuk-swatch__label {
	display: grid;
	place-items: center;
	inline-size: 100%;
	block-size: 100%;
	margin: 0;
	padding: 0.2rem;
	border: 2px solid transparent;
	border-radius: 50%;
	background: transparent;
	font-family: var(--dpuk-font-body);
	font-weight: 400;
	font-size: 1rem;
	line-height: 1.25;
	text-align: center;
	cursor: pointer;
	transition:
		border-color 0.15s ease,
		background-color 0.15s ease,
		box-shadow 0.15s ease;
}

.dpuk-swatch__label:hover {
	border-color: var(--dpuk-border-strong);
}

/* The inset hairline is what keeps Jade White, Beige, Light Gray and Yellow
   visible against the panel they sit on. */
.dpuk-swatch__chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 2rem;
	block-size: 2rem;
	border-radius: 50%;
	background: var(--swatch, var(--dpuk-surface));
	box-shadow: inset 0 0 0 1px rgba(33, 61, 85, 0.2);

	/* Default tick colour; overridden per swatch by data-tick below. */
	color: transparent;
}

.dpuk-swatch__chip svg {
	inline-size: 0.875rem;
	block-size: 0.875rem;
	opacity: 0;
	transform: scale(0.6);
	pointer-events: none;
	transition:
		opacity 0.15s ease,
		transform 0.15s ease;
}

/* Touch devices & mobile phones scale the chip to 3rem (48px, doubling the
   radius from 12px to 24px) to provide a generous touch target for thumbs.
   The checkmark icon scales proportionally to 1.25rem (20px). Placed AFTER
   the base label/chip rules so source order decides. */
@media (max-width: 47.9375rem), (hover: none) and (pointer: coarse) {

	.dpuk-swatch__label,
	.dpuk-form .dpuk-swatch__label {
		padding: 0;
	}

	.dpuk-swatch__chip {
		inline-size: 3rem;
		block-size: 3rem;
	}

	.dpuk-swatch__chip svg {
		inline-size: 1.25rem;
		block-size: 1.25rem;
		pointer-events: none;
	}
}

/* PHP contrast-scores white against the brand navy per swatch and emits
   the winner, so a white tick never lands on a pale filament and a navy
   tick never lands on a dark one. */
.dpuk-swatch[data-tick="light"] .dpuk-swatch__chip {
	color: #fff;
}

.dpuk-swatch[data-tick="dark"] .dpuk-swatch__chip {
	color: var(--dpuk-primary);
}

/* Selected: no ring or fill — the contrast-scored tick on the chip itself is
   the whole selection signal. (The old 2px brand ring painted a second
   offset circle behind the chip.) Keyboard focus still gets its outline
   from the focus-visible rule below. */
.dpuk-swatch:has(> .dpuk-swatch__input:checked) .dpuk-swatch__label,
.dpuk-swatch:has(> .dpuk-swatch__input:checked) .dpuk-swatch__label:hover {
	border-color: transparent;
	background: transparent;
	box-shadow: none;
}

.dpuk-swatch:has(> .dpuk-swatch__input:checked) .dpuk-swatch__chip svg {
	opacity: 1;
	transform: none;
}

/* The real input is clipped, so the focus ring has to be drawn on its
   label. */
.dpuk-swatch:has(> .dpuk-swatch__input:focus-visible) .dpuk-swatch__label {
	outline: 2px solid var(--dpuk-focus);
	outline-offset: 2px;
}

/* ---------- Caption ----------
   JS fills this with "Sunflower Yellow (10402)" as the pointer or keyboard
   focus moves across the grid, and clears it when the pointer leaves. The
   1.25rem floor is what stops the panel resizing as it fills and empties. */
.dpuk-form .dpuk-colour__caption {
	min-block-size: 1.25rem;
	margin: 0.4rem 0 0;
	padding-block-start: 0.4rem;
	border-block-start: 1px solid var(--dpuk-border);
	color: var(--dpuk-muted);
	font-size: 0.8125rem;
	font-weight: 400;
	line-height: 1.4;
	text-align: center;
}

/* ---------- Read-only spec panel (contract §2.4) ----------
   Deliberately subordinate to the fields it sits under: tertiary fill,
   hairline border, small caps eyebrow.

   It is a native <details>, which gives Enter/Space activation, the
   disclosure role and the expanded state for free — no JS. The summary is a
   full-width clickable row with the chevron drawn as a ::after; the UA marker
   is removed in both engines. The body keeps its own inset padding so the
   closed state is exactly one 2.75rem row. */
details.dpuk-specs {
	margin: 0 0 1rem;
	padding: 0;
	background: var(--dpuk-surface);
	border: 1px solid var(--dpuk-border);
	border-radius: var(--dpuk-radius-input);
	overflow: hidden;
}

summary.dpuk-specs__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.25rem 0.75rem;
	min-block-size: 2.75rem;
	padding: 0.6rem 1rem;
	cursor: pointer;
	list-style: none;
	user-select: none;
	flex-wrap: wrap;
}

summary.dpuk-specs__summary::-webkit-details-marker {
	display: none;
}

summary.dpuk-specs__summary::marker {
	display: none;
}

summary.dpuk-specs__summary::after {
	content: "";
	flex: none;
	inline-size: 0.5rem;
	block-size: 0.5rem;
	border-right: 2px solid var(--dpuk-primary);
	border-bottom: 2px solid var(--dpuk-primary);
	transform: rotate(45deg) translateY(-0.15rem);
	transition: transform 0.25s ease;
}

details.dpuk-specs[open] > summary.dpuk-specs__summary {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	flex-wrap: wrap;
	border-bottom: 1px solid var(--dpuk-border);
	background: var(--dpuk-tint-soft);
}

details.dpuk-specs[open] > summary.dpuk-specs__summary::after {
	transform: rotate(-135deg) translateY(-0.15rem);
}

.dpuk-specs__eyebrow {
	flex: none;
	margin: 0;
	color: var(--dpuk-brand-light-deep);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	line-height: 1.4;
	text-transform: uppercase;
}

.dpuk-specs__note {
	margin: 0;
	padding: 0.75rem 1rem 0;
	color: var(--dpuk-muted);
	font-size: 0.875rem;
	line-height: 1.55;
}

.dpuk-specs__list {
	display: grid;
	gap: 0;
	margin: 0.75rem 0 0;
	padding: 0 1rem 0.9rem;
	font-size: 0.9375rem;
}

/* dl > div is valid HTML5: no reset needed beyond the row's own
   margin/padding, so the hairline separators are drawn on the rows.
   auto-fit means the row is two columns (key | value) as soon as it has
   22rem of width and collapses to a single stacked column on a phone,
   without needing a width media query. */
.dpuk-specs__row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
	gap: 0.1rem 1rem;
	padding: 0.5rem 0;
	border-top: 1px solid var(--dpuk-border);
	align-items: baseline;
}

.dpuk-specs__row:first-child {
	padding-top: 0;
	border-top: 0;
}

.dpuk-specs__key {
	margin: 0;
	color: var(--dpuk-muted);
	font-weight: 500;
	line-height: 1.45;
}

.dpuk-specs__val {
	margin: 0;
	color: var(--dpuk-ink);
	font-weight: 600;
	line-height: 1.45;
}

/* ---------- Estimator ---------- */

.dpuk-estimator__title {
	margin-top: 0;
}

.dpuk-estimator__intro {
	margin-top: 0;
	margin-bottom: 0.4rem;
}

/* The three option groups and the footer are the estimator's whole height
   budget, so their rhythm is tighter than the wizard's. */
.dpuk-estimator fieldset.dpuk-field--options {
	margin-bottom: 0.4rem;
}

/* Weight row (contract §4) — ONE line at any width that can take it.

   Markup: .dpuk-field--range > label + .dpuk-estimator__weight (which wraps
   the slider and the number input) + output + hint. `display: contents` on
   .dpuk-estimator__weight dissolves that wrapper so the slider and the
   number input become flex items of the row itself and can share a line with
   the label and the readout. The hint takes `flex: 1 0 100%` to force the
   wrap onto its own line.

   A wrapping flex row (rather than a fixed 2-column grid) is what keeps this
   honest between 320px and 1920px: below ~30rem the slider and the number
   simply drop to the next line, and nothing overflows.

   The row is a `.dpuk-field` by class but the estimator is NOT inside a
   `.dpuk-form`, so the generic `.dpuk-form .dpuk-field` margin never
   applied here; the single selector is enough. */
.dpuk-estimator__weight-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.7rem;
	margin-bottom: 0.7rem;
}

/* Descendant, not child: `display: contents` on .dpuk-estimator__weight means
   the slider and the number input are still DOM children of THAT element, so
   a `>` combinator from the row never matched them. The extra
   `.dpuk-estimator` class also out-specifies the later
   `.dpuk-estimator .dpuk-estimator__slider { inline-size: 100% }` block —
   with `width: 100%` as a flex base size the slider would claim the whole row
   and push every sibling onto its own line. */
.dpuk-estimator .dpuk-estimator__weight-row > .dpuk-estimator__weight {
	display: contents;
}

.dpuk-estimator .dpuk-estimator__weight-row .dpuk-estimator__slider {
	flex: 1 1 7rem;
	min-inline-size: 4.5rem;
	inline-size: auto;
}

.dpuk-estimator .dpuk-estimator__weight-row .dpuk-estimator__weight-num {
	flex: none;
}

.dpuk-estimator .dpuk-estimator__weight-row > .dpuk-estimator__weight-val {
	flex: none;
	justify-self: auto;
}

.dpuk-estimator .dpuk-estimator__weight-row > .dpuk-field__hint {
	flex: 1 0 100%;
	margin: 0;
}

/* Live readout. Sits on the same line as the slider once the row is a flex
   container; tabular figures stop the number jittering as it ticks. */
.dpuk-estimator__weight-val {
	font-family: var(--dpuk-font-heading);
	font-size: 0.9375rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: var(--dpuk-primary-ink);
}

.dpuk-estimator__weight-num {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

/* Two classes, so this out-specifies `.dpuk-form input[type="number"]`,
   which forces width: 100%. */
.dpuk-estimator__weight-num > .dpuk-estimator__weight-input {
	inline-size: 5.5rem;
	min-block-size: 2.4rem;
	padding: 0.4rem 0.6rem;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.dpuk-estimator__weight-unit {
	color: var(--dpuk-muted);
	font-size: 0.9375rem;
	font-weight: 600;
}

/* Range slider: full width, 44px touch target, brand thumb on a tint
   track. Both engine prefixes are styled explicitly — without
   `-webkit-appearance: none` the WebKit thumb is not drawn at all at the
   slider minimum. */
.dpuk-estimator .dpuk-estimator__slider {
	inline-size: 100%;
	min-block-size: 2.75rem;
	margin: 0;
	background: transparent;
	accent-color: var(--dpuk-primary);
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.dpuk-estimator .dpuk-estimator__slider::-webkit-slider-runnable-track {
	block-size: 0.5rem;
	border: 1px solid var(--dpuk-border);
	border-radius: var(--dpuk-radius-pill);
	background: var(--dpuk-tint);
}

.dpuk-estimator .dpuk-estimator__slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	inline-size: 1.35rem;
	block-size: 1.35rem;

	/* Centres the thumb on the 0.5rem track: (0.5 - 1.35) / 2. */
	margin-block-start: -0.475rem;
	border: 2px solid var(--dpuk-primary);
	border-radius: 50%;
	background: var(--dpuk-white);
	box-shadow: 0 1px 4px rgba(33, 61, 85, 0.25);
	cursor: grab;
}

.dpuk-estimator .dpuk-estimator__slider::-moz-range-track {
	block-size: 0.5rem;
	border: 1px solid var(--dpuk-border);
	border-radius: var(--dpuk-radius-pill);
	background: var(--dpuk-tint);
}

.dpuk-estimator .dpuk-estimator__slider::-moz-range-thumb {
	inline-size: 1.35rem;
	block-size: 1.35rem;
	border: 2px solid var(--dpuk-primary);
	border-radius: 50%;
	background: var(--dpuk-white);
	box-shadow: 0 1px 4px rgba(33, 61, 85, 0.25);
	cursor: grab;
}

/* Focus indication for the range input, in two parts:
   1. An outline on the input itself. This is the part that matters — a
      `box-shadow` on the thumb is dropped entirely under
      `forced-colors: active`, so a thumb-only indicator leaves a keyboard
      user with nothing at all in Windows High Contrast.
   2. A thumb ring on top of it, which reads better on a mouse-and-keyboard
      desktop because it points at what actually moves. */
.dpuk-estimator .dpuk-estimator__slider:focus-visible {
	outline: 2px solid var(--dpuk-focus);
	outline-offset: 3px;
	border-radius: 4px;
}

.dpuk-estimator .dpuk-estimator__slider:focus-visible::-webkit-slider-thumb {
	border-color: var(--dpuk-focus);
	box-shadow: 0 0 0 4px rgba(33, 61, 85, 0.2);
}

.dpuk-estimator .dpuk-estimator__slider:focus-visible::-moz-range-thumb {
	border-color: var(--dpuk-focus);
	box-shadow: 0 0 0 4px rgba(33, 61, 85, 0.2);
}

/* The itemised breakdown list and the note sit inside the framed wrap,
   below the heading row. The wrap owns the border and the radius; the list
   only adds the horizontal divider between the list and the note. */
.dpuk-estimator__breakdown {
	list-style: none;
	margin: 0;
	padding: 0.6rem 0.75rem;
	background: var(--dpuk-alt);
	border-bottom: 1px solid var(--dpuk-border);
}

/* Each row is a key/value pair of spans, so the value can sit hard
   right while the key keeps the left edge. */
.dpuk-estimator__breakdown li {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.2rem 0;
	font-size: 0.9rem;
}

.dpuk-estimator__breakdown-key {
	color: var(--dpuk-muted);
}

.dpuk-estimator__breakdown-val {
	color: var(--dpuk-ink);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	text-align: right;
}

/* Fluid so the total is the card's biggest number on a desktop and still
   only one line on a 320px phone. */
.dpuk-estimator__total {
	font-size: clamp(1.1rem, 1rem + 0.8vw, 1.25rem);
	font-family: var(--dpuk-font-heading);
	margin: 0;
}

/* The itemised breakdown is always visible, framed like a receipt panel:
   no fill, a hairline, muted type. */
.dpuk-estimator__breakdown-wrap {
	margin: 0 0 0.6rem;
	padding: 0;
	background: transparent;
	border: 1px solid var(--dpuk-border);
	border-radius: var(--dpuk-radius-input);
	overflow: hidden;
}

.dpuk-estimator__breakdown-heading {
	margin: 0;
	padding: 0.4rem 0.75rem;
	color: var(--dpuk-muted);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.4;
	border-bottom: 1px solid var(--dpuk-border);
}

/* Estimator total transition: the flash class is toggled by
   assets/js/view.js when the total text updates. */
.dpuk-estimator__total strong {
	display: inline-block;
	color: var(--dpuk-primary-ink);
	transition:
		opacity 0.25s ease,
		color 0.25s ease,
		transform 0.25s ease;
}

.dpuk-js .dpuk-estimator__total strong.dpuk-total-flash {
	color: var(--dpuk-brand-deep);
	opacity: 0.35;
	transform: translateY(-1px);
}

.dpuk-estimator__actions {
	margin: 0;
}

/* Footer strip: total on the left, CTA right-aligned, hairline above and a
   tint behind, so the number and the action read as one band and the card
   has a defined bottom edge. */
.dpuk-estimator__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 1rem;
	margin: 0;
	padding: 0.6rem 0.75rem;
	border-top: 1px solid var(--dpuk-border);
	border-radius: 0 0 calc(var(--dpuk-radius-card) - 0.1rem)
		calc(var(--dpuk-radius-card) - 0.1rem);
	background: var(--dpuk-alt);
}

.dpuk-estimator__footer .dpuk-estimator__actions {
	margin-inline-start: auto;
}

.dpuk-btn-apply {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-block-size: 2.4rem;
	text-align: center;
	padding: 0.5rem 1.1rem;
	background: var(--dpuk-tint-soft);
	color: var(--dpuk-primary-ink);
	border: 1px solid var(--dpuk-border);
	border-radius: var(--dpuk-radius-pill);
	font-family: var(--dpuk-font-heading);
	font-weight: 600;
	font-size: 0.9rem;
	cursor: pointer;
	transition:
		background-color 0.2s ease,
		color 0.2s ease,
		border-color 0.2s ease,
		box-shadow 0.2s ease,
		transform 0.2s ease;
}

.dpuk-btn-apply:hover {
	background: var(--dpuk-primary);
	color: var(--dpuk-on-brand);
	border-color: var(--dpuk-primary);
	box-shadow: var(--dpuk-shadow-lift);
	transform: translateY(-2px);
}

.dpuk-estimator__note {
	margin: 0;
	padding: 0.5rem 0.75rem;
	color: var(--dpuk-muted);
	font-size: 0.875rem;
}

/* ---------- FAQ: native details (keyboard accessible) ---------- */

.dpuk-faq__item,
.wp-block-details {
	border: 1px solid var(--dpuk-border);
	border-radius: var(--dpuk-radius-input);
	margin-bottom: 0.75rem;
	background: var(--dpuk-white);
	overflow: hidden;
	transition: border-color 0.2s ease;
}

.dpuk-faq__item:hover,
.wp-block-details:hover {
	border-color: rgba(33, 61, 85, 0.3);
}

.dpuk-faq__item summary,
.wp-block-details summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.25rem;
	font-weight: 600;
	font-family: var(--dpuk-font-heading);
	cursor: pointer;
	list-style: none;
	user-select: none;
}

.dpuk-faq__item summary::-webkit-details-marker,
.wp-block-details summary::-webkit-details-marker {
	display: none;
}

.dpuk-faq__item summary::marker,
.wp-block-details summary::marker {
	display: none;
}

.dpuk-faq__item summary::after,
.wp-block-details summary::after {
	content: "";
	display: inline-block;
	width: 0.5rem;
	height: 0.5rem;
	border-right: 2px solid var(--dpuk-primary);
	border-bottom: 2px solid var(--dpuk-primary);
	transform: rotate(45deg);
	transition: transform 0.25s ease;
	margin-left: auto;
	flex-shrink: 0;
}

.dpuk-faq__item[open] summary,
.wp-block-details[open] summary {
	border-bottom: 1px solid var(--dpuk-border);
	background: var(--dpuk-tint-soft);
}

.dpuk-faq__item[open] summary::after,
.wp-block-details[open] summary::after {
	transform: rotate(-135deg);
}

.dpuk-faq__item p,
.wp-block-details p {
	padding: 1rem 1.25rem;
	margin: 0;
}

/* ---------- Focus visibility (AA) ----------
   The ring is the brand navy (--dpuk-focus), 11.48:1 against card white
   and 10.18:1 against the page. The accent light blue is deliberately NOT
   used here: it measures 3.27:1 on white, under the 3:1 non-text minimum
   once it is spread across a focus indicator. */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
	outline: 3px solid var(--dpuk-focus);
	outline-offset: 3px;
	border-radius: 4px;
}

/* ---------- Quote wizard: 3 steps, banded layout ----------
   Steps are <fieldset data-step="1..3">; only the active step is shown.
   One control per row made every step two to four viewports tall, so the
   wizard is laid out as horizontal bands instead: a fieldset, an option
   group and a text field are siblings of a grid row, and the grid decides
   how many of them fit side by side.

   The band primitives (all emitted by blocks/quote-form/render.php):

     .dpuk-step__rows            vertical stack of bands for one step
     .dpuk-step__row[data-cols]  one band. data-cols is the track plan:
                                 "1"  = forced single stacked column
                                 "2"  = two balanced cells
                                 "3"  = three cells
     .dpuk-step__cols[data-cols] the same primitive, named for step 1's
                                 CAD-upload / reference-photo split
     .dpuk-step__cell[--main|--sub] the children of .dpuk-step__cols
     data-span="2"               per-child span hint

   Track sizing: `repeat(auto-fit, minmax(min(100%, 11rem), 1fr))`. Two
   things make this work without any hard breakpoint:

     - auto-fit collapses tracks that hold no item, so a band with fewer
       children than the width could hold still gets exactly as many equal
       1fr columns as it has children (no orphan tracks).
     - min(100%, 11rem) is what keeps 320px reflow intact: below ~12rem of
       available width the track collapses to the container and the band
       stacks. SC 1.4.10 is satisfied by construction, not by a media query.

   11rem rather than the more obvious 16rem because the wizard's inner width
   is ~900px at 1440, and 11rem is the largest floor that still yields four
   tracks there. Four tracks is what makes the plans resolve as intended:

     data-cols="3"   -> 3 children, 4th track collapses -> 3 equal columns
     data-cols="2"   -> single [data-span=2] child spans both tracks
     data-cols="1"   -> single column; children always stack (quantity row,
                        requirements / standard-configuration pair)
     address band    -> line 1 | line 2, then town / county / postcode

   At 14rem or 16rem the address band falls to three rows and step 3 costs
   ~90px more. Everything below ~560px degrades to fewer columns on its own. */

.dpuk-step__rows {
	display: grid;
	gap: 0.5rem 1rem;
	min-inline-size: 0;
}

.dpuk-step__row,
.dpuk-step__cols {
	display: grid;
	gap: 0.5rem 1rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
	align-items: start;
	min-inline-size: 0;
}

/* The band plan is descriptive only: auto-fit already resolves to the right
   column count from the available width, and `data-span` is the only hint
   that has to be honoured in CSS. The one exception is data-cols="1", which
   forces a single stacked column — used for the quantity row and the
   requirements / standard-configuration pair on step 2, which must never sit
   side by side. */
.dpuk-step__row[data-cols="1"],
.dpuk-step__cols[data-cols="1"] {
	grid-template-columns: minmax(0, 1fr);
}

.dpuk-step__row > *,
.dpuk-step__cols > * {
	min-inline-size: 0;
}

.dpuk-step__row > [data-span="2"],
.dpuk-step__cols > [data-span="2"] {
	grid-column: span 2;
}

/* Grid and flex children both need min-inline-size: 0 or a long
   placeholder / unbreakable string (a Drive URL, an email address) forces
   the track wider than its share and pushes the row past the viewport. */
.dpuk-step__cell > *,
.dpuk-field--options .dpuk-options,
.dpuk-option__label,
.dpuk-colour {
	min-inline-size: 0;
}

/* Step 1's pair: the mandatory CAD dropzone and the optional photo dropzone.
   The mandatory one reads as primary because its dropzone keeps the heavier
   dashed border and the tinted fill, while the photo zone gets the quieter
   `.dpuk-upload-zone--ref` surface. The cells need no differential margin
   of their own — the band's row gap separates them whether the grid
   resolves to two columns or one.

   Equal dropzone heights. The band is `align-items: start`, so each cell
   sized to its own copy and the two dashed boxes came out different heights
   while sitting side by side — the CAD side carries a title plus two lines
   of accepted-types detail, the photo side a title plus one sentence. The
   cells stretch instead, and the dropzone takes the slack, so the pair
   reads as one row. At stacked widths each cell is its own row and the
   extra height is simply not there to distribute. */
.dpuk-step__cols[data-cols="2"] {
	align-items: stretch;
}

.dpuk-step__cols[data-cols="2"] .dpuk-step__cell,
.dpuk-step__cols[data-cols="2"] .dpuk-upload-wrap {
	display: flex;
	flex-direction: column;
}

/* Both links in the chain have to grow: the cell stretches to the row, the
   wrap stretches to the cell, and only then does the dropzone inside it have
   slack to take up. Sizing the zone alone left the wraps at their content
   heights, so the two boxes still differed. */
.dpuk-step__cols[data-cols="2"] .dpuk-upload-wrap {
	flex: 1 1 auto;
}

.dpuk-step__cols[data-cols="2"] .dpuk-upload-zone {
	flex: 1 1 auto;
}

.dpuk-step__cell {
	min-inline-size: 0;
}

/* Compact variant for option groups that sit inside a band. Two classes are
   needed on each selector because `.dpuk-form .dpuk-field` (0,2,0) and
   `fieldset.dpuk-field` (0,1,1) both out-specify a bare `.dpuk-field--*`. */
.dpuk-field.dpuk-field--compact,
fieldset.dpuk-field--compact {
	margin-bottom: 0;
}

.dpuk-field--compact .dpuk-options {
	gap: 0.5rem;
}

.dpuk-field.dpuk-field--qty {
	margin-bottom: 0;
}

.dpuk-field--qty .dpuk-input {
	text-align: center;
	max-inline-size: 12rem;
}

/* Quantity sits on its own row below material (not beside it): the input
   keeps a compact numeric width instead of stretching full width, and the
   label stacks above the box at every width like every other field. (The
   label used to sit beside the box from 30rem up to share a band with
   material; with its own row there is no pair to align with.) */
.dpuk-step__row[data-cols="1"] > .dpuk-field--qty .dpuk-input {
	inline-size: 10rem;
	max-inline-size: 100%;
}

/* A field inside a band does not own the band's bottom space: the band gap
   already separates rows. `.dpuk-form .dpuk-field` and `.dpuk-form p` are
   both (0,2,0)/(0,1,1) and sit earlier in this file, so equal specificity
   plus later source order wins here. */
.dpuk-step__rows > .dpuk-field,
.dpuk-step__rows .dpuk-step__row > .dpuk-field,
.dpuk-step__cols .dpuk-field,
.dpuk-step__row > p,
.dpuk-step__cols > p,
.dpuk-form .dpuk-step__rows p,
.dpuk-form .dpuk-step__cols p {
	margin-bottom: 0;
}

/* ---------- Step panel density ----------
   `.dpuk-form fieldset` paints every fieldset as a step panel, which is right
   for fieldset[data-step] and wrong for the group fieldsets inside it. The
   step panel keeps the hairline and the tint but gives up most of its
   padding and all of its outer margin — the wizard's own `.dpuk-wizard-nav`
   is the last child and already provides the bottom separation, so the
   panel's 1.5rem margin was 24px of dead air under every step. */
.dpuk-quote-form fieldset[data-step] {
	width: 100%;
	margin: 0;
	padding: 1rem 1.25rem 0.5rem;
	min-inline-size: 0;
}

/* Textareas inside a wizard band: 7rem (112px) is the right default for a
   long-form message box, but inside a two-column band it makes one field
   dictate the height of the whole row. 5rem is ~4 lines at 1rem/1.5. */
.dpuk-step__rows .dpuk-textarea {
	min-block-size: 5rem;
}

/* Group rhythm inside a step. Every one of these was a full `.dpuk-field`
   margin, and a wizard step carries eight or nine of them.
   `.dpuk-field--colour` is a <p>, not a fieldset — the popover picker only
   needs one row — so it is listed without the `fieldset` qualifier that
   `.dpuk-field--address` still needs. */
.dpuk-quote-form .dpuk-field--colour,
.dpuk-quote-form fieldset.dpuk-field--address,
.dpuk-quote-form .dpuk-field--check {
	margin-bottom: 0.7rem;
}

.dpuk-quote-form details.dpuk-specs {
	margin-bottom: 0.6rem;
}

/* The requirements / standard-configuration row on step 2. `.dpuk-field--aside`
   is a plain <div> (it has no label to hang off a <p>), so the generic
   `.dpuk-field` margin does not zero it the way `.dpuk-step__rows .dpuk-step__row
   > .dpuk-field` does for its sibling textarea. `align-self: start` keeps the
   <details> at its natural one-row height instead of stretching to the
   textarea's 5rem, and the disclosure itself fills the cell. */
.dpuk-step__rows .dpuk-step__row > .dpuk-field--aside {
	align-self: start;
	margin: 0;
	min-inline-size: 0;
}

.dpuk-step__rows .dpuk-step__row > .dpuk-field--aside > details.dpuk-specs {
	inline-size: 100%;
	margin-bottom: 0;
}

/* The nav is the step's last element, so it only needs a top gap. */
.dpuk-quote-form .dpuk-wizard-nav {
	margin: 0.75rem 0 0;
}

/* ---------- Wizard progress ----------
   Scrolls with the card. It was pinned under the site header from 64rem up,
   but the pills are not navigation — they are a read-out of which step you
   are on, and the step heading right below them says the same thing. Pinning
   them bought nothing and cost the top of every step: the strip pinned over
   the card's own padding, so the first row of the upload zone sat underneath
   it until you scrolled on. */
.dpuk-quote-progress-wrap {
	min-inline-size: 0;
}

/* ---------- Scroll-to-top pill (built by assets/js/view.js) ----------
   Floating blue pill, bottom-right, hidden until ~600px scrolled.
   visibility:hidden keeps it out of the keyboard tab order until shown;
   the global :focus-visible ring covers keyboard focus. Safe-area aware
   so it is never clipped by notches or gesture bars. */

.dpuk-to-top {
	position: fixed;
	right: max(1rem, env(safe-area-inset-right, 1rem));
	bottom: max(1rem, env(safe-area-inset-bottom, 1rem));
	z-index: 999;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding: 0.65rem 1rem;
	border: none;
	border-radius: var(--dpuk-radius-pill);
	background: var(--dpuk-primary);
	color: var(--dpuk-on-brand);
	font-family: var(--dpuk-font-heading);
	font-weight: 600;
	font-size: 1.25rem;
	line-height: 1;
	box-shadow: var(--dpuk-shadow-lift);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition:
		opacity 0.25s ease,
		transform 0.25s ease,
		visibility 0.25s,
		background-color 0.25s ease;
}

.dpuk-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.dpuk-to-top:hover {
	background: var(--dpuk-primary-dark);
}

/* ---------- Wizard step indicator ----------
   Each pill is a state, not just a label:
     done    — solid brand fill, on-brand text, tick glyph
     current — outlined in brand ink, tinted fill, step number in a disc
     todo    — greyed out: muted text on the neutral surface, no accent
   JS keeps `data-state` in sync (see showStep in view.js); `aria-current`
   is set alongside it for assistive tech. */
.dpuk-quote-progress {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	padding: 0;
	margin: 0 0 1rem;
	counter-reset: dpuk-step;
}

.dpuk-quote-progress li {
	flex: 1 1 100%;
	display: flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.6rem 0.9rem;
	border-radius: var(--dpuk-radius-input);
	border: 1px solid var(--dpuk-border);
	background: var(--dpuk-alt);
	color: var(--dpuk-muted);
	font-weight: 600;
	font-size: 0.9rem;
	counter-increment: dpuk-step;

	/* Each label is two words ("Your model"), with the number in the disc
	   ahead of it. They must not wrap: a pill that breaks to a second line
	   beside two that do not is the ragged row this fixes. `overflow` is the
	   safety net for a long translation, where the label is clipped rather
	   than allowed to push the pill past its share of the row. */
	white-space: nowrap;
	min-inline-size: 0;
	overflow: hidden;
	transition:
		background-color 0.2s ease,
		color 0.2s ease,
		border-color 0.2s ease;
}

/* The number disc doubles as the tick: `content` swaps the glyph, and the
   counter still advances so the numbers stay correct after a step is done. */
.dpuk-quote-progress li::before {
	content: counter(dpuk-step);
	flex: 0 0 auto;
	display: inline-grid;
	place-items: center;
	inline-size: 1.4rem;
	block-size: 1.4rem;
	border-radius: 50%;
	background: var(--dpuk-border);
	color: var(--dpuk-ink);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1;
}

.dpuk-quote-progress li[data-state="done"] {
	background: var(--dpuk-primary);
	border-color: var(--dpuk-primary);
	color: var(--dpuk-on-brand);
}

.dpuk-quote-progress li[data-state="done"]::before {
	content: "\2713";
	background: var(--dpuk-on-brand);
	color: var(--dpuk-primary);
}

.dpuk-quote-progress li[data-state="current"],
.dpuk-quote-progress li[aria-current="step"] {
	background: var(--dpuk-tint-soft);
	border-color: var(--dpuk-primary);
	color: var(--dpuk-primary-ink);
	box-shadow: inset 0 0 0 1px var(--dpuk-primary);
}

.dpuk-quote-progress li[data-state="current"]::before,
.dpuk-quote-progress li[aria-current="step"]::before {
	background: var(--dpuk-primary);
	color: var(--dpuk-on-brand);
}

.dpuk-quote-progress li[data-state="todo"] {
	background: var(--dpuk-alt);
	border-color: var(--dpuk-border);
	color: var(--dpuk-muted);
	opacity: 0.75;
}

/* The step panel keeps its hairline and tint (from `.dpuk-form fieldset`)
   but gives up almost all of its padding and its whole outer margin —
   see the step-panel density note above, which owns the padding and margin.
   Only `width` and the `[hidden]` reset live here. */
.dpuk-quote-form fieldset[data-step][hidden] {
	display: none;
}

/* Quote upload drag-and-drop zone & file tags */
.dpuk-upload-wrap {
	margin-bottom: 1rem;
}

.dpuk-upload-label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.35rem;
}

.dpuk-upload-zone {
	position: relative;
	border: 2px dashed var(--dpuk-border);
	border-radius: var(--dpuk-radius-card);
	padding: 1.25rem 1rem;
	text-align: center;
	background: var(--dpuk-alt);
	cursor: pointer;
	transition:
		border-color 0.2s ease,
		background-color 0.2s ease,
		box-shadow 0.2s ease;
}

.dpuk-upload-zone:hover,
.dpuk-upload-zone.is-dragover {
	border-color: var(--dpuk-primary);
	background: var(--dpuk-tint-soft);
}

.dpuk-upload-zone.is-highlight {
	border-color: var(--dpuk-primary);
	box-shadow: 0 0 0 4px rgba(33, 61, 85, 0.2);
}

.dpuk-upload-input {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
	z-index: 2;
}

.dpuk-upload-prompt {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	pointer-events: none;
}

.dpuk-upload-icon {
	color: var(--dpuk-primary-ink);
	margin-bottom: 0.25rem;
}

.dpuk-upload-title {
	margin: 0;
	font-size: 0.95rem;
	color: var(--dpuk-ink);
}

.dpuk-upload-title strong {
	color: var(--dpuk-ink);
}

.dpuk-upload-sub {
	font-size: 0.825rem;
	color: var(--dpuk-muted);
}

/* Reference-photo zone (contract §2.5): same dropzone, deliberately
   lighter treatment than the mandatory CAD upload so "optional" reads
   before anyone parses the label. Only the surface, border and icon
   change — the hover / is-dragover / is-highlight states above are shared
   and keep working because they out-specify these rules.

   The stacked-layout separator (a top margin + hairline) is gone: the two
   upload zones now share one grid band (`.dpuk-step__cols[data-cols="2"]`)
   and the band's row gap separates them at every width, so a hairline above
   the second cell would float in the middle of a side-by-side pair. */
.dpuk-upload-wrap--ref {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.dpuk-upload-zone--ref {
	padding: 1rem 0.75rem;
	border-width: 1px;
	border-color: var(--dpuk-border-strong);
	background: var(--dpuk-surface);
}

/* Only the colour differs. The size used to be 1.6rem against the CAD
   icon's 36px, which made the two dropzones beside each other read as
   different-weight controls rather than the same control twice. */
.dpuk-upload-zone--ref .dpuk-upload-icon {
	color: var(--dpuk-muted);
}

/* Secondary "add more" pill. The button ships with the hidden attribute
   and blocks/quote-form/view.js removes it once there is something to add,
   so the display value below must not defeat it. */
.dpuk-upload-actions {
	margin-top: 0.6rem;
}

.dpuk-upload-more {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	min-block-size: 2.25rem;
	padding: 0.35rem 0.95rem;
	border: 1px solid var(--dpuk-border);
	border-radius: var(--dpuk-radius-pill);
	background: var(--dpuk-white);
	color: var(--dpuk-primary-ink);
	font-family: var(--dpuk-font-heading);
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	transition:
		background-color 0.2s ease,
		border-color 0.2s ease,
		color 0.2s ease;
}

.dpuk-upload-more[hidden] {
	display: none;
}

.dpuk-upload-more:hover {
	border-color: var(--dpuk-primary);
	background: var(--dpuk-tint-soft);
	color: var(--dpuk-brand-night);
}

.dpuk-file-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.75rem;
}

.dpuk-file-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.35rem 0.75rem;
	background: var(--dpuk-white);
	border: 1px solid var(--dpuk-border);
	border-radius: var(--dpuk-radius-pill);
	font-size: 0.85rem;
	box-shadow: 0 1px 3px rgba(33, 61, 85, 0.05);
	animation: dpuk-chip-appear 0.2s ease-out;
}

@keyframes dpuk-chip-appear {
	from {
		opacity: 0;
		transform: scale(0.95);
	}

	to {
		opacity: 1;
		transform: scale(1);
	}
}

.dpuk-file-chip__name {
	max-width: 12rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: 500;
	color: var(--dpuk-ink);
}

.dpuk-file-chip__size {
	color: var(--dpuk-muted);
	font-size: 0.8rem;
}

.dpuk-file-chip__remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.25rem;
	height: 1.25rem;
	border-radius: 50%;
	border: none;
	background: var(--dpuk-alt);
	color: var(--dpuk-muted);
	font-size: 1rem;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	margin-left: 0.2rem;
	transition:
		background-color 0.2s ease,
		color 0.2s ease;
}

.dpuk-file-chip__remove:hover {
	background: var(--dpuk-error-bg);
	color: var(--dpuk-error);
}

.dpuk-form__divider {
	display: flex;
	align-items: center;
	text-align: center;
	margin: 0.85rem 0;
	color: var(--dpuk-muted);
	font-size: 0.85rem;
}

.dpuk-form__divider::before,
.dpuk-form__divider::after {
	content: "";
	flex: 1;
	border-bottom: 1px solid var(--dpuk-border);
}

.dpuk-form__divider span {
	padding: 0 0.75rem;
}

.dpuk-wizard-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.75rem;
	margin: 1.25rem 0 1rem;
}

.dpuk-wizard-nav button {
	min-height: 2.75rem;
	padding: 0.75rem 1.75rem;
	border-radius: var(--dpuk-radius-pill);
	font-family: var(--dpuk-font-heading);
	font-weight: 600;
	cursor: pointer;
}

.dpuk-wizard-nav [data-role="next"] {
	background: var(--dpuk-primary);
	color: var(--dpuk-on-brand);
	border: none;
}

.dpuk-wizard-nav [data-role="next"]:hover {
	background: var(--dpuk-primary-dark);
}

.dpuk-wizard-nav [data-role="back"] {
	background: transparent;
	border: 2px solid var(--dpuk-primary);
	color: var(--dpuk-primary-ink);
}

.dpuk-wizard-nav [data-role="back"]:hover {
	background: var(--dpuk-tint-soft);
	border-color: var(--dpuk-primary-dark);
}

/* ---------- Split sections (pricing / quote): stacked by default ----------
   Mobile-first: intro copy stacks above the estimator / quote wizard.
   The two-column grid lands in the min-width 64rem block below; the pricing
   split opts out of it until 80rem (see `.dpuk-split--wide-detail` near the
   end of this file). */
.dpuk-split > .wp-block-column {
	min-width: 0;
}

/* Prose-first sections (FAQ, enquiry) stay a single centred column
   capped for readability; search + details use its full width. The
   !important flags win over core layout caps at every width. */
.dpuk-narrow {
	max-width: 46rem !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

.dpuk-narrow .wp-block-details,
.dpuk-narrow .dpuk-faq,
.dpuk-narrow .dpuk-enquiry-form {
	max-width: 100%;
}

/* Below the 64rem split point the columns always stack, even where
   core would otherwise place them side by side (781px+). */
@media (max-width: 63.9375rem) {
	.dpuk-split {
		display: block;
	}

	.dpuk-split > .wp-block-column + .wp-block-column {
		margin-top: 2rem;
	}
}

/* ============================================================
   Breakpoints: 360px / 768px / 1024px / 1440px / 1600px+
   Mobile-first: base styles target small phones, then enhance.
   ============================================================ */

/* ============================================================
   Fluid Responsive System: Phones, Tablets & Desktops
   Continuous fluid clamp padding prevents bezel touching across all viewports
   ============================================================ */

.is-layout-constrained
	> :where(
		:not(.alignleft):not(.alignright):not(.alignfull):not(.wp-block-details)
	),
.wp-block-group.is-layout-constrained
	> :where(
		:not(.alignleft):not(.alignright):not(.alignfull):not(.wp-block-details)
	) {
	padding-left: clamp(0.75rem, 2.5vw, 2.5rem);
	padding-right: clamp(0.75rem, 2.5vw, 2.5rem);
	box-sizing: border-box;
}

/* Vertical & Mobile Screens: hero images form an artistic reactive backdrop behind content */
@media (max-width: 63.9375rem) {
	.dpuk-hero {
		position: relative;
		overflow: hidden;
		min-height: calc(100vh - var(--dpuk-header-h));
		min-height: calc(100dvh - var(--dpuk-header-h));
		display: flex;
		flex-direction: column;
		justify-content: flex-start;
		scroll-margin-top: var(--dpuk-header-h);
		padding-top: clamp(1.25rem, 3svh, 2rem);
		padding-bottom: clamp(2rem, 5vw, 3rem);
	}

	/* Stacked hero: true full-bleed photo backdrop behind text + CTAs.
	   The media hook keeps its viewport-definite 100dvh height (proven
	   to resolve at every size). A directional scrim washes opaque
	   white over the text zone and clears toward the photo band, so
	   body copy always sits on white while photos show fully below.
	   Buttons carry solid backgrounds, so they stay readable anywhere.
	   Scoped under .dpuk-hero (0,2,0) to beat core columns at any order. */
	.dpuk-hero .dpuk-hero__grid {
		display: block;
	}

	.dpuk-hero .dpuk-hero__grid > .wp-block-column:first-child {
		position: relative;
		z-index: 2;
	}

	.dpuk-hero .dpuk-hero__media {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		height: 100vh;
		height: 100dvh;
		z-index: 0;
		pointer-events: none;
		overflow: hidden;
		display: block;
		filter: saturate(1.08);
	}

	/* Gentler readability scrim: nearly solid where copy sits, opening
	   wide over the photo band so all three photos read clearly. */
	.dpuk-hero .dpuk-hero__media::after {
		content: "";
		position: absolute;
		inset: 0;
		background: linear-gradient(
			180deg,
			rgba(255, 255, 255, 0.94) 0%,
			rgba(255, 255, 255, 0.9) 42%,
			rgba(255, 255, 255, 0.45) 70%,
			rgba(255, 255, 255, 0.55) 100%
		);
	}

	.dpuk-hero .dpuk-hero__float {
		position: absolute;
		top: 22%;
		right: -10%;
		width: min(64%, 20rem);
		transform: rotate(7deg);
		will-change: transform;
	}

	.dpuk-hero .dpuk-hero__float img {
		border-radius: 1.25rem;
		box-shadow: 0 18px 50px rgba(33, 61, 85, 0.18);
	}

	.dpuk-hero .dpuk-hero__float figcaption {
		display: none;
	}

	.dpuk-hero .dpuk-hero__thumbs {
		position: absolute;
		bottom: 1%;
		left: -7%;
		width: min(92%, 26rem);
		display: flex;
		gap: clamp(0.6rem, 2.5vw, 1rem);
		transform: rotate(-5deg);
		will-change: transform;
	}

	.dpuk-hero .dpuk-hero__thumbs .wp-block-column {
		flex: 1;
		min-width: 0;
	}

	.dpuk-hero .dpuk-hero__thumbs img {
		border-radius: 1rem;
		box-shadow: 0 12px 32px rgba(33, 61, 85, 0.16);
	}

	/* Hero CTAs keep solid fills over photos: outline button gets a
	   white fill, trust line goes full ink for the fade zone. */
	.dpuk-hero .wp-block-button.is-style-outline .wp-element-button {
		background: var(--dpuk-white);
	}

	.dpuk-hero .dpuk-hero__trust {
		color: var(--dpuk-ink);
	}

	/* Stacked sections flow from the top with no forced height, so
	   anchor jumps land content right under the sticky header instead
	   of in a vertically-centred void. Hero keeps its own full-height
	   rule below (its photo backdrop fills the space). */
	#dpuk-main > section > .dpuk-section,
	#dpuk-main > .wp-block-post-content > section > .dpuk-section {
		width: 100%;
		margin-top: 0;
		margin-bottom: 0;
	}

	#dpuk-main > section.dpuk-hero,
	#dpuk-main > .wp-block-post-content > section.dpuk-hero {
		min-height: calc(100vh - var(--dpuk-header-h));
		min-height: calc(100dvh - var(--dpuk-header-h));
		justify-content: flex-start;
		padding-top: clamp(1rem, 2.5svh, 1.5rem);
	}

	.dpuk-hero .dpuk-hero__grid > .wp-block-column:first-child > :first-child {
		margin-top: 0;
	}

	.dpuk-section {
		padding-top: clamp(2.5rem, 7svh, 4rem);
		padding-bottom: clamp(2.5rem, 7svh, 4rem);
	}
}

@media (max-width: 47.9375rem) {
	.is-layout-constrained
		> :where(
			:not(.alignleft):not(.alignright):not(.alignfull):not(
					.wp-block-details
				)
		),
	.wp-block-group.is-layout-constrained
		> :where(
			:not(.alignleft):not(.alignright):not(.alignfull):not(
					.wp-block-details
				)
		) {
		padding-left: clamp(0.55rem, 2vw, 0.85rem);
		padding-right: clamp(0.55rem, 2vw, 0.85rem);
	}

	.dpuk-header {
		padding-left: clamp(0.6rem, 2vw, 0.85rem) !important;
		padding-right: clamp(0.6rem, 2vw, 0.85rem) !important;
	}

	.dpuk-footer {
		padding-left: clamp(0.6rem, 2vw, 0.85rem) !important;
		padding-right: clamp(0.6rem, 2vw, 0.85rem) !important;
	}
}

/* Small phones (~360px): tighten rhythm, single column everywhere. */
@media (max-width: 22.5rem) {
	.dpuk-hero__thumbs {
		grid-template-columns: 1fr;
	}

	.dpuk-card,
	.dpuk-estimator,
	.dpuk-quote-form,
	.dpuk-enquiry-form,
	.dpuk-faq {
		padding: 1rem;
	}

	.dpuk-form button[type="submit"] {
		width: 100%;
	}
}

/* Tablets and up (768px): balanced 3-column grids for steps and bulk values. */
@media (min-width: 48rem) {
	.dpuk-grid--steps {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.dpuk-grid--values {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.dpuk-form button[type="submit"] {
		width: auto;
	}

	.dpuk-quote-progress li {
		flex: 1 1 0;
	}

	/* Desktop hero sizing: natural proportions without vertical overflow */
	.dpuk-hero {
		min-height: auto;
		display: flex;
		flex-direction: column;
		justify-content: center;
		padding-top: clamp(2rem, 3.5vw, 3.25rem);
		padding-bottom: clamp(2rem, 3.5vw, 3.25rem);
	}

	/* Keep hero media inside the viewport on desktop: capped main
	   image, compact thumbs. */
	.dpuk-hero__media img {
		max-height: 380px;
		width: 100%;
		object-fit: cover;
	}

	.dpuk-hero__thumbs img {
		max-height: 130px;
		width: 100%;
		object-fit: cover;
	}

	/* Hero text column drives section height: compact display type
	   on desktop so the section fits comfortably. */
	.dpuk-hero h1 {
		font-size: clamp(1.85rem, 1.25rem + 1.8vw, 2.45rem);
		line-height: 1.15;
	}

	.dpuk-hero .has-large-font-size {
		font-size: 1.125rem;
		line-height: 1.6;
		max-width: 36rem;
	}
}

/* Desktop (1024px): balanced sections with comfortable rhythm. */
@media (min-width: 64rem) {
	.dpuk-section {
		padding-top: clamp(4rem, 8svh, 6rem);
		padding-bottom: clamp(4rem, 8svh, 6rem);
	}

	footer.dpuk-footer {
		scroll-margin-top: var(--dpuk-header-h);
	}

	.dpuk-hero__grid {
		display: grid;
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
		gap: 3.25rem;
		align-items: center;
	}

	.dpuk-grid--steps {
		grid-template-columns: repeat(3, 1fr);
	}

	/* Desktop hero sizes to its content (no forced viewport height),
	   so it sits optically centred with symmetric breathing room. */
	.dpuk-hero {
		min-height: 0;
	}

	.dpuk-grid--values {
		grid-template-columns: repeat(3, 1fr);
	}

	/* Wizard band grids live in the "Quote wizard" section above and are
	   width-driven (auto-fit), not breakpoint-driven, so there is nothing to
	   add here. `.dpuk-wizard-grid` was removed with the old one-control-per-
	   row wizard; no markup emits it. */

	/* Split sections: intro copy left, estimator / quote wizard right. */
	.dpuk-hero__grid.wp-block-columns {
		display: flex !important;
		flex-direction: row !important;
		align-items: center !important;
		gap: 3.5rem !important;
	}

	.dpuk-hero__grid > .wp-block-column:first-child {
		flex: 1.15 1 0% !important;
		min-width: 0 !important;
	}

	.dpuk-hero__media {
		flex: 0.85 1 0% !important;
		min-width: 0 !important;
	}

	.dpuk-hero .dpuk-hero__float {
		width: 100%;
		max-width: 100%;
		inline-size: 100%;
		max-inline-size: 100%;
	}

	.dpuk-hero .dpuk-hero__float img {
		width: 100%;
		display: block;
	}

	.dpuk-split.wp-block-columns {
		display: flex !important;
		flex-direction: row !important;
		align-items: flex-start !important;
		gap: 3.5rem !important;
	}

	.dpuk-split--quote.wp-block-columns {
		flex-direction: row-reverse !important;
	}

	.dpuk-split__intro {
		flex: 1 1 0% !important;
		min-width: 0 !important;
	}

	.dpuk-split__detail {
		flex: 1.15 1 0% !important;
		min-width: 0 !important;
	}
}

/* Constrained containers stay centred at every width (core may lose
   the cascade to width caps above on some viewports). */
.wp-block-group:where(.is-layout-constrained) {
	margin-left: auto;
	margin-right: auto;
}

/* Allow constrained content to fill comfortably on horizontal screens (up to 88.75rem / 1420px) */
.is-layout-constrained
	> :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
	max-width: min(100%, 88.75rem);
}

/* FAQ goes wider on horizontal screens (single column kept) so the
   list gets shorter; vertical screens keep the narrow column. */
@media (min-width: 64rem) {
	#faq .dpuk-narrow {
		max-width: 62rem !important;
	}
}

/* Large desktop (1440px): expand canvas by ~10% on each side and keep centred. */
@media (min-width: 90rem) {
	.wp-block-group:where(.is-layout-constrained) {
		max-width: 90rem;
		margin-left: auto;
		margin-right: auto;
	}

	.dpuk-hero {
		padding-top: 2.75rem;
		padding-bottom: 2.75rem;
	}
}

/* Extra-large screens (1600px+): scale canvas gracefully, hold comfortable margins. */
@media (min-width: 100rem) {
	body
		.is-layout-constrained
		> :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
		max-width: 92rem;
		margin-left: auto;
		margin-right: auto;
	}
}

/* ============================================================
   Form splits: intro beside the form, form-tuned ratio
   ----------------------------------------------------------
   patterns/quote.php and patterns/contact.php emit
   `dpuk-split dpuk-split--form`. The owner asked for the side-by-side
   layout back after a full-width band was tried: on a large screen it
   reads as "what this is" | "do this", and the wizard keeps a stable
   left edge the eye can track across the three steps.

   Two differences from the default `.dpuk-split`:

   1. Ratio. `.dpuk-split__detail` is 2.2fr against the intro's 1fr, so
      the wizard gets ~69% of the 76rem content width (~825px at 1440)
      rather than the default ~53%. It was chosen for the always-open
      palette, where `repeat(auto-fill, minmax(4.75rem, 1fr))` fitted only
      6 chips per row in the old ~520px column. The palette is a popover
      now, so the ratio is no longer load-bearing for step 2's height; it
      is kept because step 1's two upload zones and step 3's address rows
      both read better in the wider detail column, and because narrowing
      it would shrink the popover's 24rem cap on desktop.
   2. Split point. Side by side from 75rem (1200px), not the default
      64rem. Between those widths the wizard would land at ~600px and
      wizard step 2 stops fitting one screen, so below 1200px both
      sections stack full width instead of squeezing the form.

   The enquiry form is shorter than the quote wizard, so its detail
   column drops to 1.55fr — at 2.2fr it would leave ~330px of intro copy
   beside a short column of fields, and the copy would wrap to a very
   short measure. */
@media (max-width: 74.9375rem) {
	/* !important because the min-width 64rem block above sets
	   `display: flex !important` on `.dpuk-split.wp-block-columns` at equal
	   specificity; this rule is later in the file, so it wins. */
	.dpuk-split--form.wp-block-columns {
		display: block !important;
	}

	.dpuk-split--form > .wp-block-column + .wp-block-column {
		margin-top: 2rem;
	}
}

@media (min-width: 75rem) {
	.dpuk-split--form.wp-block-columns {
		display: flex !important;
		flex-direction: row !important;
		align-items: flex-start !important;
		gap: clamp(2rem, 3.5vw, 3rem) !important;
	}

	.dpuk-split--form .dpuk-split__intro {
		flex: 1 1 0% !important;
		min-inline-size: 0 !important;
	}

	.dpuk-split--form .dpuk-split__detail {
		flex: 2.35 1 0% !important;
		min-inline-size: 0 !important;
	}

	.dpuk-split--contact .dpuk-split__detail,
	.dpuk-split--form.is-enquiry .dpuk-split__detail {
		flex: 1.55 1 0% !important;
	}
}

/* The split intros used to stick while the wizard scrolled beside them.

   Sticky only reads as intentional against a sibling ALONGSIDE that is much
   taller than the intro. These splits are not that: the quote wizard runs to
   ~900px against a ~300px intro, but the customer reads the intro first, so
   by the time it would start sticking they are already looking at the form.
   What they actually saw was the lead copy pinned under the site header,
   overlapping the card it sits next to — the split columns are short enough
   that the intro reached its sticky threshold while the top of the wizard was
   still on screen.

   The pricing split was worse: at 64-80rem it stacks (see the
   `.dpuk-split--wide-detail` max-width block below), so the intro sits ABOVE
   a ~640px calculator and a sticky intro is painted straight over it.

   Nothing sticks. The intro scrolls away with its section, which is what the
   rest of the page does. */

/* ============================================================
   Pricing split: wide detail column, later split point
   ----------------------------------------------------------
   .dpuk-split goes side by side from 64rem, which at 1024x768 left the
   estimator 436px. The calculator needs ~590px to put its two-option
   groups side by side, so the pricing split waits for 80rem (1280px) and
   stacks full width below that rather than squeezing the calculator.

   .dpuk-split--wide-detail is emitted by patterns/pricing.php. Detail =
   1.4 / (1 + 1.4) = 58.3% of the row, intro = 41.7%. Every other
   .dpuk-split keeps the 64rem behaviour. */
@media (max-width: 79.9375rem) {
	/* !important because the min-width 64rem block above sets
	   `display: flex !important` on `.dpuk-split.wp-block-columns` at equal
	   specificity; this rule is later in the file, so it wins. */
	.dpuk-split--wide-detail.wp-block-columns {
		display: block !important;
	}

	.dpuk-split--wide-detail > .wp-block-column + .wp-block-column {
		margin-top: 2rem;
	}
}

@media (min-width: 80rem) {
	.dpuk-split--wide-detail.wp-block-columns {
		display: flex !important;
		flex-direction: row !important;
		align-items: flex-start !important;
		gap: clamp(2rem, 4vw, 3.5rem) !important;
	}

	.dpuk-split--wide-detail .dpuk-split__intro {
		flex: 1 1 0% !important;
		min-inline-size: 0 !important;
	}

	.dpuk-split--wide-detail .dpuk-split__detail {
		flex: 1.65 1 0% !important;
		min-inline-size: 0 !important;
	}
}

/* ============================================================
   Hero float: no horizontal overflow at any width
   ----------------------------------------------------------
   figure.wp-block-image.is-resized.dpuk-hero__float and its img were the
   only two elements on the site that extended past the viewport — 32px at
   320 up to 83px at 834. The cause was `right: -10%` on a box the width
   of the viewport, inside .dpuk-hero__media.

   `overflow: hidden` on .dpuk-hero__media already clipped it visually so
   it never produced a scrollbar, but an element sitting off-screen is still
   a WCAG 1.4.10 failure and becomes a real reflow bug the moment the clip
   is dropped. The negative offset becomes a small positive inset that
   scales with the viewport; the layered-photo look is carried by the
   rotation and the overlap with the thumbnail row, both unchanged. */
@media (max-width: 63.9375rem) {
	.dpuk-hero .dpuk-hero__float {
		right: clamp(0rem, 1.5vw, 1.25rem);
		inline-size: min(62%, 20rem);
		max-inline-size: 100%;
	}
}

/* ============================================================
   Forced colours (Windows High Contrast).
   The browser replaces all author colours with the user's system
   palette. That is correct for text and borders, but it destroys
   the one place this theme *uses* colour as information: the 30
   filament swatches. Without this block every chip renders in the
   same system background colour and the palette picker becomes an
   undifferentiated grid of identical squares — a total loss of
   function for anyone running High Contrast, who is disproportionately
   likely to be using a screen magnifier alongside it.

   `forced-color-adjust: none` opts those chips back out, so the
   chip keeps its real filament colour. WCAG 1.4.1 (Use of Colour)
   is still satisfied because the colour is never the only cue: each
   swatch input carries its name and Bambu code as an aria-label, the
   trigger spells the choice out in text, and selection is a ring plus
   a check mark rather than a fill change.

   The chips on the trigger get the same treatment — they are the only
   thing left on screen when the popover is closed, so losing their
   colour there would undo the point of the control entirely.
   ============================================================ */
@media (forced-colors: active) {
	/* Preserve the filament colour on swatch chips. */
	.dpuk-swatch__chip,
	.dpuk-colour__chip {
		forced-color-adjust: none;
	}

	/* A tick is not visible on a chip whose colour happens to match the
	   forced palette, so selection also gets a thick system-colour ring
	   that survives regardless. */
	.dpuk-swatch:has(> .dpuk-swatch__input:checked) .dpuk-swatch__label {
		outline: 3px solid CanvasText;
		outline-offset: 2px;
	}

	.dpuk-option:has(> .dpuk-option__input:checked) {
		outline: 2px solid CanvasText;
		outline-offset: 1px;
	}

	/* Shadows are dropped in forced-colours mode, so anything that used a
	   shadow as its only separation needs a real border instead. */
	.dpuk-to-top,
	.dpuk-tip__body,
	.dpuk-card,
	.dpuk-upload-zone {
		border: 1px solid CanvasText;
	}

	/* The scroll-to-top glyph is invisible if its container ends up on the
	   same system colour as the glyph; give it a border. */
	.dpuk-to-top {
		forced-color-adjust: none;
		color: CanvasText;
		background: Canvas;
	}
}

/* ============================================================
   Reduced motion: disable ALL motion (fade, lift, float,
   smooth scroll, estimator flash). Content stays visible.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	.dpuk-hero__float {
		animation: none;
	}

	.dpuk-fade-up,
	.dpuk-js .dpuk-fade-up,
	.dpuk-js .dpuk-fade-up.is-visible {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.dpuk-lift:hover,
	.wp-block-button__link:hover,
	.wp-element-button:hover,
	button[type="submit"]:hover {
		transform: none;
	}

	.dpuk-js .dpuk-estimator__total strong.dpuk-total-flash {
		color: var(--dpuk-primary-ink);
		opacity: 1;
		transform: none;
	}

	/* Tooltip bubbles — desktop hover/focus bubble and the coarse-pointer
	   card-anchored bubble — appear without the fade/slide; visibility is
	   still toggled, so the content itself is unchanged. */
	.dpuk-tip__body {
		transition: none;
	}

	/* Disclosure chevrons must not rotate. */
	summary.dpuk-specs__summary::after,
	details.dpuk-specs[open] > summary.dpuk-specs__summary::after,
	.dpuk-faq__item summary::after,
	.wp-block-details summary::after,
	.dpuk-faq__item[open] summary::after,
	.wp-block-details[open] summary::after {
		transition: none;
	}

	/* The colour picker trigger: the caret stops rotating and the fill/border
	   change is instant. Both are decoration — the popover is toggled by the
	   `hidden` attribute from JS, not by these transitions. */
	.dpuk-colour__caret {
		transition: none;
	}

	.dpuk-colour__trigger {
		transition: none;
	}

	/* The step pills fade between done / current / todo; that colour change
	   is the only motion here. */
	.dpuk-quote-progress li {
		transition: none;
	}

	.dpuk-swatch__chip,
	.dpuk-swatch__chip svg,
	.dpuk-swatch__label,
	.dpuk-option {
		transition: none;
	}
}

/* ============================================================
   Cookie Consent Banner & Preferences Modal (UK GDPR & PECR)
   ============================================================ */

body.dpuk-modal-open {
	overflow: hidden;
}

/* --- Banner (Bottom Floating Card) --- */
.dpuk-cookie-banner {
	position: fixed;
	bottom: 1.5rem;
	left: 1.5rem;
	right: 1.5rem;
	max-width: 1120px;
	margin: 0 auto;
	z-index: 99998;
	opacity: 0;
	transform: translateY(24px);
	transition:
		opacity 0.3s ease,
		transform 0.3s ease;
	pointer-events: none;
}

.dpuk-cookie-banner.is-visible {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.dpuk-cookie-banner__inner {
	background: var(--dpuk-white);
	border: 1px solid var(--dpuk-border);
	border-radius: var(--dpuk-radius-card);
	box-shadow: 0 16px 48px rgba(22, 48, 63, 0.22);
	padding: 1.5rem 1.75rem;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

@media (min-width: 860px) {
	.dpuk-cookie-banner__inner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 2rem;
	}
}

.dpuk-cookie-banner__content {
	flex: 1;
}

.dpuk-cookie-banner__title {
	font-family: var(--dpuk-font-heading);
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--dpuk-ink);
	margin: 0 0 0.4rem 0;
}

.dpuk-cookie-banner__text {
	font-family: var(--dpuk-font-body);
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--dpuk-muted);
	margin: 0;
}

.dpuk-cookie-banner__text a {
	color: var(--dpuk-primary-ink);
	text-decoration: underline;
	font-weight: 600;
}

.dpuk-cookie-banner__text a:hover {
	color: var(--dpuk-primary);
}

.dpuk-cookie-banner__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.625rem;
	align-items: center;
}

/* --- Shared Cookie Buttons --- */
.dpuk-cookie-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--dpuk-radius-pill);
	padding: 0.625rem 1.25rem;
	font-family: var(--dpuk-font-heading);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.25;
	cursor: pointer;
	text-decoration: none;
	white-space: nowrap;
	transition:
		transform 0.2s ease,
		background-color 0.2s ease,
		border-color 0.2s ease,
		color 0.2s ease,
		box-shadow 0.2s ease;
}

.dpuk-cookie-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(33, 60, 81, 0.15);
}

.dpuk-cookie-btn--primary {
	background: var(--dpuk-primary);
	border: 1px solid var(--dpuk-primary);
	color: var(--dpuk-on-brand);
}

.dpuk-cookie-btn--primary:hover {
	background: var(--dpuk-primary-dark);
	border-color: var(--dpuk-primary-dark);
	color: var(--dpuk-on-brand);
}

.dpuk-cookie-btn--secondary {
	background: var(--dpuk-alt);
	border: 1px solid var(--dpuk-border);
	color: var(--dpuk-ink);
}

.dpuk-cookie-btn--secondary:hover {
	background: var(--dpuk-tint);
	border-color: var(--dpuk-border-strong);
	color: var(--dpuk-ink);
}

.dpuk-cookie-btn--outline {
	background: transparent;
	border: 1px solid var(--dpuk-border-strong);
	color: var(--dpuk-primary-ink);
}

.dpuk-cookie-btn--outline:hover {
	background: var(--dpuk-tint-soft);
	border-color: var(--dpuk-primary);
	color: var(--dpuk-primary);
}

/* --- Preferences Modal --- */
.dpuk-cookie-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
	opacity: 0;
	visibility: hidden;
	transition:
		opacity 0.25s ease,
		visibility 0.25s ease;
}

.dpuk-cookie-modal.is-visible {
	opacity: 1;
	visibility: visible;
}

.dpuk-cookie-modal__backdrop {
	position: fixed;
	inset: 0;
	background: rgba(18, 41, 55, 0.65);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.dpuk-cookie-modal__dialog {
	position: relative;
	z-index: 1;
	background: var(--dpuk-white);
	border: 1px solid var(--dpuk-border);
	border-radius: var(--dpuk-radius-card);
	box-shadow: 0 24px 64px rgba(18, 41, 55, 0.35);
	max-width: 620px;
	width: 100%;
	max-height: 88vh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transform: scale(0.96);
	transition: transform 0.25s ease;
}

.dpuk-cookie-modal.is-visible .dpuk-cookie-modal__dialog {
	transform: scale(1);
}

.dpuk-cookie-modal__header {
	padding: 1.5rem 1.75rem 1rem 1.75rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid var(--dpuk-alt);
}

.dpuk-cookie-modal__title {
	font-family: var(--dpuk-font-heading);
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--dpuk-ink);
	margin: 0;
}

.dpuk-cookie-modal__close {
	background: transparent;
	border: none;
	font-size: 1.85rem;
	line-height: 1;
	color: var(--dpuk-muted);
	cursor: pointer;
	padding: 0.25rem 0.5rem;
	border-radius: 6px;
	transition:
		color 0.15s ease,
		background 0.15s ease;
}

.dpuk-cookie-modal__close:hover {
	color: var(--dpuk-ink);
	background: var(--dpuk-alt);
}

.dpuk-cookie-modal__body {
	padding: 1.5rem 1.75rem;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.dpuk-cookie-modal__intro {
	font-family: var(--dpuk-font-body);
	font-size: 0.875rem;
	line-height: 1.55;
	color: var(--dpuk-muted);
	margin: 0 0 0.5rem 0;
}

.dpuk-cookie-modal__category {
	background: var(--dpuk-page);
	border: 1px solid var(--dpuk-border);
	border-radius: 12px;
	padding: 1rem 1.25rem;
}

.dpuk-cookie-modal__category-header {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
}

/* Custom Toggle Switch */
.dpuk-cookie-modal__toggle-wrap {
	position: relative;
	width: 44px;
	height: 24px;
	flex-shrink: 0;
	margin-top: 2px;
}

.dpuk-cookie-switch {
	opacity: 0;
	width: 0;
	height: 0;
	position: absolute;
}

.dpuk-cookie-slider {
	position: absolute;
	cursor: pointer;
	inset: 0;
	background-color: var(--dpuk-border-strong);
	border-radius: 24px;
	transition: background-color 0.25s ease;
}

.dpuk-cookie-slider::before {
	position: absolute;
	content: "";
	height: 18px;
	width: 18px;
	left: 3px;
	bottom: 3px;
	background-color: var(--dpuk-white);
	border-radius: 50%;
	transition: transform 0.25s ease;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.dpuk-cookie-switch:checked + .dpuk-cookie-slider {
	background-color: var(--dpuk-primary);
}

.dpuk-cookie-switch:checked + .dpuk-cookie-slider::before {
	transform: translateX(20px);
}

.dpuk-cookie-switch:disabled + .dpuk-cookie-slider {
	background-color: var(--dpuk-primary);
	opacity: 0.75;
	cursor: not-allowed;
}

.dpuk-cookie-switch:focus-visible + .dpuk-cookie-slider {
	outline: 2px solid var(--dpuk-primary);
	outline-offset: 2px;
}

.dpuk-cookie-modal__category-text {
	flex: 1;
}

.dpuk-cookie-modal__category-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.25rem;
}

.dpuk-cookie-modal__category-heading strong,
.dpuk-cookie-modal__category-heading label {
	font-family: var(--dpuk-font-heading);
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--dpuk-ink);
	cursor: pointer;
}

.dpuk-cookie-badge {
	font-size: 0.725rem;
	font-weight: 600;
	padding: 0.15rem 0.55rem;
	border-radius: var(--dpuk-radius-pill);
	line-height: 1.3;
}

.dpuk-cookie-badge--required {
	background: var(--dpuk-success-bg);
	color: var(--dpuk-success);
}

.dpuk-cookie-modal__category-desc {
	font-family: var(--dpuk-font-body);
	font-size: 0.8125rem;
	line-height: 1.45;
	color: var(--dpuk-muted);
	margin: 0;
}

.dpuk-cookie-modal__footer {
	padding: 1.25rem 1.75rem;
	border-top: 1px solid var(--dpuk-alt);
	display: flex;
	flex-wrap: wrap;
	gap: 0.625rem;
	justify-content: flex-end;
	background: var(--dpuk-white);
}

@media (max-width: 640px) {
	.dpuk-cookie-banner {
		bottom: 1rem;
		left: 1rem;
		right: 1rem;
	}

	.dpuk-cookie-banner__inner {
		padding: 1.25rem;
	}

	.dpuk-cookie-banner__actions {
		width: 100%;
	}

	.dpuk-cookie-banner__actions .dpuk-cookie-btn {
		flex: 1 1 100%;
		text-align: center;
	}

	.dpuk-cookie-modal__footer {
		flex-direction: column;
	}

	.dpuk-cookie-modal__footer .dpuk-cookie-btn {
		width: 100%;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dpuk-cookie-banner,
	.dpuk-cookie-modal,
	.dpuk-cookie-modal__dialog,
	.dpuk-cookie-slider,
	.dpuk-cookie-slider::before,
	.dpuk-cookie-btn {
		transition: none !important;
	}
}
