/**
 * Momentum theme styles.
 *
 * theme.json supplies the design tokens (colour, type scale, spacing) as CSS
 * custom properties. This file covers what theme.json cannot express: the
 * sticky header, the dropdown navigation, the portrait rings, the social rail
 * and the block style variations registered in inc/setup.php.
 */

/* -------------------------------------------------------------------------- */
/* Foundations                                                                */
/* -------------------------------------------------------------------------- */

:root {
	--momentum-header-height: 76px;
	--momentum-ring-gap: 6px;
}

html {
	scroll-behavior: smooth;
	/* Anchor targets must clear the sticky header. */
	scroll-padding-top: calc(var(--momentum-header-height) + 1.5rem);
}

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

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

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

/* Give long body copy a comfortable measure without constraining headings.
   Page content is already held to the 760px content width, so only the
   explicit prose wrapper needs it. */
.momentum-prose > p {
	max-width: 68ch;
}

/* Visible focus for keyboard users only. */
:focus-visible {
	outline: 2px solid var(--wp--preset--color--forest);
	outline-offset: 3px;
	border-radius: 2px;
}

.momentum-skip-link:focus {
	position: fixed;
	inset-block-start: 1rem;
	inset-inline-start: 1rem;
	z-index: 999;
	padding: 0.75rem 1.25rem;
	background: var(--wp--preset--color--paper);
	border-radius: var(--wp--custom--radius--small);
	box-shadow: var(--wp--preset--shadow--lifted);
	text-decoration: none;
}

/* -------------------------------------------------------------------------- */
/* Icons                                                                      */
/* -------------------------------------------------------------------------- */

.momentum-icon {
	display: block;
	width: var(--momentum-icon-size, 4.5rem);
	height: auto;
	color: inherit;
	flex-shrink: 0;
}

.momentum-icon--sm {
	--momentum-icon-size: 1.25rem;
}

.momentum-icon--lg {
	--momentum-icon-size: 6rem;
}

/* -------------------------------------------------------------------------- */
/* Header                                                                     */
/* -------------------------------------------------------------------------- */

/*
 * Core separates the top-level site blocks (header, main, footer) with the
 * block gap, which left a white strip between the sticky header and the
 * first coloured section on every page. Sections carry their own padding.
 */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 1px solid transparent;
	transition: border-color var(--wp--custom--transition--base),
		box-shadow var(--wp--custom--transition--base);
}

/*
 * The frosted background lives on a pseudo-element, not on the header itself.
 *
 * A `backdrop-filter` other than `none` makes an element a containing block for
 * its fixed-position descendants — the same rule that applies to `transform`.
 * The mobile navigation overlay is `position: fixed; inset: 0`, so with the
 * filter on the header it sized itself to the header instead of the viewport
 * and the menu appeared as a clipped strip behind the page.
 *
 * A pseudo-element cannot contain the overlay, because the overlay is not its
 * descendant, so the effect is kept and the containment problem disappears.
 */
.wp-site-blocks > header.wp-block-template-part::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: color-mix(in srgb, var(--wp--preset--color--paper) 88%, transparent);
	backdrop-filter: saturate(180%) blur(12px);
	pointer-events: none;
}

/* Older browsers get an opaque bar rather than a see-through one. */
@supports not (backdrop-filter: blur(1px)) {
	.wp-site-blocks > header.wp-block-template-part::before {
		background: var(--wp--preset--color--paper);
	}
}

body.momentum-scrolled .wp-site-blocks > header.wp-block-template-part {
	border-bottom-color: var(--wp--preset--color--grey);
	box-shadow: var(--wp--preset--shadow--soft);
}

/* One line wherever it fits; it may wrap only on narrow screens (below). */
.momentum-header__tagline {
	color: var(--wp--preset--color--forest);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 500;
	line-height: 1.3;
	margin: 0;
	white-space: nowrap;
}

.momentum-header .wp-block-site-logo img {
	width: 88px;
	height: auto;
}

/* Logo and tagline on the left, everything else on the right, in one row. */
@media (min-width: 600px) {
	.momentum-header .alignwide.is-layout-flex {
		flex-wrap: nowrap;
	}
}

@media (max-width: 781px) {
	.momentum-header .wp-block-site-logo img {
		width: 60px;
	}

	.momentum-header__tagline {
		font-size: var(--wp--preset--font-size--x-small);
	}
}

/* -------------------------------------------------------------------------- */
/* Navigation                                                                 */
/* -------------------------------------------------------------------------- */

.momentum-nav .wp-block-navigation-item__content {
	padding-block: 0.5rem;
	border-radius: var(--wp--custom--radius--small);
}

/* Underline that grows from the centre on hover. */
.momentum-nav .wp-block-navigation-item > .wp-block-navigation-item__content {
	position: relative;
}

.momentum-nav .wp-block-navigation-item > .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0.15rem;
	height: 2px;
	background: var(--wp--preset--color--green);
	transform: scaleX(0);
	transform-origin: center;
	transition: transform var(--wp--custom--transition--base);
}

.momentum-nav .wp-block-navigation-item:hover > .wp-block-navigation-item__content::after,
.momentum-nav .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content::after {
	transform: scaleX(1);
}

/* Dropdown submenus */
.momentum-nav .wp-block-navigation__submenu-container {
	min-width: 15rem;
	padding: 0.5rem;
	border: 1px solid var(--wp--preset--color--grey);
	border-radius: var(--wp--custom--radius--medium);
	background: var(--wp--preset--color--paper);
	box-shadow: var(--wp--preset--shadow--lifted);
}

.momentum-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 0.5rem 0.75rem;
	border-radius: var(--wp--custom--radius--small);
	width: 100%;
}

.momentum-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--frost);
}

.momentum-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content::after {
	display: none;
}

/* The pill-shaped Contact call to action in the header. */
.momentum-nav-cta .wp-block-button__link,
.momentum-header .momentum-nav-cta a {
	border-radius: var(--wp--custom--radius--pill);
	white-space: nowrap;
}

/* -------------------------------------------------------------------------- */
/* Mobile navigation overlay                                                  */
/*                                                                            */
/* The dropdown styling above is for the desktop header. Inside the full       */
/* screen overlay the submenus are rendered inline, so the card treatment      */
/* would draw boxes floating over the menu; these rules undo it.               */
/* -------------------------------------------------------------------------- */

.wp-block-navigation__responsive-container.is-menu-open {
	padding: min(6vh, 3.5rem) clamp(1.25rem, 6vw, 2.5rem);
}

/*
 * Left-align the overlay.
 *
 * The header navigation is right-justified for the desktop bar, and WordPress
 * drives the overlay's alignment from the same custom property — which the
 * inner <ul> re-declares, because it carries both `wp-block-navigation` and
 * `items-justified-right`. Overriding `align-items` directly is futile: the
 * core rule that reads the property is more specific than anything reasonable.
 * Setting the property itself is the supported lever, and it leaves the desktop
 * header untouched because these rules only apply while the overlay is open.
 */
.wp-block-navigation__responsive-container.is-menu-open,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-page-list {
	--navigation-layout-justification-setting: flex-start;
	--navigation-layout-justify: flex-start;
	--navigation-layout-align: flex-start;
}

.is-menu-open .wp-block-navigation__responsive-container-content {
	width: 100%;
	gap: 0.25rem;
	text-align: left;
}

/* Top-level items get room to be tapped comfortably. */
.is-menu-open .wp-block-navigation-item__content {
	padding-block: 0.6rem;
	font-size: var(--wp--preset--font-size--large);
}

/*
 * Strip the desktop dropdown card back to a plain indented list.
 *
 * The padding and indent need to match core's own overlay selector for weight;
 * core sets `padding-left: 2rem` at five classes deep, and this stylesheet
 * loads after it, so an equally specific rule wins.
 */
.is-menu-open .wp-block-navigation__submenu-container {
	min-width: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.wp-block-navigation__responsive-container.is-menu-open
	.wp-block-navigation__responsive-container-content
	.has-child
	.wp-block-navigation__submenu-container {
	padding-left: 1.1rem;
	padding-right: 0;
	margin-block: 0.15rem 0.7rem;
	margin-left: 0.35rem;
	border-left: 2px solid var(--wp--preset--color--sage);
}

.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 0.4rem 0;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 400;
}

.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	background: transparent;
	color: var(--wp--preset--color--forest);
}

/* The centre-out underline is a pointer affordance; it has no place here. */
.is-menu-open .wp-block-navigation-item > .wp-block-navigation-item__content::after {
	display: none;
}

/*
 * Keep Contact and the language switcher usable while the menu is open.
 *
 * Both sit in the header beside the navigation, so the full-screen overlay
 * covers them — leaving a mobile visitor unable to get in touch or change
 * language without first closing the menu. Lifting them above the overlay and
 * anchoring them to the bottom of the screen puts the primary action within
 * thumb reach instead.
 *
 * This depends on the header no longer creating a containing block for fixed
 * descendants, which is why the frosted backdrop moved to a pseudo-element.
 */
@media (max-width: 1179px) {
	html.has-modal-open .momentum-nav-cta,
	html.has-modal-open .momentum-lang {
		position: fixed;
		left: clamp(1.25rem, 6vw, 2.5rem);
		/* The overlay itself sits at 100000. */
		z-index: 100001;
	}

	html.has-modal-open .momentum-nav-cta {
		bottom: 4.25rem;
	}

	html.has-modal-open .momentum-lang {
		bottom: 2rem;
	}

	html.has-modal-open .momentum-nav-cta .wp-block-button__link {
		padding: 0.85rem 2rem;
		font-size: var(--wp--preset--font-size--small);
	}
}

/* Language switcher */
.momentum-lang {
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
}

.momentum-lang ul {
	display: flex;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
	align-items: center;
}

.momentum-lang li + li::before + li::before {
	content: "|";
	color: var(--wp--preset--color--grey);
	margin-right: 0.5rem;
}

.momentum-lang a {
	color: var(--wp--preset--color--graphite);
	text-decoration: none;
	text-transform: uppercase;
}

.momentum-lang .current-lang a a {
	color: var(--wp--preset--color--forest);
	font-weight: 700;
}

/*
 * The menu collapses to a hamburger below 1180px.
 *
 * Core switches at 600px, but with the one-line tagline, four links, Contact
 * and the language switcher the header needs about 1180px in one row; in
 * between it wrapped into two rows and grew to 170px tall. These two rules
 * are core's own overlay rules, applied up to our breakpoint instead.
 */
@media (max-width: 1179px) {
	.momentum-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

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

	/* The hamburger conventionally sits at the end of the header, after the
	   call to action. */
	.momentum-header .wp-block-group.is-layout-flex > .momentum-nav {
		order: 3;
	}
}

/* Only on a phone is there too little room for the tagline on one line. */
@media (max-width: 599px) {
	.momentum-header__tagline {
		white-space: normal;
		max-width: 20ch;
	}
}

/* -------------------------------------------------------------------------- */
/* Portraits                                                                  */
/*                                                                            */
/* The supplied team portraits already carry the brand's green/cream ring, so  */
/* .momentum-portrait is only a sizing wrapper. The CSS-drawn ring lives in    */
/* the is-style-momentum-ring block style below, for future photographs that   */
/* arrive without one.                                                        */
/* -------------------------------------------------------------------------- */

.momentum-portrait {
	display: block;
	width: 100%;
	max-width: 200px;
	aspect-ratio: 1;
	margin-inline: auto;
}

.momentum-portrait img,
.momentum-portrait .wp-block-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Team biographies use the full width of their column. */
.momentum-team__bio {
	text-align: justify;
	text-align-last: left;
	hyphens: auto;
	-webkit-hyphens: auto;
}

/* Too narrow to justify without rivers of white space. */
@media (max-width: 480px) {
	.momentum-team__bio {
		text-align: left;
	}
}

/* Block style variation: core/image "Momentum ring" */
.wp-block-image.is-style-momentum-ring {
	position: relative;
	max-width: 190px;
	margin-inline: auto;
}

.wp-block-image.is-style-momentum-ring img {
	border-radius: 50%;
	aspect-ratio: 1;
	object-fit: cover;
	width: 100%;
}

.wp-block-image.is-style-momentum-ring::before,
.wp-block-image.is-style-momentum-ring::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	border: var(--wp--custom--ring-width) solid transparent;
	pointer-events: none;
}

.wp-block-image.is-style-momentum-ring::before {
	inset: calc(var(--wp--custom--ring-width) * -1.2);
	border-top-color: var(--wp--preset--color--cream);
	border-right-color: var(--wp--preset--color--cream);
	border-bottom-color: var(--wp--preset--color--cream);
	transform: rotate(-35deg);
}

.wp-block-image.is-style-momentum-ring::after {
	inset: calc(var(--wp--custom--ring-width) * -2.6);
	border-top-color: var(--wp--preset--color--green);
	border-left-color: var(--wp--preset--color--green);
	border-bottom-color: var(--wp--preset--color--green);
	transform: rotate(35deg);
}

.wp-block-image.is-style-momentum-rounded img {
	border-radius: var(--wp--custom--radius--large);
}

/* -------------------------------------------------------------------------- */
/* Block style variations                                                     */
/* -------------------------------------------------------------------------- */

.wp-block-group.is-style-momentum-card {
	background: var(--wp--preset--color--paper);
	border-radius: var(--wp--custom--radius--medium);
	box-shadow: var(--wp--preset--shadow--soft);
	padding: var(--wp--preset--spacing--50);
	height: 100%;
	transition: transform var(--wp--custom--transition--base),
		box-shadow var(--wp--custom--transition--base);
}

.wp-block-group.is-style-momentum-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--wp--preset--shadow--lifted);
}

.wp-block-group.is-style-momentum-bordered {
	border: 1px solid var(--wp--preset--color--grey);
	border-radius: var(--wp--custom--radius--medium);
	padding: var(--wp--preset--spacing--50);
}

.wp-block-list.is-style-momentum-check {
	list-style: none;
	padding-left: 0;
}

.wp-block-list.is-style-momentum-check li {
	position: relative;
	padding-left: 1.9rem;
	margin-bottom: 0.6rem;
}

.wp-block-list.is-style-momentum-check li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.45em;
	width: 0.7rem;
	height: 0.35rem;
	border-left: 2.5px solid var(--wp--preset--color--green);
	border-bottom: 2.5px solid var(--wp--preset--color--green);
	transform: rotate(-45deg);
}

.wp-block-quote.is-style-momentum-plain {
	border: 0;
	padding-left: 0;
}

.wp-block-columns.is-style-momentum-dividers > .wp-block-column + .wp-block-column {
	border-left: 1px solid var(--wp--preset--color--grey);
	padding-left: var(--wp--preset--spacing--50);
}

@media (max-width: 781px) {
	.wp-block-columns.is-style-momentum-dividers > .wp-block-column + .wp-block-column {
		border-left: 0;
		padding-left: 0;
		border-top: 1px solid var(--wp--preset--color--grey);
		padding-top: var(--wp--preset--spacing--50);
	}
}

/* -------------------------------------------------------------------------- */
/* Section helpers                                                            */
/* -------------------------------------------------------------------------- */

.momentum-section {
	padding-block: var(--wp--preset--spacing--70);
}

/* The two-tone heading used throughout: dark word + green word. */
/* The green in headings is large display text, but #69BF64 still only reaches
   2.3:1 on white. The deeper tone keeps the same hue and clears 4.5:1. */
.momentum-heading-accent {
	color: var(--wp--preset--color--green-deep);
}

/* Section titles: one text node for translation, with the accent drawn here. */
.momentum-title::after {
	content: "";
	display: block;
	width: 3rem;
	height: 4px;
	margin: 0.9rem auto 0;
	border-radius: 2px;
	background: var(--wp--preset--color--green);
}

.momentum-title:not(.has-text-align-center)::after {
	margin-left: 0;
}

.momentum-eyebrow {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--terracotta-deep);
	margin-bottom: 0.75rem;
}

/* Testimonial quotes */
.momentum-testimonial {
	font-style: italic;
	color: var(--wp--preset--color--graphite);
}

.momentum-testimonial::before {
	content: open-quote;
}

.momentum-testimonial::after {
	content: close-quote;
}

/* -------------------------------------------------------------------------- */
/* Social rail — the vertical strip of links on the left of the contact area  */
/* -------------------------------------------------------------------------- */

.momentum-social-rail {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	align-items: center;
}

.momentum-social-rail a {
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	border: 1.5px solid var(--wp--preset--color--green);
	color: var(--wp--preset--color--forest);
	text-decoration: none;
	transition: background var(--wp--custom--transition--base),
		color var(--wp--custom--transition--base);
}

.momentum-social-rail a:hover {
	background: var(--wp--preset--color--green);
	color: var(--wp--preset--color--paper);
}

.momentum-social-rail .momentum-icon {
	--momentum-icon-size: 1.1rem;
}

@media (min-width: 1200px) {
	.momentum-social-rail--fixed {
		position: fixed;
		left: 1rem;
		top: 50%;
		transform: translateY(-50%);
		z-index: 50;
	}
}

/* -------------------------------------------------------------------------- */
/* Cards and listings                                                         */
/* -------------------------------------------------------------------------- */

.momentum-card-grid {
	display: grid;
	gap: var(--wp--preset--spacing--50);
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.momentum-post-card img {
	border-radius: var(--wp--custom--radius--medium);
	aspect-ratio: 3 / 2;
	object-fit: cover;
	width: 100%;
	height: auto;
}

.momentum-meta {
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--graphite);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

/* -------------------------------------------------------------------------- */
/* Our offering                                                               */
/* -------------------------------------------------------------------------- */

.momentum-offering__item > * {
	margin-block: 0;
}

.momentum-offering__item > * + * {
	margin-top: 0.75rem;
}

/*
 * The traced icons have slightly different aspect ratios. Constraining both
 * axes letterboxes each one in an identical square — the SVGs carry a viewBox
 * and default to xMidYMid meet — so the headings below line up.
 */
.momentum-offering__item .momentum-icon,
.momentum-icon-block .momentum-icon {
	width: 4.5rem;
	height: 4.5rem;
}

.momentum-offering__item .momentum-icon-block {
	color: var(--wp--preset--color--ink);
	margin-bottom: 1.25rem;
}

/* The icon block's alignment buttons in the editor toolbar. */
.momentum-icon-block.aligncenter .momentum-icon {
	margin-inline: auto;
}

.momentum-icon-block.alignright .momentum-icon {
	margin-inline-start: auto;
}

.momentum-icon-block.alignleft,
.momentum-icon-block.alignright,
.momentum-icon-block.aligncenter {
	float: none;
	width: 100%;
	margin-inline: 0;
}

/* -------------------------------------------------------------------------- */
/* Carousel — core/gallery with the "Carousel" style                          */
/*                                                                            */
/* Front end only: in the editor the body is .editor-styles-wrapper, so the   */
/* gallery stays a normal grid there and every image can be selected.        */
/* Stacking starts before theme.js runs, so the page does not shift on load.  */
/* -------------------------------------------------------------------------- */

body:not(.editor-styles-wrapper) .wp-block-gallery.is-style-momentum-carousel {
	display: grid;
	position: relative;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--large);
	box-shadow: var(--wp--preset--shadow--lifted);
}

body:not(.editor-styles-wrapper) .wp-block-gallery.has-nested-images.is-style-momentum-carousel figure.wp-block-image:not(#individual-image) {
	grid-area: 1 / 1;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	transition: opacity 0.9s ease;
}

/* Core sizes gallery images with :not(#individual-image); matching it keeps
   these rules ahead on specificity. */
body:not(.editor-styles-wrapper) .wp-block-gallery.has-nested-images.is-style-momentum-carousel:not(.is-ready) figure.wp-block-image:first-child:not(#individual-image),
body:not(.editor-styles-wrapper) .wp-block-gallery.has-nested-images.is-style-momentum-carousel figure.wp-block-image.is-active:not(#individual-image) {
	opacity: 1;
}

body:not(.editor-styles-wrapper) .wp-block-gallery.has-nested-images.is-style-momentum-carousel figure.wp-block-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
}

.momentum-carousel__controls {
	position: absolute;
	left: 1rem;
	right: 1rem;
	bottom: 1rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	pointer-events: none;
}

.momentum-carousel__controls > * {
	pointer-events: auto;
}

/* Previous, "3 / 15", next. */
.momentum-carousel__compact {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0.1rem 0.3rem;
	border-radius: var(--wp--custom--radius--pill);
	background: color-mix(in srgb, var(--wp--preset--color--ink) 35%, transparent);
	color: var(--wp--preset--color--paper);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
}

.momentum-carousel__step {
	position: relative;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: 0;
	cursor: pointer;
	background: none;
}

.momentum-carousel__step::before {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	width: 0.5rem;
	height: 0.5rem;
	border-top: 2px solid var(--wp--preset--color--paper);
	border-right: 2px solid var(--wp--preset--color--paper);
	transform: translateX(-0.1rem) rotate(45deg);
}

.momentum-carousel__step--prev::before {
	transform: translateX(0.1rem) rotate(-135deg);
}

.momentum-carousel__count {
	min-width: 3.5em;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.momentum-carousel__pause {
	position: relative;
	flex-shrink: 0;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	background: color-mix(in srgb, var(--wp--preset--color--ink) 35%, transparent);
}

/* Two bars while playing, a triangle once paused. */
.momentum-carousel__pause::before {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	width: 0.6rem;
	height: 0.7rem;
	border-inline: 0.2rem solid var(--wp--preset--color--paper);
}

.momentum-carousel__pause[aria-pressed="true"]::before {
	width: 0;
	height: 0;
	border-inline: 0;
	border-left: 0.6rem solid var(--wp--preset--color--paper);
	border-block: 0.38rem solid transparent;
	margin-left: 0.75rem;
}

/* Dots, used by the testimonial slider. */
.momentum-dots {
	display: flex;
	gap: 0.1rem;
	align-items: center;
}

/* A 24px button, which touch guidelines need, around a small visible dot. */
.momentum-dots__dot {
	display: grid;
	place-items: center;
	width: 1.5rem;
	height: 1.5rem;
	padding: 0;
	border: 0;
	cursor: pointer;
	background: none;
}

.momentum-dots__dot::before {
	content: "";
	width: 0.6rem;
	height: 0.6rem;
	border-radius: 50%;
	background: var(--wp--preset--color--grey);
	transition: background var(--wp--custom--transition--base), transform var(--wp--custom--transition--base);
}

.momentum-dots__dot[aria-current="true"]::before {
	background: var(--wp--preset--color--green-deep);
	transform: scale(1.25);
}

/* -------------------------------------------------------------------------- */
/* Slider — core/group with the "Slider" style; each child is a slide         */
/* -------------------------------------------------------------------------- */

body:not(.editor-styles-wrapper) .is-style-momentum-slider:not(.is-ready),
.momentum-slider__track {
	display: flex;
	gap: var(--wp--preset--spacing--50);
}

body:not(.editor-styles-wrapper) .is-style-momentum-slider:not(.is-ready) {
	overflow: hidden;
}

.momentum-slider__track {
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	/* Room for the card shadows, which overflow would otherwise clip. */
	padding: 0.5rem 0.25rem 1.5rem;
	margin-inline: -0.25rem;
}

.momentum-slider__track::-webkit-scrollbar {
	display: none;
}

body:not(.editor-styles-wrapper) .is-style-momentum-slider > *,
.momentum-slider__slide {
	flex: 0 0 100%;
	min-width: 0;
	margin: 0 !important;
	scroll-snap-align: start;
}

@media (min-width: 782px) {
	body:not(.editor-styles-wrapper) .is-style-momentum-slider > *,
	.momentum-slider__slide {
		flex-basis: calc((100% - var(--wp--preset--spacing--50)) / 2);
	}
}

.is-style-momentum-slider.is-ready > .momentum-slider__track,
.is-style-momentum-slider.is-ready > .momentum-slider__controls {
	flex-basis: auto;
	scroll-snap-align: none;
}

.momentum-slider__slide.wp-block-group.is-style-momentum-card:hover {
	transform: none;
}

.momentum-slider__controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin-top: 0.5rem !important;
}

.momentum-slider__arrow {
	position: relative;
	width: 2.5rem;
	height: 2.5rem;
	border: 1.5px solid var(--wp--preset--color--green-deep);
	border-radius: 50%;
	cursor: pointer;
	background: var(--wp--preset--color--paper);
	transition: background var(--wp--custom--transition--base);
}

.momentum-slider__arrow::before {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	width: 0.55rem;
	height: 0.55rem;
	border-top: 2px solid var(--wp--preset--color--green-deep);
	border-right: 2px solid var(--wp--preset--color--green-deep);
	transform: translateX(-0.1rem) rotate(45deg);
}

.momentum-slider__arrow--prev::before {
	transform: translateX(0.1rem) rotate(-135deg);
}

.momentum-slider__arrow:hover {
	background: var(--wp--preset--color--sage);
}

/* -------------------------------------------------------------------------- */
/* Logo strips — credentials and partners                                     */
/*                                                                            */
/* The track is rendered twice and both copies slide by their own width plus */
/* the gap, so the loop is seamless. Reduced motion gets a static grid.       */
/* -------------------------------------------------------------------------- */

.momentum-marquee {
	--momentum-marquee-gap: 2rem;
	display: flex;
	gap: var(--momentum-marquee-gap);
	overflow: hidden;
	padding-block: 0.75rem;
	-webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
	mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}

.momentum-marquee__track {
	display: flex;
	flex-shrink: 0;
	align-items: flex-start;
	justify-content: space-around;
	gap: var(--momentum-marquee-gap);
	min-width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
	animation: momentum-marquee var(--momentum-marquee-duration, 40s) linear infinite;
}

.momentum-marquee:hover .momentum-marquee__track,
.momentum-marquee:focus-within .momentum-marquee__track {
	animation-play-state: paused;
}

@keyframes momentum-marquee {
	to {
		transform: translateX(calc(-100% - var(--momentum-marquee-gap)));
	}
}

@media (prefers-reduced-motion: reduce) {
	.momentum-marquee {
		-webkit-mask-image: none;
		mask-image: none;
	}

	.momentum-marquee__track {
		flex-wrap: wrap;
		justify-content: center;
		animation: none;
		min-width: 0;
		flex-shrink: 1;
	}

	.momentum-marquee__track[aria-hidden="true"] {
		display: none;
	}
}

.momentum-marquee__item {
	margin: 0;
}

.momentum-logo-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	width: 12rem;
	margin: 0;
}

.momentum-logo-tile > a {
	display: block;
	width: 100%;
}

.momentum-logo-tile__logo {
	box-sizing: border-box;
	display: grid;
	/* minmax(0, …) lets the logo shrink to the tile instead of widening it. */
	grid-template: minmax(0, 1fr) / minmax(0, 1fr);
	place-items: center;
	width: 100%;
	height: 6.5rem;
	padding: 0.9rem 1.1rem;
	background: var(--wp--preset--color--paper);
	border-radius: var(--wp--custom--radius--medium);
	box-shadow: var(--wp--preset--shadow--soft);
	transition: transform var(--wp--custom--transition--base), box-shadow var(--wp--custom--transition--base);
}

.momentum-logo-tile:hover .momentum-logo-tile__logo {
	transform: translateY(-2px);
	box-shadow: var(--wp--preset--shadow--lifted);
}

/*
 * A logo, sized by visual weight: --momentum-logo-scale and -ratio are set per
 * logo by the theme, so a square logo is drawn smaller than it would be at the
 * height of a wide one. The base size comes from the container.
 */
.momentum-logo {
	display: grid;
	place-items: center;
	height: calc(var(--momentum-logo-size, 3.2rem) * var(--momentum-logo-scale, 1));
	width: calc(var(--momentum-logo-size, 3.2rem) * var(--momentum-logo-scale, 1) * var(--momentum-logo-ratio, 1));
	max-width: 100%;
	max-height: 100%;
}

.momentum-logo > img {
	grid-area: 1 / 1;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: opacity 0.3s ease;
}

/* Brand green, fading to the logo's own colours on hover or focus. */
.momentum-logo.is-monochrome .momentum-logo__colour {
	opacity: 0;
}

:is(.momentum-logo-grid__item, .momentum-marquee__item):is(:hover, :focus-within) .momentum-logo.is-monochrome .momentum-logo__mono {
	opacity: 0;
}

:is(.momentum-logo-grid__item, .momentum-marquee__item):is(:hover, :focus-within) .momentum-logo.is-monochrome .momentum-logo__colour {
	opacity: 1;
}

.momentum-logo-link {
	display: block;
	color: inherit;
	text-decoration: none;
}

/* Static grid: no cards, the logos directly. */
.momentum-logo-grid {
	--momentum-logo-size: 2.4rem;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 2.25rem 3rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.momentum-logo-grid__item {
	margin: 0;
}

.momentum-logo-grid .momentum-logo-tile {
	width: auto;
	gap: 0.5rem;
}

.momentum-logo-grid .momentum-logo-link:focus-visible {
	outline-offset: 6px;
}

.momentum-logo-grid .momentum-logo-tile__name {
	color: var(--wp--preset--color--forest);
	font-size: var(--wp--preset--font-size--small);
}

@media (max-width: 781px) {
	.momentum-logo-grid {
		--momentum-logo-size: 1.9rem;
		gap: 1.5rem 2rem;
	}
}

/* Inside a scrolling strip's card, the logo fits the card. */
.momentum-logo-tile__logo .momentum-logo {
	--momentum-logo-size: 3.2rem;
}

/* Until a logo is uploaded: the name as a wordmark inside the brand rings. */
.momentum-logo-tile__logo.is-placeholder {
	position: relative;
	overflow: hidden;
	background: linear-gradient(140deg, var(--wp--preset--color--cream), var(--wp--preset--color--paper) 70%);
}

.momentum-logo-tile__logo.is-placeholder::before,
.momentum-logo-tile__logo.is-placeholder::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	border: 3px solid transparent;
	pointer-events: none;
}

.momentum-logo-tile__logo.is-placeholder::before {
	width: 7rem;
	height: 7rem;
	right: -2.6rem;
	top: -2.6rem;
	border-color: var(--wp--preset--color--green) var(--wp--preset--color--green) transparent transparent;
	transform: rotate(-20deg);
	opacity: 0.55;
}

.momentum-logo-tile__logo.is-placeholder::after {
	width: 4.5rem;
	height: 4.5rem;
	left: -1.6rem;
	bottom: -1.6rem;
	border-color: transparent transparent var(--wp--preset--color--terracotta) var(--wp--preset--color--terracotta);
	opacity: 0.45;
}

.momentum-logo-tile__name {
	position: relative;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	color: var(--wp--preset--color--forest);
}

.momentum-logo-tile figcaption {
	max-width: 100%;
	font-size: var(--wp--preset--font-size--x-small);
	line-height: 1.35;
	text-align: center;
	color: var(--wp--preset--color--graphite);
}

/* Partner logos carry no caption, so in a strip they can sit closer. */
.wp-block-momentum-partners-marquee.momentum-marquee .momentum-logo-tile {
	width: 11rem;
}

.wp-block-momentum-partners-marquee.momentum-marquee .momentum-logo-tile__logo {
	height: 6rem;
}

/* -------------------------------------------------------------------------- */
/* What do we offer cards                                                     */
/* -------------------------------------------------------------------------- */

.wp-block-group.momentum-cta-card {
	position: relative;
	padding-bottom: calc(var(--wp--preset--spacing--50) + 1.75rem);
	border-top: 4px solid var(--wp--preset--color--green);
}

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

.momentum-cta-card > * + * {
	margin-top: 0.6rem;
}

.momentum-cta-card h3 a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

/* The heading link covers the whole card. */
.momentum-cta-card h3 a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.momentum-cta-card:hover h3 a,
.momentum-cta-card:focus-within h3 a {
	color: var(--wp--preset--color--green-deep);
}

.momentum-cta-card::after {
	content: "→";
	position: absolute;
	left: var(--wp--preset--spacing--50);
	bottom: var(--wp--preset--spacing--40);
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1;
	color: var(--wp--preset--color--green-deep);
	transition: transform var(--wp--custom--transition--base);
}

.momentum-cta-card:hover::after {
	transform: translateX(0.35rem);
}

.momentum-cta-card:focus-within {
	outline: 2px solid var(--wp--preset--color--forest);
	outline-offset: 3px;
}

.momentum-cta-card h3 a:focus-visible {
	outline: none;
}

/* Four cards: one row on desktop, two by two on tablets, one column on phones. */
@media (min-width: 600px) and (max-width: 1099px) {
	.wp-block-group.momentum-cta-grid.is-layout-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 599px) {
	.wp-block-group.momentum-cta-grid.is-layout-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* -------------------------------------------------------------------------- */
/* Call-to-action row and the "Arrow outline" button style                    */
/* -------------------------------------------------------------------------- */

.wp-block-group.momentum-cta-panel {
	border-radius: var(--wp--custom--radius--large);
	align-items: center;
}

.momentum-cta-panel > p {
	flex: 1 1 22rem;
	margin: 0;
	max-width: 46rem;
	line-height: 1.4;
	color: var(--wp--preset--color--forest);
}

.momentum-cta-panel > .wp-block-buttons {
	flex: 0 0 auto;
	margin: 0;
}

.wp-block-button.is-style-momentum-arrow .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	background: transparent;
	color: var(--wp--preset--color--forest);
	border: 2px solid currentColor;
	font-size: var(--wp--preset--font-size--medium);
	padding: 0.95rem 1.6rem 0.95rem 2rem;
	transition: background var(--wp--custom--transition--base),
		color var(--wp--custom--transition--base),
		border-color var(--wp--custom--transition--base);
}

.wp-block-button.is-style-momentum-arrow .wp-block-button__link::after {
	content: "→";
	position: relative;
	top: -0.08em;
	line-height: 1;
	transition: transform var(--wp--custom--transition--base);
}

.wp-block-button.is-style-momentum-arrow .wp-block-button__link:hover,
.wp-block-button.is-style-momentum-arrow .wp-block-button__link:focus-visible {
	background: var(--wp--preset--color--forest);
	border-color: var(--wp--preset--color--forest);
	color: var(--wp--preset--color--paper);
}

.wp-block-button.is-style-momentum-arrow .wp-block-button__link:hover::after,
.wp-block-button.is-style-momentum-arrow .wp-block-button__link:focus-visible::after {
	transform: translateX(0.3rem);
}

.wp-block-button.is-style-momentum-arrow .wp-block-button__link:focus-visible {
	outline: 2px solid var(--wp--preset--color--forest);
	outline-offset: 3px;
}

@media (max-width: 599px) {
	.momentum-cta-panel > .wp-block-buttons,
	.momentum-cta-panel > .wp-block-buttons .wp-block-button,
	.momentum-cta-panel .wp-block-button__link {
		width: 100%;
		justify-content: center;
	}
}

/* -------------------------------------------------------------------------- */
/* Clients & partners highlights                                              */
/* -------------------------------------------------------------------------- */

.momentum-highlight {
	height: 100%;
	padding-left: 1.25rem;
	border-left: 3px solid var(--wp--preset--color--green);
}

.momentum-highlight > * {
	margin-block: 0;
}

.momentum-highlight > * + * {
	margin-top: 0.5rem;
}

/* -------------------------------------------------------------------------- */
/* Events                                                                     */
/* -------------------------------------------------------------------------- */

.momentum-event-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--wp--preset--color--paper);
	border-radius: var(--wp--custom--radius--medium);
	box-shadow: var(--wp--preset--shadow--soft);
}

/* height:auto matters: the img's height attribute would otherwise win over
   aspect-ratio and show the whole photograph at full height. */
.momentum-event-card__image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.momentum-event-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 0.6rem;
	padding: var(--wp--preset--spacing--50);
}

.momentum-event-card__body > * {
	margin: 0;
}

.momentum-event-card h3 a {
	color: inherit;
	text-decoration: none;
}

.momentum-event-card h3 a:hover {
	color: var(--wp--preset--color--green-deep);
}

.momentum-event-card__footer {
	margin-top: auto !important;
	padding-top: 0.5rem;
}

.momentum-event-card__footer:empty {
	display: none;
}

.momentum-event-card.is-past {
	background: var(--wp--preset--color--frost);
	box-shadow: none;
	border: 1px solid var(--wp--preset--color--grey);
}

.momentum-badge {
	display: inline-block;
	padding: 0.3rem 0.8rem;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--grey);
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.momentum-events__empty {
	padding: var(--wp--preset--spacing--50);
	border-radius: var(--wp--custom--radius--medium);
	background: var(--wp--preset--color--frost);
	text-align: center;
}

/* -------------------------------------------------------------------------- */
/* Single event: title on a cream band, photograph beside it overlapping into  */
/* the white area, the details box straight below the photograph.            */
/* -------------------------------------------------------------------------- */

/*
 * The band belongs to the title block but spans the whole viewport: a filled
 * border-image outset paints beyond the box without affecting layout or
 * causing horizontal scroll. The photograph in the next column is painted
 * after it, so it sits on top and runs on below the band.
 */
.momentum-event-layout__head {
	border-image-source: linear-gradient(var(--wp--preset--color--cream), var(--wp--preset--color--cream));
	border-image-slice: 0 fill;
	border-image-outset: 0 100vw;
}

.momentum-event-layout .wp-block-post-featured-image img {
	box-shadow: var(--wp--preset--shadow--lifted);
}

/* Without a photograph the details box sits on the band, so give it a fill. */
.momentum-event-meta {
	background: var(--wp--preset--color--paper);
}

.momentum-event-layout__aside > .wp-block-post-featured-image + .momentum-event-meta,
.momentum-event-layout__aside > .momentum-event-meta:first-child {
	margin-top: 0;
}

.momentum-event-layout__aside > .momentum-event-meta:first-child {
	margin-top: var(--wp--preset--spacing--70);
}

/* Stacked: title, photograph, details, then the description. */
@media (max-width: 781px) {
	.momentum-event-layout > .wp-block-column {
		display: contents;
	}

	.momentum-event-layout > .wp-block-column > * {
		flex-basis: 100%;
		width: 100%;
	}

	.momentum-event-layout__head {
		order: 1;
	}

	.momentum-event-layout__aside > .wp-block-post-featured-image {
		order: 2;
		margin-top: var(--wp--preset--spacing--50) !important;
	}

	.momentum-event-layout__aside > .momentum-event-meta {
		order: 3;
		margin-top: var(--wp--preset--spacing--50) !important;
	}

	.momentum-event-layout__body {
		order: 4;
	}
}

/* -------------------------------------------------------------------------- */
/* Inner pages: call-to-action panel and coaching                             */
/* -------------------------------------------------------------------------- */

.momentum-cta-banner {
	border-radius: var(--wp--custom--radius--large);
}

.momentum-cta-banner > * {
	margin-block: 0;
}

.momentum-cta-banner > * + * {
	margin-top: 1.25rem;
}

.momentum-coach .wp-block-image img {
	max-width: 220px;
	margin-inline: auto;
}

/* -------------------------------------------------------------------------- */
/* Forms — Contact Form 7 and MailerLite, styled to match the theme buttons   */
/* -------------------------------------------------------------------------- */

.wpcf7-form label {
	display: block;
	font-weight: 700;
	font-size: var(--wp--preset--font-size--small);
	margin-bottom: 1rem;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form select,
.wpcf7-form textarea {
	box-sizing: border-box;
	display: block;
	width: 100%;
	margin-top: 0.35rem;
	padding: 0.75rem 1rem;
	font: inherit;
	color: inherit;
	background: var(--wp--preset--color--paper);
	border: 1px solid var(--wp--preset--color--grey);
	border-radius: var(--wp--custom--radius--small);
	transition: border-color var(--wp--custom--transition--base),
		box-shadow var(--wp--custom--transition--base);
}

.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
	border-color: var(--wp--preset--color--green);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--green) 25%, transparent);
	outline: none;
}

.wpcf7-form textarea {
	min-height: 9rem;
	resize: vertical;
}

.wpcf7-form input[type="submit"] {
	border: 0;
	cursor: pointer;
	background: var(--wp--preset--color--green-deep);
	color: var(--wp--preset--color--paper);
	font-family: var(--wp--preset--font-family--body);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--small);
	padding: 0.85rem 1.75rem;
	border-radius: var(--wp--custom--radius--pill);
	transition: background var(--wp--custom--transition--base);
}

.wpcf7-form input[type="submit"]:hover {
	background: var(--wp--preset--color--forest);
}

/* The honeypot field must be unreachable, not merely invisible. */
.momentum-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.wpcf7 form .wpcf7-response-output {
	margin: 1.5rem 0 0;
	padding: 0.85rem 1.25rem;
	border-radius: var(--wp--custom--radius--small);
	border-width: 1px;
	font-size: var(--wp--preset--font-size--small);
}

.wpcf7 form.sent .wpcf7-response-output {
	border-color: var(--wp--preset--color--green);
	background: color-mix(in srgb, var(--wp--preset--color--sage) 35%, transparent);
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
	border-color: var(--wp--preset--color--terracotta);
	background: color-mix(in srgb, var(--wp--preset--color--terracotta) 12%, transparent);
}

.wpcf7-not-valid-tip {
	color: var(--wp--preset--color--terracotta);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
}

/*
 * MailerLite plugin forms (MailerLite → Forms → "Custom form", shown with the
 * MailerLite block). These have no Custom CSS field of their own; the
 * div.mailerlite-form prefix outranks the plugin's mailerlite_forms.css.
 * Forms embedded from the MailerLite app use other classes — see
 * docs/mailerlite.css.
 */
div.mailerlite-form {
	box-sizing: border-box;
	max-width: 40rem;
	margin-block: var(--wp--preset--spacing--40);
	padding: clamp(1.5rem, 4vw, 2.5rem);
	background: var(--wp--preset--color--cream);
	border-radius: var(--wp--custom--radius--medium);
}

div.mailerlite-form .mailerlite-form-title h3,
div.mailerlite-form .mailerlite-form-description {
	margin: 0 0 1.25rem;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
	line-height: 1.3;
	color: var(--wp--preset--color--forest);
}

div.mailerlite-form .mailerlite-form-title + .mailerlite-form-description {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 400;
	color: inherit;
}

div.mailerlite-form .mailerlite-form-description > :first-child { margin-top: 0; }
div.mailerlite-form .mailerlite-form-description > :last-child { margin-bottom: 0; }

/* Email field and button on one row; they stack when the row gets narrow. */
div.mailerlite-form .mailerlite-form-inputs {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 0.75rem;
}

div.mailerlite-form .mailerlite-form-field {
	flex: 1 1 15rem;
	margin: 0;
}

div.mailerlite-form .mailerlite-form-field label {
	font-weight: 700;
	font-size: var(--wp--preset--font-size--small);
	margin-bottom: 0.35rem;
}

div.mailerlite-form .mailerlite-form-field label:empty {
	display: none;
}

div.mailerlite-form input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]) {
	box-sizing: border-box;
	display: block;
	width: 100%;
	min-height: 3.25rem;
	padding: 0.6rem 1.1rem;
	font: inherit;
	color: inherit;
	background: var(--wp--preset--color--paper);
	border: 1px solid var(--wp--preset--color--grey);
	border-radius: var(--wp--custom--radius--pill);
	transition: border-color var(--wp--custom--transition--base),
		box-shadow var(--wp--custom--transition--base);
}

div.mailerlite-form input:focus {
	border-color: var(--wp--preset--color--green);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--green) 25%, transparent);
	outline: none;
}

div.mailerlite-form .mailerlite-subscribe-button-container {
	flex: 0 0 auto;
	text-align: left;
}

div.mailerlite-form .mailerlite-subscribe-submit {
	border: 0;
	cursor: pointer;
	background: var(--wp--preset--color--green-deep);
	color: var(--wp--preset--color--paper);
	font-family: var(--wp--preset--font-family--body);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
	min-height: 3.25rem;
	padding: 0.6rem 1.75rem;
	border-radius: var(--wp--custom--radius--pill);
	transition: background var(--wp--custom--transition--base), opacity var(--wp--custom--transition--base);
}

div.mailerlite-form .mailerlite-subscribe-submit:hover,
div.mailerlite-form .mailerlite-subscribe-submit:focus-visible {
	background: var(--wp--preset--color--forest);
}

div.mailerlite-form .mailerlite-subscribe-submit:disabled {
	opacity: 0.6;
	cursor: wait;
}

div.mailerlite-form .mailerlite-form-loader {
	flex-basis: 100%;
	margin: 0;
	padding: 0.85rem 0;
	text-align: left;
	color: var(--wp--preset--color--graphite);
}

div.mailerlite-form .mailerlite-form-error {
	margin-top: 0.35rem;
	padding-inline: 1.1rem;
	color: var(--wp--preset--color--terracotta);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
}

div.mailerlite-form .mailerlite-form-response {
	margin: 0;
	padding: 0.85rem 1.25rem;
	text-align: left;
	color: var(--wp--preset--color--forest);
	background: color-mix(in srgb, var(--wp--preset--color--sage) 35%, transparent);
	border: 1px solid var(--wp--preset--color--green);
	border-radius: var(--wp--custom--radius--small);
}

div.mailerlite-form .mailerlite-form-response :is(h1, h2, h3, h4, h5, h6, p) {
	margin: 0;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 700;
	color: inherit;
}

/* The success message editor saves its own colour inline. */
div.mailerlite-form .mailerlite-form-response [style*="color"] {
	color: inherit !important;
}

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

.momentum-footer a {
	text-decoration: none;
}

.momentum-footer ul {
	list-style: none;
	padding-left: 0;
}

.momentum-footer a:hover {
	text-decoration: underline;
}

/* Logo and sentence side by side. */
.momentum-footer__identity > p {
	margin: 0;
	max-width: 22ch;
}

/* Five columns need room; on a tablet the brand column takes a row of its own. */
@media (min-width: 782px) and (max-width: 1179px) {
	.momentum-footer__columns.wp-block-columns {
		flex-wrap: wrap !important;
	}

	.momentum-footer__columns > .momentum-footer__brand {
		flex-basis: 100% !important;
	}

	.momentum-footer__columns > .wp-block-column:not(.momentum-footer__brand) {
		flex-basis: calc(25% - var(--wp--preset--spacing--50)) !important;
	}
}

.momentum-footer .wp-block-button__link {
	white-space: nowrap;
}

/* "Proud members of": logos at a common size. multiply lets a logo uploaded
   on a white square sit on the footer colour without a visible box. */
.momentum-member-logo {
	margin-block: 0 1rem;
}

.momentum-member-logo img {
	display: block;
	width: auto;
	max-width: 9rem;
	max-height: 4.5rem;
	mix-blend-mode: multiply;
}

/* Bottom row: copyright left, email and LinkedIn as round buttons right. */
.momentum-year {
	white-space: nowrap;
}

.momentum-social.wp-block-social-links {
	gap: 0.6rem;
	margin: 0;
}

.momentum-social .wp-social-link {
	transition: background-color var(--wp--custom--transition--base), transform var(--wp--custom--transition--base);
}

.momentum-social .wp-social-link:hover {
	background-color: var(--wp--preset--color--forest) !important;
	transform: translateY(-2px);
}

.momentum-social .wp-social-link a {
	padding: 0.5em;
}

/*
 * Website Carbon badge, restyled to the brand.
 *
 * The badge injects its own stylesheet, keyed on #wcb and two custom
 * properties. One extra class outranks it, and the properties recolour it.
 * The "wcb-d" variant is meant for dark backgrounds; on this light footer its
 * white caption is made legible.
 */
.momentum-carbon {
	margin-top: var(--wp--preset--spacing--50);
}

.momentum-carbon #wcb.carbonbadge {
	--b1: var(--wp--preset--color--forest);
	--b2: var(--wp--preset--color--green);
	font-size: 13px;
	text-align: left;
	color: var(--wp--preset--color--forest);
}

.momentum-carbon #wcb #wcb_g,
.momentum-carbon #wcb #wcb_a,
.momentum-carbon #wcb #wcb_2 {
	font-family: var(--wp--preset--font-family--body);
}

.momentum-carbon #wcb #wcb_g {
	border-radius: var(--wp--custom--radius--pill) 0 0 var(--wp--custom--radius--pill);
	padding-inline: 0.9em 0.6em;
	background: var(--wp--preset--color--paper);
	border-color: var(--wp--preset--color--green);
}

.momentum-carbon #wcb.carbonbadge #wcb_a {
	border-radius: 0 var(--wp--custom--radius--pill) var(--wp--custom--radius--pill) 0;
	padding-inline: 0.6em 0.9em;
	background: var(--wp--preset--color--forest);
	border-color: var(--wp--preset--color--forest);
	color: var(--wp--preset--color--paper);
	text-decoration: none;
}

.momentum-carbon #wcb.carbonbadge #wcb_2 {
	display: block;
	margin-top: 0.35em;
	color: var(--wp--preset--color--graphite);
	font-size: 0.9em;
}

/* -------------------------------------------------------------------------- */
/* Editor-only corrections                                                    */
/* -------------------------------------------------------------------------- */

.editor-styles-wrapper .momentum-portrait,
.editor-styles-wrapper .wp-block-image.is-style-momentum-ring {
	max-width: 190px;
}
