/* base */

:where(h1, h2, h3, h4, h5, h6) {
	text-wrap: balance;
}

:where(p, li) {
	text-wrap: pretty;
}

/* display line height only from 34px up */
:is(h1, h2):is(.has-x-small-font-size, .has-small-font-size, .has-medium-font-size, .has-large-font-size, .has-x-large-font-size) {
	line-height: 1.3;
}

/* huge is the H2 size, so the page's one H1 gets display-xl */
h1.has-huge-font-size {
	font-size: var(--wp--custom--font-size--display-xl) !important;
}

/* page titles match the section H2s; cart and checkout keep the quieter size */
h1.has-xx-large-font-size:not(.fp-checkout > h1) {
	font-size: var(--wp--preset--font-size--huge) !important;
}

/* paragraphs never drop below body size, fine print below body-s */
p.has-small-font-size {
	font-size: var(--wp--custom--font-size--body) !important;
}

p.has-x-small-font-size {
	font-size: var(--wp--custom--font-size--body-s) !important;
}

/* light covers take ink, not core's pure black */
.wp-block-cover.is-light:not(.has-text-color) {
	color: var(--wp--preset--color--ink);
}

/* brand focus ring on every link, button and field */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

/* text fields focus in ink; on a form, red means an error */
:where(input:not([type="checkbox"], [type="radio"], [type="button"], [type="submit"]), select, textarea):focus-visible {
	outline-color: var(--wp--preset--color--ink);
}

/* the red ring is under 3:1 on night, so focus turns light there */
:is(.is-style-section-dark, .fp-footer) :focus-visible {
	outline-color: var(--wp--preset--color--on-night);
}

/* easing curves shared with the blocks plugin: the prototype's exact ones where linear() works */
:root {
	--fp-ease-power1-out: cubic-bezier(0.333, 0.667, 0.667, 1);
	--fp-ease-power2-out: cubic-bezier(0.333, 1, 0.667, 1);
	--fp-ease-power2-in-out: cubic-bezier(0.645, 0.045, 0.355, 1);
	--fp-ease-power3-out: cubic-bezier(0.165, 0.84, 0.44, 1);
}

@supports (animation-timing-function: linear(0, 1)) {
	:root {
		--fp-ease-power1-out: linear(0, 0.031, 0.0615, 0.0916, 0.1211, 0.1501, 0.1787, 0.2068, 0.2344, 0.2615, 0.2881, 0.3142, 0.3398, 0.365, 0.3896, 0.4138, 0.4375, 0.4607, 0.4834, 0.5056, 0.5273, 0.5486, 0.5693, 0.5896, 0.6094, 0.6287, 0.6475, 0.6658, 0.6836, 0.7009, 0.7178, 0.7341, 0.75, 0.7654, 0.7803, 0.7947, 0.8086, 0.822, 0.835, 0.8474, 0.8594, 0.8708, 0.8818, 0.8923, 0.9023, 0.9119, 0.9209, 0.9294, 0.9375, 0.9451, 0.9521, 0.9587, 0.9648, 0.9705, 0.9756, 0.9802, 0.9844, 0.988, 0.9912, 0.9939, 0.9961, 0.9978, 0.999, 0.9998, 1);
		--fp-ease-power2-out: linear(0, 0.0461, 0.0909, 0.1341, 0.176, 0.2165, 0.2557, 0.2935, 0.3301, 0.3653, 0.3993, 0.4321, 0.4636, 0.494, 0.5232, 0.5512, 0.5781, 0.6039, 0.6287, 0.6524, 0.675, 0.6967, 0.7174, 0.7371, 0.7559, 0.7737, 0.7907, 0.8068, 0.822, 0.8364, 0.8501, 0.8629, 0.875, 0.8864, 0.897, 0.907, 0.9163, 0.9249, 0.933, 0.9404, 0.9473, 0.9536, 0.9594, 0.9647, 0.9695, 0.9738, 0.9778, 0.9813, 0.9844, 0.9871, 0.9895, 0.9916, 0.9934, 0.9949, 0.9962, 0.9972, 0.998, 0.9987, 0.9992, 0.9995, 0.9998, 0.9999, 1, 1, 1);
		--fp-ease-power2-in-out: linear(0, 0, 0.0001, 0.0004, 0.001, 0.0019, 0.0033, 0.0052, 0.0078, 0.0111, 0.0153, 0.0203, 0.0264, 0.0335, 0.0419, 0.0515, 0.0625, 0.075, 0.089, 0.1047, 0.1221, 0.1413, 0.1625, 0.1857, 0.2109, 0.2384, 0.2682, 0.3003, 0.335, 0.3721, 0.412, 0.4546, 0.5, 0.5454, 0.588, 0.6279, 0.665, 0.6997, 0.7318, 0.7616, 0.7891, 0.8143, 0.8375, 0.8587, 0.8779, 0.8953, 0.911, 0.925, 0.9375, 0.9485, 0.9581, 0.9665, 0.9736, 0.9797, 0.9847, 0.9889, 0.9922, 0.9948, 0.9967, 0.9981, 0.999, 0.9996, 0.9999, 1, 1);
		--fp-ease-power3-out: linear(0, 0.0611, 0.1193, 0.1747, 0.2275, 0.2777, 0.3255, 0.3708, 0.4138, 0.4546, 0.4932, 0.5297, 0.5642, 0.5968, 0.6275, 0.6564, 0.6836, 0.7091, 0.7331, 0.7556, 0.7766, 0.7962, 0.8145, 0.8316, 0.8474, 0.8621, 0.8757, 0.8883, 0.8999, 0.9106, 0.9203, 0.9293, 0.9375, 0.945, 0.9517, 0.9578, 0.9634, 0.9683, 0.9728, 0.9767, 0.9802, 0.9833, 0.986, 0.9884, 0.9905, 0.9922, 0.9937, 0.995, 0.9961, 0.997, 0.9977, 0.9983, 0.9988, 0.9991, 0.9994, 0.9996, 0.9998, 0.9999, 0.9999, 1, 1, 1, 1, 1, 1);
	}
}

/* templates own their spacing, so the footer sits right after the content */
.wp-site-blocks > footer.wp-block-template-part {
	margin-block-start: 0;
}

/* header */

.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 50;
	border-bottom: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--white);
}

/* the admin bar scrolls away on small screens, so stick to the very top */
@media (max-width: 600px) {
	.wp-site-blocks > header.wp-block-template-part {
		top: 0;
	}
}

@supports (animation-timeline: scroll()) {
	.wp-site-blocks > header.wp-block-template-part {
		animation: fp-header-scrolled linear both;
		animation-timeline: scroll();
		animation-range: 0 60px;
	}
}

@keyframes fp-header-scrolled {
	to {
		box-shadow: var(--wp--preset--shadow--soft);
	}
}

/* the drawer's top row reuses this, so its close button lands where the menu button was */
:root {
	--fp-header-height: 4.25rem;
}

@media (min-width: 640px) {
	:root {
		--fp-header-height: 5rem;
	}
}

.fp-header__bar {
	min-height: var(--fp-header-height);
	gap: 2rem;
}

/* the logo steps down on phones so it keeps its air in the shorter bar */
@media (max-width: 639px) {
	.fp-header__logo img {
		width: 9.25rem;
	}
}

.fp-header__actions {
	gap: 0.75rem;
}

/* same 44px height as the search and cart */
.fp-header__cta .wp-block-button > .wp-block-button__link {
	min-height: 2.75rem;
	padding-inline: 1.5rem;
	white-space: nowrap;
}

@media (hover: hover) {
	.fp-header__cta .wp-block-button > .wp-block-button__link:hover {
		box-shadow: 0 6px 16px -6px rgb(180 32 26 / 0.5);
	}
}

/* desktop menu links */

.fp-header__nav .wp-block-navigation__container {
	gap: 1.5rem;
}

.fp-header__nav .wp-block-navigation-item__content {
	position: relative;
	padding: 0.3rem 0;
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--dm-mono);
	font-size: var(--wp--custom--font-size--label);
	font-weight: 500;
	letter-spacing: 0.1em;
	/* mono spaces are wide enough to split "pemf therapy" into two items */
	word-spacing: -0.25em;
	line-height: 1.5;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
}

/* an overlay, not a border, so the label stays centred with the logo and buttons */
.fp-header__nav .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 2px;
	border-radius: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s var(--fp-ease-power2-out);
}

/* hover draws an ink underline; red stays with the current page */
.fp-header__nav .current-menu-item > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--accent);
}

.fp-header__nav .wp-block-navigation-item__content:hover::after,
.fp-header__nav .current-menu-item > .wp-block-navigation-item__content::after {
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.fp-header__nav .wp-block-navigation-item__content::after {
		transition: none;
	}
}

@media (min-width: 1280px) {
	.fp-header__nav .wp-block-navigation__container {
		gap: 2rem;
	}
}

/* collapse to the hamburger below 1024px instead of core's 600px */
@media (min-width: 600px) and (max-width: 1023px) {
	.fp-header__nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}
}

@media (max-width: 1023px) {
	/* cart and menu buttons sit together on the right */
	.fp-header__bar {
		column-gap: 0.25rem;
	}

	/* two classes beat core's margin: 0 on flex children, which left the cart stranded mid-bar */
	.fp-header__bar > .fp-header__actions {
		margin-left: auto;
	}

	.fp-header__nav {
		order: 3;
	}

	/* extra classes beat the buttons block's own display: flex */
	.fp-header__actions .wp-block-buttons.fp-header__cta {
		display: none;
	}
}

/* round icon buttons: search, cart, menu and close */
.fp-header :is(.wc-block-mini-cart__button, .wp-block-navigation__responsive-container-open, .wp-block-navigation__responsive-container-close, .fp-search-toggle) {
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	-webkit-tap-highlight-color: transparent;
	transition: background-color 0.2s;
}

@media (hover: hover) {
	.fp-header :is(.wc-block-mini-cart__button, .wp-block-navigation__responsive-container-open, .wp-block-navigation__responsive-container-close, .fp-search-toggle):hover {
		background: var(--wp--preset--color--tint);
	}
}

.fp-header :is(.wc-block-mini-cart__button, .wp-block-navigation__responsive-container-open, .wp-block-navigation__responsive-container-close, .fp-search-toggle):active {
	background: var(--wp--preset--color--line);
}

.fp-header :is(.wc-block-mini-cart__button, .wp-block-navigation__responsive-container-open, .wp-block-navigation__responsive-container-close, .fp-search-toggle):focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

/* menu and close hang past the edge so their icons, not their tap areas, line up with the logo */
.fp-header__nav :is(.wp-block-navigation__responsive-container-open, .wp-block-navigation__responsive-container-close) {
	margin-right: -0.9375rem;
}

/* the cart glyph fills its box, so it runs at the search icon's size */
.fp-header__cart .wc-block-mini-cart__button .wc-block-mini-cart__icon {
	width: 1.25rem;
	height: 1.25rem;
}

/* cart count: a brand pill on the cart's corner; the white ring keeps it off the icon */
.fp-header__cart .wc-block-mini-cart__badge {
	top: -0.75rem;
	right: -0.9375rem;
	left: auto;
	min-width: 1.125rem;
	height: 1.125rem;
	margin: 0;
	padding: 0 0.3125rem;
	transform: none;
	/* important: woo's script inlines swapped colours after load (white pill, red digit) */
	background-color: var(--wp--preset--color--accent) !important;
	box-shadow: 0 0 0 2px var(--wp--preset--color--white);
	color: var(--wp--preset--color--white) !important;
	font-size: 0.6875rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	line-height: 1;
}

.fp-header__nav .fp-nav-cta {
	display: none;
}

/* the cart drawer is ui, so it stays in the sans; its bold text would otherwise pull in Mont Heavy on every page */
.wc-block-mini-cart__drawer p {
	font-family: var(--wp--preset--font-family--dm-sans);
}

/* woocommerce rings its buttons in wp-admin blue on every focus, clicks included; they get the site's ring, keyboard only */
:root .wc-block-components-button:not(.is-link):focus {
	box-shadow: none;
	outline: none;
}

:root .wc-block-components-button:not(.is-link):focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

/* stand-in for the ghl chat bubble until someone opens chat: same size, spot and icon, so the swap doesn't show */
.fp-chat {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--white);
}

@media (max-width: 639px) {
	.fp-chat {
		width: 48px;
		height: 48px;
	}
}

/* room below the footer's last lines so they scroll clear of the bubble */
body:has(.fp-chat, chat-widget) .fp-footer {
	padding-bottom: 5.5rem;
}

.fp-chat[aria-busy="true"] {
	cursor: progress;
}

@media (prefers-reduced-motion: no-preference) {
	.fp-chat[aria-busy="true"] {
		animation: fp-wait 0.8s ease-in-out infinite alternate;
	}
}

@keyframes fp-wait {
	to {
		opacity: 0.7;
	}
}

/* the ghl chat bubble sits over the drawers' bottom buttons */
.has-modal-open :is(chat-widget, .fp-chat),
body:has(.wc-block-components-drawer__screen-overlay:not(.wc-block-components-drawer__screen-overlay--is-hidden)) :is(chat-widget, .fp-chat) {
	display: none;
}

/* woocommerce only fades a closed drawer out, which left its links in the tab order; hidden once the slide ends */
.wc-block-components-drawer__screen-overlay--is-hidden {
	visibility: hidden;
	transition: opacity 0.3s, visibility 0s 0.3s;
}

/* cart drawer: the cart page's rows, pill, prices and buttons in a side panel */
.wc-block-mini-cart__drawer.wc-block-components-drawer {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--ink);
}

/* "Your cart" set like the pages' "Order summary", level with the close button; the padding holds woocommerce's fade over scrolled rows */
.wc-block-mini-cart__drawer h2.wc-block-mini-cart__title {
	margin: 1.5rem 5rem -1.5rem 1.5rem;
	padding-bottom: 1.5rem;
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.3;
}

/* close: the header's round icon button; woocommerce pins its colour, padding and background with !important */
.wc-block-mini-cart__drawer .wc-block-components-button.wc-block-components-drawer__close {
	top: 1.25rem;
	right: 1rem;
	width: 2.75rem;
	height: 2.75rem;
	margin: 0;
	padding: 0 !important;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	color: var(--wp--preset--color--ink) !important;
	opacity: 1;
	transition: background-color 0.2s;
}

@media (hover: hover) {
	.wc-block-mini-cart__drawer .wc-block-components-button.wc-block-components-drawer__close:hover {
		background: var(--wp--preset--color--tint) !important;
	}
}

.wc-block-mini-cart__drawer .wc-block-components-button.wc-block-components-drawer__close:active {
	background: var(--wp--preset--color--line) !important;
}

.wc-block-mini-cart__drawer .wc-block-mini-cart__items {
	padding: 0.5rem 1.5rem 0;
}

/* rows: a framed photo beside name, unit price and quantity, the line total on the right; each ends on a hairline so a short cart has a clear end */
.wc-block-mini-cart__drawer .wc-block-mini-cart__products-table table.wc-block-cart-items .wc-block-cart-items__row {
	grid-template-columns: 4.5rem minmax(0, 1fr) auto;
	column-gap: 1rem;
	padding: 1.25rem 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.wc-block-mini-cart__drawer .wc-block-mini-cart__products-table table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image {
	padding: 0;
}

.wc-block-mini-cart__drawer table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image img {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 8px;
	background: var(--wp--preset--color--white);
}

/* woocommerce's narrow grid lets the details span the total's column */
.wc-block-mini-cart__drawer .wc-block-mini-cart__products-table table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__product {
	grid-column: 2;
}

.wc-block-mini-cart__drawer .wc-block-mini-cart__products-table table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total {
	grid-column: 3;
	grid-row: 1;
	font-size: 1rem;
	line-height: 1.4;
}

.wc-block-mini-cart__drawer table.wc-block-cart-items .wc-block-cart-items__row a.wc-block-components-product-name {
	margin-bottom: 0.125rem;
	color: var(--wp--preset--color--ink);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.4;
	text-decoration: none;
}

.wc-block-mini-cart__drawer table.wc-block-cart-items .wc-block-cart-items__row a.wc-block-components-product-name:hover {
	color: var(--wp--preset--color--accent);
}

/* the drawer stays short: name, price and quantity; the full description is a tap away on the product page */
.wc-block-mini-cart__drawer .wc-block-components-product-metadata__description {
	display: none;
}

/* a new item stays a hidden row until the server answers; a row-sized placeholder holds its place */
.wc-block-mini-cart__drawer .wc-block-mini-cart__products-table:has(tr.wc-block-cart-items__row[hidden])::after {
	content: "";
	display: block;
	box-sizing: content-box;
	height: 6.5rem;
	margin: 0 2px;
	padding: 1.25rem 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
	background:
		linear-gradient(var(--wp--preset--color--line) 0 0) 0 0 / 4.5rem 4.5rem,
		linear-gradient(var(--wp--preset--color--line) 0 0) 5.5rem 0.25rem / 45% 1rem,
		linear-gradient(var(--wp--preset--color--line) 0 0) 5.5rem 1.75rem / 20% 0.875rem;
	background-repeat: no-repeat;
	background-origin: content-box;
	background-clip: content-box;
}

.wc-block-mini-cart__drawer:has(tr.wc-block-cart-items__row[hidden]) .wc-block-mini-cart__footer-subtotal {
	opacity: 0.4;
}

@media (prefers-reduced-motion: no-preference) {
	.wc-block-mini-cart__drawer .wc-block-mini-cart__products-table:has(tr.wc-block-cart-items__row[hidden])::after {
		animation: fp-wait 0.8s ease-in-out infinite alternate;
	}
}

/* prices are specs: mono; the unit price is a grey footnote, the line total the number that counts */
.wc-block-mini-cart__drawer .wc-block-components-formatted-money-amount {
	font-family: var(--wp--preset--font-family--dm-mono);
}

.wc-block-mini-cart__drawer .wc-block-cart-item__total {
	color: var(--wp--preset--color--ink);
	font-weight: 500;
}

.wc-block-mini-cart__drawer .wc-block-cart-item__prices,
.wc-block-mini-cart__drawer .wc-block-cart-item__prices .wc-block-components-formatted-money-amount {
	color: var(--wp--preset--color--body-grey);
	font-size: 0.875rem;
	font-weight: 400;
}

.wc-block-mini-cart__drawer .wc-block-components-product-badge {
	padding: 0.125rem 0.5rem;
	border: 0;
	border-radius: 999px;
	background: var(--wp--preset--color--tint);
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--dm-mono);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.05em;
}

/* quick taps on +/- (product, cart, drawer) must not trigger ios double-tap zoom; pinch zoom still works */
.wc-block-components-quantity-selector {
	touch-action: manipulation;
}

/* the cart page's quantity pill: 44px round +/- inside a 48px pill */
.wc-block-mini-cart__drawer .wc-block-cart-item__quantity .wc-block-components-quantity-selector {
	align-items: center;
	width: auto;
	height: 3rem;
	margin: 0;
	border: 1px solid var(--wp--preset--color--line-strong);
	border-radius: 999px;
	background: var(--wp--preset--color--white);
}

.wc-block-mini-cart__drawer .wc-block-cart-item__quantity .wc-block-components-quantity-selector:has(input:focus-visible) {
	border-color: var(--wp--preset--color--ink);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--ink);
}

.wc-block-mini-cart__drawer .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
	flex: none;
	width: 2.5rem;
	min-width: 0;
	padding: 0;
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--dm-mono);
	font-size: 1rem;
}

.wc-block-mini-cart__drawer .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input:focus {
	box-shadow: none;
	outline: none;
}

.wc-block-mini-cart__drawer .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0.25rem;
	border-radius: 50%;
	background-clip: content-box;
	color: var(--wp--preset--color--ink);
	font-size: 1.25rem;
	line-height: 1;
	opacity: 1;
	transition: background-color 0.15s;
}

@media (hover: hover) {
	.wc-block-mini-cart__drawer .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:hover:not(:disabled) {
		background-color: var(--wp--preset--color--tint);
	}
}

.wc-block-mini-cart__drawer .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:active {
	background-color: var(--wp--preset--color--line);
}

.wc-block-mini-cart__drawer .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:disabled {
	opacity: 0.4;
}

.wc-block-mini-cart__drawer .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:focus {
	box-shadow: none;
}

.wc-block-mini-cart__drawer .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: -6px;
	background-color: var(--wp--preset--color--tint);
}

.wc-block-mini-cart__drawer table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity .wc-block-cart-item__remove-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	color: var(--wp--preset--color--body-grey);
	transition: background-color 0.15s, color 0.15s;
}

@media (hover: hover) {
	.wc-block-mini-cart__drawer table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity .wc-block-cart-item__remove-link:hover {
		background: var(--wp--preset--color--tint);
		color: var(--wp--preset--color--accent);
	}
}

/* trash icon for the drawer and the cart page, where react draws woocommerce's */
.wc-block-cart-item__remove-link svg {
	display: none;
}

.wc-block-cart-item__remove-link::before {
	content: "";
	width: 1.25rem;
	height: 1.25rem;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 7h16m-10 4v6m4-6v6M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2l1-12M9 7V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 7h16m-10 4v6m4-6v6M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2l1-12M9 7V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3'/%3E%3C/svg%3E") center / contain no-repeat;
}

.wc-block-mini-cart__drawer .wc-block-mini-cart__footer {
	padding: 1.25rem 1.5rem 1.5rem;
	border-top-color: var(--wp--preset--color--line);
}

/* subtotal reads like the cart page's total; the shipping note stays on phones too */
.wc-block-mini-cart__drawer .wc-block-mini-cart__footer .wc-block-components-totals-item.wc-block-mini-cart__footer-subtotal {
	margin-bottom: 1.25rem;
	font-weight: 500;
}

.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-subtotal :is(.wc-block-components-totals-item__label, .wc-block-components-totals-item__value) {
	font-size: var(--wp--preset--font-size--large);
}

.wc-block-mini-cart__drawer .wc-block-mini-cart__footer .wc-block-components-totals-item.wc-block-mini-cart__footer-subtotal .wc-block-components-totals-item__description {
	display: block;
	margin-top: 0.25rem;
	color: var(--wp--preset--color--body-grey);
	font-size: 0.875rem;
	font-weight: 400;
}

.wc-block-mini-cart__drawer .wc-block-mini-cart__footer .wc-block-mini-cart__footer-actions {
	gap: 0.75rem;
}

/* these are content-box, so the 48px would otherwise sit inside their padding */
.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-actions .wc-block-components-button {
	box-sizing: border-box;
	flex: 1 1 0;
	min-height: 3rem;
}

/* view my cart: the site's outline button (line-strong edge, ink), not woocommerce's inset ring */
.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-actions .wc-block-mini-cart__footer-cart.wc-block-components-button:not(.is-link) {
	border: 1px solid var(--wp--preset--color--line-strong);
	background: transparent;
	box-shadow: none;
	color: var(--wp--preset--color--ink);
	transition: border-color 0.2s, background-color 0.2s, color 0.2s, transform 0.2s;
}

.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-actions .wc-block-mini-cart__footer-cart.wc-block-components-button:not(.is-link):is(:hover, :focus-visible) {
	border-color: var(--wp--custom--color--outline-hover);
	background: var(--wp--custom--color--outline-hover);
	color: var(--wp--preset--color--white);
	transform: translateY(-1px);
}

/* empty: the cart page's empty state */
.wc-block-mini-cart__drawer .wc-block-mini-cart__empty-cart-wrapper {
	padding: 5rem 1.5rem 2rem;
}

.wc-block-mini-cart__drawer .fp-cart-empty__lead {
	margin-bottom: 0.5rem;
	color: var(--wp--preset--color--ink);
	font-weight: 500;
}

.wc-block-mini-cart__drawer .wc-block-mini-cart__empty-cart-wrapper .wp-block-buttons {
	margin-top: 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
	.wc-block-mini-cart__drawer :is(.wc-block-components-drawer__close, .wc-block-components-quantity-selector__button, .wc-block-cart-item__remove-link, .wc-block-mini-cart__footer-cart) {
		transition: none;
	}

	.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-actions .wc-block-mini-cart__footer-cart.wc-block-components-button:not(.is-link):is(:hover, :focus-visible) {
		transform: none;
	}
}

/* mobile drawer */

/* 0 closed, 1 open: animating this instead of translate keeps a resize past 1024px from replaying the slide */
@property --fp-drawer {
	syntax: "<number>";
	inherits: false;
	initial-value: 0;
}

@media (max-width: 1023px) {
	/* stays rendered but hidden while closed, so closing can animate too */
	.fp-header__nav .wp-block-navigation__responsive-container:not(.hidden-by-default) {
		display: flex;
		flex-direction: column;
		position: fixed;
		inset: 0 0 0 auto;
		z-index: 100000;
		width: min(24rem, 100% - 3.5rem);
		padding: 0;
		overflow-y: auto;
		overscroll-behavior: contain;
		border-radius: 1.25rem 0 0 1.25rem;
		box-shadow: -12px 0 48px rgb(28 25 23 / calc(0.12 * var(--fp-drawer)));
		translate: calc((1 - var(--fp-drawer)) * 100%) 0;
		visibility: hidden;
		animation: none;
	}

	.fp-header__nav .wp-block-navigation__responsive-container.is-menu-open {
		--fp-drawer: 1;
		visibility: visible;
	}

	/* the white panel lives here because core blanks the drawer's own background the moment it closes */
	.fp-header__nav .wp-block-navigation__responsive-close {
		display: flex;
		flex: 1 0 auto;
		flex-direction: column;
		box-sizing: border-box;
		max-width: none;
		margin: 0;
		padding: 0 max(var(--wp--style--root--padding-right), env(safe-area-inset-right)) max(2rem, env(safe-area-inset-bottom) + 1rem) var(--wp--style--root--padding-left);
		background: var(--wp--preset--color--white);
	}

	/* no gap: the navigation block's own spacing would push the links away from the close row */
	.fp-header__nav .wp-block-navigation__responsive-dialog {
		display: flex;
		flex: 1 0 auto;
		flex-direction: column;
		gap: 0;
	}

	/* core only clears the admin bar while open, so the contents would jump as the drawer slides away */
	.admin-bar .fp-header__nav .wp-block-navigation__responsive-dialog {
		margin-top: var(--wp-admin--admin-bar--height, 0px);
	}

	/* a top row as tall as the header, so the close button replaces the menu button in place */
	.fp-header__nav .wp-block-navigation__responsive-container:not(.hidden-by-default) .wp-block-navigation__responsive-container-close {
		display: flex;
		position: static;
		flex-shrink: 0;
		align-self: flex-end;
		margin-block: calc((var(--fp-header-height) - 2.75rem) / 2);
	}

	.fp-header__nav .wp-block-navigation__responsive-container:not(.hidden-by-default) .wp-block-navigation__responsive-container-content {
		display: flex;
		flex: 1 0 auto;
		flex-direction: column;
		align-items: stretch;
		padding-top: 0.25rem;
	}

	.fp-header__nav .wp-block-navigation__responsive-container:not(.hidden-by-default) .wp-block-navigation__container {
		flex: 1 0 auto;
		flex-direction: column;
		justify-content: flex-start;
		align-items: stretch;
		gap: 0.125rem;
	}

	/* core centres the rows; these run full width and left-aligned */
	.fp-header__nav .wp-block-navigation__responsive-container:not(.hidden-by-default) .wp-block-navigation-item {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		width: 100%;
	}

	/* the row highlight bleeds into the padding so the text lines up with the drawer edge */
	.fp-header__nav .wp-block-navigation__responsive-container:not(.hidden-by-default) .wp-block-navigation-item__content {
		display: flex;
		box-sizing: border-box;
		align-items: center;
		min-height: 3.25rem;
		margin-inline: -0.75rem;
		padding: 0.5rem 0.75rem;
		border-radius: 0.75rem;
		color: var(--wp--preset--color--ink);
		white-space: normal;
		-webkit-tap-highlight-color: transparent;
		transition: background-color 0.2s, color 0.2s;
	}

	.fp-header__nav .wp-block-navigation__responsive-container:not(.hidden-by-default) .wp-block-navigation-item__content::after {
		content: none;
	}

	.fp-header__nav .wp-block-navigation__responsive-container:not(.hidden-by-default) .current-menu-item > .wp-block-navigation-item__content {
		background: var(--wp--preset--color--accent-soft);
		color: var(--wp--preset--color--accent-dark);
	}

	.fp-header__nav .wp-block-navigation__responsive-container:not(.hidden-by-default) .wp-block-navigation-item:not(.fp-nav-cta) > .wp-block-navigation-item__content:active {
		background: var(--wp--preset--color--tint);
	}

	.fp-header__nav .wp-block-navigation__responsive-container:not(.hidden-by-default) .wp-block-navigation-item__content:focus-visible {
		outline: 2px solid var(--wp--preset--color--accent);
		outline-offset: -2px;
	}

	/* shop now sits at the bottom, styled like the site's buttons */
	.fp-header__nav .wp-block-navigation__responsive-container:not(.hidden-by-default) .fp-nav-cta {
		margin-top: auto;
		padding-top: 1.5rem;
	}

	.fp-header__nav .wp-block-navigation__responsive-container:not(.hidden-by-default) .fp-nav-cta > .wp-block-navigation-item__content {
		justify-content: center;
		min-height: 3rem;
		margin-inline: 0;
		padding: 0 28px;
		border-radius: 999px;
		background: var(--wp--preset--color--accent);
		color: var(--wp--preset--color--white);
		transition: transform 0.2s, background-color 0.2s;
	}

	.fp-header__nav .wp-block-navigation__responsive-container:not(.hidden-by-default) .fp-nav-cta > .wp-block-navigation-item__content:focus-visible {
		outline-offset: 2px;
	}

	/* dims the page behind the drawer; drawer.js closes the menu when it is tapped */
	.wp-site-blocks > header.wp-block-template-part::after {
		content: "";
		position: fixed;
		inset: 0;
		z-index: 99999;
		background: rgb(28 25 23 / 0.45);
		opacity: 0;
		visibility: hidden;
		cursor: pointer;
	}

	.wp-site-blocks > header.wp-block-template-part:has(.wp-block-navigation__responsive-container.is-menu-open)::after {
		opacity: 1;
		visibility: visible;
	}
}

@media (max-width: 1023px) and (hover: hover) {
	.fp-header__nav .wp-block-navigation__responsive-container:not(.hidden-by-default) .wp-block-navigation-item:not(.fp-nav-cta, .current-menu-item) > .wp-block-navigation-item__content:hover {
		background: var(--wp--preset--color--tint);
		color: var(--wp--preset--color--accent-dark);
	}

	.fp-header__nav .wp-block-navigation__responsive-container:not(.hidden-by-default) .fp-nav-cta > .wp-block-navigation-item__content:hover {
		background: var(--wp--preset--color--accent-dark);
	}
}

/* the press further down comes later at the same weight, so it wins while hovered */
@media (max-width: 1023px) and (hover: hover) and (prefers-reduced-motion: no-preference) {
	.fp-header__nav .wp-block-navigation__responsive-container:not(.hidden-by-default) .fp-nav-cta > .wp-block-navigation-item__content:hover {
		transform: translateY(-1px);
	}
}

@keyframes fp-drawer-item {
	from {
		opacity: 0;
		translate: 1rem 0;
	}
}

@media (max-width: 1023px) and (prefers-reduced-motion: no-preference) {
	/* closing is quick and speeds up; the drawer stays visible until it is off-screen */
	.fp-header__nav .wp-block-navigation__responsive-container:not(.hidden-by-default) {
		transition: --fp-drawer 0.26s cubic-bezier(0.4, 0, 1, 1), visibility 0s 0.26s;
	}

	/* opening slows into place, then the links follow one by one */
	.fp-header__nav .wp-block-navigation__responsive-container.is-menu-open {
		transition: --fp-drawer 0.42s var(--fp-ease-power3-out);
	}

	.wp-site-blocks > header.wp-block-template-part::after {
		transition: opacity 0.26s, visibility 0s 0.26s;
	}

	.wp-site-blocks > header.wp-block-template-part:has(.wp-block-navigation__responsive-container.is-menu-open)::after {
		transition: opacity 0.3s;
	}

	.fp-header__nav .is-menu-open .wp-block-navigation-item {
		animation: fp-drawer-item 0.4s var(--fp-ease-power2-out) calc(0.08s + var(--fp-i, 0) * 0.035s) both;
	}

	.fp-header__nav .is-menu-open .wp-block-navigation-item:nth-child(2) {
		--fp-i: 1;
	}

	.fp-header__nav .is-menu-open .wp-block-navigation-item:nth-child(3) {
		--fp-i: 2;
	}

	.fp-header__nav .is-menu-open .wp-block-navigation-item:nth-child(4) {
		--fp-i: 3;
	}

	.fp-header__nav .is-menu-open .wp-block-navigation-item:nth-child(5) {
		--fp-i: 4;
	}

	.fp-header__nav .is-menu-open .wp-block-navigation-item:nth-child(6) {
		--fp-i: 5;
	}

	.fp-header__nav .is-menu-open .wp-block-navigation-item:nth-child(7) {
		--fp-i: 6;
	}

	.fp-header__nav .wp-block-navigation__responsive-container:not(.hidden-by-default) .fp-nav-cta > .wp-block-navigation-item__content:active {
		transform: scale(0.98);
	}
}

/* search pill */

.fp-header__search .wp-block-search__inside-wrapper {
	flex-direction: row-reverse;
	width: 14rem;
	height: 2.75rem;
	padding: 0 0.75rem 0 0.25rem;
	background: var(--wp--preset--color--surface);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--line-strong) 45%, var(--wp--preset--color--line));
	border-radius: 8px;
	transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.fp-header__search .wp-block-search__inside-wrapper:hover {
	border-color: var(--wp--preset--color--line-strong);
}

.fp-header__search .wp-block-search__inside-wrapper:focus-within {
	border-color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--white);
	box-shadow: 0 0 0 4px rgb(28 25 23 / 0.1);
}

.fp-header__search .wp-block-search__inside-wrapper:focus-within .wp-block-search__button {
	color: var(--wp--preset--color--ink);
}

.fp-header__search .wp-block-search__input {
	min-width: 0;
	padding: 0 0.25rem;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--custom--font-size--body-s);
}

.fp-header__search .wp-block-search__input::placeholder {
	color: var(--wp--preset--color--body-grey);
	opacity: 1;
}

/* the wrapper shows the focus ring instead */
.fp-header__search .wp-block-search__input:focus {
	outline: none;
}

.fp-header__search .wp-block-search__button,
.fp-header__search .wp-block-search__button:hover {
	margin: 0;
	padding: 0 0.25rem 0 0.5rem;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--body-grey);
}

.fp-header__search .wp-block-search__button:hover {
	color: var(--wp--preset--color--accent);
}

.fp-header__search .wp-block-search__button svg {
	width: 1.125rem;
	height: 1.125rem;
	fill: currentColor;
}

@media (max-width: 639px), (min-width: 1024px) and (max-width: 1279px) {
	.fp-header__search {
		display: none;
	}
}

/* search button: only where the box is hidden, and it opens the box as a row under the bar */
.fp-search-toggle {
	display: none;
	color: var(--wp--preset--color--ink);
}

.fp-search-toggle::before {
	content: "";
	width: 1.25rem;
	height: 1.25rem;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (max-width: 639px), (min-width: 1024px) and (max-width: 1279px) {
	.fp-header .fp-search-toggle {
		display: inline-flex;
	}

	.fp-header__search.is-open {
		display: block;
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		padding: 0.75rem var(--wp--style--root--padding-right);
		border-bottom: 1px solid var(--wp--preset--color--line);
		background: var(--wp--preset--color--white);
		box-shadow: var(--wp--preset--shadow--soft);
	}

	.fp-header__search.is-open .wp-block-search__inside-wrapper {
		width: 100%;
		max-width: var(--wp--style--global--wide-size);
		margin-inline: auto;
	}

	/* under 16px, iOS zooms the page in when the field takes focus */
	.fp-header__search.is-open .wp-block-search__input {
		font-size: 1rem;
	}

	@media (prefers-reduced-motion: no-preference) {
		.fp-header__search.is-open {
			animation: fp-search-open 250ms var(--fp-ease-power2-out);
		}
	}
}

@keyframes fp-search-open {
	from {
		opacity: 0;
		translate: 0 -0.5rem;
	}
}

/* the button's gap to the cart matches the cart's to the menu */
@media (max-width: 639px) {
	.fp-header__actions {
		gap: 0.25rem;
	}
}

/* the search button brings a page's own form into view below the sticky header */
.fp-search-form .wp-block-search__input {
	scroll-margin-top: calc(var(--fp-header-height) + 1.5rem);
}

/* the browser's clear button isn't in the site's colours */
.wp-block-search__input::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
}

/* footer */

.fp-footer {
	padding-top: var(--wp--preset--spacing--70);
	padding-bottom: var(--wp--preset--spacing--60);
}

/* core forces menu links to inherit, so colour the menu and its items instead */
.fp-footer .fp-footer__muted,
.fp-footer .fp-footer__menu {
	color: var(--wp--preset--color--on-night-muted);
}

.fp-footer .fp-footer__menu .wp-block-navigation-item {
	transition: color 0.2s;
}

.fp-footer .fp-footer__menu .wp-block-navigation-item:hover {
	color: var(--wp--preset--color--on-night);
}

.fp-footer__menu .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--dm-sans);
	font-size: 0.875rem;
	font-weight: 400;
	text-decoration: none;
}

.fp-footer__menu .wp-block-navigation__container {
	gap: 0.625rem;
}

/* newsletter: ghl's form, loaded by newsletter.js and styled by its custom css in ghl */
.fp-newsletter {
	display: flow-root;
	min-height: 53.2px;
}

/* ghl's frames: 4px round the form for focus rings, plus the 5px ghl's embed script adds below */
:is(.fp-newsletter, .fp-contact__embed) iframe {
	display: block;
	width: calc(100% + 8px);
	margin: -4px -4px -9px;
	border: 0;
}

.fp-newsletter iframe {
	height: 66px;
}

/* cart, order and account pages drop the newsletter, so a short one still ends with the footer at the window's bottom */
:is(.woocommerce-cart, .woocommerce-order-received, .woocommerce-account) .wp-site-blocks {
	display: flex;
	flex-direction: column;
	min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
}

:is(.woocommerce-cart, .woocommerce-order-received, .woocommerce-account) .wp-site-blocks > footer {
	margin-block-start: auto;
}

.fp-footer__columns {
	margin-block-start: var(--wp--preset--spacing--70);
}

.fp-footer__columns .wp-block-group > * + * {
	margin-block-start: 1rem;
}

/* phones give the brand blurb its own row */
@media (max-width: 639px) {
	.fp-footer__columns > .fp-footer__brand {
		grid-column: 1 / -1;
	}
}

.fp-footer .fp-footer__logo {
	width: fit-content;
}

/* hidden until the profile links are ready; delete this rule to show them */
.fp-footer .wp-block-social-links.fp-footer__social {
	display: none;
}

.fp-footer .wp-block-social-links.fp-footer__social .wp-social-link {
	background: rgb(245 241 236 / 0.05);
	border: 1px solid rgb(245 241 236 / 0.1);
	color: var(--wp--preset--color--on-night-muted);
	transition: background-color 0.2s, color 0.2s;
}

.fp-footer .wp-block-social-links.fp-footer__social .wp-social-link:hover {
	background: rgb(180 32 26 / 0.22);
	color: var(--wp--preset--color--on-night);
	transform: none;
}

.fp-footer__bottom {
	margin-block-start: var(--wp--preset--spacing--60);
	padding-top: 1.5rem;
	border-top: 1px solid rgb(245 241 236 / 0.1);
}

.fp-footer__disclaimer {
	max-width: 36rem;
}

@media (min-width: 640px) {
	.fp-footer__disclaimer {
		text-align: right;
	}
}

/* buttons */

.wp-block-button > .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
}

.wp-block-button:not(.is-style-outline) > .wp-block-button__link {
	transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
}

/* :where keeps these at the press rule's weight, so the press still shows while lifted */
.wp-block-button > .wp-block-button__link:hover,
.wp-block-button:where(.is-style-outline) > .wp-block-button__link:focus-visible {
	transform: translateY(-1px);
}

.wp-block-button > .wp-block-button__link:active {
	transform: scale(0.98);
}

/* core's outline padding loads after global styles, so it's restated here; the 404's search is its secondary action */
.wp-block-button.is-style-outline > .wp-block-button__link,
.fp-404 .fp-search-form .wp-block-search__button {
	padding: 0 28px;
	border: 1px solid var(--wp--preset--color--line-strong);
	background: transparent;
	color: var(--wp--preset--color--ink);
	transition: border-color 0.2s, background-color 0.2s, color 0.2s, transform 0.2s;
}

.wp-block-button.is-style-outline > .wp-block-button__link:is(:hover, :focus-visible),
.fp-404 .fp-search-form .wp-block-search__button:is(:hover, :focus-visible) {
	border-color: var(--wp--custom--color--outline-hover);
	background: var(--wp--custom--color--outline-hover);
	color: var(--wp--preset--color--white);
}

/* single post */

.fp-post-category {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	font-family: var(--wp--preset--font-family--dm-mono);
	font-size: var(--wp--custom--font-size--label);
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.fp-post-category a {
	padding: 0.45rem 1.1rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	transition: border-color 0.2s;
}

.fp-post-category a:hover {
	border-color: var(--wp--preset--color--line-strong);
}

.fp-post-category .wp-block-post-terms__separator {
	display: none;
}

/* separators sit in the gap; one that would start a wrapped line is clipped */
.fp-post-meta {
	gap: 0.5rem 2rem;
	overflow-x: clip;
	color: var(--wp--preset--color--body-grey);
}

.fp-post-meta > * {
	position: relative;
}

.fp-post-meta > * + *::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: -1rem;
	border-left: 1px solid var(--wp--preset--color--line);
}

.fp-post-intro > .wp-block-post-title {
	margin-block-start: 1.5rem;
	line-height: 1.12;
}

.fp-post-intro > .fp-post-meta {
	margin-block-start: 1.5rem;
}

/* old post images run 1:1 to 2.4:1 and many carry text: wide ones show whole, taller ones crop to 3:2 */
.fp-split > .wp-block-post-featured-image {
	container-type: inline-size;
}

.fp-split > .wp-block-post-featured-image img {
	max-height: calc(100cqi / 1.5);
	object-fit: cover;
}

/* long-form content */

/* long unbroken urls in old posts' reference lists would push phones sideways */
.fp-prose {
	overflow-wrap: break-word;
}

/* the reading column spans the page so closing sections can bleed; woocommerce's own 1000px rule would widen shortcode pages with it */
.wp-block-post-content.fp-prose > .woocommerce {
	max-width: var(--wp--style--global--content-size);
}

/* 24px minimum target; woocommerce ships 22px */
.woocommerce form .password-input .show-password-input {
	min-width: 24px;
	min-height: 24px;
}

/* under 16px, iOS zooms the page in when the field takes focus; woocommerce sets account fields at 14px */
body.woocommerce-page form .form-row :is(input.input-text, select, textarea.input-text) {
	font-size: 1rem;
}

.fp-prose > :is(h2, h3, h4) {
	margin-block-start: 2.5rem;
}

.fp-prose > h2 {
	font-size: var(--wp--preset--font-size--x-large);
}

.fp-prose > h3 {
	font-size: var(--wp--preset--font-size--large);
}

.fp-prose img {
	border-radius: 1rem;
}

/* blog articles: marcellus for sections, the sans for the steps inside them */
.fp-article > h2 {
	margin-block-start: 3rem;
}

.fp-article > :is(h3, h4) {
	margin-block-start: 2.25rem;
	font-family: var(--wp--preset--font-family--dm-sans);
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.35;
}

.fp-article > h4 {
	font-size: var(--wp--custom--font-size--body);
}

.fp-article > :is(h2, h3, h4) + * {
	margin-block-start: 0.75rem;
}

.fp-article :is(ul, ol) {
	padding-inline-start: 1.25rem;
}

.fp-article li + li {
	margin-block-start: 0.5rem;
}

.fp-article li::marker {
	color: var(--wp--preset--color--accent);
}

.fp-article :is(blockquote, .wp-block-quote) {
	margin-inline: 0;
	padding: 0.25rem 0 0.25rem 1.5rem;
	border-left: 3px solid var(--wp--preset--color--accent);
	font-family: var(--wp--preset--font-family--marcellus);
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.5;
}

.fp-article :is(blockquote, .wp-block-quote) :is(p, cite) {
	font-family: inherit;
}

.fp-article .wp-block-quote cite {
	display: block;
	margin-top: 0.75rem;
	color: var(--wp--preset--color--body-grey);
	font-family: var(--wp--preset--font-family--dm-mono);
	font-size: var(--wp--custom--font-size--label);
	font-style: normal;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.fp-article table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--wp--custom--font-size--body-s);
}

.fp-article :is(th, td) {
	padding: 0.75rem 1rem 0.75rem 0;
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
	text-align: left;
	vertical-align: middle;
}

.fp-article :is(th, td) :is(figure, img) {
	width: 4rem;
	margin: 0;
	border-radius: 0;
}

/* references close the article in small grey type; abt's list numbers itself, so the list markers go */
.fp-article > .fp-references,
.fp-article .wp-block-abt-bibliography {
	margin-block-start: 3.5rem;
	padding-top: 2rem;
	border-top: 1px solid var(--wp--preset--color--line);
}

.fp-article .abt-bibliography__heading {
	margin: 0 0 1rem;
	font-size: var(--wp--preset--font-size--x-large);
}

.fp-article > .fp-references ~ *,
.fp-article .abt-bibliography__body {
	color: var(--wp--preset--color--body-grey);
	font-size: var(--wp--custom--font-size--body-s);
}

.fp-article .abt-bibliography__body {
	padding: 0;
	list-style: none;
}

.fp-article .csl-entry {
	display: flex;
	gap: 0.75rem;
}

.fp-article .csl-left-margin {
	flex: none;
	min-width: 1.75rem;
	font-variant-numeric: tabular-nums;
}

/* lets a long pubmed url wrap instead of pushing the citation past a phone's edge */
.fp-article .csl-right-inline {
	min-width: 0;
}

/* old content hard-codes pixel sizes; :where keeps any block style in charge */
:where(.fp-prose) :where(img, iframe) {
	max-width: 100%;
}

:where(.fp-prose) :where(input, select, textarea) {
	box-sizing: border-box;
	max-width: 100%;
}

:where(.fp-prose) :where(img) {
	height: auto;
}

:where(.fp-prose) :where(iframe[src*="youtube"], iframe[src*="vimeo"], iframe[src*="wistia"]) {
	height: auto;
	aspect-ratio: 16 / 9;
}

/* post cards */

.fp-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 1rem;
	background: var(--wp--preset--color--white);
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}

/* min-height: 0 stops portrait photos stretching the 3:2 frame */
.fp-card > * {
	min-height: 0;
	margin: 0;
}

.fp-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--wp--preset--shadow--soft);
}

/* a stone tile with a page icon for posts without a featured image, so the grid stays even */
.fp-card:not(:has(.wp-block-post-featured-image))::before {
	content: "";
	aspect-ratio: 3 / 2;
	background: var(--wp--preset--color--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%238a817a'%3E%3Cpath d='M216.49,79.52l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40V216a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.52ZM160,57l23,23H160ZM60,212V44h76V92a12,12,0,0,0,12,12h48V212Zm112-80a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h64A12,12,0,0,1,172,132Zm0,40a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h64A12,12,0,0,1,172,172Z'/%3E%3C/svg%3E") center / 2.5rem no-repeat;
}

.fp-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.625rem;
	padding: 1.5rem;
}

.fp-card__body > * {
	margin: 0;
}

.fp-card__category {
	position: relative;
	z-index: 1;
	font-family: var(--wp--preset--font-family--dm-mono);
	font-size: var(--wp--custom--font-size--label);
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.fp-card__category a {
	text-decoration: none;
}

.fp-card__title {
	line-height: 1.3;
}

.fp-card__title a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	transition: color 0.2s;
}

/* the title link covers the whole card */
.fp-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.fp-card:hover .fp-card__title a {
	color: var(--wp--preset--color--accent);
}

.fp-card__date {
	margin-top: auto;
}

@supports selector(:has(*)) {
	.fp-card:has(.fp-card__title a:focus-visible) {
		outline: 2px solid var(--wp--preset--color--accent);
		outline-offset: 2px;
	}

	.fp-card__title a:focus-visible {
		outline: none;
	}
}

/* pagination */

.wp-block-query-pagination {
	margin-block-start: var(--wp--preset--spacing--60);
	gap: 0.5rem;
	font-weight: 600;
}

.wp-block-query-pagination a {
	text-decoration: none;
}

.wp-block-query-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.75rem;
	border-radius: 100px;
}

.wp-block-query-pagination .page-numbers.current {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--white);
}

/* blog: the grid clears the header band, the first post leads when the rest fill rows of three, links read like the site's buttons */
.wp-block-query:has(> .fp-post-grid) {
	margin-block-start: var(--wp--preset--spacing--60);
}

.fp-card:not(.fp-card--link) .fp-card__date {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.fp-card:not(.fp-card--link) .fp-card__date::after {
	content: "";
	flex: none;
	width: 1rem;
	height: 1rem;
	background: var(--wp--preset--color--accent);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='m224.49 136.49l-72 72a12 12 0 0 1-17-17L187 140H40a12 12 0 0 1 0-24h147l-51.49-51.52a12 12 0 0 1 17-17l72 72a12 12 0 0 1-.02 17.01'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='m224.49 136.49l-72 72a12 12 0 0 1-17-17L187 140H40a12 12 0 0 1 0-24h147l-51.49-51.52a12 12 0 0 1 17-17l72 72a12 12 0 0 1-.02 17.01'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (min-width: 768px) {
	:is(.blog, .archive) .fp-post-grid > .wp-block-post:first-child:nth-last-child(3n+1) {
		grid-column: 1 / -1;
	}

	:is(.blog, .archive) .fp-post-grid > .wp-block-post:first-child:nth-last-child(3n+1) .fp-card {
		display: grid;
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	}

	/* the photo fills its half, whatever the text's height; the block's inline 3/2 ratio would size it from the row height and spill it over the text */
	:is(.blog, .archive) .fp-post-grid > .wp-block-post:first-child:nth-last-child(3n+1) .wp-block-post-featured-image {
		height: 100%;
		aspect-ratio: auto !important;
	}

	:is(.blog, .archive) .fp-post-grid > .wp-block-post:first-child:nth-last-child(3n+1) .wp-block-post-featured-image img {
		height: 100%;
		min-height: 20rem;
		object-fit: cover;
	}

	:is(.blog, .archive) .fp-post-grid > .wp-block-post:first-child:nth-last-child(3n+1) .fp-card__body {
		justify-content: center;
		gap: 1rem;
		padding: clamp(2rem, 4vw, 3.5rem);
	}

	:is(.blog, .archive) .fp-post-grid > .wp-block-post:first-child:nth-last-child(3n+1) .fp-card__title {
		font-size: var(--wp--preset--font-size--xx-large) !important; /* beats the card's preset size */
		line-height: 1.15;
	}

	:is(.blog, .archive) .fp-post-grid > .wp-block-post:first-child:nth-last-child(3n+1) .fp-card__excerpt {
		font-size: var(--wp--custom--font-size--body-s) !important;
	}

	:is(.blog, .archive) .fp-post-grid > .wp-block-post:first-child:nth-last-child(3n+1) .fp-card__date {
		margin-top: 0.5rem;
	}
}

/* pagination: numbers in round outlines like the chips, previous and next in the buttons' mono with arrows */
.wp-block-query-pagination .page-numbers:not(.current, .dots) {
	border: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	transition: border-color 0.2s;
}

.wp-block-query-pagination .page-numbers:not(.current, .dots):hover {
	border-color: var(--wp--preset--color--line-strong);
}

.wp-block-query-pagination .page-numbers {
	width: 2.75rem;
	height: 2.75rem;
	min-width: 0;
	padding: 0;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}

.wp-block-query-pagination :is(.wp-block-query-pagination-previous, .wp-block-query-pagination-next) {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 2.75rem;
	padding: 0 0.5rem;
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--dm-mono);
	font-size: var(--wp--custom--font-size--label);
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.wp-block-query-pagination :is(.wp-block-query-pagination-previous, .wp-block-query-pagination-next):hover {
	color: var(--wp--preset--color--accent);
}

.wp-block-query-pagination .wp-block-query-pagination-next::after,
.wp-block-query-pagination .wp-block-query-pagination-previous::before {
	content: "";
	width: 1rem;
	height: 1rem;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='m224.49 136.49l-72 72a12 12 0 0 1-17-17L187 140H40a12 12 0 0 1 0-24h147l-51.49-51.52a12 12 0 0 1 17-17l72 72a12 12 0 0 1-.02 17.01'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='m224.49 136.49l-72 72a12 12 0 0 1-17-17L187 140H40a12 12 0 0 1 0-24h147l-51.49-51.52a12 12 0 0 1 17-17l72 72a12 12 0 0 1-.02 17.01'/%3E%3C/svg%3E") center / contain no-repeat;
}

.wp-block-query-pagination .wp-block-query-pagination-previous::before {
	rotate: 180deg;
}

/* search form: the site's field beside a pill button, like the newsletter signup */

.fp-search-form .wp-block-search__inside-wrapper {
	gap: 0.75rem;
	max-width: 32rem;
}

.fp-search-form .wp-block-search__input {
	min-width: 0;
	min-height: 3rem;
	padding: 0 1rem;
	border: 1px solid var(--wp--preset--color--line-strong);
	border-radius: 8px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	transition: border-color 0.2s, box-shadow 0.2s;
}

.fp-search-form .wp-block-search__input::placeholder {
	color: var(--wp--preset--color--body-grey);
	opacity: 1;
}

/* focus is a 2px ink edge, like the checkout fields */
.fp-search-form .wp-block-search__input:focus {
	border-color: var(--wp--preset--color--ink);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--ink);
	outline: none;
}

.fp-search-form .wp-block-search__button {
	flex: none;
	min-height: 3rem;
	margin: 0;
	padding: 0 28px;
	transition: transform 0.2s, background-color 0.2s;
}

.fp-search-form .wp-block-search__button:active {
	transform: scale(0.98);
}

.fp-404 .fp-search-form .wp-block-search__inside-wrapper {
	margin-inline: auto;
}

/* one search box at every width: the page's form only where the header hides its own */
@media (min-width: 640px) and (max-width: 1023px), (min-width: 1280px) {
	.fp-search-form {
		display: none;
	}
}

/* search header: the term set like the pages' display titles, type filters as round pills like the pagination */
.fp-search-head__title {
	margin-block-start: 1.5rem;
	overflow-wrap: anywhere;
}

.fp-search-head__title + p {
	margin-block-start: 0.75rem;
}

.wp-block-group.fp-search-filters {
	margin-block-start: 2rem;
}

.fp-search-filters:not(:has(a)) {
	display: none;
}

.fp-search-filters p {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
}

.fp-filter {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 2.75rem;
	padding: 0 1.125rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--dm-mono);
	font-size: var(--wp--custom--font-size--label);
	font-weight: 500;
	letter-spacing: 0.1em;
	text-decoration: none;
	text-transform: uppercase;
	transition: border-color 0.2s, background-color 0.2s;
}

.fp-filter:hover {
	border-color: var(--wp--preset--color--line-strong);
}

.fp-filter__count {
	color: var(--wp--preset--color--body-grey);
	font-variant-numeric: tabular-nums;
}

.fp-filter[aria-current] {
	border-color: var(--wp--preset--color--accent);
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--white);
}

.fp-filter[aria-current] .fp-filter__count {
	color: inherit;
}

/* pages and products aren't dated like posts, so their cards keep only the arrow */
.search .fp-post-grid > :not(.type-post) .fp-card__date {
	justify-content: flex-end;
}

.search .fp-post-grid > :not(.type-post) .fp-card__date time {
	display: none;
}

@media (prefers-reduced-motion: reduce) {
	.fp-card {
		transition: none;
	}

	.fp-card:hover,
	.wp-block-button > .wp-block-button__link:hover,
	.wp-block-button:where(.is-style-outline) > .wp-block-button__link:focus-visible,
	.wp-block-button > .wp-block-button__link:active,
	.fp-search-form .wp-block-search__button:active {
		transform: none;
	}
}

/* homepage sections */

/* anchors land below the sticky header */
.wp-block-post-content > [id] {
	scroll-margin-top: var(--fp-header-height);
}

/* two columns from 1024px, like the prototype */
.wp-block-group.fp-split {
	display: grid;
	gap: 3rem;
	align-items: center;
}

.wp-block-group.fp-split > * {
	min-width: 0;
	margin: 0;
}

@media (min-width: 1024px) {
	.wp-block-group.fp-split {
		grid-template-columns: 1fr 1fr;
		gap: 4rem;
	}

	.fp-split--media-first > :last-child {
		order: -1;
	}
}

@media (max-width: 1023px) {
	.fp-split--media-first-mobile > :last-child {
		order: -1;
	}
}

/* a photo beside a long text grows to the text's height instead of floating mid-column */
@media (min-width: 1024px) {
	.wp-block-group.fp-split--fill {
		align-items: stretch;
	}

	/* taken out of flow so the photo's own height never sets the row's */
	.fp-split--fill > .wp-block-image {
		position: relative;
	}

	.fp-split--fill > .wp-block-image img {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		aspect-ratio: auto !important; /* beats the block's inline ratio */
	}
}

p.fp-lede {
	max-width: 28rem;
}

.fp-split .wp-block-buttons {
	margin-block-start: 2rem;
}

/* core sets every paragraph in the body face; these groups hand their own face down */
:is(.fp-label, .fp-chip, .fp-badges, .fp-review__rating) p {
	font-family: inherit;
}

/* pills drop the trailing letter-space so their text sits centred */
.wp-block-group:is(.fp-label, .fp-chip) p {
	margin-inline-end: -0.1em;
}

/* pill label above a heading; an odd 17px line is what centres DM Mono's caps */
.wp-block-group.fp-label {
	gap: 0.5rem;
	width: fit-content;
	padding: 6px 14px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--dm-mono);
	font-size: var(--wp--custom--font-size--label);
	font-weight: 500;
	letter-spacing: 0.1em;
	line-height: 17px;
	text-transform: uppercase;
}

/* quieter than the ghost buttons' outline, so the label never reads as a control */
.is-style-section-dark .wp-block-group.fp-label {
	border-color: rgb(245 241 236 / 0.25);
	background: transparent;
	color: var(--wp--preset--color--on-night);
}

.wp-block-group.fp-chips {
	gap: 0.5rem;
	margin-block-start: 2rem;
}

.wp-block-group.fp-chip {
	gap: 0.4rem;
	padding: 7px 14px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--dm-mono);
	font-size: var(--wp--custom--font-size--label);
	font-weight: 500;
	letter-spacing: 0.1em;
	line-height: 17px;
	text-transform: uppercase;
}

/* the prototype's arrow icon, drawn in the button's text colour */
.fp-arrow > .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.fp-arrow > .wp-block-button__link::after {
	content: "";
	flex: none;
	width: 1rem;
	height: 1rem;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='m224.49 136.49l-72 72a12 12 0 0 1-17-17L187 140H40a12 12 0 0 1 0-24h147l-51.49-51.52a12 12 0 0 1 17-17l72 72a12 12 0 0 1-.02 17.01'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='m224.49 136.49l-72 72a12 12 0 0 1-17-17L187 140H40a12 12 0 0 1 0-24h147l-51.49-51.52a12 12 0 0 1 17-17l72 72a12 12 0 0 1-.02 17.01'/%3E%3C/svg%3E") center / contain no-repeat;
}

.is-style-section-dark .wp-block-button.is-style-outline > .wp-block-button__link {
	border-color: var(--wp--preset--color--on-night-muted);
	color: var(--wp--preset--color--on-night);
}

.is-style-section-dark .wp-block-button.is-style-outline > .wp-block-button__link:is(:hover, :focus-visible) {
	border-color: var(--wp--preset--color--on-night);
	background: rgb(245 241 236 / 0.06);
}

.fp-rounded img,
.fp-mosaic img {
	border-radius: 28px;
}

/* hero */

.wp-block-cover.fp-hero {
	min-height: 70vh;
	min-height: 70svh;
	padding-right: var(--wp--style--root--padding-right);
	padding-left: var(--wp--style--root--padding-left);
}

@media (min-width: 640px) {
	.wp-block-cover.fp-hero {
		min-height: 80vh;
		min-height: 80svh;
	}
}

/* photo scrim in the surface colour; !important beats the overlay's inline gradient */
.fp-hero .wp-block-cover__background {
	background: linear-gradient(0deg, rgb(250 248 245 / 0.6) 0%, rgb(250 248 245 / 0) 45%), linear-gradient(90deg, rgb(250 248 245) 0%, rgb(250 248 245 / 0.9) 50%, rgb(250 248 245 / 0.6) 100%) !important;
}

@media (min-width: 1024px) {
	.fp-hero .wp-block-cover__background {
		background: linear-gradient(0deg, rgb(250 248 245 / 0.6) 0%, rgb(250 248 245 / 0) 45%), linear-gradient(90deg, rgb(250 248 245) 0%, rgb(250 248 245 / 0.75) 50%, rgb(250 248 245 / 0) 100%) !important;
	}
}

.wp-block-group.fp-hero__content > * + * {
	margin-block-start: 1.5rem;
}

.wp-block-group.fp-hero__content > :is(.wp-block-buttons, .fp-badges) {
	margin-block-start: 2rem;
}

/* phones: the stacked hero buttons share the wider one's width (user) */
@media (max-width: 639px) {
	.wp-block-group.fp-hero__content > .wp-block-buttons {
		display: grid;
		grid-template-columns: max-content;
	}

	.fp-hero__content .wp-block-button > .wp-block-button__link {
		width: 100%;
	}
}

/* "Recover Smarter." stays on one line (user): wider than the 36rem column, and on phones it shrinks to fit (the line is 7.56em) */
.fp-hero__content > h1.has-huge-font-size {
	max-width: none;
	font-size: min(var(--wp--custom--font-size--display-xl), calc((100vw - var(--wp--style--root--padding-left) - var(--wp--style--root--padding-right)) / 7.8)) !important;
}

.wp-block-group.fp-badges {
	gap: 0.75rem 1.5rem;
	color: var(--wp--preset--color--body-grey);
	font-family: var(--wp--preset--font-family--dm-sans);
	font-size: 1rem;
}

.wp-block-group.fp-badge {
	gap: 0.5rem;
}

/* the icon block's medium preset is !important, so scale the svg instead */
.fp-badge svg {
	width: 1.125em;
	height: 1.125em;
}

/* hero slide 3: the small quote card */
.wp-block-group.fp-hero-quote {
	max-width: 24rem;
	padding: 1.5rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 1rem;
	background: var(--wp--preset--color--white);
}

.wp-block-group.fp-hero-quote > * {
	margin: 0;
}

.wp-block-group.fp-hero-quote > .fp-stars {
	margin-bottom: 0.75rem;
}

.fp-hero-quote .fp-hero-quote__text {
	margin-bottom: 0.75rem;
	color: var(--wp--preset--color--body-grey);
}

.fp-hero-quote .fp-hero-quote__name {
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--dm-sans);
	font-size: 0.875rem;
	font-weight: 600;
}

/* partner logos */

.fp-partners {
	border-block: 1px solid var(--wp--preset--color--line);
}

.fp-partners .wp-block-flexpulse-logo-marquee .fp-marquee__heading {
	color: var(--wp--preset--color--ink);
	font-weight: 400;
}

/* 1.625x the plugin's row so body chargers' small wordmark can grow; the other logo files are padded to match */
.fp-partners .fp-marquee__track img {
	height: clamp(2.4375rem, 2.08rem + 1.46vw, 3.25rem);
}

/* product spotlight */

.wp-block-group.fp-product-card {
	padding: clamp(2rem, 5vw, 3rem);
	border-radius: 1rem;
	background: var(--wp--preset--color--white);
	box-shadow: var(--wp--preset--shadow--soft);
}

.fp-product-card .wp-block-image {
	max-width: 28rem;
	margin: 0 auto;
}

/* home therapy */

.wp-block-group.fp-features {
	display: grid;
	gap: 1.25rem;
	max-width: 32rem;
	margin-block-start: 2rem;
}

.wp-block-group.fp-features > * {
	margin: 0;
}

.wp-block-group.fp-feature {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
}

.wp-block-group.fp-feature > *,
.fp-feature__text p {
	margin: 0;
}

.fp-feature__text p {
	color: var(--wp--preset--color--body-grey);
	font-family: var(--wp--preset--font-family--dm-sans);
	font-size: 0.875rem;
}

.fp-feature__text p + p {
	margin-top: 0.125rem;
}

.fp-feature__text .fp-feature__title {
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--dm-sans);
	font-weight: 600;
}

@media (min-width: 640px) {
	.wp-block-group.fp-features {
		grid-template-columns: repeat(3, 1fr);
		gap: 0.75rem;
	}

	.wp-block-group.fp-feature {
		flex-direction: column;
	}
}

/* use cases */

.wp-block-group.fp-cards {
	display: grid;
	gap: 1.5rem;
	margin-block-start: var(--wp--preset--spacing--60);
}

.wp-block-group.fp-cards > *,
.wp-block-group.fp-usecase > *,
.wp-block-group.fp-usecase__body > * {
	margin: 0;
}

.wp-block-group.fp-usecase {
	overflow: hidden;
	border: 1px solid rgb(245 241 236 / 0.1);
	border-radius: 1rem;
	background: rgb(245 241 236 / 0.05);
}

.fp-usecase img {
	display: block;
	width: 100%;
}

.wp-block-group.fp-usecase__body {
	padding: 1.5rem;
}

.wp-block-group.fp-usecase__body h3 {
	margin-block: 0.5rem 0.75rem;
}

.fp-kicker {
	color: var(--wp--preset--color--on-night-muted);
	font-family: var(--wp--preset--font-family--dm-mono);
	font-size: var(--wp--custom--font-size--label);
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

@media (min-width: 768px) and (max-width: 1023px) {
	.wp-block-group.fp-usecase {
		display: flex;
	}

	.fp-usecase > .wp-block-image {
		flex: none;
		width: 40%;
	}

	.wp-block-group.fp-usecase__body {
		align-self: center;
	}
}

@media (min-width: 1024px) {
	.wp-block-group.fp-cards {
		grid-template-columns: repeat(3, 1fr);
		gap: 2rem;
	}
}

.fp-usecase sup {
	margin-inline-start: 0.1em;
	font-size: 0.9em;
	font-weight: 600;
	line-height: 0;
}

/* research behind the use cases: a panel whose reference list folds away */
.wp-block-group.fp-research > h3 + p {
	margin-top: 0.75rem;
}

.wp-block-group.fp-refs {
	margin-block-start: var(--wp--preset--spacing--50);
	border: 1px solid rgb(245 241 236 / 0.1);
	border-radius: 1rem;
	background: rgb(245 241 236 / 0.05);
}

.wp-block-group.fp-refs > * {
	margin: 0;
}

.fp-refs summary {
	display: flex;
	gap: 0.75rem;
	align-items: center;
	padding: 1.125rem 1.5rem;
	border-radius: 1rem;
	color: var(--wp--preset--color--on-night);
	font-weight: 600;
	list-style: none;
	cursor: pointer;
}

.fp-refs summary::-webkit-details-marker {
	display: none;
}

.fp-refs summary:focus-visible {
	outline-offset: -2px;
}

/* the toggle's label is visual only; screen readers announce expanded/collapsed */
.fp-refs summary::after {
	content: "Show references";
	content: "Show references" / "";
	margin-left: auto;
	color: var(--wp--preset--color--on-night-muted);
	font-family: var(--wp--preset--font-family--dm-mono);
	font-size: var(--wp--custom--font-size--label);
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	transition: color 0.2s;
}

.fp-refs details[open] > summary::after {
	content: "Hide references";
	content: "Hide references" / "";
}

.fp-refs summary::before {
	content: "";
	order: 1;
	flex: none;
	width: 0.875rem;
	height: 0.875rem;
	background: var(--wp--preset--color--on-night-muted);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='m216.49 104.49l-80 80a12 12 0 0 1-17 0l-80-80a12 12 0 0 1 17-17L128 159l71.51-71.52a12 12 0 0 1 17 17Z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='m216.49 104.49l-80 80a12 12 0 0 1-17 0l-80-80a12 12 0 0 1 17-17L128 159l71.51-71.52a12 12 0 0 1 17 17Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.fp-refs details[open] > summary::before {
	rotate: 180deg;
}

.fp-refs summary:hover::after {
	color: var(--wp--preset--color--on-night);
}

@media (prefers-reduced-motion: no-preference) {
	.fp-refs summary::before {
		transition: rotate 0.2s;
	}
}

/* phones: the chevron alone, so the title stays on one line */
@media (max-width: 479px) {
	.fp-refs summary::after {
		display: none;
	}

	.fp-refs summary::before {
		margin-left: auto;
	}
}

.fp-refs ol {
	margin: 0;
	padding: 0;
	border-top: 1px solid rgb(245 241 236 / 0.1);
	font-size: var(--wp--custom--font-size--body-s);
	line-height: 1.55;
	list-style: none;
	counter-reset: fp-ref;
}

.fp-refs li {
	position: relative;
	padding: 1rem 1.5rem 1rem 3.25rem;
	overflow-wrap: anywhere;
	counter-increment: fp-ref;
	scroll-margin-top: calc(var(--fp-header-height) + 1.5rem);
}

.fp-refs li + li {
	border-top: 1px solid rgb(245 241 236 / 0.1);
}

.fp-refs li::before {
	content: counter(fp-ref);
	position: absolute;
	left: 1.5rem;
	color: var(--wp--preset--color--on-night);
	font-family: var(--wp--preset--font-family--dm-mono);
}

.fp-refs li:target {
	background: rgb(245 241 236 / 0.06);
}

.fp-refs li a {
	display: flex;
	gap: 0.35rem;
	align-items: center;
	width: fit-content;
	margin-top: 0.5rem;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}

.fp-refs li a::after {
	content: "";
	width: 0.875em;
	height: 0.875em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M204 64v104a12 12 0 0 1-24 0V93L72.49 200.49a12 12 0 0 1-17-17L163 76H88a12 12 0 0 1 0-24h104a12 12 0 0 1 12 12'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M204 64v104a12 12 0 0 1-24 0V93L72.49 200.49a12 12 0 0 1-17-17L163 76H88a12 12 0 0 1 0-24h104a12 12 0 0 1 12 12'/%3E%3C/svg%3E") center / contain no-repeat;
}

.fp-refs li a:hover {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

@media (min-width: 768px) {
	.fp-refs li {
		padding-right: 11rem;
	}

	.fp-refs li a {
		position: absolute;
		top: 50%;
		right: 1.5rem;
		margin: 0;
		translate: 0 -50%;
	}
}

.fp-refs__notice {
	padding: 1rem 1.5rem 1.25rem;
	border-top: 1px solid rgb(245 241 236 / 0.1);
	font-size: var(--wp--custom--font-size--body-s);
	line-height: 1.55;
}

.fp-refs__notice strong {
	color: var(--wp--preset--color--on-night);
}

/* video */

.fp-video-frame {
	margin: 0;
}

.fp-video-frame .wp-block-embed__wrapper {
	overflow: hidden;
	border-radius: 28px;
	box-shadow: var(--wp--preset--shadow--soft);
}

/* the ring goes on the rounded frame; the play button's own would be clipped by it */
.fp-video-frame .wp-block-embed__wrapper:has(.fp-video:focus-visible) {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

.fp-video-frame .fp-video:focus-visible {
	outline: none;
}

/* the programs video's thumbnail has the logo where the play button sits, so its button moves to the empty corner */
.fp-video[data-video-id="0p3fCAcJFm8"] .fp-video__icon {
	top: auto;
	left: auto;
	right: 1.25rem;
	bottom: 1.25rem;
	translate: none;
}

/* german engineering */

.wp-block-group.fp-stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem 2rem;
	max-width: 28rem;
	margin-block-start: 2rem;
}

.wp-block-group.fp-stats > *,
.wp-block-group.fp-stat > * {
	margin: 0;
}

.wp-block-group.fp-stat {
	padding-top: 1rem;
	border-top: 1px solid var(--wp--preset--color--line);
}

.fp-stat .fp-stat__value {
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--dm-mono);
	font-size: 1.5rem;
	font-weight: 500;
	line-height: 1.3;
}

.fp-stat .fp-stat__label {
	margin-top: 0.25rem;
	color: var(--wp--preset--color--body-grey);
	font-family: var(--wp--preset--font-family--dm-mono);
	font-size: var(--wp--custom--font-size--label);
	font-weight: 500;
	letter-spacing: 0.1em;
	line-height: 1.4;
	text-transform: uppercase;
	text-wrap: balance;
}

.wp-block-group.fp-mosaic {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.wp-block-group.fp-mosaic > * {
	margin: 0;
}

.fp-mosaic > :first-child {
	grid-column: 1 / -1;
}

.fp-object-top img {
	object-position: top;
}

/* reviews carousel: the card frame stays still while the reviews fade inside it */

.fp-review-carousel .fp-carousel__viewport {
	padding: clamp(2rem, 4vw, 2.5rem);
	border-radius: 1rem;
	background: var(--wp--preset--color--tint);
	box-shadow: var(--wp--preset--shadow--soft);
}

/* the editor has no frame, so each review gets its own */
.editor-styles-wrapper .fp-review-carousel .fp-review {
	padding: 2rem;
	border-radius: 1rem;
	background: var(--wp--preset--color--tint);
}

.wp-block-group.fp-review {
	display: flex;
	flex-direction: column;
	color: var(--wp--preset--color--body-grey);
}

.wp-block-group.fp-review > *,
.fp-review p {
	margin: 0;
}

.wp-block-group.fp-review__rating {
	gap: 0.75rem;
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--dm-sans);
	font-size: 0.875rem;
	font-weight: 600;
}

.wp-block-group.fp-stars {
	gap: 0.25rem;
}

/* review stars in gold so they read as real ratings; beats the icons' ink fill */
.fp-stars svg {
	fill: var(--wp--custom--color--star);
}

/* the quote takes the spare height, so the author line sits at the bottom of the tallest card */
.wp-block-group.fp-review > .fp-review__quote {
	flex: 1;
	margin-top: 1.5rem;
}

.wp-block-group.fp-review > .fp-review__rule {
	margin-block: 1.5rem 1.25rem;
	border: 0;
	border-top: 1px solid var(--wp--preset--color--line);
	opacity: 1;
}

.wp-block-group.fp-review__author {
	gap: 0.75rem;
	align-items: center;
}

.fp-review .fp-review__avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	background: var(--wp--preset--color--tint);
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--dm-sans);
	font-size: 0.875rem;
	font-weight: 700;
}

/* the carousel card is already stone, so its initials sit on white */
.fp-review-carousel .fp-review .fp-review__avatar {
	background: var(--wp--preset--color--white);
}

.fp-review .fp-review__name {
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--dm-sans);
	font-size: 0.875rem;
	font-weight: 600;
}

.fp-review .fp-review__role {
	font-family: var(--wp--preset--font-family--dm-sans);
	font-size: 0.75rem;
}

/* reviews page: every review as a card, all cards the same size */

.wp-block-group.fp-stories {
	display: grid;
	gap: 1.5rem;
	margin-block-start: 3rem;
}

/* half-width tracks so a short last row can sit centred under the full ones */
@media (min-width: 640px) {
	.wp-block-group.fp-stories {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		grid-auto-rows: 1fr;
	}

	.fp-stories > .fp-story {
		grid-column: span 2;
	}

	.fp-stories > .fp-story:last-child:nth-child(odd) {
		grid-column: 2 / span 2;
	}
}

@media (min-width: 1024px) {
	.wp-block-group.fp-stories {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}

	.fp-stories > .fp-story:last-child:nth-child(odd) {
		grid-column: span 2;
	}

	.fp-stories > .fp-story:nth-last-child(2):nth-child(3n + 1) {
		grid-column: 2 / span 2;
	}

	.fp-stories > .fp-story:last-child:nth-child(3n + 1) {
		grid-column: 3 / span 2;
	}
}

/* the quote takes the spare height, so every author line sits on the card's bottom edge */
.wp-block-group.fp-story > p:last-of-type {
	flex-grow: 1;
}

.wp-block-group.fp-story {
	margin: 0;
	padding: clamp(1.5rem, 3vw, 2rem);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 1rem;
	background: var(--wp--preset--color--white);
}

.wp-block-group.fp-story > .fp-review__rating {
	margin-bottom: 1.5rem;
}

.wp-block-group.fp-story > .fp-story__title {
	margin-bottom: 1rem;
}

.fp-story__title::before {
	content: open-quote;
}

.fp-story__title::after {
	content: close-quote;
}

.wp-block-group.fp-story > p + p {
	margin-top: 1em;
}

/* a request that closes a section: its own card, text beside the button */
.wp-block-group.fp-cta-card {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem 3rem;
	padding: clamp(1.5rem, 3vw, 2rem);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 1rem;
	background: var(--wp--preset--color--white);
}

.wp-block-group.fp-cta-card > * {
	margin: 0;
}

.fp-cta-card > p {
	flex: 1 1 24rem;
	max-width: 44rem;
}

/* google reviews badge: google's g before the label, the site's arrow after */
.wp-block-button.fp-google > .wp-block-button__link {
	gap: 0.75rem;
	padding: 0.75rem 1.375rem 0.75rem 1rem;
	border: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--white);
	box-shadow: var(--wp--preset--shadow--soft);
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--dm-sans);
	font-size: var(--wp--custom--font-size--body-s);
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
}

.wp-block-button.fp-google > .wp-block-button__link:hover {
	border-color: var(--wp--preset--color--line-strong);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
}

.wp-block-button.fp-google > .wp-block-button__link::before {
	content: "";
	flex: none;
	width: 1.25rem;
	height: 1.25rem;
	background: url("../images/google-g.svg") center / contain no-repeat;
}

/* the video caption floats as a card over the video's bottom-left edge */
.fp-video-frame > .wp-element-caption {
	position: relative;
	z-index: 1;
	display: flex;
	gap: 0.625rem;
	width: fit-content;
	max-width: min(22rem, calc(100% - 2.5rem));
	margin: -2.25rem 0 0 1.25rem;
	padding: 0.875rem 1.125rem;
	border-radius: 1rem;
	background: var(--wp--preset--color--white);
	box-shadow: var(--wp--preset--shadow--soft);
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--marcellus);
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.35;
	text-align: left;
}

.fp-video-frame > .wp-element-caption::before {
	content: "";
	flex: none;
	width: 0.875rem;
	height: 0.875rem;
	margin-top: 0.3em;
	background: var(--wp--preset--color--accent);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M234.49 111.07L90.41 22.94A20 20 0 0 0 60 39.87v176.26a20 20 0 0 0 30.41 16.93l144.08-88.13a19.82 19.82 0 0 0 0-33.86M84 208.85V47.15L216.16 128Z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M234.49 111.07L90.41 22.94A20 20 0 0 0 60 39.87v176.26a20 20 0 0 0 30.41 16.93l144.08-88.13a19.82 19.82 0 0 0 0-33.86M84 208.85V47.15L216.16 128Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* once the player loads, the card drops below it so it never covers the controls */
.fp-video-frame:has(iframe) > .wp-element-caption {
	margin-top: 1rem;
	box-shadow: none;
}

/* page sections: the pieces the rebuilt content pages share */

/* featured review: one real review as a large card beside the page intro */
.wp-block-group.fp-quote-card {
	padding: clamp(2rem, 4vw, 3rem);
	border-radius: 28px;
	background: var(--wp--preset--color--white);
	box-shadow: var(--wp--preset--shadow--soft);
}

.fp-quote-card .fp-review__quote {
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--marcellus);
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.35;
}

/* feature row: the home features spread across the page, two then four to a row */
.wp-block-group.fp-features.fp-features--wide {
	max-width: var(--wp--style--global--wide-size);
	gap: 2rem;
	margin-block-start: var(--wp--preset--spacing--60);
}

@media (min-width: 640px) {
	.wp-block-group.fp-features.fp-features--wide {
		grid-template-columns: repeat(2, 1fr);
		gap: 2.5rem 2rem;
	}
}

@media (min-width: 1024px) {
	.wp-block-group.fp-features.fp-features--wide {
		grid-template-columns: repeat(4, 1fr);
	}
}

.fp-features--wide .fp-feature__text p {
	font-size: var(--wp--custom--font-size--body-s);
}

.fp-features--wide .fp-feature__text .fp-feature__title {
	font-size: var(--wp--custom--font-size--body);
}

/* numbered steps carry a mono count where a feature has its icon */
.fp-feature .fp-feature__num {
	color: var(--wp--preset--color--accent);
	font-family: var(--wp--preset--font-family--dm-mono);
	font-size: var(--wp--custom--font-size--label);
	font-weight: 500;
	letter-spacing: 0.1em;
	line-height: 1.5;
}

/* facts strip: the product specs' label-over-value rows, for policies and company facts */
.wp-block-group.fp-facts {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
	column-gap: 2rem;
}

/* these strips are at most two across (contact's sets its own), so an odd last fact takes the whole row instead of leaving an empty cell */
.wp-block-group.fp-facts:not(.fp-contact *) > :last-child:nth-child(odd) {
	grid-column: 1 / -1;
}

.wp-block-group.fp-facts > *,
.wp-block-group.fp-fact > * {
	margin: 0;
}

.wp-block-group.fp-fact {
	padding-block: 0.875rem;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.fp-fact .fp-fact__label {
	margin-bottom: 0.25rem;
	color: var(--wp--preset--color--body-grey);
	font-family: var(--wp--preset--font-family--dm-mono);
	font-size: var(--wp--custom--font-size--label);
	font-weight: 500;
	letter-spacing: 0.1em;
	line-height: 1.4;
	text-transform: uppercase;
}

.fp-fact .fp-fact__value {
	color: var(--wp--preset--color--ink);
}

/* link cards: the post card without its photo, for guides and help pages */
.wp-block-group.fp-links {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
	gap: 1.5rem;
	margin-block-start: var(--wp--preset--spacing--60);
}

.wp-block-group.fp-links > * {
	margin: 0;
}

/* five cards wrap three and two, then share one row once there's room, never four and one */
.wp-block-group.fp-links:has(> :nth-child(5):last-child) {
	grid-template-columns: repeat(auto-fit, minmax(max(min(100%, 14rem), calc((100% - 3rem) / 3)), 1fr));
}

@media (min-width: 1280px) {
	.wp-block-group.fp-links:has(> :nth-child(5):last-child) {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

.fp-card.fp-card--link::before {
	content: none;
}

/* the site's arrow closes each card, so it reads as a link */
.fp-card--link .fp-card__body::after {
	content: "";
	width: 1rem;
	height: 1rem;
	margin-top: auto;
	padding-top: 0.5rem;
	box-sizing: content-box;
	background: var(--wp--preset--color--accent);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='m224.49 136.49l-72 72a12 12 0 0 1-17-17L187 140H40a12 12 0 0 1 0-24h147l-51.49-51.52a12 12 0 0 1 17-17l72 72a12 12 0 0 1-.02 17.01'/%3E%3C/svg%3E") bottom left / 1rem no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='m224.49 136.49l-72 72a12 12 0 0 1-17-17L187 140H40a12 12 0 0 1 0-24h147l-51.49-51.52a12 12 0 0 1 17-17l72 72a12 12 0 0 1-.02 17.01'/%3E%3C/svg%3E") bottom left / 1rem no-repeat;
}

/* note: a quiet bordered card for safety information, icon beside the text */
.wp-block-group.fp-note {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	column-gap: 1rem;
	padding: clamp(1.25rem, 3vw, 2rem);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 1rem;
	background: var(--wp--preset--color--white);
}

.wp-block-group.fp-note > * {
	margin: 0;
}

/* the icon sits on a soft red disc so the note reads as a warning at a glance */
.fp-note > .wp-block-flexpulse-icon {
	display: grid;
	place-items: center;
	align-self: start;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	background: var(--wp--preset--color--accent-soft);
	color: var(--wp--preset--color--accent);
}

.fp-note > .wp-block-flexpulse-icon svg {
	width: 1.5rem;
	height: 1.5rem;
}

/* phones give the text the card's full width, icon on top */
@media (max-width: 639px) {
	.wp-block-group.fp-note {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 0.75rem;
	}
}

/* wider screens centre the disc on the heading's first line */
@media (min-width: 640px) {
	.wp-block-group.fp-note {
		column-gap: 1.25rem;
	}

	.fp-note > .wp-block-flexpulse-icon {
		margin-top: -0.5rem;
	}
}

.wp-block-group.fp-note__body > * {
	margin: 0;
}

.wp-block-group.fp-note__body > * + * {
	margin-top: 0.75rem;
}

.fp-note__body p {
	color: var(--wp--preset--color--body-grey);
}

.fp-note__body .wp-block-buttons {
	margin-top: 1.25rem;
}

/* a post's buy band stays hidden until the post is cleared; the empty wrapper goes with it */
.wp-block-group.fp-post-buy:not(:has(.is-style-section-dark)) {
	display: none;
}

/* once it shows, the band closes the page in place of the main's bottom padding; so does a reading page's closing full-width section */
main.wp-block-group:has(> .fp-post-buy .is-style-section-dark),
main.wp-block-group:has(> .wp-block-post-content > .alignfull:last-child),
.blog main.wp-block-group:has(> .alignfull:last-child) {
	padding-bottom: 0 !important; /* beats the template's inline padding */
}

/* three steps sit three to a row instead of leaving the fourth column empty; two stay two */
@media (min-width: 1024px) {
	.wp-block-group.fp-features.fp-features--wide:has(> :last-child:nth-child(3)) {
		grid-template-columns: repeat(3, 1fr);
	}

	.wp-block-group.fp-features.fp-features--wide:has(> :last-child:nth-child(2)) {
		grid-template-columns: repeat(2, 1fr);
	}
}

.wp-block-group.fp-steps-note {
	margin-block-start: var(--wp--preset--spacing--60);
}

.fp-steps-note .fp-note__body p {
	max-width: 65ch;
}

/* faq: topics beside the questions on wide screens, each question a native details toggle */
.wp-block-group.fp-faq {
	display: grid;
	gap: 2.5rem 4rem;
}

.wp-block-group.fp-faq > *,
.wp-block-group.fp-faq__nav > *,
.wp-block-group.fp-faq__group > * {
	margin: 0;
}

@media (min-width: 1024px) {
	.wp-block-group.fp-faq {
		grid-template-columns: 14rem minmax(0, 1fr);
		align-items: start;
	}

	.wp-block-group.fp-faq__nav {
		position: sticky;
		top: calc(var(--fp-header-height) + 2rem);
	}
}

.fp-faq__nav .fp-faq__label {
	color: var(--wp--preset--color--body-grey);
	font-family: var(--wp--preset--font-family--dm-mono);
	font-size: var(--wp--custom--font-size--label);
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.fp-faq__nav ul.fp-faq__topics {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.75rem;
	padding: 0;
	list-style: none;
}

.fp-faq__topics a {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	padding: 0 1rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--custom--font-size--body-s);
	text-decoration: none;
	transition: border-color 0.2s, color 0.2s;
}

.fp-faq__topics a:hover {
	border-color: var(--wp--preset--color--line-strong);
	color: var(--wp--preset--color--accent-dark);
}

/* beside the questions the topics become a plain list on a rail; the current one gets the red marker */
@media (min-width: 1024px) {
	.fp-faq__nav ul.fp-faq__topics {
		flex-direction: column;
		gap: 0;
		border-left: 1px solid var(--wp--preset--color--line);
	}

	.fp-faq__topics a {
		min-height: 0;
		margin-left: -1px;
		padding: 0.5rem 0 0.5rem 1rem;
		border: 0;
		border-left: 2px solid transparent;
		border-radius: 0;
		background: none;
	}

	/* red text is kept for the current topic, so hover only darkens the rail */
	.fp-faq__topics a:hover {
		color: var(--wp--preset--color--ink);
	}
}

/* the section in view, set by topics.js; after the rail rules so it wins while hovered */
.fp-faq__topics a[aria-current] {
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent-dark);
}

.wp-block-group.fp-faq__groups > * + * {
	margin-block-start: var(--wp--preset--spacing--60);
}

.wp-block-group.fp-faq__group {
	scroll-margin-top: calc(var(--fp-header-height) + 1.5rem);
}

.wp-block-group.fp-faq__group > h2 {
	margin-bottom: 0.75rem;
}

.wp-block-group.fp-faq__group > .fp-note {
	margin-top: 1.5rem;
}

.wp-block-details.fp-faq__item {
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.fp-faq__item > summary {
	display: flex;
	gap: 1rem;
	justify-content: space-between;
	align-items: flex-start;
	padding-block: 1.125rem;
	color: var(--wp--preset--color--ink);
	font-weight: 600;
	line-height: 1.4;
	list-style: none;
	cursor: pointer;
}

.fp-faq__item > summary::-webkit-details-marker {
	display: none;
}

.fp-faq__item > summary::after {
	content: "";
	flex: none;
	width: 1rem;
	height: 1rem;
	margin-top: 0.2em;
	background: var(--wp--preset--color--accent);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M228 128a12 12 0 0 1-12 12h-76v76a12 12 0 0 1-24 0v-76H40a12 12 0 0 1 0-24h76V40a12 12 0 0 1 24 0v76h76a12 12 0 0 1 12 12'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M228 128a12 12 0 0 1-12 12h-76v76a12 12 0 0 1-24 0v-76H40a12 12 0 0 1 0-24h76V40a12 12 0 0 1 24 0v76h76a12 12 0 0 1 12 12'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: rotate 0.2s;
}

.fp-faq__item[open] > summary::after {
	rotate: 45deg;
}

.fp-faq__item > :not(summary) {
	margin-block: 0 1rem;
}

.fp-faq__item > :last-child {
	margin-bottom: 1.25rem;
}

/* an answer's video stays a supporting size, not the full column */
.fp-faq__item > .fp-video-frame {
	max-width: 36rem;
}

@media (prefers-reduced-motion: reduce) {
	.fp-faq__item > summary::after {
		transition: none;
	}
}

/* contact: phone first on phones, then the form; from 1024px the form sits beside the details and the map fills in under them */
.wp-block-group.fp-contact {
	display: grid;
	grid-template-areas: "details" "form" "more";
	gap: 3rem;
}

.wp-block-group.fp-contact > *,
.wp-block-group.fp-contact__details > *,
.wp-block-group.fp-contact__more > *,
.wp-block-group.fp-contact__form > * {
	min-width: 0;
	margin: 0;
}

.fp-contact__details {
	grid-area: details;
}

.fp-contact__form {
	grid-area: form;
}

.fp-contact__more {
	grid-area: more;
}

@media (min-width: 1024px) {
	.wp-block-group.fp-contact {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		grid-template-rows: auto 1fr;
		grid-template-areas: "details form" "more form";
		gap: 2.5rem 4rem;
		align-items: start;
	}
}

.wp-block-group.fp-contact .fp-facts {
	grid-template-columns: minmax(0, 1fr);
}

/* the number is the page's main action, so it's set like a heading; underlined like the breadcrumb links */
.fp-fact .fp-contact__phone {
	font-family: var(--wp--preset--font-family--marcellus);
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.3;
}

.fp-contact__phone a {
	color: inherit;
	text-decoration-color: var(--wp--preset--color--line-strong);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	transition: color 0.2s, text-decoration-color 0.2s;
}

.fp-contact__phone a:hover {
	color: var(--wp--preset--color--accent);
	text-decoration-color: var(--wp--preset--color--accent);
}

.wp-block-group.fp-contact__form {
	padding: clamp(1.5rem, 4vw, 3rem);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 1rem;
	background: var(--wp--preset--color--white);
}

.wp-block-group.fp-contact__form > * + * {
	margin-top: 0.75rem;
}

.wp-block-group.fp-contact__form > p + * {
	margin-top: 2rem;
}

/* contact: ghl's support form (contact-form.js, css in ghl); the box holds its height until someone's in the form */
.fp-contact__embed {
	display: flow-root;
}

:is(.fp-js .fp-contact__embed, .fp-contact__embed.is-js):not(.is-active, .is-failed) {
	min-height: 1054px;
}

/* the call-us line shows without js, or when ghl's script fails */
:is(.fp-js .fp-contact__embed, .fp-contact__embed.is-js):not(.is-failed) > .fp-contact__fallback {
	display: none;
}

.fp-contact__embed iframe {
	height: 1067px;
}

/* up to 490px the frame is under 400px wide, where ghl's css sets the fields in 17px and the form is 21px shorter */
@media (max-width: 490px) {
	:is(.fp-js .fp-contact__embed, .fp-contact__embed.is-js):not(.is-active, .is-failed) {
		min-height: 1033px;
	}

	.fp-contact__embed iframe {
		height: 1046px;
	}
}

.wp-block-group.fp-contact__more > * + * {
	margin-top: 1.5rem;
}

/* tablets: the facts share a row and the map sits beside the note, so neither leaves half the width empty */
@media (min-width: 640px) and (max-width: 1023px) {
	.wp-block-group.fp-contact .fp-facts {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.wp-block-group.fp-contact__more {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.5rem;
	}

	.wp-block-group.fp-contact__more > * + * {
		margin-top: 0;
	}

	/* the map matches the note's height rather than keeping its 4:3 */
	.fp-contact__more > .fp-map {
		aspect-ratio: auto;
		min-height: 16rem;
	}
}

/* the photo is small enough to stay beside the text on phones */
.wp-block-group.fp-note.fp-contact__note {
	grid-template-columns: auto minmax(0, 1fr);
	column-gap: 1.25rem;
	align-items: center;
}

.fp-contact__note .wp-block-image {
	margin: 0;
}

/* forms: fields like the checkout's (8px, line-strong edge, ink edge on focus), labels in the site's mono; for any form inside .fp-form */
.fp-form form {
	display: grid;
	gap: 0.5rem;
	color: var(--wp--preset--color--body-grey);
	font-size: var(--wp--custom--font-size--body-s);
}

.fp-form fieldset {
	display: grid;
	gap: 0.5rem;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

/* each field's label starts a new group */
.fp-form form > :is(label, fieldset):not(:first-child) {
	margin-top: 1rem;
}

.fp-form :is(label, legend) {
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--dm-mono);
	font-size: var(--wp--custom--font-size--label);
	font-weight: 500;
	letter-spacing: 0.1em;
	line-height: 1.4;
	text-transform: uppercase;
}

.fp-form legend {
	margin-bottom: 0.5rem;
	padding: 0;
}

/* a fieldset's own labels (first and last name) read as plain captions */
.fp-form fieldset label {
	color: var(--wp--preset--color--body-grey);
	font-family: inherit;
	font-size: var(--wp--custom--font-size--body-s);
	font-weight: 400;
	letter-spacing: normal;
	text-transform: none;
}

.fp-form fieldset :is(input, select, textarea) + label {
	margin-top: 0.5rem;
}

.fp-form :is(input:not([type]), input:is([type="text"], [type="email"], [type="tel"], [type="url"], [type="number"], [type="search"], [type="password"], [type="date"]), select, textarea) {
	box-sizing: border-box;
	width: 100%;
	min-height: 3rem;
	padding: 0.625rem 1rem;
	border: 1px solid var(--wp--preset--color--line-strong);
	border-radius: 8px;
	background-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	font: inherit;
	font-size: var(--wp--custom--font-size--body); /* 16px+ keeps ios from zooming in on focus */
	line-height: 1.5;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.fp-form select {
	padding-right: 2.75rem;
	background: var(--wp--preset--color--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%231c1917'%3E%3Cpath d='M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z'/%3E%3C/svg%3E") right 1rem center / 1rem no-repeat;
	cursor: pointer;
	appearance: none;
}

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

.fp-form :is(input, select, textarea):focus {
	border-color: var(--wp--preset--color--ink);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--ink);
	outline: none;
}

.fp-form :is(input, select, textarea)[aria-invalid="true"] {
	border-color: var(--wp--preset--color--accent);
	background-color: var(--wp--preset--color--accent-soft);
}

/* a field with an error stays red while it's being fixed */
.fp-form :is(input, select, textarea)[aria-invalid="true"]:focus {
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--accent);
}

/* submit: the site's red pill button */
.fp-form :is(button, input)[type="submit"] {
	justify-self: start;
	min-height: 3rem;
	margin-top: 1rem;
	padding: 0 28px;
	border: 0;
	border-radius: 999px;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--dm-mono);
	font-size: var(--wp--custom--font-size--label);
	font-weight: 500;
	letter-spacing: 0.1em;
	line-height: 1.5;
	text-transform: uppercase;
	cursor: pointer;
	transition: transform 0.2s, background-color 0.2s;
}

.fp-form :is(button, input)[type="submit"]:hover {
	background: var(--wp--preset--color--accent-dark);
}

@media (prefers-reduced-motion: no-preference) {
	.fp-form :is(button, input)[type="submit"]:hover {
		transform: translateY(-1px);
	}

	.fp-form :is(button, input)[type="submit"]:active {
		transform: scale(0.98);
	}
}

/* map: google's embed loads as it nears the screen, inside a fixed box so nothing shifts */
.fp-map {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 1rem;
	background: var(--wp--preset--color--tint);
}

.fp-map iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

/* waves where a dark section meets a light one */

:is(.wp-block-post-content, .fp-sections) > .is-style-section-dark {
	--fp-wave-h: clamp(32px, 4vw, 64px);
	position: relative;
}

/* core makes groups position: relative, so without z-index the next section covers the wave */
:is(.wp-block-post-content, .fp-sections) > .is-style-section-dark::before,
:is(.wp-block-post-content, .fp-sections) > .is-style-section-dark:not(:last-child)::after {
	content: "";
	position: absolute;
	z-index: 1;
	right: 0;
	left: 0;
	height: var(--fp-wave-h);
	background: inherit; /* night, or surface on the closing panel band */
	pointer-events: none;
}

:is(.wp-block-post-content, .fp-sections) > .is-style-section-dark::before {
	bottom: calc(100% - 1px);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0,80 Q720,-80 1440,80 Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0,80 Q720,-80 1440,80 Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}

:is(.wp-block-post-content, .fp-sections) > .is-style-section-dark:not(:last-child)::after {
	top: calc(100% - 1px);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0,0 H1440 Q720,160 0,0 Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0,0 H1440 Q720,160 0,0 Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}

/* the last dark section becomes a night panel on the surface, so it doesn't run into the night footer */
:is(.wp-block-post-content, .fp-sections) > .is-style-section-dark:last-child {
	padding-block: 4rem !important; /* beats the section's inline padding */
	background: var(--wp--preset--color--surface);
}

@media (min-width: 640px) {
	:is(.wp-block-post-content, .fp-sections) > .is-style-section-dark:last-child {
		padding-block: 5rem !important;
	}
}

:is(.wp-block-post-content, .fp-sections) > .is-style-section-dark:last-child > .fp-split {
	padding: clamp(2rem, 4vw, 3.5rem);
	border-radius: 28px;
	background: var(--wp--preset--color--night);
}

/* motion: timings and easing copied from the prototype */

@keyframes fp-reveal {
	from {
		opacity: 0;
		translate: var(--fp-from, 0 40px);
	}
}

@keyframes fp-leave {
	to {
		opacity: 0;
		translate: 0 -15px;
	}
}

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

	.fp-hero__content > * {
		--fp-from: 0 25px;
		animation: fp-reveal 600ms var(--fp-ease-power2-out) 300ms both;
	}

	.fp-hero__content > :nth-child(2) {
		animation-delay: 400ms;
	}

	.fp-hero__content > :nth-child(3) {
		animation-delay: 500ms;
	}

	.fp-hero__content > :nth-child(4) {
		animation-delay: 600ms;
	}

	.fp-hero__content > :nth-child(5) {
		animation-delay: 700ms;
	}

	/* hero slider: the new slide's content rises in, the old slide's lifts out */
	.has-moved .is-active .fp-hero__content > * {
		--fp-from: 0 20px;
		animation: fp-reveal 500ms var(--fp-ease-power2-out) 350ms both;
	}

	.has-moved .is-active .fp-hero__content > :nth-child(2) {
		animation-delay: 430ms;
	}

	.has-moved .is-active .fp-hero__content > :nth-child(3) {
		animation-delay: 510ms;
	}

	.has-moved .is-active .fp-hero__content > :nth-child(4) {
		animation-delay: 590ms;
	}

	.has-moved .is-active .fp-hero__content > :nth-child(5) {
		animation-delay: 670ms;
	}

	.has-moved .is-leaving .fp-hero__content > * {
		animation: fp-leave 250ms var(--fp-ease-power1-out) both;
	}

	.has-moved .is-leaving .fp-hero__content > :nth-child(2) {
		animation-delay: 30ms;
	}

	.has-moved .is-leaving .fp-hero__content > :nth-child(3) {
		animation-delay: 60ms;
	}

	.has-moved .is-leaving .fp-hero__content > :nth-child(4) {
		animation-delay: 90ms;
	}

	.has-moved .is-leaving .fp-hero__content > :nth-child(5) {
		animation-delay: 120ms;
	}

	/* hidden until reveal.js marks them; .fp-js only exists when that script runs */
	.fp-js :is(.fp-reveal, .fp-reveal-left, .fp-reveal-right),
	.fp-js .fp-stagger > * {
		opacity: 0;
	}

	.fp-reveal-left {
		--fp-from: -50px 0;
	}

	.fp-reveal-right {
		--fp-from: 50px 0;
	}

	/* reveal-right starts past the screen edge; clip, not hidden, so sticky and margins are untouched */
	main {
		overflow-x: clip;
	}

	.fp-js :is(.fp-reveal, .fp-reveal-left, .fp-reveal-right).is-revealed {
		opacity: 1;
		animation: fp-reveal 800ms var(--fp-ease-power3-out) both;
	}

	.fp-js .fp-stagger.is-revealed > * {
		--fp-from: 0 30px;
		opacity: 1;
		animation: fp-reveal 600ms var(--fp-ease-power2-out) both;
	}

	.fp-js .fp-stagger.is-revealed > :nth-child(2) {
		animation-delay: 100ms;
	}

	.fp-js .fp-stagger.is-revealed > :nth-child(3) {
		animation-delay: 200ms;
	}

	.fp-js .fp-stagger.is-revealed > :nth-child(4) {
		animation-delay: 300ms;
	}
}
