/*
 * TrustUS Care UK: site styles.
 *
 * docs/brand.md is the source of truth for every colour, size, radius and motion value here.
 * If this file and docs/brand.md disagree, docs/brand.md wins. Every text and background pair
 * used below is one of the measured pairs in brand.md section 1.5.
 *
 * Type: Instrument Serif (headings, quotes, numerals) and Plus Jakarta Sans (everything else),
 * self-hosted woff2 from theme.json.
 * Breakpoints: 600, 768, 1024 and 1280px (desktop navigation).
 */

/*
 * Fallback faces sized to match the web fonts (brand.md 2.1), so text takes the same room
 * while the woff2 files load and does not rewrap when they swap in (CLS). The figures come
 * from the font files: size-adjust is the ratio of average glyph widths, and the ascent and
 * descent are the web font's, divided by size-adjust.
 */
@font-face {
	font-family: "Instrument Serif Fallback";
	font-style: normal;
	src: local("Georgia");
	size-adjust: 76.9%;
	ascent-override: 128.8%;
	descent-override: 40.3%;
	line-gap-override: 0%;
}

@font-face {
	font-family: "Instrument Serif Fallback";
	font-style: italic;
	src: local("Georgia Italic"), local("Georgia-Italic");
	size-adjust: 79.2%;
	ascent-override: 125%;
	descent-override: 39.1%;
	line-gap-override: 0%;
}

@font-face {
	font-family: "Plus Jakarta Sans Fallback";
	font-style: normal;
	src: local("Arial"), local("ArialMT");
	size-adjust: 104.1%;
	ascent-override: 99.7%;
	descent-override: 21.3%;
	line-gap-override: 0%;
}

:root {
	--teal-900: #0f4f5e;
	--teal: #146a7a;
	--ink: #212b33;
	--slate: #4b5862;
	--ember: #a84300;
	--night: #222065;
	--paper: #fbfaf4;
	--white: #fff;
	--ivory: #f6f1e4;
	--tint: #e3e9e5;
	--footer: #e5ebea;
	--line: #e2ddd0;
	--field: #69757e;
	--error: #b42318;
	--error-bg: #fdf3f2;
	--focus: #0f4f5e;

	--lavender: #c1c0f2;
	--lavender-hover: #b3b7e6;
	--sky: #a9e0f9;
	--sky-hover: #9dd4ed;
	--apricot: #ffd2b2;
	--apricot-hover: #ecc8ab;
	--citrus: #e5ec83;
	--citrus-hover: #d4df80;
	--seaglass: #b7e1d9;
	--seaglass-hover: #aad5cf;
	--sunrise: #ff8e3d;
	--sunrise-hover: #ffac70;

	--serif: "Instrument Serif", "Instrument Serif Fallback", "Iowan Old Style", Georgia, serif;
	--sans: "Plus Jakarta Sans", "Plus Jakarta Sans Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--fs-h1: clamp(2.5rem, 1.2857rem + 3.5714vw, 4.5rem);
	--fs-h2: clamp(2rem, 0.5357rem + 3.5714vw, 3.75rem);
	--fs-h3: clamp(1.75rem, 0.8571rem + 2.381vw, 3rem);
	--fs-card: clamp(1.5rem, 1.1786rem + 1.1905vw, 2.25rem);
	--fs-lead: clamp(1.125rem, 1.0786rem + 0.1905vw, 1.25rem);
	--fs-quote: clamp(1.5rem, 1.3607rem + 0.5714vw, 1.875rem);
	--fs-faq: clamp(1.375rem, 1.1607rem + 0.8929vw, 1.875rem);

	--r-sm: 8px;
	--r-card: 12px;
	--r-block: 24px;
	--r-pill: 9999px;
	--shadow-header: 0 1px 0 rgba(15, 79, 94, 0.12);
	--shadow-lift: 0 12px 32px -12px rgba(11, 60, 72, 0.25);

	--section: clamp(4rem, 2.7rem + 5.3333vw, 7.5rem);
	--section-sm: clamp(3rem, 2.4rem + 2.5vw, 4.5rem);
	--gutter: clamp(1.25rem, 0.7857rem + 1.9048vw, 2.5rem);
	--wrap: 1240px;
	--card-pad: clamp(1.5rem, 1.1286rem + 1.5238vw, 2.5rem);
	--gap: clamp(1rem, 0.75rem + 1vw, 1.5rem);
	--header-h: 4.5rem;

	--ease-out: cubic-bezier(0, 0, 0.2, 1);
	--ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
	--dur-fast: 150ms;
	--dur-base: 300ms;
	--dur-reveal: 600ms;
	--marquee: 30s;
}

@media (min-width: 1280px) {
	:root {
		--header-h: 5.5rem;
	}
}

/* ------------------------------------------------------------ Base */

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + 1rem);
}

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

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 1rem;
	line-height: 1.5;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}

body.menu-open {
	overflow: hidden;
}

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

svg.icon {
	flex: none;
	vertical-align: middle;
}

a {
	color: var(--teal);
	text-decoration-line: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	transition: color var(--dur-fast) var(--ease-out), text-decoration-thickness var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

a:hover {
	color: var(--teal-900);
	text-decoration-thickness: 2px;
}

:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 3px;
}

::selection {
	background: var(--apricot);
	color: var(--ink);
}

h1,
h2,
h3,
.h3 {
	margin: 0;
	font-family: var(--serif);
	font-weight: 400;
	font-synthesis-weight: none;
	line-height: 1;
	letter-spacing: -0.025em;
	color: var(--ink);
	text-wrap: balance;
}

h1 {
	font-size: var(--fs-h1);
}

h2 {
	font-size: var(--fs-h2);
}

h3,
.h3 {
	font-size: var(--fs-card);
}

h1 em {
	font-style: italic;
	color: var(--teal);
}

p {
	text-wrap: pretty;
}

.lead,
.lead-html p {
	margin: 0;
	max-width: 60ch;
	font-size: var(--fs-lead);
	font-weight: 300;
	line-height: 1.5;
}

.lead-html p + p {
	margin-top: 1rem;
}

.small {
	font-size: 0.875rem;
	line-height: 1.43;
	color: var(--slate);
}

.eyebrow {
	margin: 0 0 1rem;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.43;
	letter-spacing: 0.02em;
	color: var(--ember);
}

.visually-hidden,
.screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.wrap {
	width: 100%;
	max-width: calc(var(--wrap) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.skip-link {
	position: absolute;
	left: 1rem;
	top: -200px;
	z-index: 200;
	padding: 0.875rem 1.5rem;
	border-radius: var(--r-pill);
	background: var(--ink);
	color: var(--white);
	font-weight: 600;
	text-decoration: none;
}

.skip-link:focus {
	top: 1rem;
	color: var(--white);
}

main:focus {
	outline: none;
}

[id] {
	scroll-margin-top: calc(var(--header-h) + 1rem);
}

.rule {
	margin: 2rem 0;
	border: 0;
	border-top: 1px solid var(--line);
}

/* ------------------------------------------------------------ Surfaces */

.bg-paper {
	background: var(--paper);
}

.bg-white {
	background: var(--white);
}

.bg-ivory {
	background: var(--ivory);
}

.bg-tint {
	background: var(--tint);
}

.bg-deep,
.bg-night {
	--focus: var(--white);
	background: var(--teal-900);
	color: var(--white);
}

.bg-night {
	background: var(--night);
}

.bg-deep :is(h1, h2, h3),
.bg-night :is(h1, h2, h3) {
	color: var(--white);
}

.bg-deep h1 em {
	color: var(--sky);
}

.bg-deep a:not(.btn),
.bg-night a:not(.btn) {
	color: var(--white);
}

.bg-deep .small,
.bg-night .small {
	color: var(--white);
}

/* Doubled so a tint always wins over a component's own background. */
.tint-lavender.tint-lavender {
	--pastel: var(--lavender);
	--pastel-hover: var(--lavender-hover);
	background-color: var(--lavender);
}

.tint-sky.tint-sky {
	--pastel: var(--sky);
	--pastel-hover: var(--sky-hover);
	background-color: var(--sky);
}

.tint-apricot.tint-apricot {
	--pastel: var(--apricot);
	--pastel-hover: var(--apricot-hover);
	background-color: var(--apricot);
}

.tint-citrus.tint-citrus {
	--pastel: var(--citrus);
	--pastel-hover: var(--citrus-hover);
	background-color: var(--citrus);
}

.tint-seaglass.tint-seaglass {
	--pastel: var(--seaglass);
	--pastel-hover: var(--seaglass-hover);
	background-color: var(--seaglass);
}

/* Text on pastels: Charcoal, with Deep teal for headings, accents and links. Never Slate or Teal. */
.on-pastel {
	color: var(--ink);
}

.on-pastel h1 em,
.on-pastel a:not(.btn) {
	color: var(--teal-900);
}

.on-pastel :is(.small, .hint, .optional, .form-privacy, .eyebrow, .ph-meta) {
	color: var(--ink);
}

/* ------------------------------------------------------------ Sections */

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

.section-sm {
	padding-block: var(--section-sm);
}

.sec-head {
	display: grid;
	gap: 1rem;
	margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}

/* A heading block with nothing after it in its section. */
.sec-head:last-child {
	margin-bottom: 0;
}

.sec-head-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem 3rem;
}

.sec-head-row > div {
	display: grid;
	gap: 1rem;
	max-width: 44rem;
}

.sec-intro {
	margin: 0;
	max-width: 60ch;
	font-size: var(--fs-lead);
	font-weight: 300;
}

.actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.5rem;
	margin-top: 2rem;
}

/* ------------------------------------------------------------ Buttons and links */

.btn {
	--btn-bg: var(--teal);
	--btn-fg: var(--white);
	--btn-hover: var(--teal-900);
	--btn-border: var(--btn-bg);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 3rem;
	padding: 0.75rem 1.5rem;
	border: 1.5px solid var(--btn-border);
	border-radius: var(--r-pill);
	background: var(--btn-bg);
	color: var(--btn-fg);
	font-family: var(--sans);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.5;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}

.btn:hover {
	--btn-bg: var(--btn-hover);
	--btn-border: var(--btn-hover);
	color: var(--btn-fg);
	text-decoration: none;
}

.btn .icon {
	transition: transform var(--dur-fast) var(--ease-out);
}

.btn-deep {
	--btn-bg: var(--teal-900);
	--btn-hover: var(--teal);
}

.btn-sun {
	--btn-bg: var(--sunrise);
	--btn-fg: var(--ink);
	--btn-hover: var(--sunrise-hover);
}

.btn-white {
	--btn-bg: var(--white);
	--btn-fg: var(--teal-900);
	--btn-hover: var(--sky);
}

.btn-outline {
	--btn-bg: transparent;
	--btn-fg: var(--teal);
	--btn-border: var(--teal);
}

.btn-outline:hover {
	--btn-bg: var(--tint);
	--btn-border: var(--teal);
	color: var(--teal-900);
}

.btn-outline-light {
	--btn-bg: transparent;
	--btn-fg: var(--white);
	--btn-border: var(--white);
}

.btn-outline-light:hover {
	--btn-bg: var(--white);
	--btn-border: var(--white);
	color: var(--teal-900);
}

.bg-night .btn-outline-light:hover {
	color: var(--night);
}

.text-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-weight: 500;
}

.arrow {
	flex: none;
	display: inline-grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	background: var(--teal-900);
	color: var(--white);
	transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}

.arrow-sm {
	width: 2rem;
	height: 2rem;
}

.arrow-sm .icon {
	width: 16px;
	height: 16px;
}

.arrow-sun {
	background: var(--sunrise);
	color: var(--ink);
}

.round-btn {
	display: inline-grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	padding: 0;
	border: 1.5px solid var(--teal-900);
	border-radius: 50%;
	background: transparent;
	color: var(--teal-900);
	cursor: pointer;
	transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}

.round-btn:hover:not(:disabled):not(.is-disabled),
.round-deep {
	background: var(--teal-900);
	color: var(--white);
}

.round-deep:hover {
	background: var(--teal);
	border-color: var(--teal);
	color: var(--white);
}

.round-sun {
	border-color: var(--sunrise);
	background: var(--sunrise);
	color: var(--ink);
}

.round-sun:hover:not(:disabled) {
	border-color: var(--sunrise-hover);
	background: var(--sunrise-hover);
	color: var(--ink);
}

.round-btn:disabled,
.round-btn.is-disabled {
	opacity: 0.35;
	cursor: default;
}

/* ------------------------------------------------------------ Utility bar */

.utility {
	display: none;
	background: var(--white);
	border-bottom: 1px solid var(--line);
	font-size: 0.8125rem;
	font-weight: 600;
}

.utility-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	min-height: 2.5rem;
}

.utility-place {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0;
}

.utility .icon {
	color: var(--teal);
}

.utility-links {
	display: flex;
	gap: 1.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.utility-links a {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	min-height: 2.5rem;
	color: var(--ink);
	text-decoration: none;
}

.utility-links a:hover {
	color: var(--teal);
	text-decoration: underline;
}

@media (min-width: 1280px) {
	.utility {
		display: block;
	}
}

/* ------------------------------------------------------------ Header (phones and tablets) */

/* Below 1280px the header is a deep teal bar: logo on a white badge, the free assessment
   pill and a round menu button that opens a full-screen menu. */
.site-header {
	--focus: var(--white);
	position: sticky;
	top: 0;
	z-index: 60;
	background: var(--teal-900);
	color: var(--white);
	transition: box-shadow var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out);
}

.header-inner {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-height: var(--header-h);
}

.brand {
	flex: none;
	display: inline-flex;
	align-items: center;
	padding: 0.3rem 0.6rem;
	border-radius: var(--r-card);
	background: var(--white);
}

.brand img {
	display: block;
	width: auto;
	height: 2.75rem;
}

.cqc-lockup {
	display: none;
	align-items: center;
	gap: 0.6rem;
	padding-left: 1rem;
	border-left: 1px solid rgba(255, 255, 255, 0.3);
	color: var(--white);
	font-size: 0.875rem;
	line-height: 1.25;
	text-decoration: none;
}

.cqc-lockup span {
	display: grid;
}

.cqc-lockup strong {
	font-weight: 600;
}

.cqc-lockup .icon {
	color: var(--sky);
}

.cqc-lockup:hover {
	color: var(--white);
	text-decoration: underline;
}

.header-cta {
	--btn-bg: var(--sunrise);
	--btn-fg: var(--ink);
	--btn-hover: var(--sunrise-hover);
	order: 2;
	margin-left: auto;
	min-height: 2.75rem;
	padding: 0.5rem 1.125rem;
	white-space: nowrap;
	transition-duration: var(--dur-base);
}

.cta-long {
	display: none;
}

.menu-toggle {
	order: 3;
	flex: none;
	display: inline-grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--white);
	color: var(--teal-900);
	cursor: pointer;
}

.menu-toggle-icon {
	display: grid;
}

.menu-toggle-icon .icon {
	grid-area: 1 / 1;
}

.menu-toggle-icon .icon-close,
.is-open .menu-toggle-icon .icon-menu {
	display: none;
}

.is-open .menu-toggle-icon .icon-close {
	display: block;
}

.menu-toggle-label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

/* Below 360px (down to the 320px reflow width) the logo badge, the pill and the menu button
   would not fit beside each other, so the row tightens. The menu button stays 44px square. */
@media (max-width: 359.98px) {
	.header-inner {
		gap: 0.5rem;
	}

	.brand {
		padding: 0.25rem 0.45rem;
	}

	.brand img {
		height: 2.25rem;
	}

	.header-cta {
		padding-inline: 0.75rem;
		font-size: 0.9375rem;
	}

	.menu-toggle {
		width: 2.75rem;
		height: 2.75rem;
	}
}

/* Without JavaScript the button cannot open anything, so it is not shown. Every page is still
   linked from the footer. */
html:not(.js) .menu-toggle {
	display: none;
}

/* The full-screen menu. */
.primary-nav {
	--focus: var(--teal-900);
	display: none;
	position: fixed;
	inset: var(--header-h) 0 0;
	z-index: 59;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 1rem var(--gutter) 3rem;
	background: var(--paper);
	color: var(--ink);
}

.is-open .primary-nav {
	display: block;
}

.nav-list {
	margin: 0 auto;
	padding: 0;
	max-width: 40rem;
	list-style: none;
}

.nav-item {
	border-bottom: 1px solid var(--line);
}

.nav-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	width: 100%;
	min-height: 3.5rem;
	padding: 0.5rem 0;
	border: 0;
	background: none;
	color: var(--ink);
	font-family: var(--sans);
	font-size: 1.125rem;
	font-weight: 500;
	line-height: 1.5;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}

.nav-link:hover {
	color: var(--teal);
}

.is-current > .nav-link {
	color: var(--teal);
}

.nav-trigger .icon {
	transition: transform var(--dur-base) var(--ease-out);
}

.nav-trigger[aria-expanded="true"] .icon {
	transform: rotate(180deg);
}

.mega {
	display: none;
}

.nav-item.is-open > .mega {
	display: block;
}

html:not(.js) .nav-item:focus-within > .mega {
	display: block;
}

/* Room above the column titles, so the trigger's focus ring does not touch them. */
.mega-inner {
	display: grid;
	gap: 1.25rem;
	padding: 1rem 0 1.5rem;
}

.mega-col {
	display: grid;
	gap: 0.5rem;
	align-content: start;
}

.mega-col-stack {
	gap: 1.25rem;
}

.mega-title {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--ink);
	font-family: var(--serif);
	font-size: 1.5rem;
	line-height: 1.1;
	letter-spacing: -0.02em;
	text-decoration: none;
}

.mega-title:hover {
	color: var(--teal-900);
	text-decoration: underline;
	text-decoration-thickness: 1px;
}

.mega-text {
	margin: 0;
	color: var(--slate);
	font-size: 0.875rem;
	line-height: 1.43;
	font-weight: 300;
}

.mega-links {
	display: grid;
	gap: 0.125rem;
	margin: 0.25rem 0 0;
	padding: 0;
	list-style: none;
}

.mega-links a {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	min-height: 2.5rem;
	color: var(--ink);
	text-decoration: none;
}

.mega-links a:hover {
	color: var(--teal);
	text-decoration: underline;
}

.mega-links .icon {
	color: var(--teal);
}

.mega-card {
	display: grid;
	gap: 0.5rem;
	padding: 1.5rem;
	border-radius: var(--r-card);
	background: var(--apricot);
	color: var(--ink);
	text-decoration: none;
}

.mega-card:hover {
	background: var(--apricot-hover);
	color: var(--ink);
}

.mega-card-title {
	font-family: var(--serif);
	font-size: 1.5rem;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--teal-900);
}

.mega-card-text {
	font-size: 0.875rem;
	font-weight: 300;
}

.nav-extra {
	display: grid;
	gap: 1.25rem;
	max-width: 40rem;
	margin: 2rem auto 0;
}

.nav-extra-links {
	display: grid;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav-extra-links a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 2.75rem;
	color: var(--ink);
}

.nav-extra-links .icon {
	color: var(--teal);
}

/* Postcode bar under the header, once the districts are set. Not on the home page, where the
   hero has the same check. */
.pc-bar {
	padding-block: 0.75rem;
	background: var(--teal-900);
	border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.home .pc-bar {
	display: none;
}

@media (min-width: 600px) {
	.cta-long {
		display: inline;
	}

	.cta-short {
		display: none;
	}
}

@media (min-width: 768px) {
	.brand img {
		height: 3rem;
	}

	.cqc-lockup {
		display: inline-flex;
	}

	.mega-inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ------------------------------------------------------------ Header (desktop) */

@media (min-width: 1280px) {
	.site-header {
		--focus: var(--teal-900);
		background: var(--paper);
		color: var(--ink);
	}

	.site-header.is-scrolled {
		box-shadow: var(--shadow-header);
	}

	.header-inner {
		gap: 1.5rem;
	}

	.brand {
		padding: 0;
		background: none;
	}

	.brand img {
		height: 3.5rem;
	}

	.cqc-lockup {
		border-left-color: var(--line);
		color: var(--ink);
	}

	.cqc-lockup:hover {
		color: var(--teal-900);
	}

	.cqc-lockup .icon {
		color: var(--teal);
	}

	.menu-toggle {
		display: none;
	}

	.primary-nav {
		display: block;
		position: static;
		overflow: visible;
		padding: 0;
		margin-left: auto;
		background: none;
	}

	.nav-list {
		display: flex;
		gap: 0.25rem;
		max-width: none;
	}

	.nav-item {
		border: 0;
	}

	.nav-link {
		position: relative;
		width: auto;
		min-height: 3rem;
		padding: 0.5rem 1rem;
		border-radius: var(--r-pill);
		font-size: 1rem;
		gap: 0.25rem;
		transition: background-color var(--dur-base) linear, color var(--dur-fast) var(--ease-out);
	}

	a.nav-link::after {
		content: "";
		position: absolute;
		left: 1rem;
		right: 1rem;
		bottom: 0.6rem;
		height: 1.5px;
		background: currentColor;
		transform: scaleX(0);
		transform-origin: left;
		transition: transform var(--dur-base) var(--ease-out);
	}

	a.nav-link:hover::after,
	.is-current > a.nav-link::after {
		transform: scaleX(1);
	}

	.nav-trigger:hover,
	.nav-trigger[aria-expanded="true"] {
		background: var(--tint);
		color: var(--teal-900);
	}

	.mega {
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		border-top: 1px solid var(--line);
		background: var(--paper);
		box-shadow: var(--shadow-lift);
	}

	.mega-inner {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 2.5rem;
		padding: 2.5rem var(--gutter) 3rem;
	}

	.nav-extra {
		display: none;
	}

	.header-cta {
		--btn-bg: var(--teal-900);
		--btn-fg: var(--white);
		--btn-hover: var(--teal);
		order: 0;
		margin-left: 0;
		min-height: 3rem;
		padding: 0.75rem 1.5rem;
	}

	.cta-long {
		display: none;
	}

	.cta-short {
		display: inline;
	}

	.pc-bar {
		border-top: 0;
	}
}

@media (min-width: 1440px) {
	.cta-long {
		display: inline;
	}

	.cta-short {
		display: none;
	}
}

/* ------------------------------------------------------------ Postcode check */

.pc {
	display: grid;
	gap: 0.75rem;
	max-width: 30rem;
}

.pc[hidden] {
	display: none;
}

.pc-field {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 3.5rem;
	padding: 0.25rem 0.25rem 0.25rem 1.125rem;
	border: 1.5px solid var(--field);
	border-radius: var(--r-pill);
	background: var(--white);
	color: var(--teal-900);
}

.pc-field input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: none;
	color: var(--ink);
	font: inherit;
	font-size: 1rem;
	text-transform: uppercase;
}

.pc-field input::placeholder {
	color: var(--slate);
	text-transform: none;
}

.pc-field input:focus {
	outline: none;
}

.pc-field:focus-within {
	outline: 3px solid var(--teal-900);
	outline-offset: 2px;
}

.pc-dark .pc-field,
.pc-dark .pc-field:focus-within {
	border-color: var(--white);
	outline-color: var(--white);
}

.pc-big {
	max-width: 36rem;
	margin-inline: auto;
}

.pc-big .pc-field {
	min-height: 4rem;
}

.pc-answer {
	margin: 0;
	font-weight: 500;
}

.pc-answer:empty {
	display: none;
}

.pc-dark .pc-answer {
	color: var(--white);
}

/* ------------------------------------------------------------ Breadcrumbs */

.crumbs {
	margin-bottom: 1.5rem;
	font-size: 0.8125rem;
}

.crumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* The separator ends the item before it, so it never starts a wrapped line on its own.
   The empty alt text keeps screen readers from reading it out where supported. */
.crumbs li:not(:last-child)::after {
	content: "/";
	content: "/" / "";
	margin-left: 0.5rem;
	color: currentColor;
}

.crumbs a {
	color: inherit;
}

.crumbs [aria-current] {
	font-weight: 600;
}

/* ------------------------------------------------------------ Home hero */

.hero {
	padding-block: clamp(2.5rem, 1.5rem + 3vw, 4.5rem) clamp(3.5rem, 2rem + 4vw, 6rem);
}

.hero-grid {
	display: grid;
	gap: clamp(2.5rem, 5vw, 5rem);
	align-items: center;
}

.hero-copy h1 {
	max-width: 14ch;
}

.hero-copy .lead {
	margin-top: 1.5rem;
}

.hero-copy .pc {
	margin-top: 2rem;
}

.hero-copy .actions {
	margin-top: 2rem;
}

.hero-phone {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 3rem;
	color: var(--ink);
	font-weight: 600;
}

.hero-phone .icon {
	color: var(--teal);
}

.hero-frame {
	position: relative;
	overflow: hidden;
	border-radius: var(--r-block);
	aspect-ratio: 4 / 3;
	background: var(--sky);
}

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

@media (min-width: 768px) {
	.hero-grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.hero-frame {
		aspect-ratio: 5 / 6;
	}
}

@media (min-width: 1024px) {
	.hero-grid {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	}

	.hero-frame {
		aspect-ratio: 1 / 1;
	}
}

/* ------------------------------------------------------------ Trust marquee */

.marquee {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 1rem;
	min-height: 4.375rem;
	padding: 1.25rem var(--gutter);
	overflow: hidden;
}

.marquee-viewport {
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marquee-track {
	display: flex;
	width: max-content;
	animation: marquee var(--marquee) linear infinite;
}

.marquee:is(:hover, :focus-within):not(.is-playing) .marquee-track,
.marquee.is-paused .marquee-track {
	animation-play-state: paused;
}

.marquee-list {
	display: flex;
	gap: 3rem;
	margin: 0;
	padding: 0 3rem 0 0;
	list-style: none;
	white-space: nowrap;
}

.marquee-list li {
	display: flex;
	align-items: center;
	gap: 3rem;
	font-size: var(--fs-lead);
	font-weight: 300;
	line-height: 1.5;
}

.marquee-fact {
	display: block;
}

.marquee-list li::before {
	content: "";
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--sunrise);
}

.marquee-list li:first-child::before {
	display: none;
}

.marquee-list + .marquee-list li:first-child::before {
	display: block;
}

.marquee-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	min-height: 2.75rem;
	padding: 0.5rem 1rem;
	border: 1.5px solid var(--white);
	border-radius: var(--r-pill);
	background: transparent;
	color: var(--white);
	font: inherit;
	font-size: 0.875rem;
	font-weight: 500;
	cursor: pointer;
	transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

/* While paused the button reads "Play" with a play icon, and shows filled like the hover
   state, so the state is not shown by colour alone. */
.marquee-toggle:hover,
.marquee.is-paused .marquee-toggle {
	background: var(--white);
	color: var(--teal-900);
}

.marquee-toggle .icon-play,
.marquee.is-paused .marquee-toggle .icon-pause {
	display: none;
}

.marquee.is-paused .marquee-toggle .icon-play {
	display: block;
}

@keyframes marquee {
	to {
		transform: translateX(-50%);
	}
}

/* Without JavaScript the strip cannot be paused, so it does not move. */
html:not(.js) .marquee-track {
	animation: none;
}

html:not(.js) .marquee,
html:not(.js) .marquee-viewport {
	display: block;
	overflow: visible;
	-webkit-mask-image: none;
	mask-image: none;
}

html:not(.js) .marquee-track,
html:not(.js) .marquee-list {
	flex-wrap: wrap;
	justify-content: center;
	width: auto;
	white-space: normal;
}

/* Still facts (here and under reduced motion): body size and tight gaps, so the seven facts
   take three lines on most screens rather than four or five, and a dot before every fact, so
   no line starts with a separator that belongs to the line above. */
html:not(.js) .marquee-list {
	gap: 0.5rem 1.5rem;
	margin-inline: auto;
	padding: 0;
}

html:not(.js) .marquee-list li {
	align-items: flex-start;
	gap: 0.625rem;
	font-size: 1rem;
	text-align: center;
}

html:not(.js) .marquee-list li::before,
html:not(.js) .marquee-list li:first-child::before {
	display: block;
	margin-top: calc(0.75em - 4px);
}

/* From 768px the still facts are centred, so the dot runs in the text: a fact that wraps keeps
   its dot just before its first word rather than at the far left of the row. */
@media (min-width: 768px) {
	html:not(.js) .marquee-list li {
		display: block;
	}

	html:not(.js) .marquee-list li::before,
	html:not(.js) .marquee-list li:first-child::before {
		display: inline-block;
		margin: 0 0.625rem 0 0;
		vertical-align: middle;
	}

	html:not(.js) .marquee-fact {
		display: inline;
	}
}

/* On phones the still facts read as a list: left aligned, each dot beside its first line. */
@media (max-width: 767px) {
	html:not(.js) .marquee-list {
		display: grid;
		justify-content: start;
	}

	html:not(.js) .marquee-list li {
		align-items: flex-start;
		gap: 0.875rem;
		text-align: left;
	}

	html:not(.js) .marquee-list li::before,
	html:not(.js) .marquee-list li:first-child::before {
		display: block;
		margin-top: calc(0.75em - 4px);
	}
}

html:not(.js) .marquee-list[aria-hidden="true"],
html:not(.js) .marquee-toggle {
	display: none;
}

/* ------------------------------------------------------------ Carousels */

.carousel-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem 3rem;
	margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem);
}

.carousel-head > div:first-child {
	display: grid;
	gap: 1rem;
	max-width: 44rem;
}

.carousel-nav {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

html:not(.js) .carousel-nav,
[data-carousel].no-overflow .carousel-nav {
	display: none;
}

.carousel-track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: min(85%, 20rem);
	gap: var(--gap);
	/* The padding leaves room for a card's focus ring (3px plus a 3px offset), which the
	   scrolling box would otherwise clip; the negative margin keeps the cards in line. */
	margin: -0.25rem -0.25rem 0;
	padding: 0.5rem 0.5rem 0.75rem;
	list-style: none;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: 0.5rem;
	scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
	display: none;
}

.carousel-item {
	display: flex;
	scroll-snap-align: start;
}

.carousel-item > * {
	width: 100%;
}

.carousel-foot {
	margin: 2rem 0 0;
}

@media (min-width: 768px) {
	.carousel-track {
		grid-auto-columns: calc((100% - var(--gap)) / 2.2);
	}
}

@media (min-width: 1024px) {
	.carousel-track {
		grid-auto-columns: calc((100% - var(--gap) * 2) / 3);
	}

	/* Exactly three cards fill the row rather than leaving a gap. */
	.carousel-track:not(.wide-track):has(> :nth-child(3):last-child) {
		grid-auto-columns: calc((100% - var(--gap) * 2) / 3);
	}

	.carousel-track:not(.wide-track):has(> :nth-child(2):last-child) {
		grid-auto-columns: calc((100% - var(--gap)) / 2);
	}
}

@media (min-width: 1280px) {
	.carousel-track:not(.wide-track):not(:has(> :nth-child(3):last-child)):not(:has(> :nth-child(2):last-child)) {
		grid-auto-columns: calc((100% - var(--gap) * 3) / 4);
	}
}

/* Service tiles: off-white, fill deep teal on hover and focus. */
.svc-tile {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	min-height: 16rem;
	padding: 1.75rem;
	border: 1px solid var(--line);
	border-radius: var(--r-card);
	background: var(--white);
	color: var(--ink);
	text-decoration: none;
	transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

.svc-tile-title {
	font-family: var(--serif);
	font-size: clamp(1.5rem, 1.3rem + 0.6vw, 1.875rem);
	line-height: 1.05;
	letter-spacing: -0.025em;
}

.svc-tile-text {
	font-weight: 300;
}

.svc-tile .arrow {
	margin-top: auto;
}

.svc-tile:hover,
.svc-tile:focus-visible {
	border-color: var(--teal-900);
	background: var(--teal-900);
	color: var(--white);
	text-decoration: none;
}

.svc-tile:hover .arrow,
.svc-tile:focus-visible .arrow {
	background: var(--sunrise);
	color: var(--ink);
}

/* Wide cards: photo and panel side by side. */
.wide-track {
	grid-auto-columns: min(90%, 30rem);
}

.wide-card {
	display: grid;
	overflow: hidden;
	border-radius: var(--r-block);
	background: var(--ivory);
}

.bg-ivory .wide-card {
	background: var(--white);
}

.wide-img img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

/* The questions panel stands in for a photo: three real questions from the FAQs page. */
.wide-qs {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.75rem;
	aspect-ratio: 16 / 10;
	padding: var(--card-pad);
}

.wide-q {
	align-self: flex-start;
	max-width: 100%;
	padding: 0.625rem 1.125rem;
	border-radius: var(--r-card);
	background: var(--white);
	color: var(--teal-900);
	font-family: var(--serif);
	font-size: clamp(1.125rem, 1rem + 0.5vw, 1.5rem);
	line-height: 1.2;
}

.wide-q:nth-child(2) {
	align-self: flex-end;
}

.wide-body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1rem;
	padding: var(--card-pad);
}

.wide-title {
	font-size: var(--fs-card);
}

.wide-body p {
	margin: 0 0 0.5rem;
	font-weight: 300;
}

.wide-body .btn {
	margin-top: auto;
}

@media (min-width: 768px) {
	.wide-track {
		grid-auto-columns: calc((100% - var(--gap)) / 1.15);
	}

	.wide-card {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.wide-img img {
		aspect-ratio: auto;
		min-height: 22rem;
	}

	.wide-qs {
		aspect-ratio: auto;
		min-height: 22rem;
	}
}

@media (min-width: 1280px) {
	.wide-track {
		grid-auto-columns: calc((100% - var(--gap)) / 1.6);
	}
}

/* Exactly two wide cards fit side by side from 1024, so nothing scrolls and the arrows hide:
   stacked (photo above text) up to 1279, photo beside text from 1280. */
@media (min-width: 1024px) {
	.wide-track:has(> :nth-child(2):last-child) {
		grid-auto-columns: calc((100% - var(--gap)) / 2);
	}
}

@media (min-width: 1024px) and (max-width: 1279px) {
	.wide-track:has(> :nth-child(2):last-child) .wide-card {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto 1fr;
	}

	.wide-track:has(> :nth-child(2):last-child) .wide-img img,
	.wide-track:has(> :nth-child(2):last-child) .wide-qs {
		aspect-ratio: 16 / 10;
		min-height: 0;
	}
}

/* Side by side again from 1280: a wider text column keeps each button on one line. */
@media (min-width: 1280px) {
	.wide-track:has(> :nth-child(2):last-child) .wide-card {
		grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	}
}

/* ------------------------------------------------------------ Steps */

.steps {
	display: grid;
	gap: clamp(2rem, 4vw, 3.5rem);
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.step {
	display: grid;
	gap: 0.75rem;
	align-content: start;
	padding-top: 1.5rem;
	border-top: 1px solid var(--line);
}

.step-label {
	display: block;
	margin-bottom: 0.5rem;
	font-family: var(--sans);
	font-size: 1rem;
	font-style: normal;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0;
	color: var(--teal-900);
}

.step-title {
	font-size: var(--fs-card);
}

.step-title a {
	color: var(--ink);
	text-decoration: none;
}

.step-title a:hover {
	color: var(--teal-900);
	text-decoration: underline;
	text-decoration-thickness: 1px;
}

.step p {
	margin: 0;
	font-weight: 300;
}

@media (min-width: 768px) {
	.steps {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.step-rows {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* ------------------------------------------------------------ Tiles (checks, who checks) */

.checks-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem 2rem;
	margin-bottom: 2rem;
}

.checks-head h2 {
	font-size: var(--fs-h3);
}

.tiles {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.tile {
	display: grid;
	align-content: start;
	gap: 0.5rem;
	padding: 1.5rem;
	border-radius: var(--r-card);
	background: var(--white);
}

.tile-title {
	font-weight: 600;
	color: var(--ink);
}

a.tile-title {
	color: var(--teal);
}

.tile-text {
	color: var(--slate);
	font-size: 0.875rem;
	line-height: 1.43;
}

/* Two, three or four across, so a row never leaves one tile on its own. */
@media (min-width: 600px) {
	.tiles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 768px) {
	.tiles-3,
	.tiles:has(> :nth-child(3):last-child) {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1200px) {
	.tiles:not(.tiles-3) {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* ------------------------------------------------------------ Media splits */

.split-grid {
	display: grid;
	gap: clamp(2.5rem, 5vw, 6rem);
	align-items: center;
}

.split-copy h2 {
	margin-bottom: 1.5rem;
}

.split-text > :first-child {
	margin-top: 0;
}

.split-text p,
.split-text ul,
.split-text ol {
	margin: 0 0 1rem;
	max-width: 60ch;
}

.split-text > :last-child {
	margin-bottom: 0;
}

.split-text .panel {
	margin: 1.5rem 0;
	padding: 1.5rem;
	border-radius: var(--r-card);
	background: var(--apricot);
}

.split-text .panel h3 {
	margin-bottom: 0.5rem;
	font-size: 1.5rem;
}

.split-text .panel a {
	color: var(--teal-900);
}

.ring-frame {
	position: relative;
}

.ring-frame img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	border-radius: var(--r-block);
	object-fit: cover;
}

.check-list {
	display: grid;
	gap: 0.875rem;
	margin: 1.5rem 0 0;
	padding: 0;
	list-style: none;
}

.split-after {
	margin-top: 1.5rem;
}

.check-list li {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

.check-list .icon {
	flex: none;
	width: 1.75rem;
	height: 1.75rem;
	padding: 0.3rem;
	border-radius: 50%;
	background: var(--seaglass);
	color: var(--teal-900);
}

.bg-tint .check-list .icon {
	background: var(--white);
}

@media (min-width: 768px) {
	.split-grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.split-flip .split-media {
		order: -1;
	}
}

/* No photo: the text runs in one column at a readable measure. */
.split-solo .split-grid {
	grid-template-columns: minmax(0, 1fr);
}

.split-solo .split-copy {
	max-width: 60ch;
}

/* Note: no picture. The heading sits beside the text, and the text behind a thick rule in a
   pastel, so a page with several text sections does not repeat the same picture box. */
.note-grid {
	display: grid;
	gap: 1.5rem clamp(2.5rem, 6vw, 6rem);
}

.note-head h2 {
	margin: 0;
}

.note-body {
	padding-left: clamp(1.25rem, 3vw, 2.5rem);
	border-left: 6px solid var(--note, var(--seaglass));
}

.note-body .check-list:first-child {
	margin-top: 0;
}

.note-body .actions {
	margin-top: 1.75rem;
}

.note-apricot {
	--note: var(--apricot);
}

.note-sky {
	--note: var(--sky);
}

.note-lavender {
	--note: var(--lavender);
}

.note-citrus {
	--note: var(--citrus);
}

.note-seaglass {
	--note: var(--seaglass);
}

.note-sunrise {
	--note: var(--sunrise);
}

@media (min-width: 900px) {
	.note-grid {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		align-items: start;
	}
}

/* "Who checks our work" as one deep teal band. */
.strip-grid {
	display: grid;
	gap: 2rem;
}

.strip-grid h2 {
	margin: 0;
}

.strip-list {
	display: grid;
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.strip-list li {
	display: grid;
	gap: 0.375rem;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.strip-list a {
	font-family: var(--serif);
	font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
	line-height: 1.15;
}

.strip-list span {
	font-weight: 300;
}

.strip-grid > .btn {
	justify-self: start;
}

@media (min-width: 900px) {
	.strip-list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 2.5rem;
	}
}

/* Service groups on /services/. */
.group-row .lead {
	margin-bottom: 2rem;
}

.chip-grid {
	display: grid;
	gap: 0.75rem;
	margin: 0 0 1.5rem;
	padding: 0;
	list-style: none;
}

/* White links with a dot in each service's own colour, so a service keeps one pastel everywhere. */
.chip-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 3.5rem;
	padding: 0.875rem 1.25rem;
	border: 1px solid var(--line);
	border-radius: var(--r-card);
	background: var(--white);
	color: var(--ink);
	font-weight: 500;
	text-decoration: none;
	transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

.chip-name {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
}

.chip-dot {
	flex: none;
	width: 0.875rem;
	height: 0.875rem;
	border: 1px solid rgba(15, 79, 94, 0.35);
	border-radius: 50%;
}

.chip-link .icon {
	color: var(--teal-900);
	transition: transform var(--dur-fast) var(--ease-out);
}

.chip-link:hover {
	border-color: var(--teal-900);
	background-color: var(--tint);
	color: var(--ink);
	text-decoration: underline;
}

/* Chips in a row match in height. */
.chip-grid > li {
	display: flex;
}

.chip-grid .chip-link {
	flex: 1;
}

/* Two chips to a row only where the column is wide enough for the names: on a stacked split
   (600 to 767px) and on wide screens. From 768px the chips sit in half of a split, so they
   stay one to a row until 1180px rather than wrapping a name onto three or four lines. */
@media (min-width: 600px) and (max-width: 767px), (min-width: 1180px) {
	.chip-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ------------------------------------------------------------ Quote block */

.quote-block {
	display: grid;
	overflow: hidden;
	border-radius: var(--r-block);
}

.quote-photo {
	position: relative;
	min-height: 16rem;
}

.quote-photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.quote-panel {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	min-width: 0;
	padding: clamp(2rem, 1.25rem + 3vw, 4rem);
}

.quote-label {
	font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem);
}

.quote-mark {
	color: var(--apricot);
}

.quote-track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 100%;
	column-gap: 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.quote-track::-webkit-scrollbar {
	display: none;
}

.quote-track:focus-visible {
	outline-offset: 6px;
}

.quote-slide {
	scroll-snap-align: start;
}

.quote-slide figure,
.quote-slide blockquote {
	margin: 0;
}

.quote-text {
	margin: 0;
	max-width: 32ch;
	font-family: var(--serif);
	font-size: var(--fs-quote);
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.quote-text strong {
	font-weight: 400;
	color: var(--apricot);
}

.quote-by {
	margin-top: 1rem;
	font-weight: 500;
}

.quote-nav {
	margin-top: auto;
	padding-top: 1rem;
}

.quote-count {
	margin: 0 0 0 0.5rem;
	font-size: 0.875rem;
}

.quote-more {
	margin: 0;
	font-size: 0.875rem;
}

html:not(.js) .quote-track {
	grid-auto-flow: row;
	gap: 1.5rem;
	overflow: visible;
}

@media (min-width: 1024px) {
	.quote-block {
		grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
		min-height: 32rem;
	}

	.quote-photo {
		min-height: 100%;
	}

	.quote-block.quote-solo {
		grid-template-columns: minmax(0, 1fr);
		min-height: 0;
	}
}

/* Without a photo the panel runs the full width, centred, with the words at a readable measure. */
.quote-solo .quote-panel {
	align-items: center;
	padding-inline: clamp(2rem, 1rem + 6vw, 7rem);
	text-align: center;
}

.quote-solo .quote-track {
	width: 100%;
	max-width: 52rem;
}

.quote-solo .quote-text {
	max-width: 36ch;
	margin-inline: auto;
}

.quote-solo .quote-nav {
	justify-content: center;
}

/* ------------------------------------------------------------ CQC strip */

.regulated-grid {
	display: grid;
	gap: 3rem;
	align-items: start;
}

.regulated-copy h2 {
	margin-bottom: 1.5rem;
}

.fact-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 2rem 0 0;
}

.fact-chips div {
	padding: 0.75rem 1.125rem;
	border-radius: var(--r-card);
	background: var(--white);
}

.fact-chips dt {
	color: var(--slate);
	font-size: 0.875rem;
}

.fact-chips dd {
	margin: 0;
	font-weight: 600;
}

.regulated-widget {
	width: 100%;
	max-width: 22rem;
	padding: 1.25rem;
	border-radius: var(--r-card);
	background: var(--white);
}

@media (min-width: 1024px) {
	.regulated-grid {
		grid-template-columns: minmax(0, 1fr) 22rem;
		gap: 5rem;
	}
}

/* ------------------------------------------------------------ Get in touch band */

.touch-inner {
	display: grid;
	justify-items: center;
	gap: 1.5rem;
	text-align: center;
}

.touch-inner h2 {
	max-width: 18ch;
}

.touch-inner .lead {
	max-width: 52ch;
}

.touch-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1rem 2rem;
	margin-top: 0.5rem;
}

.touch-phone {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 3rem;
	color: var(--ink);
	font-weight: 600;
}

.touch-phone .icon {
	color: var(--teal);
}

.touch-hours {
	margin: 0;
	color: var(--slate);
	font-size: 0.875rem;
}

/* ------------------------------------------------------------ Where we work */

.where-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 3rem;
}

.where-copy {
	display: grid;
	gap: 1.25rem;
	justify-items: start;
	max-width: 60ch;
}

.where-copy p {
	margin: 0;
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.chip {
	display: inline-flex;
	align-items: center;
	min-height: 2.5rem;
	padding: 0.4rem 1rem;
	border: 1px solid var(--field);
	border-radius: var(--r-pill);
	background: var(--white);
	color: var(--ink);
	font-size: 0.875rem;
	font-weight: 500;
}

a.chip {
	color: var(--teal-900);
	text-decoration: none;
}

a.chip:hover {
	background: var(--tint);
	text-decoration: underline;
}

.office-card {
	display: grid;
	gap: 0.5rem;
	width: 100%;
	max-width: 30rem;
	margin-top: 1rem;
	padding: 1.75rem;
	border-radius: var(--r-card);
}

.office-title {
	margin-bottom: 0.5rem;
	font-size: var(--fs-card);
}

.office-line {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin: 0;
}

.office-line .icon {
	color: var(--teal-900);
}

/* On About the office card follows the areas, and from 1024px sits beside them, level with the
   heading. */
.where-has-office .office-card {
	margin-top: 0;
}

@media (min-width: 1024px) {
	.where-has-office {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
		align-items: start;
		gap: 6rem;
	}

	.where-has-office .office-card {
		justify-self: end;
	}
}

/* ------------------------------------------------------------ Careers panel */

.careers-panel {
	display: grid;
	gap: 2.5rem;
	overflow: hidden;
	padding: clamp(2rem, 1rem + 4vw, 4.5rem);
	border-radius: var(--r-block);
}

.careers-copy {
	display: grid;
	gap: 1.25rem;
	align-content: center;
}

.careers-copy p {
	margin: 0;
	max-width: 52ch;
	font-weight: 300;
}

.careers-copy .actions {
	margin-top: 0.75rem;
}

.careers-count strong {
	margin-right: 0.25rem;
	font-family: var(--serif);
	font-size: 2.5rem;
	font-weight: 400;
	color: var(--apricot);
}

.careers-img img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 16rem;
	border-radius: var(--r-card);
	object-fit: cover;
}

@media (min-width: 1024px) {
	.careers-panel:not(.careers-solo) {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
		gap: 4rem;
	}

	/* Without a photo: the heading on the left, the text and pills beside it. */
	.careers-solo .careers-copy {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		column-gap: 4rem;
		align-items: start;
	}

	.careers-solo .careers-copy > h2 {
		grid-row: 1 / span 2;
	}

	.careers-solo .careers-copy:has(.careers-count) > h2 {
		grid-row: 1 / span 3;
	}

	.careers-solo .careers-copy > :not(h2) {
		grid-column: 2;
	}
}

/* ------------------------------------------------------------ News cards */

.post-card {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	overflow: hidden;
	border-radius: var(--r-card);
	color: var(--ink);
	transition: background-color var(--dur-base) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}

.post-card-img img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	transition: transform var(--dur-base) var(--ease-out);
}

.post-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.875rem;
	min-height: 18rem;
	padding: var(--card-pad);
}

.post-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1rem;
	margin: 0;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--teal-900);
}

.post-card-title {
	font-size: clamp(1.5rem, 1.3rem + 0.6vw, 1.875rem);
	line-height: 1.05;
}

.post-card-title a {
	color: var(--ink);
	text-decoration: none;
}

.post-card-title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.post-card-title a:focus-visible {
	outline: none;
}

.post-card:focus-within {
	outline: 3px solid var(--focus);
	outline-offset: 3px;
}

.post-card-text {
	margin: 0;
	font-weight: 300;
}

.post-card-more {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: auto 0 0;
	padding-top: 0.5rem;
	font-weight: 500;
}

.post-card:hover {
	background-color: var(--pastel-hover);
}

.post-grid {
	display: grid;
	gap: var(--gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.post-grid > li {
	display: flex;
}

@media (min-width: 768px) {
	.post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Two to a row: a last card on its own takes the whole row rather than leaving half empty. */
@media (min-width: 768px) and (max-width: 1023px) {
	.post-grid > li:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}
}

@media (min-width: 1024px) {
	.post-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.dark-cards + .news-list {
	padding-top: 0;
}

.pager {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.25rem;
	margin-top: 3rem;
}

.pager-count {
	margin: 0;
	font-weight: 500;
}

/* News index: three deep teal cards and the area band. */
.dark-grid {
	display: grid;
	gap: var(--gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.dark-grid > li {
	display: flex;
}

.dark-card {
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
	width: 100%;
	min-height: 15rem;
	padding: var(--card-pad);
	border-radius: var(--r-card);
	text-decoration: none;
	transition: background-color var(--dur-fast) var(--ease-out);
}

/* The card is the link, so its ring sits on the light page around it, not on deep teal. */
.bg-deep.dark-card {
	--focus: var(--teal-900);
	color: var(--white);
}

.dark-card-title {
	font-family: var(--serif);
	font-size: var(--fs-card);
	line-height: 1;
	letter-spacing: -0.025em;
}

.dark-card-text {
	font-weight: 300;
}

.dark-card .arrow {
	margin-top: auto;
}

.dark-card:hover {
	background: var(--teal);
	color: var(--white);
	text-decoration: none;
}

@media (min-width: 768px) {
	.dark-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.area-band-inner {
	display: grid;
	gap: 1.5rem;
	align-items: center;
}

.area-band h2 {
	margin-bottom: 0.5rem;
	font-size: var(--fs-h3);
}

.area-band p {
	margin: 0;
}

@media (min-width: 1024px) {
	.area-band-inner {
		grid-template-columns: minmax(0, 1fr) auto;
	}
}

/* ------------------------------------------------------------ Inner page heading */

.page-head {
	padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem) clamp(3rem, 2rem + 3vw, 5rem);
}

/* A pale wash of one pastel behind a split heading. */
.ph-wash-sky {
	background: #dcf2fc;
}

.ph-wash-lavender {
	background: #e8e8fb;
}

.ph-grid {
	display: grid;
	gap: clamp(2.5rem, 5vw, 5rem);
	align-items: center;
}

.ph-copy h1 {
	max-width: 18ch;
}

.ph-copy .lead {
	margin-top: 1.5rem;
}

.ph-meta {
	margin: 1rem 0 0;
	color: var(--slate);
	font-size: 0.875rem;
}

.ph-actions {
	margin: 2rem 0 0;
}

.ph-media {
	position: relative;
}

.ph-frame {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	border-radius: var(--r-block);
}

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

.ph-split .ph-solo {
	grid-template-columns: minmax(0, 1fr);
}

.ph-solo .ph-copy {
	max-width: 60ch;
}

/* One coloured panel holding everything. */
.ph-panel {
	padding-block: clamp(2.5rem, 2rem + 3vw, 5rem);
}

.ph-panel .ph-copy h1 {
	max-width: 20ch;
}

/* A photo with a deep teal panel over it. Below 1024px the photo comes first and the panel
   overlaps its lower edge. */
.ph-overlay {
	position: relative;
	padding: 0 0 var(--section-sm);
}

.ph-overlay .ph-grid {
	display: flex;
	flex-direction: column;
	padding: 0;
	max-width: none;
}

.ph-overlay .ph-media {
	order: -1;
	padding: 0;
}

.ph-overlay .ph-media img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	object-position: center 30%;
}

.ph-overlay .ph-copy {
	position: relative;
	z-index: 1;
	margin: -3rem var(--gutter) 0;
	padding: clamp(1.75rem, 1rem + 3vw, 3.5rem);
	border-radius: var(--r-block);
}

.ph-overlay .ph-copy .lead {
	color: var(--white);
}

@media (min-width: 768px) {
	.ph-split .ph-grid:not(.ph-solo) {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	}

	/* Top aligned, so the title starts at the same height as on other inner pages however
	   tall the CQC panel beside it is. */
	.has-aside .ph-grid {
		grid-template-columns: minmax(0, 1fr) 22rem;
		align-items: start;
	}
}

@media (min-width: 1024px) {
	.ph-overlay {
		display: grid;
		min-height: 36rem;
		padding: 0;
	}

	.ph-overlay .ph-media {
		position: absolute;
		inset: 0;
	}

	.ph-overlay .ph-media img {
		height: 100%;
		aspect-ratio: auto;
	}

	.ph-overlay .ph-grid {
		display: flex;
		flex-direction: row;
		align-items: center;
		max-width: calc(var(--wrap) + var(--gutter) * 2);
		padding: 3rem var(--gutter);
	}

	.ph-overlay .ph-copy {
		max-width: 40rem;
		margin: 0;
	}

}

.page-head-aside {
	width: 100%;
	max-width: 22rem;
	padding: 1.25rem;
	border-radius: var(--r-card);
	background: var(--white);
	border: 1px solid var(--line);
}

.aside-title {
	margin: 0 0 0.75rem;
	font-weight: 600;
}

/* ------------------------------------------------------------ Anchor bar */

.anchor-wrap {
	padding-block: 0 1rem;
}

.anchor-bar {
	--focus: var(--white);
	overflow-x: auto;
	padding: 0.5rem;
	border-radius: var(--r-pill);
	background: var(--teal-900);
	scrollbar-width: none;
}

.anchor-bar::-webkit-scrollbar {
	display: none;
}

.anchor-bar ul {
	display: flex;
	gap: 0.25rem;
	width: max-content;
	min-width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.anchor-bar a {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	padding: 0.5rem 1.25rem;
	border-radius: var(--r-pill);
	color: var(--white);
	font-weight: 500;
	white-space: nowrap;
	text-decoration: none;
	transition: background-color var(--dur-fast) var(--ease-out);
}

.anchor-bar a:hover {
	background: rgba(255, 255, 255, 0.14);
	color: var(--white);
	text-decoration: underline;
}

.anchor-bar a:focus-visible {
	outline-offset: -3px;
}

@media (min-width: 1024px) {
	.anchor-bar ul {
		justify-content: center;
	}
}

/* ------------------------------------------------------------ Feature cards */

.feature-grid {
	display: grid;
	gap: var(--gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.feature {
	display: grid;
	align-content: start;
	gap: 1rem;
	padding: var(--card-pad);
	border-radius: var(--r-card);
	background: var(--white);
}

.feature-title {
	font-size: clamp(1.5rem, 1.3rem + 0.6vw, 1.875rem);
}

.feature p {
	margin: 0;
	font-weight: 300;
}

@media (min-width: 600px) {
	.feature-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.feature-grid.cols-4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

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

/* ------------------------------------------------------------ Service page: how we can help */

.help-list {
	display: block;
	columns: 2 20rem;
	column-gap: 2.5rem;
	margin: 0;
}

.help-list li {
	break-inside: avoid;
	margin-bottom: 0.875rem;
}

.help-rest {
	margin-top: 2.5rem;
}

.help-before {
	margin-bottom: 2rem;
}

.related {
	margin-top: 3rem;
}

.related-title {
	margin-bottom: 1rem;
	font-family: var(--sans);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0;
}

/* ------------------------------------------------------------ Services in brief */

.in-brief h2 {
	margin-bottom: 2.5rem;
}

.brief-grid {
	display: grid;
	gap: 0 4rem;
}

.brief-item {
	border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.brief-item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 4.5rem;
	padding-block: 1rem;
	font-family: var(--serif);
	font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
	line-height: 1.1;
	list-style: none;
	cursor: pointer;
}

.brief-item summary::-webkit-details-marker {
	display: none;
}

.brief-icon,
.faq-icon {
	position: relative;
	flex: none;
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
}

.brief-icon {
	background: var(--apricot);
	color: var(--teal-900);
}

.brief-icon .icon,
.faq-icon .icon {
	grid-area: 1 / 1;
	transition: opacity var(--dur-fast) var(--ease-out);
}

.brief-icon .icon-minus,
.faq-icon .icon-minus,
details[open] > summary .icon-plus {
	opacity: 0;
}

details[open] > summary .icon-minus {
	opacity: 1;
}

.brief-body {
	padding-bottom: 1.5rem;
}

.brief-body p {
	margin: 0 0 0.75rem;
	max-width: 52ch;
	font-weight: 300;
}

@media (min-width: 768px) {
	.brief-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ------------------------------------------------------------ FAQ */

.faq-wrap {
	display: grid;
	gap: 2.5rem;
}

.faq-head {
	display: grid;
	gap: 1rem;
	align-content: start;
}

.faq-list {
	border-top: 1px solid var(--line);
}

.faq-item {
	border-bottom: 1px solid var(--line);
}

.faq-item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: 5rem;
	padding-block: 1.25rem;
	list-style: none;
	cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
	display: none;
}

.faq-q {
	font-family: var(--serif);
	font-size: var(--fs-faq);
	line-height: 1.15;
	letter-spacing: -0.015em;
	text-wrap: balance;
}

.faq-icon {
	background: var(--teal-900);
	color: var(--white);
}

.faq-item summary:hover .faq-q {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

.faq-a {
	max-width: 60ch;
	padding-bottom: 1.5rem;
}

.faq-a p {
	margin: 0 0 1rem;
}

.faq-a > :last-child {
	margin-bottom: 0;
}

.faq-more {
	margin: 2rem 0 0;
}

@media (min-width: 1024px) {
	.faq-wrap {
		grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
		gap: 5rem;
	}

	.faq-head {
		position: sticky;
		top: calc(var(--header-h) + 2rem);
	}

	.faq-more {
		grid-column: 2;
		margin-top: 0;
	}
}

.guidance-note .faq-item {
	max-width: 52rem;
	margin-inline: auto;
	border-top: 1px solid var(--line);
}

.note-item .faq-q {
	font-size: clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem);
}

/* ------------------------------------------------------------ Enquiry and forms */

.enquiry-grid,
.form-layout {
	display: grid;
	gap: 3rem;
	align-items: start;
}

.enquiry-copy {
	display: grid;
	gap: 1rem;
	justify-items: start;
}

.enquiry-copy p {
	margin: 0;
}

.enquiry-prompt {
	margin-top: 1rem !important;
	font-weight: 600;
}

.big-phone {
	font-family: var(--serif);
	font-size: clamp(2rem, 1.6rem + 1.5vw, 2.25rem);
	line-height: 1.1;
	letter-spacing: -0.01em;
	color: var(--teal-900);
	text-decoration: none;
}

.big-phone:hover {
	text-decoration: underline;
	text-decoration-thickness: 1px;
}

.other-phones a {
	font-weight: 600;
}

.enquiry-copy .rule {
	width: 100%;
	margin: 1rem 0;
}

.form-card {
	padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
	border-radius: var(--r-block);
	background: var(--white);
}

.form-card:focus {
	outline: none;
}

.form-card-title {
	margin-bottom: 1.5rem;
	font-size: var(--fs-card);
}

.form-intro {
	display: grid;
	gap: 1rem;
}

.form-intro h2 {
	margin-bottom: 0.5rem;
}

.privacy-card {
	margin-top: 1rem;
	padding: 1.5rem;
	border-radius: var(--r-card);
	background: var(--white);
}

.privacy-title {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
	font-family: var(--sans);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0;
}

.privacy-title .icon {
	color: var(--teal);
}

.privacy-card p {
	margin: 0.25rem 0 0;
}

@media (min-width: 1024px) {
	.enquiry-grid,
	.form-layout {
		grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
		gap: clamp(3rem, 6vw, 6rem);
	}

	.form-intro {
		position: sticky;
		top: calc(var(--header-h) + 2rem);
	}
}

.apply:focus,
.roles:focus,
.area:focus {
	outline: none;
}

.tuc-form .field {
	min-width: 0;
	margin: 0 0 1.5rem;
	padding: 0;
	border: 0;
}

.tuc-form label,
.tuc-form legend {
	display: block;
	margin-bottom: 0.375rem;
	padding: 0;
	color: var(--ink);
	font-weight: 600;
}

.optional {
	color: var(--slate);
	font-weight: 400;
}

.hint {
	margin: 0 0 0.5rem;
	color: var(--slate);
	font-size: 0.875rem;
}

.tuc-form input[type="text"],
.tuc-form input[type="email"],
.tuc-form input[type="tel"],
.tuc-form select,
.tuc-form textarea {
	display: block;
	width: 100%;
	min-height: 3.25rem;
	padding: 0.8rem 1.25rem;
	border: 1.5px solid var(--field);
	border-radius: var(--r-pill);
	background: var(--white);
	color: var(--ink);
	font: inherit;
	font-size: 1rem;
	line-height: 1.5;
	transition: border-color var(--dur-fast) var(--ease-out);
}

.tuc-form textarea {
	min-height: 9.5rem;
	border-radius: var(--r-block);
	resize: vertical;
}

.tuc-form select {
	appearance: none;
	padding-right: 3rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23212b33' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1.25rem center;
}

.tuc-form input:focus-visible,
.tuc-form select:focus-visible,
.tuc-form textarea:focus-visible {
	outline: 3px solid var(--teal-900);
	outline-offset: 2px;
	border-color: var(--teal-900);
}

.tuc-form .has-error {
	padding-left: 1rem;
	border-left: 3px solid var(--error);
}

.tuc-form .has-error input,
.tuc-form .has-error select,
.tuc-form .has-error textarea {
	border-color: var(--error);
	border-width: 2px;
}

.field-error {
	margin: 0.25rem 0 0.5rem;
	color: var(--error);
	font-size: 0.9375rem;
	font-weight: 600;
}

/* Error text keeps a white backing on pastel panels, so it stays a measured pair. */
.on-pastel .field-error {
	display: inline-block;
	padding: 0.2rem 0.6rem;
	border-radius: var(--r-sm);
	background: var(--white);
}

.field-row {
	display: grid;
}

@media (min-width: 600px) {
	.field-row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0 1.25rem;
	}
}

.choices {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.tuc-form .choice {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	min-height: 3rem;
	margin: 0;
	padding: 0.5rem 1.25rem 0.5rem 0.875rem;
	border: 1.5px solid var(--field);
	border-radius: var(--r-pill);
	background: var(--white);
	font-weight: 500;
	cursor: pointer;
}

.choice input {
	width: 1.25rem;
	height: 1.25rem;
	margin: 0;
	accent-color: var(--teal);
}

.choice:has(input:checked) {
	border-color: var(--teal-900);
	background: var(--tint);
}

.choice:has(input:focus-visible) {
	outline: 3px solid var(--teal-900);
	outline-offset: 2px;
}

.tuc-form input[type="file"] {
	display: block;
	width: 100%;
	padding: 0.75rem;
	border: 1.5px dashed var(--field);
	border-radius: var(--r-card);
	background: var(--paper);
	color: var(--ink);
	font: inherit;
	font-size: 0.9375rem;
}

.tuc-form input[type="file"]::file-selector-button {
	margin-right: 1rem;
	padding: 0.65rem 1.15rem;
	border: 0;
	border-radius: var(--r-pill);
	background: var(--ink);
	color: var(--white);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.form-privacy {
	margin: 0 0 1.5rem;
	color: var(--slate);
	font-size: 0.875rem;
}

.btn-submit {
	min-width: 12rem;
}

/* The send button looks unready until the required fields are filled. It never blocks sending:
   the browser and the server still check, and without JavaScript it is always teal. */
.tuc-form.is-incomplete .btn-submit {
	--btn-bg: var(--slate);
	--btn-hover: var(--ink);
}

.form-alert {
	margin: 0 0 2rem;
	padding: 1.25rem 1.5rem;
	border: 2px solid var(--error);
	border-radius: var(--r-card);
	background: var(--error-bg);
	color: var(--ink);
}

.form-alert:focus,
.form-success:focus {
	outline: 3px solid var(--teal-900);
	outline-offset: 3px;
}

.form-alert p {
	margin: 0;
}

.form-alert-title {
	margin: 0 0 0.5rem;
	font-family: var(--sans);
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: 0;
}

.form-alert ul {
	margin: 0;
	padding-left: 1.15rem;
}

.form-alert li {
	margin: 0.25rem 0;
}

.form-alert a {
	color: var(--error);
	font-weight: 600;
}

/* While a form is off, its card holds a short note instead: text behind a thick deep teal rule,
   like the guidance notes, so it reads as information and not as an empty field. The card
   shrinks to the note rather than keeping the form's height. */
.form-unavailable {
	margin: 0;
	padding: 0.25rem 0 0.25rem 1.25rem;
	border: 0;
	border-left: 6px solid var(--teal-900);
	border-radius: 0;
	background: none;
}

.form-unavailable a {
	color: var(--teal-900);
}

.form-unavailable a[href^="tel:"] {
	white-space: nowrap;
}

.form-card:has(> .form-unavailable) {
	align-self: start;
}

.form-success {
	padding: 1.5rem 1.75rem;
	border: 2px solid var(--teal-900);
	border-radius: var(--r-card);
	background: var(--white);
	color: var(--ink);
}

.form-success h3 {
	margin: 0 0 0.5rem;
}

.form-success p {
	margin: 0 0 0.5rem;
}

.form-success p:last-child {
	margin-bottom: 0;
}

.form-success a {
	color: var(--teal);
}

.hp {
	position: absolute !important;
	left: -10000px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ------------------------------------------------------------ Contact page */

.contact-top {
	padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem) var(--section);
}

.contact-grid {
	display: grid;
	gap: 3rem;
	align-items: start;
}

.contact-sticky h1 {
	margin-bottom: 1.5rem;
}

.contact-sticky .lead {
	margin-bottom: 1rem;
}

.contact-label {
	margin: 2rem 0 0.5rem;
	font-family: var(--sans);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--ember);
}

.contact-phones {
	display: grid;
	gap: 0.25rem;
	margin: 0.5rem 0;
	padding: 0;
	list-style: none;
}

.contact-phones a,
.contact-email a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 2.75rem;
	font-weight: 600;
}

.contact-email {
	margin: 0;
	overflow-wrap: anywhere;
}

.contact-sticky address {
	font-style: normal;
}

.contact-notes {
	margin-top: 2rem;
}

.area-head {
	display: grid;
	gap: 1.25rem;
	justify-items: center;
	max-width: 48rem;
	margin: 0 auto 3rem;
	text-align: center;
}

.area-head .pc {
	width: 100%;
}

.area-cards {
	display: grid;
	gap: var(--gap);
	max-width: 60rem;
	margin-inline: auto;
}

.area-card {
	display: grid;
	align-content: start;
	gap: 1rem;
	padding: var(--card-pad);
	border-radius: var(--r-block);
}

.area-card-white {
	background: var(--white);
}

.area-card h3 {
	font-size: var(--fs-card);
}

.area-card p {
	margin: 0;
}

.area-phone {
	font-family: var(--serif);
	font-size: 2rem;
	text-decoration: none;
}

.area-phone:hover {
	text-decoration: underline;
	text-decoration-thickness: 1px;
}

@media (min-width: 768px) {
	.area-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.contact-grid {
		grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
		gap: clamp(3rem, 6vw, 6rem);
	}

	.contact-sticky {
		position: sticky;
		top: calc(var(--header-h) + 1.5rem);
	}
}

/* ------------------------------------------------------------ Careers page */

.centred-inner {
	display: grid;
	justify-items: center;
	gap: 1.5rem;
	max-width: 52rem;
	text-align: center;
}

.centred-text {
	max-width: 52rem;
	margin-inline: auto;
	text-align: center;
}

.centred-text p {
	margin: 0 auto 1rem;
	max-width: 60ch;
	font-size: var(--fs-lead);
	font-weight: 300;
}

.centred-text > :last-child {
	margin-bottom: 0;
}

.role-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
	gap: var(--gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.role-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	min-height: 16rem;
	padding: var(--card-pad);
	border-radius: var(--r-card);
	transition: background-color var(--dur-base) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}

.role-title {
	font-size: var(--fs-card);
}

.role-title a {
	color: var(--ink);
	text-decoration: none;
}

.role-title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.role-title a:focus-visible {
	outline: none;
}

.role-card:focus-within {
	outline: 3px solid var(--focus);
	outline-offset: 3px;
}

.role-card:hover {
	background-color: var(--pastel-hover);
}

.role-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.9375rem;
}

.role-closing {
	margin: 0;
	font-size: 0.9375rem;
	font-weight: 600;
}

.role-card .arrow {
	margin-top: auto;
	align-self: flex-end;
}

.role-details {
	margin: 0 0 1.75rem;
}

.role-details div {
	padding-block: 0.7rem;
	border-bottom: 1px solid rgba(15, 79, 94, 0.25);
}

.role-details dt {
	font-size: 0.875rem;
}

.role-details dd {
	margin: 0.1rem 0 0;
	font-weight: 600;
}

/* ------------------------------------------------------------ Articles */

.article-head {
	padding-block: clamp(1.5rem, 1rem + 2vw, 2.5rem) 0;
}

.article-panel {
	position: relative;
	overflow: hidden;
	padding: clamp(2rem, 1rem + 4vw, 4.5rem);
	border-radius: var(--r-block);
}

.article-panel h1 {
	position: relative;
	z-index: 1;
	max-width: 20ch;
	font-size: clamp(2.25rem, 1.2rem + 3vw, 4rem);
}

.article-panel .lead {
	position: relative;
	z-index: 1;
	margin-top: 1.5rem;
}

.article-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1rem;
	margin: 0 0 1.25rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--teal-900);
}

.article-media {
	margin-top: var(--gap);
}

.article-media img {
	display: block;
	width: 100%;
	max-height: 36rem;
	border-radius: var(--r-block);
	object-fit: cover;
}

.article-body {
	padding-block: clamp(3rem, 2rem + 3vw, 5rem) 1rem;
}

.reading {
	max-width: 40rem;
	margin-inline: auto;
}

.closing-panel {
	display: grid;
	justify-items: center;
	gap: 1.25rem;
	max-width: 52rem;
	margin-inline: auto;
	padding: clamp(2rem, 1rem + 4vw, 4rem);
	border-radius: var(--r-block);
	text-align: center;
}

.closing-panel h2 {
	font-size: var(--fs-h3);
}

.closing-panel p {
	margin: 0;
	max-width: 48ch;
}

/* ------------------------------------------------------------ Page body and prose */

.page-body {
	padding-bottom: var(--section);
}

.prose {
	max-width: 44rem;
	line-height: 1.6;
}

.prose > :first-child {
	margin-top: 0;
}

.prose h2 {
	margin: 3rem 0 1rem;
	font-size: clamp(1.875rem, 1.5rem + 1.2vw, 2.5rem);
	line-height: 1.05;
}

.prose h3 {
	margin: 2.25rem 0 0.75rem;
	font-size: clamp(1.375rem, 1.2rem + 0.5vw, 1.75rem);
	line-height: 1.1;
}

.prose h4 {
	margin: 1.75rem 0 0.5rem;
	font-family: var(--sans);
	font-size: 1rem;
	font-weight: 600;
}

.prose p,
.prose ul,
.prose ol,
.prose dl,
.prose table,
.prose figure {
	margin: 0 0 1.25rem;
}

.prose ul,
.prose ol {
	padding-left: 1.35rem;
}

.prose li {
	margin-bottom: 0.5rem;
	padding-left: 0.25rem;
}

.prose li::marker {
	color: var(--teal);
}

.prose a {
	font-weight: 500;
}

.prose strong {
	font-weight: 600;
}

.prose blockquote {
	margin: 2rem 0;
	padding-left: 1.5rem;
	border-left: 3px solid var(--sunrise);
	font-family: var(--serif);
	font-size: 1.5rem;
	line-height: 1.3;
}

.prose hr {
	margin: 3rem 0;
	border: 0;
	border-top: 1px solid var(--line);
}

.prose .wp-block-image img {
	border-radius: var(--r-block);
}

.prose .panel,
.prose .wp-block-group.is-style-panel {
	margin: 2rem 0;
	padding: 1.5rem 1.75rem;
	border-radius: var(--r-card);
	background: var(--apricot);
	color: var(--ink);
}

.prose .panel a {
	color: var(--teal-900);
}

.prose .panel li::marker {
	color: var(--teal-900);
}

.prose .panel > :last-child {
	margin-bottom: 0;
}

.prose .panel h3:first-child,
.prose .panel h2:first-child {
	margin-top: 0;
}

.prose details {
	margin: 0;
	border-bottom: 1px solid var(--line);
}

.prose details summary {
	padding-block: 1rem;
	font-family: var(--serif);
	font-size: 1.5rem;
	cursor: pointer;
}

.prose .wp-block-file {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin: 1.5rem 0;
	padding: 1.25rem 1.5rem;
	border: 1px solid var(--line);
	border-radius: var(--r-card);
	background: var(--white);
	font-weight: 600;
}

.prose .doc-link a {
	display: flex;
	align-items: center;
	gap: 0.875rem;
	padding: 1.125rem 1.5rem;
	border: 1px solid var(--line);
	border-radius: var(--r-card);
	background: var(--white);
	color: var(--ink);
	font-weight: 600;
	text-decoration: none;
}

.prose .doc-link a::before {
	content: "PDF";
	content: "PDF" / "";
	flex: none;
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: var(--r-sm);
	background: var(--sky);
	color: var(--teal-900);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.prose .doc-link a:hover {
	border-color: var(--teal);
	color: var(--teal-900);
	text-decoration: underline;
}

.prose code {
	padding: 0.1em 0.35em;
	border-radius: 6px;
	background: var(--tint);
	font-size: 0.9em;
	white-space: nowrap; /* a cookie name such as wp-settings- must not break at its hyphen */
}

.prose .wp-block-file .wp-block-file__button,
.prose .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	min-height: 3rem;
	padding: 0.75rem 1.5rem;
	border-radius: var(--r-pill);
	background: var(--teal);
	color: var(--white);
	font-size: 1rem;
	font-weight: 500;
	text-decoration: none;
}

.prose .wp-block-file .wp-block-file__button:hover,
.prose .wp-block-button__link:hover {
	background: var(--teal-900);
	color: var(--white);
}

.prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9375rem;
}

.prose th,
.prose td {
	padding: 0.75rem 0.75rem 0.75rem 0;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

.prose th {
	font-weight: 600;
}

.prose-small {
	font-size: 0.9375rem;
	color: var(--slate);
}

.with-toc,
.with-side {
	display: grid;
	gap: 2.5rem;
}

.toc {
	padding: 1.25rem 1.5rem;
	border-radius: var(--r-card);
	background: var(--tint);
}

.toc-title {
	margin: 0 0 0.5rem;
	font-size: 0.875rem;
	font-weight: 600;
}

.toc ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Standard text links (brand.md 4.2): Teal on the teal tint is 5.06:1. */
.toc a {
	display: block;
	padding-block: 0.35rem;
	color: var(--teal);
	font-size: 0.9375rem;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	transition: color var(--dur-fast) var(--ease-out), text-decoration-thickness var(--dur-fast) var(--ease-out);
}

.toc a:hover {
	color: var(--teal-900);
	text-decoration-thickness: 2px;
}

.side-card {
	align-self: start;
	padding: 2rem;
	border-radius: var(--r-card);
}

.side-card h2 {
	margin: 0 0 1rem;
}

.side-card p {
	margin: 0 0 1.5rem;
}

@media (min-width: 1024px) {
	.with-side {
		grid-template-columns: minmax(0, 1fr) 21rem;
		gap: clamp(3rem, 6vw, 6rem);
		align-items: start;
	}

	.side-card {
		position: sticky;
		top: calc(var(--header-h) + 2rem);
	}
}

@media (min-width: 1280px) {
	.with-toc {
		grid-template-columns: 14rem minmax(0, 1fr);
		gap: clamp(3rem, 6vw, 6rem);
		align-items: start;
	}

	.toc {
		position: sticky;
		top: calc(var(--header-h) + 2rem);
		padding: 0 0 0 1.25rem;
		border-left: 3px solid var(--sunrise);
		border-radius: 0;
		background: none;
	}

	.toc a {
		color: var(--slate);
	}
}

.notice-panel {
	margin-bottom: 2rem;
	padding: 1.25rem 1.5rem;
	border-radius: var(--r-card);
	background: var(--apricot);
	color: var(--ink);
}

.notice-panel p {
	margin: 0;
}

.link-list {
	margin: 0 0 1.5rem;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--line);
}

.link-list li {
	margin: 0;
	padding: 0.85rem 0;
	border-bottom: 1px solid var(--line);
}

.link-list a {
	font-weight: 600;
}

.link-list-large {
	max-width: 36rem;
	padding-top: var(--section-sm);
	border-top: 0;
}

.link-list-large a {
	font-family: var(--serif);
	font-size: 1.875rem;
	font-weight: 400;
	text-decoration: none;
}

.link-list-large a:hover {
	text-decoration: underline;
	text-decoration-thickness: 1px;
}

.empty-state {
	max-width: 44rem;
	padding: var(--card-pad);
	border-radius: var(--r-card);
	background: var(--white);
}

.empty-state h2 {
	margin: 0 0 0.75rem;
	font-size: var(--fs-card);
}

.empty-state p {
	margin: 0;
}

.page-body > .wrap,
.news-list > .wrap {
	padding-top: 0;
}

.bg-paper.page-body {
	padding-top: var(--section-sm);
}

/* ------------------------------------------------------------ Registration facts */

.facts-panel {
	display: grid;
	gap: 2rem;
	padding: var(--card-pad);
	border-radius: var(--r-block);
	background: var(--white);
	border: 1px solid var(--line);
}

.bg-paper .facts-panel {
	background: var(--ivory);
	border: 0;
}

.facts-head h2 {
	margin: 0 0 0.75rem;
	font-size: var(--fs-h3);
}

.facts-head p {
	margin: 0 0 0.5rem;
	color: var(--slate);
}

.facts {
	display: grid;
	gap: 1rem 2rem;
	margin: 0;
}

.facts div {
	padding-top: 0.9rem;
	border-top: 1px solid var(--line);
}

.facts dt {
	color: var(--slate);
	font-size: 0.875rem;
}

.facts dd {
	margin: 0.15rem 0 0;
	font-weight: 600;
}

@media (min-width: 600px) {
	.facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.facts-panel {
		grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
		gap: 4rem;
	}
}

.cqc-section {
	margin-top: 3rem;
	padding: var(--card-pad);
	border-radius: var(--r-card);
	background: var(--tint);
}

.cqc-section h2 {
	margin-top: 0;
}

.cqc-section > :last-child {
	margin-bottom: 0;
}

/* ------------------------------------------------------------ Data security */

.status-panels {
	display: grid;
	gap: var(--gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.status-panel {
	padding: 1.75rem;
	border-radius: var(--r-card);
	background: var(--white);
}

.status-panel h3 {
	margin: 0 0 0.75rem;
	font-size: clamp(1.375rem, 1.25rem + 0.4vw, 1.75rem);
}

.status-panel p {
	margin: 0 0 0.75rem;
	color: var(--slate);
}

.status-panel p:last-child {
	margin-bottom: 0;
}

.status-panel .status-line {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	color: var(--ink);
	font-weight: 600;
}

.status-dot {
	flex: none;
	width: 0.7rem;
	height: 0.7rem;
	border-radius: 50%;
	background: var(--teal);
}

.is-pending .status-dot {
	background: transparent;
	border: 2px solid var(--slate);
}

.status-badge img {
	display: block;
	width: auto;
	max-width: 8rem;
	max-height: 6rem;
	margin-bottom: 1rem;
}

@media (min-width: 768px) {
	.status-panels {
		grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
	}
}

/* ------------------------------------------------------------ Reviews */

.reviews {
	margin: 0;
	padding: 0;
	list-style: none;
}

.review {
	break-inside: avoid;
	margin-bottom: var(--gap);
}

.review figure {
	margin: 0;
	padding: var(--card-pad);
	border-radius: var(--r-card);
	background: var(--white);
	border: 1px solid var(--line);
}

.review blockquote {
	margin: 0;
	font-family: var(--serif);
	font-size: clamp(1.25rem, 1.15rem + 0.35vw, 1.5rem);
	line-height: 1.3;
}

.review blockquote p {
	margin: 0 0 0.75rem;
}

.review blockquote p:last-child {
	margin-bottom: 0;
}

.review figcaption {
	margin-top: 1.25rem;
	color: var(--slate);
	font-size: 0.9375rem;
}

.review figcaption span {
	display: block;
}

.review-name {
	color: var(--ink);
	font-weight: 600;
}

@media (min-width: 768px) {
	.reviews {
		columns: 2;
		column-gap: var(--gap);
	}
}

.feedback-ways {
	margin-top: clamp(3.5rem, 6vw, 5rem);
}

.feedback-ways > h2 {
	margin: 0 0 2rem;
	font-size: var(--fs-h3);
}

.feedback-grid {
	display: grid;
	gap: var(--gap);
}

.feedback-item {
	padding: var(--card-pad);
	border-radius: var(--r-card);
	background: var(--tint);
}

.feedback-item h3 {
	margin: 0 0 0.75rem;
	font-size: clamp(1.375rem, 1.25rem + 0.4vw, 1.75rem);
}

.feedback-item p {
	margin: 0 0 1.25rem;
	color: var(--slate);
}

.feedback-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0 1.5rem;
}

@media (min-width: 768px) {
	.feedback-grid {
		grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
	}
}

/* ------------------------------------------------------------ Footer */

.site-footer {
	padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem) 2rem;
	background: var(--footer);
	color: var(--ink);
	font-size: 0.875rem;
	font-weight: 300;
	line-height: 1.43;
}

.footer-grid {
	display: grid;
	gap: 3rem 2.5rem;
}

.footer-brand {
	display: grid;
	gap: 1.25rem;
	align-content: start;
	justify-items: start;
}

.footer-logo-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	width: 100%;
}

.footer-logo {
	display: block;
	width: 8.5rem;
	height: auto;
}

.to-top {
	display: inline-grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background: var(--teal-900);
	color: var(--white);
	transition: background-color var(--dur-fast) var(--ease-out);
}

.to-top:hover {
	background: var(--teal);
	color: var(--white);
}

.footer-title {
	margin: 0 0 1rem;
	font-family: var(--sans);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0;
	color: var(--ink);
}

.footer-title-gap {
	margin-top: 2.5rem;
}

.footer-brand .footer-title {
	margin: 0.5rem 0 0;
}

.footer-list,
.footer-contact,
.footer-areas {
	display: grid;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-list a,
.footer-contact a {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	min-height: 2.25rem;
	color: var(--ink);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	text-decoration: none;
}

.footer-list a:hover,
.footer-contact a:hover {
	color: var(--teal);
	text-decoration: underline;
}

.footer-contact li {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.footer-address {
	align-items: flex-start !important;
	padding-block: 0.4rem;
	font-size: 1rem;
}

.footer-contact .icon {
	color: var(--teal-900);
}

.footer-contact a span {
	overflow-wrap: anywhere;
}

.footer-note {
	margin: 0;
	color: var(--slate);
}

.footer-areas {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.footer-areas li {
	padding: 0.25rem 0.75rem;
	border-radius: var(--r-pill);
	background: var(--white);
	font-weight: 400;
}

.footer-cqc {
	min-width: 0;
	max-width: 22rem;
}

/* Columns as wide as their longest link, so "Questions and answers" stays on one line. */
.footer-cqc .footer-list {
	grid-template-columns: repeat(2, max-content);
	gap: 0.25rem 2.5rem;
}

/* Below 360px the two columns do not fit at full width, so the gap narrows and a long link
   may wrap instead of pushing the page sideways. */
@media (max-width: 359.98px) {
	.footer-cqc .footer-list {
		grid-template-columns: repeat(2, minmax(0, max-content));
		column-gap: 1.5rem;
	}
}

.footer-cqc .cqc-widget-box {
	--cqc-room: 19.25rem;
}

.footer-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	margin-top: 3.5rem;
	padding-block: 1.5rem;
	border-top: 1px solid rgba(15, 79, 94, 0.2);
}

/* The bars hang in the gap between links. A bar in front of the first link on a line falls
   just outside the list's left edge and is clipped, so a wrapped line never starts with a
   bar. The list is pulled 0.5rem left with 0.5rem of padding, so it still lines up with the
   text above and a focus ring on the first link of a line is not clipped. */
.footer-info ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.75rem;
	margin: 0 0 0 -0.5rem;
	padding: 0 0 0 0.5rem;
	list-style: none;
	clip-path: inset(-0.5rem -0.5rem -0.5rem 0);
}

.footer-info li {
	position: relative;
	display: flex;
	align-items: center;
}

.footer-info li + li::before {
	content: "";
	position: absolute;
	top: 50%;
	left: -0.875rem;
	width: 1px;
	height: 1rem;
	background: rgba(33, 43, 51, 0.35);
	transform: translateY(-50%);
}

.footer-info a {
	display: inline-flex;
	align-items: center;
	min-height: 2.25rem;
	color: var(--ink);
	font-size: 0.875rem;
	font-weight: 400;
}

.footer-info a:hover {
	color: var(--teal);
}

.footer-social {
	display: flex;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-social a {
	display: inline-grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	background: var(--teal-900);
	color: var(--apricot);
	transition: background-color var(--dur-fast) var(--ease-out);
}

.footer-social a:hover {
	background: var(--teal);
	color: var(--apricot);
}

.footer-legal p {
	margin: 0;
	color: var(--slate);
	font-size: 0.875rem;
}

@media (min-width: 768px) {
	.footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1280px) {
	.footer-grid {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr) 22rem;
		gap: 3rem;
	}
}

/* ------------------------------------------------------------ CQC widget */

/* CQC's script fills the box after the page has drawn. While it is expected, each box keeps
   room for the panel's height (--cqc-room) so nothing below it moves (layout shift). Heights
   were measured on 21 November 2026, before CQC's first inspection, with the box 19.25 to 22rem
   wide in every layout (panel plus link: 307px in the footer, 323px in the narrower boxes): re-measure when the rating is published, as the panel then changes.

   The script is in the box, before the link, and stops the page being read until it has run.
   So the room is kept while the link has not been read yet (the script is still loading), and
   afterwards only if the script added CQC's panel. Without JavaScript, or when cqc.org.uk
   cannot be reached, the box shrinks to the link. Browsers without :has() skip both rules.
   CQC asks that the panel itself is not restyled. */
.cqc-widget-box {
	display: flex;
	flex-direction: column;
}

.cqc-widget-box:not(:has(> .cqc-widget-fallback)) {
	min-height: var(--cqc-room, 7rem);
}

.cqc-widget-box:has(> .cqc-widget) {
	min-height: var(--cqc-room, 7rem);
}

.cqc-widget-fallback {
	margin: auto 0 0;
	padding-top: 0.75rem;
	font-size: 0.875rem;
}

.cqc-widget-box:not(:has(> .cqc-widget)) > .cqc-widget-fallback {
	padding-top: 0;
}

.cqc-widget-fallback a {
	display: inline-block;
	padding-block: 0.25rem;
}

.page-head-aside .cqc-widget-box,
.regulated-widget .cqc-widget-box {
	--cqc-room: 20.375rem;
}

/* Beside the page title the box is above the fold, where any change moves the title and the
   text below it. While CQC's panel loads it is briefly about 35px taller than when finished
   (measured on a slow connection on 22 November 2026: 361px against 326px), so the room here
   covers that peak. The finished panel then sits above a small gap, with the link at the foot. */
.page-head-aside .cqc-widget-box {
	--cqc-room: 23rem;
}

/* ------------------------------------------------------------ Hover lifts (mouse only) */

/* Movement on hover and press: only for a mouse, and never when reduced motion is asked for. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
	.btn:active,
	.round-btn:active:not(:disabled) {
		transform: translateY(1px);
	}

	.btn:hover .icon-arrow,
	.text-link:hover .icon-arrow,
	.post-card:hover .arrow,
	.role-card:hover .arrow,
	.svc-tile:hover .arrow,
	.dark-card:hover .arrow,
	.mega-title:hover .arrow,
	.chip-link:hover .icon {
		transform: translateX(4px);
	}

	.post-card:hover,
	.role-card:hover {
		transform: translateY(-3px);
	}

	.post-card:hover .post-card-img img {
		transform: scale(1.03);
	}
}

/* ------------------------------------------------------------ Scroll reveals */

/* site.js shows anything already in view, then adds "reveal-ready". Only then are the rest
   hidden, so without JavaScript, or before it runs, everything shows. Transform only: each
   element keeps its space, so nothing below it moves. */
[data-reveal] {
	transition: opacity var(--dur-reveal) var(--ease-soft), transform var(--dur-reveal) var(--ease-soft);
	transition-delay: calc(var(--i, 0) * 80ms);
}

html.reveal-ready [data-reveal]:not(.is-revealed) {
	opacity: 0;
	transform: translateY(16px);
}

/* ------------------------------------------------------------ Reduced motion */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
	}

	html.reveal-ready [data-reveal]:not(.is-revealed) {
		opacity: 1;
		transform: none;
	}

	.marquee,
	.marquee-viewport {
		display: block;
		overflow: visible;
	}

	.marquee-viewport {
		-webkit-mask-image: none;
		mask-image: none;
	}

	.marquee-track {
		animation: none !important;
		flex-wrap: wrap;
		justify-content: center;
		width: auto;
	}

	/* As the still facts without JavaScript, above. */
	.marquee-list {
		flex-wrap: wrap;
		justify-content: center;
		gap: 0.5rem 1.5rem;
		margin-inline: auto;
		padding: 0;
		white-space: normal;
	}

	.marquee-list li {
		align-items: flex-start;
		gap: 0.625rem;
		font-size: 1rem;
		text-align: center;
	}

	.marquee-list li::before,
	.marquee-list li:first-child::before {
		display: block;
		margin-top: calc(0.75em - 4px);
	}

	.marquee-list[aria-hidden="true"],
	.marquee-toggle {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) and (max-width: 767px) {
	.marquee-list {
		display: grid;
		justify-content: start;
	}

	.marquee-list li {
		align-items: flex-start;
		gap: 0.875rem;
		text-align: left;
	}

	.marquee-list li::before,
	.marquee-list li:first-child::before {
		display: block;
		margin-top: calc(0.75em - 4px);
	}
}

@media (prefers-reduced-motion: reduce) and (min-width: 768px) {
	.marquee-list li {
		display: block;
	}

	.marquee-list li::before,
	.marquee-list li:first-child::before {
		display: inline-block;
		margin: 0 0.625rem 0 0;
		vertical-align: middle;
	}

	.marquee-fact {
		display: inline;
	}
}

/* ------------------------------------------------------------ Print */

@media print {
	.utility,
	.site-header,
	.pc-bar,
	.anchor-wrap,
	.carousel-nav,
	.quote-nav,
	.marquee-toggle,
	.to-top,
	.footer-social,
	.cqc-widget-box script {
		display: none !important;
	}

	[data-reveal] {
		opacity: 1 !important;
		transform: none !important;
	}

	.marquee-track {
		animation: none !important;
		flex-wrap: wrap;
	}

	.marquee-list[aria-hidden="true"] {
		display: none;
	}

	.carousel-track,
	.quote-track {
		grid-auto-flow: row;
		overflow: visible;
	}

	body {
		background: #fff;
	}
}
