/*
 Theme Name:   DBM
 Theme URI:    https://keepingconsultancy.com
 Description:  Child theme for Dorset Business Mentors
 Author:       Keeping Consultancy
 Author URI:   https://keepingconsultancy.com
 Template:     twentytwentyfive
 Version:      1.7.22
 Text Domain:  dbm-child
*/

/* .hero-full-width's decorative ::before bleeds to calc(100vw - 50%), and
   100vw includes the scrollbar's own width, so it overshoots the real
   content edge by exactly that much — this clips the deliberate bleed
   without affecting the visual effect itself. Needed on both html and body:
   body alone doesn't suppress the root scrolling box here.

   Uses overflow-x: clip rather than hidden: setting only one axis to
   "hidden" forces the browser to compute the OTHER axis as "auto" too (a
   CSS spec quirk), which silently turned html/body into a scrolling
   container and broke the sticky header elsewhere on the page (it stopped
   sticking to the viewport entirely instead of just not hiding/showing).
   "clip" suppresses the overflow without creating a scroll container, so
   it doesn't trigger that paired-axis conversion — confirmed live that this
   restores sticky positioning while keeping the horizontal scrollbar fixed. */
html,
body {
	overflow-x: clip;
}

/* Side padding at every width, so text never touches the screen edge: 1.25rem
   on phones, growing with the window to 3rem (Tom's decision "A", 19 November
   2026; phones only before 1.5.74). The site's Global Styles set WordPress's
   root padding to 0, so every constrained Group ran edge to edge up to the
   1300px content width. Setting the root padding (rather than padding each
   section) keeps full-width backgrounds bleeding to the edge: WordPress pulls
   .alignfull blocks back out by the same amount. Global Styles set these on
   body, so "html body" is needed to win. */
html body {
	--wp--style--root--padding-left: clamp(1.25rem, 4vw, 3rem);
	--wp--style--root--padding-right: clamp(1.25rem, 4vw, 3rem);
}

/* "(opens in a new tab)" at the end of every off-site link, added by
   dbm_offsite_links_new_tab() in functions.php: read by screen readers, not
   shown. The usual visually hidden pattern; it takes no space, so buttons and
   logo links keep their size. */
.dbm-new-tab-note {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* A long email address or link in page text breaks rather than pushing the
   page sideways at 320px (WCAG 1.4.10), as the Privacy Notice's data
   protection address did. */
.wp-block-post-content :where(p, li) {
	overflow-wrap: anywhere;
}

/* ==========================================================================
   Auto-contrast: any block given the "Accent 3" (navy) background colour
   via the native block Colour panel gets white ("Base") text automatically,
   without needing it set by hand on every title/paragraph inside it.
   `color` is inherited, so setting it once here on the block itself cascades
   to every descendant that doesn't have its own explicit colour — anything
   manually set to something else is unaffected, since an explicit colour on
   an element always wins over an inherited one regardless of specificity.
   Two exceptions need their own explicit rule rather than relying on that
   inheritance, because the theme already sets colour explicitly on these
   elements by default (not just inherited from body), which would otherwise
   still beat the inherited white here the exact same way:
   - Links: the site-wide link colour rule below sets navy on every <a>.
   - Headings: the theme sets every h1–h6's default colour to Accent 3 too
     (presumably so they read navy-on-white normally) — harmless until the
     background itself becomes Accent 3, which is exactly this bug.
   :not(.has-text-color) on the headings rule mirrors WordPress's own
   convention for this (see core's .wp-block-cover h2:not(.has-text-color)
   default elsewhere) — it excludes any heading with its own manually-chosen
   colour by not matching it at all, sidestepping needing this rule's
   specificity to be tuned against every possible manual-override rule's own. ========================================================================== */
.has-accent-3-background-color {
	color: var(--wp--preset--color--base);
}

.has-accent-3-background-color a:not(.wp-element-button):not(.wp-block-navigation-item__content) {
	color: var(--wp--preset--color--base);
	text-decoration-color: rgba(255, 255, 255, 0.4);
}

.has-accent-3-background-color :where(h1, h2, h3, h4, h5, h6):not(.has-text-color) {
	color: var(--wp--preset--color--base);
}

/* ==========================================================================
   Text links: hover colour site-wide, overriding the theme's global-styles
   default (:root :where(a:where(:not(.wp-element-button)):hover) { color:
   var(--wp--preset--color--accent-1); ... }, zero-specificity via :where()
   so a plain selector here overrides it regardless of source order).
   Excludes buttons (.wp-element-button), which already have their own
   complete hover treatment above. This does still apply to nav links, on
   top of their existing yellow underline-reveal animation.
   ========================================================================== */
/* Adjustments from the version supplied:
   - #EDFF00 (focus outline) -> #ffeb00, matching the site's current yellow
     (the old hex predates the palette-wide update to #ffeb00).
   - Scoped to also exclude .wp-block-navigation-item__content on top of
     .wp-element-button: nav links already have their own animated
     underline via ::after, and a native text-decoration underline here
     would double up with it.
   - Supersedes the previous "text links turn navy on hover" rule below it:
     colour is now navy at rest too (not just on hover), so that rule's
     hover-only colour change became redundant and has been folded in here. */
a:not(.wp-element-button):not(.wp-block-navigation-item__content) {
	color: #203748;
	text-decoration: underline;
	text-decoration-color: rgba(32, 55, 72, 0.4);
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
	transition: text-decoration-color 0.2s ease, text-decoration-thickness 0.2s ease;
}

a:not(.wp-element-button):not(.wp-block-navigation-item__content):hover,
a:not(.wp-element-button):not(.wp-block-navigation-item__content):focus-visible {
	text-decoration-color: #ffeb00;
	text-decoration-thickness: 2px;
}

/* Keyboard focus outline: navy (accent-3) on the light pages, 12.3:1 on
   white, and the site's yellow only on the dark areas (the footer, navy
   panels and headers, photo headers), where it is 10.1:1. The yellow
   everywhere was 1.2:1 on white, too faint to see (WCAG 1.4.11; Tom's answer
   1b to DBM checkpoint 6, 20 November 2026). Links in the main menu, which
   this rule leaves out, get the same outline further down. */
a:not(.wp-element-button):not(.wp-block-navigation-item__content):focus-visible {
	outline: 2px solid var(--wp--preset--color--accent-3);
	outline-offset: 3px;
}

:is(footer, .has-accent-3-background-color, .wp-block-cover, .final-cta) a:not(.wp-element-button):not(.wp-block-navigation-item__content):focus-visible {
	outline-color: #ffeb00;
}

/* The underline that appears on focus is yellow too, which does not show on
   white, so on light pages it is navy; the outline above marks focus. */
a:not(.wp-element-button):not(.wp-block-navigation-item__content):focus-visible {
	text-decoration-color: var(--wp--preset--color--accent-3);
}

:is(footer, .has-accent-3-background-color, .wp-block-cover, .final-cta) a:not(.wp-element-button):not(.wp-block-navigation-item__content):focus-visible {
	text-decoration-color: #ffeb00;
}

@media (prefers-reduced-motion: reduce) {
	a:not(.wp-element-button):not(.wp-block-navigation-item__content) {
		transition: none;
	}
}

/* The site-wide link rule above is navy-on-light by design, but the footer
   has a dark background, so navy text and its translucent navy underline
   both disappear against it. Overridden here to Base (white) instead —
   tied to the preset variable rather than a literal hex, since this is
   meant to track the theme's "Base" colour specifically, not just look
   white today. Hover/focus keep the existing yellow underline unchanged:
   it's already visible against a dark background, no override needed. */
footer a:not(.wp-element-button):not(.wp-block-navigation-item__content) {
	color: var(--wp--preset--color--base);
	text-decoration-color: rgba(255, 255, 255, 0.4);
}

/* The logo is an <img> pointing at an .svg file, not inline markup, so its
   internal fill colour isn't reachable from CSS at all — filter is the only
   way to recolour it short of a second white-logo file. brightness(0) first
   flattens it to solid black (regardless of its original navy), then
   invert(1) flips that to solid white. Only correct for a flat, single-
   colour logo like this one; a multi-colour logo would just go white too. */
footer .custom-logo {
	filter: brightness(0) invert(1);
}

/* ==========================================================================
   Site header: subtle full-width shadow, sticky with scroll-aware hide/show
   ========================================================================== */
/* will-change: transform was here as a paint-performance hint for the
   hide/show slide below, but it has a side effect per spec: it makes this
   element a containing block for any position: fixed descendant, exactly
   as if a transform were already applied. The mobile Navigation block's
   full-screen menu overlay is rendered as a position: fixed descendant of
   this header, so it was resolving "fixed" against the header's own box
   instead of the viewport — fixed height to the header, scrolling inside
   it, rather than covering the screen. Removed; the slide transition still
   runs fine without the hint, just without the GPU-layer promotion. */
header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
	background-color: var(--wp--preset--color--base);
	box-shadow: 0 12px 18px -14px rgba(17, 17, 17, 0.18);
	transition: transform 0.4s ease, box-shadow 0.4s ease;
}

header.wp-block-template-part.dbm-header--hidden {
	transform: translateY(-100%);
	box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
	header.wp-block-template-part {
		transition: none;
	}
}

/* When keyboard focus scrolls the page, the browser leaves this much room at
   the top, so the focused item never ends up under the sticky header (WCAG
   2.4.11; Tom's answer 1b to DBM checkpoint 6, 20 November 2026). 7.5rem is
   a little more than the header's tallest, 117px at 320px wide. This holds
   with or without header-scroll.js, which also hides the header when focus
   would land under it. */
html {
	scroll-padding-top: 7.5rem;
}

/* Remove the default block-gap spacing between the header and the block that follows it */
header.wp-block-template-part + .wp-block-group.is-layout-flow.wp-block-group-is-layout-flow {
	margin-top: 0;
}

/* ==========================================================================
   Header nav: switch to the mobile overlay/hamburger menu as soon as the
   inline nav items would otherwise wrap onto a second line, rather than
   core's fixed 600px cutoff. Measured live: with this theme's logo, nav
   items and button, wrapping starts at ~1303px — 1319px (so the switch
   happens at 1320px) gives a small safety margin for things like scrollbar
   width or minor font-metric differences.
   core/navigation's own responsive behaviour is only configurable as
   "always"/"never"/"mobile" (a fixed breakpoint); there's no attribute for
   a custom breakpoint, so this re-implements its (min-width:600px) switch
   at our own breakpoint instead — undoing core's "show inline nav, hide
   toggle button" rule for the 600–1319px range by restoring each element's
   own pre-breakpoint (true mobile) values, copied directly from
   wp-includes/blocks/navigation/style.min.css rather than guessed:
   .wp-block-navigation__responsive-container's un-overridden base rule is
   `display:none; position:fixed; ...`, and the toggle button's is the
   browser default for a <button> with no display set (computed: flex, via
   the same stylesheet's shared button reset). ========================================================================== */
@media (min-width: 600px) and (max-width: 1319px) {
	.wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
		position: fixed;
		width: auto;
	}

	.wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}
}

/* Whenever the toggle button is showing (any width where the above applies,
   including core's own sub-600px mobile range), move it to sit after the
   "Request a mentor" button instead of its natural position between the
   logo and that button. Nav and Buttons are sibling flex items of the same
   header row (not of each other), so the reorder targets the group that
   wraps the navigation block specifically — :has() rather than a new class,
   since neither block exposes one of its own here. */
@media (max-width: 1319px) {
	header.wp-block-template-part .wp-block-group:has(> .wp-block-navigation) {
		order: 1;
	}

	/* Without this, the row's three items (logo, button, toggle) are spread
	   out by the header's own space-between, leaving the button floating in
	   the middle rather than next to the toggle it's now adjacent to in
	   visual order. auto absorbs all the free space on this one side, so it
	   collapses to nothing between button and toggle (still just their
	   normal gap) while everything between logo and button gets pushed
	   there instead — logo stays pinned left, button+toggle move as a pair
	   to sit together on the right. */
	header.wp-block-template-part .wp-block-buttons {
		margin-inline-start: auto;
	}
}

/* Phones: the header's "Request a mentor" button kept its desktop 36px side
   padding, leaving it so little room that the parent theme's break-word
   split it mid-word over four lines at 320px (Tom's decision "5a", 20
   November 2026). Below 600px it has 1rem padding, breaks only between
   words, and the logo is a little smaller, so it fits on one line from
   360px; at 320px it takes two balanced lines. */
@media (max-width: 599px) {
	header.wp-block-template-part .wp-block-button__link.wp-element-button {
		padding-inline: 1rem;
		word-break: normal;
		overflow-wrap: normal;
		text-wrap: balance;
	}

	/* The logo as tall as the button on one line, 55px (Tom's decision of 20
	   November 2026: "Increase the size of the Dorset Business Mentors logo to
	   the same height as the Request a Mentor button"; answer 2a to DBM
	   checkpoint 8). Fixed rather than matched, so at 320px, where the
	   button takes two lines, the logo stays 55px and the button keeps room.
	   88px wide before. */
	header.wp-block-template-part .wp-block-site-logo img {
		width: auto;
		height: 55px;
	}
}

@media (min-width: 360px) and (max-width: 599px) {
	header.wp-block-template-part .wp-block-button__link.wp-element-button {
		white-space: nowrap;
	}
}

/* From 1320px, where the inline menu shows, its five items sat 50px apart
   and needed about 854px, more than the roughly 781px beside the logo and
   button, so the menu wrapped onto two rows (and the button onto two lines)
   up to about 1450px. A 1.75rem gap fits them on one row with the text and
   the 44px link heights unchanged (Tom's answer to DBM checkpoint 2,
   question 1, 20 November 2026). */
@media (min-width: 1320px) {
	header.wp-block-template-part .wp-block-navigation .wp-block-navigation__container {
		gap: 1.75rem;
	}
}

/* The menu's open and close buttons were 24px squares; 44px is the site's
   target size (CORE-A11Y-02; Tom's decision "7a", 20 November 2026). The
   padding grows the tap area and the matching negative margin keeps the icon
   and the header row where they were. The doubled classes beat the
   Navigation block's own margin: 0 on these buttons. */
.wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close.wp-block-navigation__responsive-container-close {
	box-sizing: content-box;
	padding: 10px;
	margin: -10px;
}

/* ==========================================================================
   Navigation: underline draws in on hover/focus, and stays shown for the
   current page. The suggested selectors (.nav-link, .is-active) don't exist
   in this markup — the Navigation block renders links as
   .wp-block-navigation-item__content, with the active state on the parent
   <li> as .current-menu-item.
   ========================================================================== */
.wp-block-navigation-item__content {
	position: relative;
	padding-bottom: 4px;
	/* overrides the theme's default underline-on-hover global style so only
	   the animated ::after underline below is shown */
	text-decoration: none;
}

/* Base draw-in mechanics shared with the Who We Help audience-grid title
   underlines below (.help-audience-grid .audience-card h3 span::after) —
   same bar shape and the same left-to-right scaleX reveal, just triggered
   differently (hover/focus here, scroll there) and in a different colour.
   The hidden (scaleX(0)) state itself is NOT shared, though: the nav one is
   always correct to start hidden, since :hover/:focus-visible/.current-menu-item
   are native CSS triggers that need no JS. The audience-grid one is only
   ever revealed by tick-animation.js adding .is-visible, so starting it
   hidden unconditionally would leave it permanently invisible wherever that
   script doesn't run — see the js-scroll-reveal gate below. */
.wp-block-navigation-item__content::after,
.help-audience-grid .audience-card h3 span::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 2px;
	transform-origin: left;
	transition: transform 0.25s ease;
}

.wp-block-navigation-item__content::after {
	background: #b4d3d9;
	transform: scaleX(0);
}

/* :where() wraps the gate so it contributes zero specificity — this rule's
   specificity (and so its relationship to the .is-visible reveal rule
   below) is identical to what it'd be without the gate at all. Without
   :where() here, the extra html/class/pseudo-element weight would make this
   hidden-state rule outrank the reveal rule once both .js-scroll-reveal and
   .is-visible are true at once (the normal case once revealed), permanently
   re-hiding it the moment JS adds .is-visible instead of revealing it. */
:where(html.js-scroll-reveal) .help-audience-grid .audience-card h3 span::after {
	transform: scaleX(0);
}

.wp-block-navigation-item__content:hover::after,
.wp-block-navigation-item__content:focus-visible::after,
.current-menu-item > .wp-block-navigation-item__content::after,
.current-menu-ancestor > .wp-block-navigation-item__content::after,
.help-audience-grid .audience-card h3 span.is-visible::after {
	transform: scaleX(1);
}

/* Active item keeps its own colour even when also hovered — this rule sits
   after the hover rule above and shares its specificity, so it wins on the
   background property for that overlap while leaving hover's transform in
   full effect. On a post, the section it belongs to (current-menu-ancestor,
   set by dbm_menu_section_of_post() in functions.php) is underlined the same
   way (Tom's decision of 20 November 2026). */
.current-menu-item > .wp-block-navigation-item__content::after,
.current-menu-ancestor > .wp-block-navigation-item__content::after {
	background: #203748;
}

/* Footer navigation (class `footer-nav` on both Navigation blocks in the Main
   Footer): plain text links matching the footer email link, instead of the
   main menu's animated bar. These repeat the site-wide link rule's values
   because that rule excludes .wp-block-navigation-item__content. Removing the
   ::after bar also drops the current-page underline; the main menu keeps both. */
.footer-nav .wp-block-navigation-item__content {
	color: var(--wp--preset--color--base);
	text-decoration: underline;
	text-decoration-color: rgba(255, 255, 255, 0.4);
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
	transition: text-decoration-color 0.2s ease, text-decoration-thickness 0.2s ease;
}

.footer-nav .wp-block-navigation-item__content:hover,
.footer-nav .wp-block-navigation-item__content:focus-visible {
	text-decoration-color: #ffeb00;
	text-decoration-thickness: 2px;
}

/* The doubled class beats the parent theme's 4px offset on navigation links. */
.footer-nav.footer-nav .wp-block-navigation-item__content:focus-visible {
	outline: 2px solid #ffeb00;
	outline-offset: 3px;
}

.footer-nav .wp-block-navigation-item__content::after {
	content: none;
}

/* The main menu's links, inline and in the phone menu, both on white: a navy
   focus outline, as for the page's other links (WCAG 1.4.11; answer 1b to
   DBM checkpoint 6). The footer's own rule above, with more classes, keeps
   its yellow. */
.wp-block-navigation-item__content.wp-block-navigation-item__content:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent-3);
	outline-offset: 3px;
}

/* 44px tall links (CORE-A11Y-02; Tom's decision "8a", 20 November 2026). Each
   link's padding grows its tap area and the matching negative margin keeps
   the gaps between items as they were. In the main menu (inline and in the
   phone overlay) the underline bar moves up by the same amount, so it still
   sits 4px under the words. */
.wp-block-navigation-item__content.wp-block-navigation-item__content {
	padding-block: 11px 14px;
	margin-block: -11px -10px;
}

.wp-block-navigation-item__content::after {
	bottom: 10px;
}

/* In the phone overlay the Navigation block sets the links' padding to 0
   with a long selector, so this one repeats it to win. There the words have
   no 4px under them, so the padding is even. */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content.wp-block-navigation-item__content {
	padding-block: 11px;
	margin-block: -11px;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content::after {
	bottom: 11px;
}

/* The footer lists' links were 42px apart, so reaching 44px without the tap
   areas overlapping opens each gap by about 2px. Measured at 43.5px tall on
   20 November, so the padding grew by 0.25px (and the margin with it, so the
   gaps stay as they were). */
.footer-nav .wp-block-navigation-item__content.wp-block-navigation-item__content {
	padding-block: 10.75px;
	margin-block: -9.5px;
}

/* The copyright on its own line, and the Privacy Policy and Accessibility
   Statement links side by side on the line below, instead of all three
   squeezed into one row (Tom's answer 4a to DBM checkpoint 8, 20 November
   2026, on phones; then "I'd like the 4a layout at every width too").
   Classes in the Main Footer part: `footer-legal` on the Group holding the
   three, `footer-copyright` on the copyright paragraph. The 0.75rem between
   rows leaves the links' 44px tap areas (below) clear of the copyright line.
   The links never break inside their own text. The "Website by" credit stays
   beside the Group, in its row. */
.footer-legal.footer-legal {
	flex-wrap: wrap;
	column-gap: 1.5rem;
	row-gap: 0.75rem;
}

.footer-legal > .footer-copyright {
	flex-basis: 100%;
}

.footer-legal > :not(.footer-copyright) {
	white-space: nowrap;
}

/* The footer's email, legal and credit links sit in paragraphs. They are
   inline, so vertical padding grows the tap area without moving any text. */
footer.wp-block-template-part p a:not(.wp-element-button) {
	padding-block: 11px;
}

@media (prefers-reduced-motion: reduce) {
	.wp-block-navigation-item__content::after,
	.footer-nav .wp-block-navigation-item__content,
	.help-audience-grid .audience-card h3 span::after {
		transition: none;
	}

	/* The nav underline only ever shows on hover/focus, so transition:none
	   above is enough — it still waits for that trigger, just without
	   animating. The audience-grid one is scroll-triggered on page load, so
	   it also needs its end state forced here, otherwise it would stay
	   invisible until the IntersectionObserver in tick-animation.js fires. */
	.help-audience-grid .audience-card h3 span::after {
		transform: scaleX(1);
	}
}

/* ==========================================================================
   Hero curve: transparent corner cut on the bottom-right of the hero block,
   revealing whatever sits behind .hero-curve rather than painting over it
   ========================================================================== */
.hero-curve {
	mask-image: linear-gradient(#fff, #fff), url("assets/hero-curve.svg?v=2");
	mask-repeat: no-repeat, no-repeat;
	/* the curve layer is nudged 3px past the true corner so it fully overlaps
	   the base layer's edge, avoiding a sub-pixel seam between the two */
	mask-position: 0 0, calc(100% + 3px) calc(100% + 3px);
	mask-size: 100% 100%, calc(33.333% + 3px) 70%;
	mask-composite: subtract, add;
}

/* ==========================================================================
   Hero background curves: decorative graphic anchored from the top-centre
   of the hero block out to the right edge of the viewport, sitting behind
   .hero-curve so it's only visible through that block's masked corner
   ========================================================================== */
/* overflow: hidden (not visible) so the ::before graphic's excess height on
   wide screens clips at .hero-full-width's own padding-box edge instead of
   spilling past the bottom border. This also means the graphic can go back
   to its full, uncapped width (reaching this element's own right edge,
   which is already the true screen edge — see ::before below) without
   reintroducing that overlap, since anything taller than the box is simply
   never painted rather than needing a hand-calculated width ceiling. The
   border itself is unaffected either way: borders paint outside the
   padding-box, so overflow clipping on this element never touches it. */
.hero-full-width, .internal-hero {
	position: relative;
	overflow: hidden;
	border-bottom: 10px solid #ffeb00;
}

/* .internal-hero only ever wraps a single Cover block, with no height of its
   own beyond that child's — so the min-height belongs on the cover itself,
   not the wrapping group, otherwise a short cover would leave dead space
   below it rather than growing. The cover's own layout is flex with
   align-items/justify-content: center (confirmed live), so content stays
   vertically centred as this stretches it rather than needing any extra
   centring rule here. */
.internal-hero .wp-block-cover {
	min-height: 40vh;
}

/* ==========================================================================
   Internal hero: navy-to-transparent gradient over the cover's image/dim
   layers, under its text content.
   Getting .wp-block-cover__inner-container (text/buttons) to stay on top of
   the new ::after gradient needs !important: WordPress core ships its own
   rule for covers that have a real image (ours does) —
   body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(
   .wp-block-cover__background + .wp-block-cover__inner-container))
   .wp-block-cover__inner-container { z-index: 1; }
   — which only applies when an <img> breaks the adjacency between the dim
   overlay span and inner-container (exactly our case), and its specificity
   (6 classes deep via the :not()/:has() nesting) vastly outweighs a plain
   two-class selector, so z-index:2 alone is silently discarded without it. */
.internal-hero .wp-block-cover::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(to right, var(--wp--preset--color--accent-3) 0%, transparent 50%);
	pointer-events: none;
}

.internal-hero .wp-block-cover__inner-container {
	position: relative;
	z-index: 2 !important;
}

/* Internal page headers' navy overlay at 90%, whatever the Cover block saved
   (the Hero pattern and the Meet our mentors template save 80%). With a pale
   photo behind it, white text on 80% navy is 6.6:1; on 90% it is 9.1:1, so it
   meets the site's 7:1 rule (CORE-A11Y-02; Tom's decision "H", 19 November
   2026). Core sets the saved opacity with four classes, so this needs five. */
.internal-hero.internal-hero .wp-block-cover .wp-block-cover__background.wp-block-cover__background {
	opacity: 0.9;
}

.hero-full-width::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	width: calc(100vw - 50%);
	aspect-ratio: 1849.9927 / 888.76361;
	background-image: url("assets/hero-background-curves.svg?v=10");
	background-repeat: no-repeat;
	background-position: top left;
	background-size: contain;
	pointer-events: none;
	z-index: 0;
}

/* ==========================================================================
   Migrated from Appearance > Customize > Additional CSS
   ========================================================================== */

/* Buttons: yellow pill with navy text, raising up-right on hover to reveal
   a light-blue "imprint" behind it, swapping to navy background / white text.

   Adjustments from the version supplied:
   - Colours swapped to the current palette (#EDFF00 -> #ffeb00,
     #203748 -> #104c5b) and lowercased #B4D3D9 for consistency.
   - border-radius hardcoded to 40px (the theme's actual button radius,
     confirmed live) rather than the placeholder 999px — visually identical
     here since 40px already exceeds half the button's height, but correct
     if a smaller/shorter button ever uses this class.
   - The hover hex codes for background/text colour were missing from the
     supplied snippet (it only handled the raised imprint, not the
     navy/white colour swap) — added below, plus matching transitions.
   - `.wp-block-buttons > .wp-block-button` needs display: inline-flex, not
     the block default: the wrapper is inline-block against its single
     inline-block link, which reserves ~10px of baseline-driven phantom
     space below the link — inline-flex removes that gap (so the imprint
     lines up exactly with the visible pill) while keeping the wrapper's
     original shrink-to-content width (plain `flex` stretches it full width
     and breaks the button row — tested and reverted). This overrides a
     more specific existing global-styles rule, hence matching its
     specificity rather than using the plain .wp-block-button class alone. */
.wp-block-buttons > .wp-block-button {
	display: inline-flex;
}

.wp-block-button {
	position: relative;
}

.wp-block-button::before {
	content: "";
	position: absolute;
	inset: 0;
	background: #b4d3d9;
	border-radius: 40px;
	z-index: 0;
}

.wp-block-button__link.wp-element-button {
	position: relative;
	z-index: 1;
	background: #ffeb00;
	color: #104c5b;
	border-radius: 40px;
	transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

/* The hover half of each button effect applies only on devices that can
   hover, so a tapped button on a phone does not stay raised until the next
   tap elsewhere; keyboard focus keeps the effect everywhere (Tom's decision
   "14a", 20 November 2026). */
.wp-block-button:focus-within .wp-block-button__link.wp-element-button {
	transform: translate(6px, -6px);
	background: #104c5b;
	color: #FFFFFF;
}

/* A focus ring round every button, as well as the colour change and raise
   above, so keyboard focus meets Focus Appearance (WCAG 2.4.13, AAA; Tom's
   answer 1b to DBM checkpoint 6, 20 November 2026). WordPress's own ring was
   near-white, which did not show on white. Navy on light backgrounds, 12.3:1
   on white; the site's yellow on the dark ones, 10.1:1 on navy. */
.wp-block-button__link.wp-element-button.wp-element-button:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent-3);
	outline-offset: 3px;
}

:is(footer, .has-accent-3-background-color, .wp-block-cover, .final-cta) .wp-block-button__link.wp-element-button.wp-element-button:focus-visible {
	outline-color: #ffeb00;
}

/* High contrast (forced colours) mode drops background colours, so the
   filled buttons lost their shape and read as loose words. A border in the
   system's button-text colour keeps each one a visible button (Tom's
   decision of 20 November 2026, after the accessibility check). The outline
   buttons already have a border, which the system recolours. !important
   because the footer sign-up and contact form buttons set border: 0 with
   longer selectors; this rule only applies in high contrast mode. */
@media (forced-colors: active) {
	.wp-block-button__link.wp-element-button,
	.wp-block-search__button {
		border: 2px solid ButtonText !important;
	}
}

@media (hover: hover) {
	.wp-block-button:hover .wp-block-button__link.wp-element-button {
		transform: translate(6px, -6px);
		background: #104c5b;
		color: #FFFFFF;
	}
}

/* Outline-style buttons (WP's built-in "Outline" block style, .is-style-outline)
   get the .final-cta "second CTA" treatment site-wide: white border, white
   text, transparent fill at rest; on hover it fills white with navy text
   and raises (inherited from the general rule above) to reveal a yellow
   imprint where it was sitting.

   The imprint can't just be "behind" the link the way the main yellow
   button's is: with a genuinely transparent resting background, a solid
   ::before sitting right behind it would show straight through immediately,
   filling the outline solid yellow at rest instead of leaving it see-through.
   So instead the imprint fades in via opacity, in sync with the raise, only
   on hover/focus — keeping true transparency at rest (so this still looks
   right on any background, not just .final-cta's navy) while still reading
   as "revealed underneath as it lifts away". Verified live via computed
   styles for rest and hover states.

   Placed before .final-cta in the file so that section's own (otherwise
   equal-specificity) rules keep winning the tie for its buttons via source
   order. */
.wp-block-button.is-style-outline::before {
	content: "";
	background: #ffeb00;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.wp-block-button.is-style-outline .wp-block-button__link.wp-element-button {
	background: transparent;
	border: 2px solid #FFFFFF;
	color: #FFFFFF;
}

.wp-block-button.is-style-outline:focus-within .wp-block-button__link.wp-element-button {
	background: #FFFFFF;
	color: #104c5b;
}

.wp-block-button.is-style-outline:focus-within::before {
	opacity: 1;
}

@media (hover: hover) {
	.wp-block-button.is-style-outline:hover .wp-block-button__link.wp-element-button {
		background: #FFFFFF;
		color: #104c5b;
	}

	.wp-block-button.is-style-outline:hover::before {
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wp-block-button__link.wp-element-button {
		transition: none;
	}
	.wp-block-button:hover .wp-block-button__link.wp-element-button,
	.wp-block-button:focus-within .wp-block-button__link.wp-element-button {
		transform: none;
	}
	.wp-block-button.is-style-outline::before {
		transition: none;
	}
}

/* The Search block's button (search results and "page not found") is not in
   a Buttons block, so the focus change above never reached it, and its own
   near-white ring did not show on white: no visible focus at all (WCAG 2.4.7;
   Tom's answer 1b to DBM checkpoint 6, 20 November 2026). On focus it turns
   navy with white text, like the other buttons, with a navy outline outside
   it. The doubled classes beat the gradient the site's styles give it. */
.wp-block-search__button.wp-block-search__button:focus-visible {
	background: #104c5b;
	color: #FFFFFF;
	outline: 2px solid var(--wp--preset--color--accent-3);
	outline-offset: 3px;
}

/* The search box's edge was black at 20% on white, 1.6:1, too faint to see
   where to type; a field's edge needs 3:1 (WCAG 1.4.11; answer 1b to DBM
   checkpoint 6). Navy, as on the contact form's fields, is 12.3:1. */
.wp-block-search__input.wp-block-search__input {
	border-color: var(--wp--preset--color--accent-3);
}

.fact-block {
    border-left: 4px solid #ffeb00;
}

/* Decision Triggers */

.decision-triggers > * {
	position: relative;
	background: #203748;
	border-left: 4px solid #ffeb00;
	border-radius: 6px;
	padding: 1.5rem 1.5rem 1.5rem 1.75rem;
	box-shadow: 0 1px 3px rgba(16, 76, 91, 0.08);
	transition: box-shadow 0.25s ease;
}

.decision-triggers > *:hover {
	box-shadow: 0 8px 20px rgba(16, 76, 91, 0.12);
}

/* Phones: one card per row. Two across left 130 to 177px columns, so the
   headings ran out of their cards and words broke mid-word (Tom's decision
   "6a", 20 November 2026). The doubled class beats the grid columns
   WordPress generates for the Group. */
@media (max-width: 599px) {
	.decision-triggers.decision-triggers {
		grid-template-columns: minmax(0, 1fr);
	}
}

.decision-triggers p {
	margin: 0;
	color: #FFFFFF;
	font-weight: 500;
	line-height: 1.4;
}

.decision-triggers h3 {
	color: #FFFFFF;
	font-size: 25px;
	font-weight: 600;
	padding-bottom: 20px;
}

@media (prefers-reduced-motion: reduce) {
	.decision-triggers > * {
		transition: none;
	}
}

/* Audience Grid */

.mentoring-audience-grid {
	gap: 0.75rem;
}

/* Phones: the homepage's "Who mentoring helps" grid goes to one column. Its
   four saved columns were about 35px wide at 375px, too narrow to read (Tom's
   decision "G", 19 November 2026). The doubled class beats the grid layout
   WordPress generates. */
@media (max-width: 599px) {
	.mentoring-audience-grid.mentoring-audience-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--wp--preset--spacing--50);
	}
}

/* Tablets: two columns from 600 to 1023px, where four were about 87px wide
   (Tom's decision "5a", 19 November 2026). */
@media (min-width: 600px) and (max-width: 1023px) {
	.mentoring-audience-grid.mentoring-audience-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--wp--preset--spacing--50);
	}
}

/* Phones: the homepage's outer Group (class `home-sections`, on the Group
   round Post Content in the Front Page template) and the navy
   "Who mentoring helps" panel (class `audience-panel`) use 1.25rem side
   padding instead of their saved 50px each, which left the grid about 105px
   wide at 320px (Tom's decision "5b"). The saved padding is an inline style,
   hence !important. */
@media (max-width: 599px) {
	.home-sections,
	.audience-panel {
		padding-left: 1.25rem !important;
		padding-right: 1.25rem !important;
	}
}

/* Who We Help's version of this grid has 5 cards instead of the homepage's
   4, so the odd one out would otherwise sit alone under the first column.
   :nth-child(odd) keeps this self-limiting to only the case where the total
   really is odd — it stops applying on its own if a 6th card is ever added. */
.help-audience-grid > :last-child:nth-child(odd) {
	grid-column: 1 / -1;
	max-width: calc(50% - 0.375rem);
	margin-inline: auto;
}

/* Yellow accent underline beneath each card's title, scoped to this page's
   grid only (not the shared .audience-card h3 rule below, which the
   homepage's 4-card version also uses). Targets the <span> wrapping each
   title's text (added in the editor specifically for this) rather than the
   h3 itself, so the bar's width tracks the actual rendered text width
   instead of the h3's full flex-centred box. The bar itself (shape, draw-in
   mechanics, reduced-motion handling) is defined once, shared with the nav
   underline, in the Navigation section near the top of this file — only the
   colour and the scroll-triggered reveal are set here. Draw-in is triggered
   by tick-animation.js adding .is-visible via a staggered IntersectionObserver
   (reused from the tick-list's own reveal, threshold 0.3 / 100ms stagger). */
.help-audience-grid .audience-card h3 span {
	position: relative;
	display: inline-block;
	padding-bottom: 0.25rem;
}

.help-audience-grid .audience-card h3 span::after {
	background: #ffeb00;
}

.audience-card {
	text-align: center;
	padding: 0 1.5rem;
}

/* The growing tree graphics, as true circles: a square box, the image
   cropped to fill it, fully rounded. The class audience-icon is on each
   Image block. Before 1.5.70 the padding round a non-square image made an
   oval. */
.audience-icon {
    box-sizing: border-box;
    width: 130px;
    max-width: 100%;
    aspect-ratio: 1;
    margin-inline: auto;
    margin-bottom: 2em;
    overflow: hidden;
    background: #fff;
    border-radius: 50%;
}

.audience-card .audience-icon img {
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
}

.audience-card img {
	width: 110px;
	height: 110px;
	object-fit: contain;
	margin: 0 auto 1.25rem;
	display: block;
}

.audience-card h3 {
	margin: 0 0 0.5rem;
	font-weight: 600;
	/* reserves space for two lines so the paragraph below always starts at
	   the same height, whether the title wraps to one line or two */
	min-height: calc(1.125em * 2);
	display: flex;
	align-items: center;
	justify-content: center;
}

.audience-card p {
	margin: 0;
	line-height: 1.5;
}

/* Why blocks */

.why-dbm-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #203748;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
  margin-bottom: 14px;
}

.trust-point h3 {
	position: relative;
	color: #104c5b;
	font-weight: 600;
	padding-top: 1rem;
	margin: 0 0 0.5rem;
}

.trust-point p {
	opacity: 0.85;
	line-height: 1.5;
}

/* Checklist */

.tick-list {
	list-style: none;
	padding: 0;
	margin: 1.5rem 0 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem 2rem;
}

/* Same navy-square/white-tick visual as the SVG-markup version, but built
   entirely on the existing plain <li> elements — no content edit needed.

   The badge (::before) and the tick mark (::after) are two separate layers
   rather than one: the tick is a data-URI SVG background-image (crisp at
   any resolution, which is what actually fixes the original fuzziness —
   real inline <svg> markup was never the part doing that work) clipped
   with clip-path so it can "wipe in" left-to-right on scroll.

   This is a deliberate downgrade from a true stroke-draw animation:
   stroke-dashoffset only animates a live SVG <path> in the DOM, and a
   background-image SVG is rendered as a flat image, not a styleable
   element, so that technique isn't available without adding real markup.
   A clip-path reveal is the closest equivalent achievable purely in CSS. */
.tick-list li {
	position: relative;
	padding-left: 2.5rem;
	color: #203748;
	line-height: 1.5;
}

.tick-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.1em;
	width: 24px;
	height: 24px;
	background-color: #203748;
	border-radius: 6px;
}

.tick-list li::after {
	content: "";
	position: absolute;
	left: 0;
	top: 0.1em;
	width: 24px;
	height: 24px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5L9.5 18L20 6' fill='none' stroke='%23FFFFFF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 16px 16px;
	transition: clip-path 0.4s ease;
}

/* Starts wiped-away only once js-scroll-reveal confirms tick-animation.js is
   actually running to wipe it back in — otherwise (editor, no-JS) the tick
   simply renders fully drawn from the start, same as the reduced-motion
   fallback below already does on purpose. :where() keeps the gate itself
   out of the specificity count (see the audience-grid underline above for
   the full reasoning) so it doesn't outrank the .is-visible reveal rule
   just below once both are true at once. */
:where(html.js-scroll-reveal) .tick-list li::after {
	clip-path: inset(0 100% 0 0);
}

.tick-list li.is-visible::after {
	clip-path: inset(0 0 0 0);
}

@media (prefers-reduced-motion: reduce) {
	.tick-list li::after {
		transition: none;
		clip-path: inset(0 0 0 0);
	}
}

@media (max-width: 599px) {
	.tick-list {
		grid-template-columns: 1fr;
	}
}

/* Reasons Grid (Who We Help): overrides tick-list's column count only on
   screens wide enough to show it — inherits bullet badges, checkmark
   animation, gap and the mobile reflow above unchanged via the shared
   .tick-list class. min-width: 600px is the exact complement of the
   max-width: 599px breakpoint above, not a new cut point. */
@media (min-width: 600px) {
	.tick-list.reasons-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Meet Mentors block */

.mentors-breakout {
	position: relative;
	background: #104c5b;
	border-radius: 12px;
	text-align: center;
	overflow: hidden;
}

.mentors-breakout p {
	color: #FFFFFF;
	max-width: 560px;
	font-size: 1.15rem;
	line-height: 1.6;
	opacity: 0.92;
}

/* Opts this button out of the site-wide raised-imprint treatment above:
   its own hover rule (background only, no color/transform) had lower
   specificity than the general .wp-block-button:hover rule, so on hover it
   was picking up the general rule's navy background + white text + raise
   instead of its own intended white background — explicit resets below,
   with specificity high enough (.mentors-breakout .wp-block-button:hover
   .wp-block-button__link.wp-element-button) to win reliably. */
.mentors-breakout .wp-block-button::before {
	content: none;
}

.mentors-breakout .wp-block-button__link.wp-element-button {
	background: #ffeb00;
	color: #104c5b;
	font-weight: 600;
	margin-top: 1rem;
}

.mentors-breakout .wp-block-button:focus-within .wp-block-button__link.wp-element-button {
	transform: none;
	background: #FFFFFF;
	color: #104c5b;
}

@media (hover: hover) {
	.mentors-breakout .wp-block-button:hover .wp-block-button__link.wp-element-button {
		transform: none;
		background: #FFFFFF;
		color: #104c5b;
	}
}

/* FAQs */

.wp-block-accordion-item.is-layout-flow.wp-block-accordion-item-is-layout-flow {
	margin-block-start: 0;
}

/* Divider between items */
.wp-block-accordion-item {
	border-top: 1px solid rgba(16, 76, 91, 0.12);
}

.wp-block-accordion-item:last-child {
	border-bottom: 1px solid rgba(16, 76, 91, 0.12);
}

/* Question row (the toggle button) */
.wp-block-accordion-heading__toggle {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #FFFFFF;
	color: #104c5b;
	font-weight: 600;
	padding: 1.1rem 1rem;
	border: none;
	border-left: 4px solid transparent;
	text-align: left;
	cursor: pointer;
	transition: background 0.2s ease, border-left-color 0.2s ease;
}

.wp-block-accordion-heading__toggle:hover {
	background: #F6F7F4;
}

/* Open state, driven by aria-expanded rather than a class */
.wp-block-accordion-heading__toggle[aria-expanded="true"] {
	background: #F6F7F4;
	border-left-color: #ffeb00;
}

/* Custom +/- indicator, replacing the default "+" character. The literal
   character itself is stripped server-side (see the render_block filter in
   functions.php) so it isn't a real text node at all; font-size: 0 here is
   just a defensive fallback in case that filter doesn't run for some reason. */
.wp-block-accordion-heading__toggle-icon {
	position: relative;
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	margin-left: 1rem;
	font-size: 0;
}

.wp-block-accordion-heading__toggle-icon::before,
.wp-block-accordion-heading__toggle-icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	background: #104c5b;
	transition: transform 0.25s ease;
}

.wp-block-accordion-heading__toggle-icon::before {
	width: 14px;
	height: 2px;
	transform: translate(-50%, -50%);
}

.wp-block-accordion-heading__toggle-icon::after {
	width: 2px;
	height: 14px;
	transform: translate(-50%, -50%);
}

/* WP core's own block-library CSS separately rotates the whole icon
   wrapper 45deg on open (.wp-block-accordion-item.is-open > ...
   .wp-block-accordion-heading__toggle-icon) — that rule was still active
   underneath ours, compounding with our own bar-specific animation below
   into the confusing "/" look. Neutralised so only our own transform
   (on the individual bars) drives the visual. */
.wp-block-accordion-item.is-open > .wp-block-accordion-heading .wp-block-accordion-heading__toggle-icon {
	transform: none;
}

/* Collapses the vertical stroke to zero height when open, leaving a clean
   "-". A vertical bar scaling toward zero height never leaves vertical, so
   it can't read as diagonal at any point in the animation, unlike a
   rotation (which necessarily sweeps through in-between angles like 45deg
   on the way to 90deg). */
.wp-block-accordion-heading__toggle[aria-expanded="true"] .wp-block-accordion-heading__toggle-icon::after {
	transform: translate(-50%, -50%) scaleY(0);
}

/* Answer panel */
.wp-block-accordion-panel {
	padding: 0 1rem 1.25rem 1.25rem; /* extra left padding accounts for the 4px accent border above */
}

/* The panel keeps this padding even while closed (it's collapsed via
   height, not display:none), so the bottom padding alone was adding
   unwanted space between items. Zeroed only while [hidden] is present;
   the block's own transition: all already animates this change in sync
   with its height transition, no extra transition needed here. */
.wp-block-accordion-panel[hidden] {
	padding: 0;
}

.wp-block-accordion-panel p {
	color: #104c5b;
	opacity: 0.85;
	line-height: 1.6;
	margin: 0;
}

/* Final CTA block */

.final-cta {
	position: relative;
	background: #203748;
	border-radius: 16px;
	padding: 5rem 2rem 10rem;
	text-align: center;
	overflow: hidden;
}

.final-cta > * {
	position: relative;
	z-index: 2;
}

.final-cta h2 {
	color: #FFFFFF;
	font-size: 2.25rem;
	margin: 0 0 1rem;
}

.final-cta p {
	color: #FFFFFF;
	opacity: 0.85;
	max-width: 620px;
	margin: 0 auto 2.5rem;
	font-size: 1.15rem;
	line-height: 1.6;
}

.final-cta .wp-block-buttons {
	justify-content: center;
}

.final-cta .wp-block-button__link {
	padding: 0.9rem 2rem;
	font-weight: 600;
	font-size: 1.05rem;
}

/* First button: filled yellow */
.final-cta .wp-block-button:first-child .wp-block-button__link {
	background: #ffeb00;
	color: #104c5b;
}

@media (hover: hover) {
	.final-cta .wp-block-button:first-child .wp-block-button__link:hover {
		background: #FFFFFF;
	}
}

/* Second button: colours now come from the general .is-style-outline rule
   above (this button carries that class) — only sizing stays scoped here */

.final-cta::after {
	content: "";
	position: absolute;
	/* bled 4px past .final-cta's own edges (rather than sitting flush at
	   0/0/0 with a matching border-radius) so .final-cta's own
	   overflow: hidden + border-radius does all the corner clipping alone.
	   Two independently-rounded corners — this element's own border-radius
	   and the parent's clip — don't always rasterize in perfect alignment,
	   which was showing as a faint seam along the bottom edge; bleeding
	   past the parent's boundary means only one of them is ever visible. */
	left: -4px;
	right: -4px;
	bottom: -4px;
	height: 234px;
	/* Relative to this stylesheet, so it resolves on any host and in any
	   install folder (rehearsal copy, staging under /dbm/, the live root). */
	background: url('assets/hero-swoosh.png') no-repeat bottom right;
	background-size: cover;
	opacity: 1;
	pointer-events: none;
	z-index: 1;
}

footer {
    border-top: 10px solid #ffeb00;
}

/* Footer columns (class `footer-columns` on the Columns block in the Main
   Footer). Five columns side by side leave the Contact column too narrow
   for the email address between 782px (where the columns stop stacking)
   and 1440px, so it broke onto two lines. In that range the columns wrap,
   three to a row: logo, Explore and More on top, then Contact and the
   newsletter sharing the second row. From 1440px all five fit in one row
   with the address on one line. The column widths set in the editor are
   inline styles, and WordPress sets nowrap with !important, so both
   overrides need !important. */
@media (min-width: 782px) and (max-width: 1439px) {
	.footer-columns.footer-columns {
		flex-wrap: wrap !important;
		row-gap: var(--wp--preset--spacing--50);
	}

	.footer-columns > .wp-block-column {
		flex: 1 1 calc(33.333% - 2em) !important;
	}
}

/* Footer sign-up form (class `footer-signup` on the form, in the Custom HTML
   block in the Main Footer). Fields show their name as placeholder text; the
   labels stay in the markup, hidden visually, so screen readers still announce
   each field. The submit button takes the site's button classes, so its look
   and hover come from the button rules above. */
.footer-signup {
	font-size: var(--wp--preset--font-size--medium);
}

.footer-signup label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.footer-signup .mc-field-group {
	margin-top: 0.75rem;
}

.footer-signup .indicates-required {
	margin-top: 0.75rem;
	font-size: var(--wp--preset--font-size--small);
}

.footer-signup input:not([type="submit"]) {
	box-sizing: border-box;
	width: 100%;
	min-height: 44px;
	padding: 0.5rem 1.2rem;
	border: 0;
	border-radius: 40px;
	background: var(--wp--preset--color--base);
	color: #203748;
	font: inherit;
}

.footer-signup input::placeholder {
	color: #104c5b;
	opacity: 1;
}

.footer-signup input:not([type="submit"]):focus-visible {
	outline: 2px solid #ffeb00;
	outline-offset: 3px;
}

/* The block's own wrapper layout only loads on pages with a Buttons block, so
   this sets what the button rules above rely on. */
.footer-signup .wp-block-button {
	display: inline-block;
	margin-top: 1rem;
}

.footer-signup .wp-block-button__link.wp-element-button {
	display: block;
	min-height: 44px;
	border: 0;
	font-size: inherit;
	cursor: pointer;
}

/* Phones: the buttons stack, so the swoosh at the foot of the block used to
   run behind them, and the white outline button was hard to see half on
   yellow and half on white. Room below the buttons and a shorter swoosh keep
   both buttons on navy, with the swoosh beneath them (Tom's answer 3a to DBM
   checkpoint 8, 20 November 2026). */
@media (max-width: 599px) {
	.final-cta {
		padding: 3.5rem 1.5rem 9.5rem;
	}

	.final-cta::after {
		height: 140px;
	}
	.final-cta h2 {
		font-size: 1.6rem;
	}
}

/* ==========================================================================
   Who We Help: ".staggered-timeline" — a line down the middle, with
   .timeline-step children alternating left/right of it (odd position left,
   even position right), each one lower than the last by half of the
   PRECEDING step's own rendered height. That measurement can't be done in
   CSS alone — no selector can read a sibling's rendered height — so the
   actual top/left/width values are computed and applied at runtime by
   assets/js/timeline-layout.js. This block only supplies the positioning
   context, the line itself, and the narrow-screen fallback; the real
   per-step placement lives in that script, which is also what makes this
   keep working correctly however many steps are added, with no new CSS
   needed per step.
   ========================================================================== */
.staggered-timeline {
	position: relative;
}

/* width: 2px here is the line's thickness (it's vertical, so "width" is the
   right axis for that, not "height") — matches the 2px thickness already
   shared by the nav underline and the audience-grid title underlines
   (.wp-block-navigation-item__content::after, .help-audience-grid
   .audience-card h3 span::after). Draws in top-to-bottom on the same
   scroll trigger as those title underlines (see tick-animation.js), via
   scaleY from a fixed top origin rather than duplicating their scaleX
   approach, since this bar is vertical rather than horizontal.

   display is none by default and only switched on below once
   js-timeline-layout confirms timeline-layout.js has actually positioned
   the steps either side of it — this "left: 50%" placement is meaningless
   (and runs straight through the text) when the steps are just plain
   stacked, full-width content, which is exactly their state without that
   script (no JS, or the block editor, which never runs front-end scripts). */
.staggered-timeline::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 0;
	bottom: 0;
	width: 2px;
	background: var(--wp--preset--color--accent-3);
	transform: translateX(-50%);
	transform-origin: top;
	transition: transform 0.4s ease;
	display: none;
}

/* :where() keeps this out of the specificity count, same reasoning as the
   js-scroll-reveal gates below — it only needs to flip display on, not
   compete with any other rule for this property. Scoped to the same
   min-width: 600px breakpoint the JS itself uses, so a mid-session resize
   down to the narrow fallback hides the line the same way it already did
   before this gate existed. */
@media (min-width: 600px) {
	:where(html.js-timeline-layout) .staggered-timeline::before {
		display: block;
	}
}

/* :where() keeps this gate out of the specificity count, same reasoning as
   the audience-grid underline and tick-list checkmark above — otherwise it
   would outrank the .is-visible reveal rule just below once both
   .js-scroll-reveal and .is-visible are true together (the normal case once
   revealed), permanently re-hiding the line instead of ever showing it. */
:where(html.js-scroll-reveal) .staggered-timeline::before {
	transform: translateX(-50%) scaleY(0);
}

.staggered-timeline.is-visible::before {
	transform: translateX(-50%) scaleY(1);
}

/* Regular (var:preset|spacing|50) — matches the "Regular" option in the
   native block spacing control. timeline-layout.js reads this same computed
   value at runtime to fold it into the diagonal's vertical offsets on wide
   screens, so it isn't duplicated as a separate pixel value there; on the
   narrow-screen stacked fallback it just works as an ordinary margin.
   !important is needed here: .staggered-timeline's native grid layout
   support applies its own `margin-block-end: 0 !important` to grid children
   (so `gap` is the only thing spacing them normally), which otherwise beats
   this rule outright regardless of its own specificity. */
.timeline-step:not(:last-child) {
	margin-bottom: var(--wp--preset--spacing--50) !important;
}

/* Fade + slide in on the same scroll-triggered, staggered reveal as the
   title underlines and the centre line above (see tick-animation.js) — odd
   (left) steps travel left-to-right, even (right) steps right-to-left, each
   waiting for its own turn in the stagger regardless of position/transform
   changes timeline-layout.js makes to the same element. The hidden state
   (opacity and the offset) only applies once js-scroll-reveal confirms the
   script is actually running — without it (editor, no-JS) steps simply sit
   fully visible in their normal position, same reasoning as the other
   scroll reveals above. :where() keeps the gate itself out of the
   specificity count so it doesn't disturb this rule's relationship to the
   .is-visible reveal rule below (opacity) or the ordinary same-specificity,
   source-order tiebreak it already relied on (the translateX offset). */
.timeline-step {
	transition: opacity 0.4s ease, transform 0.4s ease;
}

:where(html.js-scroll-reveal) .timeline-step {
	opacity: 0;
}

:where(html.js-scroll-reveal) .timeline-step:nth-child(odd) {
	transform: translateX(-20px);
}

:where(html.js-scroll-reveal) .timeline-step:nth-child(even) {
	transform: translateX(20px);
}

.timeline-step.is-visible {
	opacity: 1;
	transform: translateX(0);
}

/* Odd-position steps (left side) read toward the centre line — this also
   right-aligns .why-dbm-badge, since it's display: inline-flex (an
   inline-level box), which text-align controls the same as it would any
   inline content. Scoped to the same breakpoint as the two-column layout
   itself, so the narrow-screen single-column fallback stays left-aligned
   like a plain list — and gated behind js-timeline-layout for the same
   reason as the centre line above: right-aligning odd steps only makes
   sense once they're actually sitting in a left column next to it: without
   the script (no JS, or the block editor) all steps stay plain and
   left-aligned like an ordinary stacked list. */
@media (min-width: 600px) {
	:where(html.js-timeline-layout) .timeline-step:nth-child(odd) {
		text-align: right;
	}
}

@media (prefers-reduced-motion: reduce) {
	.staggered-timeline::before {
		transition: none;
		transform: translateX(-50%) scaleY(1);
	}

	.timeline-step {
		transition: none;
		opacity: 1;
		transform: translateX(0);
	}
}

/* ==========================================================================
   Meet Our Mentors: ".trait-block" — fade + slight upward move on scroll,
   same scroll-triggered, staggered reveal mechanism as the audience-grid
   title underlines and the timeline above (see tick-animation.js), sharing
   their exact trigger point (threshold/rootMargin) so it fires at the same
   point in scroll as those. The hidden state only applies once
   js-scroll-reveal confirms tick-animation.js is actually running —
   without it (editor, no-JS) these simply sit fully visible in their
   normal position, same reasoning as the other scroll reveals above.
   :where() keeps the gate out of the specificity count so it doesn't
   disturb this rule's relationship to the .is-visible reveal rule below,
   same reasoning as .timeline-step.
   ========================================================================== */
.trait-block {
	transition: opacity 0.4s ease, transform 0.4s ease;
}

:where(html.js-scroll-reveal) .trait-block {
	opacity: 0;
	transform: translateY(20px);
}

.trait-block.is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	.trait-block {
		transition: none;
		opacity: 1;
		transform: translateY(0);
	}
}

/* ==========================================================================
   ".curve-bottom" — reusable hook class: draws a soft S-shaped wave across
   the bottom edge of any block, in place of a straight edge, in whatever
   colour follows it (defaulting to white). Static, decorative only, no JS
   involved at all.

   Method: an absolutely-positioned ::after, coloured to match the next
   section, is cut to the wave shape with a CSS mask rather than an inline
   <svg> — this way the effect needs nothing beyond the one "Additional CSS
   Class" already used for every other hook class on this site (no Custom
   HTML block, no markup change). The mask is the same normalised 1000x100
   S-curve path in both known working examples of this pattern elsewhere
   (Squarespace's built-in "Wavy" divider): the left half curves up (more of
   the overlay colour shows, "rising" into the block above), the right half
   curves down (less shows, the block's own background "dips" further
   down).

   mask-image needs a -webkit- prefixed duplicate: Safari doesn't support
   the unprefixed property yet.

   padding-bottom: 6vw (!important, to beat any native block padding
   already set inline) reserves room so real content never sits inside the
   wave band — the curve's control points overshoot the nominal 0-100 band
   by ~17% at each end (per the source path), so without this the wave's
   own upward crest could clip into the last line of text/a button.

   overflow: hidden plus squaring off the bottom corners (!important, same
   inline-beating reason) is deliberate: a rounded bottom corner and a wavy
   bottom edge are two different ideas of what the bottom boundary looks
   like, so this treats the wave as replacing the corner rather than
   competing with it.

   .curve-bottom > * lifts the real content above the overlay (z-index) —
   simpler than wrapping it, since (unlike a Cover block) there's no
   existing inner-container element to target here. */
.curve-bottom {
	position: relative;
	overflow: hidden;
	padding-bottom: 6vw !important;
	border-bottom-left-radius: 0 !important;
	border-bottom-right-radius: 0 !important;
}

.curve-bottom::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 6vw;
	background-color: var(--curve-bottom-color, #ffffff);
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M0,50 C250,-16.7 250,-16.7 500,50 S750,116.7 1000,50 L1000,100 L0,100 Z' fill='white'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M0,50 C250,-16.7 250,-16.7 500,50 S750,116.7 1000,50 L1000,100 L0,100 Z' fill='white'/%3E%3C/svg%3E");
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	pointer-events: none;
	z-index: 1;
}

.curve-bottom > * {
	position: relative;
	z-index: 2;
}

/* ==========================================================================
   ".small-curve-bottom" — same mechanism and reasoning as .curve-bottom
   above, for a wave about halfway between that full depth and a flat edge:
   band height 4.5vw (vs. 6vw) and control points at 10/90 (vs. -16.7/116.7),
   so the line swings noticeably less far from the midline but still reads
   as a clear curve rather than .curve-bottom's barely-there alternative.
   ========================================================================== */
.small-curve-bottom {
	position: relative;
	overflow: hidden;
	padding-bottom: 4.5vw !important;
	border-bottom-left-radius: 0 !important;
	border-bottom-right-radius: 0 !important;
}

.small-curve-bottom::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 4.5vw;
	background-color: var(--curve-bottom-color, #ffffff);
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M0,50 C250,10 250,10 500,50 S750,90 1000,50 L1000,100 L0,100 Z' fill='white'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M0,50 C250,10 250,10 500,50 S750,90 1000,50 L1000,100 L0,100 Z' fill='white'/%3E%3C/svg%3E");
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	pointer-events: none;
	z-index: 1;
}

.small-curve-bottom > * {
	position: relative;
	z-index: 2;
}

/* ==========================================================================
   ".fact-block" — fade + slight right-to-left move on scroll, same
   scroll-triggered reveal mechanism and trigger point (threshold/
   rootMargin) as .trait-block/.timeline-step above (see tick-animation.js).
   When several sit side by side in a grid (e.g. .stat-strip), standard
   grid auto-placement already puts them in the same left-to-right order in
   the DOM as on screen, and staggerReveal always staggers by DOM order
   (see tick-animation.js) — so reusing it here, unchanged, already reveals
   them one at a time left to right with no extra logic needed. The hidden
   state only applies once js-scroll-reveal confirms tick-animation.js is
   actually running — without it (editor, no-JS) these simply sit fully
   visible in their normal position, same reasoning as the other scroll
   reveals above.
   ========================================================================== */
.fact-block {
	transition: opacity 0.4s ease, transform 0.4s ease;
}

:where(html.js-scroll-reveal) .fact-block {
	opacity: 0;
	transform: translateX(20px);
}

.fact-block.is-visible {
	opacity: 1;
	transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
	.fact-block {
		transition: none;
		opacity: 1;
		transform: translateX(0);
	}
}

/* ==========================================================================
   Perspectives: no extra space under the Featured item. Two margins sat on
   top of the section's own bottom padding: WordPress's default margin under
   a Columns block, and the block gap above the next full-width section.
   Classes set in the Perspectives template: .featured-post on the Columns
   block, .feed-section on the grey full-width Group.
   ========================================================================== */
.featured-post {
	margin-bottom: 0;
}

.feed-section {
	margin-top: 0;
}

/* ==========================================================================
   Query loop feed cards (Perspectives, Success stories): each card is as tall
   as the tallest on its row. The grid already stretches every list item to the
   row's height; .feed-card fills that.
   Classes set on the blocks in the editor: .feed-card on the outer Group,
   .feed-card-body on the inner Group, .feed-card-title on the Post Title.
   ========================================================================== */
.feed-card {
	height: 100%;
}

/* One link per card, named by the post's title, so a screen reader hears one
   meaningful link rather than three (WCAG 2.4.9). .feed-card-title is set on
   the Post Title block; its link's ::after stretches over the whole card, so a
   click anywhere on the card opens the post. */
.feed-card {
	position: relative;
}

/* WordPress makes constrained Groups position: relative, which would stop the
   stretched link at this inner Group instead of the whole card. */
.feed-card-body {
	position: static;
}

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

/* The focus outline goes round the card, on the stretched ::after. The site's
   yellow link outline is too faint on a white card, and repeating that rule's
   :not()s is what it takes to switch it off here. It sits inside the card
   because cards can touch the window's edge, where an outer outline is cut
   off. Inside, it can cross the photo, so a white (base) ring beside the navy
   (accent-3) keeps it at 12:1 whatever the image's colours. */
.feed-card-title a:not(.wp-element-button):not(.wp-block-navigation-item__content):focus {
	outline: none;
}

.feed-card-title a:focus-visible::after {
	outline: 3px solid var(--wp--preset--color--accent-3);
	outline-offset: -3px;
	box-shadow: inset 0 0 0 5px var(--wp--preset--color--base);
}

/* ==========================================================================
   Feed pagination (Perspectives, Success stories): the numbers stay centred
   whether or not a previous or next link is showing. Three fixed columns do
   that: WordPress leaves a missing link out of the page altogether, which
   would otherwise move the numbers.
   Classes set on the blocks in the editor: .feed-pagination on Pagination,
   .feed-pagination-prev, -numbers and -next on its three inner blocks.
   ========================================================================== */
/* The doubled class beats WordPress's body .is-layout-flex { display: flex }. */
.feed-pagination.feed-pagination {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
}

.feed-pagination-prev {
	grid-area: 1 / 1;
	justify-self: start;
}

.feed-pagination-numbers {
	grid-area: 1 / 2;
}

.feed-pagination-next {
	grid-area: 1 / 3;
	justify-self: end;
}

/* 44px targets (CORE-A11Y-02). WordPress generates the number links, so they
   cannot take a class of their own. */
.feed-pagination-prev,
.feed-pagination-next,
.feed-pagination-numbers > * {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
}

/* The same 44px targets on the search, archive and index templates, whose
   pagination comes from the parent theme's query pattern and so carries no
   class of its own. Class `listing-main` on each template's main Group (Tom's
   decision "11a", 20 November 2026). */
.listing-main .wp-block-query-pagination-previous,
.listing-main .wp-block-query-pagination-next,
.listing-main .wp-block-query-pagination-numbers > * {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
}

/* Perspectives only. WordPress outputs no pagination when there is only one
   page, so this leaves no empty space then. */
.feed-section .feed-pagination {
	margin-top: var(--wp--preset--spacing--50);
}

/* Where the pagination links on Perspectives and the homepage land (see
   functions.php). The margin clears the sticky header, which stays showing
   after the jump. */
.feed-section,
#home-feed {
	scroll-margin-top: 7rem;
}

/* The homepage's side padding leaves the feed too narrow for one row on phones,
   so the numbers take their own row above the previous and next links. */
@media (max-width: 599px) {
	/* The feed drops its own side padding on phones, so the cards are not
	   squeezed between two paddings (Tom's decision "G"). The padding is an
	   inline style saved on the Group, hence !important. */
	#home-feed {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	#home-feed .feed-pagination.feed-pagination {
		grid-template-columns: 1fr 1fr;
	}

	#home-feed .feed-pagination-numbers {
		grid-area: 1 / 1 / auto / span 2;
		justify-self: center;
	}

	#home-feed .feed-pagination-prev {
		grid-area: 2 / 1;
	}

	#home-feed .feed-pagination-next {
		grid-area: 2 / 2;
	}
}

/* The same gap between cards on both feeds, whatever each Post Template has
   saved. The doubled class beats the gap WordPress generates from that setting. */
.feed-cards.feed-cards {
	gap: var(--wp--style--block-gap);
}

/* Homepage "Real Stories, Real Impact" feed (the Group with the HTML anchor
   home-feed): three columns on desktop, all three stories in one row. The
   Post Template's 23rem minimum column width only allowed three from about
   1440px; below 1024px its own two-then-one columns stay. */
@media (min-width: 1024px) {
	#home-feed .feed-cards.feed-cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Success Stories cards: the Organisation and Person fields under the title,
   joined on one line since 20 November 2026 (see .feed-card-company below).
   Each is a Paragraph bound to its KC Fields field, with the class
   feed-card-organisation or feed-card-person; KC Fields removes the
   Paragraph when the field is empty, so no blank line shows. Navy on the
   white card, 12.3:1. */
.feed-card-organisation,
.feed-card-person {
	margin-block: 0.25rem 0;
	color: var(--wp--preset--color--accent-3);
	font-size: var(--wp--preset--font-size--medium);
}

/* One line, "Organisation, Person", with the organisation in bold
   (dbm_feed_card_company_person() in functions.php; Tom's decision of 20
   November 2026). A card with only a person shows the person alone, not bold. */
.feed-card-company {
	font-weight: 600;
}

/* "Slightly increase the space between the title and the second line"
   (Tom, 20 November 2026): 0.6rem, from 0.25rem. */
.feed-card-title + :is(.feed-card-organisation, .feed-card-person) {
	margin-block-start: 0.6rem;
}

/* ==========================================================================
   Post header (parts/post-hero.html), shared by the Perspectives, Success
   Stories and mentor profile templates; Book a call copies its markup
   without the photo (.booking-hero, below) (Tom's decision of 20
   November 2026: "featured image only 50% width, on right of header;
   left-hand 50% solid dark blue, followed by gradient that reveals hero
   image").
   From 782px: two equal columns on navy (accent-3). The text sits on solid
   navy in the left half, starting at the content's left edge; white on navy is
   12.3:1 and no text ever lies over the photo. The featured image fills the
   right half, cropped to fill, with a navy gradient over its left edge so the
   two halves meet without a seam. Below 782px the text is on navy above the
   photo at full width (Tom: "On phones, text on dark blue above a full-width
   image"). With no featured image the text takes the whole width.
   It keeps the internal-hero class for that header's yellow border; the
   Cover rules above no longer apply, because it has no Cover.
   Classes in the part: `post-hero` on the outer Group, `post-hero-text` on
   the text Group, `post-hero-image` on the Post Featured Image block.
   Under the title on Success Stories: the Challenge summary title and the
   Company and Person line (rules below .post-hero h1). KC Fields removes a
   bound block whose field is empty, so no blank line shows, and other posts,
   which have none of these fields, show the title alone.
   ========================================================================== */
.post-hero.post-hero {
	/* The text's left edge is worked out from this box's width (cqi). */
	container-type: inline-size;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
}

.post-hero-text {
	box-sizing: border-box;
	align-self: center;
	padding-block: var(--wp--preset--spacing--60);
	padding-inline: var(--wp--style--root--padding-left) var(--wp--style--root--padding-right);
}

.post-hero h1 {
	margin-block: 0;
}

.post-hero-image.post-hero-image {
	position: relative;
	margin: 0;
	aspect-ratio: 3 / 2;
}

/* The crop keeps the point a quarter of the way down the photo in view,
   rather than its centre, so more of a person's face shows (Tom's decision of
   20 November 2026: "It is currently vertically centred, but I think it
   should be lower. Maybe 25% cropped at off the top, so the images show more
   of a person's face."). On desktop and phones alike. */
.post-hero-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 25%;
}

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

	/* The left edge lines up with the content width, as the header's text did
	   before; at narrower widths, with the site's side padding. */
	.post-hero-text {
		padding-inline-start: max(var(--wp--style--root--padding-left), calc(50cqi - var(--wp--style--global--content-size) / 2));
		padding-inline-end: var(--wp--preset--spacing--50);
	}

	/* No featured image: the text may run across the whole header. */
	.post-hero:not(:has(.post-hero-image)) .post-hero-text {
		grid-column: 1 / -1;
		padding-inline-end: max(var(--wp--style--root--padding-right), calc(50cqi - var(--wp--style--global--content-size) / 2));
	}

	/* The photo fills its half, however tall the text makes the header. */
	.post-hero-image.post-hero-image {
		aspect-ratio: auto;
	}

	.post-hero-image img {
		position: absolute;
		inset: 0;
	}

	/* The gradient that reveals the photo: solid navy at the photo's left
	   edge, clear by 60% of its width. */
	.post-hero-image::before {
		content: "";
		position: absolute;
		inset: 0;
		z-index: 1;
		background: linear-gradient(to right, var(--wp--preset--color--accent-3) 0%, transparent 60%);
		pointer-events: none;
	}
}

/* Success Stories (Tom's decision of 20 November 2026): the Challenge summary
   title as an H2 under the title (class `post-hero-summary`, bound to
   kccf_challenge_summary_title), then "Company: … · Person: …" as running
   text (Group `post-hero-meta`; labels and dot from
   dbm_post_hero_meta_labels() in functions.php). The two paragraphs are
   inline, so the person follows straight on from the company's last word and
   the whole wraps like one sentence (Tom, 23 November 2026). The dot is tied
   to the company's last word by a no-break space, so it never starts a line.
   Anything empty is removed, so nothing shows on posts and mentor profiles.
   White on the navy half, 12.3:1. */
.post-hero-summary.post-hero-summary {
	margin-block: 1rem 0;
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 600;
	line-height: 1.3;
}

.post-hero-meta.post-hero-meta {
	margin-block: 1rem 0;
	font-size: var(--wp--preset--font-size--large);
}

.post-hero-meta p {
	display: inline;
	margin: 0;
}

.post-hero-label {
	font-weight: 600;
}

/* ==========================================================================
   Book a call (templates/book-a-call.html; Tom's decision of 20 November
   2026: "All 'Talk to us' links need to go to the Calendar"): the Microsoft
   Bookings calendar in an iframe, 2300px tall as Microsoft's embed code sets
   it, with a link to the calendar on its own page above it for anyone the
   frame does not suit. Classes in the template: `booking-section` on the
   Group, `booking-fallback` on the paragraph, `booking-calendar` on the frame.
   ========================================================================== */
.booking-calendar {
	display: block;
	max-width: 100%;
	border: 0;
	margin-top: var(--wp--preset--spacing--40);
}

/* Book a call's header (Tom's decision "2 - a", 22 November 2026): the title
   only, with no photo and no minimum height, so the calendar starts on the
   first screen. It is the post header's own markup without the photo (class
   `booking-hero` on the outer Group, beside `internal-hero post-hero`), so it
   keeps the same navy, yellow border, text column and the same padding above
   and below the title (.post-hero-text); this only lifts the 40vh minimum the
   post header has from 782px. */
.booking-hero.post-hero.post-hero {
	min-height: 0;
}

/* ==========================================================================
   Mentor profile (templates/single-mentor.html; Tom's decision "2a", 20
   November 2026): the shared post header with the mentor's name as the H1,
   then the photo beside the mentor's description and quote, no byline.
   Classes in the template: `mentor-profile` on the Group, `mentor-photo` on
   the featured image, `mentor-about` round the two bound KC Fields
   paragraphs (kccf_mentor_description and kccf_mentor_quote, removed by KC
   Fields when empty), `mentor-quote` on the quote.
   Most mentor photos are 300px wide, so the photo is never shown wider than
   that, in a 4:5 portrait crop, rather than stretched.
   ========================================================================== */
.mentor-profile {
	display: grid;
	gap: var(--wp--preset--spacing--50);
	align-items: start;
}

@media (min-width: 782px) {
	.mentor-profile {
		grid-template-columns: 300px minmax(0, 1fr);
	}
}

.mentor-photo.mentor-photo {
	max-width: 300px;
	margin: 0;
}

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

.mentor-quote {
	border-inline-start: 4px solid var(--wp--preset--color--accent-1);
	padding-inline-start: var(--wp--preset--spacing--30);
	font-style: italic;
}

/* 44px tap areas on the single templates' links (Tom's decision "10a", 20
   November 2026). Classes in the template files: `post-byline` on the
   Success Story's "Category" Group (posts lost their "Written by" line on 20
   November 2026), `post-nav` on the post navigation and
   `more-posts` on the More posts or More success stories Group.
   The byline and category links are inline, so vertical padding grows their
   tap area without moving the text. */
.post-byline a {
	padding-block: 11px;
}

/* 44px targets for the rest of the small links found by the accessibility
   check of 20 November (WCAG 2.5.5, AAA; Tom's answer 1b to DBM checkpoint 6).
   In each, padding grows the tap area and a matching negative margin keeps
   the layout as it was.
   - Category links in a byline: at least 44px wide too, for a short name
     such as "News".
   - The header logo on phones, 35px tall at 88px wide.
   - Tags in the parent theme's pill style (is-style-post-terms-1), 35px.
   - Post titles in listings: the Perspectives Featured item (class
     featured-post) and the search, archive and index templates (class
     listing-main), 35 to 41px. The feed cards' titles need nothing: their
     link covers the whole card. */
.post-byline a {
	display: inline-block;
	min-width: 44px;
	text-align: center;
	padding-block: 12.5px;
	margin-block: -12.5px;
}

@media (max-width: 599px) {
	header.wp-block-template-part .custom-logo-link {
		display: inline-block;
		padding-block: 5px;
		margin-block: -5px;
	}
}

.is-style-post-terms-1 a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	box-sizing: border-box;
}

.featured-post .wp-block-post-title a,
.listing-main .wp-block-post-title a {
	display: inline-block;
	padding-block: 12px;
	margin-block: -12px;
}

/* The post navigation and More list links are blocks of text; the padding
   and the matching negative margin leave the layout as it was. */
.post-nav a,
.more-posts .wp-block-post-title a {
	display: inline-block;
	padding-block: 12px;
	margin-block: -12px;
}

/* ==========================================================================
   Partner with us page, following Tom's wireframe (dbm-content/
   dbm-partner-with-us-wireframe.pdf; Tom's decisions of 20 November 2026).
   Top to bottom: a narrow intro (class `partner-intro`); "Our supporters" on
   a pale band (`partner-band`) with two equal cards (`supporter-cards`, each
   `supporter-card`); the partners section on white (`partner-section`), which
   holds the logo wall; and the opportunities text on a second pale band. The
   pale is the palette's Accent 4; navy text on it is 11.4:1.
   ========================================================================== */
.partner-band {
	background: var(--wp--preset--color--accent-4);
	padding-block: var(--wp--preset--spacing--60);
}

/* The bands and the white section carry their own space, so the block gap
   between them would only add a white strip above each band. */
.partner-intro + .partner-band,
.partner-band + .partner-section,
.partner-section + .partner-band {
	margin-block-start: var(--wp--preset--spacing--60);
}

/* The two cards stay equal in width and height: side by side from 782px,
   stacked below that. The columns are set here because WordPress's own grid
   sum for "2 columns, 20rem minimum" uses its block gap, so the wider gap
   here would push the second card onto its own row at every width. */
.supporter-cards.supporter-cards {
	grid-template-columns: 1fr;
	gap: var(--wp--preset--spacing--40);
	margin-block: var(--wp--preset--spacing--50);
}

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

.supporter-card {
	/* The logos below are sized against the card's width (cqi units). */
	container-type: inline-size;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--accent-2);
	border-radius: 16px;
	padding: var(--wp--preset--spacing--40);
}

.supporter-card > :first-child {
	margin-block-start: 0;
}

/* Each card's quote sits at the foot of its card, so the two quotes line up
   whatever the length of the text above them (Tom's decision of 20 November
   2026: "Move quotes to baseline of block"). The grid makes the cards equal
   in height; the auto margin takes the spare height above the quote. The
   space between the card's blocks is the flex gap, the same block gap they
   had before, so the quote keeps at least that above it in the taller card. */
.supporter-card.supporter-card {
	display: flex;
	flex-direction: column;
	gap: var(--wp--style--block-gap);
}

.supporter-card.supporter-card > * {
	margin-block: 0;
}

.supporter-card.supporter-card > .supporter-quote {
	margin-block-start: auto;
}

/* The logo's own bottom margin (below) would add to the gap here. */
.supporter-card > .supporter-logo.supporter-logo {
	margin: 0;
}

/* Both logos the same height in every layout (Tom: "the Dorset Council and
   Rathbone logos should be the same heights as each other"). 4rem at most;
   in a narrower card the height is 11% of the card's width instead, which
   both cards share, so the Rathbones lockup (about 8.7 times as wide as it is
   tall) still fits at 96% of the card and the two stay level. */
.supporter-logo.supporter-logo {
	margin: 0 0 var(--wp--preset--spacing--30);
}

.supporter-logo img {
	width: auto;
	max-width: 100%;
	height: min(4rem, 11cqi);
	object-fit: contain;
}

/* The pale panel round Rob Jones's quote, inside the Rathbones card. */
.supporter-quote.supporter-quote {
	background: var(--wp--preset--color--accent-4);
	border: 0;
	border-inline-start: 4px solid var(--wp--preset--color--accent-1);
	border-radius: 8px;
	margin-inline: 0;
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
}

.supporter-quote cite {
	display: block;
	margin-top: 0.75rem;
	/* 1rem, not the parent's 14px "small", so the name and role stay easy
	   to read on a phone. */
	font-size: 1rem;
	font-style: normal;
}

/* ==========================================================================
   Partner with us logo wall (class `logo-wall` on the grid Group). Each logo
   sits in a white tile of the same size, centred and scaled to fit without
   cropping: two across on phones, three from 600px and six from 1024px, as in
   the wireframe. Greyscale until hover or keyboard focus, on devices that can
   hover; on touch screens, which cannot, they are always in colour (Tom's
   decision "3a", 19 November 2026). Each logo links to its organisation's
   site where the address is known, so a keyboard user can reach it and see
   it in colour.
   ========================================================================== */
.logo-wall.logo-wall {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: stretch;
	gap: var(--wp--preset--spacing--30);
}

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

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

/* The tile. Its border is decoration, so it needs no contrast ratio; the
   logos themselves carry the meaning, with alt text. */
.logo-wall .wp-block-image.wp-block-image {
	box-sizing: border-box;
	min-height: 7rem;
	padding: 0.75rem;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--accent-2);
	border-radius: 8px;
}

/* The same logo rules serve the homepage supporters strip (class
   `trusted-strip`), whose Dorset Council and Rathbones logos sit in a centred,
   wrapping row Group in place of the old "Logo grid" placeholder (Tom's
   decision "5a", 19 November 2026). */
.logo-wall .wp-block-image,
.trusted-strip .wp-block-image {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 0;
}

/* The link shrinks to the logo, so its focus outline goes round the logo. */
.logo-wall .wp-block-image a,
.trusted-strip .wp-block-image a {
	display: inline-flex;
	max-width: 100%;
}

.logo-wall .wp-block-image img,
.trusted-strip .wp-block-image img {
	width: auto;
	max-width: 100%;
	height: 6rem;
	object-fit: contain;
}

/* In a wall tile, 4rem tall at most, so a square logo and a wide one sit in
   the same box; a wide logo is narrower than its tile and shows shorter. */
.logo-wall .wp-block-image img {
	height: auto;
	max-height: 4rem;
}

/* In the supporters strip a logo is at most 18rem wide as well, because the
   Rathbones lockup is about nine times as wide as it is tall and would
   otherwise fill the row at 6rem high. The cap is in rem and vw, not %: a
   percentage would be read against the figure, whose width comes from the
   image, so the figure would keep the image's full width. */
.trusted-strip .wp-block-image img {
	height: auto;
	max-height: 6rem;
	max-width: min(18rem, 70vw);
}

/* The strip's "Read more about our sponsors and partners" link stands on its
   own line, so it takes a 44px tap area (Tom's decision "15a", 20 November
   2026). It is inline, so the padding moves no text. */
.trusted-strip p > a {
	padding-block: 0.4rem;
}

/* The site's yellow focus outline barely shows on white (1.1:1), so logo
   links take a navy one (12.3:1). The repeated class beats the site-wide
   link rule's :not()s. */
.logo-wall .wp-block-image.wp-block-image a:focus-visible,
.trusted-strip .wp-block-image.wp-block-image a:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent-3);
	outline-offset: 4px;
}

@media (hover: hover) {
	.logo-wall .wp-block-image img,
	.trusted-strip .wp-block-image img {
		filter: grayscale(1);
		transition: filter 0.2s ease;
	}

	.logo-wall .wp-block-image:hover img,
	.logo-wall .wp-block-image a:focus-visible img,
	.trusted-strip .wp-block-image:hover img,
	.trusted-strip .wp-block-image a:focus-visible img {
		filter: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.logo-wall .wp-block-image img,
	.trusted-strip .wp-block-image img {
		transition: none;
	}
}

/* Success stories testimonials (class `testimonial-grid` on the grid Group):
   each photo square, cropped to fill, at whatever width the Image block has.
   Nothing else about the grid changes for launch (Tom's decision "2b"). */
.testimonial-grid .wp-block-image img {
	aspect-ratio: 1;
	height: auto;
	object-fit: cover;
}

/* ==========================================================================
   Feed carousel (assets/js/feed-carousel.js, which creates this viewport and
   animates the slide). Nothing here hides content: without the script, the
   pagination links load each page normally.
   ========================================================================== */
:where(html.js-feed-carousel) .feed-carousel-viewport {
	position: relative;
	scroll-margin-top: 7rem;
}

:where(html.js-feed-carousel) .feed-carousel-viewport.is-sliding {
	overflow: clip;
}

/* The script sets this to the tallest card on any page. Where cards sit side by
   side it also holds the feed's height, so that stays the same between pages. */
:where(html.js-feed-carousel) .feed-carousel-viewport .feed-card {
	min-height: var(--feed-card-height, 0);
}

/* The hidden copy of the grid that the script measures cards in. */
:where(html.js-feed-carousel) .feed-cards.is-measuring {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	margin: 0;
	visibility: hidden;
	align-items: start;
}

:where(html.js-feed-carousel) .feed-cards.is-measuring .feed-card {
	height: auto;
	min-height: 0;
}

:where(html.js-feed-carousel) .feed-cards.is-incoming {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	margin: 0;
}

/* ==========================================================================
   Contact us: the three "How can we help?" cards are as tall as the tallest.
   Columns already stretch every column to the row's height; .contact-option
   fills its column, the same way .feed-card does. On phones the columns
   stack, so each card keeps its own height.
   Each card's buttons sit at its foot, so the three line up across the row.
   Classes set on the blocks in the editor: .contact-option on each card's
   Group, .contact-option-actions on the Buttons block inside it.
   ========================================================================== */
.contact-option {
	box-sizing: border-box;
	height: 100%;
	display: flex;
	flex-direction: column;
}

/* A constrained Group gives its children auto side margins, which in a column
   of flex items would shrink each one to its content; this keeps them full
   width, as they are in normal flow. */
.contact-option > * {
	width: 100%;
}

/* The auto margin takes up the spare height, pushing the buttons down. The
   padding keeps the usual block gap above them on the tallest card, where
   there is no spare height. */
.contact-option-actions {
	margin-top: auto;
	padding-top: var(--wp--style--block-gap, 1.2rem);
}

/* Where the card buttons and the thanks redirect land: the Group with the HTML
   anchor contact-instructions, set in the editor. The margin keeps the sticky
   header (139px tall on phones) off the heading. */
#contact-instructions {
	scroll-margin-top: 9rem;
}

/* ==========================================================================
   Contact form block (dbm/contact-form, blocks/contact-form/), placed in the
   contact-form Group on Contact us. Same approach as the footer sign-up form:
   white fields with the site's 40px rounded ends, and the site's own button
   classes on the submit button, so its look and hover come from the button
   rules above. Unlike the footer, labels stay visible (the form's brief), and
   the fields carry a navy border because this form sits on white.

   Contrast on white: navy text 12.3:1; the error red #a00000 8.4:1. Errors are
   never colour alone: each has its own text and an "Error:" prefix for screen
   readers. Focus is a navy outline here, because the footer's yellow outline
   barely shows on white (1.1:1).
   ========================================================================== */
.dbm-contact-form {
	color: var(--wp--preset--color--accent-3);
}

.dbm-contact-form__field + .dbm-contact-form__field {
	margin-top: 1.2rem;
}

.dbm-contact-form label {
	display: block;
	margin-bottom: 0.4rem;
	font-weight: 600;
}

.dbm-contact-form input,
.dbm-contact-form select,
.dbm-contact-form textarea {
	box-sizing: border-box;
	width: 100%;
	min-height: 44px;
	padding: 0.5rem 1.2rem;
	border: 1px solid var(--wp--preset--color--accent-3);
	border-radius: 40px;
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--accent-3);
	font: inherit;
}

/* A long message box would look odd with fully round ends. */
.dbm-contact-form textarea {
	border-radius: 1.2rem;
	resize: vertical;
}

/* The browser's own select arrow ignores the rounded ends, so it is replaced
   by a navy chevron drawn in CSS. */
.dbm-contact-form select {
	appearance: none;
	padding-right: 3rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23203748' stroke-width='2'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1.2rem center;
}

.dbm-contact-form input:focus-visible,
.dbm-contact-form select:focus-visible,
.dbm-contact-form textarea:focus-visible,
.dbm-contact-form__summary:focus-visible,
.dbm-contact-form__thanks:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent-3);
	outline-offset: 3px;
}

.dbm-contact-form .has-error input,
.dbm-contact-form .has-error select,
.dbm-contact-form .has-error textarea {
	border: 2px solid #a00000;
}

.dbm-contact-form__error {
	margin: 0 0 0.4rem;
	color: #a00000;
	font-weight: 600;
}

.dbm-contact-form__hint,
.dbm-contact-form__privacy {
	margin: 0.5rem 0 0;
	font-size: var(--wp--preset--font-size--small);
}

.dbm-contact-form__privacy {
	margin-top: 1.2rem;
}

.dbm-contact-form__summary {
	margin-bottom: 1.5rem;
	padding: 1.2rem 1.5rem;
	border: 3px solid #a00000;
	border-radius: 16px;
}

.dbm-contact-form__summary-title {
	margin: 0 0 0.5rem;
	font-size: var(--wp--preset--font-size--large);
}

.dbm-contact-form__summary ul {
	margin: 0;
	padding-left: 1.2rem;
}

.dbm-contact-form__summary a {
	color: #a00000;
	font-weight: 600;
}

/* 44px tap areas on the summary's links (Tom's decision "9a", 20 November
   2026). Block links with padding, so each fills its line of the list; the
   list items' own spacing is taken out so the summary keeps its height
   close to what it was. */
.dbm-contact-form__summary li {
	margin: 0;
}

.dbm-contact-form__summary li a {
	display: inline-block;
	min-height: 44px;
	padding-block: 0.6rem;
	box-sizing: border-box;
}

.dbm-contact-form__thanks {
	padding: 1.5rem;
	border-radius: 16px;
	background-color: var(--wp--preset--color--accent-4);
}

.dbm-contact-form__thanks p {
	margin: 0;
}

/* The spam trap: off screen for sighted visitors, aria-hidden in the markup
   for screen readers, and out of the tab order. */
.dbm-contact-form__trap {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.dbm-contact-form .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* The Buttons block's own wrapper styles load only on pages with a Buttons
   block, so this sets what the button rules above rely on (as in the footer). */
.dbm-contact-form .wp-block-button {
	display: inline-block;
	margin-top: 1.2rem;
}

.dbm-contact-form .wp-block-button__link.wp-element-button {
	display: block;
	min-height: 44px;
	border: 0;
	font-size: inherit;
	cursor: pointer;
}

/* The editor's stand-in for the form (editor.js). */
.dbm-contact-form-placeholder {
	padding: 1.5rem;
	border: 1px dashed var(--wp--preset--color--accent-3);
	border-radius: 16px;
}
