/*
 * The marketplace look: CraftRoq's own identity, laid over the theme's
 * other sheets (see inc/market.php).
 *
 *  1. Tokens          ink, paper and raspberry; squared controls; three typefaces
 *  2. Type            display face for headings, mono for labels and facts
 *  3. Controls        buttons, tags, chips, icon tiles
 *  4. Header          the bar, the finder's button, the menu
 *  5. Page tops       the ink hero with its blueprint grid
 *  6. Listings        the card every catalogue uses, and the catalogue bar
 *  7. The finder      search over plugins, documentation and support
 *  8. Storefront      the home page's sections
 *  9. Shared blocks   cards, bands, dark sections, pricing, FAQ
 * 10. Footer
 */

/* ---------- 1. Tokens --------------------------------------------------- */
:root:root {
	--cr-ink: #1b1016;
	--cr-ink-2: #2a1721;
	--cr-ink-3: #3a2030;
	--cr-paper: #fbf8f6;
	--cr-line: var(--dl-color-border, #e7dfda);
	--cr-brand: #c0266d;
	--cr-brand-deep: #a51f5b;
	--cr-glow: #ff5fa8;
	--cr-tint: #fceef5;
	--cr-on-ink: rgb(255 255 255 / 72%);
	--cr-on-ink-line: rgb(255 255 255 / 12%);

	--cr-radius-control: 10px;
	--cr-radius-card: 18px;
	--cr-radius-tile: 26%;
	--cr-shadow-card: 0 1px 0 rgb(27 16 22 / 4%), 0 12px 32px -18px rgb(27 16 22 / 18%);
	--cr-shadow-lift: 0 1px 0 rgb(27 16 22 / 5%), 0 28px 48px -24px rgb(27 16 22 / 32%);

	/* The parent's tokens, pointed at the marketplace's. (theme.json adds the
	   child's font families beside the parent's, it does not replace them.) */
	--wp--preset--font-family--sans: var(--wp--preset--font-family--geist);
	--wp--preset--font-family--mono: var(--wp--preset--font-family--geist-mono);
	--dl-font-sans: var(--wp--preset--font-family--geist);
	--dl-font-mono: var(--wp--preset--font-family--geist-mono);
	--dl-font-heading: var(--wp--preset--font-family--display, var(--dl-font-sans));
	--dl-radius-pill: var(--cr-radius-control);
	--dl-radius-lg: 14px;
	--dl-radius-md: 10px;

	/* Ink with a raspberry light in one corner: page tops, bands, counters. */
	--cr-hero-gradient:
		radial-gradient(90% 130% at 100% 0%, rgb(192 38 109 / 62%) 0%, rgb(192 38 109 / 0%) 58%),
		radial-gradient(60% 90% at 0% 100%, rgb(122 24 70 / 45%) 0%, rgb(122 24 70 / 0%) 60%),
		var(--cr-ink);

	/* A blueprint grid, drawn in whatever --cr-grid-line is. */
	--cr-grid:
		linear-gradient(var(--cr-grid-line, rgb(255 255 255 / 6%)) 1px, transparent 1px) 0 0 / 56px 56px,
		linear-gradient(90deg, var(--cr-grid-line, rgb(255 255 255 / 6%)) 1px, transparent 1px) 0 0 / 56px 56px;
}

body {
	background: var(--cr-paper);
	font-family: var(--dl-font-sans);
	font-feature-settings: "ss01", "cv11";
	-webkit-font-smoothing: antialiased;
}

::selection {
	background: var(--cr-brand);
	color: #fff;
}

/* ---------- 2. Type ----------------------------------------------------- */
h1,
h2,
h3,
.cr-hero__title,
.cr-section-title,
.woocommerce div.product .product_title {
	font-family: var(--dl-font-heading);
	font-weight: 700;
	letter-spacing: -0.03em;
	text-wrap: balance;
}

h4,
h5,
h6 {
	font-family: var(--dl-font-sans);
	letter-spacing: -0.01em;
}

/* Small capital labels are set in the mono face throughout. */
.cr-eyebrow,
.cr-nav__heading,
.cr-footer__heading,
.cr-glance__title,
.cr-facts__item dt,
.cr-mono {
	font-family: var(--dl-font-mono);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.cr-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--cr-brand);
}

.cr-eyebrow::before {
	content: "";
	width: 0.4375rem;
	height: 0.4375rem;
	border-radius: 2px;
	background: currentColor;
	rotate: 45deg;
}

code,
kbd,
pre {
	font-family: var(--dl-font-mono);
}

/* ---------- 3. Controls ------------------------------------------------- */
.cr-btn,
.btn,
.wp-element-button,
.wp-block-button__link,
.site-header__register,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce #payment #place_order {
	border-radius: var(--cr-radius-control);
	font-weight: 600;
	letter-spacing: -0.005em;
}

.cr-btn,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.site-header__register {
	box-shadow: inset 0 1px 0 rgb(255 255 255 / 22%), 0 1px 2px rgb(27 16 22 / 20%);
}

.cr-btn--outline,
.cr-btn--ghost {
	box-shadow: none;
}

.cr-btn--outline {
	border-width: 1px;
	border-color: var(--cr-line);
	background: #fff;
	color: var(--cr-ink);
}

.cr-btn--ghost {
	border-width: 1px;
	border-color: rgb(255 255 255 / 28%);
}

.cr-btn--light {
	color: var(--cr-ink);
}

/* Tags: what kind of plugin, in the mono face. */
.cr-tag,
.cr-pill,
.cr-badge,
.cr-mega__badge {
	display: inline-flex;
	align-items: center;
	padding: 0.2rem 0.45rem;
	border: 1px solid rgb(192 38 109 / 22%);
	border-radius: 6px;
	background: var(--cr-tint);
	color: var(--cr-brand-deep);
	font-family: var(--dl-font-mono);
	font-size: 0.625rem;
	font-weight: 600;
	letter-spacing: 0.07em;
	line-height: 1.2;
	text-transform: uppercase;
	white-space: nowrap;
}

.cr-tag--pro,
.cr-pill--pro {
	border-color: var(--cr-ink);
	background: var(--cr-ink);
	color: #fff;
}

.cr-tag--soon,
.cr-pill--coming-soon {
	border-style: dashed;
	border-color: rgb(27 16 22 / 30%);
	background: transparent;
	color: var(--dl-color-text-muted);
}

/* Chips: the choices of the catalogue bar. */
.cr-chip {
	position: relative;
	display: inline-flex;
	cursor: pointer;
}

.cr-chip input {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.cr-chip span {
	padding: 0.5rem 0.875rem;
	border: 1px solid var(--cr-line);
	border-radius: var(--cr-radius-control);
	background: #fff;
	color: var(--dl-color-text);
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.2;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cr-chip:hover span {
	border-color: var(--cr-ink);
}

.cr-chip input:checked + span {
	border-color: var(--cr-ink);
	background: var(--cr-ink);
	color: #fff;
}

.cr-chip input:focus-visible + span {
	outline: 2px solid var(--cr-brand);
	outline-offset: 2px;
}

/* Icon tiles: a plugin's icon, like an app's. */
.cr-icon-tile {
	display: grid;
	flex: none;
	place-items: center;
	width: 3.25rem;
	aspect-ratio: 1;
	border: 1px solid rgb(192 38 109 / 16%);
	border-radius: var(--cr-radius-tile);
	background: linear-gradient(160deg, #fff 0%, var(--cr-tint) 100%);
	box-shadow: inset 0 1px 0 #fff, 0 6px 14px -8px rgb(192 38 109 / 45%);
	color: var(--cr-brand);
}

.cr-icon-tile svg {
	width: 54%;
	height: 54%;
}

.cr-icon-tile--pro,
.cr-icon-tile--soon {
	border-color: rgb(255 255 255 / 10%);
	background: linear-gradient(160deg, var(--cr-ink-3) 0%, var(--cr-ink) 100%);
	box-shadow: inset 0 1px 0 rgb(255 255 255 / 14%), 0 6px 14px -8px rgb(27 16 22 / 70%);
	color: #ff8dc0;
}

.cr-icon-tile--soon {
	opacity: 0.85;
}

/* ---------- 4. Header --------------------------------------------------- */
.site-header {
	border-block-end: 1px solid var(--cr-line);
	background: rgb(251 248 246 / 86%);
	backdrop-filter: saturate(1.6) blur(14px);
}

.site-header.is-scrolled {
	box-shadow: 0 12px 28px -26px rgb(27 16 22 / 60%);
}

.site-header .menu--primary > li > a {
	border-radius: 8px;
	font-weight: 500;
}

/* The finder's button: reads as a search box. */
.cr-finder-open {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-width: 13.5rem;
	height: 2.375rem;
	padding: 0 0.5rem 0 0.75rem;
	border: 1px solid var(--cr-line);
	border-radius: var(--cr-radius-control);
	background: #fff;
	color: var(--dl-color-text-muted);
	font: inherit;
	font-size: 0.875rem;
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.cr-finder-open:hover,
.cr-finder-open:focus-visible {
	border-color: var(--cr-ink);
	box-shadow: 0 0 0 3px rgb(192 38 109 / 12%);
	color: var(--cr-ink);
	outline: none;
}

.cr-finder-open svg {
	flex: none;
	width: 1rem;
	height: 1rem;
}

.cr-finder-open__label {
	flex: 1;
	overflow: hidden;
	text-align: start;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cr-finder-open__key,
.cr-finder kbd {
	padding: 0.15rem 0.375rem;
	border: 1px solid var(--cr-line);
	border-radius: 5px;
	background: var(--dl-color-surface);
	color: var(--dl-color-text-muted);
	font-family: var(--dl-font-mono);
	font-size: 0.6875rem;
	line-height: 1.3;
}

.cr-currency {
	border-radius: var(--cr-radius-control);
}

/* The Plugins panel: one column per family (inc/navigation.php numbers them),
   then the card. Works for any number of families and plugins. */
@media (width >= 1024px) {
	.site-header .menu--primary > .cr-mega[data-dl-dropdown] > .sub-menu {
		grid-template-rows: none;
		grid-template-columns: repeat(var(--cr-mega-cols, 2), minmax(0, 1fr)) minmax(13rem, 0.8fr);
		grid-auto-flow: row dense;
		row-gap: 0;
		align-items: start;
	}

	.site-header .menu--primary > .cr-mega--1 > .sub-menu { --cr-mega-cols: 1; }
	.site-header .menu--primary > .cr-mega--3 > .sub-menu { --cr-mega-cols: 3; }
	.site-header .menu--primary > .cr-mega--4 > .sub-menu { --cr-mega-cols: 4; }

	.site-header .menu--primary > .cr-mega > .sub-menu > .cr-col-1 { grid-column: 1; }
	.site-header .menu--primary > .cr-mega > .sub-menu > .cr-col-2 { grid-column: 2; }
	.site-header .menu--primary > .cr-mega > .sub-menu > .cr-col-3 { grid-column: 3; }
	.site-header .menu--primary > .cr-mega > .sub-menu > .cr-col-4 { grid-column: 4; }

	.site-header .menu--primary > .cr-mega > .sub-menu > .cr-nav-promo {
		grid-row: 1 / span 24;
		grid-column: -2 / -1;
		align-self: stretch;
	}

	.site-header .menu--primary > .cr-mega > .sub-menu > .cr-nav-footer {
		grid-row: 25;
		grid-column: 1 / -2;
	}

	/* Four families: no room for a line about each plugin. */
	.site-header .menu--primary > .cr-mega--4 .cr-mega__desc {
		display: none;
	}
}

/* Tablets: two plugins to a row under each family's name, then the card. */
@media (768px <= width < 1024px) {
	.site-header .menu--primary > .cr-mega[data-dl-dropdown] > .sub-menu {
		grid-template-rows: none;
		grid-auto-flow: row;
	}

	.site-header .menu--primary > .cr-mega > .sub-menu > .cr-nav-heading,
	.site-header .menu--primary > .cr-mega > .sub-menu > .cr-nav-promo,
	.site-header .menu--primary > .cr-mega > .sub-menu > .cr-nav-footer {
		grid-row: auto;
		grid-column: 1 / -1;
	}
}

/* A plugin's icon in the menu's Plugins panel. */
.site-header .cr-icon-tile.cr-mega__icon {
	width: 2.75rem;
	height: 2.75rem;
}

.cr-currency__option {
	border-radius: 7px;
	font-family: var(--dl-font-mono);
	font-size: 0.75rem;
}

@media (width < 1240px) {
	.cr-finder-open {
		min-width: 0;
		width: 2.375rem;
		padding: 0;
		justify-content: center;
	}

	.cr-finder-open__label,
	.cr-finder-open__key {
		display: none;
	}
}

/* ---------- 5. Page tops ------------------------------------------------ */
.cr-hero--dark {
	position: relative;
	isolation: isolate;
	background: var(--cr-hero-gradient);
}

.cr-hero--dark::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--cr-grid);
	mask-image: linear-gradient(180deg, #000 0%, rgb(0 0 0 / 55%) 60%, transparent 100%);
	pointer-events: none;
}

.cr-hero__inner {
	padding-block: clamp(2.5rem, 5vw, 4rem);
}

.cr-hero__title {
	font-size: clamp(2.25rem, 4.6vw, 3.5rem);
	font-weight: 700;
	line-height: 1;
}

.cr-hero__text {
	max-width: 56ch;
	font-size: 1.0625rem;
}

.cr-breadcrumb,
.woocommerce .cr-breadcrumb {
	font-family: var(--dl-font-mono);
	font-size: 0.75rem;
	letter-spacing: 0.02em;
}

.cr-filters__link {
	border-color: var(--cr-on-ink-line);
	border-radius: var(--cr-radius-control);
	background: rgb(255 255 255 / 4%);
	font-weight: 500;
}

.cr-filters__link.is-active {
	color: var(--cr-ink);
}

/* On the catalogue itself the bar below does this job. */
.post-type-archive-product .cr-filters {
	display: none;
}

/* ---------- 6. Listings ------------------------------------------------- */
.woocommerce ul.products {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
	gap: 1.25rem;
}

.woocommerce ul.products li.product.cr-listing,
.woocommerce-page ul.products[class*="columns-"] li.product.cr-listing {
	gap: 1rem;
	padding: 1.25rem;
	border-color: var(--cr-line);
	border-radius: var(--cr-radius-card);
	background: #fff;
	box-shadow: var(--cr-shadow-card);
	text-align: start;
}

.woocommerce ul.products li.product.cr-listing[hidden] {
	display: none;
}

.woocommerce ul.products li.product.cr-listing:hover {
	border-color: rgb(27 16 22 / 28%);
	box-shadow: var(--cr-shadow-lift);
	transform: translateY(-3px);
}

.cr-listing__main {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 0.75rem 0.875rem;
	align-items: center;
	color: inherit;
	text-decoration: none;
}

/* The whole card is the link's target. */
.cr-listing__main::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.cr-listing__main:focus-visible {
	outline: none;
}

.cr-listing:has(.cr-listing__main:focus-visible) {
	outline: 2px solid var(--cr-brand);
	outline-offset: 3px;
}

.cr-listing__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.375rem 0.5rem;
	min-width: 0;
}

.cr-listing__name {
	font-family: var(--dl-font-heading);
	font-size: 1.1875rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.15;
}

.cr-listing__text {
	grid-column: 1 / -1;
	color: var(--dl-color-text-muted);
	font-size: 0.9375rem;
	line-height: 1.55;
}

.cr-listing__shot {
	grid-column: 1 / -1;
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 9.4;
	border: 1px solid var(--cr-line);
	border-radius: 12px;
	background: var(--dl-color-surface);
}

.woocommerce ul.products li.product .cr-listing__shot img {
	width: 100%;
	height: 100%;
	margin: 0;
	border-radius: 0;
	background: none;
	object-fit: cover;
	object-position: left top;
	transition: scale 0.9s var(--cr-ease-out, ease), translate 0.9s var(--cr-ease-out, ease);
}

.cr-listing:hover .cr-listing__shot img {
	scale: 1.06;
	translate: 1.5% 1.5%;
}

.cr-listing__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
	margin: auto 0 0;
	padding: 0;
	list-style: none;
}

.woocommerce ul.products .cr-listing__meta li,
.cr-listing__meta li {
	float: none;
	width: auto;
	margin: 0;
	padding: 0.2rem 0.45rem;
	border-radius: 6px;
	background: var(--dl-color-surface);
	color: var(--dl-color-text-muted);
	font-family: var(--dl-font-mono);
	font-size: 0.6875rem;
	line-height: 1.3;
}

.cr-listing__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding-block-start: 1rem;
	border-block-start: 1px dashed var(--cr-line);
}

.cr-listing__price {
	font-family: var(--dl-font-heading);
	font-size: 1.0625rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.cr-listing__price .cr-price-from,
.cr-listing__price .cr-price-period {
	font-family: var(--dl-font-sans);
	font-size: 0.8125rem;
	font-weight: 400;
	letter-spacing: 0;
}

/* Above the card's own link, so it can be pressed. */
.woocommerce ul.products li.product.cr-listing .cr-listing__foot .button {
	position: relative;
	z-index: 1;
	margin: 0;
	padding: 0.6rem 1rem;
}

.woocommerce ul.products.is-empty {
	display: none;
}

/* The catalogue bar */
.cr-catbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1rem;
	margin-block-end: 1.5rem;
	padding: 0.625rem;
	border: 1px solid var(--cr-line);
	border-radius: calc(var(--cr-radius-control) + 0.625rem);
	background: rgb(255 255 255 / 70%);
}

.cr-catbar[hidden] {
	display: none;
}

.cr-catbar__find {
	position: relative;
	flex: 1 1 14rem;
	min-width: 12rem;
}

.cr-catbar__find svg {
	position: absolute;
	inset-block-start: 50%;
	inset-inline-start: 0.75rem;
	width: 1rem;
	height: 1rem;
	color: var(--dl-color-text-muted);
	translate: 0 -50%;
	pointer-events: none;
}

.cr-catbar__find input,
.cr-catbar__sort select {
	width: 100%;
	height: 2.375rem;
	border: 1px solid var(--cr-line);
	border-radius: var(--cr-radius-control);
	background-color: #fff;
	color: var(--cr-ink);
	font: inherit;
	font-size: 0.875rem;
}

.cr-catbar__find input {
	padding: 0 0.75rem 0 2.25rem;
}

.cr-catbar__find input:focus-visible,
.cr-catbar__sort select:focus-visible {
	border-color: var(--cr-ink);
	box-shadow: 0 0 0 3px rgb(192 38 109 / 12%);
	outline: none;
}

.cr-catbar__group {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
	margin: 0;
	padding: 0;
	border: 0;
}

.cr-catbar__group + .cr-catbar__group {
	padding-inline-start: 1rem;
	border-inline-start: 1px solid var(--cr-line);
}

.cr-catbar__sort {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-inline-start: auto;
	color: var(--dl-color-text-muted);
	font-family: var(--dl-font-mono);
	font-size: 0.6875rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.cr-catbar__sort select {
	width: auto;
	padding: 0 2rem 0 0.75rem;
	font-family: var(--dl-font-sans);
	letter-spacing: 0;
	text-transform: none;
}

.cr-catbar__count {
	flex-basis: 100%;
	margin: 0;
	padding-inline: 0.375rem;
	color: var(--dl-color-text-muted);
	font-family: var(--dl-font-mono);
	font-size: 0.75rem;
}

.cr-catbar__count:empty {
	display: none;
}

/* ---------- 7. The finder ----------------------------------------------- */
.cr-finder {
	width: min(40rem, 100% - 2rem);
	max-height: min(34rem, 100dvh - 6rem);
	margin: 4.5rem auto auto;
	padding: 0;
	overflow: hidden;
	border: 1px solid rgb(27 16 22 / 14%);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 40px 80px -30px rgb(27 16 22 / 55%);
	color: var(--cr-ink);
}

.cr-finder[open] {
	display: flex;
	flex-direction: column;
}

.cr-finder::backdrop {
	background: rgb(27 16 22 / 45%);
	backdrop-filter: blur(3px);
}

.cr-finder__box {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.875rem 1rem;
	border-block-end: 1px solid var(--cr-line);
}

.cr-finder__field {
	display: flex;
	flex: 1;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
}

.cr-finder__field svg {
	flex: none;
	width: 1.25rem;
	height: 1.25rem;
	color: var(--cr-brand);
}

.cr-finder .cr-finder__field input[type="search"] {
	flex: 1;
	height: auto;
	border-radius: 0;
	box-shadow: none;
	appearance: none;
	min-width: 0;
	padding: 0.25rem 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	font-size: 1.0625rem;
	outline: none;
}

.cr-finder__field input::-webkit-search-cancel-button {
	display: none;
}

.cr-finder__close {
	padding: 0.25rem 0.5rem;
	border: 1px solid var(--cr-line);
	border-radius: 6px;
	background: var(--dl-color-surface);
	color: var(--dl-color-text-muted);
	font-family: var(--dl-font-mono);
	font-size: 0.6875rem;
	cursor: pointer;
}

.cr-finder__results {
	flex: 1;
	min-height: 6rem;
	padding: 0.5rem;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.cr-finder__group {
	margin: 0;
	padding: 0.625rem 0.625rem 0.375rem;
	color: var(--dl-color-text-muted);
	font-family: var(--dl-font-mono);
	font-size: 0.6875rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.cr-finder__item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.5rem 0.625rem;
	border-radius: 10px;
	color: inherit;
	text-decoration: none;
}

.cr-finder__item[aria-selected="true"] {
	background: var(--cr-tint);
}

.cr-finder__icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 9px;
	background: var(--dl-color-surface);
	color: var(--dl-color-text-muted);
}

.cr-finder__icon--free {
	background: var(--cr-tint);
	color: var(--cr-brand);
}

.cr-finder__icon--pro,
.cr-finder__icon--soon {
	background: var(--cr-ink);
	color: #ff8dc0;
}

.cr-finder__icon svg {
	width: 1.25rem;
	height: 1.25rem;
}

.cr-finder__text {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
}

.cr-finder__text strong {
	font-size: 0.9375rem;
	font-weight: 600;
}

.cr-finder__text span {
	overflow: hidden;
	color: var(--dl-color-text-muted);
	font-size: 0.8125rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cr-finder__note {
	margin: 0;
	padding: 2rem 1rem;
	color: var(--dl-color-text-muted);
	text-align: center;
}

.cr-finder__hint {
	display: flex;
	gap: 1.25rem;
	margin: 0;
	padding: 0.625rem 1rem;
	border-block-start: 1px solid var(--cr-line);
	background: var(--dl-color-surface);
	color: var(--dl-color-text-muted);
	font-size: 0.75rem;
}

.cr-finder__hint span {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
}

@media (pointer: coarse) {
	.cr-finder__hint {
		display: none;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.cr-finder[open] {
		animation: cr-finder-in 0.32s cubic-bezier(0.22, 1, 0.36, 1);
	}

	.cr-finder[open]::backdrop {
		animation: cr-finder-dim 0.25s ease;
	}

	@keyframes cr-finder-in {
		from {
			opacity: 0;
			translate: 0 -0.75rem;
			scale: 0.98;
		}
	}

	@keyframes cr-finder-dim {
		from {
			opacity: 0;
		}
	}
}

/* ---------- 8. Storefront ---------------------------------------------- */

/* The top of the home page: what this is, and a way to find anything. */
.cr-store-top {
	position: relative;
	isolation: isolate;
	overflow: clip;
	background: var(--cr-hero-gradient);
	color: #fff;
}

.cr-store-top::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--cr-grid);
	mask-image: linear-gradient(180deg, #000 0%, rgb(0 0 0 / 50%) 70%, transparent 100%);
}

.cr-store-top__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
	padding-block: clamp(3rem, 7vw, 5.5rem);
}

.cr-store-top .cr-eyebrow {
	color: #ff8dc0;
}

.cr-store-top h1 {
	margin: 0.25rem 0 0;
	color: #fff;
	font-size: clamp(2.5rem, 5.4vw, 4.5rem);
	line-height: 0.96;
	letter-spacing: -0.04em;
}

.cr-store-top__lead {
	max-width: 34rem;
	margin: 1.5rem 0 0;
	color: var(--cr-on-ink);
	font-size: 1.125rem;
	line-height: 1.6;
}

/* A search box that opens the finder. */
.cr-store-find {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	width: min(100%, 34rem);
	height: 3.5rem;
	margin-block-start: 2rem;
	padding: 0 0.875rem 0 1.125rem;
	border: 1px solid rgb(255 255 255 / 22%);
	border-radius: 14px;
	background: rgb(255 255 255 / 96%);
	box-shadow: 0 24px 50px -24px rgb(0 0 0 / 70%);
	color: var(--dl-color-text-muted);
	font: inherit;
	font-size: 1rem;
	text-align: start;
	cursor: pointer;
	transition: box-shadow 0.3s ease, translate 0.5s var(--cr-ease-out, ease);
}

.cr-store-find:hover,
.cr-store-find:focus-visible {
	box-shadow: 0 0 0 4px rgb(255 141 192 / 35%), 0 28px 50px -24px rgb(0 0 0 / 70%);
	outline: none;
	translate: 0 -2px;
}

.cr-store-find svg {
	flex: none;
	width: 1.25rem;
	height: 1.25rem;
	color: var(--cr-brand);
}

.cr-store-find span {
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cr-store-top__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
	margin: 1.25rem 0 0;
	padding: 0;
	list-style: none;
}

.cr-store-top li,
.cr-store-how li,
.cr-store-help li,
.cr-store-feature li {
	margin-block-start: 0;
}

.cr-store-top__links a {
	display: block;
	padding: 0.4rem 0.75rem;
	border: 1px solid var(--cr-on-ink-line);
	border-radius: 8px;
	background: rgb(255 255 255 / 5%);
	color: #fff;
	font-size: 0.875rem;
	font-weight: 500;
	text-decoration: none;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.cr-store-top__links a:hover {
	border-color: rgb(255 255 255 / 55%);
	background: rgb(255 255 255 / 12%);
	color: #fff;
}

/* A screenshot in a window. */
.cr-store-window {
	display: block;
	overflow: hidden;
	border: 1px solid rgb(27 16 22 / 14%);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 40px 70px -36px rgb(0 0 0 / 75%);
}

.cr-store-window__bar {
	display: flex;
	gap: 0.3125rem;
	padding: 0.5rem 0.75rem;
	border-block-end: 1px solid rgb(27 16 22 / 8%);
	background: #f6f2ef;
}

.cr-store-window__bar i {
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: rgb(27 16 22 / 16%);
}

.cr-store-window img {
	display: block;
	width: 100%;
	height: auto;
}

.cr-store-top__art {
	position: relative;
	padding: 0 0 14% 8%;
}

.cr-store-window--back {
	rotate: 1.2deg;
}

.cr-store-window--front {
	position: absolute;
	inset-block-end: 0;
	inset-inline-start: 0;
	width: 58%;
	rotate: -2.4deg;
}

.cr-store-chip {
	position: absolute;
	padding: 0.5rem 0.75rem;
	border: 1px solid rgb(255 255 255 / 18%);
	border-radius: 10px;
	background: rgb(27 16 22 / 82%);
	backdrop-filter: blur(8px);
	box-shadow: 0 18px 30px -16px rgb(0 0 0 / 80%);
	color: #fff;
	font-size: 0.8125rem;
	font-weight: 500;
	white-space: nowrap;
}

.cr-store-chip b {
	color: #ff8dc0;
	font-family: var(--dl-font-heading);
	font-size: 1.0625rem;
}

.cr-store-chip--a {
	inset-block-start: 9%;
	inset-inline-end: -1rem;
}

.cr-store-chip--b {
	inset-block-end: 3%;
	inset-inline-start: 42%;
}

/* A section's heading on the storefront: left, with something beside it. */
.cr-store-head {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	justify-content: space-between;
	gap: 1rem 3rem;
	margin-block-end: clamp(1.5rem, 3vw, 2.25rem);
}

.cr-store-head h2 {
	max-width: 22ch;
	margin: 0;
	font-size: clamp(1.75rem, 3.6vw, 2.75rem);
	line-height: 1.02;
}

.cr-store-head > p {
	max-width: 30rem;
	margin: 0;
	color: var(--dl-color-text-muted);
	font-size: 1.0625rem;
}

.cr-section--dark .cr-store-head h2 {
	color: #fff;
}

.cr-catalogue .woocommerce {
	margin: 0;
}

/* Featured: a plugin beside what it looks like. */
.cr-store-feature {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
	padding: clamp(1.5rem, 4vw, 3rem);
	border: 1px solid var(--cr-line);
	border-radius: 26px;
	background: #fff;
}

.cr-store-feature + .cr-store-feature {
	margin-block-start: 1.25rem;
}

/* Every second one is turned round. */
.cr-store-feature:nth-of-type(even) .cr-store-feature__text {
	order: 2;
}

.cr-store-feature:nth-of-type(even) {
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	background: var(--dl-color-surface);
}

.cr-store-feature__id {
	display: flex;
	align-items: center;
	gap: 0.875rem;
	margin: 0 0 1rem;
}

.cr-store-feature__id > span:last-child {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	color: var(--dl-color-text-muted);
}

.cr-store-feature__art img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 14px;
}

.cr-store-feature h3 {
	margin: 0.25rem 0 0.75rem;
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	line-height: 1.05;
}

.cr-store-feature__text > p:not(.cr-store-feature__id, .cr-store-feature__more) {
	margin: 0 0 1.25rem;
	color: var(--dl-color-text-muted);
	font-size: 1.0625rem;
	line-height: 1.6;
}

.cr-store-feature .cr-checks li {
	color: var(--dl-color-text-muted);
}

.cr-store-feature .cr-checks strong {
	color: var(--dl-color-text);
}

.cr-store-feature .cr-store-feature__more {
	margin: 1.75rem 0 0;
}

.cr-store-feature__art {
	display: block;
	transition: translate 0.7s var(--cr-ease-out, ease), rotate 0.7s var(--cr-ease-out, ease);
}

.cr-store-feature:hover .cr-store-feature__art {
	rotate: -0.6deg;
	translate: 0 -6px;
}

.cr-store-feature__art .cr-store-window {
	box-shadow: 0 40px 70px -40px rgb(27 16 22 / 55%);
}

/* How the store works: four steps on a line. */
.cr-stats.cr-store-how__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	list-style: none;
	text-align: start;
}

.cr-stats.cr-store-how__list > li {
	display: block;
	text-align: start;
	padding: 1.75rem 1.75rem 0.5rem 0;
	border: 0;
	border-block-start: 1px solid rgb(255 255 255 / 22%);
	border-radius: 0;
	background: none;
}

.cr-store-how__n {
	display: block;
	margin-block-end: 2rem;
	color: #ff8dc0;
	font-family: var(--dl-font-mono);
	font-size: 0.8125rem;
}

.cr-store-how h3 {
	margin: 0 0 0.5rem;
	color: #fff;
	font-size: 1.3125rem;
}

.cr-store-how p {
	margin: 0;
	color: var(--cr-on-ink);
	font-size: 0.9375rem;
	line-height: 1.65;
}

/* Help: three wide links. */
.cr-store-help__list {
	margin: 0;
	padding: 0;
	border-block-start: 1px solid var(--cr-line);
	list-style: none;
}

.cr-store-help__item {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 1.25rem;
	align-items: center;
	padding: 1.25rem 0.5rem;
	border-block-end: 1px solid var(--cr-line);
	color: inherit;
	text-decoration: none;
	transition: background 0.3s ease, padding 0.5s var(--cr-ease-out, ease);
}

.cr-store-help__item:hover {
	padding-inline: 1.25rem;
	background: #fff;
	color: inherit;
}

.cr-store-help__item strong {
	display: block;
	font-family: var(--dl-font-heading);
	font-size: 1.3125rem;
	letter-spacing: -0.02em;
}

.cr-store-help__item span span {
	color: var(--dl-color-text-muted);
}

.cr-store-help__item em {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--cr-brand);
	font-size: 0.9375rem;
	font-style: normal;
	font-weight: 600;
}

.cr-store-help__item em svg {
	width: 1rem;
	height: 1rem;
	transition: translate 0.4s var(--cr-ease-out, ease);
}

.cr-store-help__item:hover em svg {
	translate: 4px 0;
}

@media (prefers-reduced-motion: no-preference) {
	.cr-store-top__text > * {
		animation: cr-fade 0.4s linear backwards, cr-rise 0.7s var(--cr-ease-out, ease) backwards;
	}

	.cr-store-top__text > h1 {
		animation: cr-rise 0.8s var(--cr-ease-out, ease) backwards;
	}

	.cr-store-top__text > :nth-child(3) { animation-delay: 0.08s; }
	.cr-store-top__text > :nth-child(4) { animation-delay: 0.16s; }
	.cr-store-top__text > :nth-child(5) { animation-delay: 0.24s; }

	.cr-store-window--back {
		animation: cr-fade 0.5s linear 0.15s backwards, cr-store-back 1.1s var(--cr-ease-out, ease) 0.15s backwards;
	}

	.cr-store-window--front {
		animation: cr-fade 0.5s linear 0.4s backwards, cr-store-front 1.1s var(--cr-ease-out, ease) 0.4s backwards;
	}

	.cr-store-chip {
		animation: cr-fade 0.5s linear 0.9s backwards, cr-store-float 6s ease-in-out 1.4s infinite alternate;
	}

	.cr-store-chip--b {
		animation-delay: 1.1s, 2.2s;
	}

	@keyframes cr-store-back {
		from {
			rotate: 4deg;
			translate: 3rem 2rem;
		}
	}

	@keyframes cr-store-front {
		from {
			rotate: -7deg;
			translate: -2.5rem 3rem;
		}
	}

	@keyframes cr-store-float {
		to {
			translate: 0 -0.5rem;
		}
	}
}

@media (width < 1024px) {
	.cr-store-top__inner,
	.cr-store-feature,
	.cr-store-feature:nth-of-type(even) {
		grid-template-columns: minmax(0, 1fr);
	}

	.cr-store-feature:nth-of-type(even) .cr-store-feature__text {
		order: 0;
	}

	.cr-stats.cr-store-how__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cr-store-chip--a {
		inset-inline-end: 0;
	}
}

@media (width < 640px) {
	.cr-stats.cr-store-how__list {
		grid-template-columns: minmax(0, 1fr);
	}

	.cr-store-how__n {
		margin-block-end: 0.75rem;
	}

	.cr-store-help__item {
		grid-template-columns: auto minmax(0, 1fr);
	}

	.cr-store-help__item em {
		grid-column: 2;
	}

	.cr-store-find kbd,
	.cr-store-chip {
		display: none;
	}

	.cr-catbar__group + .cr-catbar__group {
		padding-inline-start: 0;
		border-inline-start: 0;
	}

	.cr-catbar__sort {
		margin-inline-start: 0;
	}
}

/* ---------- 9. Shared blocks -------------------------------------------- */
/* A section that only holds a heading (above an accordion, say) still keeps
   the heading clear of what follows. */
.cr-section:has(> .cr-section__head:only-child) {
	padding-block-end: clamp(1.5rem, 3vw, 2.25rem);
}

.cr-section__head {
	max-width: 44rem;
}

.cr-section__head h2 {
	font-size: clamp(1.75rem, 3.4vw, 2.5rem);
	line-height: 1.05;
}

.cr-card {
	border-color: var(--cr-line);
	border-radius: var(--cr-radius-card);
}

.cr-card__icon {
	border-radius: var(--cr-radius-tile);
}

.cr-card__title {
	font-family: var(--dl-font-heading);
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.cr-band {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	border-radius: 22px;
}

.cr-band::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--cr-grid);
	mask-image: linear-gradient(90deg, transparent 0%, #000 100%);
}

.cr-section--dark {
	background: var(--cr-ink);
	box-shadow: 0 0 0 100vmax var(--cr-ink);
}

.cr-glance,
.cr-plan,
.cr-callout,
.cr-doc__help {
	border-radius: var(--cr-radius-card);
}

.woocommerce div.product .cr-product-hero {
	background: var(--dl-color-surface);
	box-shadow: 0 0 0 100vmax var(--dl-color-surface);
}

/* ---------- Guides (documentation pages) -------------------------------- */

/* A guide uses the room beside the list of guides. */
.cr-doc .cr-doc__body .cr-page.is-layout-constrained > * {
	max-width: 54rem;
}

/* Where to click: Plugins › Add New › Upload Plugin. */
.cr-path {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem;
	vertical-align: baseline;
}

.cr-path b {
	padding: 0.1rem 0.45rem;
	border: 1px solid var(--cr-line);
	border-radius: 6px;
	background: #fff;
	font-size: 0.875em;
	font-weight: 600;
	white-space: nowrap;
}

.cr-path b + b::before {
	content: "›";
	margin-inline: -0.1rem 0.45rem;
	color: var(--cr-brand);
	font-weight: 700;
}

/* The sentence a guide opens with. */
.cr-doc-lead {
	max-width: 44rem;
	margin: 0 0 2rem;
	color: var(--dl-color-text-muted);
	font-size: 1.1875rem;
	line-height: 1.6;
}

/* One route through a guide: a label, what it is for, its steps. */
.cr-doc-track {
	margin-block: 0 1.5rem;
	padding: clamp(1.25rem, 3vw, 2rem);
	border: 1px solid var(--cr-line);
	border-radius: var(--cr-radius-card);
	background: #fff;
	scroll-margin-top: 6rem;
}

.cr-doc-track > .cr-tag {
	margin-block-end: 0.75rem;
}

.cr-doc-track > h2 {
	margin: 0 0 0.5rem;
	font-size: clamp(1.375rem, 2.6vw, 1.75rem);
	line-height: 1.1;
}

.cr-doc-track > p {
	max-width: 44rem;
	margin: 0 0 1.25rem;
	color: var(--dl-color-text-muted);
}

.cr-doc-track > :last-child {
	margin-block-end: 0;
}

.cr-doc-track ol.cr-steps {
	margin-block: 1.25rem 0;
}

.cr-doc-track ol.cr-steps > li {
	background: var(--cr-paper);
	line-height: 1.65;
}

.cr-doc-track .cr-callout {
	margin-block: 1.25rem 0;
}

/* A message a plugin can show, and what to do about it. */
.cr-doc-msgs {
	display: grid;
	gap: 0.75rem;
	margin: 1.25rem 0 0;
	padding: 0;
	list-style: none;
}

.cr-doc-msgs li {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	gap: 0.75rem 1.5rem;
	align-items: start;
	margin: 0;
	padding: 1rem 1.125rem;
	border: 1px solid var(--cr-line);
	border-radius: 14px;
	background: var(--cr-paper);
}

.cr-doc-msgs q {
	quotes: none;
	padding-inline-start: 0.875rem;
	border-inline-start: 3px solid var(--cr-brand);
	font-family: var(--dl-font-mono);
	font-size: 0.875rem;
	line-height: 1.55;
}

.cr-doc-msgs span {
	color: var(--dl-color-text-muted);
	line-height: 1.6;
}

/* The guide before, and the guide after. */
.cr-doc-pager {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
	margin-block-start: 2.5rem;
}

.cr-doc-pager__link {
	display: grid;
	gap: 0.25rem;
	padding: 1rem 1.25rem;
	border: 1px solid var(--cr-line);
	border-radius: 14px;
	background: #fff;
	color: inherit;
	text-decoration: none;
	transition: border-color 0.25s ease, box-shadow 0.35s ease, translate 0.45s var(--cr-ease-out, ease);
}

.cr-doc-pager__link:hover {
	border-color: var(--cr-ink);
	box-shadow: var(--cr-shadow-card);
	color: inherit;
	translate: 0 -2px;
}

.cr-doc-pager__link--next {
	grid-column: 2;
	text-align: end;
}

.cr-doc-pager__link span {
	color: var(--dl-color-text-muted);
	font-family: var(--dl-font-mono);
	font-size: 0.6875rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.cr-doc-pager__link strong {
	font-family: var(--dl-font-heading);
	font-size: 1.1875rem;
	letter-spacing: -0.02em;
}

@media (width < 700px) {
	.cr-doc-msgs li,
	.cr-doc-pager {
		grid-template-columns: minmax(0, 1fr);
	}

	.cr-doc-pager__link--next {
		grid-column: auto;
		text-align: start;
	}
}

/* Every plugin, and where to read about it. */
.cr-help-plugins {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr));
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cr-help-plugin {
	display: grid;
	margin: 0;
	gap: 1rem;
	padding: 1.25rem;
	border: 1px solid var(--cr-line);
	border-radius: var(--cr-radius-card);
	background: #fff;
}

ul.cr-help-plugins .cr-help-plugin__id {
	display: flex;
	align-items: center;
	gap: 0.875rem;
	color: inherit;
	text-decoration: none;
}

.cr-help-plugin__id strong {
	display: block;
	font-family: var(--dl-font-heading);
	font-size: 1.1875rem;
	letter-spacing: -0.02em;
}

.cr-help-plugin__id .cr-mono {
	color: var(--dl-color-text-muted);
}

.cr-help-plugin__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
}

ul.cr-help-plugins .cr-help-plugin__links a {
	padding: 0.4rem 0.75rem;
	border: 1px solid var(--cr-line);
	border-radius: 8px;
	color: var(--dl-color-text);
	font-size: 0.875rem;
	font-weight: 500;
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease;
}

ul.cr-help-plugins .cr-help-plugin__links a.cr-help-plugin__guide {
	border-color: var(--cr-ink);
	background: var(--cr-ink);
	color: #fff;
}

ul.cr-help-plugins .cr-help-plugin__links a:hover {
	border-color: var(--cr-ink);
	color: var(--cr-brand);
}

/* ---------- Request pages (a form beside what to have ready) -------------- */
.cr-ask {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
	gap: clamp(1.5rem, 4vw, 3.5rem);
	align-items: start;
	padding-block-end: var(--cr-section-y, 4rem);
}

.cr-ask__form {
	padding: clamp(1.25rem, 3vw, 2rem);
	border: 1px solid var(--cr-line);
	border-radius: var(--cr-radius-card);
	background: #fff;
	box-shadow: var(--cr-shadow-card);
}

.cr-ask__form > p:first-child {
	margin: 0 0 1.5rem;
	color: var(--dl-color-text-muted);
	font-size: 1.0625rem;
	line-height: 1.6;
}

.cr-ask__aside {
	position: sticky;
	inset-block-start: 6rem;
	display: grid;
	gap: 1rem;
}

.cr-ask__box {
	padding: 1.25rem 1.375rem;
	border: 1px solid var(--cr-line);
	border-radius: var(--cr-radius-card);
	background: var(--dl-color-surface);
}

.cr-ask__box > .cr-mono {
	margin: 0 0 0.75rem;
	color: var(--cr-brand);
}

.cr-ask__box ul {
	display: grid;
	gap: 0.625rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cr-ask__box li {
	position: relative;
	margin: 0;
	padding-inline-start: 1.375rem;
	font-size: 0.9375rem;
	line-height: 1.5;
}

.cr-ask__box li::before {
	content: "";
	position: absolute;
	inset-block-start: 0.5em;
	inset-inline-start: 0.125rem;
	width: 0.4375rem;
	height: 0.4375rem;
	border-radius: 2px;
	background: var(--cr-brand);
	rotate: 45deg;
}

.cr-ask__box p {
	margin: 0;
	color: var(--dl-color-text-muted);
	font-size: 0.9375rem;
	line-height: 1.6;
}

.cr-ask__box p + p {
	margin-block-start: 0.625rem;
}

@media (width < 900px) {
	.cr-ask {
		grid-template-columns: minmax(0, 1fr);
	}

	.cr-ask__aside {
		position: static;
	}
}

/* What WordPress.org says about a plugin, under its facts. */
.cr-product-proof {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.375rem 0.625rem;
	margin: 1.25rem 0 0;
	color: var(--dl-color-text-muted);
	font-size: 0.875rem;
}

.cr-product-proof .cr-mono {
	padding: 0.2rem 0.45rem;
	border: 1px solid var(--cr-line);
	border-radius: 6px;
	background: #fff;
	color: var(--cr-ink);
}

.cr-product-proof strong {
	color: var(--cr-ink);
}

.cr-product-proof i {
	font-style: normal;
	opacity: 0.5;
}

/* A page that is not there. */
.error404 .site-main {
	padding-block-start: 0;
}

.cr-lost .cr-store-top__inner {
	grid-template-columns: minmax(0, 1fr);
}

.cr-lost .cr-store-top__lead {
	max-width: 38rem;
}

/* Reading pages (legal): comfortable lines, clear headings. */
.cr-doc__body .cr-page :is(h2, h3) {
	scroll-margin-top: 6rem;
}

.cr-doc__body .cr-page > h2 {
	margin-block: 2.5rem 0.75rem;
	padding-block-start: 1.5rem;
	border-block-start: 1px solid var(--cr-line);
	font-size: clamp(1.375rem, 2.4vw, 1.75rem);
	line-height: 1.15;
}

.cr-doc__body .cr-page > h2:first-child {
	margin-block-start: 0;
	padding-block-start: 0;
	border-block-start: 0;
}

.cr-doc__body .cr-page > :is(p, ul, ol) {
	font-size: 1.0625rem;
	line-height: 1.75;
}

/* The form that asks to be told about a plugin. */
.cr-pp-notify__form {
	padding: clamp(1.25rem, 3vw, 2rem);
	border: 1px solid var(--cr-line);
	border-radius: var(--cr-radius-card);
	background: #fff;
	box-shadow: var(--cr-shadow-card);
}

/* ---------- 10. Footer -------------------------------------------------- */
.site-footer.cr-footer,
.cr-footer {
	position: relative;
	isolation: isolate;
	background: var(--cr-ink);
}

.cr-footer::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--cr-grid);
	mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
	pointer-events: none;
}

.cr-footer__heading {
	color: #ff8dc0;
}

/* Five columns of links beside the logo: the plugins, then the footer menu's four. */
.cr-footer__inner {
	grid-template-columns: minmax(0, 1.4fr) repeat(5, minmax(0, 1fr));
	gap: clamp(1.5rem, 3.5vw, 3rem);
}

@media (width < 1100px) {
	.cr-footer__inner {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

@media (width < 900px) {
	.cr-footer__inner {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (width < 560px) {
	.cr-footer__inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
