/*
Theme Name: BookingWP Theme
Theme URI: https://bookingwp.com
Description: Block theme for BookingWP: layout and design tokens only. Commerce, forums, and integrations live in bookingwp-core.
Author: BookingWP
Author URI: https://bookingwp.com
Version: 1.18.15
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: bookingwp-theme
Tags: block-patterns, block-styles, full-site-editing, wide-blocks
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
*/

/* -------------------------------------------------------------------------
   Base
------------------------------------------------------------------------- */

html {
	scrollbar-gutter: stable;
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	font-kerning: normal;
	font-optical-sizing: auto;

	/* Sticky header (4rem + 1rem pad + 1px border) + page pad-top. */
	--sticky-under-header: calc(var(--wp-admin--admin-bar--height, 0px) + 5rem + 1px + var(--wp--custom--layout--pad-top));
}

:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

h1, h2, h3, h4, h5, h6,
.wp-block-post-title,
.wp-block-query-title,
.wp-block-heading {
	font-weight: 500;
	letter-spacing: var(--wp--custom--tracking--headline);
	text-wrap: balance;
}

p,
li {
	text-wrap: pretty;
}

h1,
h1.wp-block-heading,
.wp-block-post-title,
.wp-block-query-title {
	font-weight: 600;
	letter-spacing: var(--wp--custom--tracking--display);
}

h2,
h2.wp-block-heading {
	letter-spacing: var(--wp--custom--tracking--headline);
}

h3,
h3.wp-block-heading,
h4,
h4.wp-block-heading {
	letter-spacing: var(--wp--custom--tracking--title);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.wp-site-blocks > header,
.wp-site-blocks > main,
.wp-site-blocks > footer {
	margin-block-start: 0 !important;
}

.wp-site-blocks > header,
.wp-site-blocks > footer {
	width: 100%;
}

.wp-site-blocks > header {
	position: sticky;
	top: env(safe-area-inset-top, 0px);
	z-index: 100;
}

body.admin-bar .wp-site-blocks > header {
	top: calc(var(--wp-admin--admin-bar--height, 32px) + env(safe-area-inset-top, 0px));
}

@media screen and (max-width: 782px) {
	body.admin-bar .wp-site-blocks > header {
		top: calc(var(--wp-admin--admin-bar--height, 46px) + env(safe-area-inset-top, 0px));
	}
}

/* WP core uses absolute below 600px so the bar scrolls away - keep it fixed. */
@media screen and (max-width: 600px) {
	#wpadminbar {
		position: fixed;
	}
}

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

.wp-block-post-content table:not(.bwp-cmp__table),
.entry-content table:not(.bwp-cmp__table) {
	width: 100%;
	border-collapse: collapse;
}

.wp-block-post-content table:not(.bwp-cmp__table) :is(th, td),
.entry-content table:not(.bwp-cmp__table) :is(th, td) {
	padding: 0.6rem 0.75rem;
	border-bottom: 1px solid var(--wp--preset--color--hairline);
	text-align: left;
}

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

.site-header {
	position: relative;
	z-index: 1;
	padding-block: 0.5rem;
	background: var(--wp--custom--color--surface);
	border-bottom: 1px solid var(--wp--preset--color--hairline);
}

.site-header__inner {
	width: 100%;
	min-height: 4rem;
	gap: var(--wp--custom--space--5);
	flex-wrap: nowrap !important;
}

.site-header__nav {
	flex: 1 1 auto;
	justify-content: flex-end;
}

.site-header .wp-block-navigation__container {
	flex-wrap: nowrap !important;
	align-items: center;
	gap: 0.15rem;
}

.site-header .wp-block-navigation a {
	padding: 0.45rem 0.65rem;
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: none;
}

.site-header .wp-block-navigation .is-nav-cta > a,
.site-header .wp-block-navigation .is-nav-cta > a:hover {
	background: transparent;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.35em;
}

.custom-logo-link {
	display: inline-block;
	line-height: 0;
}

.custom-logo {
	display: block;
	width: 148px;
	height: auto;
}

.custom-logo .st0 {
	fill: var(--wp--preset--color--text);
}

.custom-logo .st1 {
	fill: var(--wp--preset--color--accent);
}

/* Product lockup: Appointments wordmark + subtitle home link. */
.site-product-lockup {
	position: relative;
	display: inline-block;
	padding-bottom: 0.7em;
}

a.site-product-brand {
	display: inline-block;
	white-space: nowrap;
	color: inherit;
	font-size: 1.7rem;
	font-weight: 700;
	letter-spacing: -0.045em;
	line-height: 1;
	text-decoration: none !important;
}

a.site-product-home {
	position: absolute;
	right: 0;
	bottom: 0;
	color: var(--wp--preset--color--muted);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.01em;
	line-height: 1;
	text-decoration: none;
	transition: color 0.2s ease;
}

a.site-product-home:is(:hover, :focus-visible) {
	color: var(--wp--preset--color--text);
}

.site-product-brand__mark {
	position: relative;
}

.site-product-brand__mark::before,
.site-product-brand__mark::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 0.04em;
	width: 0.28em;
	height: 0.28em;
	border-radius: 50%;
	transform: translateX(-50%);
	pointer-events: none;
}

.site-product-brand__mark::after {
	background: var(--wp--preset--color--accent);
	box-shadow: 0 0 0 0.06em var(--wp--custom--color--surface, #fff);
	transition: transform 0.22s ease, background-color 0.22s ease;
}

.site-product-brand__mark::before {
	border: 1.5px solid var(--wp--preset--color--accent);
	opacity: 0;
}

a.site-product-brand:is(:hover, :focus-visible) .site-product-brand__mark::after {
	background: var(--wp--preset--color--accent-hover);
	transform: translateX(-50%) scale(1.4);
}

a.site-product-brand:is(:hover, :focus-visible) .site-product-brand__mark::before {
	animation: spb-ping 0.55s ease-out;
}

@keyframes spb-ping {
	from {
		opacity: 0.65;
		transform: translateX(-50%) scale(1);
	}

	to {
		opacity: 0;
		transform: translateX(-50%) scale(2.5);
	}
}

@media (prefers-reduced-motion: reduce) {
	a.site-product-home,
	.site-product-brand__mark::after {
		transition: none;
	}

	a.site-product-brand:is(:hover, :focus-visible) .site-product-brand__mark::after {
		transform: translateX(-50%);
	}

	a.site-product-brand:is(:hover, :focus-visible) .site-product-brand__mark::before {
		animation: none;
	}
}

/* Signed-in Account: about-node fill + soft ring. */
.site-header .is-nav-account.is-signed-in > a::after {
	content: "";
	width: 0.5rem;
	height: 0.5rem;
	margin-inline-start: 0.65rem;
	border-radius: 50%;
	background: #1fa971;
	box-shadow: 0 0 0 0.34rem color-mix(in srgb, #1fa971 10%, transparent);
}

.site-header .menu-item-cart {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-header .menu-item-cart a {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	text-decoration: none;
	color: var(--wp--preset--color--text);
	white-space: nowrap;
}

/* Cart: about-node fill + soft ring, with count digit. */
.site-header .cart-count {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 1.1rem;
	height: 1.1rem;
	padding-inline: 0.25rem;
	border-radius: var(--wp--custom--shape--full, 999px);
	background: var(--wp--preset--color--accent, #f5405b);
	box-shadow: 0 0 0 0.34rem color-mix(in srgb, var(--wp--preset--color--accent, #f5405b) 10%, transparent);
	color: #fff;
	font-size: 0.625rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	line-height: 1;
}

.menu-item-cart[data-count="0"] {
	display: none;
}

body:is(.home, .single-post:has(.wp-block-cover.story-hero)) .wp-site-blocks > header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	width: 100%;
}

body.admin-bar:is(.home, .single-post:has(.wp-block-cover.story-hero)) .wp-site-blocks > header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

@media screen and (max-width: 782px) {
	body.admin-bar:is(.home, .single-post:has(.wp-block-cover.story-hero)) .wp-site-blocks > header {
		top: var(--wp-admin--admin-bar--height, 46px);
	}
}

body:is(.home, .single-post:has(.wp-block-cover.story-hero)) .site-header {
	background: linear-gradient(to bottom, rgba(18, 22, 28, 0.5), rgba(18, 22, 28, 0));
	border-bottom: 0;
}

@media (min-width: 782px) {
	body:is(.home, .single-post:has(.wp-block-cover.story-hero)) .site-header .wp-block-navigation a:hover,
	body:is(.home, .single-post:has(.wp-block-cover.story-hero)) .site-header .wp-block-navigation a[aria-current="page"] {
		background: rgba(255, 255, 255, 0.16);
		color: #fff;
	}

	body:is(.home, .single-post:has(.wp-block-cover.story-hero)) .site-header .wp-block-navigation a {
		color: #fff;
	}
}

body:is(.home, .single-post:has(.wp-block-cover.story-hero)) .custom-logo .st0 {
	fill: #fff;
}

body:is(.home, .single-post:has(.wp-block-cover.story-hero)) .menu-toggle:not(.activated) {
	color: #fff;
}

/* Mobile menu. Root nav only - inner ul also has .wp-block-navigation. */
.menu-toggle {
	position: relative;
	z-index: 2;
	display: none;
	align-items: center;
	gap: 0.5rem;
	min-height: var(--wp--custom--layout--touch);
	min-width: var(--wp--custom--layout--touch);
	margin: 0 -0.5em 0 0;
	padding: 1em 0.5em;
	border: 0;
	background: transparent;
	color: var(--wp--custom--color--on-surface);
	cursor: pointer;
	font: inherit;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1;
}

.menu-toggle span {
	--menu-toggle-bars: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 14'%3E%3Crect width='18' height='2' y='4'/%3E%3Crect width='18' height='2' y='8'/%3E%3C/svg%3E");
	--menu-toggle-close: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 14' fill='none'%3E%3Cpath stroke='%23000' stroke-width='2' stroke-linecap='square' d='M3 2L15 12M15 2L3 12'/%3E%3C/svg%3E");

	display: block;
	flex-shrink: 0;
	width: 18px;
	height: 14px;
	background-color: currentColor;
	-webkit-mask: var(--menu-toggle-bars) center / 100% 100% no-repeat;
	mask: var(--menu-toggle-bars) center / 100% 100% no-repeat;
}

.menu-toggle.activated span {
	-webkit-mask: var(--menu-toggle-close) center / 100% 100% no-repeat;
	mask: var(--menu-toggle-close) center / 100% 100% no-repeat;
}

.nav-backdrop {
	position: fixed;
	top: var(--wp-admin--admin-bar--height, 0);
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 500;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(18, 22, 28, 0.42);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.nav-backdrop[hidden] {
	display: none;
}

@media (max-width: 781px) {
	.menu-toggle {
		display: inline-flex;
	}

	.site-header__nav > .wp-block-navigation {
		display: none;
	}

	/*
	 * Body only. Overflow on html + sticky top:admin-bar double-offsets the
	 * header (46px → 92px) on sticky pages when logged in.
	 */
	html.is-nav-open body {
		overflow: hidden;
		overscroll-behavior: none;
	}

	/* toggle sits above the full-bleed drawer / dim. */
	html.is-nav-open .menu-toggle {
		position: relative;
		z-index: 1003;
	}

	.site-header__nav > .wp-block-navigation.activated {
		position: fixed;
		top: var(--wp-admin--admin-bar--height, 0);
		right: 0;
		bottom: 0;
		left: auto;
		z-index: 1000;
		display: block;
		box-sizing: border-box;
		width: min(calc(100% - 4.5rem), 22rem);
		/* 4rem bar + 1rem pad + 1px border - links clear the chrome. */
		padding: calc(5rem + 1px) 0 max(2rem, env(safe-area-inset-bottom));
		overflow: auto;
		overscroll-behavior: contain;
		background: var(--wp--custom--color--surface);
		box-shadow: -1rem 0 3rem rgba(42, 49, 57, 0.18);
	}

	.site-header__nav > .wp-block-navigation .wp-block-navigation__container {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		width: 100%;
	}

	.site-header__nav > .wp-block-navigation .wp-block-navigation-item + .wp-block-navigation-item,
	.site-header__nav > .wp-block-navigation .wp-block-navigation-item + .menu-item-cart {
		border-top: 1px solid var(--wp--custom--color--outline-variant);
	}

	.site-header__nav > .wp-block-navigation a {
		display: flex;
		align-items: center;
		box-sizing: border-box;
		width: 100%;
		min-height: var(--wp--custom--layout--touch);
		padding-block: 0.35rem;
		padding-inline: 2rem 1.5rem;
		color: var(--wp--custom--color--on-surface);
		font-size: 1.0625rem;
		font-weight: 500;
		letter-spacing: var(--wp--custom--tracking--body);
		text-decoration: none;
	}

	.site-header__nav > .wp-block-navigation .is-nav-cta > a,
	.site-header__nav > .wp-block-navigation .is-nav-cta > a:hover {
		font-weight: 500;
		text-decoration: none;
	}

	.site-header__nav > .wp-block-navigation a:hover,
	.site-header__nav > .wp-block-navigation a:active,
	.site-header__nav > .wp-block-navigation a[aria-current="page"] {
		background: color-mix(in srgb, var(--wp--custom--color--on-surface) 5%, var(--wp--custom--color--surface));
		color: var(--wp--custom--color--on-surface);
	}
}

/* -------------------------------------------------------------------------
   Page chrome: title, kicker, lede, section rhythm
------------------------------------------------------------------------- */

.hero-section {
	padding-block: var(--wp--custom--layout--pad-top) var(--wp--preset--spacing--40);
	margin-bottom: 0;
	background: transparent;
	border-bottom: 0;
}

.hero-section .wp-block-post-title,
.hero-section .wp-block-query-title,
.hero-section h1 {
	margin: 0;
	letter-spacing: var(--wp--custom--tracking--display);
	text-wrap: balance;
}

.page-kicker {
	margin: 0 0 var(--wp--custom--space--3);
	color: var(--wp--preset--color--subtle);
}

.page-lede,
.hero-section > p,
.hero-section .wp-block-post-excerpt p,
.blog-hero p:not(.page-kicker),
.showcase-hero p:not(.page-kicker),
.page-hero p {
	margin-block-start: var(--wp--custom--space--3);
	max-width: var(--wp--custom--layout--measure);
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 400;
	letter-spacing: var(--wp--custom--tracking--body);
	line-height: var(--wp--custom--line-height--base);
	text-wrap: pretty;
}

.hero-section .wp-block-post-excerpt:has(p:empty),
.page-content > .wp-block-post-excerpt:has(p:empty),
.page-content .wp-block-post-content > p:empty {
	display: none;
}

/* -------------------------------------------------------------------------
   Inner pages
------------------------------------------------------------------------- */

.page-content {
	padding-block: var(--wp--custom--layout--pad-top) var(--wp--preset--spacing--70);
}

.page-shell .page-content > .wp-block-post-title,
.page-shell .page-content > h1.wp-block-heading,
.page-shell .page-content > h1,
.page-shell .page-content > .bookingwp-account-heading .wp-block-post-title {
	margin: 0;
	font-size: clamp(2.25rem, 4.5vw, 3.125rem);
	font-weight: 600;
	letter-spacing: var(--wp--custom--tracking--display);
	line-height: var(--wp--custom--line-height--tight);
	text-align: start;
}

.page-shell .page-content > .wp-block-post-title,
.page-shell .page-content > h1.wp-block-heading,
.page-shell .page-content > h1 {
	margin-bottom: var(--wp--custom--space--6);
}

.page-shell .page-content > .page-lede,
.page-shell .page-content > .wp-block-post-excerpt {
	margin: 0 0 var(--wp--custom--space--6);
	text-align: start;
	margin-inline: 0;
}

.page-shell .page-content > .wp-block-yoast-seo-breadcrumbs,
.page-shell .page-content > .yoast-breadcrumbs {
	margin: 0 0 var(--wp--custom--space--4);
}

/* :where() = zero specificity so hero/page spacing and cover colors can win.
   Color stays on the root (not > span) so "/" inherits; links set their own. */
:where(.site-breadcrumbs, .yoast-breadcrumbs, .wp-block-yoast-seo-breadcrumbs, #breadcrumbs) {
	margin: 0;
	color: var(--wp--preset--color--subtle);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	letter-spacing: var(--wp--custom--tracking--body);
	line-height: 1.45;
}

:where(.site-breadcrumbs, .yoast-breadcrumbs, .wp-block-yoast-seo-breadcrumbs, #breadcrumbs) a {
	color: var(--wp--preset--color--muted);
	text-decoration: none;
}

:where(.site-breadcrumbs, .yoast-breadcrumbs, .wp-block-yoast-seo-breadcrumbs, #breadcrumbs) a:hover {
	color: var(--wp--custom--color--primary);
}

.site-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-breadcrumbs li + li::before {
	content: "/";
	margin-right: 0.4rem;
	color: var(--wp--preset--color--subtle);
}

body.bookingwp-account .wp-block-yoast-seo-breadcrumbs,
body.bookingwp-account .yoast-breadcrumbs,
body.bookingwp-checkout .wp-block-yoast-seo-breadcrumbs,
body.bookingwp-checkout .yoast-breadcrumbs,
body.page:not(.page-child, .bbpress) .wp-block-yoast-seo-breadcrumbs,
body.page:not(.page-child, .bbpress) .yoast-breadcrumbs {
	display: none;
}

.page-shell .page-content > .page-kicker {
	margin: 0 0 var(--wp--custom--space--3);
}

/* -------------------------------------------------------------------------
   About timeline
------------------------------------------------------------------------- */

.about-timeline {
	--about-rail: 1.75rem;
	position: relative;
	margin: 0 0 var(--wp--preset--spacing--50);
}

.about-timeline__spine {
	position: absolute;
	top: 0.55rem;
	bottom: 0.55rem;
	left: calc((var(--about-rail) - 2px) / 2);
	z-index: 0;
	width: 2px;
	pointer-events: none;
}

.about-timeline__spine-track {
	position: absolute;
	inset: 0;
	border-radius: 999px;
	background: var(--wp--preset--color--hairline);
}

.about-timeline__spine-fill {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 0%;
	border-radius: inherit;
	background: linear-gradient(
		180deg,
		var(--wp--preset--color--gradient-start, #f4556d) 0%,
		var(--wp--custom--color--primary) 100%
	);
}

.about-timeline__eras {
	position: relative;
	z-index: 1;
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: clamp(1.85rem, 4vw, 2.75rem);
}

.about-timeline__era {
	display: grid;
	grid-template-columns: var(--about-rail) minmax(0, 1fr);
	column-gap: 0;
	align-items: start;
	scroll-margin-top: var(--sticky-under-header);
}

/* Fade copy only - nodes stay opaque so the spine cannot show through. */
.about-timeline.is-ready .about-timeline__copy {
	opacity: 0.45;
	transform: translateY(0.45rem);
	transition:
		opacity var(--wp--custom--motion--duration-short, 200ms) var(--wp--custom--motion--easing, ease),
		transform 360ms var(--wp--custom--motion--easing, ease);
}

.about-timeline.is-ready .about-timeline__era.is-visible .about-timeline__copy,
.about-timeline.is-ready .about-timeline__era.is-active .about-timeline__copy {
	opacity: 1;
	transform: none;
}

/* Status dots: about timeline + checkout flow (same halo / fill / soft ring). */
.bookingwp-flow li::before {
	content: "";
	margin: 0;
}

.about-timeline__node,
.bookingwp-flow li::before {
	/* Surface halo masks the spine/connector so the line does not cut through the dot. */
	--bwp-dot-halo: 0 0 0 0.28rem var(--wp--custom--color--surface, #fff);
	box-sizing: border-box;
	position: relative;
	z-index: 1;
	width: 0.75rem;
	height: 0.75rem;
	border-radius: 50%;
	border: 2px solid var(--wp--custom--color--surface, #fff);
	background: var(--wp--preset--color--hairline);
	box-shadow: var(--bwp-dot-halo);
	transition:
		background-color var(--wp--custom--motion--duration-short) var(--wp--custom--motion--easing),
		box-shadow var(--wp--custom--motion--duration-short) var(--wp--custom--motion--easing),
		transform var(--wp--custom--motion--duration-short) var(--wp--custom--motion--easing);
}

.about-timeline__node {
	margin: 0.45rem auto 0;
}

/* Done: solid fill. About visible/active share this fill + soft ring. */
.about-timeline__era.is-active .about-timeline__node,
.about-timeline__era.is-visible .about-timeline__node,
.bookingwp-flow .is-complete::before {
	background: var(--wp--custom--color--primary);
	box-shadow:
		var(--bwp-dot-halo),
		0 0 0 0.45rem color-mix(in srgb, var(--wp--custom--color--primary) 14%, transparent);
}

.about-timeline__era.is-active .about-timeline__node {
	transform: scale(1.12);
}

/* Not started (and checkout current base): dashed outline. */
.about-timeline__era.is-ahead .about-timeline__node,
.bookingwp-flow .is-upcoming::before,
.bookingwp-flow .is-current::before {
	background: var(--wp--custom--color--surface, #fff);
	border-color: var(--wp--custom--color--primary);
	border-style: dashed;
	box-shadow: var(--bwp-dot-halo);
}

/* In progress: tinted dashed + soft ring (about ahead+active). */
.about-timeline__era.is-ahead.is-active .about-timeline__node,
.about-timeline__era.is-ahead.is-visible .about-timeline__node,
.bookingwp-flow .is-current::before {
	background: color-mix(in srgb, var(--wp--custom--color--primary) 12%, var(--wp--custom--color--surface, #fff));
	box-shadow:
		var(--bwp-dot-halo),
		0 0 0 0.45rem color-mix(in srgb, var(--wp--custom--color--primary) 10%, transparent);
}

.bookingwp-flow .is-current::before {
	transform: scale(1.12);
}

.about-timeline__copy {
	min-width: 0;
	padding-left: 1rem;
}

.about-timeline__year {
	margin: 0 0 0.35rem;
	color: var(--wp--custom--color--primary);
	font-size: 0.8125rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.about-timeline__title {
	margin: 0 0 0.65rem;
	font-size: clamp(1.3rem, 3vw, 1.65rem);
	font-weight: 600;
	letter-spacing: var(--wp--custom--tracking--headline);
	line-height: 1.22;
	text-wrap: balance;
}

.about-timeline__lead {
	margin: 0 0 0.75rem;
	max-width: 38rem;
	color: var(--wp--preset--color--muted);
	font-size: 1.0625rem;
	line-height: 1.5;
	text-wrap: pretty;
}

.about-timeline__points {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.45rem;
}

.about-timeline__points li {
	position: relative;
	padding-left: 1rem;
	color: var(--wp--preset--color--muted);
	font-size: 1.0125rem;
	line-height: 1.5;
	text-wrap: pretty;
}

.about-timeline__points li::before {
	content: "";
	position: absolute;
	top: 0.65rem;
	left: 0;
	width: 0.35rem;
	height: 0.35rem;
	border-radius: 50%;
	background: color-mix(in srgb, var(--wp--custom--color--primary) 55%, var(--wp--preset--color--hairline));
}

.about-timeline__points a {
	color: var(--wp--custom--color--on-surface);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: color-mix(in srgb, var(--wp--custom--color--primary) 35%, transparent);
	text-underline-offset: 0.15em;
}

.about-timeline__points a:hover {
	color: var(--wp--custom--color--primary);
	text-decoration-color: var(--wp--custom--color--primary);
}

@media (prefers-reduced-motion: reduce) {
	.about-timeline.is-ready .about-timeline__copy {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.about-timeline__spine-fill,
	.about-timeline__node,
	.bookingwp-flow li::before {
		transition: none;
	}
}

/* Checkout: logo only. Empty cart centers the logo. */
body.bookingwp-checkout .site-header__nav,
body.bookingwp-checkout .site-footer,
body.bookingwp-checkout > .wp-site-blocks > footer.wp-block-template-part {
	display: none !important;
}

body.bookingwp-checkout--empty .site-header__inner {
	justify-content: center;
}

/* Checkout: forums-adjacent shell; room for form + sticky summary. */
body.bookingwp-checkout .page-content.is-layout-constrained {
	--wp--style--global--content-size: 60rem;
}

body.bookingwp-checkout .page-content.is-layout-constrained > *,
body.bookingwp-checkout .page-content > .wp-block-post-excerpt,
body.bookingwp-checkout .page-content > .wp-block-post-content,
body.bookingwp-checkout .page-content .wp-block-edd-checkout {
	max-width: 60rem !important;
	width: 100%;
}

/* Title is unused; hide it and drop the sibling block-gap it would leave. */
body.bookingwp-checkout .wp-block-post-title {
	display: none;
}

body.bookingwp-checkout .page-content > .wp-block-post-content {
	margin-block-start: 0;
}

/* Gravity Forms: brand tokens only. Orbital owns field chrome. */
.page-content .gform_wrapper.gform-theme {
	--gf-color-primary: #f5405b;
	--gf-color-primary-rgb: 245, 64, 91;
	--gf-color-primary-contrast: #fff;
	--gf-color-primary-darker: #f62b49;
	--gf-color-primary-lighter: #f62b49;
	--gf-ctrl-border-color: var(--wp--custom--color--outline);
	--gf-ctrl-border-color-focus: var(--wp--custom--color--primary);
	--gf-ctrl-border-color-hover: var(--wp--custom--color--on-surface);
	--gf-ctrl-btn-bg-color-primary: var(--wp--custom--color--primary);
	--gf-ctrl-btn-bg-color-hover-primary: color-mix(in srgb, #fff 8%, var(--wp--custom--color--primary));
	--gf-ctrl-btn-color-primary: var(--wp--custom--color--on-primary);
	--gf-ctrl-btn-radius: var(--wp--custom--shape--button);
	--gf-ctrl-btn-font-weight: 500;
	/* Inline form preset sets the md size; important keeps the site button. */
	--gf-ctrl-btn-size: var(--wp--custom--layout--touch) !important;
	--gf-ctrl-btn-padding-x: 1.5rem !important;
	--gf-ctrl-btn-padding-y: 0 !important;
	--gf-radius: 0.25rem;
	--gf-font-family-base: inherit;
	--gf-font-family-primary: inherit;

	margin: 0.25rem 0 0;
	max-width: 36rem;
}

.page-content .gform_wrapper.gform-theme input[type="submit"]::after,
.page-content .gform_wrapper.gform-theme button::after {
	content: none;
}

.page-content .gform_wrapper.gform-theme .md-field {
	display: contents;
}

.page-content .gform_wrapper.gform-theme input[type="submit"],
.page-content .gform_wrapper.gform-theme .gform_button {
	isolation: auto;
	overflow: visible;
	background-image: none !important;
	box-shadow: none !important;
}

/* Legacy GF (live contact): shared input column width + counter under textarea start. */
.page-content .gform_wrapper.gform_legacy_markup_wrapper .ginput_container :is(input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="number"], textarea, select) {
	width: 100% !important;
	max-width: 100%;
	box-sizing: border-box;
}

.page-content .gform_wrapper.gform_legacy_markup_wrapper .ginput_complex.ginput_container--name {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	column-gap: 0.5rem;
	box-sizing: border-box;
}

.page-content .gform_wrapper.gform_legacy_markup_wrapper .ginput_complex.ginput_container--name > span {
	display: block !important;
	min-width: 0 !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden;
}

.page-content .gform_wrapper.gform_legacy_markup_wrapper .ginput_container :is(.ginput_counter, .charleft) {
	margin-left: 0 !important;
	width: auto !important;
	max-width: 100%;
	padding-right: 0;
	text-align: start;
}

.help-cards {
	display: grid !important;
	grid-template-columns: 1fr;
	gap: 0.75rem;
	margin: 0 auto;
	max-width: 72rem;
	padding-inline: var(--wp--custom--layout--gutter);
	counter-reset: help-card;
	flex-wrap: nowrap !important;
}

/* Descendant (not >): Columns wraps inner blocks in the editor. */
.help-cards .wp-block-column {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin: 0;
	padding: 1.5rem 0;
	border-radius: var(--wp--custom--shape--md);
}

/* Primary CTA sits on the card footer; .help-card-more follows. */
.help-cards .wp-block-column > p:has(> a):not(.help-card-more) {
	margin-top: auto;
}

.help-cards h3 {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.65rem;
	margin: 0;
	font-size: clamp(1.375rem, 2.2vw, 1.625rem);
	font-weight: 600;
	letter-spacing: var(--wp--custom--tracking--title);
	line-height: 1.25;
}

.help-cards h3::before {
	counter-increment: help-card;
	content: counter(help-card, decimal-leading-zero);
	color: var(--wp--custom--color--primary);
	font-size: var(--wp--preset--font-size--label);
	font-weight: 500;
	letter-spacing: var(--wp--custom--tracking--label);
	line-height: 1;
}

.help-cards p {
	margin: 0;
	color: var(--wp--custom--color--on-surface-variant);
	font-size: 0.9375rem;
	line-height: 1.5;
}

.help-cards a {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	color: var(--wp--custom--color--primary);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	text-decoration: none;
	/* Firefox + inline-flex + ↗ ::after wraps label text; keep each link atomic. */
	white-space: nowrap;
}

.help-cards .wp-block-column > p:has(> a):not(.help-card-more) a {
	min-height: var(--wp--custom--layout--touch);
}

.help-card-more {
	display: flex;
	flex-wrap: wrap;
	gap: 0.15rem 0.85rem;
}

.help-cards a:hover {
	color: var(--wp--preset--color--accent-hover);
}

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

	.help-cards .wp-block-column {
		padding-inline: 1.5rem;
	}
}

/* Compare hub: title/lede share the post-content measure; cards use wide alignment. */
.page-shell--compare .page-content > :is(.wp-block-post-title, .page-lede, .wp-block-post-excerpt, .wp-block-yoast-seo-breadcrumbs, .yoast-breadcrumbs) {
	max-width: 45rem;
}

.page-shell--compare .help-cards {
	margin-block: var(--wp--custom--space--6) var(--wp--preset--spacing--50);
	padding-inline: 0;
}

/* Direct CTA or .page-close wrapper (child compare pages). */
.page-shell--compare :is(.wp-block-post-content, .page-content) > :is(.md-cta, .post-cta, .product-end-cta, .page-close) {
	margin-block-start: var(--wp--preset--spacing--80);
}

.page-shell--compare .page-close > :is(.md-cta, .post-cta, .product-end-cta) {
	margin-block-start: 0;
}

/* -------------------------------------------------------------------------
   Homepage
------------------------------------------------------------------------- */

.wp-block-cover.front-page-1.has-custom-content-position.is-position-center-left {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: center;
	min-height: min(100svh, 44rem) !important;
	padding-top: 6.5rem !important;
	padding-bottom: 4rem !important;
	padding-inline: var(--wp--custom--layout--gutter) !important;
	background-color: #12161c;
}

.front-page-1 .wp-block-cover__inner-container {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	flex: 0 1 auto;
	align-self: auto;
	width: 100% !important;
	max-width: 72rem !important;
	margin-inline: auto !important;
	box-sizing: border-box;
}

.front-page-1 .wp-block-cover__background.has-background-dim {
	opacity: 1 !important;
	background: linear-gradient(
		90deg,
		rgba(18, 22, 28, 0.92) 0%,
		rgba(18, 22, 28, 0.78) 30%,
		rgba(18, 22, 28, 0.32) 58%,
		rgba(18, 22, 28, 0.1) 100%
	) !important;
}

.front-page-1 .wp-block-cover__inner-container > * {
	max-width: 34rem;
}

.front-page-1 > picture:has(.wp-block-cover__image-background) {
	position: absolute;
	inset: 0;
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.front-page-1 > picture .wp-block-cover__image-background {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.front-page-1 .wp-block-cover__image-background {
	object-position: 60% center;
}

.front-page-1__kicker,
.front-page-1 .page-kicker {
	margin: 0 0 0.85rem;
	color: rgba(255, 255, 255, 0.72);
	font-size: var(--wp--preset--font-size--label);
	font-weight: 500;
	letter-spacing: var(--wp--custom--tracking--label);
	line-height: 1.3;
	text-transform: uppercase;
}

.front-page-1 .wp-block-cover__inner-container > h1 {
	max-width: 13ch;
	color: #fff;
	margin: 0 0 0.4em;
	font-size: clamp(2.75rem, 5.25vw, 4.75rem);
	font-weight: 600;
	letter-spacing: var(--wp--custom--tracking--display);
	line-height: 1.02;
	text-wrap: balance;
}

.front-page-1 p,
.front-page-1 a:not(.wp-element-button) {
	color: rgba(255, 255, 255, 0.92);
}

.front-page-1 p:not(.page-kicker) {
	max-width: 38rem;
	font-size: clamp(1.125rem, 1.6vw, 1.375rem);
	margin: 0 0 1.5rem;
	letter-spacing: var(--wp--custom--tracking--body);
	line-height: 1.5;
	text-wrap: pretty;
}

.front-page-1 .wp-block-buttons {
	gap: 0.35rem;
}

.front-page-1 .is-style-outline .wp-element-button {
	background: transparent !important;
	color: #fff !important;
}

.front-page-1 .is-style-outline .wp-element-button::after {
	background: #fff;
}

.front-page-1 .is-style-outline .wp-element-button:hover {
	background: rgba(255, 255, 255, 0.16) !important;
	color: #fff !important;
	text-decoration: none;
}

.front-page-3.is-layout-constrained > *,
.front-page-8.is-layout-constrained > *,
.blog-hero.is-layout-constrained > *,
.showcase-hero.is-layout-constrained > *,
.story-hero.is-layout-constrained > *,
.product-page.is-layout-constrained > *,
.site-header.is-layout-constrained > *,
.site-footer.is-layout-constrained > * {
	max-width: 72rem;
	width: 100%;
}

.md-home-product {
	display: flex;
	flex-direction: column;
	/* Intro/art row → feature grid (flex gap works in Site Editor + front). */
	gap: clamp(2.25rem, 5vw, 4rem);
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
	margin-block-start: 0 !important;
}

/* Avoid double spacing with layout flow margin-block-start. */
.md-home-product > * {
	margin-block-start: 0 !important;
}

.wp-block-post-content > .front-page-1 {
	margin-block-end: 0 !important;
}

.md-home-product__showcase {
	align-items: center !important;
	gap: clamp(2rem, 6vw, 5.5rem) !important;
}

.md-home-product__intro .page-kicker {
	margin: 0 0 0.75rem;
	color: var(--wp--custom--color--primary);
}

.md-home-product__intro h2 {
	margin: 0 0 0.75rem;
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 600;
	letter-spacing: var(--wp--custom--tracking--headline);
	line-height: 1.1;
	text-wrap: balance;
}

.md-home-product__intro > p {
	margin: 0 0 1.5rem;
	max-width: 36rem;
	color: var(--wp--custom--color--on-surface-variant);
	font-size: var(--wp--preset--font-size--large);
	letter-spacing: var(--wp--custom--tracking--body);
	line-height: 1.5;
	text-wrap: pretty;
}

.md-home-product__intro .wp-block-buttons {
	gap: 0.5rem;
}

.md-home-product__art {
	display: flex;
	justify-content: center;
}

.md-home-product__art figure {
	margin: 0;
	width: 100%;
	aspect-ratio: 900 / 850;
}

.md-home-product__art a {
	display: block;
	width: 100%;
}

.md-home-product__art img {
	display: block;
	height: auto;
	width: 100%;
}

.md-home-product__grid {
	gap: 3.45rem !important;
}

.md-home-product__grid > .wp-block-column {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 0;
}

.md-home-product__grid h3 {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 500;
	letter-spacing: var(--wp--custom--tracking--title);
	line-height: 1.3;
}

.md-home-product__icon {
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	margin-bottom: 0.15rem;
	background: color-mix(in srgb, var(--wp--custom--color--primary) 10%, transparent);
	border-radius: 50%;
	color: var(--wp--custom--color--primary);
}

.md-home-product__icon svg {
	width: 1.35rem;
	height: 1.35rem;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.75;
}

/*
 * Fallback when post HTML cannot keep inline SVG (no unfiltered_html).
 * Prefer in-content <svg>; empty icon shells still render via mask.
 */
.md-home-product__icon:empty::after {
	content: "";
	display: block;
	width: 1.35rem;
	height: 1.35rem;
	background-color: currentColor;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
}

.md-home-product__grid > .wp-block-column:nth-child(1) .md-home-product__icon:empty::after {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 7v5l3 2m6-2a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 7v5l3 2m6-2a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z'/%3E%3C/svg%3E");
}

.md-home-product__grid > .wp-block-column:nth-child(2) .md-home-product__icon:empty::after {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 13 13 20l-9-9V4h7l9 9ZM8.5 8.5h.01'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 13 13 20l-9-9V4h7l9 9ZM8.5 8.5h.01'/%3E%3C/svg%3E");
}

.md-home-product__grid > .wp-block-column:nth-child(3) .md-home-product__icon:empty::after {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2m7-10a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm13 10v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2m7-10a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm13 10v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}

.md-home-product__grid > .wp-block-column:nth-child(4) .md-home-product__icon:empty::after {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 3v4h-4M5 21v-4h4m10.5-7a8 8 0 0 0-13.8-3L5 7m14 10-.7.8A8 8 0 0 1 4.5 14'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 3v4h-4M5 21v-4h4m10.5-7a8 8 0 0 0-13.8-3L5 7m14 10-.7.8A8 8 0 0 1 4.5 14'/%3E%3C/svg%3E");
}

.md-home-product__grid p {
	margin: 0;
	color: var(--wp--custom--color--on-surface-variant);
	font-size: 0.9375rem;
	line-height: 1.5;
}

/* Four feature columns only when each one has room to wrap on spaces. */
@media (max-width: 1100px) and (min-width: 782px) {
	.md-home-product__grid {
		flex-wrap: wrap !important;
	}

	.md-home-product__grid > .wp-block-column {
		flex-basis: calc(50% - 1.75rem) !important;
		flex-grow: 1;
	}
}

@media (max-width: 781px) {
	.md-home-product__showcase,
	.md-home-product__grid {
		flex-direction: column !important;
	}

	.md-home-product__showcase {
		gap: 1.5rem !important;
	}

	.md-home-product__art {
		order: -1;
	}

	.md-home-product__art figure {
		width: min(100%, 28rem);
		margin-inline: auto;
	}
}

.front-page-8 {
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
}

.front-page-8__head {
	margin-bottom: 1.75rem;
	gap: 1rem;
	align-items: baseline;
}

.front-page-8__head h2 {
	margin: 0;
	font-weight: 600;
	letter-spacing: var(--wp--custom--tracking--headline);
}

.front-page-8__all {
	margin: 0;
	font-weight: 500;
}

.front-page-8__all a {
	display: inline-flex;
	align-items: center;
	min-height: var(--wp--custom--layout--touch);
}

.front-page-8 .wp-block-post-template {
	gap: 1.75rem !important;
}

.front-page-8 .wp-block-post-featured-image img,
.post-card .wp-block-post-featured-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	object-position: center;
	border-radius: var(--wp--custom--shape--md);
}

.plugin-card .wp-block-post-featured-image img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 10rem;
	margin: 0 auto;
	aspect-ratio: 1;
	object-fit: contain;
}

.post-card {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	height: 100%;
	padding: 0 0 1.25rem;
	border-radius: var(--wp--custom--shape--md);
}

.post-card .wp-block-post-featured-image {
	overflow: hidden;
	margin: 0;
	border-radius: var(--wp--custom--shape--md);
}

.post-card .wp-block-post-featured-image:not(:has(img)) {
	display: none;
}

.post-card .wp-block-post-date {
	margin: 0.35rem 0 0;
	color: var(--wp--custom--color--on-surface-variant);
	font-size: var(--wp--preset--font-size--label);
	font-weight: 500;
	letter-spacing: var(--wp--custom--tracking--label);
	line-height: 1.45;
}

.post-card h3,
.plugin-card h3 {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 500;
	letter-spacing: var(--wp--custom--tracking--title);
	line-height: 1.35;
}

.post-card h3 a,
.plugin-card h3 a {
	color: var(--wp--custom--color--on-surface);
	text-decoration: none;
}

/*
 * Stretched primary hit-target. Help `body` prefix stays out of the iframed editor.
 * Secondary / .help-card-more links stack above (z-index 3).
 */
:is(.post-card, .showcase-card, .blog-hero__latest .wp-block-post):has(a),
body .help-cards .wp-block-column:has(a) {
	cursor: pointer;
}

:is(.post-card, .showcase-card, .blog-hero__latest .wp-block-post) :is(h2, h3) a::before,
body .help-cards .wp-block-column > p:has(> a):not(.help-card-more) > a:first-child::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
}

body .help-cards .wp-block-column > p:has(> a):not(.help-card-more) a:not(:first-child),
body .help-cards .help-card-more a {
	position: relative;
	z-index: 3;
}

:is(.post-card, .plugin-card, .showcase-card) h3 a:hover,
.blog-hero__latest .wp-block-post-title a:hover {
	text-decoration: none;
}

:is(.post-card, .showcase-card, .blog-hero__latest .wp-block-post) :is(h2, h3) a:focus-visible,
body .help-cards .wp-block-column > p:has(> a):not(.help-card-more) > a:first-child:focus-visible {
	outline: none;
}

:is(.post-card, .showcase-card, .blog-hero__latest .wp-block-post):has(a:focus-visible),
body .help-cards .wp-block-column:has(> p:has(> a):not(.help-card-more) > a:first-child:focus-visible) {
	outline: 2px solid var(--wp--custom--color--primary);
	outline-offset: 2px;
}

/* Card hover wash. */
:is(.post-card, .showcase-card, .blog-hero__latest .wp-block-post, .help-cards .wp-block-column)::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: inherit;
	background: color-mix(in srgb, var(--wp--custom--color--on-surface) 6%, var(--wp--custom--color--surface));
	opacity: 0;
	pointer-events: none;
	transition:
		inset var(--wp--custom--motion--duration-short) var(--wp--custom--motion--easing),
		opacity var(--wp--custom--motion--duration-short) var(--wp--custom--motion--easing);
}

:is(.post-card, .showcase-card, .blog-hero__latest .wp-block-post):has(a):is(:hover, :has(a:focus-visible))::before,
.help-cards .wp-block-column:is(:hover, :focus-within)::before {
	inset: -1rem;
	opacity: 1;
}

/* Card hover underlines primary; direct link hover/focus underlines that link. */
.help-cards .wp-block-column:is(:hover, :focus-within) > p:has(> a):not(.help-card-more) > a:first-child,
.help-cards a:is(:hover, :focus-visible) {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

/* Keep the title out of the positioning chain so the stretched link covers the card. */
:is(.post-card, .showcase-card) h3,
.blog-hero__latest .wp-block-post-title {
	position: static;
}

.post-card .wp-block-post-excerpt,
.plugin-card .wp-block-post-excerpt {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--wp--custom--color--on-surface-variant);
}

.post-card .wp-block-post-excerpt p {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0;
}

.plugins-catalog {
	padding-block: var(--wp--preset--spacing--50) var(--wp--preset--spacing--70);
}

.plugins-catalog .wp-block-post-template.is-layout-grid {
	grid-template-columns: 1fr !important;
}

.plugin-card {
	display: grid;
	gap: 1rem;
	max-width: 28rem;
	margin-inline: auto;
	padding: 1.5rem;
	background: var(--wp--preset--color--background);
}

.blog-pagination {
	gap: 0.5rem;
	margin-top: var(--wp--preset--spacing--50);
}

/* -------------------------------------------------------------------------
   Blog listing
------------------------------------------------------------------------- */

.blog-hero,
.showcase-hero,
.page-hero {
	text-align: center;
}

.blog-hero h1,
.blog-hero .wp-block-heading,
.showcase-hero h1,
.showcase-hero .wp-block-heading,
.page-hero .wp-block-post-title {
	font-size: clamp(2.5rem, 5vw, 3.75rem);
	font-weight: 600;
	letter-spacing: var(--wp--custom--tracking--display);
	line-height: var(--wp--custom--line-height--tight);
}

.blog-hero p:not(.page-kicker),
.showcase-hero p:not(.page-kicker),
.page-hero .page-lede {
	margin-inline: auto;
}

.blog-hero:has(.blog-hero__latest) {
	text-align: left;
}

.blog-hero:has(.blog-hero__latest) :is(.blog-topics, .wp-block-categories.blog-topics) {
	justify-content: flex-start;
}

.blog-hero__grid {
	gap: var(--wp--custom--space--8) !important;
	align-items: center;
	width: 100%;
}

.blog-hero__intro,
.blog-hero__latest {
	width: 100%;
}

.blog-hero__intro .wp-block-buttons {
	gap: 0.5rem;
}

.blog-hero__latest .wp-block-post {
	position: relative;
	isolation: isolate;
	border: 0;
	border-radius: var(--wp--custom--shape--md);
}

@media (min-width: 840px) {
	.blog-hero__grid {
		flex-wrap: nowrap !important;
	}

	.blog-hero__intro,
	.blog-hero__latest {
		flex: 1 1 0;
		min-width: 0;
	}
}

.blog-hero__latest .wp-block-post-featured-image {
	overflow: hidden;
	margin: 0 0 0.85rem;
	border-radius: var(--wp--custom--shape--md, 0.5rem);
}

.blog-hero__latest .wp-block-post-featured-image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--wp--custom--shape--md, 0.5rem);
}

.blog-hero__latest .wp-block-post-title {
	margin: 0.35rem 0 0;
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 600;
	letter-spacing: var(--wp--custom--tracking--display);
	line-height: 1.2;
}

.blog-hero__latest .wp-block-post-title a {
	color: inherit;
	text-decoration: none;
}

.blog-hero__latest .wp-block-post-excerpt {
	margin: 0.65rem 0 0;
	color: var(--wp--custom--color--on-surface-variant);
}

.blog-topics,
.wp-block-categories.blog-topics {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.4rem;
	margin: 1.1rem 0 0;
	padding: 0;
	list-style: none;
}

.blog-topics li {
	margin: 0;
}

.blog-listing {
	padding-block: var(--wp--preset--spacing--50) var(--wp--preset--spacing--70);
}

.blog-listing .wp-block-post-template.is-layout-grid {
	gap: 1.5rem !important;
}

@media (max-width: 599px) {
	.blog-listing .wp-block-post-template.is-layout-grid {
		grid-template-columns: 1fr !important;
	}
}

@media (min-width: 600px) and (max-width: 781px) {
	.blog-listing .wp-block-post-template.is-layout-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

:is(.blog-hero, .page-hero, .bbpress-shell .hero-section) .wp-block-search {
	max-width: 28rem;
	width: 100%;
	margin: 1.25rem auto 0;
}

/* Split / forums intro: keep search flush left. */
:is(.blog-hero:has(.blog-hero__latest), .bbpress-shell .bbpress-hero__intro) :is(.page-lede, .wp-block-search) {
	margin-left: 0;
	margin-right: 0;
}

/* Help hub: content measure column; 28rem search flush left with title. */
.wp-block-post-content > .hero-section {
	display: grid;
	grid-template-columns: minmax(0, var(--wp--style--global--content-size));
	justify-content: center;
	justify-items: start;
}

.wp-block-post-content > .hero-section > * {
	width: 100%;
	max-width: none;
	margin-inline: 0 !important;
}

.wp-block-post-content > .hero-section > .wp-block-search {
	max-width: 36rem;
	margin-block-start: 1.25rem;
}

.wp-block-search__inside-wrapper {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	gap: 0.25rem;
	max-width: 100%;
	padding: 0.2rem 0.2rem 0.2rem 1.25rem;
	border: 2px solid var(--wp--custom--color--outline);
	border-radius: var(--wp--custom--shape--full);
	background: var(--wp--custom--color--surface);
	transition: border-color var(--wp--custom--motion--duration-short) var(--wp--custom--motion--easing);
}

.wp-block-search__inside-wrapper:hover:not(:focus-within) {
	border-color: var(--wp--custom--color--on-surface);
}

.wp-block-search__inside-wrapper:focus-within {
	border-color: var(--wp--custom--color--primary);
	outline: none;
}

.wp-block-search__inside-wrapper:focus-within :focus-visible {
	outline: none;
}

.wp-block-search input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	padding: 0.55rem 0;
	outline: none;
}

/* Beat :root :where(.wp-element-button) from theme.json global styles. */
.wp-block-search__inside-wrapper .wp-block-search__button {
	min-height: 2.5rem !important;
	padding: 0 0.95rem !important;
	border: 0;
	border-radius: var(--wp--custom--shape--full) !important;
	background: transparent !important;
	color: var(--wp--preset--color--muted) !important;
	font-weight: 500;
	box-shadow: none !important;
}

.wp-block-search__inside-wrapper .wp-block-search__button::after {
	content: none;
}

.wp-block-search__inside-wrapper .wp-block-search__button:hover {
	background: var(--wp--custom--color--surface-container) !important;
	color: var(--wp--custom--color--on-surface) !important;
}

/* -------------------------------------------------------------------------
   Story (single post): cover hero (default single) or featured beside title
------------------------------------------------------------------------- */

.wp-block-cover.story-hero.has-custom-content-position.is-position-center-left {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: center;
	min-height: min(64vh, 34rem) !important;
	padding-top: 6.5rem !important;
	padding-bottom: 3.25rem !important;
	padding-inline: var(--wp--custom--layout--gutter) !important;
	background-color: #12161c;
	border-bottom: 0;
}

.story-hero.wp-block-cover .wp-block-cover__inner-container {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	flex: 0 1 auto;
	align-self: auto;
	width: 100% !important;
	max-width: 72rem !important;
	margin-inline: auto !important;
	box-sizing: border-box;
	gap: 0;
}

.story-hero.wp-block-cover .wp-block-cover__inner-container > * {
	max-width: 40rem;
}

.story-hero.wp-block-cover .wp-block-cover__background.has-background-dim {
	opacity: 1 !important;
	background: linear-gradient(
		90deg,
		rgba(18, 22, 28, 0.92) 0%,
		rgba(18, 22, 28, 0.78) 30%,
		rgba(18, 22, 28, 0.32) 58%,
		rgba(18, 22, 28, 0.1) 100%
	) !important;
}

.story-hero.wp-block-cover .wp-block-cover__image-background {
	object-position: 72% center;
}

.story-hero.wp-block-cover {
	position: relative;
}

.story-hero.wp-block-cover > .hero-attribution {
	position: absolute;
	right: 1.25rem;
	bottom: 1rem;
	z-index: 3;
	margin: 0;
	color: rgba(255, 255, 255, 0.55);
	font-size: 0.75rem;
	line-height: 1.3;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.story-hero.wp-block-cover > .hero-attribution a {
	color: inherit;
	text-decoration: none;
}

.story-hero.wp-block-cover > .hero-attribution a:hover,
.story-hero.wp-block-cover > .hero-attribution a:focus {
	text-decoration: underline;
}

.story-hero.wp-block-cover :is(.wp-block-yoast-seo-breadcrumbs, .yoast-breadcrumbs),
.story-hero.wp-block-cover :is(.wp-block-yoast-seo-breadcrumbs, .yoast-breadcrumbs) a {
	color: rgba(255, 255, 255, 0.72);
}

.story-hero.wp-block-cover :is(.wp-block-yoast-seo-breadcrumbs, .yoast-breadcrumbs) a:hover {
	color: #fff;
}

.story-hero.wp-block-cover .wp-block-post-title {
	margin: 0.5rem 0 0;
	color: #fff;
	font-size: clamp(2.35rem, 5.5vw, 3.75rem);
	font-weight: 600;
	letter-spacing: var(--wp--custom--tracking--display);
	line-height: 1.08;
	text-wrap: balance;
}

.story-hero.wp-block-cover .page-lede,
.story-hero.wp-block-cover .wp-block-post-excerpt p {
	margin: 1rem 0 0;
	max-width: 36rem;
	color: rgba(255, 255, 255, 0.88);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 400;
	letter-spacing: var(--wp--custom--tracking--body);
	line-height: 1.55;
	text-wrap: pretty;
}

.story-hero.wp-block-cover .wp-block-post-excerpt:has(p:empty) {
	display: none;
}

.story-hero.wp-block-cover .wp-block-post-date {
	margin: 1rem 0 0;
	font-size: var(--wp--preset--font-size--label);
	font-weight: 500;
	letter-spacing: var(--wp--custom--tracking--label);
	color: rgba(255, 255, 255, 0.6);
}

.story-hero.wp-block-cover:not(:has(.wp-block-cover__image-background)) {
	min-height: auto !important;
	padding-block: 6.5rem 3rem !important;
}

/* Featured beside title (custom template: single-featured-beside) */
.story-hero--beside {
	padding-block: var(--wp--preset--spacing--50) var(--wp--preset--spacing--60);
	background: var(--wp--custom--color--surface);
	border-bottom: 0;
}

.story-hero--beside .story-hero__grid {
	gap: var(--wp--custom--space--8) !important;
	align-items: center;
	width: 100%;
}

@media (min-width: 840px) {
	.story-hero--beside .story-hero__grid {
		flex-wrap: nowrap !important;
	}

	.story-hero--beside .story-hero__copy,
	.story-hero--beside .story-hero__media {
		flex: 1 1 0;
		min-width: 0;
	}
}

.story-hero--beside .wp-block-post-title {
	margin: 0.5rem 0 0;
	color: var(--wp--custom--color--on-surface);
	font-size: clamp(2.25rem, 4.5vw, 3.25rem);
	font-weight: 600;
	letter-spacing: var(--wp--custom--tracking--display);
	line-height: 1.1;
	text-wrap: balance;
}

.story-hero--beside .page-lede,
.story-hero--beside .wp-block-post-excerpt p {
	margin: 1rem 0 0;
	max-width: 36rem;
	color: var(--wp--custom--color--on-surface-variant);
	font-size: var(--wp--preset--font-size--medium);
	letter-spacing: var(--wp--custom--tracking--body);
	line-height: 1.55;
}

.story-hero--beside .wp-block-post-excerpt:has(p:empty) {
	display: none;
}

.story-hero--beside .wp-block-post-date {
	margin: 0.75rem 0 0;
	font-size: var(--wp--preset--font-size--label);
	font-weight: 500;
	letter-spacing: var(--wp--custom--tracking--label);
	color: var(--wp--custom--color--on-surface-variant);
}

.story-hero--beside .story-hero__media .wp-block-post-featured-image {
	margin: 0;
}

.story-hero--beside .story-hero__media img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 26rem;
	object-fit: cover;
	object-position: center top;
	border-radius: var(--wp--custom--shape--md);
	background: var(--wp--custom--color--surface-container);
	border: 1px solid var(--wp--custom--color--outline-variant);
}

.story-hero--beside .story-hero__media:not(:has(img)) {
	display: none;
}

.story-body {
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--50);
	color: var(--wp--custom--color--on-surface);
	font-size: 1.125rem;
	font-weight: 400;
	letter-spacing: var(--wp--custom--tracking--body);
	line-height: 1.7;
	scroll-margin-top: 5rem;
}

.story-body .wp-block-post-content {
	--wp--style--global--content-size: 45rem;
}

.story-body .wp-block-post-content > * {
	max-width: 45rem;
}

.story-body p {
	margin: 0 0 1.35em;
}

.story-body .wp-block-post-content > *:first-child {
	margin-top: 0;
}

.story-body h2,
.story-body h2.wp-block-heading {
	clear: both;
	margin: 2.75rem 0 0.85rem;
	color: var(--wp--custom--color--on-surface);
	font-size: clamp(1.7rem, 2.9vw, 2.05rem);
	font-weight: 600;
	letter-spacing: var(--wp--custom--tracking--headline);
	line-height: 1.2;
	text-wrap: balance;
}

.story-body h3,
.story-body h3.wp-block-heading {
	clear: both;
	margin: 2.25rem 0 0.7rem;
	color: var(--wp--custom--color--on-surface);
	font-size: 1.5rem;
	font-weight: 600;
	letter-spacing: var(--wp--custom--tracking--title);
	line-height: 1.3;
}

.story-body h4,
.story-body h4.wp-block-heading {
	clear: both;
	margin: 1.85rem 0 0.55rem;
	color: var(--wp--custom--color--on-surface);
	font-size: 1.25rem;
	font-weight: 600;
	letter-spacing: var(--wp--custom--tracking--title);
	line-height: 1.35;
}

.story-body .wp-block-post-content > h2:first-child,
.story-body .wp-block-post-content > h2.wp-block-heading:first-child {
	margin-top: 0;
}

.story-body ul,
.story-body ol {
	margin: 0 0 1.5em;
	padding-left: 1.25em;
}

.story-body li {
	margin: 0 0 0.55em;
	padding-left: 0.15em;
}

.story-body li:last-child {
	margin-bottom: 0;
}

.story-body strong {
	font-weight: 600;
	color: var(--wp--custom--color--on-surface);
}

.story-body img {
	border-radius: var(--wp--custom--shape--sm);
}

.story-body .wp-block-image img,
.story-body figure img {
	border-radius: var(--wp--custom--shape--md);
}

.story-body .wp-block-image,
.story-body figure {
	margin: 2rem 0;
}

.story-body figcaption {
	margin-top: 0.65rem;
	color: var(--wp--custom--color--on-surface-variant);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 400;
	letter-spacing: var(--wp--custom--tracking--body);
	line-height: 1.45;
	text-align: center;
}

.story-body .alignright,
.story-body .wp-block-image.alignright {
	float: right;
	margin: 0.35rem 0 1.5rem 1.75rem;
	max-width: min(48%, 22rem);
}

.story-body .alignleft,
.story-body .wp-block-image.alignleft {
	float: left;
	margin: 0.35rem 1.75rem 1.5rem 0;
	max-width: min(48%, 22rem);
}

.story-body .aligncenter,
.story-body .wp-block-image.aligncenter {
	float: none;
	margin-inline: auto;
	text-align: center;
}

.story-body .wp-block-image.alignright img,
.story-body .wp-block-image.alignleft img,
.story-body .wp-block-image.aligncenter img {
	width: 100%;
	height: auto;
}

.story-body .wp-block-image:has(> img.wp-image-860551) {
	width: min(48%, 22rem);
}

.story-body .wp-block-image img.wp-image-860551 {
	width: 100%;
	height: 22rem;
	object-fit: cover;
	object-position: center 58%;
}

.story-body .wp-block-post-content::after {
	content: "";
	display: table;
	clear: both;
}

.story-body .wp-block-separator,
.story-body hr {
	clear: both;
	margin-block: 2.75rem;
	border: 0;
	border-top: 1px solid var(--wp--custom--color--outline-variant);
	opacity: 1;
}

.story-body .wp-block-separator + p,
.story-body hr + p {
	margin-top: 0;
}

@media (max-width: 599px) {
	.story-body .alignright,
	.story-body .alignleft,
	.story-body .wp-block-image.alignright,
	.story-body .wp-block-image.alignleft {
		float: none;
		margin: 1.75rem 0;
		max-width: 100%;
		width: 100% !important;
	}
}

.story-close {
	padding-block: 0 var(--wp--preset--spacing--60);
}

/* .post-cta kept as alias for older page content. */
:is(.md-cta, .post-cta) {
	max-width: var(--wp--style--global--content-size);
	margin-block: var(--wp--preset--spacing--50) var(--wp--preset--spacing--70);
	margin-inline: auto;
	padding: var(--wp--custom--space--8) var(--wp--custom--space--6);
	border: 1px solid var(--wp--custom--color--outline-variant);
	border-radius: var(--wp--custom--shape--md);
	background: var(--wp--custom--color--surface-container);
}

/*
 * Flow layout zeros last-child end margin. Restore it for no-title pages
 * and CTAs that are a direct last child of main (e.g. showcase archive).
 * Page shells already pad instead.
 */
:is(main > .wp-block-post-content, main) > :is(.md-cta, .post-cta):last-child {
	margin-block-end: var(--wp--preset--spacing--70);
}

:is(.md-cta, .post-cta) .page-kicker {
	margin-bottom: var(--wp--custom--space--3);
}

:is(.md-cta, .post-cta) h2 {
	margin: 0 0 0.5rem;
	font-size: var(--wp--preset--font-size--x-large);
}

:is(.md-cta, .post-cta) p {
	margin: 0 0 1.25rem;
	color: var(--wp--custom--color--on-surface-variant);
}

:is(.md-cta, .post-cta) .wp-block-buttons {
	gap: 0.5rem;
}

.product-end-cta {
	text-align: center;
}

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

.md-feature {
	padding-block: var(--wp--preset--spacing--50);
}

.md-feature__media img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--wp--custom--shape--md);
}

/* -------------------------------------------------------------------------
   Post navigation: M3 outlined list tiles
------------------------------------------------------------------------- */

.post-nav {
	display: grid !important;
	grid-template-columns: 1fr;
	align-items: stretch;
	gap: 0.75rem !important;
	padding: 1.5rem 0 0;
	margin-top: 0;
	border: 0;
}

@media (min-width: 640px) {
	.post-nav {
		grid-template-columns: 1fr 1fr;
	}
}

.post-nav .post-navigation-link-previous,
.post-nav .post-navigation-link-next {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	max-width: none;
	margin: 0;
	min-width: 0;
	min-height: 5.5rem;
	overflow: hidden;
	transition: border-color var(--wp--custom--motion--duration-short) var(--wp--custom--motion--easing);
}

.post-nav .post-navigation-link-previous:not(:has(a)),
.post-nav .post-navigation-link-next:not(:has(a)) {
	display: none;
}

.post-nav .post-navigation-link-next:only-child,
.post-nav .post-navigation-link-previous:only-child {
	grid-column: 1 / -1;
}

.post-nav .post-navigation-link-previous:hover,
.post-nav .post-navigation-link-next:hover {
	border-color: color-mix(in srgb, var(--wp--custom--color--on-surface) 18%, var(--wp--custom--color--outline-variant));
}

.post-nav .post-navigation-link-previous::before,
.post-nav .post-navigation-link-next::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--wp--custom--color--on-surface);
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--wp--custom--motion--duration-short) var(--wp--custom--motion--easing);
}

.post-nav .post-navigation-link-previous:hover::before,
.post-nav .post-navigation-link-next:hover::before {
	opacity: var(--md-state-hover);
}

.post-nav a {
	position: static;
	z-index: 1;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 0.35rem;
	min-height: var(--wp--custom--layout--touch);
	height: 100%;
	padding: 1rem 1.15rem 1rem 2.85rem;
	color: var(--wp--custom--color--on-surface);
	text-align: left;
	text-decoration: none;
	box-shadow: none;
}

.post-nav .post-navigation-link-next a {
	align-items: flex-start;
	padding: 1rem 2.85rem 1rem 1.15rem;
	text-align: left;
}

.post-nav a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
}

.post-nav a:hover {
	color: var(--wp--custom--color--on-surface);
	text-decoration: none;
}

.post-nav a:focus-visible {
	outline: 2px solid var(--wp--custom--color--primary);
	outline-offset: 2px;
}

.post-nav .post-navigation-link__label {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	color: var(--wp--custom--color--on-surface-variant);
	font-size: var(--wp--preset--font-size--label);
	font-weight: 500;
	letter-spacing: var(--wp--custom--tracking--label);
	line-height: 1.3;
	text-transform: uppercase;
}

.post-nav .post-navigation-link__title {
	display: block;
	max-width: 100%;
	color: var(--wp--custom--color--on-surface);
	font-size: 0.9375rem;
	font-weight: 500;
	letter-spacing: var(--wp--custom--tracking--title);
	line-height: 1.35;
	text-wrap: balance;
}

/* Native WP arrow spans sit outside <a>; draw chevrons on the tile instead. */
.post-nav .wp-block-post-navigation-link__arrow-previous,
.post-nav .wp-block-post-navigation-link__arrow-next {
	display: none;
}

.post-nav .post-navigation-link-previous::after,
.post-nav .post-navigation-link-next::after {
	position: absolute;
	top: 50%;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.5rem;
	height: 1.5rem;
	transform: translateY(-50%);
	color: var(--wp--custom--color--on-surface-variant);
	font-size: 1.15rem;
	line-height: 1;
	pointer-events: none;
	transition: color var(--wp--custom--motion--duration-short) var(--wp--custom--motion--easing);
}

.post-nav .post-navigation-link-previous::after {
	left: 0.95rem;
	content: "←";
}

.post-nav .post-navigation-link-next::after {
	right: 0.95rem;
	content: "→";
}

.post-nav .post-navigation-link-previous:hover::after,
.post-nav .post-navigation-link-next:hover::after {
	color: var(--wp--custom--color--primary);
}

.related-posts-wrap {
	padding-top: 0;
}

.related-posts-wrap > h2 {
	margin: 0 0 1.25rem;
	font-size: 1.35rem;
}

.post-comments {
	margin-top: 3.25rem;
	padding-top: 0.25rem;
}

.post-comments .wp-block-comments-title {
	margin: 0 0 1.5rem;
	font-size: clamp(1.35rem, 2.2vw, 1.65rem);
	font-weight: 600;
	letter-spacing: var(--wp--custom--tracking--headline);
	line-height: var(--wp--custom--line-height--snug);
}

.post-comments .wp-block-comments-title:empty {
	display: none;
}

.post-comment {
	padding: 1rem 0;
	border-bottom: 1px solid var(--wp--preset--color--hairline);
}

.post-comment .wp-block-comment-author-name {
	font-weight: 700;
}

.post-comment .wp-block-comment-date {
	font-size: 0.75rem;
	color: var(--wp--preset--color--subtle);
}

.comment-reply-title,
.post-comments .comment-reply-title {
	margin: 0 0 1.5rem;
	font-size: clamp(1.35rem, 2.2vw, 1.65rem);
	font-weight: 600;
	letter-spacing: var(--wp--custom--tracking--headline);
	line-height: var(--wp--custom--line-height--snug);
}

.post-comments .comment-form,
.post-comments .wp-block-post-comments-form {
	margin-top: 0;
}

.post-comments .comment-form > p:first-child,
.post-comments .wp-block-post-comments-form > p:first-of-type {
	margin-top: 0;
}

/* -------------------------------------------------------------------------
   Showcase
------------------------------------------------------------------------- */

:is(.showcase-archive .blog-hero__latest, .showcase-hero .blog-hero__intro) .page-kicker {
	margin: 1.5rem 0 0;
	max-width: none;
}

.showcase-archive .blog-hero__latest .page-kicker .is-featured {
	color: var(--wp--custom--color--primary);
}

.showcase-archive .blog-hero__latest .page-kicker + .wp-block-post-title {
	margin-top: 0.55rem;
}

/* Shared browser frame: featured + grid (+ related). */
:is(:is(.showcase-archive, .showcase-hero) .blog-hero__latest, .showcase-card) .wp-block-post-featured-image {
	overflow: hidden;
	margin: 0;
	border: 1px solid var(--wp--custom--color--outline-variant);
	border-radius: var(--wp--custom--shape--md);
	background: var(--wp--custom--color--surface);
}

:is(:is(.showcase-archive, .showcase-hero) .blog-hero__latest, .showcase-card) .wp-block-post-featured-image::before {
	content: "";
	display: block;
	height: 1.75rem;
	border-bottom: 1px solid var(--wp--custom--color--outline-variant);
	background-color: color-mix(in srgb, var(--wp--custom--color--on-surface) 4%, var(--wp--custom--color--surface));
	background-image: radial-gradient(circle, #ff5f57 4px, transparent 4.5px),
		radial-gradient(circle, #febc2e 4px, transparent 4.5px),
		radial-gradient(circle, #28c840 4px, transparent 4.5px);
	background-repeat: no-repeat;
	background-position: 12px 50%, 28px 50%, 44px 50%;
	background-size: 12px 12px;
}

:is(:is(.showcase-archive, .showcase-hero) .blog-hero__latest, .showcase-card) .wp-block-post-featured-image img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	object-position: center top;
	border-radius: 0;
}

.showcase-hero:has(.blog-hero__grid) :is(h1, .wp-block-post-title) {
	font-size: clamp(2rem, 4vw, 2.85rem);
}

.showcase-hero:has(.blog-hero__grid) :is(p:not(.page-kicker), .wp-block-post-excerpt p) {
	margin-inline: 0;
}

.showcase-listing {
	padding-block: var(--wp--preset--spacing--50) var(--wp--preset--spacing--70);
	border-top: 1px solid var(--wp--preset--color--hairline);
}

.showcase-listing__bar,
.blog-listing__bar {
	align-items: baseline !important;
	gap: 0.75rem 1.25rem !important;
	margin: 0 0 1.25rem;
	width: 100%;
}

.showcase-listing__bar .page-kicker,
.blog-listing__bar .page-kicker {
	margin: 0;
}

/* Keep one seam into the CTA, with a bit more air above the card. */
.showcase-listing:has(+ :is(.md-cta, .post-cta)),
.showcase-body:has(+ :is(.md-cta, .post-cta)) {
	padding-block-end: 0;
}

:is(.showcase-listing, .showcase-body) + :is(.md-cta, .post-cta) {
	margin-block-start: var(--wp--preset--spacing--60);
}

.showcase-listing .wp-block-post-template.is-layout-grid {
	gap: 1.75rem 1.5rem !important;
}

.showcase-card {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	gap: 0;
	margin: 0;
	border-radius: var(--wp--custom--shape--md);
}

.showcase-card :is(h3, .showcase-card__meta) {
	margin: 0;
	padding-inline: var(--wp--custom--shape--md);
}

.showcase-card h3 {
	padding-block: var(--wp--custom--shape--md) 0.35rem;
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: var(--wp--custom--tracking--title);
	line-height: 1.3;
}

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

.showcase-card__meta {
	padding-block: 0 var(--wp--custom--shape--md);
}

.showcase-body {
	padding-block: 2rem 3rem;
}

.showcase-body .wp-block-post-content {
	color: var(--wp--custom--color--on-surface-variant);
	font-size: var(--wp--preset--font-size--medium);
	line-height: var(--wp--custom--line-height--base);
}

.showcase-body .wp-block-post-content > h2 {
	margin: 2.25rem 0 0.75rem;
	color: var(--wp--custom--color--on-surface);
	font-size: clamp(1.35rem, 2.4vw, 1.65rem);
	font-weight: 600;
	letter-spacing: var(--wp--custom--tracking--title);
	line-height: 1.25;
}

.showcase-body .wp-block-post-content > .showcase-facts + h2,
.showcase-body .wp-block-post-content > h2:first-child {
	margin-top: 0;
}

.showcase-facts {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.95fr) minmax(0, 1.25fr);
	align-items: start;
	gap: 1.2rem 1.35rem;
	margin: 0 0 2.25rem;
	padding-block: 1.2rem;
	border-block: 1px solid var(--wp--custom--color--outline-variant);
}

/* Beat layout flow's later margin-block-start on 2nd/3rd children (editor + front). */
.wp-block-group.showcase-facts.is-layout-flow > * {
	margin-block-start: 0;
}

.showcase-facts p {
	color: var(--wp--custom--color--on-surface);
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.4;
}

.showcase-facts strong {
	display: block;
	margin-bottom: 0.35rem;
	color: var(--wp--preset--color--subtle);
	font-size: var(--wp--preset--font-size--label, 0.75rem);
	font-weight: 500;
	letter-spacing: var(--wp--custom--tracking--label, 0.06em);
	text-transform: uppercase;
}

.showcase-body .wp-block-post-content > ul {
	margin: 0.75rem 0 0;
	padding-left: 1.15rem;
}

.showcase-body .wp-block-post-content > ul li {
	margin: 0.4rem 0;
}

.showcase-single .related-posts-wrap {
	padding-block: var(--wp--preset--spacing--40) var(--wp--preset--spacing--70);
}

.showcase-single .related-posts-wrap > .wp-block-heading {
	margin: 0 0 1.5rem;
}

@media (max-width: 781px) {
	.showcase-listing .wp-block-post-template.is-layout-grid {
		grid-template-columns: 1fr !important;
	}
}

/* Below editor canvas width so the admin iframe keeps the 3-col storefront layout. */
@media (max-width: 599px) {
	.showcase-facts {
		grid-template-columns: 1fr;
	}
}

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

.site-footer {
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--50);
	background: var(--wp--custom--color--surface);
	border-top: 1px solid var(--wp--preset--color--hairline);
}

.site-footer__grid {
	gap: 2rem 1.5rem !important;
	margin: 0 0 var(--wp--preset--spacing--50);
}

.site-footer__col {
	min-width: 0;
}

.site-footer__heading {
	margin: 0 0 0.85rem;
	color: var(--wp--preset--color--subtle);
	font-size: var(--wp--preset--font-size--label);
	font-weight: 600;
	letter-spacing: var(--wp--custom--tracking--label);
	line-height: 1.3;
	text-transform: uppercase;
}

.site-footer__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__list li {
	margin: 0;
}

.site-footer__list li + li {
	margin-top: 0.55rem;
}

.site-footer p,
.site-footer__list {
	color: var(--wp--custom--color--on-surface-variant);
	font-weight: 500;
	line-height: 1.5;
}

.site-footer a {
	color: var(--wp--custom--color--on-surface);
	text-decoration: none;
}

.site-footer__follow {
	color: var(--wp--custom--color--primary);
}

.site-footer a:hover {
	color: var(--wp--custom--color--primary);
}

.site-footer__legal {
	margin: 0;
	padding-top: var(--wp--custom--space--5);
	border-top: 1px solid var(--wp--preset--color--hairline);
	font-weight: 500;
	line-height: 1.7;
}

.site-footer__legal a {
	padding-inline: 0.15rem;
}

.site-footer__copy {
	color: var(--wp--preset--color--subtle);
	font-weight: 400;
}

/* Keep three columns past WP’s 781px stack; collapse on phones for tap width. */
.site-footer__grid.is-not-stacked-on-mobile {
	flex-wrap: nowrap !important;
	gap: 1.5rem 1.25rem !important;
}

.site-footer__grid.is-not-stacked-on-mobile > .site-footer__col {
	flex-basis: 0 !important;
	flex-grow: 1 !important;
}

@media (max-width: 599px) {
	.site-footer__grid.is-not-stacked-on-mobile {
		flex-wrap: wrap !important;
		gap: 1.75rem 0 !important;
	}

	.site-footer__grid.is-not-stacked-on-mobile > .site-footer__col {
		flex-basis: 100% !important;
		flex-grow: 1 !important;
	}

	.site-footer__legal a {
		display: inline-flex;
		align-items: center;
		min-height: var(--wp--custom--layout--touch, 2.75rem);
		padding-inline: 0.45rem;
	}
}

/* -------------------------------------------------------------------------
   Forms / buttons: see assets/css/system.css
------------------------------------------------------------------------- */

.bbpress-shell .hero-section {
	text-align: left;
	padding-block: var(--wp--preset--spacing--40) var(--wp--custom--space--2);
	background: transparent;
	border-bottom: 0;
}

/* Kill layout-flow sibling gap (1.5rem) between hero and content. */
.bbpress-shell .page-content {
	margin-block-start: 0;
	padding-top: 0;
}

body:not(.forum-archive) .bbpress-archive-lede {
	display: none;
}

body.bbpress:not(.forum-archive, .single-forum, .bbp-user-page, .bbp-search, .bbp-search-results) .bbpress-shell .hero-section .wp-block-search {
	display: none;
}

:is(.bbpress-shell .hero-section, .blog-hero, .showcase-hero, .story-hero) :is(.wp-block-yoast-seo-breadcrumbs, .yoast-breadcrumbs) {
	margin-bottom: var(--wp--custom--space--4);
}

body.bbpress:not(.forum-archive, .single-forum) .bbpress-shell .hero-section .wp-block-post-title {
	font-size: clamp(1.75rem, 3.5vw, 2.35rem);
	line-height: var(--wp--custom--line-height--snug);
}

/* Tablet + phone: denser hero, keep CTAs inline until true phone width. */
@media (max-width: 781px) {
	.front-page-1.wp-block-cover,
	.story-hero.wp-block-cover {
		min-height: auto !important;
		padding-top: 5.75rem !important;
		padding-bottom: 2.75rem !important;
	}

	.front-page-1 .wp-block-cover__background.has-background-dim,
	.story-hero .wp-block-cover__background.has-background-dim {
		background: linear-gradient(
			180deg,
			rgba(18, 22, 28, 0.55) 0%,
			rgba(18, 22, 28, 0.88) 100%
		) !important;
	}

	.front-page-1 .wp-block-cover__inner-container > * {
		max-width: min(100%, 34rem);
	}

	.front-page-1 h1 {
		font-size: clamp(2.35rem, 7vw, 3.35rem);
		line-height: 1.05;
	}

	.front-page-1 p:not(.page-kicker) {
		font-size: 1.125rem;
		line-height: 1.45;
		margin-bottom: 1.25rem;
	}

	.front-page-1 .wp-block-buttons {
		flex-wrap: wrap;
		align-items: center;
		gap: 0.5rem 0.65rem;
		width: auto;
		max-width: none;
	}

	.front-page-1 .wp-block-button,
	.front-page-1 .wp-block-button__link {
		width: auto;
	}

	.md-home-product__intro h2 {
		font-size: clamp(1.75rem, 5vw, 2.35rem);
		line-height: 1.12;
	}

	.md-home-product__intro > p {
		font-size: 1.0625rem;
		line-height: 1.5;
	}

	.md-home-product__intro .wp-block-buttons {
		flex-wrap: wrap;
		align-items: center;
		gap: 0.5rem 0.65rem;
		width: auto;
	}

	.md-home-product__intro .wp-block-button,
	.md-home-product__intro .wp-block-button__link {
		width: auto;
	}

	.story-hero.wp-block-cover .wp-block-post-title {
		font-size: clamp(2.15rem, 7vw, 2.85rem);
		line-height: 1.1;
	}

	.hero-section {
		padding-block: 1.35rem var(--wp--preset--spacing--40);
	}

	.page-content {
		padding-block: 1.35rem var(--wp--preset--spacing--60);
	}

	:is(.md-cta, .post-cta) {
		padding: var(--wp--custom--space--6) var(--wp--custom--space--5);
	}

	:is(.md-cta, .post-cta) h2 {
		font-size: clamp(1.35rem, 5vw, 1.75rem);
		line-height: 1.2;
	}
}

/* Phones: stack CTAs; keep auto width so labels stay left-aligned. */
@media (max-width: 599px) {
	.front-page-1 .wp-block-buttons,
	.md-home-product__intro .wp-block-buttons,
	.blog-hero__intro .wp-block-buttons {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
	}

	.front-page-1 h1 {
		font-size: clamp(2.15rem, 10.5vw, 2.85rem);
	}

	:is(.md-cta, .post-cta, .product-end-cta) .wp-block-buttons {
		flex-direction: column;
		align-items: stretch;
		width: 100%;
	}

	:is(.md-cta, .post-cta, .product-end-cta) :is(.wp-block-button, .wp-block-button__link) {
		width: 100%;
	}
}
