/*
 * Glue between WordPress block markup and the design CSS in assets/css/design.
 * Loads after the design stack. Keep it to adapters: page styling lives in design/.
 */

/* Block gap margins would push design sections apart. */
.x .wp-site-blocks>*,
.x main.wp-block-group>*,
.x :where(.x-tabhd, .x-ft, main:not(.dd, .cs, .po), .x-sec, .x-hero) :where(.is-layout-flow, .is-layout-constrained)>* {
	margin-block: 0;
}

.x main.wp-block-group {
	padding: 0;
}

/* Generic templates (page, search, archive, 404) keep core's gutters and block gap. */
.x main.wp-block-group.has-global-padding {
	padding-inline: var(--wp--style--root--padding-left) var(--wp--style--root--padding-right);
}

.x main.has-global-padding>*+* {
	margin-block-start: var(--wp--style--block-gap);
}

/* --cms-bar: the admin bar height while it is fixed (under 601px core lets it scroll away).
   Every sticky top adds it, so the header and the rails under it never slide beneath the bar. */
.admin-bar {
	--cms-bar: var(--wp-admin--admin-bar--height, 0px);
}

@media (max-width: 600px) {
	.admin-bar {
		--cms-bar: 0px;
	}
}

.admin-bar .x-tabhd {
	top: var(--cms-bar);
}

/* The tab's corner pieces only fade out in the scrolled pill, so they would
   still widen the page on phones. clip keeps sticky working, unlike hidden. */
.x-tabhd {
	overflow-x: clip;
}

/* Reveal stagger: site.js sets --rv on each target; the delay goes with .x-rv. */
.x .x-rv.x-rv {
	transition-delay: var(--rv, 0ms);
}

/* Header: the Lean Navigation block standing in for the design's nav links. */
.x-tabhd .wp-block-cms-theme-nav a:hover,
.x-tabhd .wp-block-cms-theme-nav [aria-current] {
	text-decoration: none;
}

.x-tabhd .cms-nav__toggle span,
.x-tabhd .cms-nav__close span {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

@media (min-width: 821px) {
	.x-tabhd .cms-nav__toggle,
	.x-tabhd .cms-nav__close {
		display: none;
	}

	.x-tabhd .cms-nav__panel {
		display: block;
		position: static;
		width: auto;
		height: auto;
		margin: 0;
		padding: 0;
		overflow: visible;
		border: 0;
		background: none;
		color: inherit;
		opacity: 1;
	}

	.x-tabhd .cms-nav__list {
		flex-flow: row nowrap;
		gap: clamp(20px, 2.6vw, 36px);
	}
}

/* Logo: larger than the design at every width, since phones no longer share the bar with a button. */
.x-tabhd .cm-header-tab__logo img {
	height: 34px;
}

@media (max-width: 820px) {
	.x-tabhd .cm-header-tab__logo img {
		height: 32px;
	}
}

@media (max-width: 560px) {
	.x-tabhd .cm-header-tab__logo img {
		height: 28px;
	}
}

/* The mobile menu extras (header-menu pattern) only live in the menu sheet. */
@media (min-width: 821px) {
	.x-tabhd .cms-nav__panel> :is(.x-mm__logo, .x-mm__more, .x-mm__social, .x-mm__end) {
		display: none;
	}
}

/* Small screens: menu button after the call to action. The menu is a dark sheet:
   from the top over half the screen on phones, the right half on tablets. */
@media (max-width: 820px) {
	.x-tabhd .cm-header-tab__bar {
		grid-template-columns: 1fr auto auto;
	}

	.x-tabhd .cm-header-tab__nav {
		display: block;
		order: 3;
	}

	.x-tabhd .cms-nav__toggle,
	.x-tabhd .cms-nav__close {
		display: inline-grid;
		place-items: center;
		width: 40px;
		height: 40px;
		padding: 0;
		border: 0;
		border-radius: 100px;
		background: var(--dk2);
		color: var(--dkink);
		transition: background-color 150ms ease, transform 160ms var(--ease-out);
	}

	.x-tabhd .cms-nav__toggle:active,
	.x-tabhd .cms-nav__close:active {
		transform: scale(0.94);
	}

	.x-tabhd .cm-header-tab__end .cm-btn {
		height: 40px;
		padding: 0 18px;
		font-size: 14px;
	}

	/* The sheet keeps its look while closed too, so the exit fade never shows the plain panel. */
	.x-tabhd .cms-nav__panel {
		display: none;
		grid-template-columns: 1fr auto;
		grid-template-areas: "logo close" "list list" "more more" "social social" "end end";
		align-content: start;
		gap: 16px;
		inset: 0 0 auto;
		width: 100%;
		height: auto;
		max-height: 100svh;
		overflow-y: auto;
		padding: 16px 16px max(16px, env(safe-area-inset-bottom));
		border: 0;
		border-bottom: 1px solid var(--dkln);
		border-radius: 0 0 28px 28px;
		background: var(--dk);
		color: var(--dkink);
		box-shadow: 0 28px 56px -20px rgba(0, 0, 0, 0.6);
		overscroll-behavior: contain;
	}

	.x-tabhd .cms-nav__panel:popover-open {
		display: grid;
	}

	.x-tabhd .cms-nav__panel::backdrop {
		background: rgba(10, 15, 13, 0.55);
		backdrop-filter: blur(3px);
	}

	.x-mm__logo {
		grid-area: logo;
		align-self: center;
		display: inline-flex;
	}

	.x-mm__logo img {
		height: 28px;
		width: auto;
	}

	.x-tabhd .cms-nav__close {
		grid-area: close;
	}

	/* Main pages: four tiles. */
	.x-tabhd .cms-nav__panel .cms-nav__list {
		grid-area: list;
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
		font-size: inherit;
	}

	.x-tabhd .cms-nav__panel .cms-nav__list a {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 8px;
		min-height: 52px;
		padding: 0 16px;
		border-radius: 16px;
		background: var(--dk2);
		font: 600 17px/1.2 var(--font-display);
		color: var(--dkink);
		transition: background-color 150ms ease, transform 160ms var(--ease-out);
	}

	/* The desktop current-page dot becomes a small arrow in the tile. */
	.x-tabhd .cms-nav__panel .cms-nav__list a::after {
		content: "";
		position: static;
		width: 7px;
		height: 7px;
		border: solid var(--dkmu);
		border-width: 2px 2px 0 0;
		border-radius: 1px;
		margin: 0;
		background: none;
		opacity: 1;
		transform: rotate(45deg);
	}

	/* Header nav rules (dot, nowrap, neon hover) are for the desktop links only. */
	.x-tabhd :is(.x-mm__more, .x-mm__social, .x-mm__end) a::after {
		display: none;
	}

	.x-tabhd .x-mm__end .cm-btn,
	.x-tabhd .x-mm__end .cm-btn:hover {
		color: var(--on-brand);
	}

	.x-tabhd .cms-nav__panel a[aria-current] {
		color: var(--neon);
	}

	.x-tabhd .cms-nav__panel .cms-nav__list a[aria-current] {
		box-shadow: inset 0 0 0 1px rgba(91, 211, 148, 0.35);
	}

	.x-tabhd .cms-nav__panel .cms-nav__list a:active {
		transform: scale(0.98);
		background: var(--dk3);
	}

	/* More pages: pill chips that wrap. */
	.x-mm__more {
		grid-area: more;
		padding-top: 16px;
		border-top: 1px solid var(--dkln);
	}

	.x-mm__more ul {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.x-mm__more a {
		display: inline-flex;
		align-items: center;
		height: 36px;
		padding: 0 14px;
		border: 1px solid var(--dkln);
		border-radius: var(--radius-pill);
		font: 500 14px/1 var(--font-sans);
		color: var(--dkink);
		transition: border-color 150ms ease, color 150ms ease;
	}

	.x-mm__more a[aria-current] {
		border-color: rgba(91, 211, 148, 0.45);
	}

	/* Community: a divider, a mono label, then Facebook, YouTube and the forum
	   as neon-tinted buttons so they stand apart from the page chips. */
	.x-mm__social {
		grid-area: social;
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 8px;
		padding-top: 16px;
		border-top: 1px solid var(--dkln);
	}

	.x-mm__h {
		grid-column: 1 / -1;
		margin: 0 0 2px;
		font: 500 11px/1.4 var(--font-mono);
		letter-spacing: 0.08em;
		text-transform: uppercase;
		color: var(--dkmu);
	}

	.x-tabhd .x-mm__social a {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		height: 44px;
		padding: 0 8px;
		border: 1px solid rgba(91, 211, 148, 0.22);
		border-radius: 12px;
		background: rgba(91, 211, 148, 0.08);
		font: 600 14px/1 var(--font-sans);
		color: var(--dkink);
		white-space: nowrap;
		transition: background-color 150ms ease, border-color 150ms ease, transform 160ms var(--ease-out);
	}

	.x-mm__social svg {
		flex: none;
		width: 18px;
		height: 18px;
		color: var(--neon);
	}

	.x-tabhd .x-mm__social a:active {
		transform: scale(0.97);
	}

	.x-mm__end {
		grid-area: end;
		display: flex;
		gap: 8px;
	}

	.x-mm__acct {
		display: inline-flex;
		align-items: center;
		height: 48px;
		padding: 0 20px;
		border-radius: var(--radius-pill);
		background: var(--dk2);
		font: 500 15px/1 var(--font-sans);
		color: var(--dkink);
	}

	.x-tabhd .x-mm__end .cm-btn {
		flex: 1;
		height: 48px;
		justify-content: space-between;
		padding: 0 8px 0 20px;
		font-size: 15px;
	}

	.x-tabhd .x-mm__end .cm-btn__disc {
		display: inline-grid;
		margin-right: 0;
	}

	@media (hover: hover) and (pointer: fine) {
		.x-tabhd .cms-nav__toggle:hover,
		.x-tabhd .cms-nav__close:hover,
		.x-tabhd .cms-nav__panel .cms-nav__list a:hover,
		.x-mm__acct:hover {
			background: var(--dk3);
		}

		.x-tabhd .x-mm__social a:hover {
			border-color: rgba(91, 211, 148, 0.45);
			background: rgba(91, 211, 148, 0.14);
			color: var(--dkink);
		}

		.x-mm__more a:hover {
			border-color: var(--dkmu);
		}
	}

	@media (prefers-reduced-motion: no-preference) {
		/* Opacity set here too: the nav block's wide rules pin it to 1 from 768px */
		.x-tabhd .cms-nav__panel {
			opacity: 0;
			transform: translateY(-24px);
			transition: opacity 200ms ease, transform 260ms var(--ease-out), display 260ms allow-discrete, overlay 260ms allow-discrete;
		}

		.x-tabhd .cms-nav__panel:popover-open {
			opacity: 1;
			transform: none;
		}

		@starting-style {
			.x-tabhd .cms-nav__panel:popover-open {
				opacity: 0;
				transform: translateY(-24px);
			}
		}

		.x-tabhd .cms-nav__panel::backdrop {
			transition: opacity 200ms ease, display 260ms allow-discrete, overlay 260ms allow-discrete;
		}

		.x-tabhd .cms-nav__panel:not(:popover-open)::backdrop {
			opacity: 0;
		}

		@starting-style {
			.x-tabhd .cms-nav__panel:popover-open::backdrop {
				opacity: 0;
			}
		}
	}
}

/* Phones: the menu sheet carries the call to action, so the header drops its button. */
@media (max-width: 560px) {
	.x-tabhd .cm-header-tab__end .cm-btn {
		display: none;
	}

	/* The design pins the scrolled pill to 64px with !important */
	.x-tabhd .cm-header-tab__bar,
	.x-tabhd.is-scrolled .cm-header-tab__bar {
		height: 56px !important;
	}

	/* The hero window's address drops the domain */
	.x-window__host {
		display: none;
	}
}

/* Tablets: the sheet takes the right half of the screen. */
@media (min-width: 601px) and (max-width: 820px) {
	.x-tabhd .cms-nav__panel {
		inset: 0 0 0 auto;
		width: 50%;
		min-width: 360px;
		height: 100%;
		max-height: none;
		border: 0;
		border-left: 1px solid var(--dkln);
		border-radius: 28px 0 0 28px;
	}

	.x-tabhd .cms-nav__panel {
		grid-template-rows: auto auto auto auto 1fr;
	}

	.x-mm__end {
		align-self: end;
	}

	@media (prefers-reduced-motion: no-preference) {
		.x-tabhd .cms-nav__panel:not(:popover-open) {
			transform: translateX(32px);
		}

		@starting-style {
			.x-tabhd .cms-nav__panel:popover-open {
				transform: translateX(32px);
			}
		}
	}
}

/* Design links carry no underline; running text in post content keeps one. */
.x :where(.wp-block-post-content, .wp-block-comment-content) a:where(:not([class])) {
	color: var(--brand-text);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Buttons: the secondary button's short left inset is only for a leading play disc or icon chip.
   Without one it takes the button's own padding, so text sits evenly. Low specificity, so page rules still win. */
.cm-btn--secondary:where(:not(:has(> .cm-btn__play:first-child, > .cm-btn__doc:first-child))) {
	padding-left: 20px;
}

.cm-btn--secondary.cm-btn--sm:where(:not(:has(> .cm-btn__play:first-child, > .cm-btn__doc:first-child))),
.qs .cm-btn--secondary.cm-btn--sm.qs-plain {
	padding-left: 14px;
}

/* A stretched, centred button keeps its label in the middle and pins its arrow disc to the end,
   as the demo and contact forms do. Otherwise the disc's negative margin pulls the pair off centre. */
:is(.fq-rail__help, .af-est, .po-prod, .dd-try) .cm-btn:has(> .cm-btn__disc:last-child) {
	position: relative;
	padding-inline: 48px;
}

:is(.fq-rail__help, .af-est, .po-prod, .dd-try) .cm-btn--sm:has(> .cm-btn__disc:last-child) {
	padding-inline: 39px;
}

:is(.fq-rail__help, .af-est, .po-prod, .dd-try) .cm-btn > .cm-btn__disc:last-child {
	position: absolute;
	inset-block: 0;
	right: 6px;
	margin: auto 0;
}

:is(.fq-rail__help, .af-est, .po-prod, .dd-try) .cm-btn--sm > .cm-btn__disc:last-child {
	right: 5px;
}

@media (max-width: 640px) {
	/* Doc, doc category and legal heroes: two buttons sharing a row left the centred label lopsided beside its disc, so each takes the full width, as the Articles hero does. */
	:is(.dd-hero__acts, .lg-acts) .cm-btn {
		flex-basis: 100%;
	}

	:is(.dd-hero__acts, .dd-rel__foot nav, .lg-acts, .cl-alert__form) .cm-btn:has(> .cm-btn__disc:last-child) {
		position: relative;
		padding-inline: 48px;
	}

	:is(.dd-hero__acts, .dd-rel__foot nav, .lg-acts, .cl-alert__form) .cm-btn--sm:has(> .cm-btn__disc:last-child) {
		padding-inline: 39px;
	}

	:is(.dd-hero__acts, .dd-rel__foot nav, .lg-acts, .cl-alert__form) .cm-btn > .cm-btn__disc:last-child {
		position: absolute;
		inset-block: 0;
		right: 6px;
		margin: auto 0;
	}

	:is(.dd-hero__acts, .dd-rel__foot nav, .lg-acts, .cl-alert__form) .cm-btn--sm > .cm-btn__disc:last-child {
		right: 5px;
	}

	/* Features search: the label hides, so the lone disc gets the same inset on every side. */
	.fp-find .cm-btn {
		padding-inline: 5px;
	}

	.fp-find .cm-btn .cm-btn__disc {
		margin-right: 0;
	}
}

@media (max-width: 560px) {
	.au .ct-hero .x-actions .cm-btn:has(> .cm-btn__disc:last-child) {
		position: relative;
		padding-inline: 48px;
	}

	.au .ct-hero .x-actions .cm-btn > .cm-btn__disc:last-child {
		position: absolute;
		inset-block: 0;
		right: 6px;
		margin: auto 0;
	}
}

/* Docs search: a taller button, so the disc's end inset matches its top and bottom. */
.dx-search__field .cm-btn .cm-btn__disc {
	margin-right: -10px;
}

/* Features page: native stand-ins for the design's stateful buttons. */
.fp-shelf :is(.bp-grp, .fp-more),
.fp-seg label {
	position: relative;
	/* Keeps the visually hidden inputs inside scroll containers. */
}

.fp-shelf [hidden] {
	display: none !important;
}

/* Feature library: the checked tab takes the design's selected look (features-v2.css styles [aria-pressed]). */
.fx .fx-shelf .bp-grp:has(:checked) {
	background: #f1f3f2;
	border-color: #e3e7e4;
	box-shadow: none;
	font-weight: 600;
}

.fx .fx-shelf.is-search .bp-grp:has(:checked) {
	background: none;
	border-color: transparent;
	font-weight: 500;
}

@media (max-width: 1180px) {
	.fx .fx-shelf .bp-grp:has(:checked) {
		border-color: var(--ink);
	}

	.fx .fx-shelf.is-search .bp-grp:has(:checked) {
		border-color: var(--ln);
	}
}

.fp-shelf :is(.bp-grp, .fp-more):has(:focus-visible),
.fp-seg label:has(:focus-visible) {
	outline: 2px solid var(--gr);
	outline-offset: 2px;
}

/* Only the checked tab's bar and rows show; a search shows every tab's matches under one bar. */
.fp-pane,
.fx-tab {
	display: none;
}

.fp-shelf:has([name="fp-tab"][value="0"]:checked) :is(.fp-pane, .fx-tab)[data-tab="0"],
.fp-shelf:has([name="fp-tab"][value="1"]:checked) :is(.fp-pane, .fx-tab)[data-tab="1"],
.fp-shelf:has([name="fp-tab"][value="2"]:checked) :is(.fp-pane, .fx-tab)[data-tab="2"],
.fp-shelf:has([name="fp-tab"][value="3"]:checked) :is(.fp-pane, .fx-tab)[data-tab="3"],
.fp-shelf:has([name="fp-tab"][value="4"]:checked) :is(.fp-pane, .fx-tab)[data-tab="4"],
.fp-shelf:has([name="fp-tab"][value="5"]:checked) :is(.fp-pane, .fx-tab)[data-tab="5"],
.fp-shelf:has([name="fp-tab"][value="6"]:checked) :is(.fp-pane, .fx-tab)[data-tab="6"],
.fp-shelf:has([name="fp-tab"][value="7"]:checked) :is(.fp-pane, .fx-tab)[data-tab="7"],
.fp-shelf:has([name="fp-tab"][value="8"]:checked) :is(.fp-pane, .fx-tab)[data-tab="8"],
.fp-shelf:has([name="fp-tab"][value="9"]:checked) :is(.fp-pane, .fx-tab)[data-tab="9"],
.fp-shelf.is-search :is(.fp-pane--search, .fx-tab) {
	display: contents;
}

.fp-shelf.is-search .fp-pane:not(.fp-pane--search),
.fp-shelf:not(.is-search) .fx-group__h small,
.fp-shelf:not(.is-search) .fx-group:not(:has(.fp-more :checked)) .fx-rows > li:nth-child(n+7),
.fp-shelf.is-search .fp-more,
.fp-more:has(:checked) .fp-more__all,
.fp-more:not(:has(:checked)) .fp-more__less {
	display: none;
}

/* Feature card: the switch shows one label pair, the doc link one label, and a closed inline card hides. */
.fx-switch[aria-checked="true"] .fx-switch__off,
.fx-switch:not([aria-checked="true"]) .fx-switch__on,
.fx-card.has-doc .fx-doc0,
.fx-card:not(.has-doc) .fx-doc1 {
	display: none;
}

.fx-card__foot .cm-btn svg {
	flex: none;
}

.fp-seg label {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding: 0 14px;
	border-radius: 7px;
	font: 600 13px/1 var(--font-sans);
	color: var(--mu);
	cursor: pointer;
	transition: background-color 150ms ease, color 150ms ease;
}

.fp-seg label:hover {
	color: var(--ink);
}

.fp-seg label:has(:checked) {
	background: var(--ink);
	color: #ffffff;
}

.fp-view {
	display: contents;
}

.fp-admin:has([value="after"]:checked) .fp-view--before,
.fp-admin:has([value="before"]:checked) .fp-view--after {
	display: none;
}

/* Pricing page: the billing switch is a radio pair; [data-bill] marks text for one billing view. */
.pv-seg label {
	display: inline-flex;
	align-items: center;
	min-height: 42px;
	padding: 0 18px;
	border-radius: 999px;
	font: 600 14.5px/1 var(--font-sans);
	color: var(--mu);
	cursor: pointer;
	transition: background-color 180ms var(--ease-out), color 150ms ease, box-shadow 180ms ease;
}

.pv-seg label:hover {
	color: var(--ink);
}

.pv-seg label:has(:checked) {
	background: var(--ink);
	color: #ffffff;
	box-shadow: 0 1px 2px rgba(13, 20, 17, 0.2), 0 6px 14px -8px rgba(13, 20, 17, 0.5);
}

.pv-seg label:has(:focus-visible) {
	outline: 2px solid var(--ink);
	outline-offset: 2px;
}

@media (max-width: 760px) {
	.pv-seg label {
		flex: 1;
		justify-content: center;
		padding: 0 10px;
	}
}

/* Value spans the script fills ([data-k]) must not pick up the design's span rules. */
.pv-opt__price strong span,
.pp-calc__sum strong span,
.x .pv-dock__t [data-k],
.x .pv-dock__t [data-bill] {
	display: inline;
	font: inherit;
	color: inherit;
}

.pp-legend__l span {
	display: inline;
}

.pv:has([name="pv-bill"][value="y"]:checked) [data-bill="l"],
.pv:not(:has([name="pv-bill"][value="y"]:checked)) [data-bill="y"],
.pv .pp-acct__empty[hidden],
.pv .pp-acct__reset[hidden] {
	display: none !important;
}

/* Demo page: the script toggles [hidden] on the form, its confirmation and the role views. */
.dm [hidden] {
	display: none !important;
}

/* Articles archive (page-articles.html): a featured image fills the cover plate in place of the design's drawn window. */
.ar .ar-cover--img {
	padding: 0;
	background: var(--sk);
}

.ar .ar-cover--img::before,
.ar .ar-cover--img::after {
	content: none;
}

.ar .ar-cover--img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ar .ar-feature .ar-cover--img {
	height: 100%;
	min-height: 320px;
}

/* The drawn cover's rows list the article's first sections, numbered. */
.ar .ar-row__ic {
	font: 600 10px/1 var(--font-mono);
}

/* Byline avatar and the grid foot's author link, as the design styles them inline. */
.ar .ar-meta>span>img {
	display: inline-block;
	margin-right: 8px;
	vertical-align: middle;
}

.ar .ar-gridfoot .cm-link {
	font-weight: 600;
	color: var(--brand-text);
}

/* With the last row full, the next-guide sign-up runs under the grid, as it does on narrower screens. */
@media (min-width: 721px) {
	.ar .ar-next--strip {
		grid-column: 1 / -1;
		grid-template-columns: 48px minmax(0, 1fr) minmax(0, 360px);
		align-items: center;
		column-gap: 20px;
		padding: 24px;
	}
}

/* forms.js needs the sent line inside the form, so it and the error take their own row under the field. */
.ar .ar-next__form {
	flex-wrap: wrap;
}

.ar .ar-next__form> :is(.ar-next__status, .cms-form-err) {
	flex-basis: 100%;
	padding-inline: 6px;
}

.ar .ar-pager {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 18px;
}

.ar .ar-pager .cm-link {
	font-weight: 600;
	color: var(--brand-text);
}

/* Demo test list: the card is too narrow for the design's 56px each side, so the label ran under
   the arrow disc. It takes a short start inset and keeps the disc's room at the end (36px wide,
   8px in, 8px gap), and only wraps if the card gets narrower still. */
.x .dm-tests__sum .cm-btn {
	height: auto;
	min-height: 52px;
	padding: 8px 52px 8px 20px;
	white-space: normal;
	text-align: center;
	line-height: 1.25;
}

/* Demo hero: the dashboard sits on the next section with no dark band below it. */
.x .dm-stage {
	padding-bottom: 0;
}

/* Bricks Builder elements page: the script toggles [hidden] on panes and the cart banner. */
.b2 [hidden] {
	display: none !important;
}

/* Black Friday page: the dock keeps the design's overlap. */
.x .sv-after>.sv-dock {
	margin-top: -60px;
}

/* Doc category: the filter toggles [hidden] on rows, groups, jump links and the empty state. */
.dg [hidden] {
	display: none !important;
}

/* Doc category: rows in categories that are not comparisons show the category's icon. */
.x .dg-k--cat {
	background: var(--t);
	color: var(--ti);
}

/* Doc category: the "Recently updated" glance, for categories that are not comparisons. */
.x .dg-mx--recent thead th + th {
	width: 72px;
}

.x .dg-mx--recent tbody th a {
	display: block;
	font: 600 14.5px/20px var(--font-sans);
	color: var(--ink);
	text-decoration: none;
}

.x .dg-mx--recent tbody th a:hover {
	color: var(--gr-dk);
}

.x .dg-mx--recent td {
	padding: 0 10px 0 4px;
	font: 500 12px/16px var(--font-mono);
	color: var(--sub);
	white-space: nowrap;
}

/* Ideas page: the script toggles [hidden] on cards, notes and the empty state. */
.ib [hidden] {
	display: none !important;
}

/* Ideas page: the shipped ledger expands with a native checkbox instead of a script. */
.ib-ledgerwrap:has(.ib-more :checked) .ib-lrow--more {
	display: grid;
}

.ib-more:has(:checked)>span:first-of-type,
.ib-more:not(:has(:checked))>span:last-of-type {
	display: none;
}

.ib-more:has(:checked) svg {
	transform: rotate(180deg);
}

.ib-more:has(:focus-visible) {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

/* AI page: the script toggles [hidden] on panes, demo states and log rows; panes keep the parent grid. */
.ai [hidden] {
	display: none !important;
}

.cms-pane {
	display: contents;
}

/* AI page: approvals and the Bricks builder keep their state in [data-st]; buttons with data-s set it. */
.ai [data-st=""] :is(.ai-appr__res, .cms-s-clear),
.ai [data-st]:not([data-st=""]) :is(.ai-appr__btns, .ai-appr__note, .cms-s-ask),
.ai [data-st]:not([data-st="yes"]) .cms-s-yes,
.ai [data-st]:not([data-st="no"]) .cms-s-no,
.ai [data-st="busy"] .cms-s-idle,
.ai [data-st]:not([data-st="busy"]) .cms-s-busy {
	display: none;
}

.ai [data-st]:not([data-st=""]) .ai-appr__top small {
	background: var(--dash-green-50);
	color: var(--dash-green-700);
}

.ai [data-st="yes"] .ai-appr__card {
	border-color: var(--dash-green-50);
	background: var(--dash-green-25);
}

.ai [data-st="no"] .ai-appr__card {
	border-color: var(--dash-border);
	background: var(--dash-bg);
}

.ai [data-st="busy"] .ai-bgo {
	opacity: 0.6;
	cursor: progress;
	pointer-events: none;
}

/* Contact page: topic hints follow the checked radio; the script toggles [hidden] on the form and its confirmation. */
.ct .ct-form:not(:has([value="Bug report"]:checked)) #bug-hint,
.ct .ct-form:not(:has([value="Pre-sale"]:checked)) .ct-hint--ok,
.ct .ct-form [hidden] {
	display: none !important;
}

/* Affiliate page: affiliate.css keeps the steps at 4 columns below 960px; collapse them like the base .x-how. */
@media (max-width: 960px) {
	.af .x-how {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Testimonials page: the script only sets [hidden] on cards and the form, the pressed chips and the sort; the rest follows via :has(). */
.ts [hidden],
.ts .ts-grp:not(:has(.ts-card:not([hidden]))),
.ts #reviews:has(.ts-card:not([hidden])) .ib-empty,
.ts #reviews:not(:has([aria-pressed="true"]:not(.ib-filter--all), #board-q:not(:placeholder-shown), option[value="group"]:not(:checked))) .ib-reset,
.ts #reviews:has(.ts-card[hidden], option[value="group"]:not(:checked)) .ts-grp__label small,
.ts .ts-form:not(:has([name="rating"]:is([value="1"], [value="2"], [value="3"]):checked)) .ts-crit,
.ts .ts-more:not(:has(:checked)) span+span,
.ts .ts-more:has(:checked) span:first-of-type,
.ts #reviews:has(#board-q:not(:placeholder-shown)) .ts-more {
	display: none !important;
}

/* Sorted views gather every card in the first group and rename it. */
.ts #reviews:has(option[value="short"]:checked) {
	--cms-sort: "Shortest first";
}

.ts #reviews:has(option[value="long"]:checked) {
	--cms-sort: "Longest first";
}

.ts #reviews:has(option[value="group"]:not(:checked)) .ib-tools+.ts-grp .ts-grp__label {
	gap: 6px;
	font-size: 0;
}

.ts #reviews:has(option[value="group"]:not(:checked)) .ib-tools+.ts-grp .ts-grp__label::before {
	content: var(--cms-sort);
	font-size: 15px;
}

/* Long reviews unfold with a checkbox instead of a script. */
.ts .ts-more {
	display: inline-flex;
	align-items: center;
}

.ts .ts-more:has(:focus-visible) {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

/* Searching unfolds every review, as in the design. */
.ts .ts-card:has(.ts-more :checked) blockquote,
.ts #reviews:has(#board-q:not(:placeholder-shown)) .ts-card blockquote {
	display: block;
	overflow: visible;
}

/* Stars light up to the checked one; the words follow it. */
.ts .ts-star:has(~ .ts-star :checked) svg,
.ts .ts-star:has(:checked) svg {
	fill: var(--ts-star);
	stroke: var(--ts-star-ln);
}

.ts .ts-stars:has([value="1"]:checked) {
	--cms-say: "1 of 5 stars";
}

.ts .ts-stars:has([value="2"]:checked) {
	--cms-say: "2 of 5 stars";
}

.ts .ts-stars:has([value="3"]:checked) {
	--cms-say: "3 of 5 stars";
}

.ts .ts-stars:has([value="4"]:checked) {
	--cms-say: "4 of 5 stars";
}

.ts .ts-stars:has([value="5"]:checked) {
	--cms-say: "5 of 5 stars";
}

.ts .ts-stars:has(:checked) .ts-stars__say {
	font-size: 0;
}

.ts .ts-stars:has(:checked) .ts-stars__say::after {
	content: var(--cms-say);
	font-size: 14px;
}

/* Changelog page: the script sets [hidden] on release rows, year groups, the clear button, the empty state and "show all". */
.cl .cl-log [hidden] {
	display: none !important;
}

/* Docs page: the script sets [hidden] on search hits, the results panel, the clear button, sandbox panes and tab counts. */
.dx [hidden] {
	display: none !important;
}

/* Docs hero "Or browse by admin tab": on phones the design scrolls the tabs sideways; they wrap and centre like the Popular row instead. */
@media (max-width: 640px) {
	.x .dx-tabs ul {
		flex-wrap: wrap;
		justify-content: center;
		overflow: visible;
		margin-inline: 0;
		padding: 0;
	}

	.x .dx-tabs__label {
		text-align: center;
	}
}

/* A grey section right above the closer, where the closer sits on the same grey (Contact, Changelog,
   Bricks and the pages that borrow their styles, like docs): no bottom line, or it cuts across the
   top of the closer's card. */
:is(.ct, .cl, .b2) .wy-muted:has(+ .x-cta) {
	border-bottom: 0;
}

/* FAQ page: the script sets [hidden] on answers, topic groups, search results and clear buttons. */
.fq [hidden] {
	display: none !important;
}

/* FAQ finder: the design's grid is for five topics. With another number (the FAQ Categories
   decide), one column per topic up to five, then two columns, then one on phones. */
.fq-topics--fit {
	grid-template-columns: repeat(var(--n), minmax(0, 1fr));
}

@media (max-width: 1180px) {
	.fq-topics--fit {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.fq-topics--fit .fq-topic:nth-child(n) {
		grid-column: auto;
	}
}

@media (max-width: 760px) {
	.fq-topics--fit {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Quick WP Setup hero: the setup guide link under the buttons, entering with them. */
.qs-hero .qs-read {
	margin: 16px 0 0;
	font-size: 15px;
	line-height: 22px;
	text-align: center;
	color: var(--mu);
}

.qs-hero .qs-read .x-link {
	color: var(--ink);
}

@media (prefers-reduced-motion: no-preference) {
	.qs-hero .qs-read {
		animation: x-in 640ms var(--ease-out) 245ms both;
	}
}

@media (prefers-reduced-motion: reduce) {
	.qs-hero .qs-read {
		animation: x-fade 400ms ease both;
	}
}

/* Quick WP Setup hero: the recording fills the dark pane edge to edge, letterboxed when the pane is taller. */
.qs .qs-rec {
	padding: 0;
}

.qs .qs-rec video {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	background: var(--dk);
}

@media (max-width: 860px) {
	.qs .qs-rec {
		min-height: 0;
	}
}

/* Quick WP Setup page: the scripts set [hidden] and the wizard's data-phase (idle, none, run, done), which picks the [data-show] words and panes; a wizard pane wraps its section without a box; checkbox-only states switch with :has(). */
.qs [hidden],
.qs .qs-wiz[data-phase="idle"] [data-show]:not([data-show~="idle"]),
.qs .qs-wiz[data-phase="none"] [data-show]:not([data-show~="none"]),
.qs .qs-wiz[data-phase="run"] [data-show]:not([data-show~="run"]),
.qs .qs-wiz[data-phase="done"] [data-show]:not([data-show~="done"]) {
	display: none !important;
}

.qs .qs-pane>[data-sec] {
	display: contents;
}

.qs .qs-pane:not(.is-off) .qs-state:not(.is-on),
.qs .qs-pane.is-off .qs-state.is-on,
.qs .qs-swp:has(input:checked) .qs-tag:not(.qs-tag--on),
.qs .qs-swp:has(input:not(:checked)) .qs-tag--on,
.qs .qs-acc .x-tgrow:has(input:checked) .qs-tag--on,
.qs .qs-acc .x-tgrow:has(input:not(:checked)) .qs-tag--warn,
.qs .qs-ga:has([value="min"]:checked) [data-ga="gtag"],
.qs .qs-ga:has([value="gtag"]:checked) [data-ga="min"] {
	display: none;
}

/* Doc template: core blocks around the design's doc layout. Block gaps stay on inside main.dd (see the reset at the top) so post content keeps a rhythm; design containers drop them. */
.dd [hidden] {
	display: none;
}

.dd :is(.dd-hero, .dd-bar, .dd-hero__grid, .dd-meta, .dx-upd, .dd-body, .dd-grid, .dd-aside)>*,
.dd .wp-block-post-content> :first-child {
	margin-block-start: 0;
}

/* One column unless the hero has a right side (a doc's featured image). */
.dd .dd-hero__grid:not(:has(> .dd-glance)) {
	grid-template-columns: minmax(0, 1fr);
}

.dd .dd-crumbs li:not(:last-child)::after {
	content: none;
}

.dd .dd-crumbs li:first-child a::before {
	content: "";
	width: 15px;
	height: 15px;
	background: var(--gr);
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20V3H6.5A2.5 2.5 0 0 0 4 5.5z'/%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 0 6.5 22H20v-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Last updated: the modified date renders only after an edit, else the publish date stands in. */
.dd .dx-upd .wp-block-post-date+.dd-pub {
	display: none;
}

/* The post-date block brings its own theme.json size; take the label's. */
.dd .dx-upd .wp-block-post-date {
	font: inherit;
}

.dd .dd-lead p,
.dd .dx-upd p {
	margin: 0;
}

.dd .dd-doc>.dd-tocm+.wp-block-post-content>.dd-glance:first-child {
	margin-bottom: 32px;
}

/* Ordinary content in a doc reads like the design's sections. */
.dd .wp-block-post-content> :is(p, ul, ol),
.dd .dd-sec> :is(ul, ol).wp-block-list {
	font-size: 17px;
	line-height: 29px;
	color: var(--body);
}

.dd .wp-block-post-content> :is(ul, ol),
.dd .dd-sec> :is(ul, ol).wp-block-list {
	padding-left: 1.3em;
	list-style: revert;
}

.dd .wp-block-post-content>h2 {
	margin-top: 72px;
}

.dd .wp-block-post-content h3.wp-block-heading {
	margin-top: 40px;
	font: 600 22px/28px var(--font-display);
	letter-spacing: -.016em;
	color: var(--ink);
}

.dd .wp-block-post-content :is(p, li) code {
	padding: 2px 6px;
	border-radius: 6px;
	background: var(--sk);
	border: 1px solid var(--ln);
	font: 500 .88em/1 var(--font-mono);
}

.dd .wp-block-post-content .wp-block-code {
	padding: 18px 20px;
	border-radius: 16px;
	background: var(--sk);
	border: 1px solid var(--ln);
	font: 500 14px/22px var(--font-mono);
	overflow-x: auto;
}

.dd .wp-block-post-content .wp-block-image img {
	border-radius: 16px;
	border: 1px solid var(--ln);
}

.dd .wp-block-post-content .wp-block-image figcaption {
	margin-top: 10px;
	font-size: 13.5px;
	line-height: 20px;
	color: var(--sub);
}

/* Table block: group rows are one cell spanning the table. */
.dd .wp-block-table:not(.dd-tbl) {
	overflow-x: auto;
}

.dd .wp-block-table :is(th, td) {
	border: 0;
}

.dd .wp-block-table:not(.dd-tbl) :is(th, td) {
	padding: 12px 16px;
	border-top: 1px solid var(--ln);
	text-align: left;
}

.dd .wp-block-table thead {
	border: 0;
}

.dd .dd-tbl td[colspan] {
	width: auto;
	padding: 11px 20px;
	background: var(--sk);
	border-bottom: 1px solid var(--ln);
	font: 600 14.5px/20px var(--font-sans);
	color: var(--ink);
	text-align: left;
}

.dd .dd-tbl td[colspan] small {
	margin-left: 10px;
	font: 500 12px/16px var(--font-mono);
	color: var(--sub);
}

.dd .dd-tbl tr:has(> td[colspan])+tr td {
	border-top: 0;
}

/* Post "Try" card: the review line sits under the stars, and the stars keep 4px apart
   (.po-try__proof span would give them its 8px). */
.po-try__proof .po-try__rating {
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
}

.po-try__proof .po-try__rating > span:last-child {
	display: block;
}

.po-try__proof .x-stars {
	gap: 4px;
}

/* The design lets headings on its dark boxes inherit their light ink; Core Framework's h1-h6 colour would make them dark on dark. */
.dd .dd-try h2,
.dx-move h3,
.dx-try .x-h2,
.po-try .x-h2 {
	color: var(--dkink);
}

/* The same on the other dark boxes the design draws: their headings inherit the box's own light ink. */
.pv-same__lead h3,
.pv-opt--life h3,
.x-tile--bricks h3,
.cm-dualcard--night .sv-cardname,
.b2-calc__lead h3,
.b2-kit__c--big h3,
.lg-ask h2,
.qs-chores__copy .x-h2 {
	color: inherit;
}

/* Single doc (docs post type): the featured image takes the design's At a glance frame. */
.dd .dd-media {
	margin: 0;
}

.dd .dd-media img {
	display: block;
	width: 100%;
	height: auto;
}

.dd .dd-crumbs [aria-current] {
	display: inline-block;
	max-width: 36ch;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Classic doc and article HTML in the design's sections (inc/docs.php and inc/posts.php wrap each h2 and what follows). */
.dd .dd-sum {
	margin-bottom: 48px;
}

:is(.dd, .po) .dd-sec--flow {
	margin-top: 40px;
}

:is(.dd, .po) .dd-sec--flow> :not(.dd-h2, p) {
	margin-top: 18px;
}

.dd .dd-sec--flow>.dd-steps {
	margin-top: 30px;
}

:is(.dd, .po) .dd-sec--flow> :is(ul, ol):not(.dd-steps, .lg-list, .po-list) {
	padding-left: 1.3em;
	font-size: 17px;
	line-height: 29px;
	color: var(--body);
	list-style: revert;
}

:is(.dd, .po) .dd-sec--flow :is(ul, ol):not(.dd-steps, .lg-list, .po-list)>li+li {
	margin-top: 6px;
}

/* A step's body: the design's 18px before a screenshot, and lists sized like the step's text. */
.dd .dd-step__body> :not(.dd-step__k, h3, p),
.dd .dd-step__body>p:has(> img) {
	margin-top: 18px;
}

.dd .dd-step__body> :is(ul, ol) {
	padding-left: 1.3em;
	font-size: 16.5px;
	line-height: 27px;
	color: var(--body);
	list-style: disc;
}

.dd .dd-step__body>ol {
	list-style: decimal;
}

/* :not(.dd-h2) lifts it over the 18px rule above. */
.dd .dd-sec--flow>h3:not(.dd-h2) {
	margin-top: 32px;
	font: 600 22px/28px var(--font-display);
	letter-spacing: -.016em;
	color: var(--ink);
}

:is(.dd, .po) .dd-sec--flow>h3+p {
	margin-top: 10px;
}

.dd .dd-sec--flow :is(p, li, td) a:not([class]) {
	font-weight: 600;
	color: var(--ink);
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 4px;
	text-decoration-color: var(--ln2);
}

.dd .dd-sec--flow td code {
	padding: 2px 6px;
	border-radius: 6px;
	background: var(--sk);
	border: 1px solid var(--ln);
	font: 500 .88em/1 var(--font-mono);
}

.dd .dd-sec--flow pre {
	padding: 18px 20px;
	border-radius: 16px;
	background: var(--sk);
	border: 1px solid var(--ln);
	font: 500 14px/22px var(--font-mono);
	color: var(--ink);
	overflow-x: auto;
}

.dd .dd-sec--flow img {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 16px;
	border: 1px solid var(--ln);
	box-shadow: 0 1px 2px rgba(13, 20, 17, .05), 0 24px 48px -30px rgba(13, 20, 17, .35);
}

.dd .dd-sec--flow .wp-caption {
	max-width: 100%;
}

.dd .dd-sec--flow .wp-caption-text {
	margin-top: 10px;
	font-size: 13.5px;
	line-height: 20px;
	color: var(--sub);
}

.dd .dd-sec--flow blockquote {
	padding: 16px 20px;
	border-left: 3px solid var(--gr);
	border-radius: 0 14px 14px 0;
	background: var(--sk);
	font-size: 16.5px;
	line-height: 27px;
	color: var(--body);
}

/* Any number of columns: no fixed last column like the design's 3 column settings table. */
.dd .dd-tbl--flow {
	overflow-x: auto;
}

/* 32px above and below a table in the text, past the 18px and 22px the flow and the design give it. */
:is(.dd, .po) .dd-tbl.dd-tbl--flow {
	margin-block: 32px;
}

.dd .dd-tbl--flow :is(td, th):last-child {
	width: auto;
	text-align: left;
}

.dd .dd-tbl--flow td:first-child {
	width: auto;
	min-width: 140px;
}

/* On phones the design stacks a row as name, then description, with the last cell (its default
   chip) in the top right corner. A text table's last cell is a description too, so pinning it
   there squeezed the name to nothing and the two overlapped: every cell stacks instead. */
@media (max-width: 640px) {
	.dd .dd-tbl--flow tr {
		grid-template-columns: minmax(0, 1fr);
	}

	.dd .dd-tbl--flow td {
		grid-column: 1;
		grid-row: auto;
		min-width: 0;
	}

	.dd .dd-tbl--flow td:not(:first-child) {
		font-size: 14.5px;
		line-height: 22px;
	}
}

/* Bold in a table is the design's 600, not the browser's bolder (700, or 900 in the 600 first column). */
.dd .dd-tbl--flow :is(strong, b) {
	font-weight: 600;
	color: var(--ink);
}

/* FAQ and Troubleshooting answers are free text, not the design's cause and fix pairs. */
.dd .dd-fix__b> :is(p, ul, ol) {
	font-size: 15.5px;
	line-height: 25px;
	color: var(--body);
}

.dd .dd-fix__b> :is(ul, ol) {
	padding-left: 1.3em;
	list-style: revert;
}

.dd .dd-fix--faq summary>i,
.dd .dd-fix--faq details[open] summary>i {
	background: var(--sk) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230D1411' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9.5 9.2a2.6 2.6 0 0 1 5 .9c0 1.8-2.5 2.4-2.5 3.9M12 17h.01'/%3E%3C/svg%3E") center / 15px no-repeat;
	box-shadow: inset 0 0 0 1px var(--ln);
}

.dd .dd-fix--faq details[open] summary>i {
	background-color: var(--mark);
	box-shadow: none;
}

/* Changelog entry template: core blocks around the ChangelogSingle layout. Block gaps stay on inside main.cs (see the reset at the top) so ordinary post content keeps a rhythm; design containers drop them. */
.cs [hidden] {
	display: none !important;
}

.cs :is(.cs-hero, .cs-hero__grid, .cs-hero__copy, .cs-meta, .cs-doc, .cs-doc__grid, .cs-article, .cs-rail, .cs-sec, .cs-sec__head, .cs-note, .cs-hl, .cs-hl__in, .cs-hl__body, .cs-minis, .wp-block-quote)>*,
.cs .wp-block-post-content> :first-child {
	margin-block: 0;
}

/* On a page, the banner and heads-up live in the post content (version facts), so the hero is one column. A release (single-changelog) keeps the design's two columns for its image or banner. */
.cs .cs-hero__grid:not(:has(> .cs-banner, > .cs-shot)) {
	grid-template-columns: minmax(0, 1fr);
}

/* A release's featured image stands where the design draws its banner. */
.cs .cs-shot {
	margin: 0;
	border-radius: 26px;
	border: 1px solid var(--ln);
	box-shadow: var(--shadow-lg);
	overflow: hidden;
}

.cs .cs-shot img {
	display: block;
	width: 100%;
	height: auto;
}

.cs .cs-meta {
	column-gap: .6em;
}

.cs .cs-meta :is(p, time) {
	margin: 0;
	font: 500 13px/1 var(--font-mono);
	color: var(--sub);
	font-variant-numeric: tabular-nums;
}

.cs .cs-hero .x-lead p {
	margin: 0;
}

.cs .cs-crumbs li:not(:last-child)::after {
	content: none;
}

.cs .cs-crumbs li:first-child a::before {
	content: "";
	width: 15px;
	height: 15px;
	background: var(--gr);
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 17l6-6 4 4 8-8'/%3E%3Cpath d='M14 7h7v7'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* AgentedSEO breadcrumbs: the plugin's "/" separator replaces the theme's chevron and icon. */
:is(.cs-crumbs, .dd-crumbs, .po-crumbs) .agentedseo-breadcrumbs li:first-child a::before,
:is(.cs-crumbs, .dd-crumbs, .po-crumbs) .agentedseo-breadcrumbs li+li::before {
	content: none;
}

/* The plugin prints display: inline on its ol and li as style attributes, so only !important restores the flex row. */
:is(.cs-crumbs, .dd-crumbs, .po-crumbs) .agentedseo-breadcrumbs ol {
	display: flex !important;
}

/* The links' 9px hover padding would indent the trail; pull it back to the content edge. */
.dd-crumbs .agentedseo-breadcrumbs {
	margin-left: -9px;
}

:is(.cs-crumbs, .dd-crumbs, .po-crumbs) .agentedseo-breadcrumbs li {
	display: inline-flex !important;
	align-items: center;
	gap: 0;
}

:is(.cs-crumbs, .dd-crumbs, .po-crumbs) .agentedseo-breadcrumbs__sep {
	padding: 0 2px;
	color: var(--ln2);
}

/* Post content: design sections sit 48px apart like the article grid; the highlight cards stack 16px apart under their label. */
.cs .wp-block-post-content> :is(section, nav, .cs-glance, .cs-minis, .cs-divider, .cs-toc-m):not(:first-child) {
	margin-block-start: 48px;
}

.cs .wp-block-post-content> :is(.cs-divider, .cs-hl)+ :is(.cs-hl, .cs-minis) {
	margin-block-start: 16px;
}

.cs .cs-glance {
	display: grid;
	gap: 20px;
	justify-items: start;
}

.cs .cs-glance .cs-banner {
	width: 100%;
}

.cs .cs-note .wp-block-quote {
	padding: 0;
	border: 0;
}

.cs .cs-note .wp-block-quote p {
	margin: 0;
}

/* A release area's paragraphs after its points read like the design's card footer. */
.cs .cs-hl__more {
	display: grid;
	gap: 10px;
	padding-top: 16px;
	border-top: 1px dashed var(--ln2);
	font-size: 14.5px;
	line-height: 22px;
	color: var(--mu);
}

.cs .cs-hl__more> * {
	margin: 0;
}

/* Headings in a release area's text are small subheads, not page headings. */
.cs .cs-hl__more :is(h2, h3, h4) {
	margin-top: 8px;
	font: 600 15.5px/22px var(--font-sans);
	letter-spacing: 0;
	color: var(--ink);
}

.cs .cs-hl__more :is(strong, b) {
	font-weight: 600;
	color: var(--ink);
}

.cs .cs-hl__more li+li {
	margin-top: 6px;
}

.cs .cs-hl__more :is(ul, ol) {
	padding-left: 1.3em;
	list-style: revert;
}

.cs .cs-hl__more a[href] {
	color: var(--gr-dk);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.cs .cs-hl--mini .cs-hl__more {
	margin-top: auto;
}

/* Credits the field writes as prose rather than a list of names. */
.cs .cs-thanks__prose {
	display: grid;
	gap: 12px;
	max-width: 760px;
	font-size: 17px;
	line-height: 28px;
	color: var(--dkmu);
}

.cs .cs-thanks__prose :is(p, div, ul) {
	margin: 0;
}

.cs .cs-thanks__prose strong {
	color: var(--dkink);
}

/* Without the script the credit wall stays in the article column. */
.cs .cs-article .cs-thanks {
	padding: 48px 0;
	border-radius: 22px;
}

/* Ordinary content in a release reads like the design's sections. */
.cs .wp-block-post-content> :is(p, ul, ol) {
	font-size: 17px;
	line-height: 29px;
	color: var(--body);
}

.cs .wp-block-post-content> :is(ul, ol) {
	padding-left: 1.3em;
	list-style: revert;
}

.cs .wp-block-post-content>h2 {
	margin-top: 72px;
	font: 600 34px/1.1 var(--font-display);
	letter-spacing: -.03em;
	color: var(--ink);
}

.cs .wp-block-post-content>h3 {
	margin-top: 40px;
	font: 600 22px/28px var(--font-display);
	letter-spacing: -.016em;
	color: var(--ink);
}

.cs .wp-block-post-content :is(p, li) code {
	padding: 2px 6px;
	border-radius: 6px;
	background: var(--sk);
	border: 1px solid var(--ln);
	font: 500 .88em/1 var(--font-mono);
}

/* "Tested up to" versions are plain text on their pill, not inline code chips. */
.cs .wp-block-post-content .cl-tested code {
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	font: 600 14px/18px var(--font-mono);
}

.cs .wp-block-post-content .wp-block-image img {
	border-radius: 16px;
	border: 1px solid var(--ln);
}

/* Blog post (single.html): core blocks around the Post layout. Block gaps stay on inside main.po (see the reset at the top) so post content keeps a rhythm; design containers drop them. */
.po [hidden] {
	display: none !important;
}

.po :is(.po-hero, .po-hero__grid, .po-meta, .po-author, .po-facts, .po-fact, .po-body, .dd-grid, .dd-aside, .dd-author, .po-end, .po-more, .po-post, .po-post__t, .x-faq__list, .wp-block-details)>*,
.po .wp-block-post-content> :first-child {
	margin-block: 0;
}

/* Without quick picks in the content the hero is one column. */
.po .po-hero__grid:not(:has(> .po-hero__side, > .po-hero__media)) {
	grid-template-columns: minmax(0, 1fr);
}

/* The featured image takes the design's right column, framed like a doc's hero image. Quick picks from the post content take that column instead. */
.po .po-hero__media {
	align-self: center;
	margin: 0;
	border-radius: 22px;
	border: 1px solid var(--ln);
	box-shadow: var(--shadow);
	overflow: hidden;
}

.po .po-hero__media img {
	display: block;
	width: 100%;
	height: auto;
}

.po .po-hero__grid:has(> .po-hero__side)>.po-hero__media {
	display: none;
}

.po .po-crumbs li:not(:last-child)::after {
	content: none;
}

.po .po-author .wp-block-avatar {
	display: flex;
}

.po .po-fact p {
	margin: 0;
}

.po .po-fact :is(.wp-block-post-date, .wp-block-post-time-to-read) {
	font-weight: 600;
	color: var(--ink);
}

.po .po-fact--upd .wp-block-post-date {
	color: var(--gr-dk);
}

/* Updated shows only when the post was edited after publishing. */
.po .po-fact--upd:not(:has(.wp-block-post-date)) {
	display: none;
}

.po .po-excerpt p {
	margin: 0;
}

.po .po-sum+.dd-tocm+*,
.po .wp-block-post-content>.po-sum+* {
	margin-top: 48px;
}

/* Try card brand row: the Classic Monks wordmark in place of the design's 34px mark. */
.po-try__brand {
	row-gap: 12px;
}

.po-try__brand img {
	width: 180px;
	height: auto;
}

/* Try card brand row (articles and the Articles archive): on phones the label leaves the logo's line for its own, under it. */
@media (max-width: 640px) {
	.po-try__brand {
		flex-wrap: wrap;
	}

	.po-try__brand .x-label {
		flex-basis: 100%;
		margin-left: 0;
	}
}

/* The phone "On this page" dropdown (articles, docs, legal pages) gets room before the text below it; the design gives it none. */
.dd-doc>.dd-tocm {
	margin-bottom: 32px;
}

.po .dd-author__k {
	margin: 0;
}

.po .dd-author .wp-block-avatar img {
	width: 88px;
	height: 88px;
	border-radius: 20px;
	object-fit: cover;
}

.po .dd-author__n a {
	color: inherit;
	text-decoration: none;
}

@media (max-width: 640px) {
	.po .dd-author .wp-block-avatar img {
		width: 64px;
		height: 64px;
		border-radius: 16px;
	}
}

.po .dd-author .wp-block-post-author-biography {
	margin-top: 10px;
}

/* An article's sections take the docs' spacing (rules above); the section carries the gap the design put above each h2,
   and h3s keep the article's type at the docs' 32px. */
.po .dd-sec--flow>.po-h2 {
	margin-top: 0;
}

.po .dd-sec--flow>h3:not(.dd-h2) {
	margin-top: 32px;
	font: 600 20px/28px var(--font-sans);
	letter-spacing: -.012em;
	color: var(--ink);
}

/* Numbered lists in an article's text keep their numbers (the design's bullets are po-list). */
.po .po-prose>ol {
	padding-left: 1.3em;
	list-style: decimal;
}

.po .po-prose>ol>li+li {
	margin-top: 8px;
}

/* A paragraph holding only an image (inc/posts.php) is framed like the design's screenshots. */
.po .po-img {
	margin-inline: 0;
}

.po .po-img img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 16px;
	border: 1px solid var(--ln);
}

/* Keep reading: the block gap reset above zeroes the design's 20px between the heading row and the cards. */
.po .po-more>.po-more__head {
	margin-bottom: 20px;
}

/* Keep reading: the title link covers the card. */
.po .po-post {
	position: relative;
}

.po .po-post__t :is(.wp-block-post-terms, .wp-block-post-terms a) {
	font: 500 11.5px/16px var(--font-mono);
	color: var(--sub);
}

.po .po-post__t .wp-block-post-terms a {
	position: relative;
	z-index: 1;
}

.po .po-post__t h3 {
	font-size: 16.5px;
	line-height: 24px;
	font-weight: 600;
	color: var(--ink);
	text-wrap: pretty;
}

.po .po-post__t h3 a {
	color: inherit;
	text-decoration: none;
}

.po .po-post__t h3 a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

/* The cards sit in a grid, so the post template's divider between list items does not apply. */
.po .po-posts li {
	margin: 0;
	padding: 0;
	border: 0;
}

.po .po-end:not(:has(.po-post)) {
	display: none;
}

/* Author archive (author.html): core blocks inside the Author design. The block gap reset zeroes margins of direct children of groups, so design margins come back here. */
.au .au-hero__copy>.au-h1 {
	margin-top: 22px;
}

.au .au-h1>.au-role {
	margin-top: 16px;
}

.au .au-hero__copy>.au-hint {
	margin-top: 14px;
}

.au .au-hero__copy>.au-follow {
	margin-top: 28px;
}

.au .au-hero .x-wrap>.ct-promise {
	margin-top: 88px;
}

.au .au-bio>.au-bio__text {
	margin-top: 12px;
}

.au .au-bio__text:not(:has(p)) {
	display: none;
}

.au .au-avatar img {
	display: block;
	border-radius: 16px;
}

.au #writing .x-wrap>.x-head {
	margin-bottom: 56px;
}

.au #writing .x-wrap>.au-jump {
	margin: -24px 0 40px;
}

.au .au-group>.au-group__head {
	margin-bottom: 16px;
}

.au #writing .x-wrap>.au-cols {
	margin-top: 40px;
}

/* What Joy built, three ventures: Classic Monks beside AgentedSEO in the design's 7/5 columns, then
   GoodMonks across the row under them with its copy beside its figures. Phones keep author.css's single column. */
.au .au-ventures>.au-venture--wide {
	grid-column: 1 / -1;
}

@media (min-width: 961px) {
	.au .au-venture--wide {
		display: grid;
		grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
		gap: 24px 48px;
		align-items: center;
	}

	.au .au-venture--wide> :not(p, .au-stats) {
		grid-column: 1 / -1;
	}
}

/* A venture's own logo in the icon box, at its own proportions, with no tint behind it. */
.au .au-venture__ic {
	background: none;
}

.au .au-venture__ic img {
	width: 100%;
	height: auto;
}

/* author.css makes every span in a card footer an inline flex row; the button's disc must stay a centring grid. */
.au .au-venture__foot .cm-btn__disc {
	display: inline-grid;
	gap: 0;
}

/* Post cards: the title link covers the card; the category sits on the plate. */
.au .au-posts {
	margin: 0;
	padding: 0;
	list-style: none;
}

.au .au-posts>li {
	margin: 0;
	padding: 0;
	border: 0;
}

.au .au-post {
	position: relative;
}

.au .au-post>.au-post__go {
	margin-top: auto;
}

.au .au-post__plate .wp-block-post-terms {
	position: absolute;
	top: 14px;
	left: 16px;
	z-index: 1;
	font: 500 11.5px/16px var(--font-mono);
	letter-spacing: .02em;
}

.au .au-post__plate .wp-block-post-terms a {
	color: inherit;
}

.au .au-post__plate>svg {
	margin-left: auto;
}

.au .au-post .wp-block-post-title {
	padding: 0 6px;
	font: 600 18px/1.36 var(--font-display);
	letter-spacing: -.012em;
	color: var(--ink);
	text-wrap: pretty;
}

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

.au .au-post .wp-block-post-title a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.au .au-post :is(.wp-block-post-date, .wp-block-post-excerpt) {
	padding: 0 6px;
}

.au .au-post .wp-block-post-date {
	font: 500 12px/16px var(--font-mono);
	color: var(--sub);
}

.au .au-post .wp-block-post-excerpt__excerpt {
	margin: 0;
	font-size: 15px;
	line-height: 23px;
	color: var(--mu);
}

.au .au-pager {
	margin-top: 24px;
	font-weight: 600;
}

.au .au-pager a {
	color: var(--gr-dk);
}

.au .au-empty {
	padding: 24px;
	border-radius: 22px;
	background: var(--sf);
	border: 1px solid var(--ln);
	color: var(--mu);
}

@media (max-width: 960px) {
	.au .au-post :is(.wp-block-post-title, .wp-block-post-date, .wp-block-post-excerpt, .au-post__go) {
		grid-column: 2;
		padding: 0;
	}
}

@media (max-width: 720px) {
	.au .au-h1>.au-role {
		margin-top: 12px;
	}

	.au .au-hero .x-wrap>.ct-promise {
		margin-top: 56px;
	}

	.au #writing .x-wrap>.au-jump {
		margin: -16px 0 32px;
	}
}

@media (max-width: 560px) {
	.au .au-post :is(.wp-block-post-title, .wp-block-post-date, .wp-block-post-excerpt, .au-post__go) {
		grid-column: auto;
		padding: 0 6px;
	}
}

/* Legal template: the doc template's core blocks and scripts in the Legal layout (main.dd.lg, so the doc rules above apply). The short version lives in the post content, so the hero is one column. */
.lg :is(.lg-hero, .lg-meta, .lg-end, .lg-end__t, .dd-sec:not(.dd-sec--flow))>* {
	margin-block-start: 0;
}

.lg .lg-hero__grid {
	grid-template-columns: minmax(0, 1fr);
}

.lg .dd-crumbs li:first-child a::before {
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-7 9 7'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3C/svg%3E");
}

.lg .lg-lead p,
.lg :is(.dx-upd, .lg-end__t) p {
	margin: 0;
}

.lg .dd-crumbs li>span:not([aria-current]) {
	padding: 0 9px;
}

.lg .lg-meta .dx-upd .wp-block-post-date {
	font: inherit;
	font-weight: 600;
	color: var(--ink);
}

.lg .lg-end__t {
	display: flex;
	flex-wrap: wrap;
	gap: 0 .5em;
}

.lg .lg-end__t .wp-block-post-title {
	font: inherit;
	color: inherit;
}

.lg .lg-end__t .wp-block-post-title::after {
	content: " \00B7";
}

.lg .lg-end__t .wp-block-post-date+.dd-pub {
	display: none;
}

.lg .lg-shelf li:has([aria-current="page"]) {
	display: none;
}

/* legal.js wraps each heading with its copy-link button: the wrapper sits where the h2 did, with the doc's 18px before the text. */
.lg .dd-sec--flow>.lg-h {
	margin-top: 0;
}

.lg .dd-sec--flow>.lg-h+p {
	margin-top: 18px;
}

.lg .dd-sec>.wp-block-heading {
	margin-bottom: 18px;
}

.lg .dd-sec> :is(ul, ol).wp-block-list,
.lg .dd-sec> :is(div, figure, a) {
	margin-top: 18px;
}

/* Phone overflow fixes for the design CSS: single-column grids may shrink below
   their content, and the two pills that never wrap may wrap on small screens. */
.x-how__step,
.ai-mcp__copy,
.cs-hl,
.cl-demo {
	grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 960px) {
	.x-feat.fp-feat--wl {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 480px) {
	.ai-soon,
	.bp-controls span {
		max-width: 100%;
		height: auto;
		white-space: normal;
	}

	.ai-soon {
		padding-block: 6px;
		line-height: 1.3;
	}

	/* A decorative mock UI: clip its animated labels rather than the page. */
	.cl-demo {
		overflow: hidden;
	}
}

/* Stacked "three moves" steps arrive one by one, so the side-by-side 1.8s and 3.6s waits would leave them empty. */
@media (max-width: 960px) {
	.x .x-how__step:nth-child(n) {
		--hs: 0ms;
	}
}

/* Pricing card term labels: 10px mono is below a readable size. */
.x .cm-dual .cm-eyebrow {
	font-size: 11px;
}

/* Phone type: quotes, panel headings and the closing heading step down so they
   read as text, not as walls; multi-line headings get a little more leading. */
@media (max-width: 640px) {
	/* Doubled class: beats page hero sizes like .dm .dm-hero .x-display (40px, 6 lines at 320). */
	.x .x-display.x-display {
		font-size: clamp(34px, 9.6vw, 40px);
		line-height: 1.06;
	}

	.x .x-h2 {
		line-height: 1.12;
	}

	.x .x-cta .x-h2 {
		font-size: 30px;
	}

	.x .x-dive__h {
		font-size: 21px;
		line-height: 1.2;
	}

	.x .x-wall .x-quote--big blockquote {
		font-size: 18px;
		line-height: 1.45;
	}

	.x .x-founder blockquote {
		font-size: 20px;
		line-height: 1.45;
	}

	.x .x-cat>p {
		font-size: 15px;
		line-height: 1.5;
	}
}

/* Home hero trust badges on phones: one centered strip of three columns, like the
   centered hero above it, instead of the shared left-aligned list. */
@media (max-width: 480px) {
	.x .x-hero .pp-badges.pp-badges--lite.x-trust {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		margin-top: 28px;
	}

	.x .x-hero .pp-badges.pp-badges--lite.x-trust .pp-badge {
		flex-direction: column;
		justify-content: flex-start;
		gap: 8px;
		padding: 14px 6px 12px;
		text-align: center;
	}

	.x .x-hero .pp-badges.pp-badges--lite.x-trust .pp-badge+.pp-badge {
		border-top: 0;
		border-left: 1px solid var(--ln);
	}

	.x .x-hero .pp-badges.pp-badges--lite.x-trust .pp-badge__t {
		justify-items: center;
		gap: 3px;
	}

	.x .x-hero .pp-badges.pp-badges--lite.x-trust .pp-badge__t :is(b, small) {
		justify-content: center;
		text-wrap: balance;
	}

	.x .x-hero .pp-badges.pp-badges--lite.x-trust .pp-badge__t b {
		font-size: 13.5px;
		line-height: 17px;
	}

	.x .x-hero .pp-badges.pp-badges--lite.x-trust .pp-badge__t small {
		font-size: 12px;
		line-height: 15px;
	}

	/* The 4.8 rating: stars wrap under the number instead of spilling out of the tile. */
	.x .x-hero .pp-badges.pp-badges--lite.x-trust .pp-badge__t b {
		flex-wrap: wrap;
		row-gap: 2px;
	}

	/* Four badges (faq, why, roadmap, setup): a 2 x 2 grid, never a lonely fourth. */
	.x .x-hero .pp-badges.pp-badges--lite.x-trust:has(> .pp-badge:nth-child(4)) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.x .x-hero .pp-badges.pp-badges--lite.x-trust:has(> .pp-badge:nth-child(4)) .pp-badge:nth-child(3) {
		border-left: 0;
	}

	.x .x-hero .pp-badges.pp-badges--lite.x-trust:has(> .pp-badge:nth-child(4)) .pp-badge:nth-child(n+3) {
		border-top: 1px solid var(--ln);
	}
}

/* Features admin mock on phones: the later folders rule in features.css undid the
   one-column media wrap, so the file grid ran past the card edge. */
@media (max-width: 640px) {
	.x .fp-mediawrap--folders {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Closing call to action on phones: the dark card runs edge to edge, its text on
   the same 20px gutter as the sections around it. */
@media (max-width: 640px) {
	.x .x-cta>.x-wrap {
		padding-inline: 0;
	}

	.x .x-cta__card {
		padding: 64px 20px;
		border-radius: 0;
	}
}

/* Home "works with" card on phones: the rating reads as two clean lines beside the
   faces, and the three brands share one row, logos beside their names under a Built for: line. */
@media (max-width: 560px) {
	.x .x-works__proof {
		gap: 12px;
	}

	.x .x-works__proof .x-faces {
		flex: none;
	}

	.x .x-works__proof>span:last-child {
		display: grid;
		grid-template-columns: auto auto;
		justify-content: start;
		align-items: center;
		gap: 2px 8px;
		font-size: 13.5px;
		line-height: 18px;
		text-align: left;
	}

	.x .x-works__sep {
		display: none;
	}

	.x .x-works__agencies {
		grid-column: 1 / -1;
	}

	.x :is(.x-works__brands, .fp-built) {
		gap: 10px;
		font-size: 12px;
		line-height: 18px;
		text-align: left;
	}

	.x :is(.x-works__brands, .fp-built) .x-label {
		flex-basis: 100%;
	}

	.x :is(.x-works__brands, .fp-built) .x-label::after {
		content: ":";
	}

	.x :is(.x-works__brands, .fp-built) .x-brand {
		gap: 5px;
		white-space: nowrap;
	}

	.x :is(.x-works__brands, .fp-built) .x-brand img {
		width: 18px;
		height: 18px;
	}

	.x :is(.x-works__brands, .fp-built) .x-brand:last-child img {
		border-radius: 5px;
	}
}

/* Phones under 390px: smaller still so the three stay on one line from 360px. */
@media (max-width: 389px) {
	.x :is(.x-works__brands, .fp-built) {
		column-gap: 8px;
		font-size: 11px;
	}

	.x :is(.x-works__brands, .fp-built) .x-brand {
		gap: 4px;
	}

	.x :is(.x-works__brands, .fp-built) .x-brand img {
		width: 16px;
		height: 16px;
	}
}

/* Feature library shelf on phones (features and bricks): compact tabs, a 46px search,
   the Try chips on one scrolling row, and denser rows so more switches fit on screen. */
@media (max-width: 640px) {
	.x .bp-shelf__side {
		padding: 10px 12px;
		mask-image: linear-gradient(90deg, #000 85%, transparent);
	}

	.x .bp-grp {
		grid-template-columns: 28px minmax(0, 1fr) auto;
		gap: 8px;
		min-height: 40px;
		padding: 4px 10px 4px 4px;
		font-size: 14px;
	}

	.x .bp-grp i {
		width: 28px;
		height: 28px;
		border-radius: 8px;
	}

	.x .bp-shelf__main {
		gap: 14px;
		padding: 16px;
	}

	.x .bp-shelf__bar h3 {
		font-size: 18px;
	}

	.x .bp-shelf__bar p {
		font-size: 13.5px;
		line-height: 20px;
	}

	.x .bp-tiles {
		gap: 8px;
	}

	.x .bp-shelf .bp-tile .x-tgrow {
		min-height: 46px;
		padding: 8px 12px;
		font-size: 14px;
		line-height: 18px;
	}

	/* Search: 46px tall; the right padding for the Clear button only while there is text. */
	.x .fp-shelf .fp-lib__search input {
		height: 46px;
		padding: 0 14px 0 42px;
		border-radius: 12px;
		text-overflow: ellipsis;
	}

	.x .fp-shelf .fp-lib__search input:not(:placeholder-shown) {
		padding-right: 76px;
	}

	.x .fp-shelf .fp-lib__search>svg {
		left: 14px;
		width: 16px;
		height: 16px;
		margin-top: -8px;
	}

	.x .fp-shelf .fp-try {
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
		mask-image: linear-gradient(90deg, #000 85%, transparent);
	}

	.x .fp-shelf .fp-try>* {
		flex: none;
	}

	.x .fp-shelf .fp-chip {
		min-height: 32px;
	}
}

/* Features page on phones, by the phone rules in docs/DESIGN.md. */
@media (max-width: 640px) {
	/* Section headings at the 30px phone size (admin and white label were 32px). */
	.x .fp-copy .x-h2 {
		font-size: 30px;
	}

	/* Hero search: a long placeholder ends in an ellipsis, not mid-word. */
	.x .fp-find input {
		text-overflow: ellipsis;
	}

	/* Admin mock: the admin bar drops its "Welcome back" greeting so the rest fits without a cut. */

	.x .fp-ab__end {
		display: none;
	}

	/* Admin mock: 12px menu, a roomier main column and two rows of media tiles,
	   so the mock is about a screen tall instead of two. */
	.x .fp-admin--wide .fp-wp__side li:not(.fp-wp__sub) {
		gap: 7px;
		height: 28px;
		padding: 0 8px;
		font-size: 12px;
	}

	.x .fp-admin--wide .fp-wp__main {
		gap: 10px;
		padding: 14px 12px;
	}

	/* Before view: a wider menu so "Login Security" keeps its update badge. */
	.x .fp-admin--wide .fp-view--before .fp-wp {
		grid-template-columns: 132px minmax(0, 1fr);
	}

	/* Media tiles: two full rows. After: the moving tile, its fly and toast, then
	   7 more (children 1 to 10) in 4 columns; before: 6 tiles in 3 columns. */
	.x .fp-admin .fp-fm__grid> :nth-child(n+11),
	.x .fp-admin .fp-media:not(.fp-fm__grid)> :nth-child(n+7) {
		display: none;
	}

	/* White label numbered markers: no smaller than the 10.5px floor. */
	.x .fp-n {
		font-size: 10.5px;
	}

	/* Start cards: the stacked mockups take their content height, not a 232px frame. */
	.x .fp-card__vis {
		height: auto;
	}

	/* Settings mock heading: the count stays on one line beside the wrapping title. */
	.x .fp-lean__t {
		line-height: 20px;
	}

	.x .fp-lean__t small {
		white-space: nowrap;
	}
}

/* Smallest phones: a narrower menu leaves the folders room for their names. */
@media (max-width: 380px) {
	.x .fp-admin--wide .fp-view--after .fp-wp {
		grid-template-columns: 104px minmax(0, 1fr);
	}

	/* Admin bar: "+ New" goes so Switch User still fits. */
	.x .fp-ab>.fp-ab__i:nth-child(3) {
		display: none;
	}

	/* Folder toolbar keeps its first three tools. */
	.x .fp-fd__tools> :nth-child(n+4) {
		display: none;
	}

	.x .fp-admin--wide .fp-wp__side li:not(.fp-wp__sub) {
		font-size: 11.5px;
	}

	.x .fp-wp__side li.fp-wp__sub {
		padding-left: 24px;
	}

	.x .fp-admin--wide .fp-wp__main {
		padding: 12px 8px;
	}
}

/* Footer on phones: the same 64px rhythm as the sections above it. */
@media (max-width: 640px) {
	.x-ft {
		padding-top: 64px;
	}
}

/* Generic template headings: tight leading so two-line titles do not collide. */
.x main.has-global-padding :is(h1, h2) {
	line-height: 1.15;
}

/* Dark "customers shaped this release" lead: the dark-section muted ink, for AA contrast. */
.x .cs-thanks .x-lead {
	color: var(--dkmu);
}

/* Affiliate legend: inline items, so a comma after the bold word gets no flex gap. */
.x .af-stage__cap span {
	display: inline-block;
}

.x .af-stage__cap span::before {
	display: inline-block;
	margin-right: 8px;
	vertical-align: middle;
}

/* Phone fixes for page-specific blocks, found in the page-by-page review. */
@media (max-width: 640px) {
	/* Testimonials support mock: text wraps inside the card instead of clipping. */
	.x .ts-mini>* {
		min-width: 0;
	}

	.x .ts-mini__head>span {
		white-space: normal;
		text-align: right;
	}

	.x .ts-mini .ts-msg--out {
		max-width: 88%;
	}

	/* Why plan rows: the pill drops under the text so the text gets the full width. */
	.x .wy-plans :is(.wy-lp-h1, .wy-lp-h2) {
		grid-template-columns: 36px minmax(0, 1fr);
		row-gap: 8px;
	}

	.x .wy-plans :is(.wy-lp-h1, .wy-lp-h2)>.wy-chip {
		grid-column: 2;
		justify-self: start;
	}

	.x .wy-plans :is(.wy-lp-h1, .wy-lp-h2) :is(b, small) {
		line-height: 1.35;
	}

	/* Author cards (posts and docs): photo above, bio at full width. */
	.x .dd-author {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}

	/* Docs anatomy label: the badge drops below instead of wrapping inside its pill. */
	.x .dx-anat__label {
		flex-wrap: wrap;
		justify-content: flex-start;
		gap: 8px;
	}

	.x .dx-anat__label .x-badge {
		white-space: nowrap;
	}

	/* Featured review quotes: the 19-20px phone size used by the other quote cards. */
	.x :is(.b2-revs, .wy-proof) .x-quote--big blockquote {
		font-size: 20px;
		line-height: 1.4;
	}

	/* Stat cards keep their content height instead of a 196px floor. */
	.x .ab-stat {
		min-height: 0;
	}

	/* Changelog highlight divider: label above its note. */
	.x .cs-divider {
		flex-wrap: wrap;
		row-gap: 4px;
	}

	/* Ideas closing form: the heading and its lead read as one block. */
	.x .ib .ib-cta .x-cta__card {
		row-gap: 24px;
	}

	.x .ib .ib-cta .x-cta__card .x-lead {
		margin-top: 0;
	}

	/* Legal body copy at the site's 16px reading size. */
	.x .lg .dd-sec>p,
	.x .lg-pre p {
		font-size: 16px;
		line-height: 26px;
	}

	/* Affiliate pending rows: the referral date on its own line, the amount unbroken. */
	.x .af-line>span small {
		display: block;
	}

	.x .af-line>b {
		white-space: nowrap;
	}

	/* Affiliate 30% callout: the note sits under its heading, not run into it. */
	.x .af-aud--you>span>span {
		display: block;
		margin-top: 4px;
	}

	/* Demo role view menu scrolls sideways: a fade at the edge says so. */
	.x .dm-rv__menu {
		mask-image: linear-gradient(90deg, #000 82%, transparent);
	}

	/* Sale dock: the offer wraps to two lines instead of an ellipsis. */
	.x .sv-dock__t b {
		white-space: normal;
		line-height: 17px;
	}

	/* Mock UI micro labels: no smaller than the 10.5px floor. */
	.x :is(.dx-dm__field small, .b2-bem__top em) {
		font-size: 10.5px;
	}
}

/* Touch: small inline links get a taller hit area without moving the layout. */
@media (pointer: coarse) {
	.x :is(.cm-link, .pp-badge__t a) {
		padding-block: 9px;
		margin-block: -9px;
	}
}

/* About demos had no pause rule; site.js marks every demo loop .is-off off screen. */
.ab-loop.is-off,
.ab-loop.is-off *,
.ab-loop.is-off *::before,
.ab-loop.is-off *::after {
	animation-play-state: paused !important;
}

/* Landing dashboard: the scripts toggle [hidden] on screens, navs, panels and the toast. */
.xd [hidden] {
	display: none !important;
}

/* Landing dashboard on phones: the desktop layout (top bar, side list, settings),
   drawn 15% smaller so a full row of settings fits. */
@media (max-width: 700px) {
	.x-dash.xd {
		zoom: 0.85;
	}

	.x-dash.xd .xd-top__row {
		flex-wrap: wrap;
		gap: 0 8px;
		min-height: 48px;
		padding: 4px 10px 0;
	}

	.x-dash.xd .cm-dash-topbar__logo {
		height: 17px;
	}

	/* Sits beside Save like on desktop, shrinking only on the narrowest phones */
	.x-dash.xd .cm-dash-search {
		flex: 1 1 0;
		width: auto;
		min-width: 0;
		max-width: 180px;
		margin-left: auto;
	}

	.x-dash.xd .cm-dash-search input {
		width: 100%;
		min-width: 0;
		height: 32px;
		font-size: 13px;
	}

	.x-dash.xd .xd-save {
		height: 32px;
		padding: 0 12px;
	}

	.x-dash.xd .cm-dash-tabs {
		min-height: 40px;
		margin: 0 -10px;
		padding: 0 4px;
		margin-top: 4px;
	}

	.x-dash.xd .cm-dash-tab {
		padding: 0 9px;
	}

	.x-dash.xd .xd-body {
		grid-template-columns: 124px minmax(0, 1fr);
		height: 540px;
	}

	.x-dash.xd .cm-dash-sidebar {
		padding: 8px 6px;
		border-right: 1px solid var(--dash-border);
		border-bottom: 0;
		overflow-x: hidden;
		overflow-y: auto;
	}

	.x-dash.xd .xd-nav {
		flex-direction: column;
		gap: 2px;
		width: auto;
	}

	.x-dash.xd .cm-dash-nav__item {
		width: 100%;
		height: 34px;
		padding: 0 6px;
		gap: 6px;
		border: 0;
		border-radius: 8px;
		background: none;
		font-size: 12.5px;
	}

	.x-dash.xd .cm-dash-nav__item[aria-current="page"] {
		background: var(--dash-green-25);
	}

	.x-dash.xd .xd-nav .cm-i {
		display: block;
		flex: none;
		width: 14px;
		height: 14px;
	}

	.x-dash.xd .xd-nav__name {
		overflow: hidden;
	}

	/* No room for the counts beside the names */
	.x-dash.xd .cm-dash-nav__item .cm-dash-count {
		display: none;
	}

	.x-dash.xd .cm-dash-main {
		max-height: none;
		padding: 14px 12px 20px;
	}

	/* Keep the narrowest phones from widening the settings column */
	.x-dash.xd .xd-page {
		grid-template-columns: minmax(0, 1fr);
	}

	.x-dash.xd :is(.xd-primary, .xd-danger) {
		flex-shrink: 1;
		height: auto;
		min-height: 34px;
		padding-block: 8px;
		line-height: 1.25;
		white-space: normal;
	}

	.x-dash.xd .xd-confirm__row {
		flex-wrap: wrap;
	}

	.x-dash.xd .cm-dash-page__title {
		font-size: 16px;
		line-height: 22px;
	}

	.x-dash.xd .cm-dash-page__desc {
		font-size: 12.5px;
		line-height: 18px;
	}

	.x-dash.xd .xd-card {
		padding: 10px 12px 6px;
	}

	/* Image size names like woocommerce_gallery_thumbnail have no spaces */
	.x-dash.xd .xd-row .cm-dash-row__label {
		font-size: 12.5px;
		overflow-wrap: anywhere;
	}

	/* Search results: the setting name gets the room, its location is cut short */
	.x-dash.xd .xd-crumb {
		max-width: 30%;
		padding-inline: 4px;
	}

	.x-dash.xd .xd-foot {
		font-size: 11.5px;
	}
}
/* Phone review of every page against the docs/DESIGN.md Phone rules. */
@media (max-width: 640px) {
	/* Inputs: 16px text so iOS does not zoom on focus, 46px tall (not the pricing dock stepper). The home dashboard keeps its 0.85 zoom. */
	.x main :is(input:not([type=checkbox], [type=radio], [type=range], [type=file], [type=submit], [type=button], [type=hidden]), select):not(.x-dash *) {
		font-size: 16px;
	}

	.x main :is(input:not([type=checkbox], [type=radio], [type=range], [type=file], [type=submit], [type=button], [type=hidden]), select):not(.x-dash *, .pv-dock *) {
		min-height: 46px;
	}

	.x main textarea:not(.x-dash *) {
		font-size: 16px;
	}

	/* Sections keep the 64px phone rhythm; page CSS gives these 72 to 96px tops. */
	.x .x-sec.ab-record,
	.x .x-sec.af-deal,
	.x .x-sec.dx-try,
	.x #pricing.x-sec {
		padding-top: 64px;
		padding-bottom: 64px;
	}

	/* Micro labels never go under 10.5px. */
	.x .x-faces > span,
	.x .sv-lm-a,
	.x .sv-lm-b,
	.x .ai-log__t small,
	.x .dx-dm__row em,
	.x .dx-dm__mail em,
	.x .qs-fav {
		font-size: 10.5px;
	}

	/* Features: the WP admin menu mock wraps its items instead of cutting them. */
	.x .fp-wp__side li,
	.x .fp-wp__side li.fp-wp__sub {
		height: auto;
		min-height: 28px;
		padding-block: 5px;
		white-space: normal;
		overflow: visible;
		text-overflow: clip;
		line-height: 1.3;
		overflow-wrap: anywhere;
	}

	/* AI: the generated HTML and CSS scroll sideways inside their pane instead of being cut. */
	.x .ai-bricks .x-code pre {
		overflow-x: auto;
		scrollbar-width: thin;
	}

	/* One scrolling row, never one chip alone: AI "Try asking" chips, the doc rule match picker. */
	.x .ai-chips,
	.x .dd-rulebar .xd-seg {
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
		mask-image: linear-gradient(90deg, #000 85%, transparent);
	}

	.x .ai-chips > *,
	.x .dd-rulebar .xd-seg > * {
		flex: none;
	}

	/* Contact: six topics make a 2 x 3 grid. */
	.x .ct-topics__list {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* Bricks query fields: four make a 2 x 2 grid. */
	.x .bp-fields {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* Three items make one row of three: demo requirements, the swap totals on Why. */
	.x .dm-req__stack,
	.x .wy-swap__sum {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.x .dm-req__stack > *,
	.x .wy-swap__sum > * {
		min-width: 0;
		justify-content: center;
		white-space: normal;
		text-align: center;
	}

	/* Pricing: the Sites mock URL bar keeps only its path so it stays on one line. */
	.x .pv-host {
		display: none;
	}

	/* Pricing: five payment methods sit 3 + 2, not 4 + 1. */
	.x .pp-pay {
		display: grid;
		grid-template-columns: repeat(3, auto);
		justify-content: center;
	}
}

/* Footer bar: GoodMonks Solutions links to the agency, with a thin underline in the text's own colour. */
.x-ft__bar .x-ft__org {
	color: inherit;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-decoration-color: currentColor;
	text-underline-offset: 3px;
	transition: color 150ms ease;
}

.x-ft__bar .x-ft__org:hover {
	color: var(--ink);
}

/* Sale bar (patterns/sale-bar.php): the night bar above the sticky header while the campaign is live,
   in the header's own dark so the two read as one block. Phones keep the tag, the offer, days left and the arrow. */
.cms-salebar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px 18px;
	padding: 8px 16px;
	background: var(--dk);
	color: var(--dkink);
	font-size: 14px;
	line-height: 20px;
	text-align: center;
}

.cms-salebar__tag {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 26px;
	padding: 0 10px;
	border-radius: 999px;
	background: rgba(91, 211, 148, .12);
	border: 1px solid rgba(91, 211, 148, .35);
	color: var(--neon);
	font: 500 12px/1 var(--font-mono);
	letter-spacing: .06em;
	text-transform: uppercase;
}

.cms-salebar__tag::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
}

.cms-salebar__t b {
	font-weight: 600;
}

.cms-salebar__left {
	display: none;
}

.cms-salebar__ends {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--dkmu);
}

.cms-salebar__clock {
	display: inline-flex;
	gap: 4px;
	color: var(--dkink);
	font: 500 12px/1 var(--font-mono);
	font-variant-numeric: tabular-nums;
}

.cms-salebar__clock span {
	padding: 5px 7px;
	border-radius: 6px;
	background: var(--dk3);
}

.cms-salebar__go {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 30px;
	padding: 0 12px 0 14px;
	border-radius: 999px;
	background: var(--neon);
	color: var(--dk);
	font-size: 13px;
	font-weight: 600;
	transition: background-color 150ms ease;
}

.cms-salebar:hover .cms-salebar__go {
	background: var(--dkink);
}

.cms-salebar:focus-visible {
	outline: 2px solid var(--neon);
	outline-offset: -4px;
}

/* While the bar shows it stands in for the header's top strip: the bar sits a layer above the header
   (z 29) and the header tucks its own 12px dark strip up under it, so the tab sits close under the offer.
   The header keeps its height, so the scrolled pill is unchanged. With no bar (campaign off, or
   sale-bar.js removed it when the sale ended) this no longer matches and the strip is back. */
.cms-salebar {
	position: relative;
	z-index: 30;
	padding-bottom: 0;
}

.cms-salebar + .x-tabhd {
	margin-top: calc(var(--tab-strip, 12px) * -1);
}

@media (max-width: 640px) {
	.cms-salebar {
		flex-wrap: nowrap;
		gap: 10px;
		font-size: 13px;
	}

	.cms-salebar__tag {
		height: 22px;
		padding: 0 8px;
		font-size: 10.5px;
	}

	.cms-salebar__tag::before,
	.cms-salebar__more,
	.cms-salebar__ends,
	.cms-salebar__claim {
		display: none;
	}

	.cms-salebar__left {
		display: inline;
	}

	.cms-salebar__go {
		height: auto;
		padding: 0;
		background: none;
		color: var(--neon);
	}

	.cms-salebar:hover .cms-salebar__go {
		background: none;
	}
}

/* Theme forms (inc/forms.php): honeypot off screen, the send error in view. */
.cms-hp {
	position: absolute;
	left: -9999px;
}

.cms-form-err {
	grid-column: 1 / -1;
	margin: 0;
	font-size: 14px;
	color: var(--warning);
}

/* The Turnstile box (inc/forms-turnstile.php) takes its own row. */
.cf-turnstile {
	grid-column: 1 / -1;
	flex-basis: 100%;
}

/* Shared plan cards (CmsTheme\plan_cards()): the sale bar, coupon code and struck list prices
   from the Black Friday design, for every page the cards appear on while a campaign is on. */
.sv-salebar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-bottom: 20px; padding: 12px 12px 12px 20px; border-radius: 20px; background: var(--sf); border: 1px solid rgba(1,130,76,.35); box-shadow: 0 1px 2px rgba(13,20,17,.04), 0 0 0 4px rgba(1,130,76,.06); }
.sv-salebar__t { display: grid; gap: 2px; flex: 1 1 360px; min-width: 0; }
.sv-salebar__tag { display: inline-flex; align-items: center; gap: 8px; font: 600 15px/20px var(--font-sans); color: var(--ink); }
.sv-salebar__tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gr); box-shadow: 0 0 0 4px rgba(1,130,76,.14); animation: sv-live 2.4s cubic-bezier(.33, 1, .68, 1) infinite; }
.sv-salebar__t p { font-size: 14px; line-height: 20px; color: var(--mu); }
.sv-salebar__t p b { color: var(--ink); font-weight: 600; }
.sv-salebar__ends { display: grid; gap: 2px; padding: 0 20px; border-left: 1px solid var(--ln); font-size: 12px; line-height: 16px; color: var(--sub); }
.sv-salebar__ends b { font: 600 20px/1 var(--font-display); letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
@keyframes sv-live { 0% { box-shadow: 0 0 0 0 rgba(1,130,76,.45), 0 0 6px rgba(1,130,76,.35); } 70%, 100% { box-shadow: 0 0 0 9px rgba(1,130,76,0), 0 0 6px rgba(1,130,76,.35); } }
.sv-code { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 18px; border: 1.5px dashed var(--ln2); border-radius: 16px; background: var(--sk); }
.sv-code__val { display: grid; gap: 2px; min-width: 0; margin-right: auto; }
.sv-code__val small { font: 500 11.5px/14px var(--font-mono); letter-spacing: .02em; color: var(--sub); }
.sv-code__val b { font: 600 28px/1.05 var(--font-mono); letter-spacing: .1em; color: var(--ink); }
.sv-code__btn { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 104px; height: 44px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--ink); color: #FFFFFF; font: 600 14px/1 var(--font-sans); cursor: pointer; transition: background-color 150ms ease, transform 120ms var(--ease-out); }
.sv-code__btn svg { width: 16px; height: 16px; }
.sv-code__btn:hover { background: #1F2A24; }
.sv-code__btn:active { transform: scale(.97); }
.sv-code__btn.is-done { background: var(--gr); }
.sv-code--sm { gap: 10px; padding: 5px 5px 5px 14px; border-radius: 12px; }
.sv-code--sm .sv-code__val b { font-size: 18px; }
.sv-code--sm .sv-code__val small { font-size: 11px; line-height: 13px; }
.sv-code--sm .sv-code__btn { min-width: 84px; height: 38px; padding: 0 12px; border-radius: 9px; font-size: 13.5px; }
.sv-was { color: var(--sub); text-decoration: line-through; text-decoration-color: var(--saffron); text-decoration-thickness: 1.5px; font-variant-numeric: tabular-nums; }
.sv-dwas { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin-top: 4px; font-size: 13px; line-height: 18px; }
.sv-dwas .sv-was { font-weight: 500; }
.sv-dsave { font-weight: 600; color: var(--gr-dk); font-variant-numeric: tabular-nums; }
.cm-dualcard--night .sv-was { color: var(--dkmu); }
.cm-dualcard--night .sv-dsave { color: var(--neon); }
@media (max-width: 760px) {
	.sv-salebar { padding: 14px; }
	.sv-salebar__ends { padding: 0; border-left: 0; }
	.sv-salebar .sv-code { flex: 1 1 100%; }
}
@media (pointer: coarse) {
	.sv-code__btn, .sv-code--sm .sv-code__btn { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
	.sv-salebar__tag::before { animation: none; }
	.sv-code__btn { transition: none; }
}

/* Single doc and post endings: the "Was this helpful?" box and the author card sit 48px from
   each other and from the content above, stepping down on phones. */
.dd-end {
	gap: 48px;
	margin-top: 48px;
}

/* The post template's group adds the block gap as a margin too; the grid gap is the only space. */
.dd-end > * {
	margin-block: 0;
}

@media (max-width: 640px) {
	.dd-end {
		gap: 40px;
		margin-top: 40px;
	}
}

/* Single doc heroes have no crumbs and search row any more, so the title takes the top space
   the post hero uses instead of starting just under the header. */
.wp-block-group.dd-hero {
	padding-top: 56px;
}

@media (max-width: 640px) {
	.wp-block-group.dd-hero {
		padding-top: 32px;
	}
}

/* Legal heroes have no crumbs and tabs row any more: the title gets the same top space as the
   doc and post heroes. Screen only, so print keeps the design's tight top. */
@media screen {
	.wp-block-group.lg-hero {
		padding-top: 56px;
	}
}

@media screen and (max-width: 640px) {
	.wp-block-group.lg-hero {
		padding-top: 32px;
	}
}

/* Founder notes (home, Features, Pricing, Why): Joy's role line sits 12px under the name. */
.home .x-founder .x-person--photo > div > span,
.fp-founder > div > span,
.wy-quote figcaption > span > span {
	margin-top: 12px;
}

/* Home compare table on phones: the Classic Monks cell sits on the table's left edge, so its green
   left line doubled the table border. Only the line between the two columns stays. */
@media (max-width: 760px) {
	.x-cmp__t tbody td:first-of-type {
		box-shadow: inset -1px 0 0 rgba(1, 130, 76, .22);
	}
}

/* Pricing, Lifetime card: the price in the primary green, and every other word in white
   (heading, badge, "once", the plan line and the list), not the design's mint and muted grey. */
.pv-opt--life .pv-opt__price strong,
.pv-opt--life .pv-opt__price strong span {
	color: var(--gr);
}

.pv-opt--life,
.pv-opt--life h3,
.pv-opt--life .cm-badge,
.pv-opt--life .pv-opt__price strong small,
.pv-opt--life .pv-opt__price > span,
.pv-opt--life .pv-opt__price > span span,
.pv-opt--life li {
	color: var(--on-brand);
}

/* Theme forms while they send (assets/js/forms.js): the label shows its data-busy text and the arrow becomes a spinner. */
.cm-btn.is-busy {
	cursor: progress;
}

.cm-btn.is-busy .cm-btn__disc .cm-i {
	display: none;
}

.cm-btn.is-busy .cm-btn__disc::before {
	content: "";
	width: 14px;
	height: 14px;
	border: 2px solid color-mix(in srgb, currentColor 30%, transparent);
	border-top-color: currentColor;
	border-radius: 50%;
	animation: cms-spin .7s linear infinite;
}

.cm-btn.is-busy:hover .cm-btn__disc {
	transform: none;
}

@keyframes cms-spin {
	to {
		transform: rotate(1turn);
	}
}

@media (prefers-reduced-motion: reduce) {
	.cm-btn.is-busy .cm-btn__disc::before {
		animation-duration: 2s;
	}
}

/* Images in the text of the single templates (docs, legal, articles, releases): room above and below, also right under a heading. */
:is(.dd, .po, .cs) .wp-block-post-content :is(.wp-block-image, p:has(> img, > a > img)) {
	margin-block: 32px;
}

/* An article's framed image (inc/posts.php): 24px at every width. */
:is(.dd, .po, .cs) .wp-block-post-content .po-img {
	margin-block: 24px;
}

@media (max-width: 640px) {
	:is(.dd, .po, .cs) .wp-block-post-content :is(.wp-block-image, p:has(> img, > a > img)) {
		margin-block: 24px;
	}
}

/* The featured image above the first h2 of a single's text (inc/setup.php), framed like the article images. */
.x .wp-block-post-content .cms-cover {
	margin: 32px 0;
}

.x .cms-cover img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 16px;
	border: 1px solid var(--ln);
}

/* With the image gone from the article and doc heroes, their copy takes the full width (an article's
   side box, moved in by post.js, keeps its column). */
.x .po-hero__grid--solo:not(:has(> .po-hero__side)),
.x .dd-hero__grid--solo {
	grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 640px) {
	.x .wp-block-post-content .cms-cover {
		margin-bottom: 24px;
	}
}

/* Docs search results: the searched words, as the docs hero dropdown marks them, and group names that link to their category. */
.x .dx-vsrow__t mark {
	padding: 0 1px;
	border-radius: 3px;
	background: var(--mark);
	color: var(--gr-dk);
}
.x .dg-group__head h3 a {
	color: inherit;
	text-decoration: none;
}
.x .dg-group__head h3 a:hover {
	text-decoration: underline;
}

/* A release's cover closes its text, above the full changelog: the article grid's 48px rhythm. */
.cs .wp-block-post-content>.cms-cover:last-child {
	margin: 48px 0 0;
}

