/*
 * Canine Sense (customer demo, 2026-10-12). Mobile first: every rule is the
 * phone layout; min-width queries adapt it for tablet (768px) and desktop
 * (1025px), the house breakpoints.
 *
 * Values follow the approved home mockup (docs/mockups/caninesense/home.html):
 * sand, white and forest grounds, copal buttons with coal text (5.9:1),
 * DM Serif Display headings, Poppins 300 body at 18px/1.6, 16px card radius.
 *
 * Load order: this file loads before the Blockstudio block stylesheets, so
 * shared primitives live here and each block's own style.scss refines them.
 */

/*
 * The look through the parent's slots (3.2.0, docs/DESIGN-FREEDOM.md): every
 * role the parent names is a --wu-* slot set here from the site's palette
 * (theme.json) and measures, and the stylesheets read the slot. The slot
 * values are design.json's; this block sets the --cs-* names, whose values
 * are the ones they held until 3.1.0. From child 4.4.0 the parent's shared
 * sheet (sections.css) loads before this file (inc/setup.php). The --cs-* names that remain are this site's own colours
 * and measures with no slot (leaf, ash, deep forest, copal outside the
 * buttons, the panel radius).
 *
 * The button slots are theme.json's from child 3.6.0: the primary's face
 * and words (--wu-button-face copal, --wu-button-text coal) are
 * styles.elements.button, and no arrow after a button's or a text link's
 * words anywhere the parent draws one (--wu-button-arrow none; the site's
 * buttons are words alone, docs/DESIGN.md) is settings.custom.button.arrow
 * off. The parent's bridge prints them (from WebUpp Platform Theme 3.20.0).
 */
:root {
	--cs-forest-deep: var(--wp--preset--color--forest-deep);
	--cs-leaf: var(--wp--preset--color--leaf);
	--cs-copal: var(--wp--preset--color--copal);
	--cs-ash: var(--wp--preset--color--ash);
	--cs-radius-panel: 20px;
}

html {
	scroll-behavior: smooth;
	background: var(--wu-ground);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body {
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

a,
p,
figcaption,
li {
	overflow-wrap: break-word;
}

::selection {
	background: var(--cs-leaf);
	color: var(--wu-text);
}

:where(a, button, summary, input, select, textarea):focus-visible {
	outline: 2px solid var(--wu-accent);
	outline-offset: 3px;
	border-radius: 4px;
}

/* A link's or button's ring reads the ground's carrier, `--cs-ring`: the
   leaf on a dark ground (the dark ground rule sets it, the footer
   included). A light ground and every other light place set the carrier
   to `initial`, so there the ring falls back to `--wu-accent`, as on a page
   with no dark ground. */
:where(a, button):focus-visible {
	outline-color: var(--cs-ring, var(--wu-accent));
}

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

/* Hidden as core hides its skip link (wp-block-template-skip-link.css), with
 * clip-path, which core's focus rule lifts. The old clip property stayed on
 * the focused skip link, so it drew no box (3.25.1). */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* Focused, it lifts what the rule above sets and core's focus rule does not
 * decide, so the skip link draws as core's own focus rule intends. */
.screen-reader-text:focus {
	clip-path: none;
	white-space: normal;
}

/* ---------- Primitives ----------
 * Each primitive also styles the parent's class of the same role (wu-*,
 * CONTRACT.md "Class names"), which a shared parent block draws, in the
 * site's register. From child 4.4.0 the parent's sections.css loads first
 * and these rules print after it, so they decide where both set a value.
 * From 3.3.0 (webupp/steps). */

.cs-wrap,
.wu-wrap {
	box-sizing: border-box;
	width: 100%;
	max-width: calc(var(--wu-wrap) + 2 * var(--wu-gutter));
	margin-inline: auto;
	padding-inline: var(--wu-gutter);
}

.cs-section,
.wu-section {
	padding-block: var(--wu-section-y);
}

/* A light ground sets its own words, so a light ground inside a dark one
   does not keep the dark ground's white, and sets the five carriers the
   dark ground rule sets back to `initial`, so each value falls back to its
   own default: the eyebrow, the see-through button's edge and words and
   the focus ring to `--wu-accent`, and the see-through button's hover face
   and hover words to the inverse ground and white. The rule after the dark
   ground rule does the same on the site's other light places. */
.cs-ground-sand,
.wu-ground--alt {
	--cs-eyebrow: initial;
	--cs-ghost: initial;
	--cs-ghost-hover-face: initial;
	--cs-ghost-hover-text: initial;
	--cs-ring: initial;
	background: var(--wu-ground-alt);
	color: var(--wu-text);
}

.cs-ground-white {
	--cs-eyebrow: initial;
	--cs-ghost: initial;
	--cs-ghost-hover-face: initial;
	--cs-ghost-hover-text: initial;
	--cs-ring: initial;
	background: var(--wu-ground);
	color: var(--wu-text);
}

.cs-ground-forest,
.wu-ground--inverse {
	--cs-eyebrow: var(--cs-leaf);
	--cs-ghost: var(--wu-inverse-text);
	--cs-ghost-hover-face: var(--wu-inverse-text);
	--cs-ghost-hover-text: var(--wu-inverse-ground);
	--cs-ring: var(--cs-leaf);
	background: var(--wu-inverse-ground);
	color: var(--wu-inverse-text);
}

/* Every other light place hands the carriers back, as the light grounds
   do: a block in one of theme.json's five light palette colours (custom
   colours are off, so these are all the editor can make), the parent's
   faces this site paints (no wu-flat mark on the body), and the child's
   own light faces that carry no ground class. Never a link or a button:
   its ring draws outside it, on the ground. No weight, so a ground class
   on the same element wins. A palette colour or a painted face added
   later joins this list and the cards list below (docs/DESIGN.md). The
   copy of the parent's face names and guards is Platform 5.0.0 ticket
   section 81 item 3: a shared mark on a painted face would end it. */
:where(
	.has-white-background-color,
	.has-sand-background-color,
	.has-ash-background-color,
	.has-leaf-background-color,
	.has-copal-background-color,
	.wu-steps__panel:not(.wu-flat-steps-panel *),
	.upp-card:where(.wp-block-webupp-portfolio-card):not(.upp-card--framed):not(.wu-flat-portfolio *),
	.upp-legal-log,
	.cs-legal,
	:is(.cs-form, .wu-form) :is(.gform_confirmation_message, .gform_validation_errors)
):where(:not(a, button)) {
	--cs-eyebrow: initial;
	--cs-ghost: initial;
	--cs-ghost-hover-face: initial;
	--cs-ghost-hover-text: initial;
	--cs-ring: initial;
}

/* STOPGAP, Platform 5.0.0 ticket section 78 item 1 (Nelly's carries the
   same rule): a heading on a dark ground takes the colour of the words
   around it. inherit, never a fixed colour, so inside a light face or a
   light ground it takes that place's words. */
.cs-ground-forest :is(h1, h2, h3, h4, h5, h6),
.wu-ground--inverse :is(h1, h2, h3, h4, h5, h6) {
	color: inherit;
}

/* A link typed in words on the site's own dark ground takes the words'
   colour and a line, at rest and on hover: theme.json's link colour is the
   forest, 1 to 1 on this ground. inherit, never a fixed colour, so inside a
   light ground or a coloured group it takes that place's words. A link with
   no class only, so a button, a card's link and a block's own link keep
   their rules. A block with its own link colour keeps it. The footer draws
   its own links (site-footer/style.scss). */
:where(.cs-ground-forest:not(.cs-footer)) a:not([class]):where(:not(.has-link-color *)) {
	color: inherit;
	text-decoration-line: underline;
}

/* STOPGAP, Platform 5.0.0 ticket section 66 item 6: the parent's
   socials link sets its colour at rest only (parts.css), so theme.json's
   link hover colour wins on hover: forest deep on the forest, 1.26 to 1.
   On a dark ground the link keeps its colour on hover. */
:where(.cs-ground-forest:not(.cs-footer), .wu-ground--inverse) a:where(.wu-socials__link):hover {
	color: var(--wu-socials-text, inherit);
}

/* STOPGAP, Platform 5.0.0 ticket section 62 item 35 (the parent's fix
   builds in 4.7.0), this rule and the take-back after it: see-through
   cards have no face, so their words are the ground's, and the parent's
   cards on a block's own dark ground do not follow it. The body class is
   the Platform's mark that the cards face paints nothing. */
.wu-flat-cards :is(.cs-ground-forest, .wu-ground--inverse) {
	--wu-cards-text: var(--wu-inverse-text);
}

.wu-flat-cards :is(.cs-ground-forest, .wu-ground--inverse) :is(.cs-ground-sand, .cs-ground-white, .wu-ground--alt, .has-white-background-color, .has-sand-background-color, .has-ash-background-color, .has-leaf-background-color, .has-copal-background-color, .cs-legal) {
	--wu-cards-text: initial;
}

/* The eyebrow: the parent's "rule" variant (.wu-label--rule, its rule a
   span) drawn as the site's own .cs-eyebrow (its rule a ::before). */
.cs-eyebrow,
.wu-label--rule {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	color: var(--wu-accent);
	font: 600 13px/1.3 var(--wu-body);
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

/* The brand's copal is the mark, not the words: a short copal rule leads
   every eyebrow and the label is forest, which passes contrast on sand
   and on white (copal text measured 1.6:1 on sand, 2.2:1 on white). On
   the forest ground the label is leaf and the rule stays copal. */
.cs-eyebrow::before,
.wu-label--rule .wu-label__rule {
	content: "";
	flex: 0 0 auto;
	width: 22px;
	height: 2px;
	border-radius: 1px;
	background: var(--cs-copal);
}

.cs-ground-forest .cs-eyebrow,
.cs-ground-forest .wu-label--rule,
.wu-ground--inverse .wu-label--rule {
	color: var(--cs-eyebrow, var(--wu-accent));
}

.cs-h1,
.cs-h2,
.wu-h2,
.cs-h3 {
	margin: 0;
	color: var(--wu-accent);
	font-family: var(--wu-display);
	font-weight: 400;
	letter-spacing: -0.01em;
}

/* A title class on a dark ground takes the words' colour, on any tag. */
:where(.cs-ground-forest, .wu-ground--inverse) :is(.cs-h1, .cs-h2, .wu-h2, .cs-h3) {
	color: inherit;
}

.cs-h1 {
	font-size: clamp(40px, 5.5vw, 68px);
	line-height: 1.05;
}

/* .wu-h2's line height is the slot --wu-h2-line (design.json, 1.12) from
   child 4.4.0, which loads the shared sheet. */
.cs-h2,
.wu-h2 {
	font-size: clamp(32px, 3.6vw, 44px);
}

/* STOPGAP, Platform 5.0.0 ticket section 77 item 1: the site's headings
   break where the words fall, not balanced. The shared sheet's .wu-h2
   balances them (sections.css 426) with no slot to set it, from child
   4.4.0. Ends when the parent gives the slot. */
.wu-h2 {
	text-wrap: wrap;
}

.cs-h2 {
	line-height: 1.12;
}

.cs-h3 {
	font-size: 26px;
	line-height: 1.2;
}

.cs-eyebrow + .cs-h1,
.cs-eyebrow + .cs-h2 {
	margin-top: 12px;
}

.cs-sub,
.wu-standfirst {
	max-width: 62ch;
	margin: 14px 0 0;
}

/* STOPGAP, Platform 5.0.0 ticket section 77 item 2: the standfirst keeps
   the body's line (1.6) and breaks where the words fall. The shared sheet
   draws it at 1.5, pretty (sections.css 429), with no slot for either,
   from child 4.4.0. Ends when the parent gives the slots. */
.wu-standfirst {
	line-height: 1.6;
	text-wrap: wrap;
}

.cs-head,
.wu-head {
	margin-bottom: 32px;
}

@media (min-width: 768px) {
	.cs-head,
	.wu-head {
		margin-bottom: 40px;
	}
}

/* Buttons: pill, Poppins 600 16px, sentence case. The parent's buttons
   (.wu-button: the shared hero from 3.4.0; the link under a shared split
   or cards, named linkStyle ghost from 3.13.0; the section head's button)
   are drawn the same way. */
.cs-btn,
.wu-button {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 26px;
	border: 2px solid transparent;
	border-radius: 999px;
	font: 600 16px/1.1 var(--wu-body);
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.2s var(--wu-ease), background-color 0.2s, color 0.2s, border-color 0.2s;
}

/* .wu-button's least height (48px) and hover lift (-2px) are the slots
   --wu-button-min-height and --wu-button-lift (design.json) from child
   4.4.0, which loads the shared sheet. */
.cs-btn {
	min-height: 48px;
}

.cs-btn:hover {
	transform: translateY(-2px);
	text-decoration: none;
}

.cs-btn--copal,
.cs-btn--copal:visited,
.wu-button--primary,
.wu-button--primary:visited {
	background: var(--wu-button-face);
	color: var(--wu-button-text);
}

.cs-btn--copal:hover,
.wu-button--primary:hover {
	color: var(--cs-button-hover-text, var(--wu-button-text));
}

/* The site's see-through button draws the parent's secondary
   (.wu-button--ghost) and its third button (.wu-button--tertiary) alike.
   On a dark ground it reads the ground's carriers: white edge and words at
   rest, a white face with the ground's words on hover. The parent's side
   (a child's own secondary rule on the parent's inverse ground) is
   Platform 5.0.0 ticket section 81 item 1. */
.cs-btn--ghost,
.cs-btn--ghost:visited,
.wu-button--ghost,
.wu-button--ghost:visited,
.wu-button--tertiary,
.wu-button--tertiary:visited {
	border-color: var(--cs-ghost, var(--wu-accent));
	background: transparent;
	color: var(--cs-ghost, var(--wu-accent));
}

.cs-btn--ghost:hover,
.wu-button--ghost:hover,
.wu-button--tertiary:hover {
	background: var(--cs-ghost-hover-face, var(--wu-inverse-ground));
	color: var(--cs-ghost-hover-text, #fff);
}

/* The stories band on forest: its button (the shared section head's,
   pair 3.13.0) is white with forest words, deep forest on hover, through
   the button slots. */
.cs-stories.cs-ground-forest {
	--wu-button-face: #fff;
	--wu-button-text: var(--wu-accent);
	--cs-button-hover-text: var(--cs-forest-deep);
}

.cs-actions,
.wu-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

@media (prefers-reduced-motion: reduce) {
	.cs-btn,
	.cs-btn:hover,
	.wu-button,
	.wu-button:hover {
		transform: none;
		transition: none;
	}
}

/* Stars and the Trustpilot line. */
.cs-stars {
	color: var(--cs-copal);
	letter-spacing: 2px;
}

/* Copal stars on sand are decoration; the score is in the words beside them. */

/* ---------- The shared hero and split (pair 3.4.0) ----------
 * These rules draw the parent's classes the two blocks use in this site's
 * register, as the retired cs/hero, cs/page-intro and cs/split drew them,
 * after the parent's sections.css (loaded from child 4.4.0). */

/* The h1 of every hero: forest, as .cs-h1. */
.wu-hero__title,
.wu-ihero__title {
	color: var(--wu-accent);
}

@media (min-width: 768px) {
	/* A solid header page has the bar above the hero, not over it. */
	body:not(.wu-header-over) .wu-hero {
		--wu-hero-pad-top: 0px;
	}
}

/* The plain hero (the page intro on sand): the head tighter, the holding
   pages fill the screen less the header and footer. No glow and no arrow
   are the page files' fields (ownGlows off, arrow off, pair 3.13.0). */
.wu-ihero {
	--wu-hero-top: 24px;
	--wu-hero-bottom: var(--wu-section-y);
	--wu-hero-title-top: 12px;
	--wu-hero-title-max: 18ch;
	--wu-hero-standfirst-max: 56ch;
	--wu-hero-foot-gap: 24px;
	--wu-hero-home-min: calc(100svh - 280px);
}

@media (min-width: 768px) {
	.wu-ihero {
		--wu-hero-top: 40px;
	}
}

/* The note 24px under the lead or the buttons (the parent's plain hero sets
   the note's own margin to 0). */
.wu-ihero__foot:has(> .wu-ihero__note:first-child) {
	margin-top: 24px;
}

.wu-ihero__foot > * + .wu-ihero__note {
	margin-top: 24px;
}

.wu-ihero__note {
	max-width: 56ch;
	font: 400 15px/1.5 var(--wu-body);
	/* The note is in the body face: no .wu-mono tracking (the shared sheet
	   from child 4.4.0). */
	letter-spacing: normal;
}

/* The split: the photograph first on phones; the points on hairlines
   (ash on the white ground). Its link is a ghost pill by the page files'
   linkStyle ghost (pair 3.13.0). */
@media (max-width: 767.98px) {
	.wu-split__media {
		order: -1;
	}
}

.wu-split:not(.wu-ground--alt):not(.wu-ground--inverse) .wu-split__item {
	border-top-color: var(--cs-ash);
}

/* Chips: training needs (story single, archive filter). */
.cs-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cs-chip {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 8px 16px;
	border: 2px solid var(--cs-copal);
	border-radius: 999px;
	background: transparent;
	color: var(--wu-text);
	font: 400 15px/1.2 var(--wu-body);
	text-decoration: none;
	box-sizing: border-box;
}

a.cs-chip:hover {
	background: color-mix(in srgb, var(--cs-copal) 22%, transparent);
	color: var(--wu-text);
	text-decoration: none;
}

.cs-chip.is-current,
.cs-chip[aria-current] {
	background: var(--cs-copal);
	color: var(--wu-text);
	font-weight: 600;
}

.cs-chip__count {
	margin-left: 6px;
	opacity: 0.75;
	font-size: 13px;
}

.cs-tag {
	display: inline-block;
	color: var(--wu-accent);
	font: 600 13px/1.3 var(--wu-body);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* ---------- Header (parts/header.html) ---------- */

/* The sand bar above the page on every page: from child 4.3.3 no page sets
   "headerOver", so the part is never over the hero (Steve, 2026-11-23, one
   menu on every page). From child 4.4.2 it is pinned at every width (the
   header template's "pinned" and "pinnedOnPhones"): the parent's
   header-state.css makes the part sticky and gives it its place, and this
   sheet sets no position, top or z-index on it. */
.wp-site-blocks > header.wp-block-template-part {
	margin: 0;
}

body:not(.wu-header-over) .wp-site-blocks > header.wp-block-template-part {
	background: var(--wu-ground-alt);
}

.cs-header {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	max-width: calc(var(--wu-wrap) + 2 * var(--wu-gutter));
	margin-inline: auto;
	padding: 14px var(--wu-gutter);
}

/* Header at rest (child 4.4.3): 76px below 768px, 94px from 768px (19px
   around the 56px logo) and from 1025px (15px around the 64px logo). */
@media (min-width: 768px) {
	.cs-header {
		padding-block: 19px;
	}
}

@media (min-width: 1025px) {
	.cs-header {
		padding-block: 15px;
	}
}

/* An in-page jump (#programmes, #enquire, #stories and the other section
   ids) lands with the section's top right under the pinned header, with no
   strip of the section above (Steve, 2026-11-30, "Fix now"). The parent's
   header-state.css sets the page's scroll-padding-top to the header's
   measured height plus a fixed 16px, with no slot for the 16px, and a child
   sets no scroll-padding-top (CONTRACT, the header). So each target here
   takes the 16px back with its own scroll-margin-top, which the browser's
   jump and the motion runtime's landing after a refresh both keep. Unpinned
   (a phone held sideways) the section lands at the screen's top. Only
   sections and the two blocks of the child's own, so a form field's focus
   keeps its 16px. Stopgap: the 16px with no slot is a Platform finding
   (job R444), removed by the release that gives it a slot. */
main :is(section, .cs-anchor, .cs-prog__pay)[id] {
	scroll-margin-top: -16px;
}

.cs-header > * {
	margin-block: 0;
}

.cs-header .wp-block-navigation {
	gap: 28px;
	font: 400 16px/1.2 var(--wu-body);
}

/* Doubled class to outrank core's (0,3,0) "color: inherit" on links. */
.cs-header .wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content {
	color: var(--wu-accent);
	text-decoration: none;
}

.cs-header .wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content:hover .wp-block-navigation-item__label {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
}

/* Contact: the copal button in the bar. */
.cs-header .wp-block-navigation .cs-nav-cta .wp-block-navigation-item__content.wp-block-navigation-item__content {
	padding: 12px 22px;
	border-radius: 999px;
	background: var(--wu-button-face);
	color: var(--wu-text);
	font-weight: 600;
	text-shadow: none;
}

.cs-header .wp-block-navigation .cs-nav-cta .wp-block-navigation-item__content:hover .wp-block-navigation-item__label {
	text-decoration: none;
}

/* Current page: underline, so it is not colour alone. Success stories is
   also current on a story single (aria-current="true"); Residential
   training is not marked on the archive, which sits under its path. */
.cs-header .wp-block-navigation-item__content[aria-current="page"] .wp-block-navigation-item__label,
.cs-header .cs-nav-stories .wp-block-navigation-item__content[aria-current="true"] .wp-block-navigation-item__label {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
}

.cs-header .cs-nav-cta .wp-block-navigation-item__content[aria-current] .wp-block-navigation-item__label {
	text-decoration: none;
}

/* Burger below 1072px (core switches at 600px). The menu's items are
   28px apart wherever the row shows, on every page (Steve, 2026-11-23,
   child 4.3.3). At 28px the row of five links and the Contact button is
   686.22px wide and fits beside the logo from 1060px, but there its first
   link sat 16.73px from the logo, nearer than the links sit to each
   other. From 1072px it is 28.73px clear (220.73px from 1280px), so the
   burger stays to 1071.98px (judge NR6 G2, child 4.3.4). A sixth link or
   a longer label can break it, so any change to the menu's items is
   measured first. */
@media (max-width: 1071.98px) {
	.cs-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.cs-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}

.cs-header .wp-block-navigation__responsive-container-open {
	box-sizing: border-box;
	width: 48px;
	height: 48px;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	color: var(--wu-accent);
}

.cs-header .wp-block-navigation__responsive-container-open svg,
.cs-header .wp-block-navigation__responsive-container-close svg {
	width: 30px;
	height: 30px;
}

/* Full-screen sand menu. */
.cs-header .wp-block-navigation__responsive-container.is-menu-open {
	padding: 16px var(--wu-gutter) 32px;
	background: var(--wu-ground-alt) !important;
	color: var(--wu-accent) !important;
}

.cs-header .wp-block-navigation__responsive-container-close {
	top: 14px !important;
	right: var(--wu-gutter) !important;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--wu-accent);
}

.cs-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 72px;
	align-items: flex-start;
}

.cs-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 0;
	width: 100%;
	align-items: flex-start;
}

.cs-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	width: 100%;
	border-bottom: 1px solid var(--wu-line);
}

.cs-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content.wp-block-navigation-item__content {
	display: block;
	width: 100%;
	padding: 16px 0;
	color: var(--wu-accent);
	font-family: var(--wu-display);
	font-size: 32px;
	line-height: 1.15;
	text-shadow: none;
}

.cs-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item.cs-nav-cta {
	width: auto;
	margin-top: 32px;
	border-bottom: 0;
}

.cs-header .wp-block-navigation__responsive-container.is-menu-open .cs-nav-cta .wp-block-navigation-item__content.wp-block-navigation-item__content {
	display: inline-flex;
	width: auto;
	padding: 16px 28px;
	border-radius: 999px;
	background: var(--wu-button-face);
	color: var(--wu-text);
	font: 600 17px/1.1 var(--wu-body);
}

/* ---------- The pinned enquiry button on phones (webupp/sticky-cta) ----------
 * The parent's block draws it from the --wu-sticky-* slots set above (its
 * place, shadow, hiding and the phones-only rule are the block's own); the
 * lift on hover is this site's buttons'. */

.wu-sticky:hover {
	transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
	.wu-sticky:hover {
		transform: none;
	}
}

/* Room under the footer so the pinned button never covers its last line. */
@media (max-width: 767.98px) {
	.cs-footer {
		padding-bottom: 96px !important;
	}
}

/* ---------- Gravity Forms (GF's own CSS is off, inc/forms.php) ----------
 * The forked Gravity Forms skin, from here to the end of the jQuery UI
 * datepicker rules below (before job 4c's block): removed in one child
 * release after 30 November: Steve, 2026-11-17, CHARTER.
 * The legal form's .cs-form and the parent's .wu-form (the contact block's
 * form, 3.4.0) take the same rules, at the same specificity. */

:is(.cs-form, .wu-form) .gform_wrapper {
	margin: 0;
}

:is(.cs-form, .wu-form) .gform_heading,
:is(.cs-form, .wu-form) .gform_required_legend {
	display: none;
}

:is(.cs-form, .wu-form) .gform_fields {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 18px 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

:is(.cs-form, .wu-form) .gfield {
	grid-column: span 12;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

@media (min-width: 480px) {
	:is(.cs-form, .wu-form) .gfield--width-half {
		grid-column: span 6;
	}
}

:is(.cs-form, .wu-form) .gfield--type-section {
	margin-top: 12px;
	padding-top: 18px;
	border-top: 1px solid var(--wu-line);
}

:is(.cs-form, .wu-form) .gfield--type-section:first-child {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

:is(.cs-form, .wu-form) .gsection_title {
	margin: 0;
	color: var(--wu-accent);
	font: 400 24px/1.2 var(--wu-display);
}

:is(.cs-form, .wu-form) .gfield_label,
:is(.cs-form, .wu-form) .gform-field-label,
:is(.cs-form, .wu-form) legend.gfield_label {
	display: block;
	margin: 0 0 6px;
	padding: 0;
	color: var(--wu-accent);
	font: 600 14px/1.4 var(--wu-body);
}

:is(.cs-form, .wu-form) .gfield_required {
	margin-left: 4px;
	color: var(--wu-accent);
	font-weight: 400;
	font-size: 13px;
}

:is(.cs-form, .wu-form) .gfield_required .gfield_required_text {
	font-style: normal;
}

:is(.cs-form, .wu-form) .hidden_label > .gfield_label,
:is(.cs-form, .wu-form) .hidden_label > legend.gfield_label,
:is(.cs-form, .wu-form) .hidden_sub_label,
:is(.cs-form, .wu-form) .gform-field-label--type-sub.hidden_sub_label {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

:is(.cs-form, .wu-form) .ginput_complex {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

:is(.cs-form, .wu-form) .ginput_complex > span {
	display: block;
	min-width: 0;
}

:is(.cs-form, .wu-form) input[type="text"],
:is(.cs-form, .wu-form) input[type="email"],
:is(.cs-form, .wu-form) input[type="tel"],
:is(.cs-form, .wu-form) textarea,
:is(.cs-form, .wu-form) select {
	box-sizing: border-box;
	width: 100%;
	min-height: 52px;
	padding: 14px 16px;
	border: 1px solid var(--wu-line);
	border-radius: 12px;
	background: #fff;
	/* The palette's coal, not --wu-text: the field is white wherever it
	   stands, so its words do not follow a dark ground's text (11.73:1). */
	color: var(--wp--preset--color--coal);
	font: 300 16px/1.4 var(--wu-body);
	transition: border-color 0.2s, box-shadow 0.2s;
}

:is(.cs-form, .wu-form) input::placeholder,
:is(.cs-form, .wu-form) textarea::placeholder {
	color: #6b6b6b;
}

:is(.cs-form, .wu-form) textarea {
	min-height: 140px;
	resize: vertical;
}

:is(.cs-form, .wu-form) input:focus,
:is(.cs-form, .wu-form) textarea:focus,
:is(.cs-form, .wu-form) select:focus {
	border-color: var(--wu-accent);
	outline: none;
	box-shadow: 0 0 0 3px rgba(46, 81, 61, 0.18);
}

:is(.cs-form, .wu-form) .gfield_radio {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
}

/* Job CK: the box keeps its 20px size beside a long label (flex: none) and
   sits level with the label's first line, not the middle of the paragraph:
   the row aligns to the top and the box drops by half the gap between the
   label's 1.3 line (20.8px at 16px) and its own 20px. */
:is(.cs-form, .wu-form) .gchoice {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

:is(.cs-form, .wu-form) .gchoice input {
	flex: none;
	width: 20px;
	height: 20px;
	margin: calc((16px * 1.3 - 20px) / 2) 0 0;
	accent-color: var(--wu-accent);
}

:is(.cs-form, .wu-form) .gchoice label {
	font: 400 16px/1.3 var(--wu-body);
}

:is(.cs-form, .wu-form) .gfield_description,
:is(.cs-form, .wu-form) .ginput_container_date + .gfield_description {
	margin-top: 6px;
	font: 400 13px/1.4 var(--wu-body);
	color: var(--wu-text);
}

:is(.cs-form, .wu-form) .gfield_error input,
:is(.cs-form, .wu-form) .gfield_error textarea {
	border-color: #a3341c;
}

:is(.cs-form, .wu-form) .validation_message,
:is(.cs-form, .wu-form) .gfield_validation_message {
	margin-top: 6px;
	color: #a3341c;
	font: 400 14px/1.4 var(--wu-body);
}

:is(.cs-form, .wu-form) .gform_validation_errors {
	margin: 0 0 20px;
	padding: 14px 16px;
	border: 1px solid #a3341c;
	border-radius: 12px;
	background: #fff;
}

:is(.cs-form, .wu-form) .gform_validation_errors h2 {
	margin: 0;
	color: #a3341c;
	font: 600 15px/1.4 var(--wu-body);
}

:is(.cs-form, .wu-form) .gform_footer {
	margin-top: 24px;
	padding: 0;
}

:is(.cs-form, .wu-form) .gform_footer .gform_button {
	min-width: 180px;
}

:is(.cs-form, .wu-form) .gform_confirmation_message {
	padding: 20px;
	border-left: 3px solid var(--cs-leaf);
	background: #fff;
	border-radius: 0 12px 12px 0;
	font-size: 17px;
}

:is(.cs-form, .wu-form) .gform_ajax_spinner,
:is(.cs-form, .wu-form) .gform-loader {
	margin-left: 12px;
	vertical-align: middle;
}

:is(.cs-form, .wu-form) .gform_hidden,
:is(.cs-form, .wu-form) .gfield--type-honeypot,
:is(.cs-form, .wu-form) .gform_validation_container,
:is(.cs-form, .wu-form) .gfield_visibility_hidden,
:is(.cs-form, .wu-form) .gfield_visibility_administrative {
	display: none !important;
}

/* ---------- Signed agreement (the WebUpp Platform legal engine) ----------
   The agreement form on a white panel over sand; the document in its first
   HTML field reads as prose at a reading measure, then the version line,
   then the signer's details and the signature pad. */

.cs-legal {
	background: var(--wu-ground-alt);
}

.cs-legal__form {
	box-sizing: border-box;
	max-width: 820px;
	margin-inline: auto;
	padding: 28px 20px;
	border: 1px solid var(--wu-line);
	border-radius: var(--cs-radius-panel);
	background: var(--wu-ground);
	color: var(--wu-text);
	overflow-wrap: anywhere;
}

@media (min-width: 768px) {
	.cs-legal__form {
		padding: 48px 56px;
	}
}

.upp-legal__body {
	font: 300 16px/1.7 var(--wu-body);
}

.upp-legal__body > * {
	max-width: 62ch;
	margin: 0;
}

.upp-legal__body > * + * {
	margin-top: 14px;
}

.upp-legal__body h2 {
	margin-top: 36px;
	color: var(--wu-accent);
	font: 400 24px/1.25 var(--wu-display);
}

.upp-legal__body h3,
.upp-legal__body h4 {
	margin-top: 28px;
	color: var(--wu-accent);
	font: 600 17px/1.35 var(--wu-body);
}

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

.upp-legal__body strong {
	font-weight: 600;
}

.upp-legal__body a {
	color: var(--wu-accent);
	text-underline-offset: 3px;
}

.upp-legal__version {
	margin: 32px 0 0;
	padding-top: 14px;
	border-top: 1px solid var(--wu-line);
	color: var(--wu-text);
	font: 400 13px/1.5 var(--wu-body);
}

.cs-legal__form .gfield--type-html:not(:first-child) {
	font: 300 16px/1.6 var(--wu-body);
}

.cs-legal__form .gfield_description {
	margin-top: 6px;
	font: 400 14px/1.5 var(--wu-body);
}

/* The changelog block (the parent's webupp/legal-changelog) in Canine Sense's
   colours, on the sand under the panel. Its words, rules and focus ring are
   the parent's own reads of --wu-text, --wu-line and --wu-accent, each on
   the element that draws it (from 4.6.0), so the panel keeps the page's
   colours in a dark text section. */
.upp-legal-log {
	--upp-legal-log-face: var(--wu-ground);
	--upp-legal-log-mono: var(--wu-body);
	--upp-legal-log-radius: var(--cs-radius-panel);
	--upp-legal-log-max: 820px;
	padding: 0 var(--wu-gutter) var(--wu-section-y);
	background: var(--wu-ground-alt);
}

/* The count and the dates read the text colour, not a muted one: the
   site's own value. Set on the panel, where the page's --wu-text is, never
   on the block's root: a slot set on the root from a --wu-* value misses
   the parent's take-back, which CONTRACT does not say (Platform 5.0.0
   ticket section 81 item 2). */
.upp-legal-log__details {
	--upp-legal-log-muted: var(--wu-text);
}

/* GF's date field: the calendar toggle button (GF renders it whatever
   the field's icon setting; its icon is a dashicon, not loaded on the
   front end) sits inside the input on the right, drawn here. */
:is(.cs-form, .wu-form) .ginput_container_date {
	position: relative;
}

:is(.cs-form, .wu-form) .gform-datepicker-toggle {
	position: absolute;
	top: 50%;
	right: 6px;
	width: 40px;
	height: 40px;
	margin-top: -20px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E513D' stroke-width='1.8' stroke-linecap='round'%3E%3Crect x='4' y='5.5' width='16' height='14' rx='2'/%3E%3Cpath d='M4 10h16M8.5 3.5v4M15.5 3.5v4'/%3E%3C/svg%3E") center / 22px no-repeat;
	cursor: pointer;
}

:is(.cs-form, .wu-form) .gform-datepicker-toggle .dashicons {
	display: none;
}

/* jQuery UI datepicker (GF's date field) in the theme's colours. */
.ui-datepicker {
	z-index: 60 !important;
	padding: 10px;
	border: 1px solid var(--wu-line);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.25);
	font: 400 14px/1.4 var(--wu-body);
}

.ui-datepicker .ui-datepicker-header {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 8px;
}

.ui-datepicker select {
	padding: 4px;
	border: 1px solid var(--wu-line);
	border-radius: 6px;
	font: inherit;
}

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
	cursor: pointer;
	color: var(--wu-accent);
}

.ui-datepicker table {
	border-collapse: collapse;
}

.ui-datepicker td a {
	display: block;
	padding: 6px 8px;
	border-radius: 6px;
	color: var(--wu-text);
	text-align: center;
	text-decoration: none;
}

.ui-datepicker td a:hover,
.ui-datepicker .ui-state-active {
	background: var(--cs-copal);
}

/* job 4c: start */

/* Header: Pricing is a section of the Residential page, not a page, so it
   takes no current-page mark there (Residential training carries it). */
.cs-header .cs-nav-pricing .wp-block-navigation-item__content[aria-current] .wp-block-navigation-item__label {
	text-decoration: none;
}

/* News: the profiles sit under the hero's "Follow us", on the same sand. */
.cs-news-follow {
	padding-block-start: 0;
}

/* The feeds' plain text link under them (Testimonials: Trustpilot). */
.cs-feed__more {
	margin: 40px 0 0;
}

.cs-feed__more a {
	color: var(--wu-accent);
	font: 600 16px/1.5 var(--wu-body);
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* ---------- The Google reviews feed (Reviews Feed Pro), Testimonials ----------
 * Steve's ruling names CSS for this feed. Every rule is scoped to the
 * section's own id and class (#reviews.cs-feed--reviews), which outranks the
 * feed's own per-feed rules (#sb-reviews-container-N .x). The look is the
 * home strip's: quiet text on hairlines with the leaf rule, the reviewer in
 * Poppins 600, copal stars, no cards, avatars or shadows, a ghost pill to
 * load more. The score line is the hero's, so the feed's own header goes. */
#reviews.cs-feed--reviews .sb-feed-header,
#reviews.cs-feed--reviews .sb-item-provider-icon,
#reviews.cs-feed--reviews .sb-item-author-img {
	display: none;
}

#reviews.cs-feed--reviews .sb-feed-posts {
	display: grid;
	gap: 0 40px;
}

@media (min-width: 768px) {
	#reviews.cs-feed--reviews .sb-feed-posts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1025px) {
	#reviews.cs-feed--reviews .sb-feed-posts {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

#reviews.cs-feed--reviews .sb-post-item-wrap {
	width: auto;
	padding: 24px 0 28px;
	border: 0;
	border-top: 1px solid var(--wu-line);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

#reviews.cs-feed--reviews .sb-item-author-name {
	color: var(--wu-accent);
	font: 600 14px/1.4 var(--wu-body);
}

#reviews.cs-feed--reviews .sb-item-author-date {
	color: var(--wu-muted, var(--wu-text));
	font: 400 13px/1.4 var(--wu-body);
}

#reviews.cs-feed--reviews .sb-item-rating {
	margin: 10px 0 12px;
	color: var(--cs-copal);
}

#reviews.cs-feed--reviews .sb-item-text {
	padding-left: 20px;
	border-left: 3px solid var(--cs-leaf);
	color: var(--wu-text);
	font: 400 16px/1.6 var(--wu-body);
}

#reviews.cs-feed--reviews .sb-expand button {
	padding: 0;
	border: 0;
	background: none;
	color: var(--wu-accent);
	font: 600 16px/1.5 var(--wu-body);
	cursor: pointer;
}

#reviews.cs-feed--reviews .sb-load-button-ctn {
	margin: 32px 0 0;
	text-align: left;
}

#reviews.cs-feed--reviews .sb-load-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	min-height: 48px;
	padding: 14px 26px;
	border: 2px solid var(--wu-accent);
	border-radius: 999px;
	background: transparent;
	color: var(--wu-accent);
	font: 600 16px/1.1 var(--wu-body);
	box-shadow: none;
}

#reviews.cs-feed--reviews .sb-load-button:hover {
	background: var(--wu-inverse-ground);
	color: #fff;
}

/* ---------- The Instagram feed (Instagram Feed Pro, feed 1), News ----------
 * Steve's ruling names CSS for this feed. Scoped to #instagram.cs-feed--instagram.
 * A grid of square photographs at the card radius: two across on phones,
 * four from 1025px. The feed's header, the card's account line, captions
 * and counts go: the page's hero and the profiles above say whose it is.
 * The feed's own follow button is off in its settings (job FB): the page's
 * button row after the feed is the site's own. The card face carries the
 * plugin's inline styles, which only !important outranks; those few
 * declarations use it. */
#instagram.cs-feed--instagram .sb_instagram_header,
#instagram.cs-feed--instagram .sbi-user-info,
#instagram.cs-feed--instagram .sbi_info_wrapper,
#instagram.cs-feed--instagram .sbi-divider {
	display: none;
}

#instagram.cs-feed--instagram #sb_instagram {
	padding: 0 !important;
}

/* One equal gap for bare square photographs: the column value of
 * design.json's --wu-cards-gap (24px 12px, then 32px 18px from 768px),
 * typed here because CSS cannot take one half of a slot. Change it with
 * that slot. The feed writes its own spacing as an inline gap on
 * #sbi_images, so this one needs !important. */
#instagram.cs-feed--instagram #sb_instagram #sbi_images {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px !important;
	width: 100%;
	padding: 0;
}

@media (min-width: 768px) {
	#instagram.cs-feed--instagram #sb_instagram #sbi_images {
		gap: 18px !important;
	}
}

@media (min-width: 1025px) {
	#instagram.cs-feed--instagram #sb_instagram #sbi_images {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

#instagram.cs-feed--instagram #sb_instagram #sbi_images .sbi_item {
	width: auto;
	margin: 0;
	padding: 0;
}

#instagram.cs-feed--instagram #sb_instagram .sbi_inner_wrap {
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

#instagram.cs-feed--instagram #sb_instagram .sbi_photo_wrap {
	overflow: hidden;
	aspect-ratio: 1 / 1;
	border-radius: var(--wu-card-radius);
}

#instagram.cs-feed--instagram #sb_instagram .sbi_photo {
	display: block;
	width: 100%;
	height: 100% !important;
}

#instagram.cs-feed--instagram #sb_instagram .sbi_photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* job 4c: end */

/* job 4a: start */
/* About, FAQ, the legal pages, the questionnaire and the closing page
   (the merge, job 4a). Slots set in the scope of the sections that need
   them, and the prose of the legal documents. */

/* About: the forest band, the one section of words with no photograph,
   reads at the 720px prose measure. */
#about-residential.wu-split {
	--wu-split-text-max: 720px;
}

/* About: the collies photograph (cs-about-collies, 1116 x 748) at 3:2
   from 768px, through the parent's ratio slot, so all six dogs show
   (Steve's ruling 4 of 2026-11-16, job R2). Phones keep the site's
   ratio. */
@media (min-width: 768px) {
	#about-childhood.wu-split {
		--wu-split-ratio: 3 / 2;
	}
}

/* Residential: the handover photograph (cs-res-handover, 3D7A4530-2, a
   3:2 file) at 3:2 from 1025px, through the parent's ratio slot, so
   Flurina, the woman and both dogs show beside words 354px tall (judge
   PJ, 2026-11-24). Tablets keep the site's 4 / 5 and phones 4 / 3.4. */
@media (min-width: 1025px) {
	#handover.wu-split {
		--wu-split-ratio: 3 / 2;
	}
}

/* FAQ: one webupp/faq of four titled groups (one FAQPage for all the
   questions). With no head the group titles are the h2s, so they take the
   site's serif in forest; questions in Poppins 600, answers in the body
   face at the reading measure, forest hairlines and plus. */
.wu-faq {
	--wu-faq-measure: 760px;
	--wu-faq-group-gap: 56px;
	--wu-faq-title-font: 400 clamp(28px, 3vw, 36px)/1.15 var(--wu-display);
	--wu-faq-title-colour: var(--wu-accent);
	--wu-faq-title-gap: 12px;
	--wu-faq-rule: 1px solid var(--wu-line-strong);
	--wu-faq-q-font: 600 17px/1.4 var(--wu-body);
	--wu-faq-q-colour: var(--wu-text);
	--wu-faq-icon-colour: var(--wu-accent);
	--wu-faq-a-font: 300 17px/1.65 var(--wu-body);
}

@media (min-width: 768px) {
	.wu-faq {
		--wu-faq-group-gap: 72px;
	}
}

/* The legal documents: a white section, the document at the 720px prose
   measure, set as the agreement's document is (upp-legal__body). The
   cookie policy and the terms are Complianz's own document blocks inside
   .cs-prose; these rules reach their headings, paragraphs, lists and
   links by element, never by the plugin's classes. */
.cs-prose {
	max-width: 720px;
	font: 300 16px/1.7 var(--wu-body);
	overflow-wrap: anywhere;
}

.cs-prose :is(p, ul, ol, table) {
	margin: 14px 0 0;
}

.cs-prose :is(ul, ol) {
	padding-left: 1.3em;
}

.cs-prose li + li {
	margin-top: 6px;
}

.cs-prose :is(h2, h3, h4) {
	color: var(--wu-accent);
}

.cs-prose h2 {
	margin: 40px 0 0;
	font: 400 26px/1.25 var(--wu-display);
	letter-spacing: -0.01em;
}

.cs-prose :is(h3, h4) {
	margin: 28px 0 0;
	font: 600 17px/1.35 var(--wu-body);
}

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

.cs-prose strong {
	font-weight: 600;
}

.cs-prose a {
	color: var(--wu-accent);
	text-underline-offset: 3px;
}
/* job 4a: end */

/* job 4b: start */
/* ---------- Articles and e-guides (the merge, job 4b) ----------
   The articles index (#articles) and the row under an article
   (#more-articles) are the parent's webupp/collection; their cards take
   this site's look from the collection's and the cards' slots, set in the
   scope of those two sections only (the stay row keeps the site-wide card
   slots in design.json). The card: a 3:2 photograph at the card radius,
   the title in DM Serif Display, the date in small coal text, the excerpt;
   no face, edge, shadow or lift. One across on phones, two on tablets on
   the index (three on the three-card row), three from 1025px. */
:is(#articles, #more-articles) {
	--wu-cards-ratio: 3 / 2;
	--wu-cards-columns-phone: 1;
	--wu-cards-gap: 40px;
	--wu-cards-pad: 16px 0 0;
	--wu-cards-text-gap: 8px;
	--wu-cards-title-face: var(--wu-display);
	--wu-cards-title-weight: 400;
	--wu-cards-title-size: 24px;
	--wu-cards-title-line: 1.2;
	--wu-cards-title-tracking: -0.01em;
	--wu-cards-body-size: 15px;
	--wu-cards-hover-title: underline;
	--wu-collection-meta-text: currentColor;
	--wu-collection-meta-size: 14px;
}

@media (min-width: 768px) {
	:is(#articles, #more-articles) {
		--wu-cards-gap: 48px 24px;
		--wu-cards-title-size: 22px;
	}

	#more-articles {
		--wu-cards-columns-tablet: 3;
	}
}

@media (min-width: 1025px) {
	:is(#articles, #more-articles) {
		--wu-cards-gap: 56px 32px;
		--wu-cards-title-size: 24px;
	}
}

/* The filter in the site's copal chip look (as cs/need-filter draws the
   stories' chips) and the page numbers to match, through the collection's
   slots. The chips' hover face and the current chip's weight have no slot
   (job 4b's report, Platform findings), so those two stay the parent's. */
#articles {
	--wu-collection-filter-gap: 40px;
	--wu-collection-chip-pad: 16px;
	--wu-collection-chip-border: 2px solid var(--cs-copal);
	--wu-collection-chip-radius: 999px;
	--wu-collection-chip-face: transparent;
	--wu-collection-chip-current-face: var(--cs-copal);
	--wu-collection-chip-current-text: var(--wu-text);
	--wu-collection-term-text: var(--wu-text);
	--wu-collection-term-hover: var(--wu-text);
	--wu-collection-term-current: var(--wu-text);
	--wu-collection-term-size: 15px;
	--wu-collection-term-weight: 400;
	--wu-collection-number-border: 2px solid var(--cs-copal);
	--wu-collection-number-current: var(--cs-copal);
	--wu-collection-number-current-text: var(--wu-text);
	--wu-collection-number-text: var(--wu-text);
}

/* The row under an article on the forest band: its words are the
   ground's by the see-through cards rule with the grounds above, the
   eyebrow leaf by the ground's carrier. Here only the image's face, deep
   forest while a photograph loads. */
#more-articles {
	--wu-cards-image-face: var(--cs-forest-deep);
}

/* The article: one white reading ground, the body on the 720px prose
   measure under cs/article-intro. Serif h2 and h3 in forest, coal text,
   links forest and underlined, lists with copal marks, a block quote on a
   copal rule, photographs at the card radius. */
.cs-article__body {
	max-width: calc(720px + 2 * var(--wu-gutter));
	margin-top: 40px;
	color: var(--wu-text);
}

@media (min-width: 768px) {
	.cs-article__body {
		margin-top: 48px;
	}
}

.cs-article__body > * {
	margin-block: 0;
}

.cs-article__body :is(p, ul, ol, blockquote, figure, .wp-block-columns, .wp-block-buttons, table) {
	margin-block: 0 1.1em;
}

.cs-article__body :is(h2, h3, h4) {
	margin: 1.6em 0 0.45em;
	color: var(--wu-accent);
	font-family: var(--wu-display);
	font-weight: 400;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

.cs-article__body h2 {
	font-size: clamp(28px, 3vw, 34px);
	line-height: 1.15;
}

.cs-article__body h3 {
	font-size: clamp(23px, 2.4vw, 26px);
	line-height: 1.2;
}

.cs-article__body h4 {
	font-size: 21px;
	line-height: 1.25;
}

.cs-article__body > :first-child,
.cs-article__body > :first-child > :first-child {
	margin-top: 0;
}

.cs-article__body :is(strong, b) {
	font-weight: 600;
}

.cs-article__body a:not(.wp-element-button, .wp-block-button__link) {
	color: var(--wu-accent);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.cs-article__body a:not(.wp-element-button, .wp-block-button__link):hover {
	color: var(--cs-forest-deep);
	text-decoration-thickness: 2px;
}

.cs-article__body :is(ul, ol) {
	padding-left: 1.3em;
}

.cs-article__body li + li,
.cs-article__body li > :is(ul, ol) {
	margin-top: 0.45em;
}

.cs-article__body li::marker {
	color: var(--cs-copal);
}

.cs-article__body ol > li::marker {
	color: var(--wu-accent);
	font-weight: 600;
}

.cs-article__body blockquote {
	margin-inline: 0;
	padding: 4px 0 4px 22px;
	border-left: 3px solid var(--cs-copal);
	color: var(--wu-accent);
	font: 400 clamp(22px, 2.2vw, 26px)/1.35 var(--wu-display);
}

.cs-article__body blockquote :is(p, cite) {
	margin: 0;
}

.cs-article__body blockquote cite {
	display: block;
	margin-top: 10px;
	color: var(--wu-text);
	font: 600 15px/1.4 var(--wu-body);
	font-style: normal;
}

.cs-article__body figure {
	margin-inline: 0;
}

/* WordPress's emoji images (img.emoji, drawn in the line at 1em) are
   words, not photographs: they keep no card radius (J4B fix 5). */
.cs-article__body img:not(.emoji) {
	display: block;
	height: auto;
	border-radius: var(--wu-card-radius);
}

.cs-article__body .aligncenter,
.cs-article__body .aligncenter img {
	margin-inline: auto;
}

.cs-article__body figcaption {
	margin-top: 10px;
	color: var(--wu-text);
	font-size: 14px;
	line-height: 1.45;
}

.cs-article__body .wp-block-columns {
	gap: 24px;
}
/* job 4b: end */

/* job FR1: start */
/* ---------- Flurina's feedback, child 4.3.0 (job FR1) ---------- */

/* The site's own hero values on Home and Residential, with the sand bar
   above the photograph (judge FJ section 1): the photograph from
   min(460px, 118vw) to min(384px, 98vw), so the words start where they
   started, and no top shade below 768px. Set here, not in design.json, so
   About's split hero keeps its phone photograph. Home by the front page's
   body class. Stopgap, Platform 5.0.0 ticket section 49: the hero has no
   per-page phone height, so Residential is reached by its own programmes
   section's id; when the Platform gives one, move Residential to it and
   remove the :has() selector only. */
@media (max-width: 767.98px) {
	body.home,
	body:has(#programmes) {
		--wu-hero-photo-phone: min(384px, 98vw);
		--wu-hero-shade: transparent;
	}
}

/* Home, "What would you like to change?" (#needs): the parent's
   webupp/cards, variant photo (judge FJ section 2). The site's own values
   on the cards' slots, in this section's scope: square photographs at the
   card radius with no shade, her heading alone under each in DM Serif
   Display 400 forest, 18px below 768px and 22px from 768px, the copal
   arrow after it. Two across below 1025px, four from 1025px (the
   columns field). */
#needs {
	--wu-cards-ratio: 1 / 1;
	--wu-cards-columns-phone: 2;
	--wu-cards-columns-tablet: 2;
	--wu-cards-title-face: var(--wu-display);
	--wu-cards-title-weight: 400;
	--wu-cards-title-size: 18px;
	--wu-cards-title-line: 1.2;
	--wu-cards-title-colour: var(--wu-accent);
	--wu-cards-arrow: var(--cs-copal);
}

@media (min-width: 768px) {
	#needs {
		--wu-cards-title-size: 22px;
	}
}
/* job FR1: end */
