/**
 * Small Plugins: CSS that block settings can't express. One section per pattern/feature.
 * Each section lives in custom/_<section>.scss. Compiled to custom.css by the build.
 * Block styles live in blocks/styles/<block>/<number>/ and load only where used.
 */
/**
 * Forms (base)
 *
 * Element-level styles for form fields across the site: EDD checkout, login,
 * profile and affiliate forms, and forms WordPress prints itself (the login
 * form under a plugin page's reviews). Not tied to a block. The search block's field
 * is styled in custom/_search.scss instead.
 *
 * Scoped to page content (front end) and the editor canvas, so the editor's
 * own sidebar controls keep WordPress's styles.
 */
/**
 * Mixins (no CSS output). Shared by the plugin stylesheets that style markup we
 * can't give block settings: AffiliateWP (custom/_affiliatewp.scss) and
 * Easy Digital Downloads (plugins/edd.scss). Use with @use "…/base/mixins" as *.
 *
 *   plugin-base   the brand reset every plugin form gets (fields, checkboxes,
 *                 buttons). Each plugin includes it once, inside its own scope.
 *   $row-space    the space above and below every hairline between rows
 *   field, select-chevron, choice, fill-button, outline-button, action-button,
 *   small-button, card, outlined-card, callout, members-only-pill, badge, role
 */
:where(.wp-site-blocks, .editor-styles-wrapper) label {
	display: block;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	margin-bottom: var(--wp--preset--spacing--20);
}
:where(.wp-site-blocks, .editor-styles-wrapper) input[type="date"],
:where(.wp-site-blocks, .editor-styles-wrapper) input[type="email"],
:where(.wp-site-blocks, .editor-styles-wrapper) input[type="number"],
:where(.wp-site-blocks, .editor-styles-wrapper) input[type="password"],
:where(.wp-site-blocks, .editor-styles-wrapper) input[type="tel"],
:where(.wp-site-blocks, .editor-styles-wrapper) input[type="text"],
:where(.wp-site-blocks, .editor-styles-wrapper) input[type="url"],
:where(.wp-site-blocks, .editor-styles-wrapper) textarea,
:where(.wp-site-blocks, .editor-styles-wrapper) select {
	box-sizing: border-box;
	width: 100%;
	min-height: 2.75rem;
	margin: 0;
	padding: var(--wp--preset--spacing--30) 1.5rem;
	border: 1px solid var(--sp-border);
	border-radius: var(--wp--custom--radius--full);
	background-color: var(--sp-surface);
	box-shadow: none;
	color: var(--sp-text);
	font: inherit;
	font-size: var(--wp--preset--font-size--medium);
}
:where(.wp-site-blocks, .editor-styles-wrapper) textarea {
	border-radius: var(--wp--custom--radius--small);
}
:where(.wp-site-blocks, .editor-styles-wrapper) select {
	appearance: none;
	padding-inline-end: 2.75rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314293c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-position: right 1.25rem center;
	background-repeat: no-repeat;
	background-size: 1rem;
}
:where(.wp-site-blocks, .editor-styles-wrapper) input::placeholder,
:where(.wp-site-blocks, .editor-styles-wrapper) textarea::placeholder {
	color: var(--wp--preset--color--contrast-light);
}
:where(.wp-site-blocks, .editor-styles-wrapper) input:focus-visible,
:where(.wp-site-blocks, .editor-styles-wrapper) textarea:focus-visible,
:where(.wp-site-blocks, .editor-styles-wrapper) select:focus-visible {
	outline: 3px solid var(--wp--preset--color--contrast);
	outline-offset: 2px;
}
:where(.wp-site-blocks, .editor-styles-wrapper)
	:where(input[type="checkbox"], input[type="radio"]) {
	flex-shrink: 0;
	width: 1.25rem;
	height: 1.25rem;
	margin: 0;
	accent-color: var(--sp-text);
}
:where(.wp-site-blocks, .editor-styles-wrapper)
	label:where(:has(> input[type="checkbox"], > input[type="radio"])),
:where(.wp-site-blocks, .editor-styles-wrapper)
	:where(
		:has(> input[type="checkbox"] + label, > input[type="radio"] + label)
	) {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: var(--wp--preset--spacing--20);
}
:where(.wp-site-blocks, .editor-styles-wrapper)
	label:where(:has(> input[type="checkbox"], > input[type="radio"])),
:where(.wp-site-blocks, .editor-styles-wrapper)
	:where(:has(> input[type="checkbox"] + label, > input[type="radio"] + label))
	> label {
	font-weight: 400;
}
:where(.wp-site-blocks, .editor-styles-wrapper)
	:where(:has(> input[type="checkbox"] + label, > input[type="radio"] + label))
	> label {
	margin: 0;
}
:where(.wp-site-blocks, .editor-styles-wrapper)
	:where(input[type="submit"]:not(.wp-element-button, .gform_button)) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	box-sizing: border-box;
	width: auto;
	min-height: 2.75rem;
	max-block-size: max-content;
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	border: 2px solid transparent;
	border-radius: var(--wp--custom--radius--full);
	appearance: none;
	background-color: var(--sp-text);
	color: var(--wp--preset--color--base);
	font-family: inherit;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
	cursor: pointer;
	transition: filter var(--wp--custom--transition);
	transform: none;
}
:where(.wp-site-blocks, .editor-styles-wrapper)
	:where(input[type="submit"]:not(.wp-element-button, .gform_button)):hover,
:where(.wp-site-blocks, .editor-styles-wrapper)
	:where(
		input[type="submit"]:not(.wp-element-button, .gform_button)
	):focus-visible {
	filter: brightness(80%) contrast(120%) saturate(160%);
}

/**
 * Palette for plugin markup. AffiliateWP and Easy Digital Downloads hard-code
 * their colors (no CSS variables), so their statuses, lines and surfaces are
 * mapped to these brand variables, set once here and used by both stylesheets.
 * Plugin stylesheets use these roles, never the preset colors directly.
 */
:root {
	--sp-success-bg: var(--wp--preset--color--primary-lightest);
	--sp-success-fg: var(--wp--preset--color--primary-dark);
	--sp-warning-bg: var(--wp--preset--color--tertiary-lightest);
	--sp-warning-fg: var(--wp--preset--color--tertiary-dark);
	--sp-danger-bg: var(--wp--preset--color--quinary-lightest);
	--sp-danger-fg: var(--wp--preset--color--quinary-dark);
	--sp-danger-accent: var(--wp--preset--color--quinary);
	--sp-notice-bg: var(--wp--preset--color--primary-lightest);
	--sp-notice-fg: var(--wp--preset--color--contrast);
	--sp-neutral-bg: var(--wp--preset--color--contrast-faint);
	--sp-neutral-fg: var(--wp--preset--color--contrast);
	--sp-border: var(--wp--preset--color--contrast-strong);
	--sp-line: var(--wp--preset--color--contrast-medium);
	--sp-text: var(--wp--preset--color--contrast);
	--sp-muted: var(--wp--preset--color--contrast-light);
	--sp-surface: var(--wp--preset--color--base);
	--sp-card: var(--wp--preset--color--base-alt);
	--sp-ground: var(--wp--preset--color--base);
}

.has-base-alt-background-color {
	--sp-ground: var(--sp-card);
}

/**
 * Header
 *
 * The menu sits in a group with Creator's .flex-scroll class so it scrolls
 * sideways. These rules cover what block settings can't.
 */
.site-header .flex-scroll {
	min-width: 0;
	padding: 8px 0;
	margin-block: -8px;
}
@media (max-width: 781px) {
	.site-header .flex-scroll {
		flex: 1 0 100%;
		order: 1;
		margin-inline: calc(-1 * var(--wp--style--root--padding-left));
		padding-inline: var(--wp--style--root--padding-left);
	}
}

/**
 * Search
 *
 * Both search styles are a pill: the wrapper carries the border, the field
 * inside it is transparent. Font size, and the border on the search with the
 * button inside, come from core/search in theme.json. The search block has no
 * padding settings and no settings for the field, and on the icon-only search
 * its border settings land on the button and field instead of the wrapper,
 * so the rest lives here.
 */
.wp-block-search__inside-wrapper {
	background-color: var(--wp--preset--color--base);
}
.wp-block-search__inside-wrapper:has(.wp-block-search__input:focus-visible) {
	outline: 3px solid var(--wp--preset--color--contrast);
	outline-offset: 2px;
}

.wp-block-search__input {
	padding-block: 0;
	padding-inline: var(--wp--preset--spacing--40);
	background-color: transparent;
	color: inherit;
}
.wp-block-search__input:focus-visible {
	outline: none;
}

.wp-block-search__button-inside .wp-block-search__inside-wrapper {
	padding: var(--wp--preset--spacing--20);
}
.wp-block-search__button-inside
	.wp-block-search__inside-wrapper
	.wp-block-search__input {
	min-height: 2.75rem;
}

.wp-block-search__button-only .wp-block-search__inside-wrapper {
	border: 1px solid var(--wp--preset--color--contrast-strong);
	border-radius: var(--wp--custom--radius--full);
}
.wp-block-search__button-only .wp-block-search__input,
.wp-block-search__button-only .wp-block-search__button {
	border: 0;
}
.wp-block-search__button-only .wp-block-search__button {
	padding: calc(
		(
				1.3 * var(--wp--preset--font-size--medium) + 2 *
					var(--wp--preset--spacing--30) + 4px - 24px - 2px
			) /
			2
	);
}

/**
 * Account link (header)
 *
 * A one-link Navigation block, so its font, weight, colour and hover underline
 * come from the Navigation block styles in theme.json, like the menu. Blocks
 * have no setting for an icon on a navigation link or for hiding the label at
 * a breakpoint, so only those live here.
 *
 * Below 1100px only the icon shows (the label stays for screen readers): with
 * the label, the search drops to its own row below about 1070px.
 *
 * Icon: Font Awesome Pro 7.3.1 "user" (Light). Fonticons, Inc., Commercial
 * License (https://fontawesome.com/license). The viewBox is cropped to the
 * glyph, so the 20px height is the person itself; its lines draw 1.25px.
 */
.custom-account-link {
	flex-shrink: 0;
}
.custom-account-link .wp-block-navigation-item__content {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
}
.custom-account-link .wp-block-navigation-item__content::before {
	content: "";
	height: 1.25rem;
	aspect-ratio: 448/512;
	flex-shrink: 0;
	background-color: currentColor;
	mask: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='96 64 448 512'><path d='M224 192C224 139 267 96 320 96C373 96 416 139 416 192C416 245 373 288 320 288C267 288 224 245 224 192zM448 192C448 121.3 390.7 64 320 64C249.3 64 192 121.3 192 192C192 262.7 249.3 320 320 320C390.7 320 448 262.7 448 192zM128 544C128 464.5 192.5 400 272 400L368 400C447.5 400 512 464.5 512 544L512 560C512 568.8 519.2 576 528 576C536.8 576 544 568.8 544 560L544 544C544 446.8 465.2 368 368 368L272 368C174.8 368 96 446.8 96 544L96 560C96 568.8 103.2 576 112 576C120.8 576 128 568.8 128 560L128 544z'/></svg>")
		center/contain no-repeat;
}
@media (max-width: 1099px) {
	.custom-account-link .wp-block-navigation-item__content {
		justify-content: center;
		min-width: 2.75rem;
		min-height: 2.75rem;
	}
	.custom-account-link .wp-block-navigation-item__label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}
}

/**
 * Price suffix and old price
 */
.custom-price small {
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
	letter-spacing: 0;
}

.custom-sale-price s {
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
	opacity: 0.6;
	margin-right: var(--wp--preset--spacing--20);
}

/**
 * Logo rows
 */
.custom-logos-on-dark img {
	filter: brightness(0) invert(1);
	opacity: 0.92;
}

.custom-logos-on-dark,
.custom-logos-muted {
	align-items: center;
	justify-items: center;
}

.custom-logos-muted img {
	filter: grayscale(1);
	opacity: 0.7;
}

/**
 * About hero mark
 *
 * The About hero group (.custom-hero-mark) has the Small Plugins mark as a
 * background image (a block setting). On phones the text fills the width and
 * runs over the mark, so the background is dropped there. !important beats the
 * block setting's inline style.
 */
@media (max-width: 781px) {
	.custom-hero-mark {
		background-image: none !important;
	}
}
/**
 * Long Text in the post editor
 *
 * On the front end, Post Content > Long Text (styles/long-text.json) sizes article headings.
 * The post editor's canvas has no Post Content block around it, so that style never reaches it;
 * this repeats it there. Both read the same theme.json value (settings.custom.longText), so
 * change article sizes in theme.json only.
 */
.editor-styles-wrapper.post-type-post
	.is-root-container.wp-block-post-content
	:where(h2),
.editor-styles-wrapper.post-type-download
	.is-root-container.wp-block-post-content
	:where(h2),
.editor-styles-wrapper.post-type-guide
	.is-root-container.wp-block-post-content
	:where(h2),
.editor-styles-wrapper.post-type-doc
	.is-root-container.wp-block-post-content
	:where(h2) {
	font-size: var(--wp--custom--long-text--h-2);
}
.editor-styles-wrapper.post-type-post .editor-post-title,
.editor-styles-wrapper.post-type-download .editor-post-title,
.editor-styles-wrapper.post-type-guide .editor-post-title,
.editor-styles-wrapper.post-type-doc .editor-post-title {
	font-size: var(--wp--preset--font-size--xx-large);
}

/**
 * Docs content
 *
 * Spacing and inline code inside a doc's content (.custom-doc-content).
 */
.custom-doc-content > h2 {
	margin-block-start: var(--wp--preset--spacing--60);
}
.custom-doc-content code {
	font-size: 0.9em;
	background-color: var(--wp--preset--color--contrast-faint);
	padding: 0.1em 0.35em;
	border-radius: 4px;
}

.custom-jump-bar > .flex-scroll {
	margin: 0;
	padding-inline: max(
		var(--wp--style--root--padding-left),
		(100% - var(--wp--style--global--wide-size)) / 2
	);
}

.custom-plan-pill .wp-block-small-plugins-primary-term {
	display: inline-block;
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--40);
	border: 1.5px solid var(--wp--preset--color--contrast);
	border-radius: 9999px;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
}

.custom-plan-pill .wp-block-small-plugins-primary-term {
	transition:
		background-color var(--wp--custom--transition),
		border-color var(--wp--custom--transition),
		color var(--wp--custom--transition);
}

.custom-plan-pill .wp-block-small-plugins-primary-term:hover,
.custom-plan-pill .wp-block-small-plugins-primary-term:focus {
	background: var(--wp--preset--color--contrast-light);
	border-color: var(--wp--preset--color--contrast-light);
	color: var(--wp--preset--color--base);
}

/**
 * Guide video
 *
 * The video is sticky beside the transcript (a block setting). On phones the
 * columns stack, so it stops sticking rather than cover the transcript.
 */
@media (max-width: 781px) {
	.wp-block-group.custom-sticky-video {
		position: static;
	}
}
.custom-guide-content > * + h2 {
	margin-block-start: var(--wp--preset--spacing--60);
}

/**
 * Account nav
 *
 * The account Navigation block (.custom-account-nav): gap and weight are block
 * settings. These rules mark the current page, set Log out apart and lay the
 * links out in a row on phones. The nav sits in the Account Navigation synced
 * pattern (4304); its links point at the account pages by ID.
 */
.custom-account-nav a {
	padding-block: var(--wp--preset--spacing--20);
}
.custom-account-nav a[aria-current="page"] {
	font-weight: 800;
	text-decoration-line: underline;
	text-decoration-color: var(--wp--preset--color--quinary);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}
.custom-account-nav .wp-block-navigation__container {
	width: 100%;
}
.custom-account-nav .wp-block-loginout {
	align-self: stretch;
	margin-block-start: var(--wp--preset--spacing--20);
	padding-block-start: calc(2 * var(--wp--preset--spacing--20));
	border-block-start: 1px solid var(--wp--preset--color--contrast-strong);
}
@media (min-width: 782px) {
	.custom-account-nav li:first-child a {
		padding-block-start: 0;
	}
}
@media (max-width: 781px) {
	.custom-account-nav .wp-block-navigation {
		flex-direction: row;
		flex-wrap: nowrap;
		align-items: center;
		gap: var(--wp--preset--spacing--40);
		margin-inline: calc(-1 * var(--wp--style--root--padding-left));
		padding-inline: var(--wp--style--root--padding-left);
		overflow-x: auto;
		scrollbar-width: none;
		white-space: nowrap;
	}
	.custom-account-nav ul.wp-block-navigation__container {
		flex-direction: row;
		flex-wrap: nowrap;
		flex-shrink: 0;
		gap: 0 var(--wp--preset--spacing--40);
		width: max-content;
		margin: 0;
		padding: 0;
	}
	.custom-account-nav .wp-block-loginout {
		flex-shrink: 0;
		margin-block-start: 0;
		padding-block-start: 0;
		border: 0;
	}
}

/**
 * Account pages
 *
 * Overview links (.custom-account-links): outlined cards, each one link. The
 * heading's link covers the whole card and carries the arrow.
 *
 * Downloads (.custom-account-downloads): EDD's [downloads] shortcode, limited
 * to the plugins the member's All Access pass covers. Its old markup has no
 * block settings, so it's laid out here as a list of outlined cards like the
 * license cards. The price options EDD prints with Download Now (one per
 * price of a Pro plugin) are hidden: every price downloads the same plugin.
 * Buttons are styled in plugins/edd.scss (it loads here for the User
 * Downloads block, and its button rules outrank this file).
 *
 * Everyone else gets EDD's User Downloads block (files from their own orders).
 * Its cards, and hiding it for members, are in plugins/edd.scss.
 */
.wp-block-column > script:first-child + * {
	margin-block-start: 0;
}

.custom-account-links > * {
	position: relative;
	padding: var(--wp--preset--spacing--50);
	border: 1.5px solid var(--sp-border);
	border-radius: var(--wp--custom--radius--medium);
	box-shadow: none;
	transition:
		border-color var(--wp--custom--transition),
		background-color var(--wp--custom--transition);
}
.custom-account-links > * :where(h2, h3) a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--30);
	color: inherit;
	text-decoration: none;
}
.custom-account-links > * :where(h2, h3) a::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}
.custom-account-links > * :where(h2, h3) a::after {
	content: "";
	flex-shrink: 0;
	width: 0.875em;
	aspect-ratio: 1;
	background-color: currentColor;
	mask: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'><path d='M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z'/></svg>")
		center/contain no-repeat;
	transition: translate var(--wp--custom--transition);
}
.custom-account-links > *:hover,
.custom-account-links > *:focus-within {
	border-color: var(--sp-text);
	background-color: var(--sp-card);
}
.custom-account-links > *:hover :where(h2, h3) a::after,
.custom-account-links > *:focus-within :where(h2, h3) a::after {
	translate: 0.2em 0;
}
.custom-account-links > *:focus-within {
	outline: 2px solid var(--sp-text);
	outline-offset: 2px;
}
.custom-account-links > * :where(h2, h3) a:focus-visible {
	outline: 0;
}

.custom-account-downloads .edd_downloads_list {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--wp--preset--spacing--30);
	margin: 0;
}
.custom-account-downloads .edd_downloads_list::after {
	content: none;
}
.custom-account-downloads .edd_download {
	float: none;
	width: auto !important;
	margin: 0;
	padding: 0;
}
.custom-account-downloads .edd_download_inner {
	display: grid;
	grid-template-columns: 3rem 1fr auto;
	align-items: center;
	gap: var(--wp--preset--spacing--40);
	margin: 0;
	padding: var(--wp--preset--spacing--40);
	border: 1.5px solid var(--sp-border);
	border-radius: var(--wp--custom--radius--medium);
}
.custom-account-downloads .edd_download_image {
	margin: 0;
}
.custom-account-downloads .edd_download_image img {
	display: block;
	width: 3rem;
	height: 3rem;
	border-radius: var(--wp--custom--radius--small);
	object-fit: cover;
}
.custom-account-downloads .edd_download_title {
	margin: 0;
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.3;
}
.custom-account-downloads .edd_download_title a {
	color: inherit;
	text-decoration: none;
}
.custom-account-downloads .edd_download_title a:hover,
.custom-account-downloads .edd_download_title a:focus-visible {
	text-decoration-line: underline;
	text-decoration-color: var(--wp--preset--color--quinary);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}
.custom-account-downloads .edd_download_buy_button {
	margin: 0;
	color: var(--sp-muted);
	font-size: var(--wp--preset--font-size--x-small);
	text-align: end;
}
.custom-account-downloads .edd_download_buy_button form {
	margin: 0;
}
.custom-account-downloads .edd_price_options,
.custom-account-downloads .edd_price_option_sep {
	display: none;
}
.custom-account-downloads .edd_purchase_submit_wrapper {
	margin: 0;
}
.custom-account-downloads .custom-account-downloads__more:not(:first-child) {
	margin-block-start: var(--wp--preset--spacing--40);
}
.custom-account-downloads .custom-account-downloads__more {
	font-size: var(--wp--preset--font-size--small);
}
.custom-account-downloads .edd-loading,
.custom-account-downloads .edd-cart-ajax-alert {
	display: none;
}
@media (max-width: 599px) {
	.custom-account-downloads .edd_download_inner {
		grid-template-columns: 3rem 1fr;
		row-gap: var(--wp--preset--spacing--20);
	}
	.custom-account-downloads .edd_download_buy_button {
		grid-column: 2;
		text-align: start;
	}
}

/**
 * Use cases icon cluster
 *
 * Columns and gap are grid block settings; this right-aligns the grid and
 * staggers the middle column.
 */
.custom-icon-cluster {
	justify-content: end;
}
.custom-icon-cluster .wp-block-image:nth-child(3n + 2) {
	transform: translateY(calc(var(--wp--preset--spacing--40) * -1));
}

/**
 * Guide prev/next
 *
 * Previous and next guide links under a guide (.custom-guide-nav).
 */
.custom-guide-nav {
	grid-template-columns: 1fr 1fr;
	gap: var(--wp--preset--spacing--60);
}
.custom-guide-nav > .wp-block-post-navigation-link {
	border-top: 2px solid var(--wp--preset--color--contrast);
	padding-top: var(--wp--preset--spacing--30);
}
.custom-guide-nav > .post-navigation-link-next {
	text-align: right;
}
.custom-guide-nav > .post-navigation-link-next .post-navigation-link__label {
	justify-content: flex-end;
}
.custom-guide-nav
	.post-navigation-link-previous
	.post-navigation-link__label::before,
.custom-guide-nav
	.post-navigation-link-next
	.post-navigation-link__label::after {
	content: "";
	width: 0.875em;
	height: 0.875em;
	background: currentColor;
	mask: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'><path d='M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z'/></svg>")
		center/contain no-repeat;
}
.custom-guide-nav
	.post-navigation-link-previous
	.post-navigation-link__label::before {
	rotate: 180deg;
}
.custom-guide-nav a:hover,
.custom-guide-nav a:focus {
	text-decoration: underline;
}
.custom-guide-nav .post-navigation-link__label {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--10, 0.25rem);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	color: var(--wp--preset--color--contrast-light);
}
.custom-guide-nav a {
	font-weight: 700;
	text-decoration: none;
	text-wrap: balance;
}
@media (max-width: 600px) {
	.custom-guide-nav {
		grid-template-columns: 1fr;
		gap: var(--wp--preset--spacing--40);
	}
	.custom-guide-nav > .post-navigation-link-next {
		text-align: left;
	}
	.custom-guide-nav > .post-navigation-link-next .post-navigation-link__label {
		justify-content: flex-start;
	}
}

/**
 * Playlist list and rows
 */
.custom-rows-lined > * {
	border-top: 1px solid var(--wp--preset--color--contrast-medium);
}

.custom-rows-lined {
	gap: 0;
}

.custom-nowrap {
	flex-shrink: 0;
	white-space: nowrap;
}

.custom-numbered-rows {
	--custom-number-size: 2rem;
	counter-reset: custom-row;
}

.custom-numbered-rows > li {
	counter-increment: custom-row;
	position: relative;
	padding-left: calc(
		var(--custom-number-size) + var(--wp--preset--spacing--40)
	);
}

.custom-numbered-rows > li::before {
	content: counter(custom-row);
	position: absolute;
	top: var(--wp--preset--spacing--50);
	left: 0;
	display: grid;
	place-items: center;
	width: var(--custom-number-size);
	height: var(--custom-number-size);
	border-radius: 50%;
	background: var(--wp--preset--color--base-alt);
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 800;
	line-height: 1;
}

.custom-numbered-rows--small {
	--custom-number-size: 1.75rem;
}

.custom-numbered-rows--small > li {
	padding-left: calc(
		var(--custom-number-size) + var(--wp--preset--spacing--30)
	);
}

.custom-numbered-rows--small > li::before {
	top: 50%;
	translate: 0 -50%;
	background: var(--wp--preset--color--base);
}

.custom-numbered-rows--small
	> li:has(.custom-you-are-here:not(:empty))::before {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

.custom-you-are-here {
	margin: 0;
	padding: var(--wp--preset--spacing--10, 0.25rem)
		var(--wp--preset--spacing--30);
	border-radius: 9999px;
	background: var(--wp--preset--color--contrast-faint);
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
}

.custom-card-buttons-bottom > .wp-block-buttons {
	margin-top: auto;
}

.custom-icon-stack .wp-block-small-plugins-category-labels {
	display: flex;
	flex-shrink: 0;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--20);
}

.custom-icon-stack img {
	display: block;
	height: 36px;
	width: 36px;
}

.custom-plugin-chips .wp-block-small-plugins-category-labels {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--20);
}

.custom-plugin-chips .wp-block-small-plugins-all-terms {
	display: inline-flex;
	align-items: center;
	gap: var(--wp--preset--spacing--20);
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
	border: 1px solid var(--wp--preset--color--contrast-medium);
	border-radius: 9999px;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
}
.custom-plugin-chips .wp-block-small-plugins-all-terms:hover,
.custom-plugin-chips .wp-block-small-plugins-all-terms:focus-visible {
	text-decoration: underline;
}
.custom-plugin-chips .wp-block-small-plugins-all-terms img {
	flex: none;
	height: 24px;
	width: 24px;
}

@media (max-width: 781px) {
	.custom-playlist-row {
		flex-wrap: wrap !important;
	}
}
.custom-numbered-rows--tan > li::before {
	top: 50%;
	translate: 0 -50%;
	background: var(--wp--preset--color--base-alt);
}

.custom-hide-if-empty:not(:has(.wp-block-post)) {
	display: none;
}

main:has(.wp-block-terms-query li) .custom-guides-coming-soon {
	display: none;
}

.custom-row-list {
	gap: 0;
	border-top: 1px solid var(--wp--preset--color--contrast-medium);
}
.custom-row-list > li {
	margin: 0;
	border-bottom: 1px solid var(--wp--preset--color--contrast-medium);
}

/**
 * Free vs Pro table
 */
.custom-compare th,
.custom-compare td {
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	border-bottom: 1px solid var(--wp--preset--color--contrast-medium);
	text-align: left;
}

.custom-compare th:not(:first-child),
.custom-compare td:not(:first-child) {
	text-align: center;
	width: 8.5rem;
}

.custom-compare thead th {
	font-weight: 800;
}

@media (max-width: 600px) {
	.custom-compare th,
	.custom-compare td {
		padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--20);
		font-size: var(--wp--preset--font-size--small);
	}
	.custom-compare th:not(:first-child),
	.custom-compare td:not(:first-child) {
		width: 3.25rem;
		padding-inline: 0;
	}
}
.custom-compare th:first-child,
.custom-compare td:first-child {
	padding-left: 0;
}

figure.custom-compare {
	margin: 0;
}

.custom-compare-card {
	--sp-compare-line: 1px solid var(--wp--preset--color--contrast-medium);
	--sp-compare-radius: 16px;
	border-width: 0 !important;
	border-radius: 0 !important;
}
.custom-compare-card .has-contrast-light-color,
.custom-compare-card .has-primary-dark-color {
	color: var(--wp--preset--color--contrast) !important;
}
.custom-compare-card .has-contrast-lightest-color {
	color: var(--wp--preset--color--contrast-strongest) !important;
}

.wp-block-group.custom-compare-grid {
	grid-template-columns: minmax(0, 1fr) repeat(2, minmax(3.5rem, 6rem));
	gap: 0;
}
.wp-block-group.custom-compare-grid > :nth-child(3n + 2),
.wp-block-group.custom-compare-grid > :nth-child(3n + 3) {
	display: grid;
	place-items: center;
}
.wp-block-group.custom-compare-grid > :nth-child(-n + 3) {
	padding-top: 0 !important;
	padding-bottom: var(--wp--preset--spacing--20) !important;
	border-bottom-width: 0 !important;
	background-color: transparent !important;
}
.wp-block-group.custom-compare-grid > :nth-child(n + 4):nth-child(-n + 6) {
	border-top: var(--sp-compare-line) !important;
}
.wp-block-group.custom-compare-grid > :nth-child(3n + 1):nth-child(n + 4) {
	border-left: var(--sp-compare-line) !important;
}
.wp-block-group.custom-compare-grid > :nth-child(3n):nth-child(n + 4) {
	border-right: var(--sp-compare-line) !important;
}
.wp-block-group.custom-compare-grid > :nth-last-child(-n + 3) {
	border-bottom: var(--sp-compare-line) !important;
}
.wp-block-group.custom-compare-grid > :nth-child(4) {
	border-top-left-radius: var(--sp-compare-radius);
}
.wp-block-group.custom-compare-grid > :nth-child(6) {
	border-top-right-radius: var(--sp-compare-radius);
}
.wp-block-group.custom-compare-grid > :nth-last-child(3) {
	border-bottom-left-radius: var(--sp-compare-radius);
}
.wp-block-group.custom-compare-grid > :last-child {
	border-bottom-right-radius: var(--sp-compare-radius);
}

@media (max-width: 600px) {
	.wp-block-group.custom-compare-grid > * {
		padding-inline: var(--wp--preset--spacing--30) !important;
	}
}
/**
 * Doc collapsible on phones
 *
 * "On this page" (.custom-collapse-mobile): always open on desktop, a toggle on phones.
 */
.custom-collapse-mobile > summary {
	list-style: none;
}
.custom-collapse-mobile > summary::-webkit-details-marker {
	display: none;
}
.custom-collapse-mobile > summary p {
	margin: 0;
}

.custom-collapse-mobile .simpletoc-list {
	margin: 0;
}
.custom-collapse-mobile .simpletoc-list li + li {
	margin-block-start: var(--wp--preset--spacing--20);
}

@media (min-width: 782px) {
	.custom-collapse-mobile > summary {
		pointer-events: none;
		margin-bottom: var(--wp--preset--spacing--30);
	}
}
@media (max-width: 781px) {
	.custom-collapse-mobile {
		border: 1px solid var(--wp--preset--color--contrast-medium);
		border-radius: var(--wp--custom--radius--small);
		padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50);
	}
	.custom-collapse-mobile > summary {
		display: flex;
		justify-content: space-between;
		align-items: center;
		cursor: pointer;
	}
	.custom-collapse-mobile > summary::after {
		content: "−";
		font-weight: 700;
		font-size: var(--wp--preset--font-size--large);
		line-height: 1;
	}
	.custom-collapse-mobile:not([open]) > summary::after {
		content: "+";
	}
	.custom-collapse-mobile[open] > summary {
		margin-bottom: var(--wp--preset--spacing--30);
	}
}
/**
 * Images in rows and grids
 *
 * No stray gap under images placed in flex rows and grids.
 */
.is-layout-grid > .wp-block-image img,
.is-layout-flex > .wp-block-image img {
	display: block;
}

/**
 * Separators on dark
 */
.has-contrast-background-color .wp-block-separator {
	border-top-color: var(--wp--preset--color--base-strong);
}

/**
 * Plugin pills
 *
 * Query loops of plugin pills (.custom-plugin-pills): the post template has
 * list and grid layouts only, so the wrapping row is set here.
 */
.custom-plugin-pills .wp-block-post-template {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--20);
}
.custom-plugin-pills .wp-block-post-template > * {
	margin-block-start: 0;
}

/**
 * Scroll rows
 *
 * Rows with Creator's .flex-scroll class that sit inside a padded section
 * (e.g. the category buttons on Articles and Plugins). On tablets and phones the
 * row runs to both screen edges, while Creator's padding keeps the first item
 * lined up with the content.
 */
@media (max-width: 1023px) {
	.custom-scroll-bleed {
		margin-inline: calc(-1 * var(--wp--style--root--padding-left));
	}
}

/**
 * Comment form
 *
 * What the Comments Form block can't set: the required-field asterisks in the
 * brand pink, and Name and Email side by side on wider screens.
 */
.comment-form .required {
	color: var(--wp--preset--color--quinary);
}

@media (min-width: 782px) {
	.comment-form {
		display: grid;
		grid-template-columns: 1fr 1fr;
		column-gap: var(--wp--preset--spacing--40);
	}
	.comment-form > * {
		grid-column: 1/-1;
	}
	.comment-form > .comment-form-author {
		grid-column: 1;
	}
	.comment-form > .comment-form-email {
		grid-column: 2;
	}
}
.bypostauthor > .custom-comment {
	padding-inline: var(--wp--preset--spacing--40);
	border-radius: 24px;
	background-color: var(--wp--preset--color--base-alt);
}

.wp-block-comment-content > p {
	margin-block: 0;
}
.wp-block-comment-content > p + p {
	margin-top: var(--wp--preset--spacing--30);
}

/**
 * Jump to Comments (post byline)
 *
 * A comment icon (Font Awesome "comment", regular) before the count. The block
 * has no icon setting, so it's drawn as a mask in the link's text color.
 */
.wp-block-small-plugins-jump-to-comments .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: var(--wp--preset--spacing--20);
}
.wp-block-small-plugins-jump-to-comments .wp-block-button__link::before {
	content: "";
	flex: none;
	width: 1.1em;
	height: 1.1em;
	background-color: currentColor;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M123.6 391.3c12.9-9.4 29.6-11.8 44.6-6.4c26.5 9.6 56.2 15.1 87.8 15.1c124.7 0 208-80.5 208-160s-83.3-160-208-160S48 160.5 48 240c0 32 12.4 62.8 35.7 89.2c8.6 9.7 12.8 22.5 11.8 35.5c-1.4 18.1-5.7 34.7-11.3 49.4c17-7.9 31.1-16.7 39.4-22.7zM21.2 431.9c1.8-2.7 3.5-5.4 5.1-8.1c10-16.6 19.5-38.4 21.4-62.9C17.7 326.8 0 285.1 0 240C0 125.1 114.6 32 256 32s256 93.1 256 208s-114.6 208-256 208c-37.1 0-72.3-6.4-104.1-17.9c-11.9 8.7-31.3 20.6-54.3 30.6c-15.1 6.6-32.3 12.6-50.1 16.1c-.8 .2-1.6 .3-2.4 .5c-4.4 .8-8.7 1.5-13.2 1.9c-.2 0-.5 .1-.7 .1c-5.1 .5-10.2 .8-15.3 .8c-6.5 0-12.3-3.9-14.8-9.9c-2.5-6-1.1-12.8 3.4-17.4c4.1-4.2 7.8-8.7 11.3-13.5c1.7-2.3 3.3-4.6 4.8-6.9l.3-.5z'/%3E%3C/svg%3E")
		center/contain no-repeat;
}

/**
 * Byline (parts/byline.html)
 *
 * "By Lauren Gray, founder of Small Plugins" is three blocks in a flex row,
 * so on narrow screens each piece wrapped on its own. Flow them as one line
 * of text instead so the whole phrase wraps naturally. The extra class beats
 * core's "body .is-layout-flex".
 */
.wp-block-group.custom-byline-name {
	display: block;
}
.wp-block-group.custom-byline-name > * {
	display: inline;
	margin: 0;
}

/**
 * Post Type Label (search results pill)
 *
 * The whole pill links to the post type's archive. Hover and focus use Creator's
 * button filter, so it darkens like every other filled or outlined button.
 */
.wp-block-small-plugins-post-type-label:has(> a) {
	transition: filter var(--wp--custom--transition);
}
.wp-block-small-plugins-post-type-label:has(> a) > a {
	text-decoration: none;
}
.wp-block-small-plugins-post-type-label:has(> a):hover,
.wp-block-small-plugins-post-type-label:has(> a):has(> a:focus-visible) {
	filter: brightness(80%) contrast(120%) saturate(160%);
}

/* Gravity Forms (Orbital): colors, sizes and input radius come from the
   "Gravity Forms: Default styles" WPCode snippet. Here: the button matches
   the site's main buttons (a bold pill), and spacing uses theme presets.
   Labels are hidden on our forms, so rows sit closer together.
   Doubled class: Gravity Forms' foundation CSS loads after ours and sets the
   same variables on .gform-theme--foundation, so a single class loses. */
.gform-theme--orbital.gform-theme--foundation {
	--gf-ctrl-btn-radius: 9999px;
	--gf-ctrl-textarea-radius: var(--wp--custom--radius--small);
	--gf-ctrl-btn-font-weight: 700;
	--gf-ctrl-btn-font-size: var(--wp--preset--font-size--small);
	--gf-form-gap-x: var(--wp--preset--spacing--30);
	--gf-form-gap-y: var(--wp--preset--spacing--30);
	--gf-field-gap-x: var(--wp--preset--spacing--30);
	--gf-field-gap-y: var(--wp--preset--spacing--30);
	--gf-form-footer-margin-y-start: var(--wp--preset--spacing--40);
}

/**
 * AffiliateWP
 *
 * Only what's particular to AffiliateWP. The brand reset (fields, checkboxes,
 * buttons) is the shared plugin-base mixin, colors are the shared palette
 * roles (base/_mixins.scss, base/_palette.scss). Read top to bottom:
 *
 *   1. Base         plugin-base inside $affwp, plus AffiliateWP's legends and
 *                   field spacing
 *   2. Components   notices, dashboard tabs, cards, tables, creatives, pop-up
 *   3. Color roles  AffiliateWP's status and line colors mapped to roles
 *
 * Two scopes: $affwp (forms, dashboard, pop-up) for everything inside them,
 * $affwp-anywhere for notices and badges, which also print outside them.
 * A new AffiliateWP screen should be covered by Base and Color roles.
 */
/* 1. Base ------------------------------------------------------------------- */
:is(.affwp-form, #affwp-affiliate-dashboard, .fancybox__container) fieldset {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}
:is(.affwp-form, #affwp-affiliate-dashboard, .fancybox__container)
	input:not(
		[type="checkbox"],
		[type="radio"],
		[type="submit"],
		[type="hidden"],
		[type="button"]
	),
:is(.affwp-form, #affwp-affiliate-dashboard, .fancybox__container) textarea,
:is(.affwp-form, #affwp-affiliate-dashboard, .fancybox__container) select {
	box-sizing: border-box;
	width: 100%;
	min-height: 2.75rem;
	margin: 0;
	padding: var(--wp--preset--spacing--30) 1.5rem;
	border: 1px solid var(--sp-border);
	border-radius: var(--wp--custom--radius--full);
	background-color: var(--sp-surface);
	box-shadow: none;
	color: var(--sp-text);
	font: inherit;
	font-size: var(--wp--preset--font-size--medium);
}
:is(.affwp-form, #affwp-affiliate-dashboard, .fancybox__container) textarea {
	border-radius: var(--wp--custom--radius--small);
}
:is(.affwp-form, #affwp-affiliate-dashboard, .fancybox__container) select {
	appearance: none;
	padding-inline-end: 2.75rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314293c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-position: right 1.25rem center;
	background-repeat: no-repeat;
	background-size: 1rem;
}
:is(.affwp-form, #affwp-affiliate-dashboard, .fancybox__container)
	input[type="checkbox"],
:is(.affwp-form, #affwp-affiliate-dashboard, .fancybox__container)
	input[type="radio"] {
	flex-shrink: 0;
	width: 1.25rem;
	height: 1.25rem;
	margin: 0;
	accent-color: var(--sp-text);
}
:is(.affwp-form, #affwp-affiliate-dashboard, .fancybox__container)
	label:has(> input[type="checkbox"], > input[type="radio"]),
:is(.affwp-form, #affwp-affiliate-dashboard, .fancybox__container)
	:has(> input[type="checkbox"] + label, > input[type="radio"] + label) {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: var(--wp--preset--spacing--20);
}
:is(.affwp-form, #affwp-affiliate-dashboard, .fancybox__container)
	label:has(> input[type="checkbox"], > input[type="radio"]),
:is(.affwp-form, #affwp-affiliate-dashboard, .fancybox__container)
	:has(> input[type="checkbox"] + label, > input[type="radio"] + label)
	> label {
	font-weight: 400;
}
:is(.affwp-form, #affwp-affiliate-dashboard, .fancybox__container)
	:has(> input[type="checkbox"] + label, > input[type="radio"] + label)
	> label {
	margin: 0;
}
:is(.affwp-form, #affwp-affiliate-dashboard, .fancybox__container)
	input[type="submit"],
:is(.affwp-form, #affwp-affiliate-dashboard, .fancybox__container)
	button[type="submit"],
:is(.affwp-form, #affwp-affiliate-dashboard, .fancybox__container)
	button.button,
:is(.affwp-form, #affwp-affiliate-dashboard, .fancybox__container) a.button,
:is(.affwp-form, #affwp-affiliate-dashboard, .fancybox__container)
	.affwp-button:not(.affwp-button--as-text),
:is(.affwp-form, #affwp-affiliate-dashboard, .fancybox__container)
	.affwp-button.button,
:is(.affwp-form, #affwp-affiliate-dashboard, .fancybox__container)
	.affwp-affiliate-link-copy-link,
:is(.affwp-form, #affwp-affiliate-dashboard, .fancybox__container)
	a.affwp-stripe-payouts__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	box-sizing: border-box;
	width: auto;
	min-height: 2.75rem;
	max-block-size: max-content;
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	border: 2px solid transparent;
	border-radius: var(--wp--custom--radius--full);
	appearance: none;
	background-color: var(--sp-text);
	color: var(--wp--preset--color--base);
	font-family: inherit;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
	cursor: pointer;
	transition: filter var(--wp--custom--transition);
	transform: none;
}
:is(.affwp-form, #affwp-affiliate-dashboard, .fancybox__container)
	input[type="submit"]:hover,
:is(.affwp-form, #affwp-affiliate-dashboard, .fancybox__container)
	input[type="submit"]:focus-visible,
:is(.affwp-form, #affwp-affiliate-dashboard, .fancybox__container)
	button[type="submit"]:hover,
:is(.affwp-form, #affwp-affiliate-dashboard, .fancybox__container)
	button[type="submit"]:focus-visible,
:is(.affwp-form, #affwp-affiliate-dashboard, .fancybox__container)
	button.button:hover,
:is(.affwp-form, #affwp-affiliate-dashboard, .fancybox__container)
	button.button:focus-visible,
:is(.affwp-form, #affwp-affiliate-dashboard, .fancybox__container)
	a.button:hover,
:is(.affwp-form, #affwp-affiliate-dashboard, .fancybox__container)
	a.button:focus-visible,
:is(.affwp-form, #affwp-affiliate-dashboard, .fancybox__container)
	.affwp-button:not(.affwp-button--as-text):hover,
:is(.affwp-form, #affwp-affiliate-dashboard, .fancybox__container)
	.affwp-button:not(.affwp-button--as-text):focus-visible,
:is(.affwp-form, #affwp-affiliate-dashboard, .fancybox__container)
	.affwp-button.button:hover,
:is(.affwp-form, #affwp-affiliate-dashboard, .fancybox__container)
	.affwp-button.button:focus-visible,
:is(.affwp-form, #affwp-affiliate-dashboard, .fancybox__container)
	.affwp-affiliate-link-copy-link:hover,
:is(.affwp-form, #affwp-affiliate-dashboard, .fancybox__container)
	.affwp-affiliate-link-copy-link:focus-visible,
:is(.affwp-form, #affwp-affiliate-dashboard, .fancybox__container)
	a.affwp-stripe-payouts__link:hover,
:is(.affwp-form, #affwp-affiliate-dashboard, .fancybox__container)
	a.affwp-stripe-payouts__link:focus-visible {
	filter: brightness(80%) contrast(120%) saturate(160%);
}
:is(.affwp-form, #affwp-affiliate-dashboard, .fancybox__container)
	.affwp-button--as-text:not(.button) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	box-sizing: border-box;
	width: auto;
	min-height: 2.75rem;
	max-block-size: max-content;
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	border: 2px solid transparent;
	border-radius: var(--wp--custom--radius--full);
	appearance: none;
	background-color: var(--sp-text);
	color: var(--wp--preset--color--base);
	font-family: inherit;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
	cursor: pointer;
	transition: filter var(--wp--custom--transition);
	transform: none;
}
:is(.affwp-form, #affwp-affiliate-dashboard, .fancybox__container)
	.affwp-button--as-text:not(.button):hover,
:is(.affwp-form, #affwp-affiliate-dashboard, .fancybox__container)
	.affwp-button--as-text:not(.button):focus-visible {
	filter: brightness(80%) contrast(120%) saturate(160%);
}
:is(.affwp-form, #affwp-affiliate-dashboard, .fancybox__container)
	.affwp-button--as-text:not(.button) {
	border-color: currentColor;
	background-color: var(--sp-ground);
	color: var(--sp-text);
	font-weight: 600;
}
:is(.affwp-form, #affwp-affiliate-dashboard, .fancybox__container) legend {
	margin-bottom: var(--wp--preset--spacing--40);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 800;
}
:is(.affwp-form, #affwp-affiliate-dashboard, .fancybox__container)
	legend:empty {
	display: none;
}
:is(.affwp-form, #affwp-affiliate-dashboard, .fancybox__container) p,
:is(.affwp-form, #affwp-affiliate-dashboard, .fancybox__container) .affwp-wrap {
	margin-block: 0 var(--wp--preset--spacing--40);
}
:is(.affwp-form, #affwp-affiliate-dashboard, .fancybox__container)
	:has(> input[type="checkbox"] + label)
	> label,
:is(.affwp-form, #affwp-affiliate-dashboard, .fancybox__container)
	label:has(> input[type="checkbox"]) {
	font-size: var(--wp--preset--font-size--small);
}

/* 2. Components ------------------------------------------------------------- */
:is(.wp-site-blocks, .fancybox__container) .affwp-notice,
:is(.wp-site-blocks, .fancybox__container) .affwp-errors,
:is(.wp-site-blocks, .fancybox__container) .affwp-stripe-notice,
:is(.wp-site-blocks, .fancybox__container) .affwp-stripe-payouts__status {
	margin-block-end: var(--wp--preset--spacing--40);
	padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50);
	border: 0;
	border-radius: var(--wp--custom--radius--medium);
	box-shadow: none;
}
:is(.wp-site-blocks, .fancybox__container) .affwp-errors p.affwp-error {
	padding: 0;
}
:is(.wp-site-blocks, .fancybox__container) .affwp-badge {
	display: inline-block;
	padding: 0.15em 0.75em;
	border: 0;
	border-radius: var(--wp--custom--radius--full);
	box-shadow: none;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
}

#affwp-affiliate-dashboard {
	--sp-ground: var(--sp-card);
}
#affwp-affiliate-dashboard ul#affwp-affiliate-dashboard-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--20);
	margin: 0 0 var(--wp--preset--spacing--50);
}
#affwp-affiliate-dashboard ul#affwp-affiliate-dashboard-tabs li {
	flex-shrink: 0;
	padding: 0;
}
#affwp-affiliate-dashboard ul#affwp-affiliate-dashboard-tabs li a {
	display: block;
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
	border: 1px solid var(--sp-border);
	border-radius: var(--wp--custom--radius--full);
	color: var(--sp-text);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color var(--wp--custom--transition);
}
#affwp-affiliate-dashboard ul#affwp-affiliate-dashboard-tabs li a:hover,
#affwp-affiliate-dashboard
	ul#affwp-affiliate-dashboard-tabs
	li
	a:focus-visible {
	background-color: var(--sp-card);
}
#affwp-affiliate-dashboard ul#affwp-affiliate-dashboard-tabs li.active a {
	border-color: var(--sp-text);
	background-color: var(--sp-text);
	color: var(--wp--preset--color--base);
}
@media (max-width: 781px) {
	#affwp-affiliate-dashboard {
		display: flex;
		flex-direction: column;
	}
	#affwp-affiliate-dashboard ul#affwp-affiliate-dashboard-tabs {
		flex-wrap: nowrap;
		overflow-x: auto;
		margin-inline: calc(-1 * var(--wp--style--root--padding-left));
		margin-bottom: var(--wp--preset--spacing--20);
		padding-inline: var(--wp--style--root--padding-left);
		scrollbar-width: none;
	}
	#affwp-affiliate-dashboard::before {
		content: "Scroll to see the rest →";
		order: 1;
		margin-bottom: var(--wp--preset--spacing--40);
		color: var(--sp-muted);
		font-size: var(--wp--preset--font-size--x-small);
	}
	#affwp-affiliate-dashboard > *:not(ul) {
		order: 2;
	}
}
#affwp-affiliate-dashboard .affwp-card,
#affwp-affiliate-dashboard .affwp-tab-content:not(:has(.affwp-card)) {
	padding: var(--wp--preset--spacing--50);
	border: 0;
	border-radius: var(--wp--custom--radius--medium);
	box-shadow: none;
	background-color: var(--sp-card);
	margin-bottom: var(--wp--preset--spacing--40);
}
#affwp-affiliate-dashboard .affwp-card {
	padding: 0;
}
#affwp-affiliate-dashboard
	.affwp-tab-content:not(:has(.affwp-card))
	> h4:first-child {
	margin-top: 0;
}
#affwp-affiliate-dashboard
	.affwp-tab-content:not(:has(.affwp-card))
	> :last-child,
#affwp-affiliate-dashboard
	.affwp-tab-content:not(:has(.affwp-card))
	table.affwp-table:last-child {
	margin-bottom: 0;
}
#affwp-affiliate-dashboard .affwp-card__header {
	padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--50)
		var(--wp--preset--spacing--30);
}
#affwp-affiliate-dashboard .affwp-card__content,
#affwp-affiliate-dashboard .affwp-card__footer {
	padding: 0 var(--wp--preset--spacing--50) var(--wp--preset--spacing--50);
}
#affwp-affiliate-dashboard .affwp-card__header p {
	margin-block: var(--wp--preset--spacing--20) 0;
}
#affwp-affiliate-dashboard h4 {
	margin-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--40);
	font-size: var(--wp--preset--font-size--x-large);
}
#affwp-affiliate-dashboard
	input:not(
		[type="checkbox"],
		[type="radio"],
		[type="submit"],
		[type="hidden"],
		[type="button"]
	),
#affwp-affiliate-dashboard select {
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.3;
}
#affwp-affiliate-dashboard .affwp-affiliate-link__display {
	align-items: center;
}
#affwp-affiliate-dashboard #affwp-graphs-filter .tablenav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--wp--preset--spacing--30);
	margin-bottom: var(--wp--preset--spacing--40);
}
#affwp-affiliate-dashboard #affwp-graphs-filter .tablenav select {
	flex: 1 1 14rem;
	width: auto;
}
#affwp-affiliate-dashboard #affwp-affiliate-dashboard-profile-form > h4 {
	margin-top: var(--wp--preset--spacing--50);
	padding-top: var(--wp--preset--spacing--50);
	border-top: 1px solid var(--sp-line);
}
#affwp-affiliate-dashboard table.affwp-table {
	border-collapse: collapse;
	margin-block-end: var(--wp--preset--spacing--50);
}
#affwp-affiliate-dashboard table.affwp-table th,
#affwp-affiliate-dashboard table.affwp-table td {
	padding: calc(2 * var(--wp--preset--spacing--20))
		var(--wp--preset--spacing--30) calc(2 * var(--wp--preset--spacing--20)) 0;
	border: 0;
	border-bottom: 1px solid var(--sp-line);
	background: none;
	color: var(--sp-text);
}
#affwp-affiliate-dashboard table.affwp-table th {
	color: var(--sp-muted);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
#affwp-affiliate-dashboard .affwp-payout-summary__stat {
	border-radius: var(--wp--custom--radius--small);
}
#affwp-affiliate-dashboard
	.affwp-creatives-view--as-list
	.affwp-creative-preview {
	width: 4rem;
	height: 4rem;
	flex-shrink: 0;
}
#affwp-affiliate-dashboard
	.affwp-creatives-view--as-list
	.affwp-creative-preview
	img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.fancybox__container .fancybox__content {
	border-radius: var(--wp--custom--radius--medium);
	background-color: var(--sp-surface);
}
.fancybox__container .affwp-copy-textarea-content {
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	border-radius: var(--wp--custom--radius--small);
}

/* 3. Color roles ------------------------------------------------------------ */
:is(.wp-site-blocks, .fancybox__container) .affwp-badge--success,
:is(.wp-site-blocks, .fancybox__container) .affwp-stripe-notice--success,
:is(.wp-site-blocks, .fancybox__container)
	.affwp-stripe-payouts__status--connected {
	--sp-ground: var(--sp-success-bg);
	background-color: var(--sp-success-bg);
	color: var(--sp-success-fg);
}
:is(.wp-site-blocks, .fancybox__container) .affwp-badge--warning,
:is(.wp-site-blocks, .fancybox__container)
	.affwp-stripe-payouts__status--warning {
	--sp-ground: var(--sp-warning-bg);
	background-color: var(--sp-warning-bg);
	color: var(--sp-warning-fg);
}
:is(.wp-site-blocks, .fancybox__container) .affwp-badge--danger,
:is(.wp-site-blocks, .fancybox__container) .affwp-errors,
:is(.wp-site-blocks, .fancybox__container) .affwp-notice-error,
:is(.wp-site-blocks, .fancybox__container) .affwp-stripe-notice--error,
:is(.wp-site-blocks, .fancybox__container)
	.affwp-stripe-payouts__status--error {
	--sp-ground: var(--sp-danger-bg);
	background-color: var(--sp-danger-bg);
	color: var(--sp-danger-fg);
}
:is(.wp-site-blocks, .fancybox__container)
	.affwp-notice:not(.affwp-notice-error) {
	--sp-ground: var(--sp-notice-bg);
	background-color: var(--sp-notice-bg);
	color: var(--sp-notice-fg);
}
:is(.wp-site-blocks, .fancybox__container) .affwp-badge--neutral,
:is(.wp-site-blocks, .fancybox__container) .affwp-badge--info,
:is(.wp-site-blocks, .fancybox__container) .affwp-stripe-notice--info {
	--sp-ground: var(--sp-neutral-bg);
	background-color: var(--sp-neutral-bg);
	color: var(--sp-neutral-fg);
}
:is(.wp-site-blocks, .fancybox__container) .affwp-payout-summary__stat,
:is(.wp-site-blocks, .fancybox__container) .affwp-payout-method-context,
:is(.wp-site-blocks, .fancybox__container)
	.affwp-stripe-payouts__account-info-value,
:is(.wp-site-blocks, .fancybox__container)
	.affwp-form
	.affwp-field-terms-of-use-content,
:is(.wp-site-blocks, .fancybox__container) .affwp-creative pre {
	border-color: var(--sp-line);
	background-color: transparent;
	color: var(--sp-text);
}
:is(.wp-site-blocks, .fancybox__container)
	.affwp-payout-method-context--active {
	border-color: var(--sp-text);
	background-color: var(--sp-surface);
}
:is(.wp-site-blocks, .fancybox__container) .affwp-payout-summary__label,
:is(.wp-site-blocks, .fancybox__container) .affwp-payout-summary__meta,
:is(.wp-site-blocks, .fancybox__container) .affwp-custom-link-action,
:is(.wp-site-blocks, .fancybox__container) .affwp-row-action,
:is(.wp-site-blocks, .fancybox__container) .affwp-creative-subtitle,
:is(.wp-site-blocks, .fancybox__container) .affwp-creative-size,
:is(.wp-site-blocks, .fancybox__container)
	.affwp-view-switcher
	li
	.affwp-view-switcher__button,
:is(.wp-site-blocks, .fancybox__container) .affwp-link-sharing__icon svg {
	color: var(--sp-muted);
}
:is(.wp-site-blocks, .fancybox__container) .affwp-view-switcher .active svg {
	color: var(--sp-text);
	fill: currentColor;
}
:is(.wp-site-blocks, .fancybox__container)
	.affwp-view-switcher
	li:hover:not(.active) {
	background-color: var(--sp-neutral-bg);
}
:is(.wp-site-blocks, .fancybox__container) .affwp-stripe-payouts__link--remove {
	color: var(--sp-danger-fg);
}
:is(.wp-site-blocks, .fancybox__container) .visit-converted.yes i::before {
	color: var(--sp-success-fg);
}
:is(.wp-site-blocks, .fancybox__container) .visit-converted.no i::before {
	color: var(--sp-danger-accent);
}

.spcalb-category-template-item.is-current > a {
	border-color: var(--wp--preset--color--contrast) !important;
	pointer-events: none;
}

.wp-block-button.has-icon.has-icon-arrow .wp-block-button__link::before,
.wp-block-button.has-icon.has-icon-arrow .wp-block-button__link::after,
.wp-block-read-more.has-icon::after {
	--icon-mask-image: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'><path d='M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z'/></svg>");
	--icon-width: 0.875em;
	translate: 0 -0.0625em;
}

.has-icon .wp-block-small-plugins-primary-term {
	gap: 0;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}
.has-icon .wp-block-small-plugins-primary-term::after {
	content: "";
	display: inline-block;
	width: 0.875em;
	aspect-ratio: 1;
	margin-left: 0.5em;
	vertical-align: middle;
	translate: 0 -0.0625em;
	background-color: currentColor;
	mask: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'><path d='M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z'/></svg>")
		center/contain no-repeat;
}
.has-icon .wp-block-small-plugins-primary-term:hover,
.has-icon .wp-block-small-plugins-primary-term:focus {
	text-decoration-line: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.wp-block-button__link.has-transparent-background-color:not(
		.has-border-color
	):hover,
.wp-block-button__link.has-transparent-background-color:not(
		.has-border-color
	):focus,
.wp-block-button__link.has-transparent-background-color:not(
		.has-border-color
	):active {
	text-decoration-line: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}
.wp-block-button__link.has-transparent-background-color:not(
		.has-border-color
	):focus,
.wp-block-button__link.has-transparent-background-color:not(
		.has-border-color
	):active {
	box-shadow: none;
	outline: none;
}

.wp-block-read-more {
	text-decoration-line: none;
	text-decoration-color: currentColor;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}
.wp-block-read-more:hover,
.wp-block-read-more:focus {
	text-decoration-line: underline;
}

.custom-underlined-link a {
	text-decoration-line: underline;
	text-decoration-color: var(--wp--preset--color--quinary);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.yoast-breadcrumbs > span {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	column-gap: 0.5em;
}
.yoast-breadcrumbs > span > span + span::before {
	content: "";
	display: inline-block;
	width: 0.875em;
	height: 0.875em;
	margin-inline-end: 0.5em;
	vertical-align: -0.125em;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 640'><path d='M471.1 297.4C483.6 309.9 483.6 330.2 471.1 342.7L279.1 534.7C266.6 547.2 246.3 547.2 233.8 534.7C221.3 522.2 221.3 501.9 233.8 489.4L403.2 320L233.9 150.6C221.4 138.1 221.4 117.8 233.9 105.3C246.4 92.8 266.7 92.8 279.2 105.3L471.2 297.3z'/></svg>")
		center/contain no-repeat;
	mask: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 640'><path d='M471.1 297.4C483.6 309.9 483.6 330.2 471.1 342.7L279.1 534.7C266.6 547.2 246.3 547.2 233.8 534.7C221.3 522.2 221.3 501.9 233.8 489.4L403.2 320L233.9 150.6C221.4 138.1 221.4 117.8 233.9 105.3C246.4 92.8 266.7 92.8 279.2 105.3L471.2 297.3z'/></svg>")
		center/contain no-repeat;
}
.yoast-breadcrumbs a {
	text-decoration-line: none;
}
.yoast-breadcrumbs a:hover,
.yoast-breadcrumbs a:focus {
	text-decoration-line: underline;
}
.yoast-breadcrumbs > span > span:first-child {
	display: flex;
}
.yoast-breadcrumbs > span > span:first-child > a {
	display: block;
	width: 1.25em;
	height: 1.25em;
	overflow: hidden;
	text-indent: 1.25em;
	white-space: nowrap;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 640'><path d='M304 70.1C313.1 61.9 326.9 61.9 336 70.1L568 278.1C577.9 286.9 578.7 302.1 569.8 312C560.9 321.9 545.8 322.7 535.9 313.8L527.9 306.6L527.9 511.9C527.9 547.2 499.2 575.9 463.9 575.9L175.9 575.9C140.6 575.9 111.9 547.2 111.9 511.9L111.9 306.6L103.9 313.8C94 322.6 78.9 321.8 70 312C61.1 302.2 62 287 71.8 278.1L304 70.1zM320 120.2L160 263.7L160 512C160 520.8 167.2 528 176 528L224 528L224 424C224 384.2 256.2 352 296 352L344 352C383.8 352 416 384.2 416 424L416 528L464 528C472.8 528 480 520.8 480 512L480 263.7L320 120.3zM272 528L368 528L368 424C368 410.7 357.3 400 344 400L296 400C282.7 400 272 410.7 272 424L272 528z'/></svg>")
		center/contain no-repeat;
	mask: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 640'><path d='M304 70.1C313.1 61.9 326.9 61.9 336 70.1L568 278.1C577.9 286.9 578.7 302.1 569.8 312C560.9 321.9 545.8 322.7 535.9 313.8L527.9 306.6L527.9 511.9C527.9 547.2 499.2 575.9 463.9 575.9L175.9 575.9C140.6 575.9 111.9 547.2 111.9 511.9L111.9 306.6L103.9 313.8C94 322.6 78.9 321.8 70 312C61.1 302.2 62 287 71.8 278.1L304 70.1zM320 120.2L160 263.7L160 512C160 520.8 167.2 528 176 528L224 528L224 424C224 384.2 256.2 352 296 352L344 352C383.8 352 416 384.2 416 424L416 528L464 528C472.8 528 480 520.8 480 512L480 263.7L320 120.3zM272 528L368 528L368 424C368 410.7 357.3 400 344 400L296 400C282.7 400 272 410.7 272 424L272 528z'/></svg>")
		center/contain no-repeat;
}

.category-label-link_root {
	align-items: center;
	text-decoration-line: none;
}
.category-label-link_root:hover,
.category-label-link_root:focus {
	text-decoration-line: underline;
}

.custom-eyebrow-row > .wp-block-small-plugins-category-labels {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--20);
}

@media (max-width: 781px) {
	.custom-eyebrow-row > .wp-block-small-plugins-category-labels {
		flex-basis: 100%;
	}
}
.custom-eyebrow-row .category-label-link_root {
	position: relative;
}
.custom-eyebrow-row .category-label-link_root:hover::after,
.custom-eyebrow-row .category-label-link_root:focus-visible::after {
	background-color: var(--wp--preset--color--contrast);
	border-radius: 9999px;
	bottom: calc(100% + 8px);
	color: var(--wp--preset--color--base);
	content: attr(aria-label);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	left: 50%;
	line-height: 1.2;
	padding: 4px 12px;
	pointer-events: none;
	position: absolute;
	transform: translateX(-50%);
	white-space: nowrap;
	z-index: 1;
}

p.wp-block-paragraph:empty,
.wp-block-heading:empty,
.wp-block-button:has(> a.wp-block-button__link:empty) {
	display: none;
}

:where(.is-layout-flow, .is-layout-constrained)
	> :where(p.wp-block-paragraph, .wp-block-heading):empty:first-child
	+ * {
	margin-block-start: 0;
}

.wp-block-template-part:empty,
.wp-block-template-part:has(> .wp-block-group:only-child:empty) {
	display: none;
}
