/*
 * Global styles layered on top of theme.json.
 *
 * Home/header/footer sections mirror designs/Cardinal Home.dc.html value for
 * value. Those sections use `layout: default` groups plus the classes below,
 * so spacing comes from these rules (gap/padding) rather than WordPress's
 * flow-layout blockGap margins, which are neutralized inside them.
 */

/* ==================================================================== */
/* Base                                                                  */
/* ==================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

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

a {
	text-underline-offset: 3px;
}

:focus-visible {
	outline: var(--wp--custom--focus-ring--width) solid var(--wp--preset--color--red);
	outline-offset: var(--wp--custom--focus-ring--offset);
	border-radius: var(--wp--custom--focus-ring--radius);
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}

h1,
h2 {
	text-wrap: balance;
}

p {
	text-wrap: pretty;
}

html {
	scroll-padding-top: 90px;
}

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

.skip-link.screen-reader-text:focus {
	position: absolute !important;
	top: 16px;
	left: 16px;
	width: auto;
	height: auto;
	margin: 0;
	clip: auto;
	z-index: 100000;
	padding: 10px 16px;
	border-radius: var(--wp--custom--radius--nav);
	background: var(--wp--preset--color--ink);
	color: #fff;
	text-decoration: none;
}

/* WordPress adds blockGap margins between top-level template parts and
 * between children of flow-layout groups. The designed sections control
 * their own spacing, so remove those margins inside them. */
body .wp-site-blocks > * {
	margin-block: 0;
}

body :is([class*="cwp-"], [class*="site-header"], [class*="site-footer"]) > * {
	margin-block: 0;
}

.cwp-main {
	overflow-x: clip;
}

/* ==================================================================== */
/* Buttons                                                               */
/* ==================================================================== */

body .cwp-btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: stretch;
}

.cwp-btn-secondary .wp-block-button__link {
	background: #fff;
	color: var(--wp--preset--color--ink);
	border: 1px solid var(--wp--custom--ui--border-strong);
}

.cwp-btn-secondary .wp-block-button__link:hover {
	background: #fff;
	color: var(--wp--preset--color--ink);
	border-color: var(--wp--preset--color--ink);
}

.cwp-btn-light .wp-block-button__link {
	background: #fff;
	color: var(--wp--preset--color--ink);
}

.cwp-btn-light .wp-block-button__link:hover {
	background: var(--wp--preset--color--ink);
	color: #fff;
}

.cwp-btn-outline-light .wp-block-button__link {
	background: transparent;
	color: #fff;
	border: 1px solid #fff;
}

.cwp-btn-outline-light .wp-block-button__link:hover {
	background: var(--wp--preset--color--red-dark);
	color: #fff;
}

/* ==================================================================== */
/* Header                                                                */
/* ==================================================================== */

.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 5;
}

body.admin-bar .wp-site-blocks > header.wp-block-template-part {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .wp-site-blocks > header.wp-block-template-part {
		top: 46px;
	}
}

.site-header {
	background: rgba(250, 248, 246, 0.92);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--wp--preset--color--line-2);
}

.site-header__inner {
	max-width: var(--wp--custom--container--width);
	margin: 0 auto;
	padding: 14px var(--wp--custom--container--gutter);
	display: flex;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
}

/* 44px = the logo mark's height in the design, so the bar is 73px with or without it. */
.site-header .site-header__brand {
	display: flex;
	align-items: center;
	min-height: 44px;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: normal;
}

.site-header .site-header__brand a {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

/* Badge-style mark: starts just under the header's top edge and hangs
 * below its bottom border. It takes up only the 44px row (negative
 * margins), so the header keeps its height and the name stays centered. */
.site-header .site-header__logo {
	position: relative;
	z-index: 1;
	flex: none;
	align-self: flex-start;
	width: auto;
	height: 88px;
	margin: -6px 0 -38px;
	filter: drop-shadow(0 2px 6px rgb(28 26 25 / 18%));
}

@media (max-width: 781px) {
	.site-header .site-header__logo {
		height: 76px;
		margin: -4px 0 -28px;
	}

	/* The name wraps beside the logo so the menu button keeps its row. */
	.site-header .site-header__brand {
		flex: 1 1 0;
		min-width: 0;
		font-size: 17px;
		line-height: 1.25;
	}
}

.site-header__nav {
	margin-left: auto;
}

.cwp-menu__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-header .cwp-menu__list {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	align-items: center;
}

.site-header .cwp-menu__list a {
	display: block;
	padding: 8px 12px;
	border-radius: var(--wp--custom--radius--nav);
	color: var(--wp--preset--color--ink-3);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
}

.site-header .cwp-menu__list a:hover {
	background: var(--wp--preset--color--hover);
	color: var(--wp--preset--color--ink-3);
}

.site-header .cwp-menu__list :is(.current-menu-item, .current-menu-ancestor, .current-page-ancestor, .current_page_parent) > a {
	color: var(--wp--preset--color--ink);
	font-weight: 600;
	background: var(--wp--preset--color--hover);
}

/* The menu's "Get started" item (CSS class buy-menu-link in Appearance > Menus) is the pill CTA. */
.site-header .cwp-menu__list .buy-menu-link > a {
	margin-left: 8px;
	padding: 9px 16px;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--red);
	color: #fff;
	font-weight: 600;
}

.site-header .cwp-menu__list .buy-menu-link > a:hover {
	background: var(--wp--preset--color--red-dark);
	color: #fff;
}

/* With items in the cart the CTA reads "Cart" plus a count badge
 * (inc/account.php, src/cart-cta.js). */
.site-header .cwp-menu__list .buy-menu-link.has-cart-items > a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding-right: 10px;
}

.cwp-cart-count {
	display: inline-grid;
	place-items: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: var(--wp--custom--radius--pill);
	background: #fff;
	color: var(--wp--preset--color--red);
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.site-header__toggle {
	display: none;
	margin-left: auto;
	padding: 10px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--nav);
	background: #fff;
	cursor: pointer;
}

.site-header__toggle-bar,
.site-header__toggle-bar::before,
.site-header__toggle-bar::after {
	display: block;
	width: 18px;
	height: 2px;
	background: var(--wp--preset--color--ink);
}

.site-header__toggle-bar {
	position: relative;
}

.site-header__toggle-bar::before,
.site-header__toggle-bar::after {
	content: "";
	position: absolute;
	left: 0;
}

.site-header__toggle-bar::before {
	top: -6px;
}

.site-header__toggle-bar::after {
	top: 6px;
}

@media (max-width: 781px) {
	.site-header__toggle {
		display: block;
	}

	.site-header__nav {
		display: none;
		flex-basis: 100%;
		margin-left: 0;
	}

	.site-header__nav.is-open {
		display: block;
		padding-top: 16px; /* clears the logo badge hanging below the header row */
	}

	.site-header .cwp-menu__list {
		flex-direction: column;
		align-items: stretch;
	}

	.site-header .cwp-menu__list .buy-menu-link > a {
		margin: 8px 0 0;
		text-align: center;
	}
}

/* ==================================================================== */
/* Shared section type                                                   */
/* ==================================================================== */

.cwp-h2 {
	font-size: var(--wp--preset--font-size--heading-section);
	line-height: 1.1;
	letter-spacing: -0.025em;
	font-weight: 700;
}

.cwp-text {
	font-size: 17px;
	line-height: 1.6;
	color: var(--wp--preset--color--muted);
}

.cwp-eyebrow {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 13px;
	color: var(--wp--preset--color--coral);
}

/* Section labels get a small map marker: the hero pins' teardrop shape,
 * in the label's own color, with the center punched out (mask) so the
 * background shows through on light and dark sections alike. Decorative. */
.cwp-eyebrow::before {
	content: "";
	display: inline-block;
	width: 9px;
	height: 9px;
	margin: 0 10px 0 2px;
	vertical-align: 1px;
	border-radius: 50% 50% 50% 0;
	background: currentColor;
	transform: rotate(-45deg);
	-webkit-mask: radial-gradient(circle at 50% 50%, transparent 0 1.6px, #000 2.1px);
	mask: radial-gradient(circle at 50% 50%, transparent 0 1.6px, #000 2.1px);
}

.eyebrow {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 13px;
}

/* ==================================================================== */
/* Home: hero                                                            */
/* ==================================================================== */

.cwp-hero {
	position: relative;
	isolation: isolate;
	max-width: var(--wp--custom--container--width);
	margin: 0 auto;
	padding: 48px var(--wp--custom--container--gutter) 72px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
	gap: 48px;
	align-items: center;
}

.cwp-hero__bg {
	position: absolute;
	inset: 0 -200px;
	z-index: -1;
	pointer-events: none;
}

.cwp-hero__bg--rings {
	background-image:
		repeating-radial-gradient(circle at 72% 45%, transparent 0 59px, var(--wp--custom--ui--ring) 59px 60px),
		radial-gradient(circle at 72% 45%, rgba(163, 34, 43, 0.06), transparent 40%);
	-webkit-mask-image: radial-gradient(circle at 72% 45%, #000 20%, transparent 60%);
	mask-image: radial-gradient(circle at 72% 45%, #000 20%, transparent 60%);
}

.cwp-hero__bg--graticule {
	background-image:
		linear-gradient(#ebe4de 1px, transparent 1px),
		linear-gradient(90deg, #ebe4de 1px, transparent 1px);
	background-size: 80px 80px;
	background-position: center;
	-webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 25%, transparent 70%);
	mask-image: radial-gradient(ellipse at 60% 40%, #000 25%, transparent 70%);
}

.cwp-hero__bg--dots {
	background-image: radial-gradient(circle, #e8e1db 1px, transparent 1.5px);
	background-size: 22px 22px;
	-webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 72%);
	mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 72%);
}

.cwp-hero__copy {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.cwp-badge {
	align-self: flex-start;
	display: flex;
	gap: 10px;
	align-items: center;
	padding: 6px 12px 6px 6px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--pill);
	background: #fff;
	font-size: 14px;
	color: var(--wp--preset--color--ink-3);
	text-decoration: none;
}

.cwp-badge:hover {
	border-color: var(--wp--preset--color--red);
	color: var(--wp--preset--color--ink-3);
}

.cwp-badge__tag {
	padding: 2px 8px;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--red);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
}

.cwp-hero__title {
	font-size: var(--wp--preset--font-size--display-home);
	line-height: 1.02;
	letter-spacing: -0.035em;
	font-weight: 700;
}

.cwp-hero__lead {
	max-width: 34em;
	font-size: 19px;
	line-height: 1.55;
	color: var(--wp--preset--color--muted);
}

.cwp-hero__meta {
	list-style: none;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	font-size: 14px;
	color: var(--wp--preset--color--muted-2);
}

.cwp-hero__copy .cwp-hero__meta {
	margin-top: 8px;
}

/* Locator card: a screenshot of the Modern Sidebar panel beside an
   illustrated map (shapes in Google's default colors, not a map
   screenshot), fading out toward the bottom right. */

.cwp-locator {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	min-height: 400px;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--hero);
	box-shadow: var(--wp--custom--shadow--hero);
}

.cwp-locator__panel {
	position: relative;
	border-right: 1px solid var(--wp--custom--ui--divider);
}

.cwp-locator__panel img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top left;
}

.cwp-locator__map {
	position: relative;
	mask-image: radial-gradient(140% 120% at 0 0, #000 52%, transparent 96%);
}

.cwp-map {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.cwp-map__land {
	fill: var(--wp--custom--map--land);
}

.cwp-map__street {
	fill: none;
	stroke: var(--wp--custom--map--street);
	stroke-width: 2;
}

.cwp-map__park {
	fill: var(--wp--custom--map--park);
}

.cwp-map__water {
	fill: var(--wp--custom--map--water);
}

.cwp-map__river {
	fill: none;
	stroke: var(--wp--custom--map--water);
	stroke-width: 24;
	stroke-linecap: round;
}

.cwp-map__arterial,
.cwp-map__highway {
	fill: none;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.cwp-map__arterial {
	stroke: var(--wp--custom--map--street);
	stroke-width: 7;
	filter: drop-shadow(0 0 0.6px var(--wp--custom--map--street-casing));
}

.cwp-map__highway {
	stroke: var(--wp--custom--map--highway);
	stroke-width: 8;
	filter: drop-shadow(0 0 0.8px var(--wp--custom--map--highway-casing));
}

.cwp-map__pins use {
	fill: var(--wp--preset--color--red);
	stroke: #fff;
	stroke-width: 2;
}

.cwp-map__pins text {
	fill: #fff;
	font-family: var(--wp--preset--font-family--sans, sans-serif);
	font-size: 12px;
	font-weight: 700;
	text-anchor: middle;
	dominant-baseline: central;
}

/* A narrow card stacks like the plugin's Sidebar layout does: search form,
   then the map, then the results. The plugin stacks when the locator is
   760px wide or less; this card is a miniature (about 550px at most), so
   it stacks at 540px, when the screenshot no longer fits beside the map.
   The second copy of the screenshot shows the results part. */
.cwp-locator-wrap {
	position: relative;
	container-type: inline-size;
}

.cwp-locator__results {
	display: none;
}

@container (max-width: 540px) {
	.cwp-locator {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto 230px auto;
		min-height: 0;
	}

	/* Top of the screenshot: the search form (146 of its 430px). */
	.cwp-locator__panel {
		aspect-ratio: 319 / 146;
		border-right: 0;
		border-bottom: 1px solid var(--wp--custom--ui--divider);
	}

	/* The count and first result, down to its address (146px to 270px). */
	.cwp-locator__results {
		position: relative;
		display: block;
		aspect-ratio: 319 / 124;
		overflow: hidden;
		border-top: 1px solid var(--wp--custom--ui--divider);
	}

	.cwp-locator__results img {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: auto;
		transform: translateY(-33.95%);
	}

	/* Keep the note in the map strip's corner, above the results. */
	.cwp-locator-wrap .cwp-locator__note {
		bottom: calc(100cqw * 124 / 319 + 12px);
	}
}

/* In the map's faded corner: this is a picture, the real one is the demo. */
.cwp-locator__note {
	position: absolute;
	right: 16px;
	bottom: 12px;
	margin: 0;
	font-size: 13px;
	color: var(--wp--preset--color--muted);
}

.cwp-locator__note a {
	color: inherit;
	font-weight: 600;
	text-decoration: none;
}

.cwp-locator__note a:hover,
.cwp-locator__note a:focus-visible {
	color: var(--wp--preset--color--ink);
	text-decoration: underline;
}

/* Base pin shape, used by the 404 page's map card. */
.cwp-locator__pin {
	position: absolute;
	width: 18px;
	height: 18px;
	border: 2px solid #fff;
	border-radius: 50% 50% 50% 0;
	background: var(--wp--preset--color--red);
	transform: rotate(-45deg);
}

/* ==================================================================== */
/* Home: developer section                                               */
/* ==================================================================== */

.cwp-dev {
	background: var(--wp--preset--color--ink);
	color: var(--wp--custom--ui--on-dark);
}

.cwp-dev__inner {
	max-width: var(--wp--custom--container--width);
	margin: 0 auto;
	padding: 80px var(--wp--custom--container--gutter);
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
	gap: 48px;
	align-items: center;
}

.cwp-dev__copy {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.cwp-dev__text {
	max-width: 32em;
	font-size: 17px;
	line-height: 1.6;
	color: var(--wp--custom--ui--on-dark-muted);
}

.cwp-dev__links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.cwp-dev__links a {
	padding: 8px 14px;
	border: 1px solid var(--wp--preset--color--muted);
	border-radius: var(--wp--custom--radius--pill);
	font-size: 14px;
	color: #fff;
	text-decoration: none;
}

.cwp-dev__links a:hover {
	border-color: var(--wp--preset--color--coral);
	color: #fff;
}

.cwp-code {
	margin: 0;
	padding: 24px;
	overflow: auto;
	background: var(--wp--custom--code--background);
	border: 1px solid var(--wp--custom--code--border);
	border-radius: var(--wp--custom--radius--code-block);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 14px;
	line-height: 1.7;
	color: var(--wp--custom--code--text);
}

.cwp-code__comment {
	color: var(--wp--custom--code--comment);
}

.cwp-code__string {
	color: var(--wp--custom--code--string);
}

.cwp-code__keyword {
	color: var(--wp--preset--color--coral);
}

.cwp-code__number {
	color: var(--wp--custom--code--number);
}

/* ==================================================================== */
/* Home: features                                                        */
/* ==================================================================== */

.cwp-features {
	max-width: var(--wp--custom--container--width);
	margin: 0 auto;
	padding: 96px var(--wp--custom--container--gutter);
}

.cwp-features .cwp-features__intro {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 40em;
	margin-bottom: 40px;
}

body .cwp-features__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
	gap: 40px 32px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: feature;
}

body .cwp-features__grid > li {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
	padding-top: 20px;
	border-top: 2px solid var(--wp--preset--color--ink);
	counter-increment: feature;
}

body .cwp-features__grid > li > * {
	margin: 0;
}

.cwp-features__grid .cwp-features__title {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	font-size: 21px;
	line-height: normal;
	letter-spacing: -0.015em;
	font-weight: 700;
}

.cwp-features__grid .cwp-features__title::after {
	content: counter(feature, decimal-leading-zero);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: normal;
	color: var(--wp--preset--color--red);
}

.cwp-features__summary p {
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
	color: var(--wp--preset--color--muted);
}

.cwp-features .cwp-features__items > ul {
	display: flex;
	flex-direction: column;
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
}

.cwp-features__items li {
	display: flex;
	gap: 10px;
	padding: 9px 0;
	border-top: 1px solid var(--wp--preset--color--line-2);
	font-size: 15px;
	line-height: 1.4;
	color: var(--wp--preset--color--ink);
}

.cwp-features__items li::before {
	content: "";
	flex: none;
	width: 6px;
	height: 6px;
	margin-top: 7px;
	background: var(--wp--preset--color--red);
	transform: rotate(45deg);
}

.cwp-features .cwp-features__more {
	margin-top: 36px;
}

.cwp-features__more a {
	font-weight: 600;
}

/* Directly after the hero (same background), the hero's bottom padding
 * already separates them: 72px + 24px = the page's usual 96px gap. */
.cwp-main > .cwp-hero + .cwp-features {
	padding-top: 24px;
}

/* ==================================================================== */
/* Home: testimonials                                                    */
/* ==================================================================== */

/* Light band, centered heading, white cards with an initials badge
 * overlapping the top edge (photos replaced by initials). */
.cwp-testimonials {
	background: var(--wp--preset--color--bg-2);
}

.cwp-testimonials__inner {
	max-width: var(--wp--custom--container--width);
	margin: 0 auto;
	padding: 88px var(--wp--custom--container--gutter) 96px;
}

body .cwp-testimonials__inner > .cwp-testimonials__intro {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	margin-bottom: 72px;
	text-align: center;
}

.cwp-testimonials .cwp-eyebrow {
	color: var(--wp--preset--color--red);
}

.cwp-testimonials__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
	gap: 64px 24px; /* row gap leaves room for the next row's badges */
	align-items: stretch; /* equal-height cards */
}

.cwp-quote {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 12px;
	margin: 0;
	padding: 52px 24px 32px;
	border-radius: var(--wp--custom--radius--hero);
	background: #fff;
	box-shadow: 0 24px 48px -28px rgba(60, 30, 20, 0.28);
	text-align: center;
}

.cwp-quote__badge {
	position: absolute;
	top: 0;
	left: 50%;
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	border: 4px solid var(--wp--preset--color--bg-2);
	border-radius: 50%;
	background: var(--wp--preset--color--ink);
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0.02em;
	transform: translate(-50%, -50%);
}

/* White text on each: 7.5:1 or better. */
.cwp-quote__badge--1 { background: var(--wp--preset--color--red-dark); }
.cwp-quote__badge--2 { background: var(--wp--preset--color--ink-3); }
.cwp-quote__badge--3 { background: var(--wp--preset--color--muted-2); }

.cwp-quote__cite {
	font-size: 17px;
	font-weight: 700;
	color: var(--wp--preset--color--ink);
}

.cwp-quote__text {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 15px;
	line-height: 1.65;
	color: var(--wp--preset--color--muted);
}

.cwp-quote__text p {
	margin: 0;
}

/* Highlighted card (first): accent background. */
.cwp-quote--featured {
	background: var(--wp--preset--color--red);
	box-shadow: 0 28px 56px -26px rgba(163, 34, 43, 0.55);
}

.cwp-quote--featured .cwp-quote__badge {
	background: #fff;
	color: var(--wp--preset--color--red);
}

.cwp-quote--featured .cwp-quote__cite,
.cwp-quote--featured .cwp-quote__text {
	color: #fff;
}

/* ==================================================================== */
/* Home: release notes                                                   */
/* ==================================================================== */

.cwp-news {
	border-top: 1px solid var(--wp--preset--color--line-2);
}

.cwp-news__inner {
	max-width: var(--wp--custom--container--width);
	margin: 0 auto;
	padding: 80px var(--wp--custom--container--gutter);
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
	gap: 40px;
}

.cwp-news__intro {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.cwp-news__title {
	font-size: var(--wp--preset--font-size--heading-news);
	line-height: normal;
	letter-spacing: -0.02em;
	font-weight: 700;
}

.cwp-news__sub {
	line-height: 1.6;
	color: var(--wp--preset--color--muted);
}

.cwp-news__all a {
	font-weight: 600;
}

.cwp-news__query {
	grid-column: span 2;
	min-width: 0;
}

@media (max-width: 759px) {
	.cwp-news__query {
		grid-column: auto;
	}
}

body .cwp-news__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

body .cwp-news__list > li {
	position: relative;
	display: grid;
	grid-template-columns: 90px minmax(0, 1fr);
	gap: 20px;
	margin: 0;
	padding: 18px 0;
	border-top: 1px solid var(--wp--preset--color--line);
}

body .cwp-news__list > li > * {
	margin: 0;
}

.cwp-news__list .cwp-news__date {
	padding-top: 3px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 13px;
	color: var(--wp--preset--color--muted-2);
}

.cwp-news__list .cwp-news__post {
	font-size: 17px;
	font-weight: 500;
	line-height: 1.45;
	letter-spacing: normal;
}

.cwp-news__post a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

/* The whole row is the click target, as in the design. */
.cwp-news__post a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.cwp-news__list > li:hover .cwp-news__post a {
	color: var(--wp--preset--color--red);
}

/* ==================================================================== */
/* Call to action                                                        */
/* ==================================================================== */

.cwp-cta {
	padding: 0 var(--wp--custom--container--gutter) 96px;
}

.cwp-cta__box {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	max-width: 72rem;
	margin: 0 auto;
	padding: clamp(40px, 6vw, 72px);
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
	align-items: center;
	justify-content: space-between;
	background: var(--wp--preset--color--red);
	color: #fff;
	border-radius: var(--wp--custom--radius--cta);
}

/* Tone-on-tone logo stripes along the bottom-right corner. The mark is
 * placed so every band's ends fall outside the box (below the bottom edge,
 * past the right edge): the stripes read as continuing, not stopping, and
 * stay below the buttons. */
.cwp-cta__box::after {
	content: "";
	position: absolute;
	z-index: -1;
	right: -40px;
	bottom: -76px;
	width: 380px;
	aspect-ratio: 440 / 266;
	background: #fff;
	opacity: 0.1;
	-webkit-mask: url("../img/stripes.svg") no-repeat center / contain;
	mask: url("../img/stripes.svg") no-repeat center / contain;
	pointer-events: none;
}

/* Narrow: the buttons wrap under the copy, so the stripes shrink into the
 * corner. */
@media (max-width: 781px) {
	.cwp-cta__box::after {
		right: -28px;
		bottom: -52px;
		width: 260px;
	}
}

.cwp-cta__copy {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 30em;
}

.cwp-cta .cwp-text {
	color: #fff;
}

/* ==================================================================== */
/* Footer (full)                                                         */
/* ==================================================================== */

.site-footer {
	border-top: 1px solid var(--wp--preset--color--line-2);
	background: var(--wp--preset--color--bg-2);
}

.site-footer__inner {
	max-width: var(--wp--custom--container--width);
	margin: 0 auto;
	padding: 56px var(--wp--custom--container--gutter) 32px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
	gap: 40px;
}

.site-footer__col,
.site-footer__newsletter {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

.site-footer__newsletter {
	grid-column: span 2;
}

@media (max-width: 459px) {
	.site-footer__newsletter {
		grid-column: auto;
	}
}

.site-footer .site-footer__heading {
	margin-bottom: 4px;
	font-size: 14px;
	line-height: normal;
	font-weight: 700;
	color: var(--wp--preset--color--muted-2);
}

.site-footer .cwp-menu__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.site-footer .cwp-menu__list a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.site-footer__tagline {
	font-size: 15px;
	color: var(--wp--preset--color--ink-3);
}

/* Newsletter: Gravity Forms restyled to the design's inline email + button
 * row. GF's legacy stylesheet (still needed by the site's other forms) uses
 * very high-specificity selectors, so the conflicting properties below are
 * !important -- scoped to this one component only. The field keeps a
 * visible label (WCAG 3.3.2); the tagline above describes the newsletter. */
.site-footer__newsletter .gform_wrapper {
	margin: 0 !important;
	padding: 0 !important;
	max-width: none !important;
}

.site-footer__newsletter .gform_wrapper form {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: flex-end;
}

.site-footer__newsletter .gform_wrapper .gform_body {
	flex: 1 1 220px;
	min-width: 0;
	width: auto !important;
}

.site-footer__newsletter .gform_wrapper .gform_fields {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
}

.site-footer__newsletter .gform_wrapper .gform_fields .gfield {
	margin: 0 !important;
	padding: 0 !important;
}

.site-footer__newsletter .gform_wrapper .gfield_label {
	display: block;
	margin: 0 0 6px !important;
	padding: 0 !important;
	color: var(--wp--preset--color--ink-3);
	font: inherit !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;
}

.site-footer__newsletter .gform_wrapper .gfield_required {
	margin-left: 2px;
	color: var(--wp--preset--color--red);
}

.site-footer__newsletter .gform_wrapper .gform_validation_container {
	display: none !important;
}

.site-footer__newsletter .gform_wrapper .ginput_container {
	margin: 0 !important;
}

.site-footer__newsletter .gform_wrapper .ginput_container input[type="email"] {
	width: 100% !important;
	margin: 0 !important;
	padding: 12px 14px !important;
	border: 1px solid var(--wp--preset--color--input-border) !important;
	border-radius: var(--wp--custom--radius--input) !important;
	background: #fff !important;
	color: var(--wp--preset--color--ink);
	font: inherit !important;
	line-height: normal !important;
}

.site-footer__newsletter .gform_wrapper .gform_footer {
	flex: none;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
}

.site-footer__newsletter .gform_wrapper .gform_footer .gform_button {
	width: auto !important;
	margin: 0 !important;
	padding: 12px 20px !important;
	border: 1px solid var(--wp--preset--color--ink); /* same 46px height as the field */
	/* Pill like every other button (the handoff had 10px to match the field). */
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--ink);
	color: #fff;
	font: inherit !important;
	font-weight: 600 !important;
	line-height: normal !important;
	cursor: pointer;
}

.site-footer__newsletter .gform_wrapper .gform_footer .gform_button:hover {
	border-color: var(--wp--preset--color--red);
	background: var(--wp--preset--color--red);
}

.site-footer__newsletter .gform_confirmation_message {
	font-size: 14px;
	color: var(--wp--custom--ui--success);
}

.site-footer__newsletter .gform_wrapper .validation_message,
.site-footer__newsletter .gform_wrapper .gform_validation_errors {
	font-size: 14px;
	color: var(--wp--preset--color--red);
}

.site-footer__bottom {
	max-width: var(--wp--custom--container--width);
	margin: 0 auto;
	padding: 20px var(--wp--custom--container--gutter) 40px;
	border-top: 1px solid var(--wp--preset--color--line);
	/* Fades out on the right instead of running across the compass rose. */
	border-image: linear-gradient(to right, var(--wp--preset--color--line) 55%, transparent 78%) 1;
	font-size: 14px;
	color: var(--wp--preset--color--muted-2);
}

/* ==================================================================== */
/* Footer (compact, docs/blog)                                           */
/* ==================================================================== */

.site-footer-slim {
	border-top: 1px solid var(--wp--preset--color--line-2);
	background: var(--wp--preset--color--bg-2);
}

.site-footer-slim__inner {
	max-width: var(--wp--custom--container--width);
	margin: 0 auto;
	padding: 40px var(--wp--custom--container--gutter);
	display: flex;
	flex-wrap: wrap;
	gap: 16px 32px;
	align-items: center;
	font-size: 14px;
	color: var(--wp--preset--color--muted-2);
}

.site-footer-slim .cwp-menu {
	margin-left: auto;
}

.site-footer-slim .cwp-menu__list {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.site-footer-slim .cwp-menu__list a {
	color: var(--wp--preset--color--ink-3);
}

/* ==================================================================== */
/* Breadcrumbs                                                           */
/* ==================================================================== */

.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
	color: var(--wp--preset--color--muted-2);
}

.breadcrumbs a {
	color: var(--wp--preset--color--muted-2);
}

.breadcrumbs a:hover {
	color: var(--wp--preset--color--red-dark);
}

.breadcrumbs [aria-current="page"] {
	color: var(--wp--preset--color--ink);
}

/* ==================================================================== */
/* Documentation template                                                */
/* ==================================================================== */

.cwp-doc {
	max-width: var(--wp--custom--container--docs-width);
	margin: 0 auto;
	padding: 0 var(--wp--custom--container--gutter) 96px;
	display: flex;
	flex-wrap: wrap;
	gap: 56px;
	align-items: flex-start;
}

.cwp-doc__sidebar {
	flex: 0 1 220px;
	min-width: 200px;
	position: sticky;
	top: 73px; /* header height: no push at rest, so the padding lines up with the breadcrumb */
	padding-top: var(--wp--custom--page-header--top);
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.cwp-doc__main {
	flex: 1 1 560px;
	min-width: 0;
	max-width: var(--wp--custom--container--article-width);
	padding-top: var(--wp--custom--page-header--top);
}

.cwp-doc__toc {
	flex: 0 1 180px;
	min-width: 160px;
	position: sticky;
	top: 73px;
	padding-top: var(--wp--custom--page-header--top);
}

body.admin-bar .cwp-doc__sidebar,
body.admin-bar .cwp-doc__toc {
	top: 105px;
}

@media (max-width: 781px) {
	.cwp-doc__sidebar,
	.cwp-doc__toc {
		position: static;
		flex-basis: 100%;
	}

	.cwp-doc {
		row-gap: 32px;
	}

	/* Stacked: the sidebar opens the page; the row gap separates the rest. */
	.cwp-doc__main,
	.cwp-doc__toc {
		padding-top: 0;
	}

	/* Menu collapses behind the toggle (only once docs-menu.js has shown
	 * the button, so the menu stays visible without JS). */
	.cwp-doc__sidebar.has-menu-toggle:not(.is-menu-open) .cwp-doc__nav {
		display: none;
	}
}

/* Docs menu toggle: small screens only */

.cwp-doc__menu-toggle {
	display: none;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 44px;
	padding: 10px 14px;
	border: 1px solid var(--wp--preset--color--input-border);
	border-radius: var(--wp--custom--radius--input);
	background: #fff;
	color: var(--wp--preset--color--ink);
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

.cwp-doc__menu-toggle:hover {
	border-color: var(--wp--preset--color--muted-2);
}

.cwp-doc__menu-chevron {
	width: 8px;
	height: 8px;
	margin: -4px 4px 0 0;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
}

.cwp-doc__menu-toggle[aria-expanded="true"] .cwp-doc__menu-chevron {
	margin-top: 4px;
	transform: rotate(-135deg);
}

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

@media (prefers-reduced-motion: no-preference) {
	.cwp-doc__menu-chevron {
		transition: transform 0.15s ease;
	}
}

/* Sidebar: search + grouped docs menu */

.cwp-doc__search .wp-block-search__inside-wrapper {
	padding: 0;
	border: 0;
}

.cwp-doc__search .wp-block-search__input {
	width: 100%;
	margin: 0;
	padding: 10px 14px;
	border: 1px solid var(--wp--preset--color--input-border);
	border-radius: var(--wp--custom--radius--input);
	background: #fff;
	color: var(--wp--preset--color--ink);
	font: inherit;
	font-size: 15px;
	line-height: normal;
}

.cwp-doc__nav > .cwp-menu__list {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.cwp-doc__nav .cwp-menu__list > li,
.cwp-doc__nav .sub-menu {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.cwp-doc__nav .sub-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cwp-doc__nav .cwp-menu__label {
	display: block;
	margin-bottom: 6px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 12px;
	color: var(--wp--preset--color--muted-2);
}

.cwp-doc__nav a {
	display: block;
	padding: 6px 10px;
	border-radius: var(--wp--custom--radius--nav);
	font-size: 15px;
	color: var(--wp--preset--color--ink-3);
	text-decoration: none;
}

.cwp-doc__nav a:hover {
	background: var(--wp--preset--color--hover);
	color: var(--wp--preset--color--ink-3);
}

.cwp-doc__nav .current-menu-item > a {
	background: var(--wp--preset--color--red-tint);
	color: var(--wp--preset--color--red);
	font-weight: 600;
}

/* Main column */

.cwp-doc__main .breadcrumbs {
	margin-bottom: var(--wp--custom--page-header--gap);
}

.cwp-doc__main .cwp-doc__title {
	margin-bottom: var(--wp--custom--page-header--gap);
	font-size: var(--wp--preset--font-size--display-page);
	line-height: 1.06;
	letter-spacing: -0.035em;
	font-weight: 700;
}

.cwp-doc .cwp-doc__content > p {
	margin: 0 0 16px;
	font-size: 17px;
	line-height: 1.7;
	color: var(--wp--preset--color--ink-2);
}

.cwp-doc .cwp-doc__content > p.has-lead-font-size {
	margin-bottom: 32px;
	font-size: 19px;
	line-height: 1.6;
	color: var(--wp--preset--color--muted);
}

.cwp-doc .cwp-doc__content > h2 {
	margin: 48px 0 14px;
	font-size: 26px;
	line-height: normal;
	letter-spacing: -0.02em;
}

.cwp-doc .cwp-doc__content > h3 {
	margin: 32px 0 10px;
	font-size: 20px;
	line-height: normal;
	letter-spacing: -0.01em;
}

.cwp-doc .cwp-doc__content > :is(ul, ol):not([class*="is-style-"]) {
	margin: 0 0 24px;
	padding-left: 1.4em;
	font-size: 17px;
	line-height: 1.7;
	color: var(--wp--preset--color--ink-2);
}

.cwp-doc .cwp-doc__content > :is(figure, img, .wp-block-image) {
	margin: 0 0 24px;
}

.cwp-doc__content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--wp--custom--radius--input);
}

/* The post-content wrapper stops margin collapse, so drop the trailing margin
 * to keep the design's 56px gap above Previous / Next. */
.cwp-doc .cwp-doc__content > :last-child {
	margin-bottom: 0;
}

.cwp-doc__content :not(pre) > code {
	padding: 2px 6px;
	border-radius: 5px;
	background: var(--wp--preset--color--hover);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.88em;
}

.cwp-doc .cwp-doc__content > :is(pre, .wp-block-code) {
	margin: 0 0 24px;
	padding: 20px 22px;
	overflow: auto;
	border: 0;
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--ink);
	color: var(--wp--custom--code--text);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 14px;
	line-height: 1.8;
}

.cwp-doc__content pre code {
	font-size: inherit;
}

/* Numbered steps, compact (docs) */

body .is-style-steps-compact {
	display: flex;
	flex-direction: column;
	gap: 16px; /* room for the route line between numbers */
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
	counter-reset: step;
}

/* Number hangs in a 30px gutter (two 13px mono digits + the design's 14px
 * gap) and sits on the first line's baseline, so the item's text and inline
 * code flow normally instead of becoming separate flex items. */
body .is-style-steps-compact > li {
	position: relative;
	padding-left: 30px;
	font-size: 17px;
	line-height: 1.6;
	counter-increment: step;
}

/* Route line: a dashed path from each step's number down to the next
 * (none after the last step). Decorative. */
.is-style-steps-compact > li:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 24px;
	bottom: -14px;
	left: 7px;
	width: 2px;
	background: repeating-linear-gradient(to bottom, color-mix(in srgb, var(--wp--preset--color--red) 45%, transparent) 0 4px, transparent 4px 8px);
}

.is-style-steps-compact > li::before {
	content: counter(step, decimal-leading-zero);
	display: inline-block;
	width: 30px;
	margin-left: -30px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 13px;
	color: var(--wp--preset--color--red);
}

.is-style-steps-compact code {
	font-size: 0.85em;
	word-break: break-all;
}

/* Link index (List block style): two-column grid of ruled rows with the
 * feature grid's red diamond, and an arrow that slides in on hover. */

body .is-style-link-index {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	column-gap: 32px;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--wp--preset--color--line-2);
}

.is-style-link-index > li {
	display: flex;
	align-items: center;
	gap: 12px;
	border-bottom: 1px solid var(--wp--preset--color--line-2);
}

.is-style-link-index > li::before {
	content: "";
	flex: none;
	width: 6px;
	height: 6px;
	background: var(--wp--preset--color--red);
	transform: rotate(45deg);
}

.is-style-link-index > li > a {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 0;
	font-size: 16px;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.is-style-link-index > li > a::after {
	content: "→";
	color: var(--wp--preset--color--red);
	opacity: 0;
	transform: translateX(-4px);
	transition: opacity 150ms ease, transform 150ms ease;
}

.is-style-link-index > li > a:hover,
.is-style-link-index > li > a:focus-visible {
	color: var(--wp--preset--color--red);
}

.is-style-link-index > li > a:hover::after,
.is-style-link-index > li > a:focus-visible::after {
	opacity: 1;
	transform: none;
}

/* File cards */

.cwp-doc-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	gap: 12px;
}

.cwp-doc .cwp-doc__content > .cwp-doc-cards {
	margin: 0 0 24px;
}

.cwp-doc-cards a {
	display: flex;
	flex-direction: column;
	gap: 4px;
	height: 100%;
	padding: 16px 18px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--card);
	background: #fff;
	font-size: 14px;
	color: var(--wp--preset--color--muted-2);
	text-decoration: none;
}

.cwp-doc-cards a:hover {
	border-color: var(--wp--preset--color--red);
	color: var(--wp--preset--color--muted-2);
}

.cwp-doc-cards a code {
	padding: 0;
	background: none;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 14px;
	font-weight: 500;
	color: var(--wp--preset--color--ink);
}

/* Callout / note */

.callout-note {
	display: flex;
	gap: 14px;
	padding: 18px 20px;
	border: 1px solid var(--wp--preset--color--note-border);
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--note-bg);
}

.cwp-doc .cwp-doc__content > .callout-note {
	margin: 0 0 8px;
}

body .callout-note > * {
	margin: 0;
}

.callout-note__icon {
	flex: none;
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--wp--preset--color--ink);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
}

.callout-note p {
	font-size: 16px;
	line-height: 1.6;
	color: var(--wp--preset--color--ink-2);
}

.callout-note :not(pre) > code {
	background: #fff;
}

/* Variables table + filter (filter UI injected by src/docs-filter.js) */

.cwp-doc .cwp-doc__content > .cwp-table-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	margin: 0 0 16px;
}

.cwp-table-filter label {
	font-size: 15px;
	color: var(--wp--preset--color--muted);
}

.cwp-table-filter input {
	flex: 1 1 220px;
	padding: 9px 12px;
	border: 1px solid var(--wp--preset--color--input-border);
	border-radius: var(--wp--custom--radius--input);
	background: #fff;
	color: var(--wp--preset--color--ink);
	font: inherit;
	font-size: 15px;
}

.cwp-table-filter__count {
	font-size: 14px;
	color: var(--wp--preset--color--muted-2);
}

/* Hook name label that opens Filter / Hook reference pages (legacy content
 * H1, see legacy_reference_markup()). */
.cwp-doc .cwp-doc__content > .cwp-doc__hook {
	margin: 0 0 32px;
}

.cwp-doc__hook code {
	display: inline-block;
	max-width: 100%;
	padding: 6px 12px;
	border-radius: var(--wp--custom--radius--nav);
	background: var(--wp--preset--color--red-tint);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 16px;
	line-height: 1.5;
	color: var(--wp--preset--color--red);
	overflow-wrap: anywhere;
}

/* Classic parameter tables share the variables table box (no filter). */
.cwp-doc .cwp-doc__content > .cwp-table {
	margin: 0 0 24px;
	overflow-x: auto;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--table);
	background: #fff;
}

.cwp-doc .cwp-doc__content > .variables-table {
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--table);
	background: #fff;
}

.variables-table table,
.cwp-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.variables-table thead,
.cwp-table thead {
	border-bottom: 0;
}

.variables-table th,
.cwp-table th {
	padding: 12px 18px;
	border: 0;
	background: var(--wp--preset--color--bg-2);
	font-weight: 600;
	text-align: left;
}

.variables-table th:first-child {
	width: 40%;
}

.variables-table td,
.cwp-table td {
	padding: 12px 18px;
	border: 0;
	border-top: 1px solid var(--wp--preset--color--line-2);
	vertical-align: top;
	line-height: 1.55;
	color: var(--wp--preset--color--ink-2);
}

.variables-table td code {
	padding: 0;
	background: none;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 14px;
	color: var(--wp--preset--color--red);
	white-space: nowrap;
}

.cwp-table td:first-child {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 14px;
	color: var(--wp--preset--color--red);
	white-space: nowrap;
}

.variables-table tr[hidden] {
	display: none;
}

/* Previous / next + last updated */

.cwp-doc__main .cwp-pager {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
	gap: 12px;
	margin-top: 56px;
	padding-top: 24px;
	border-top: 1px solid var(--wp--preset--color--line);
}

.cwp-pager__link {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px 18px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--card);
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.cwp-pager__link:hover {
	border-color: var(--wp--preset--color--red);
	color: var(--wp--preset--color--ink);
}

.cwp-pager__link--next {
	text-align: right;
}

.cwp-pager__dir {
	font-size: 13px;
	color: var(--wp--preset--color--muted-2);
}

.cwp-pager__title {
	font-weight: 600;
}

.cwp-doc__main .cwp-doc__updated {
	display: flex;
	flex-wrap: wrap;
	gap: 0 0.3em;
	margin-top: 24px;
	font-size: 14px;
	color: var(--wp--preset--color--muted-2);
}

/* On this page */

.cwp-toc {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.cwp-toc__label {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 12px;
	color: var(--wp--preset--color--muted-2);
}

.cwp-toc__link {
	padding-left: 12px;
	border-left: 2px solid var(--wp--preset--color--line);
	font-size: 14px;
	color: var(--wp--preset--color--ink-3);
	text-decoration: none;
}

.cwp-toc__link:hover {
	border-color: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--ink-3);
}

.cwp-toc__link.is-active {
	border-color: var(--wp--preset--color--red);
}

/* ==================================================================== */
/* Blog post                                                             */
/* ==================================================================== */

/* Main column + sticky side column (blog post and blog index). The main
 * column keeps the design's 712px text measure; the rail sits at the
 * container's right edge, lined up with the header's CTA. */
.cwp-with-rail {
	max-width: var(--wp--custom--container--width);
	margin: 0 auto;
	padding: 0 var(--wp--custom--container--gutter);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-start;
	gap: 0 56px;
}

.cwp-article,
.cwp-blog {
	flex: 1 1 560px;
	min-width: 0;
	max-width: calc(var(--wp--custom--container--article-width) - 2 * var(--wp--custom--container--gutter));
}

/* Generic pages (support, contact, legal...): the post layout without the
 * rail, centered. */
.cwp-page {
	max-width: var(--wp--custom--container--article-width);
	margin: 0 auto;
	padding: 0 var(--wp--custom--container--gutter) 96px;
}

.cwp-page > .cwp-article {
	max-width: none;
}

/* No meta line under the title here, so use the 18px title-to-text gap of
 * the other templates instead of the post header's 32px. */
.cwp-page .cwp-article__header {
	padding-bottom: var(--wp--custom--page-header--gap);
}

.cwp-rail {
	flex: 0 1 260px;
	min-width: 220px;
	position: sticky;
	top: 73px; /* header height, as .cwp-doc__sidebar */
	padding-top: var(--wp--custom--page-header--top);
	display: flex;
	flex-direction: column;
	gap: 32px;
}

body.admin-bar .cwp-rail {
	top: 105px;
}

/* Once the rail drops below the article the TOC has nothing left to jump to. */
@media (max-width: 899px) {
	.cwp-rail {
		position: static;
		flex-basis: 100%;
		padding-top: 48px;
	}

	.cwp-rail .cwp-toc {
		display: none;
	}
}

.cwp-promo {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 20px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--card);
	background: #fff;
}

.cwp-promo .cwp-promo__title {
	font-size: 16px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--wp--preset--color--ink);
}

.cwp-promo .cwp-promo__text {
	font-size: 14px;
	line-height: 1.55;
	color: var(--wp--preset--color--muted);
}

.cwp-promo .cwp-promo__buttons {
	margin-top: 6px;
}

.cwp-promo__demo {
	font-size: 14px;
	text-align: center;
}

.cwp-promo__demo a {
	font-weight: 600;
}

.cwp-article__header {
	padding: var(--wp--custom--page-header--top) 0 32px;
	display: flex;
	flex-direction: column;
	gap: var(--wp--custom--page-header--gap);
}

.breadcrumbs a.breadcrumbs__term {
	color: var(--wp--preset--color--red);
	font-weight: 600;
	text-decoration: none;
}

.cwp-article__header .cwp-article__title {
	font-size: var(--wp--preset--font-size--display-page);
	line-height: 1.06;
	letter-spacing: -0.035em;
	font-weight: 700;
}

.cwp-article__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 18px;
	font-size: 14px;
	color: var(--wp--preset--color--muted-2);
}

/* "·" between date and read time; decorative, so no alt text. */
.cwp-article__meta > * + *::before {
	content: "·" / "";
	margin-right: 18px;
}

.cwp-article .cwp-article__figure {
	margin: 0 0 48px;
}

.cwp-article__figure img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--code-block);
	background: var(--wp--preset--color--hover);
}

/* Body */

.cwp-article__content {
	font-size: 18px;
	line-height: 1.75;
	color: var(--wp--preset--color--ink-2);
}

.cwp-article .cwp-article__content > p {
	margin: 0 0 22px;
}

.cwp-article .cwp-article__content > :is(h2, h3) {
	margin: 48px 0 14px;
	font-size: 28px;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--wp--preset--color--ink);
}

.cwp-article .cwp-article__content > :is(ul, ol):not([class*="is-style-"]) {
	margin: 0 0 28px;
	padding-left: 22px;
}

/* Prose lists only: component lists (role="list") lay themselves out. */
.cwp-article__content :is(ul, ol):not([class*="is-style-"], [role="list"]) {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.cwp-article__content li > :is(ul, ol) {
	margin: 8px 0 0;
	padding-left: 22px;
}

/* Blockquotes are console/output quotes in this blog: dark mono panel. */
.cwp-article .cwp-article__content > blockquote {
	margin: 0 0 28px;
	padding: 18px 22px;
	border: 0;
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--ink);
	color: var(--wp--custom--code--text);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 14px;
	line-height: 1.7;
}

.cwp-article__content blockquote > * {
	margin: 0;
}

.cwp-article__content blockquote > * + * {
	margin-top: 12px;
}

.cwp-article__content blockquote a {
	color: inherit;
	overflow-wrap: anywhere;
}

.cwp-article__content img {
	max-width: 100%;
	height: auto;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--input);
	background: var(--wp--preset--color--hover);
}

.cwp-article .cwp-article__content > :is(figure, .wp-block-image) {
	margin: 0 0 28px;
}

.cwp-article__content :is(figure, .wp-block-image) img {
	display: block;
}

.cwp-article__content :not(pre) > code {
	padding: 2px 6px;
	border-radius: 5px;
	background: var(--wp--preset--color--hover);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.88em;
}

.cwp-article__content dl {
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr);
	gap: 8px 18px;
	margin: 0;
	font-size: 17px;
}

.cwp-article__content dt {
	font-weight: 600;
	color: var(--wp--preset--color--ink);
}

.cwp-article__content dd {
	margin: 0;
}

.cwp-article .cwp-article__content > :last-child {
	margin-bottom: 0;
}

/* Numbered steps (List block style): mono red number in a 44px column,
 * 1px rules between steps. The number hangs so step text, images and
 * nested lists all line up in the content column. */

body .is-style-steps {
	margin: 0 0 28px;
	padding: 0;
	list-style: none;
	counter-reset: step;
}

body .is-style-steps > li {
	position: relative;
	margin: 0;
	padding: 22px 0 22px 60px;
	border-top: 1px solid var(--wp--preset--color--line);
	counter-increment: step;
}

.is-style-steps > li:last-child {
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.is-style-steps > li::before {
	content: counter(step, decimal-leading-zero) / "";
	position: absolute;
	top: 22px;
	left: 0;
	padding-top: 4px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 14px;
	color: var(--wp--preset--color--red);
}

/* Route line from each step's number to the next, as on a map route
 * (none after the last step). Decorative. */
.is-style-steps > li:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 52px;
	bottom: -26px;
	left: 8px;
	z-index: 1;
	width: 2px;
	background: repeating-linear-gradient(to bottom, color-mix(in srgb, var(--wp--preset--color--red) 45%, transparent) 0 4px, transparent 4px 8px);
}

.is-style-steps > li > * {
	margin: 0;
}

.is-style-steps > li > * + * {
	margin-top: 16px;
}

.is-style-steps > li > img {
	display: block;
}

.cwp-article .callout-note {
	padding: 16px 18px;
}

.cwp-article .callout-note__icon {
	margin-top: 2px;
}

/* Blog index / category archive */

.cwp-blog__header {
	padding: var(--wp--custom--page-header--top) 0 32px;
	display: flex;
	flex-direction: column;
	gap: var(--wp--custom--page-header--gap);
}

.cwp-blog__header .cwp-blog__title {
	font-size: var(--wp--preset--font-size--display-page);
	line-height: 1.06;
	letter-spacing: -0.035em;
	font-weight: 700;
}

.cwp-blog__header .cwp-blog__lead,
.cwp-blog__lead p {
	margin: 0;
	font-size: 19px;
	line-height: 1.6;
	color: var(--wp--preset--color--muted);
}

.cwp-blog {
	padding-bottom: 88px;
}

body .cwp-blog__list {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--wp--preset--color--line);
}

/* Same row language as the home page's release notes: mono date column,
 * whole row is the link. */
body .cwp-blog__list > li {
	position: relative;
	display: grid;
	grid-template-columns: 90px minmax(0, 1fr);
	gap: 20px;
	margin: 0;
	padding: 24px 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

body .cwp-blog__list > li > * {
	margin: 0;
}

.cwp-blog__list .cwp-blog__date {
	padding-top: 2px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 13px;
	color: var(--wp--preset--color--muted-2);
}

.cwp-blog__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.cwp-blog__cat {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 12px;
	color: var(--wp--preset--color--red);
}

.cwp-blog__body .cwp-blog__post {
	font-size: 21px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.cwp-blog__post a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.cwp-blog__post a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.cwp-blog__list > li:hover .cwp-blog__post a {
	color: var(--wp--preset--color--red);
}

.cwp-blog__excerpt p {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
	color: var(--wp--preset--color--muted);
}

@media (max-width: 599px) {
	body .cwp-blog__list > li {
		grid-template-columns: minmax(0, 1fr);
		gap: 6px;
	}
}

/* Pagination */

body .cwp-blog__query > .cwp-blog__pages {
	margin-top: 40px;
	gap: 8px;
	align-items: center;
	font-size: 15px;
}

.cwp-blog__pages a,
.cwp-blog__pages .page-numbers {
	color: var(--wp--preset--color--ink-3);
	text-decoration: none;
}

.cwp-blog__pages .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 36px;
	height: 36px;
	padding: 0 8px;
	border-radius: var(--wp--custom--radius--nav);
}

.cwp-blog__pages a.page-numbers:hover {
	background: var(--wp--preset--color--hover);
}

.cwp-blog__pages .page-numbers.current {
	background: var(--wp--preset--color--ink);
	color: #fff;
	font-weight: 600;
}

.cwp-blog__pages :is(.wp-block-query-pagination-previous, .wp-block-query-pagination-next) {
	padding: 8px 4px;
	font-weight: 600;
	color: var(--wp--preset--color--red);
}

.cwp-blog__pages .wp-block-query-pagination-next {
	margin-left: auto;
}

/* Search results: the blog index's header and row language, centered
 * without the rail. */

.cwp-main > .cwp-search {
	max-width: var(--wp--custom--container--article-width);
	margin: 0 auto;
	padding: 0 var(--wp--custom--container--gutter) 96px;
}

.cwp-search .cwp-search__title {
	overflow-wrap: anywhere;
}

.cwp-search__form {
	margin: 4px 0 0;
}

/* Sections: All / Documentation / Blog, with counts. */
.cwp-search-results__sections ul {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0 0 8px;
	padding: 0;
	list-style: none;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.cwp-search-results__sections a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: -1px;
	padding: 10px 12px;
	border-bottom: 2px solid transparent;
	color: var(--wp--preset--color--muted);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}

.cwp-search-results__sections a:hover {
	color: var(--wp--preset--color--ink);
}

.cwp-search-results__sections a[aria-current="page"] {
	border-bottom-color: var(--wp--preset--color--red);
	color: var(--wp--preset--color--ink);
}

.cwp-search-results__count {
	min-width: 22px;
	padding: 1px 7px;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--bg-2);
	color: var(--wp--preset--color--muted);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 12px;
	font-weight: 500;
	text-align: center;
}

.cwp-search-results__summary {
	margin: 20px 0 0;
	color: var(--wp--preset--color--muted-2);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 13px;
}

/* Results: whole row is the link, as in the blog list. */
.cwp-search-results__list {
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--wp--preset--color--line);
}

.cwp-search-results__list > li {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	padding: 22px 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.cwp-search-results__list > li > * {
	margin: 0;
}

.cwp-search-results__context {
	color: var(--wp--preset--color--red);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 12px;
}

.cwp-search-results .cwp-search-results__title {
	font-size: 21px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.cwp-search-results__title a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.cwp-search-results__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.cwp-search-results__list > li:hover .cwp-search-results__title a {
	color: var(--wp--preset--color--red);
}

/* The focus ring belongs on the row the link covers. */
.cwp-search-results__title a:focus-visible {
	outline: none;
}

.cwp-search-results__list > li:has(a:focus-visible) {
	outline: var(--wp--custom--focus-ring--width) solid var(--wp--preset--color--red);
	outline-offset: 4px;
	border-radius: var(--wp--custom--radius--code);
}

.cwp-search-results__snippet {
	color: var(--wp--preset--color--muted);
	font-size: 16px;
	line-height: 1.6;
	overflow-wrap: anywhere;
}

.cwp-search-results__snippet code {
	padding: 1px 5px;
	border-radius: 5px;
	background: var(--wp--preset--color--hover);
	color: var(--wp--preset--color--ink-2);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.85em;
}

.cwp-search-results__snippet mark {
	padding: 0 2px;
	border-radius: 3px;
	background: var(--wp--preset--color--red-tint);
	color: var(--wp--preset--color--ink);
}

@media (forced-colors: active) {
	.cwp-search-results__snippet mark {
		background: Mark;
		color: MarkText;
	}
}

/* Pagination: the blog's page numbers. */
.cwp-search-results__pages ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 40px 0 0;
	padding: 0;
	list-style: none;
	font-size: 15px;
}

.cwp-search-results__pages li > .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 36px;
	height: 36px;
	padding: 0 8px;
	border-radius: var(--wp--custom--radius--nav);
	color: var(--wp--preset--color--ink-3);
	text-decoration: none;
}

.cwp-search-results__pages a.page-numbers:hover {
	background: var(--wp--preset--color--hover);
}

.cwp-search-results__pages li > .page-numbers.current {
	background: var(--wp--preset--color--ink);
	color: #fff;
	font-weight: 600;
}

.cwp-search-results__pages li > :is(.prev, .next) {
	padding: 0 4px;
	font-weight: 600;
	color: var(--wp--preset--color--red);
}

.cwp-search-results__pages li > :is(.prev, .next):hover {
	background: none;
	text-decoration: underline;
}

/* "Next" sits at the right edge, as in the blog's pagination. */
.cwp-search-results__pages li:has(> .next) {
	margin-left: auto;
}

/* Nothing found */
.cwp-search-results__empty {
	margin-top: 24px;
	padding: 28px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--card);
	background: #fff;
}

.cwp-search-results__empty p {
	margin: 0 0 8px;
	color: var(--wp--preset--color--muted);
	line-height: 1.6;
}

.cwp-search-results__empty .cwp-search-results__empty-title {
	color: var(--wp--preset--color--ink);
	font-size: 19px;
	font-weight: 600;
}

.cwp-search-results__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.cwp-search-results__links a {
	display: inline-block;
	padding: 8px 14px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--pill);
	color: var(--wp--preset--color--ink);
	font-size: 15px;
	text-decoration: none;
}

.cwp-search-results__links a:hover {
	border-color: var(--wp--preset--color--input-border);
	background: var(--wp--preset--color--hover);
}

/* Topics (side column): same treatment as "On this page". */

.cwp-topics {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.cwp-topics .cwp-topics__label {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 12px;
	color: var(--wp--preset--color--muted-2);
}

body .cwp-topics__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cwp-topics__list a {
	display: block;
	padding-left: 12px;
	border-left: 2px solid var(--wp--preset--color--line);
	font-size: 14px;
	color: var(--wp--preset--color--ink-3);
	text-decoration: none;
}

.cwp-topics__list a:hover {
	border-color: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--ink-3);
}

.cwp-topics__list .current-cat > a {
	border-color: var(--wp--preset--color--red);
	color: var(--wp--preset--color--ink);
	font-weight: 600;
}

/* More from the blog */

.cwp-main > .cwp-related {
	max-width: var(--wp--custom--container--width);
	margin: 88px auto 0;
	padding: 56px var(--wp--custom--container--gutter) 88px;
	border-top: 1px solid var(--wp--preset--color--line-2);
}

body .cwp-related > .cwp-related__head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	margin-bottom: 24px;
}

.cwp-related__head .cwp-related__title {
	font-size: 26px;
	line-height: normal;
	letter-spacing: -0.02em;
}

.cwp-related__all a {
	font-weight: 600;
}

body .cwp-related__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	gap: 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}

body .cwp-related__list > li {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding-top: 18px;
	border-top: 2px solid var(--wp--preset--color--ink);
}

.cwp-related__meta {
	display: flex;
	flex-wrap: wrap;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 12px;
	color: var(--wp--preset--color--muted-2);
}

.cwp-related__meta > * + *::before {
	content: " · ";
	white-space: pre;
}

.cwp-related__list .cwp-related__post {
	margin: 0;
	font-size: 19px;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: -0.01em;
}

.cwp-related__post a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

/* The whole card is the click target, as in the design. */
.cwp-related__post a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.cwp-related__list > li:hover .cwp-related__post a {
	color: var(--wp--preset--color--red);
}

/* ==================================================================== */
/* Pricing page                                                          */
/* ==================================================================== */

.cwp-buy-hero {
	position: relative;
	isolation: isolate;
	max-width: var(--wp--custom--container--width);
	margin: 0 auto;
	padding: var(--wp--custom--page-header--top) var(--wp--custom--container--gutter) 48px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--wp--custom--page-header--gap);
	text-align: center;
}

.cwp-buy-hero .breadcrumbs {
	align-self: stretch;
	text-align: left;
}

.cwp-buy-hero__bg {
	-webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 25%, transparent 70%);
	mask-image: radial-gradient(ellipse at 50% 30%, #000 25%, transparent 70%);
}

:is(.cwp-buy-hero, .cwp-faq) .cwp-eyebrow {
	color: var(--wp--preset--color--red);
}

.cwp-buy-hero .cwp-buy-hero__title {
	max-width: 16ch;
	font-size: var(--wp--preset--font-size--display-page);
	line-height: 1.06;
	letter-spacing: -0.035em;
	font-weight: 700;
}

.cwp-buy-hero__lead {
	max-width: 640px;
}

body .cwp-buy-hero__lead > * {
	margin: 0;
	font-size: 18px;
	line-height: 1.65;
	color: var(--wp--preset--color--muted);
}

.cwp-buy-hero__lead strong {
	color: var(--wp--preset--color--ink);
}

/* License cards */

.cwp-main > .cwp-pricing {
	max-width: calc(68rem + 2 * var(--wp--custom--container--gutter));
	margin: 0 auto;
	padding: 0 var(--wp--custom--container--gutter);
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
	gap: 20px;
	align-items: stretch;
}

body .cwp-pricing > .cwp-plan {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 28px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--hero);
	background: #fff;
}

.cwp-plan .cwp-plan__tag {
	position: absolute;
	top: 24px;
	right: 24px;
	padding: 3px 10px;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--red-tint);
	font-size: 12px;
	font-weight: 600;
	color: var(--wp--preset--color--red);
}

.cwp-plan .cwp-plan__name {
	margin: 0;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: normal;
	color: var(--wp--preset--color--muted-2);
}

.cwp-plan .cwp-plan__price {
	display: flex;
	align-items: baseline;
	gap: 6px;
	margin-top: 4px;
}

.cwp-plan__amount {
	font-size: 52px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.035em;
	color: var(--wp--preset--color--ink);
}

.cwp-plan__period {
	font-size: 15px;
	color: var(--wp--preset--color--muted);
}

.cwp-plan .cwp-plan__renew {
	font-size: 14px;
	color: var(--wp--preset--color--muted-2);
}

.cwp-plan .cwp-plan__desc {
	min-height: 3.1em;
	margin-top: 8px;
	font-size: 16px;
	line-height: 1.55;
	color: var(--wp--preset--color--ink-2);
}

/* EDD purchase form: one full-width pill button. The recurring notice
 * duplicates "Renews at …" and the no-JS submit is EDD's fallback. */
.cwp-plan .wp-block-cardinalwp-edd-purchase-button {
	margin-top: 8px;
}

.cwp-plan .edd_download_purchase_form,
.cwp-plan .edd_purchase_submit_wrapper {
	margin: 0;
}

.cwp-plan .eddr-notice,
.cwp-plan .edd-cart-ajax-alert {
	display: none;
}

/* body + .button out-ranks EDD's own .edd-submit.button.blue colors. */
body .cwp-plan .edd-submit.button {
	display: block;
	width: 100%;
	margin: 0;
	padding: 14px 22px;
	border: 0;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--red);
	color: #fff;
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: normal;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 150ms ease;
}

body .cwp-plan .edd-submit.button:hover {
	background: var(--wp--preset--color--red-dark);
	color: #fff;
}

/* EDD's fallback submit for visitors without JS; EDD's JS button replaces it. */
body .cwp-plan .edd-submit.edd-no-js {
	display: none;
}

.cwp-plan .cwp-plan__setup {
	margin-top: 8px;
	padding: 12px 14px;
	border: 1px dashed var(--wp--preset--color--red);
	border-radius: var(--wp--custom--radius--input);
	font-size: 14px;
	color: var(--wp--preset--color--red);
}

body .cwp-plan .cwp-plan__features {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 12px 0 0;
	padding: 20px 0 0;
	list-style: none;
	border-top: 1px solid var(--wp--preset--color--line-2);
}

.cwp-plan__features li {
	display: flex;
	align-items: baseline;
	gap: 12px;
	font-size: 15px;
	line-height: 1.5;
	color: var(--wp--preset--color--ink-2);
}

/* Check mark drawn with borders: no icon file, inherits nothing. */
.cwp-plan__features li::before {
	content: "";
	flex: none;
	width: 5px;
	height: 10px;
	margin: 0 3px;
	border: solid var(--wp--preset--color--red);
	border-width: 0 2px 2px 0;
	transform: translateY(-2px) rotate(45deg);
}

/* Unlimited: dark card */

body .cwp-pricing > .cwp-plan--featured {
	border-color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--ink);
}

/* Faint logo stripes in the featured card's bottom-right corner, placed
 * like the CTA band's: every band's ends fall outside the card (below the
 * bottom edge, past the right edge), so they read as continuing. */
body .cwp-pricing > .cwp-plan--featured {
	position: relative;
	isolation: isolate;
	overflow: hidden;
}

body .cwp-pricing > .cwp-plan--featured::before {
	content: "";
	position: absolute;
	z-index: -1;
	right: -28px;
	bottom: -52px;
	width: 260px;
	aspect-ratio: 440 / 266;
	background: #fff;
	opacity: 0.07;
	-webkit-mask: url("../img/stripes.svg") no-repeat center / contain;
	mask: url("../img/stripes.svg") no-repeat center / contain;
	pointer-events: none;
}

.cwp-plan--featured .cwp-plan__tag {
	background: var(--wp--preset--color--red);
	color: #fff;
}

.cwp-plan--featured .cwp-plan__name,
.cwp-plan--featured .cwp-plan__period,
.cwp-plan--featured .cwp-plan__renew {
	color: var(--wp--custom--ui--on-dark-muted);
}

.cwp-plan--featured .cwp-plan__amount {
	color: #fff;
}

.cwp-plan--featured .cwp-plan__desc,
.cwp-plan--featured .cwp-plan__features li {
	color: var(--wp--custom--ui--on-dark);
}

body .cwp-plan--featured .cwp-plan__features {
	border-color: rgba(255, 255, 255, 0.14);
}

.cwp-plan--featured .cwp-plan__features li::before {
	border-color: var(--wp--preset--color--coral);
}

body .cwp-plan--featured .edd-submit.button {
	background: #fff;
	color: var(--wp--preset--color--ink);
}

body .cwp-plan--featured .edd-submit.button:hover {
	background: var(--wp--preset--color--red);
	color: #fff;
}

.cwp-main > .cwp-pricing__note {
	max-width: 68rem;
	margin: 24px auto 0;
	padding: 0 var(--wp--custom--container--gutter);
	font-size: 14px;
	line-height: 1.6;
	text-align: center;
	color: var(--wp--preset--color--muted-2);
}

/* Before you buy */

.cwp-main > .cwp-assure {
	max-width: calc(68rem + 2 * var(--wp--custom--container--gutter));
	margin: 72px auto 0;
	padding: 0 var(--wp--custom--container--gutter);
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	gap: 32px;
}

body .cwp-assure > .cwp-assure__item {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding-top: 18px;
	border-top: 2px solid var(--wp--preset--color--ink);
}

.cwp-assure__item .cwp-assure__title {
	font-size: 17px;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: -0.01em;
}

.cwp-assure__item .cwp-assure__text {
	font-size: 15px;
	line-height: 1.6;
	color: var(--wp--preset--color--muted);
}

/* FAQ */

.cwp-main > .cwp-faq {
	max-width: var(--wp--custom--container--width);
	margin: 0 auto;
	padding: 64px var(--wp--custom--container--gutter) 96px; /* the route divider above replaces the rule */
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	gap: 56px;
	align-items: start;
}

.cwp-faq__intro {
	position: sticky;
	top: 96px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

body.admin-bar .cwp-faq__intro {
	top: 128px;
}

.cwp-faq__intro .cwp-faq__contact {
	font-size: 16px;
	line-height: 1.6;
	color: var(--wp--preset--color--muted);
}

@media (max-width: 899px) {
	.cwp-main > .cwp-faq {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}

	.cwp-faq__intro {
		position: static;
	}
}

.cwp-faq__list {
	border-top: 1px solid var(--wp--preset--color--line);
}

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

.cwp-faq__question {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 24px;
	padding: 20px 0;
	list-style: none;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.45;
	color: var(--wp--preset--color--ink);
	cursor: pointer;
}

.cwp-faq__question::-webkit-details-marker {
	display: none;
}

.cwp-faq__question::after {
	content: "+" / "";
	flex: none;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 20px;
	font-weight: 400;
	line-height: 1;
	color: var(--wp--preset--color--red);
}

.cwp-faq__item[open] > .cwp-faq__question::after {
	content: "−" / "";
}

.cwp-faq__question:hover {
	color: var(--wp--preset--color--red);
}

.cwp-faq__answer {
	padding: 0 48px 24px 0;
	font-size: 16px;
	line-height: 1.7;
	color: var(--wp--preset--color--ink-2);
}

.cwp-faq__answer > * {
	margin: 0 0 12px;
}

.cwp-faq__answer > :last-child {
	margin-bottom: 0;
}

.cwp-faq__answer ul {
	padding-left: 20px;
}

/* ==================================================================== */
/* Demo pages                                                            */
/* ==================================================================== */

.cwp-demo-hero {
	max-width: var(--wp--custom--container--width);
	margin: 0 auto;
	padding: var(--wp--custom--page-header--top) var(--wp--custom--container--gutter) 32px;
}

.cwp-demo-hero .breadcrumbs {
	margin-bottom: var(--wp--custom--page-header--gap);
}

.cwp-demo-hero__copy {
	max-width: 44rem;
	display: flex;
	flex-direction: column;
	gap: var(--wp--custom--page-header--gap);
}

:is(.cwp-demo-hero, .cwp-demo-notes, .cwp-capabilities, .cwp-tour) .cwp-eyebrow {
	color: var(--wp--preset--color--red);
}

.cwp-demo-hero__copy .cwp-demo-hero__title {
	font-size: var(--wp--preset--font-size--display-page);
	line-height: 1.06;
	letter-spacing: -0.035em;
	font-weight: 700;
}

.cwp-demo-hero__copy .cwp-demo-hero__lead {
	font-size: 18px;
	line-height: 1.6;
	color: var(--wp--preset--color--muted);
}

body .cwp-demo-hero > .cwp-demo-try {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 24px;
}

.cwp-demo-try__label {
	margin-right: 4px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 12px;
	color: var(--wp--preset--color--muted-2);
}

.cwp-demo-try__chip {
	padding: 6px 14px;
	border: 1px solid var(--wp--preset--color--input-border);
	border-radius: var(--wp--custom--radius--pill);
	background: #fff;
	color: var(--wp--preset--color--ink-3);
	font: inherit;
	font-size: 14px;
	cursor: pointer;
}

.cwp-demo-try__chip:hover {
	border-color: var(--wp--preset--color--red);
	color: var(--wp--preset--color--red);
}

.cwp-demo-try__link {
	margin-left: 8px;
	font-size: 14px;
	font-weight: 600;
}

/* Locator stage (the plugin's own Modern preset styles the locator; see
 * demo-locator-legacy.css for plugin versions without presets). */

.cwp-main > .cwp-demo-stage {
	display: flow-root; /* contains the Classic preset's floated container */
	max-width: var(--wp--custom--container--width);
	margin: 0 auto;
	padding: 0 var(--wp--custom--container--gutter);
}

/* Classic preset: the plugin leaves the controls close to browser defaults,
 * so the demo gives its field, filters and button the site's form styling
 * (the kind of custom CSS Classic is meant for). */

.cwp-demo-stage .bh-sl-container:not(.bh-sl-preset-modern) :is(.bh-sl-form-input input, .bh-sl-filters select) {
	box-sizing: border-box;
	min-height: 44px;
	margin: 8px 0 12px;
	padding: 10px 14px;
	border: 1px solid var(--wp--preset--color--input-border);
	border-radius: var(--wp--custom--radius--input);
	background-color: #fff;
	color: var(--wp--preset--color--ink);
	font: inherit;
	font-size: 16px; /* 16px+ keeps iOS from zooming on focus */
	line-height: 1.4;
}

.cwp-demo-stage .bh-sl-container:not(.bh-sl-preset-modern) .bh-sl-filters select {
	min-width: 200px;
	margin: 4px 0 0;
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%233d3835' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-position: right 14px center;
	background-repeat: no-repeat;
	background-size: 12px 8px;
	cursor: pointer;
	appearance: none;
}

.cwp-demo-stage .bh-sl-container:not(.bh-sl-preset-modern) :is(.bh-sl-form-input input, .bh-sl-filters select):hover {
	border-color: var(--wp--preset--color--muted-2);
}

.cwp-demo-stage .bh-sl-container:not(.bh-sl-preset-modern) :is(.bh-sl-form-input input, .bh-sl-filters select):focus {
	border-color: var(--wp--preset--color--ink);
}

.cwp-demo-stage .bh-sl-container:not(.bh-sl-preset-modern) :is(.bh-sl-form-input label, .bh-sl-filter-title) {
	color: var(--wp--preset--color--ink);
	font-size: 15px;
	font-weight: 600;
}

.cwp-demo-stage .bh-sl-container:not(.bh-sl-preset-modern) #bh-sl-submit {
	min-height: 44px;
	margin: 0;
	padding: 10px 24px;
	border: 0;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--red);
	color: #fff;
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
}

.cwp-demo-stage .bh-sl-container:not(.bh-sl-preset-modern) #bh-sl-submit:hover {
	background: var(--wp--preset--color--red-dark);
}

/* Modern / Classic switcher (only rendered when the plugin has presets) */

body .cwp-demo-hero > .cwp-demo-look {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: 16px;
	padding: 3px;
	border: 1px solid var(--wp--preset--color--input-border);
	border-radius: var(--wp--custom--radius--pill);
	background: #fff;
}

.cwp-demo-look__label {
	padding: 0 8px 0 10px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 12px;
	color: var(--wp--preset--color--muted-2);
}

.cwp-demo-look__option {
	padding: 5px 14px;
	border-radius: var(--wp--custom--radius--pill);
	color: var(--wp--preset--color--ink-3);
	font-size: 14px;
	text-decoration: none;
}

.cwp-demo-look__option:hover {
	color: var(--wp--preset--color--red);
}

.cwp-demo-look__option.is-current {
	background: var(--wp--preset--color--ink);
	color: #fff;
}

/* What you're looking at */

.cwp-main > .cwp-demo-notes {
	max-width: var(--wp--custom--container--width);
	margin: 96px auto 0;
	padding: 0 var(--wp--custom--container--gutter);
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	gap: 56px;
	align-items: start;
}

@media (max-width: 899px) {
	.cwp-main > .cwp-demo-notes {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}
}

.cwp-demo-notes__intro {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

body .cwp-demo-notes > .cwp-demo-notes__list {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: note;
	border-top: 1px solid var(--wp--preset--color--line);
}

.cwp-demo-notes__list > li {
	position: relative;
	padding: 18px 0 18px 56px;
	border-bottom: 1px solid var(--wp--preset--color--line);
	counter-increment: note;
	font-size: 16px;
	line-height: 1.65;
	color: var(--wp--preset--color--ink-2);
}

.cwp-demo-notes__list > li::before {
	content: counter(note, decimal-leading-zero) / "";
	position: absolute;
	top: 18px;
	left: 0;
	padding-top: 3px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 14px;
	color: var(--wp--preset--color--red);
}

.cwp-demo-notes__list strong {
	color: var(--wp--preset--color--ink);
}

/* Features */

.cwp-main > :is(.cwp-capabilities, .cwp-tour) {
	max-width: var(--wp--custom--container--width);
	margin: 96px auto 0;
	padding: 0 var(--wp--custom--container--gutter);
}

body :is(.cwp-capabilities, .cwp-tour) > [class*="__intro"] {
	max-width: 40rem;
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-bottom: 40px;
}

.cwp-capabilities__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	gap: 20px;
}

body .cwp-capabilities__grid > .cwp-capability {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 24px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--card);
	background: #fff;
}

.cwp-capability .cwp-capability__label {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 12px;
	color: var(--wp--preset--color--red);
}

.cwp-capability .cwp-capability__title {
	font-size: 18px;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: -0.01em;
}

.cwp-capability .cwp-capability__text {
	font-size: 15px;
	line-height: 1.6;
	color: var(--wp--preset--color--muted);
}

.cwp-capability code {
	padding: 1px 5px;
	border-radius: 5px;
	background: var(--wp--preset--color--hover);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.85em;
}

/* Admin tour */

.cwp-tour__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
	gap: 32px 24px;
}

body .cwp-tour__grid > .cwp-shot {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
}

.cwp-shot img,
.cwp-shot .cwp-shot__frame {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--card);
}

.cwp-shot a {
	display: block;
	border-radius: var(--wp--custom--radius--card);
	cursor: zoom-in;
}

.cwp-shot--placeholder .cwp-shot__frame {
	display: grid;
	place-items: center;
	aspect-ratio: 16 / 10;
	border-style: dashed;
	background: var(--wp--preset--color--bg-2);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 13px;
	color: var(--wp--preset--color--muted-2);
}

.cwp-shot .cwp-shot__caption,
.cwp-shot figcaption {
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
	color: var(--wp--preset--color--muted);
}

:is(.cwp-shot__caption, .cwp-shot figcaption) strong {
	margin-right: 4px;
	color: var(--wp--preset--color--ink);
}

/* Filtering demo: page copy under the locator */

.cwp-main > .cwp-demo-about {
	max-width: var(--wp--custom--container--width);
	margin: 72px auto 0;
	padding: 0 var(--wp--custom--container--gutter);
}

.cwp-demo-about .cwp-demo-about__title {
	margin-bottom: 14px;
	font-size: 26px;
	line-height: normal;
	letter-spacing: -0.02em;
}

.cwp-demo-about__content {
	max-width: var(--wp--custom--container--article-width);
	font-size: 17px;
	line-height: 1.7;
	color: var(--wp--preset--color--muted);
}

/* The shared CTA follows the demo sections, which end without padding. */
:is(.cwp-tour, .cwp-capabilities) + .cwp-cta {
	padding-top: 96px;
}

/* ==================================================================== */
/* Other shared components                                               */
/* ==================================================================== */

.is-style-card {
	background: #fff;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--card);
	padding: var(--wp--preset--spacing--50);
}

/* ==================================================================== */
/* Content forms (Gravity Forms: support, contact, surveys)              */
/* ==================================================================== */

/* Scoped to post content so the footer newsletter keeps its own row layout.
 * The extra .wp-block-post-content class outranks GF's ".gform_wrapper
 * .gravity-theme" rules without !important. */

.wp-block-post-content .gform_wrapper.gravity-theme {
	margin-block: 40px 0;
}

.wp-block-post-content .gform_wrapper.gravity-theme .gform_required_legend {
	margin: 0 0 20px;
	font-size: 14px;
	color: var(--wp--preset--color--muted-2);
}

.wp-block-post-content .gform_wrapper.gravity-theme .gform_fields {
	row-gap: 28px;
}

.wp-block-post-content .gform_wrapper.gravity-theme .gfield_label {
	margin-bottom: 8px;
	color: var(--wp--preset--color--ink);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
}

.wp-block-post-content .gform_wrapper.gravity-theme .gfield_required {
	margin-left: 2px;
	padding: 0;
	color: var(--wp--preset--color--red);
}

/* Forms set to the "(Required)" text indicator (content forms and the
 * footer newsletter). */
.gform_wrapper.gravity-theme .gfield_label .gfield_required .gfield_required_text {
	margin-left: 2px;
	color: var(--wp--preset--color--red);
	font-size: 13px;
	font-style: normal;
	font-weight: 500;
}

/* GF nests the asterisk in a second .gfield_required span. */
.wp-block-post-content .gform_wrapper.gravity-theme .gfield_required .gfield_required {
	margin: 0;
}

.wp-block-post-content .gform_wrapper.gravity-theme .gform-field-label--type-sub {
	margin-top: 6px;
	font-size: 14px;
	color: var(--wp--preset--color--muted-2);
}

.wp-block-post-content .gform_wrapper.gravity-theme .gfield_description {
	padding-top: 6px;
	font-size: 14px;
	color: var(--wp--preset--color--muted-2);
}

/* Turnstile renders its own titled widget; its field label names nothing. */
.wp-block-post-content .gform_wrapper.gravity-theme .gfield--type-turnstile > .gfield_label {
	display: none;
}

/* Text fields, selects and textareas */

.wp-block-post-content .gform_wrapper.gravity-theme input:is([type="text"], [type="email"], [type="password"], [type="tel"], [type="url"], [type="number"], [type="date"]),
.wp-block-post-content .gform_wrapper.gravity-theme select,
.wp-block-post-content .gform_wrapper.gravity-theme textarea,
.wp-block-post-content :is(#edd_checkout_form_wrap #edd_purchase_form, .edd-blocks-form) :is(input:is([type="text"], [type="email"], [type="password"], [type="tel"], [type="url"], [type="number"]), select, textarea) {
	display: block;
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--wp--preset--color--input-border);
	border-radius: var(--wp--custom--radius--input);
	background-color: #fff;
	color: var(--wp--preset--color--ink);
	font: inherit;
	font-size: 16px; /* 16px+ keeps iOS from zooming on focus */
	line-height: 1.4;
}

/* GF's "medium" size is half width; one column reads better here. */
.wp-block-post-content .gform_wrapper.gravity-theme .gfield :is(input, select).medium {
	width: 100%;
}

.wp-block-post-content .gform_wrapper.gravity-theme textarea {
	min-height: 180px;
	resize: vertical;
}

.wp-block-post-content .gform_wrapper.gravity-theme select {
	padding-right: 44px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%233d3835' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-position: right 16px center;
	background-repeat: no-repeat;
	background-size: 12px 8px;
	cursor: pointer;
	appearance: none;
}

.wp-block-post-content :is(.gform_wrapper.gravity-theme, #edd_checkout_form_wrap #edd_purchase_form, .edd-blocks-form) :is(input, select, textarea):not([aria-invalid="true"]):hover {
	border-color: var(--wp--preset--color--muted-2);
}

.wp-block-post-content :is(.gform_wrapper.gravity-theme, #edd_checkout_form_wrap #edd_purchase_form, .edd-blocks-form) :is(input, select, textarea):not([aria-invalid="true"]):focus {
	border-color: var(--wp--preset--color--ink);
}

/* Radio buttons and checkboxes */

.wp-block-post-content .gform_wrapper.gravity-theme .gfield_radio,
.wp-block-post-content .gform_wrapper.gravity-theme .gfield_checkbox {
	display: grid;
	gap: 4px;
}

.wp-block-post-content .gform_wrapper.gravity-theme .gchoice {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.wp-block-post-content .gform_wrapper.gravity-theme .gfield-choice-input {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 4px 0 0; /* centers on the label's first line */
	accent-color: var(--wp--preset--color--red);
	cursor: pointer;
}

.wp-block-post-content .gform_wrapper.gravity-theme .gchoice > label {
	max-width: none;
	padding-block: 2px; /* 28px rows: 24px+ target size (WCAG 2.5.8) */
	font-size: 16px;
	line-height: 1.5;
	color: var(--wp--preset--color--ink-3);
	cursor: pointer;
}

/* Submit */

.wp-block-post-content .gform_wrapper.gravity-theme .gform_footer {
	margin-top: 8px;
	padding-top: 24px;
}

.wp-block-post-content .gform_wrapper.gravity-theme .gform_footer .gform_button,
.wp-block-post-content :is(#edd_checkout_form_wrap, .wp-block-edd-login, .wp-block-edd-register, .wp-block-edd-profile-editor, .wp-block-edd-licenses) .edd-submit {
	padding: 14px 28px;
	border: 0;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--red);
	color: #fff;
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: normal;
	cursor: pointer;
}

.wp-block-post-content .gform_wrapper.gravity-theme .gform_footer .gform_button:hover,
.wp-block-post-content :is(#edd_checkout_form_wrap, .wp-block-edd-login, .wp-block-edd-register, .wp-block-edd-profile-editor, .wp-block-edd-licenses) .edd-submit:hover {
	background: var(--wp--preset--color--red-dark);
}

/* EDD blocks (checkout, login, register, profile editor, licenses). Same
 * fields and button as above; these set the layout around them. EDD's
 * checkout CSS uses #edd_purchase_form, so the checkout rules lead with
 * the wrapper's ID as well. */

.wp-block-post-content :is(#edd_checkout_form_wrap #edd_purchase_form, .edd-blocks-form) {
	gap: 24px;
	padding: 0;
	border: 0;
}

/* Checkout sections (Personal info, Billing details, Payment) */
#edd_checkout_form_wrap #edd_purchase_form fieldset {
	display: grid;
	gap: 20px;
	min-width: 0;
	margin: 0 0 40px;
	padding: 32px 0 0;
	border: 0;
	border-top: 1px solid var(--wp--preset--color--line);
}

#edd_checkout_form_wrap #edd_purchase_form #edd_checkout_user_info {
	padding-top: 0;
	border-top: 0;
}

/* EDD resets the billing section inside the user-details wrapper. */
#edd_checkout_form_wrap #edd_purchase_form #edd_cc_address {
	padding-top: 32px;
	border-top: 1px solid var(--wp--preset--color--line);
}

.wp-block-post-content :is(#edd_checkout_form_wrap #edd_purchase_form, .edd-blocks-form) legend {
	/* Floated so it's laid out as ordinary content instead of sitting on the
	 * fieldset's top edge; EDD's sections are grids, so it spans them. */
	float: left;
	grid-column: 1 / -1;
	width: 100%;
	margin: 0;
	padding: 0;
	color: var(--wp--preset--color--ink);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

/* The forms are grids with a 24px gap; groups add no margin of their own. */
.wp-block-post-content :is(#edd_checkout_form_wrap #edd_purchase_form, .edd-blocks-form) :is(.edd-blocks-form__group, p) {
	margin: 0;
}

.wp-block-post-content :is(#edd_checkout_form_wrap #edd_purchase_form, .edd-blocks-form) .edd-label {
	display: block;
	margin-bottom: 8px;
	color: var(--wp--preset--color--ink);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
}

.wp-block-post-content :is(#edd_checkout_form_wrap #edd_purchase_form, .edd-blocks-form) .edd-required-indicator {
	margin-left: 2px;
	color: var(--wp--preset--color--red);
}

.wp-block-post-content :is(#edd_checkout_form_wrap #edd_purchase_form, .edd-blocks-form) .edd-description {
	margin: 6px 0 0;
	color: var(--wp--preset--color--muted-2);
	font-size: 14px;
	line-height: 1.5;
}

/* Checkboxes ("Remember me", terms, account creation) */
.wp-block-post-content :is(#edd_checkout_form_wrap #edd_purchase_form, .edd-blocks-form) .edd-blocks-form__control:has(> input[type="checkbox"]) {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 28px;
}

.wp-block-post-content :is(#edd_checkout_form_wrap #edd_purchase_form, .edd-blocks-form) input[type="checkbox"] {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--wp--preset--color--red);
	cursor: pointer;
}

.wp-block-post-content :is(#edd_checkout_form_wrap #edd_purchase_form, .edd-blocks-form) .edd-blocks-form__control:has(> input[type="checkbox"]) .edd-label {
	margin: 0;
	color: var(--wp--preset--color--ink-3);
	font-size: 16px;
	font-weight: 400;
	cursor: pointer;
}

.wp-block-post-content .edd-blocks-form__group-lost-password {
	font-size: 15px;
}

/* Payment method choice: cards, the selected one in brand red. EDD hides
 * the radios visually; the outline shows keyboard focus on the card. */
#edd_checkout_form_wrap #edd-payment-mode-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

#edd_checkout_form_wrap #edd-payment-mode-wrap label.edd-gateway-option {
	min-height: 48px;
	padding: 10px 18px;
	border: 1px solid var(--wp--preset--color--input-border);
	border-radius: var(--wp--custom--radius--input);
	background: #fff;
	color: var(--wp--preset--color--ink);
	font-weight: 600;
	cursor: pointer;
}

#edd_checkout_form_wrap #edd-payment-mode-wrap label.edd-gateway-option:hover {
	border-color: var(--wp--preset--color--muted-2);
}

#edd_checkout_form_wrap #edd-payment-mode-wrap label.edd-gateway-option-selected {
	border-color: var(--wp--preset--color--red);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--red); /* 2px total: not color alone */
	background: var(--wp--preset--color--red-tint);
}

#edd_checkout_form_wrap #edd-payment-mode-wrap label.edd-gateway-option:has(input:focus-visible) {
	outline: var(--wp--custom--focus-ring--width) solid var(--wp--preset--color--red);
	outline-offset: var(--wp--custom--focus-ring--offset);
}

/* Cart */
#edd_checkout_form_wrap .edd-blocks-form__cart #edd_checkout_cart {
	margin-bottom: 24px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--card);
	background: #fff;
	overflow: hidden;
}

#edd_checkout_form_wrap .edd-blocks-cart__row {
	padding: 16px 20px;
}

#edd_checkout_form_wrap .edd-blocks-cart__row-header {
	padding-block: 12px;
	background: var(--wp--preset--color--bg-2);
	color: var(--wp--preset--color--muted-2);
	font-size: 13px;
	font-weight: 600;
}

#edd_checkout_form_wrap .edd-blocks-form__cart :is(.edd-blocks-cart__items, .edd-blocks-cart__row-header) {
	border-color: var(--wp--preset--color--line);
}

#edd_checkout_form_wrap .edd_checkout_cart_item_title {
	color: var(--wp--preset--color--ink);
	font-weight: 600;
}

#edd_checkout_form_wrap .eddr-cart-item-notice {
	margin: 4px 0 0;
	color: var(--wp--preset--color--muted-2);
	font-size: 14px;
	font-style: normal;
}

#edd_checkout_form_wrap .edd_cart_total {
	color: var(--wp--preset--color--ink);
	font-size: 18px;
	font-weight: 700;
}

/* Secondary buttons (renew a license, discount, password generator,
 * license actions): outlined pills. */
.wp-block-post-content :is(#edd_checkout_form_wrap, .wp-block-edd-login, .wp-block-edd-register, .wp-block-edd-profile-editor, .wp-block-edd-licenses) :is(.edd-button-secondary, .edd-sl-show-renewal-form, .edd-licenses__action) {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 8px 18px;
	border: 1px solid var(--wp--preset--color--input-border);
	border-radius: var(--wp--custom--radius--pill);
	background: #fff;
	color: var(--wp--preset--color--ink);
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transform: none;
}

.wp-block-post-content :is(#edd_checkout_form_wrap, .wp-block-edd-login, .wp-block-edd-register, .wp-block-edd-profile-editor, .wp-block-edd-licenses) :is(.edd-button-secondary, .edd-sl-show-renewal-form, .edd-licenses__action):hover {
	border-color: var(--wp--preset--color--ink);
}

.wp-block-post-content .edd-renewal-form--legacy {
	margin-bottom: 40px;
}

/* Purchase button: full width, under the total. */
#edd_checkout_form_wrap #edd_purchase_submit .edd-submit {
	width: 100%;
	min-height: 52px;
	font-size: 17px;
}

.wp-block-post-content :is(#edd_checkout_form_wrap, .wp-block-edd-licenses) a.edd-submit {
	display: inline-block;
	text-decoration: none;
}

/* Checkout layout (bin/content/checkout.html): order summary card and the
 * form. The summary comes first in the source, so phones see the order
 * before the form; from 960px it moves to a sticky right column. */

.cwp-page:has(.cwp-checkout) {
	max-width: calc(66rem + 2 * var(--wp--custom--container--gutter));
}

#edd_checkout_form_wrap.cwp-checkout #edd_purchase_form {
	display: grid;
	gap: 40px;
	align-items: start;
}

@media (min-width: 960px) {
	#edd_checkout_form_wrap.cwp-checkout #edd_purchase_form {
		grid-template-columns: minmax(0, 1fr) minmax(300px, 22.5rem);
		column-gap: 56px;
	}

	.cwp-checkout .cwp-checkout__summary {
		position: sticky;
		top: 97px; /* header height + 24px */
		grid-column: 2;
		grid-row: 1;
	}

	body.admin-bar .cwp-checkout .cwp-checkout__summary {
		top: 129px;
	}

	.cwp-checkout .cwp-checkout__form {
		grid-column: 1;
		grid-row: 1;
	}
}

.cwp-checkout .cwp-checkout__summary {
	padding: 24px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--card);
	background: #fff;
}

/* Phones: only the order itself (cart, total, renew/discount links) sits
 * above the form; the reassurance list moves below it, so the first field
 * isn't pushed off screen. The summary box dissolves into the grid. */
@media (max-width: 959px) {
	#edd_checkout_form_wrap.cwp-checkout #edd_purchase_form {
		gap: 24px;
	}

	.cwp-checkout .cwp-checkout__summary {
		display: contents;
	}

	.cwp-checkout .cwp-checkout__summary > * + * {
		margin-top: 0;
	}

	/* Visually hidden, still announced: the cart card speaks for itself. */
	.cwp-checkout .cwp-checkout__heading {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.cwp-checkout .cwp-checkout__assurances {
		order: 1;
		margin: 0;
		padding: 0;
		border: 0;
	}

	#edd_checkout_form_wrap.cwp-checkout .edd-blocks__cart {
		padding: 4px 20px 20px;
		border: 1px solid var(--wp--preset--color--line);
		border-radius: var(--wp--custom--radius--card);
		background: #fff;
	}
}

.cwp-checkout .cwp-checkout__summary > * + * {
	margin-top: 16px;
}

.cwp-checkout .cwp-checkout__heading {
	margin: 0;
	color: var(--wp--preset--color--ink);
	font-size: 18px;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

/* The cart sits inside the summary card: no frame or column labels of its own. */
#edd_checkout_form_wrap.cwp-checkout .edd-blocks-form__cart #edd_checkout_cart {
	margin: 0;
	border: 0;
	border-radius: 0;
	background: none;
}

#edd_checkout_form_wrap.cwp-checkout .edd-blocks-cart__row-header {
	display: none;
}

#edd_checkout_form_wrap.cwp-checkout .edd-blocks-cart__row {
	padding-inline: 0;
}

#edd_checkout_form_wrap.cwp-checkout .edd-blocks-cart__row-footer {
	padding-bottom: 0;
}

/* Remove item: 32px target (the icon alone was 18px). */
#edd_checkout_form_wrap .edd_cart_remove_item_btn {
	display: inline-grid;
	place-items: center;
	min-width: 32px;
	min-height: 32px;
	margin-left: 4px;
	border-radius: var(--wp--custom--radius--nav);
	color: var(--wp--preset--color--muted-2);
}

#edd_checkout_form_wrap .edd_cart_remove_item_btn:hover {
	background: var(--wp--preset--color--hover);
	color: var(--wp--preset--color--red);
}

/* Discount and license renewal: quiet links until opened. */
.cwp-checkout :is(#edd_show_discount, .edd-renewal-form--legacy) {
	font-size: 15px;
}

.wp-block-post-content #edd_checkout_form_wrap.cwp-checkout :is(.edd-sl-show-renewal-form, .edd_discount_link) {
	min-height: 32px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: var(--wp--preset--color--red);
	font-size: 15px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.cwp-checkout .edd-renewal-form--legacy {
	margin: 16px 0 0;
	padding: 0;
}

/* Product name and price share a row. */
#edd_checkout_form_wrap.cwp-checkout .edd-blocks-cart__row-item {
	flex-wrap: nowrap;
	align-items: flex-start;
	gap: 12px;
}

#edd_checkout_form_wrap.cwp-checkout .edd-blocks-cart__row-item .edd_cart_item_name {
	flex: 1;
	min-width: 0;
}

#edd_checkout_form_wrap.cwp-checkout .edd-blocks-cart__row-item .edd_cart_item_price {
	display: flex;
	align-items: center;
	flex: none;
	margin-top: -4px; /* centers the 32px remove button on the name's first line */
}

/* Reassurance list with check marks */
.cwp-checkout .cwp-checkout__assurances {
	margin: 20px 0 0;
	padding: 16px 0 0;
	border-top: 1px solid var(--wp--preset--color--line);
	list-style: none;
	color: var(--wp--preset--color--muted);
	font-size: 14px;
	line-height: 1.5;
}

.cwp-checkout .cwp-checkout__assurances li {
	position: relative;
	padding-left: 24px;
}

.cwp-checkout .cwp-checkout__assurances li + li {
	margin-top: 8px;
}

.cwp-checkout .cwp-checkout__assurances li::before {
	content: "";
	position: absolute;
	top: 0.3em;
	left: 0;
	width: 14px;
	height: 14px;
	background: var(--wp--preset--color--red);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 7.5l3 3 7-7' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%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 14 14'%3E%3Cpath d='M2 7.5l3 3 7-7' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* The form column opens with Personal info: no divider above it. */
/* Summary text sizes (the page body is 18px). */
#edd_checkout_form_wrap.cwp-checkout .edd_checkout_cart_item_title {
	font-size: 16px;
	line-height: 1.4;
}

#edd_checkout_form_wrap.cwp-checkout .eddr-cart-item-notice {
	font-size: 13px;
	line-height: 1.4;
}

#edd_checkout_form_wrap.cwp-checkout .edd_cart_item_price {
	font-size: 16px;
}

/* Account page (bin/content/account.html): overview cards and jump links
 * (cardinalwp/account-overview), then EDD's licenses, subscriptions,
 * orders and profile blocks as cards with status badges. */

.cwp-page:has(.cwp-account) {
	max-width: calc(66rem + 2 * var(--wp--custom--container--gutter));
}

.cwp-account .cwp-account__greeting {
	margin: 0 0 24px;
	color: var(--wp--preset--color--muted);
	font-size: 19px;
}

.cwp-account .cwp-account__cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2 × 2 */
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (max-width: 559px) {
	.cwp-account .cwp-account__cards {
		grid-template-columns: minmax(0, 1fr);
	}
}

.cwp-account .cwp-account__card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 20px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--card);
	background: #fff;
}

.cwp-account .cwp-account__label {
	margin: 0;
	color: var(--wp--preset--color--muted-2);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.4;
}

.cwp-account .cwp-account__value {
	margin: 0;
	color: var(--wp--preset--color--ink);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

.cwp-account .cwp-account__note {
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-size: 14px;
	line-height: 1.5;
}

/* Text and links in a note sit apart with a gap, not a separator dot
 * (a dot between two underlined links read as one broken underline). */
.cwp-account .cwp-account__note {
	display: flex;
	flex-wrap: wrap;
	column-gap: 16px;
}

.cwp-account .cwp-account__note--alert {
	color: var(--wp--preset--color--red-dark);
	font-weight: 600;
}

.cwp-account .cwp-account__button {
	align-self: flex-start;
	margin-top: auto;
	padding: 8px 16px;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--red);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}

.cwp-account .cwp-account__button:hover {
	background: var(--wp--preset--color--red-dark);
	color: #fff;
}

/* Two columns: sticky side menu + one section at a time (src/account.js
 * hides the others). Phones: the menu becomes a row of pills on top. */
.cwp-account-layout {
	display: grid;
	gap: 32px;
	align-items: start;
}

@media (min-width: 900px) {
	.cwp-account-layout {
		grid-template-columns: 13rem minmax(0, 1fr);
		gap: 48px;
	}

	.cwp-account-layout .cwp-account-nav {
		position: sticky;
		top: 97px;
	}

	body.admin-bar .cwp-account-layout .cwp-account-nav {
		top: 129px;
	}
}

.cwp-account-nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cwp-account-nav a {
	display: block;
	padding: 9px 14px;
	border-radius: var(--wp--custom--radius--nav);
	color: var(--wp--preset--color--ink-3);
	font-size: 16px;
	text-decoration: none;
}

.cwp-account-nav a:hover {
	background: var(--wp--preset--color--hover);
	color: var(--wp--preset--color--ink);
}

.cwp-account-nav a[aria-current="page"] {
	background: var(--wp--preset--color--red-tint);
	color: var(--wp--preset--color--red-dark);
	font-weight: 600;
}

.cwp-account-nav .cwp-account-nav__more {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--wp--preset--color--line);
}

.cwp-account-nav .cwp-account-nav__more a {
	color: var(--wp--preset--color--muted);
	font-size: 15px;
}

@media (max-width: 899px) {
	.cwp-account-nav,
	.cwp-account-nav ul {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
	}

	.cwp-account-nav a {
		padding: 6px 14px;
		border: 1px solid var(--wp--preset--color--input-border);
		border-radius: var(--wp--custom--radius--pill);
		background: #fff;
		font-size: 15px;
	}

	.cwp-account-nav a[aria-current="page"] {
		border-color: var(--wp--preset--color--red);
	}

	.cwp-account-nav .cwp-account-nav__more {
		margin: 0;
		padding: 0;
		border: 0;
	}
}

/* Section headings */
.wp-block-post-content .cwp-account__section {
	margin: 0 0 20px;
	font-size: 26px;
	letter-spacing: -0.02em;
}

/* Stacked (no JS): space between the sections. */
.cwp-account-layout:not(.is-tabbed) .cwp-account-panel + .cwp-account-panel {
	margin-top: 56px;
}

.cwp-account-panel .cwp-account__section:focus {
	outline: none; /* focused by script after a menu choice, not interactive */
}

/* Receipt (purchase confirmation): totals and products as cards, file
 * links as buttons, subscriptions in the site's table box. */
.wp-block-post-content .edd-blocks__receipt h3 {
	margin: 40px 0 16px;
	font-size: 20px;
	letter-spacing: -0.01em;
}

.wp-block-post-content :is(.edd-blocks-receipt__totals, .edd-blocks-receipt__items) {
	padding: 8px 24px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--card);
	background: #fff;
	font-size: 16px;
}

.wp-block-post-content :is(.edd-blocks-receipt__totals, .edd-blocks-receipt__items) .edd-blocks__row {
	padding: 12px 0;
}

.wp-block-post-content :is(.edd-blocks-receipt__totals, .edd-blocks-receipt__items) .edd-blocks__row + .edd-blocks__row {
	border-top: 1px solid var(--wp--preset--color--line-2);
}

.wp-block-post-content .edd-blocks-receipt__row-header {
	color: var(--wp--preset--color--ink);
	font-weight: 600;
}

.wp-block-post-content .edd_sl_license_key {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 14px;
	word-break: break-all;
}

.wp-block-post-content .edd-blocks-receipt__item .edd-blocks__row-label {
	color: var(--wp--preset--color--ink);
	font-weight: 600;
}

.wp-block-post-content .edd_purchase_receipt_files {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.wp-block-post-content .edd_download_file_link {
	display: inline-block;
	padding: 8px 18px;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--red);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}

.wp-block-post-content .edd_download_file_link:hover {
	background: var(--wp--preset--color--red-dark);
	color: #fff;
}

.wp-block-post-content .cwp-receipt-table {
	overflow-x: auto;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--table);
	background: #fff;
}

.wp-block-post-content .cwp-receipt-table table {
	margin: 0;
}

.wp-block-post-content .cwp-receipt-table :is(th, td) {
	padding: 12px 14px;
	border-left: 0;
	line-height: 1.5;
}

.wp-block-post-content .cwp-receipt-table th {
	font-size: 13px;
}

/* Not a code column like the docs tables' first column. */
.wp-block-post-content .cwp-receipt-table td:first-child {
	color: var(--wp--preset--color--ink);
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	white-space: normal;
}

.wp-block-post-content .edd_subscription_billing_cycle {
	color: var(--wp--preset--color--muted-2);
	font-size: 14px;
	font-weight: 400;
}

/* Empty sections (inc/account.php) */
.wp-block-post-content .cwp-account__empty {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	padding: 24px;
	border: 1px dashed var(--wp--preset--color--input-border);
	border-radius: var(--wp--custom--radius--card);
	color: var(--wp--preset--color--muted);
	font-size: 16px;
}

.wp-block-post-content .cwp-account__empty p {
	margin: 0;
}

.wp-block-post-content .cwp-account__empty a {
	font-weight: 600;
}

/* Status badges (licenses, subscriptions, orders) */
.wp-block-post-content :is(.edd-licenses__status, .edd-blocks-subscriptions__subscription-status, .edd-blocks-orders__order-status) {
	display: inline-block;
	padding: 2px 10px;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--bg-2);
	color: var(--wp--preset--color--ink-3);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.6;
	text-transform: capitalize;
}

.wp-block-post-content :is(.edd-licenses__status--active, .edd-blocks-subscriptions__subscription-status:is(.active, .trialling), .edd-blocks-orders__order-status.complete) {
	background: color-mix(in srgb, var(--wp--custom--ui--success) 12%, #fff);
	color: var(--wp--custom--ui--success);
}

.wp-block-post-content :is(.edd-licenses__status--expired, .edd-licenses__status--revoked, .edd-licenses__status--disabled, .edd-blocks-subscriptions__subscription-status:is(.expired, .cancelled, .failing), .edd-blocks-orders__order-status:is(.refunded, .failed)) {
	background: var(--wp--preset--color--red-tint);
	color: var(--wp--preset--color--red-dark);
}

/* Licenses */
.wp-block-post-content .edd-licenses__list {
	display: grid;
	gap: 16px;
}

.wp-block-post-content .edd-licenses__item {
	display: grid;
	gap: 20px;
	padding: 24px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--card);
	background: #fff;
}

.wp-block-post-content .edd-licenses__item--expired {
	border-color: var(--wp--preset--color--red);
}

/* Download button beside the product name (as Freemius's portal does). */
.wp-block-post-content .edd-licenses__product {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.wp-block-post-content .edd-licenses__name {
	color: var(--wp--preset--color--ink);
	font-size: 18px;
	font-weight: 600;
}

.wp-block-post-content .edd-licenses__downloads .edd-submit {
	padding: 8px 18px;
	font-size: 15px;
}

.wp-block-post-content .edd-licenses__details {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
	gap: 20px;
}

.wp-block-post-content .edd-licenses__label {
	color: var(--wp--preset--color--muted-2);
	font-size: 13px;
	font-weight: 600;
}

.wp-block-post-content .edd-licenses__key-value {
	display: flex;
	gap: 8px;
	margin-top: 6px;
}

.wp-block-post-content .edd-licenses__key-input {
	flex: 1;
	min-width: 0;
	padding: 8px 12px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--input);
	background: var(--wp--preset--color--bg-2);
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 14px;
}

.wp-block-post-content .edd-licenses__copy {
	display: inline-grid;
	place-items: center;
	min-width: 40px;
	border: 1px solid var(--wp--preset--color--input-border);
	border-radius: var(--wp--custom--radius--input);
	background: #fff;
	color: var(--wp--preset--color--ink);
	cursor: pointer;
}

.wp-block-post-content .edd-licenses__copy:hover {
	border-color: var(--wp--preset--color--ink);
}

.wp-block-post-content .edd-licenses__status-date,
.wp-block-post-content .edd-licenses__activation-data {
	margin-top: 6px;
	color: var(--wp--preset--color--ink-3);
	font-size: 15px;
}

.wp-block-post-content .edd-licenses__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding-top: 20px;
	border-top: 1px solid var(--wp--preset--color--line-2);
}

/* License dialogs (manage activations, upgrades) */
.wp-block-post-content .edd-licenses__dialog {
	width: min(36rem, calc(100vw - 32px));
	padding: 24px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--card);
	background: #fff;
	color: var(--wp--preset--color--ink-2);
}

.wp-block-post-content .edd-licenses__dialog::backdrop {
	background: rgb(28 26 25 / 45%);
}

.wp-block-post-content .edd-licenses__dialog-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}

.wp-block-post-content .edd-licenses__dialog-title {
	margin: 0;
	font-size: 20px;
}

.wp-block-post-content .edd-licenses__dialog-close {
	min-width: 40px;
	min-height: 40px;
	border: 0;
	border-radius: var(--wp--custom--radius--nav);
	background: none;
	color: var(--wp--preset--color--ink);
	font-size: 24px;
	cursor: pointer;
}

.wp-block-post-content .edd-licenses__dialog-close:hover {
	background: var(--wp--preset--color--hover);
}

/* Subscriptions and orders: cards in EDD's grid */
.wp-block-post-content :is(.edd-blocks__subscriptions-grid, .edd-blocks__orders-grid) {
	gap: 16px;
}

.wp-block-post-content :is(.edd-blocks-subscriptions__subscription, .edd-blocks-orders__order) {
	padding: 20px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--card);
	background: #fff;
	font-size: 15px;
	line-height: 1.5;
}

.wp-block-post-content :is(.edd-blocks-subscriptions__subscription-header, .edd-blocks-orders__order-header) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 12px;
	padding: 0 0 12px;
	border-bottom: 1px solid var(--wp--preset--color--line-2);
	color: var(--wp--preset--color--ink);
	font-weight: 600;
}

.wp-block-post-content .edd-blocks__row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 4px 0;
}

.wp-block-post-content .edd-blocks__row-label {
	color: var(--wp--preset--color--muted-2);
}

.wp-block-post-content .edd-blocks__row-value {
	color: var(--wp--preset--color--ink-2);
	text-align: right;
}

.wp-block-post-content :is(.edd-blocks-subscriptions__subcription-actions, .edd-blocks-orders__order-details) {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--wp--preset--color--line-2);
	font-weight: 600;
}

/* Validation: GF's red (#c02b0a) boxes swapped for the brand red, with the
 * message as plain text under the field. */

.wp-block-post-content .gform_wrapper.gravity-theme .gform_validation_errors {
	margin-block: 0 24px;
	padding: 16px 20px;
	border: 1px solid var(--wp--preset--color--red);
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--red-tint);
	box-shadow: none;
}

.wp-block-post-content .gform_wrapper.gravity-theme .gform_validation_errors > h2 {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: var(--wp--preset--color--red-dark);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
}

.wp-block-post-content .gform_wrapper.gravity-theme .gform_validation_errors > h2 .gform-icon {
	position: static;
	font-size: 22px;
}

.wp-block-post-content .gform_wrapper.gravity-theme .gform_validation_errors > ol {
	margin: 10px 0 0;
	padding-left: 20px;
}

.wp-block-post-content .gform_wrapper.gravity-theme .gform_validation_errors > ol a {
	color: var(--wp--preset--color--red-dark);
	font-size: 15px;
}

.wp-block-post-content .gform_wrapper.gravity-theme .gfield_error :is(label, legend) {
	color: var(--wp--preset--color--ink);
}

.wp-block-post-content .gform_wrapper.gravity-theme .gfield_error [aria-invalid="true"] {
	border-color: var(--wp--preset--color--red);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--red); /* 2px total, so the state isn't color alone */
}

.wp-block-post-content .gform_wrapper.gravity-theme .validation_message {
	margin-top: 8px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--wp--preset--color--red-dark);
	font-size: 14px;
	font-weight: 600;
}

.wp-block-post-content .gform_confirmation_message {
	margin-top: 40px;
	padding: 16px 20px;
	border: 1px solid var(--wp--preset--color--line);
	border-left: 4px solid var(--wp--custom--ui--success);
	border-radius: var(--wp--custom--radius--card);
	background: #fff;
	color: var(--wp--preset--color--ink);
}


/* ==================================================================== */
/* 404: "location not found"                                             */
/* ==================================================================== */

.cwp-main > .cwp-404 {
	position: relative;
	isolation: isolate;
	display: grid;
	gap: 48px;
	align-items: center;
	max-width: var(--wp--custom--container--width);
	margin: 0 auto;
	padding: var(--wp--custom--page-header--top) var(--wp--custom--container--gutter) 96px;
	overflow: hidden;
}

@media (min-width: 900px) {
	.cwp-main > .cwp-404 {
		grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
		gap: 64px;
		padding-top: 96px;
	}
}

.cwp-404__copy {
	display: flex;
	flex-direction: column;
	gap: var(--wp--custom--page-header--gap);
	max-width: 36rem;
}

.cwp-404 .cwp-eyebrow {
	margin: 0;
	color: var(--wp--preset--color--red);
}

.cwp-404 .cwp-404__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--display-page);
	line-height: 1.06;
	letter-spacing: -0.035em;
}

.cwp-404 .cwp-404__lead {
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-size: 18px;
	line-height: 1.65;
}

/* Search: field + pill button on one row (also the search results page) */
.cwp-404 .cwp-404__search {
	margin-top: 8px;
}

:is(.cwp-404__search, .cwp-search__form) .wp-block-search__inside-wrapper {
	display: flex;
	gap: 8px;
	padding: 0;
	border: 0;
}

:is(.cwp-404__search, .cwp-search__form) .wp-block-search__input {
	flex: 1;
	min-width: 0;
	margin: 0;
	padding: 12px 14px;
	border: 1px solid var(--wp--preset--color--input-border);
	border-radius: var(--wp--custom--radius--input);
	background: #fff;
	color: var(--wp--preset--color--ink);
	font: inherit;
	font-size: 16px;
}

:is(.cwp-404__search, .cwp-search__form) .wp-block-search__input:hover {
	border-color: var(--wp--preset--color--muted-2);
}

:is(.cwp-404__search, .cwp-search__form) .wp-block-search__button {
	margin: 0;
	padding: 12px 22px;
	border: 0;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--red);
	color: #fff;
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
}

:is(.cwp-404__search, .cwp-search__form) .wp-block-search__button:hover {
	background: var(--wp--preset--color--red-dark);
}

/* Nearby: link pills */
.cwp-404 .cwp-404__nearby {
	margin: 16px 0 0;
	color: var(--wp--preset--color--muted-2);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 12px;
}

.cwp-404 .cwp-404__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cwp-404__links a {
	display: inline-block;
	padding: 7px 16px;
	border: 1px solid var(--wp--preset--color--input-border);
	border-radius: var(--wp--custom--radius--pill);
	background: #fff;
	color: var(--wp--preset--color--ink-3);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
}

.cwp-404__links a:hover {
	border-color: var(--wp--preset--color--red);
	color: var(--wp--preset--color--red);
}

/* Map card: striped "tile", dashed search radius, a pin, and the result. */
.cwp-404__map {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 1;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--hero);
	background: repeating-linear-gradient(135deg, var(--wp--custom--ui--map-a) 0 10px, var(--wp--custom--ui--map-b) 10px 20px);
	box-shadow: var(--wp--custom--shadow--hero, 0 24px 48px -24px rgb(28 26 25 / 25%));
}

.cwp-404__radius {
	position: absolute;
	width: 62%;
	aspect-ratio: 1;
	border: 2px dashed color-mix(in srgb, var(--wp--preset--color--red) 55%, transparent);
	border-radius: 50%;
	background: color-mix(in srgb, var(--wp--preset--color--red) 6%, transparent);
}

.cwp-404 .cwp-404__pin {
	position: relative;
	width: 32px;
	height: 32px;
	margin-top: -32px; /* the tip, not the head, marks the center */
}

.cwp-404__label {
	position: absolute;
	bottom: 18%;
	padding: 4px 10px;
	border-radius: 4px;
	background: var(--wp--preset--color--bg);
	color: var(--wp--custom--ui--map-label);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 12px;
}

/* ==================================================================== */
/* Route divider (patterns/route-divider.php)                            */
/* ==================================================================== */

/* A map route between sections: hollow start point, dashed path, pin at
 * the end. Decorative (aria-hidden in the markup). */
.cwp-main > .cwp-route {
	position: relative;
	max-width: var(--wp--custom--container--width);
	height: 24px;
	margin: 0 auto;
	padding: 0 var(--wp--custom--container--gutter);
}

.cwp-route::before {
	content: "";
	position: absolute;
	top: 50%;
	left: var(--wp--custom--container--gutter);
	right: calc(var(--wp--custom--container--gutter) + 22px);
	height: 10px;
	margin-top: -5px;
	background:
		radial-gradient(circle at 5px 50%, transparent 0 2.5px, var(--wp--preset--color--red) 3px 4.5px, transparent 5px) no-repeat,
		repeating-linear-gradient(to right, color-mix(in srgb, var(--wp--preset--color--muted-2) 45%, transparent) 0 6px, transparent 6px 12px) 16px 50% / calc(100% - 16px) 2px no-repeat;
}

.cwp-route::after {
	content: "";
	position: absolute;
	top: 50%;
	right: calc(var(--wp--custom--container--gutter) + 4px);
	width: 13px;
	height: 13px;
	margin-top: -11px;
	border-radius: 50% 50% 50% 0;
	background: var(--wp--preset--color--red);
	transform: rotate(-45deg);
	-webkit-mask: radial-gradient(circle at 50% 50%, transparent 0 2.2px, #000 2.8px);
	mask: radial-gradient(circle at 50% 50%, transparent 0 2.2px, #000 2.8px);
}

/* Home: between "What's new" and the call to action. */
.cwp-main > .cwp-route + .cwp-cta {
	padding-top: 64px;
}

/* Pricing: after the assurances row, before the FAQ. */
.cwp-main > .cwp-assure + .cwp-route {
	max-width: calc(68rem + 2 * var(--wp--custom--container--gutter)); /* lines up with the plans */
	margin-top: 64px;
}

/* ==================================================================== */
/* Footer compass rose (assets/img/compass.svg)                          */
/* ==================================================================== */

/* A faint compass rose tucked into the footer's bottom-right corner,
 * partly cut off by the edge. Decorative; sits behind the footer content. */
.site-footer {
	position: relative;
	isolation: isolate;
	overflow: hidden;
}

.site-footer::after {
	content: "";
	position: absolute;
	z-index: -1;
	right: -90px;
	bottom: -120px;
	width: 380px;
	aspect-ratio: 79.1 / 79.7;
	background: var(--wp--preset--color--ink);
	opacity: 0.05;
	-webkit-mask: url("../img/compass.svg") no-repeat center / contain;
	mask: url("../img/compass.svg") no-repeat center / contain;
	pointer-events: none;
}

@media (max-width: 781px) {
	.site-footer::after {
		right: -70px;
		bottom: -80px;
		width: 240px;
	}
}
