/*
 * 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 parent's
 * sections.css is not loaded on this site (inc/setup.php), so this block
 * sets every slot the child reads; the values are the ones the --cs-* names
 * held until 3.1.0. 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;
 * on an earlier parent assets/css/before-3-20.css holds their copy.
 */
: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;
}

.cs-ground-forest :where(a, button):focus-visible,
.cs-footer :where(a, button):focus-visible {
	outline-color: var(--cs-leaf);
}

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

/* The post content of a page file is a column of full-bleed sections. */
.upp-main > .wp-block-post-content,
.upp-main > .wp-block-post-content > * {
	margin-block: 0;
}

/* 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: the
 * parent's sections.css is not loaded here, so this file is the one place
 * the site's wrap, section, grounds, eyebrow and head are defined. 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);
}

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

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

.cs-ground-forest,
.wu-ground--inverse {
	background: var(--wu-inverse-ground);
	color: var(--wu-inverse-text);
}

.cs-ground-forest :is(h1, h2, h3),
.wu-ground--inverse :is(h1, h2, h3) {
	color: var(--wu-inverse-text);
}

/* 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-leaf);
}

.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;
}

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

.cs-h2,
.wu-h2 {
	font-size: clamp(32px, 3.6vw, 44px);
	line-height: 1.12;
}

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

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

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

.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;
	min-height: 48px;
	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;
}

.cs-btn:hover,
.wu-button: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));
}

.cs-btn--ghost,
.cs-btn--ghost:visited,
.wu-button--ghost,
.wu-button--ghost:visited {
	border-color: var(--wu-accent);
	background: transparent;
	color: var(--wu-accent);
}

.cs-btn--ghost:hover,
.wu-button--ghost:hover {
	background: var(--wu-inverse-ground);
	color: #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) ----------
 * The parent's sections.css is not loaded here, so 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; the slots are on
 * :root above. */

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

.wu-hero__actions .wu-button {
	flex: 0 0 auto;
}

@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 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) ---------- */

/* Not pinned; over the hero on the pages that say so (page.json
   "headerOver": "over", from 3.25.1: the parent's header-state.css places
   the part, wu-header-over on the body). Elsewhere the sand bar. */
.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);
}

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

.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;
}

/* Over a photograph from tablet up (the overlay header sits on the split
   hero: logo on the sand panel, links over the photograph). */
@media (min-width: 1280px) {
	.wu-header-over .cs-header .wp-block-navigation:not(.is-menu-open) .wp-block-navigation-item:not(.cs-nav-cta) .wp-block-navigation-item__content.wp-block-navigation-item__content {
		color: #fff;
		text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
	}
}

/* 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 desktop (core switches at 600px; the house breakpoint is
   1025px). On an overlay page the links sit over the photograph, which
   starts at 46% of the width; below 1280px the row of links would reach
   back over the sand panel in white, so the burger stays up to 1280px. */
@media (max-width: 1024.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;
	}
}

@media (min-width: 1025px) and (max-width: 1279.98px) {
	.wu-header-over .cs-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.wu-header-over .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;
}

/* Phones: the overlay header sits on the photograph, so the burger is
   white on a soft dark disc that keeps it legible on any part of the
   photograph. Tablet: the burger sits over the photograph half too. */
.wu-header-over .cs-header .wp-block-navigation__responsive-container-open {
	background: rgba(0, 0, 0, 0.28);
	color: #fff;
}

/* 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 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;
	color: var(--wu-text);
	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;
}

:is(.cs-form, .wu-form) .gchoice {
	display: flex;
	align-items: center;
	gap: 8px;
}

:is(.cs-form, .wu-form) .gchoice input {
	width: 20px;
	height: 20px;
	margin: 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 .ginput_container_consent {
	display: flex;
	align-items: center;
	gap: 10px;
}

.cs-legal__form .ginput_container_consent input {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--wu-accent);
}

.cs-legal__form .ginput_container_consent label {
	font: 400 16px/1.3 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. */
.upp-legal-log {
	--upp-legal-log-text: var(--wu-text);
	--upp-legal-log-muted: var(--wu-text);
	--upp-legal-log-line: var(--wu-line);
	--upp-legal-log-face: var(--wu-ground);
	--upp-legal-log-accent: var(--wu-accent);
	--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);
}

/* 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 card face and the follow button carry 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;
}

#instagram.cs-feed--instagram #sb_instagram #sbi_images {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	width: 100%;
	padding: 0;
}

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

#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;
}

#instagram.cs-feed--instagram #sb_instagram #sbi_load {
	margin-top: 32px;
	text-align: left;
}

#instagram.cs-feed--instagram #sb_instagram #sbi_load :is(.sbi_load_btn, .sbi_follow_btn a) {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	padding: 14px 26px;
	border: 2px solid var(--wu-accent);
	border-radius: 999px;
	background: transparent !important;
	color: var(--wu-accent) !important;
	font: 600 16px/1.1 var(--wu-body);
	box-shadow: none;
}

#instagram.cs-feed--instagram #sb_instagram #sbi_load :is(.sbi_load_btn, .sbi_follow_btn a):hover {
	background: var(--wu-inverse-ground) !important;
	color: #fff !important;
}

/* 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 two sections of words with no photograph (the craft section
   and the forest band) read at the 720px prose measure. */
#about-training.wu-split,
#about-residential.wu-split {
	--wu-split-text-max: 720px;
}

/* 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-body-colour: var(--wu-text);
	--wu-cards-hover-title: underline;
	--wu-collection-meta-text: var(--wu-text);
	--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 (the story pages' related
   band): the words white, the eyebrow leaf (the primitives above). */
#more-articles {
	--wu-cards-text: var(--wu-inverse-text);
	--wu-cards-title-colour: var(--wu-inverse-text);
	--wu-cards-body-colour: var(--wu-inverse-text);
	--wu-collection-meta-text: var(--wu-inverse-text);
	--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;
}

.cs-article__body img {
	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 */
