/*
Theme Name: Rockbase CrawlWP
Theme URI: https://crawlwp.com/
Author: Proper Fraction LLC
Author URI: https://properfraction.com/
Description: Child theme of Rockbase for crawlwp.com. Ships every marketing page as a block
pattern, with the product mockups as theme-hosted SVG assets.
Template: rockbase
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rockbase-crawlwp
*/

/* Product mockups ------------------------------------------------------- */
.cwp-shot img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 10px;
}

.cwp-shot {
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 18px 44px rgba(6, 12, 57, 0.14);
}

/* Comparison tables ------------------------------------------------------ */
.has-overflow-y-auto {
	overflow-x: auto;
}

.cwp-table table {
	border-collapse: collapse;
	width: 100%;
	min-width: 640px;
	font-size: var(--wp--preset--font-size--x-small);
}

.cwp-table-scroll {
	overflow-x: auto;
}

.cwp-table-scroll:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 3px;
}

.cwp-table th,
.cwp-table td {
	padding: 15px 1rem;
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--background-4);
	vertical-align: top;
	text-align: left;
}

.cwp-table thead th {
	font-weight: 600;
	white-space: nowrap;
	border-bottom: 1px solid var(--wp--preset--color--foreground-4);
}

.cwp-table tbody th {
	font-weight: 500;
}

.cwp-table figcaption {
	margin-top: 1rem;
	font-size: 0.8rem;
	color: var(--wp--preset--color--foreground-3);
	max-width: 80ch;
}

/* On this page ----------------------------------------------------------- */
.cwp-toc .cwp-toc-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
}

.cwp-toc .cwp-toc-list a {
	text-decoration: none;
	border-bottom: 1px solid var(--wp--preset--color--background-4);
}

.cwp-toc .cwp-toc-list a:hover,
.cwp-toc .cwp-toc-list a:focus {
	border-bottom-color: currentColor;
}

/* Sticky call to action -------------------------------------------------- */
.cwp-sticky-cta {
	position: fixed;
	inset: auto 0 0 0;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.25rem;
	flex-wrap: wrap;
	padding: 0.75rem 1.25rem;
	background: var(--wp--preset--color--foreground-1);
	color: #fff;
	box-shadow: 0 -8px 24px rgba(6, 12, 57, 0.18);
}

.cwp-sticky-cta__text {
	margin: 0;
	font-size: 0.9rem;
}

.cwp-sticky-cta__text span {
	color: rgba(255, 255, 255, 0.68);
}

.cwp-sticky-cta__button {
	background: #2688c0;
	color: #fff;
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
	padding: 10px 22px;
	border-radius: 8px;
	white-space: nowrap;
}

.cwp-sticky-cta__button:focus-visible {
	outline: 3px solid var(--wp--preset--color--secondary);
	outline-offset: 3px;
}

body:has(.cwp-sticky-cta) {
	padding-bottom: 76px;
}

@media (max-width: 600px) {
	.cwp-sticky-cta__text span {
		display: none;
	}
}

/* Documentation ----------------------------------------------------------- */
.cwp-doc-layout {
	align-items: flex-start;
}

.cwp-doc-aside .cwp-doc-nav,
.cwp-doc-toc-col .cwp-doc-toc {
	position: sticky;
	top: 92px;
	max-height: calc(100vh - 120px);
	overflow-y: auto;
	overscroll-behavior: contain;
}

/* Sidebar navigation ------------------------------------------------------ */
.cwp-doc-nav__title {
	margin: 0 0 0.75rem;
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--foreground-3);
}

.cwp-doc-nav__list,
.cwp-doc-nav__list .sub {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cwp-doc-nav__list {
	font-size: 0.875rem;
	line-height: 1.45;
}

.cwp-doc-nav__list > li > a {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 10px;
	padding: 7px 10px;
	border-radius: 7px;
	font-weight: 500;
	text-decoration: none;
	color: var(--wp--preset--color--foreground-2);
}

.cwp-doc-nav__list > li > a:hover,
.cwp-doc-nav__list > li > a:focus {
	background: var(--wp--preset--color--background-2);
}

.cwp-doc-nav__list > li.is-open > a {
	color: var(--wp--preset--color--foreground-1);
	font-weight: 600;
}

.cwp-doc-nav__list .n {
	flex: none;
	font-size: 0.75rem;
	font-weight: 400;
	color: var(--wp--preset--color--foreground-4);
}

.cwp-doc-nav__list .sub {
	margin: 2px 0 12px;
	padding-left: 10px;
	border-left: 1px solid var(--wp--preset--color--background-4);
}

.cwp-doc-nav__list .sub a {
	display: block;
	padding: 6px 10px;
	font-size: 0.8125rem;
	font-weight: 400;
	line-height: 1.4;
	text-decoration: none;
	color: var(--wp--preset--color--foreground-3);
}

.cwp-doc-nav__list .sub a:hover,
.cwp-doc-nav__list .sub a:focus {
	color: var(--wp--preset--color--foreground-1);
}

.cwp-doc-nav__list .sub a.is-current {
	color: var(--wp--preset--color--primary);
	font-weight: 600;
	box-shadow: -11px 0 0 -10px var(--wp--preset--color--primary);
}

.cwp-doc-nav__more a {
	color: var(--wp--preset--color--primary) !important;
	font-weight: 600 !important;
}

/* Breadcrumb -------------------------------------------------------------- */
.cwp-doc-crumb,
.cwp-doc-crumb .crawlwp-breadcrumbs {
	font-size: 0.8125rem;
	color: var(--wp--preset--color--foreground-3);
}

.cwp-doc-crumb a {
	color: inherit;
	text-decoration: none;
}

.cwp-doc-crumb a:hover {
	text-decoration: underline;
}

/* Article body ------------------------------------------------------------ */
/*
 * The theme sets body weight to 500, which reads as semi-bold over a long
 * article. Documentation prose wants 400 and a taller line.
 */
.cwp-doc-body {
	font-weight: 400;
	font-size: 1.0625rem;
	line-height: 1.75;
	color: var(--wp--preset--color--foreground-2);
}

.cwp-doc-body p,
.cwp-doc-body li {
	font-weight: 400;
}

.cwp-doc-body > * + * {
	margin-top: 1.25rem;
}

.cwp-doc-body h2 {
	margin-top: 2.75rem;
	font-size: 1.5rem;
	scroll-margin-top: 110px;
}

.cwp-doc-body h3 {
	margin-top: 2rem;
	font-size: 1.1875rem;
	scroll-margin-top: 110px;
}

.cwp-doc-body ul,
.cwp-doc-body ol {
	padding-left: 1.25rem;
}

.cwp-doc-body li + li {
	margin-top: 0.5rem;
}

.cwp-doc-body img,
.cwp-doc-body .wp-block-image img {
	border: 1px solid var(--wp--preset--color--background-4);
	border-radius: 10px;
}

.cwp-doc-body figcaption {
	margin-top: 0.6rem;
	font-size: 0.8125rem;
	color: var(--wp--preset--color--foreground-3);
}

.cwp-doc-body code {
	padding: 2px 6px;
	border-radius: 4px;
	background: var(--wp--preset--color--background-3);
	font-size: 0.9em;
}

.cwp-doc-body pre {
	padding: 1.25rem;
	border-radius: 10px;
	background: var(--wp--preset--color--foreground-1);
	color: #dbe6f5;
	font-size: 0.875rem;
	line-height: 1.7;
	overflow-x: auto;
}

.cwp-doc-meta {
	font-size: 0.8125rem;
}

/* On this page ------------------------------------------------------------ */
.cwp-doc-toc__title {
	margin: 0 0 0.6rem;
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--foreground-3);
}

.cwp-doc-toc__list {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: none;
}

.cwp-doc-toc__list li {
	margin: 0 0 0.35rem;
}

.cwp-doc-toc__list li.is-h3 {
	padding-left: 0.85rem;
}

.cwp-doc-toc__list a {
	display: block;
	padding: 3px 0 3px 10px;
	border-left: 2px solid transparent;
	font-size: 0.8125rem;
	font-weight: 400;
	line-height: 1.4;
	text-decoration: none;
	color: var(--wp--preset--color--foreground-3);
}

.cwp-doc-toc__list a:hover,
.cwp-doc-toc__list a:focus {
	color: var(--wp--preset--color--foreground-1);
	text-decoration: none;
}

.cwp-doc-toc__list a.is-current {
	border-left-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
	font-weight: 500;
}

/* Tags, help box and related ---------------------------------------------- */
.cwp-doc-tags a {
	display: inline-block;
	margin: 0 6px 6px 0;
	padding: 5px 12px;
	border: 1px solid var(--wp--preset--color--background-4);
	border-radius: 999px;
	font-size: 0.75rem;
	text-decoration: none;
	color: var(--wp--preset--color--foreground-3);
}

.cwp-doc-related__item {
	border-top: 1px solid var(--wp--preset--color--background-4);
	padding: 10px 0;
	margin: 0;
	font-weight: 500;
}

.cwp-doc-related__item a {
	text-decoration: none;
}

.cwp-doc-item {
	border-top: 1px solid var(--wp--preset--color--background-4);
}

.cwp-doc-item .wp-block-post-title a {
	text-decoration: none;
}

.cwp-doc-pager {
	border-top: 1px solid var(--wp--preset--color--background-4);
	padding-top: 1rem;
	gap: 14px;
}

.cwp-doc-search .wp-block-search__input {
	border-radius: 10px 0 0 10px;
}

@media (max-width: 1080px) {
	.cwp-doc-layout--article .cwp-doc-toc-col {
		display: none;
	}
}

@media (max-width: 781px) {
	.cwp-doc-aside .cwp-doc-nav,
	.cwp-doc-toc-col .cwp-doc-toc {
		position: static;
		max-height: none;
		overflow: visible;
	}

	.cwp-doc-nav {
		border-bottom: 1px solid var(--wp--preset--color--background-4);
		padding-bottom: 1rem;
	}

	.cwp-doc-body {
		font-size: 1rem;
	}
}

/* Skip link -------------------------------------------------------------- */
.cwp-skip-link:focus {
	clip: auto !important;
	clip-path: none;
	height: auto;
	width: auto;
	display: block;
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 100;
	padding: 12px 20px;
	background: var(--wp--preset--color--foreground-1);
	color: #fff;
	border-radius: 8px;
	font-size: 0.9rem;
}

/* FAQ details ------------------------------------------------------------ */
.wp-block-details summary {
	cursor: pointer;
	font-weight: 600;
	list-style: none;
}

.wp-block-details summary::-webkit-details-marker {
	display: none;
}

.wp-block-details summary::after {
	content: "+";
	float: right;
	color: var(--wp--preset--color--foreground-4);
	font-weight: 400;
}

.wp-block-details[open] summary::after {
	content: "\2013";
}

/* Footer ----------------------------------------------------------------- */
.cwp-footer .wp-block-columns {
	column-gap: 2.5rem;
}

.cwp-footer .wp-block-column {
	min-width: 150px;
	overflow-wrap: normal;
	word-break: normal;
	hyphens: none;
}

.cwp-footer p {
	margin-bottom: 0.55rem;
}

.cwp-footer a {
	text-decoration: none;
}

.cwp-footer a:hover,
.cwp-footer a:focus {
	text-decoration: underline;
}

@media (max-width: 900px) {
	.cwp-footer .wp-block-columns {
		flex-wrap: wrap !important;
	}

	.cwp-footer .wp-block-column {
		flex-basis: 45% !important;
	}

	.cwp-footer .cwp-footer__brand {
		flex-basis: 100% !important;
	}
}

/* Header navigation ------------------------------------------------------ */
.wp-block-navigation .wp-block-navigation__submenu-container {
	min-width: 240px;
}

.wp-block-navigation .wp-block-navigation-item__content {
	white-space: nowrap;
}

/* Closing call to action -------------------------------------------------- */
.cwp-cta-card {
	box-shadow: 0 18px 44px rgba(6, 12, 57, 0.14);
}

.cwp-cta-card .wp-block-columns {
	margin-inline: auto;
	max-width: 1040px;
}

@media (max-width: 781px) {
	.cwp-cta-card {
		border-radius: 12px;
	}
}

/* FAQ items and tables ---------------------------------------------------- */
.cwp-faq-item {
	border-bottom: 1px solid var(--wp--preset--color--background-4);
	padding-top: var(--wp--preset--spacing--small);
	padding-bottom: var(--wp--preset--spacing--small);
}

.has-overflow-y-auto .wp-block-table {
	margin-top: var(--wp--preset--spacing--large);
}

/* Mobile rhythm for the long feature pages ------------------------------- */
/*
 * Every gap on these pages is a clamp(): `giant` is clamp(2.5rem, 8vw, 7.5rem)
 * and `x-large` is clamp(1.5rem, 6.5vw, 4rem). On a 390px phone 8vw is 31px, so
 * both fall back to their minimum — section padding drops from 120px to 40px and
 * the gap between rows from 64px to 24px, while the content itself stays full
 * height. Sections end up reading as one continuous block.
 *
 * Inline styles come from the block editor, so overriding them needs !important.
 */
@media (max-width: 781px) {

	/* 1. Same padding on every section, whatever its preset says. */
	.wp-block-post-content > .wp-block-group.alignfull,
	.wp-block-group.alignfull[id] {
		padding-top: 3.5rem !important;
		padding-bottom: 3.5rem !important;
	}

	/*
	 * 2. Same gap between every row in a section. Sub-sections are sometimes a
	 * columns block and sometimes a plain group, so both need the rule — and the
	 * section's own heading is the first child, which must not get a top margin.
	 */
	.wp-block-group.alignfull > .wp-block-columns.alignwide,
	.wp-block-group.alignfull > .wp-block-group.alignwide:not(:first-child) {
		margin-top: 3rem !important;
	}

	/*
	 * 3. Screenshot on top. Half the rows put the image column first in the DOM
	 * (that is what makes the desktop layout zigzag) and half put it second;
	 * stacked, the second kind would drop the image below its own text. Reverse
	 * only those, so the image always leads.
	 */
	.wp-block-columns.alignwide:has(> .wp-block-column:last-child .cwp-shot) {
		flex-direction: column-reverse;
	}

	/* 4. A tighter gap between an image and its own text than between two rows. */
	.wp-block-columns.alignwide:has(.cwp-shot) {
		row-gap: 1.5rem !important;
	}

	/* Two text columns in one block are two sub-sections, so they need the full gap. */
	.wp-block-columns.alignwide:not(:has(.cwp-shot)) {
		row-gap: 3rem !important;
	}

	/* The screenshot's own wrapper carries inline margins; row-gap governs instead. */
	.wp-block-column > .wp-block-group:has(> .wp-block-image.cwp-shot) {
		margin-top: 0 !important;
	}

	.wp-block-list li {
		margin-bottom: 0.6rem;
	}

	.cwp-toc {
		margin-top: 2rem !important;
		padding: 1.5rem !important;
	}

	.cwp-toc .wp-block-columns {
		row-gap: 1.5rem !important;
	}

	.cwp-cta-card {
		padding: 2rem 1.5rem !important;
	}
}

/* Previous / next article -------------------------------------------------- */
.cwp-doc-prevnext {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin-top: 2.5rem;
}

.cwp-doc-prevnext__link {
	display: block;
	padding: 1rem 1.25rem;
	border: 1px solid var(--wp--preset--color--background-4);
	border-radius: 10px;
	text-decoration: none;
}

.cwp-doc-prevnext__link:hover {
	border-color: var(--wp--preset--color--foreground-4);
}

.cwp-doc-prevnext__link span {
	display: block;
	font-size: 0.75rem;
	color: var(--wp--preset--color--foreground-3);
}

.cwp-doc-prevnext__link strong {
	display: block;
	margin-top: 4px;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.35;
}

.cwp-doc-prevnext__link.is-next {
	grid-column: 2;
	text-align: right;
}

@media (max-width: 600px) {
	.cwp-doc-prevnext {
		grid-template-columns: 1fr;
	}

	.cwp-doc-prevnext__link.is-next {
		grid-column: 1;
		text-align: left;
	}
}

/* Documentation hub -------------------------------------------------------- */
/*
 * The theme's h2/h3 scale is built for marketing sections, where a heading is
 * the only thing competing for attention. In a card grid it shouts — these are
 * labels for a list, not section titles.
 */
.cwp-doc-start h3 {
	font-size: 1.125rem;
	line-height: 1.3;
}

.cwp-doc-start h3 a {
	color: var(--wp--preset--color--foreground-1);
	text-decoration: none;
}

.cwp-doc-start p {
	font-size: 0.875rem;
}

.cwp-doc-sections {
	display: grid;
	grid-template-columns: repeat(var(--cwp-doc-cols, 3), minmax(0, 1fr));
	gap: clamp(1.5rem, 4vw, 3rem);
	margin-top: clamp(1.5rem, 4vw, 3rem);
}

.cwp-doc-topic {
	border-top: 1px solid var(--wp--preset--color--background-4);
	padding-top: 1rem;
}

.cwp-doc-topic h3 {
	margin: 0;
	font-size: 1.0625rem;
	line-height: 1.3;
}

.cwp-doc-topic h3 a {
	color: var(--wp--preset--color--foreground-1);
	text-decoration: none;
}

.cwp-doc-topic h3 a:hover {
	color: var(--wp--preset--color--primary);
}

.cwp-doc-topic__count {
	margin: 4px 0 0;
	font-size: 0.75rem;
	color: var(--wp--preset--color--foreground-4);
}

.cwp-doc-topic__desc {
	margin: 0.6rem 0 0;
	font-size: 0.8125rem;
	font-weight: 400;
	color: var(--wp--preset--color--foreground-3);
}

.cwp-doc-topic__list {
	list-style: none;
	margin: 0.9rem 0 0;
	padding: 0;
}

.cwp-doc-topic__list li {
	margin-bottom: 0.55rem;
}

.cwp-doc-topic__list a {
	font-size: 0.875rem;
	font-weight: 400;
	line-height: 1.45;
	text-decoration: none;
	color: var(--wp--preset--color--foreground-2);
}

.cwp-doc-topic__list a:hover {
	color: var(--wp--preset--color--primary);
}

.cwp-doc-topic__all {
	display: inline-block;
	margin-top: 0.75rem;
	font-size: 0.8125rem;
	font-weight: 600;
	text-decoration: none;
	color: var(--wp--preset--color--primary);
}

.cwp-doc-hero h1 {
	font-size: clamp(1.9rem, 4vw, 2.75rem);
}

@media (max-width: 900px) {
	.cwp-doc-sections {
		grid-template-columns: 1fr;
	}
}

/* Documentation hub: popular links ---------------------------------------- */
/*
 * These render as a wp-block-list inside a flex group, so the theme's list and
 * link styling wins unless it is overridden here: bullets, underlines and the
 * label sitting on the same baseline as a five-item column.
 */
.cwp-doc-popular {
	align-items: baseline;
}

.cwp-doc-popular > p {
	flex: none;
	margin-right: 0.25rem;
	font-size: 0.8125rem;
	color: var(--wp--preset--color--foreground-3);
}

.cwp-doc-popular__list,
ul.cwp-doc-popular__list {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.cwp-doc-popular__list li {
	margin: 0;
}

.cwp-doc-popular__list li::marker {
	content: none;
}

.cwp-doc-popular__list a {
	display: inline-block;
	padding: 6px 14px;
	border: 1px solid var(--wp--preset--color--background-4);
	border-radius: 999px;
	background: #fff;
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.35;
	text-decoration: none !important;
	color: var(--wp--preset--color--foreground-2);
}

.cwp-doc-popular__list a:hover,
.cwp-doc-popular__list a:focus {
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
}

/* Wider container for documentation --------------------------------------- */
/*
 * 1200px is right for marketing pages with big type. Documentation carries a
 * sidebar, a body column and a contents rail, so it needs more room before the
 * article column gets squeezed.
 */
.cwp-doc-hero .alignwide,
.cwp-doc-layout,
.cwp-doc-crumb .wp-block-group,
.cwp-doc-sections,
body:has(.cwp-doc-layout) .wp-block-group.alignfull > .alignwide,
body:has(.cwp-doc-sections) .wp-block-group.alignfull > .alignwide {
	max-width: 1440px;
}

.cwp-doc-layout.wp-block-columns {
	max-width: 1440px;
	margin-inline: auto;
}

/* The article column fills its grid column; the sidebars cap the overall width. */
.cwp-doc-body,
.cwp-doc-body > * {
	max-width: none;
}

@media (max-width: 1440px) {
	.cwp-doc-hero .alignwide,
	.cwp-doc-layout,
	.cwp-doc-sections {
		max-width: 100%;
	}
}

/* Footer: two columns on tablets ------------------------------------------ */
/*
 * Rockbase stacks columns to one at its own breakpoint, which wastes the width
 * an iPad Mini (768px) has. Two columns fit comfortably down to 600px.
 */
@media (min-width: 600px) and (max-width: 900px) {
	.cwp-footer .wp-block-columns {
		flex-wrap: wrap !important;
		column-gap: 2.5rem;
		row-gap: 2rem;
	}

	.cwp-footer .wp-block-column {
		flex-basis: calc(50% - 1.25rem) !important;
		flex-grow: 0;
	}

	.cwp-footer .cwp-footer__brand {
		flex-basis: 100% !important;
	}
}

/* Article byline ----------------------------------------------------------- */
/*
 * The date and section label sat hard against the opening paragraph, so the
 * byline read as part of the article's first sentence.
 */
.cwp-doc-meta {
	margin-bottom: 0;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--wp--preset--color--background-4);
}

.cwp-doc-body {
	margin-top: 2rem !important;
}

/* Breadcrumb --------------------------------------------------------------- */
/* It now sits inside the article column, so it shares the title's left edge. */
.cwp-doc-crumb {
	padding-top: 0 !important;
	margin-bottom: 1rem;
}

.cwp-doc-crumb p,
.cwp-doc-crumb .crawlwp-breadcrumbs {
	margin: 0;
}

/* Section archive ---------------------------------------------------------- */
/*
 * The search field is a block-level element inside the column while the article
 * list is constrained, so the two disagreed on width. Tie them together.
 */
.cwp-doc-layout .cwp-doc-search,
.cwp-doc-layout .cwp-doc-list,
.cwp-doc-layout .cwp-doc-desc {
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
}

.cwp-doc-layout .cwp-doc-search {
	margin-top: 1.5rem;
	margin-bottom: 0;
}

.cwp-doc-layout .cwp-doc-list {
	margin-top: 2rem !important;
}

.cwp-doc-layout .cwp-doc-list > .wp-block-post-template {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cwp-doc-item {
	padding-top: 1.25rem;
	padding-bottom: 1.25rem;
}

/* Documentation archives --------------------------------------------------- */
/*
 * The search field, the article list and the title all belong to the same
 * column, so they share one left edge and one width. The query block used to be
 * constrained, which centred its children at the theme's content size and left
 * the list looking indented under a wider search field.
 */
.cwp-doc-layout .cwp-doc-list,
.cwp-doc-layout .cwp-doc-list .wp-block-post-template,
.cwp-doc-layout .cwp-doc-search,
.cwp-doc-layout .wp-block-query-title,
.cwp-doc-layout .cwp-doc-desc {
	width: 100%;
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
}

.cwp-doc-layout .cwp-doc-list .wp-block-post-template {
	padding: 0;
	list-style: none;
}

.cwp-doc-layout .cwp-doc-search {
	margin-top: 1.75rem;
}

.cwp-doc-layout .wp-block-query-title {
	margin-top: 0.5rem;
}

/* Breadcrumb: room below the site header ----------------------------------- */
.cwp-doc-crumb {
	padding-top: 0 !important;
	margin-bottom: 1.5rem;
}

/* Documentation promo card -------------------------------------------------- */
.cwp-doc-promo {
	box-shadow: 0 14px 34px rgba(6, 12, 57, 0.16);
}

.cwp-doc-promo__list {
	list-style: none;
	margin: 0.75rem 0 0;
	padding: 0;
}

.cwp-doc-promo__list li {
	position: relative;
	margin-bottom: 0.45rem;
	padding-left: 1.4rem;
	color: var(--wp--preset--color--background-1);
}

.cwp-doc-promo__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.45em;
	width: 11px;
	height: 6px;
	border-left: 2px solid var(--wp--preset--color--secondary);
	border-bottom: 2px solid var(--wp--preset--color--secondary);
	transform: rotate(-45deg);
}

.cwp-doc-promo .wp-block-buttons {
	width: 100%;
}

.cwp-doc-promo .wp-block-button__width-100 {
	width: 100%;
}

.cwp-doc-promo .wp-block-button__width-100 .wp-block-button__link {
	display: block;
	width: 100%;
	text-align: center;
}

.cwp-doc-promo-col .cwp-doc-sticky {
	position: sticky;
	top: 92px;
}

/*
 * The promo is the first thing to go when space is tight: on a narrow screen it
 * would push the articles below the fold, and a reader who is mid-guide has not
 * asked to be sold to yet.
 */
@media (max-width: 1180px) {
	.cwp-doc-layout--archive .cwp-doc-promo-col {
		display: none;
	}
}

@media (max-width: 1080px) {
	.cwp-doc-promo-wrap {
		display: none;
	}
}

/* Single post: article and sidebar ------------------------------------------ */
.cwp-post-layout {
	align-items: flex-start;
}

.cwp-post-sticky {
	position: sticky;
	top: 92px;
}

.cwp-post-meta {
	gap: 0.75rem;
}

.cwp-post-body {
	font-weight: 400;
	font-size: 1.0625rem;
	line-height: 1.75;
	color: var(--wp--preset--color--foreground-2);
}

.cwp-post-body > * + * {
	margin-top: 1.25rem;
}

.cwp-post-body h2 {
	margin-top: 2.75rem;
	font-size: 1.5rem;
}

.cwp-post-body h3 {
	margin-top: 2rem;
	font-size: 1.1875rem;
}

.cwp-post-body img {
	border-radius: 10px;
}

.cwp-post-body pre {
	padding: 1.25rem;
	border-radius: 10px;
	background: var(--wp--preset--color--foreground-1);
	color: #dbe6f5;
	font-size: 0.875rem;
	line-height: 1.7;
	overflow-x: auto;
}

.cwp-post-more .wp-block-post-template {
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (max-width: 900px) {
	.cwp-post-sticky {
		position: static;
	}

	/*
	 * Stacked, the promo would sit between the article and "Keep reading",
	 * interrupting someone who is still reading. It goes.
	 */
	.cwp-post-aside {
		display: none;
	}
}

/* Videos page -------------------------------------------------------------- */
.cwp-videos-intro {
	font-weight: 400;
	color: var(--wp--preset--color--foreground-2);
}

.cwp-videos {
	display: grid;
	grid-template-columns: repeat(var(--cwp-video-cols, 3), minmax(0, 1fr));
	gap: clamp(1.5rem, 3vw, 2.25rem);
}

.cwp-video {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.cwp-video__player,
.cwp-video__frame {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border: 0;
	border-radius: 12px;
	background: var(--wp--preset--color--foreground-1);
}

.cwp-video__player img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.cwp-video__player:hover img,
.cwp-video__player:focus-visible img {
	transform: scale(1.03);
	opacity: 0.85;
}

.cwp-video__player:focus-visible {
	outline: 3px solid var(--wp--preset--color--primary);
	outline-offset: 3px;
}

.cwp-video__play {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: rgba(6, 12, 57, 0.72);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
	transition: background 0.2s ease, transform 0.2s ease;
}

.cwp-video__play::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 54%;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: 11px 0 11px 18px;
	border-color: transparent transparent transparent #fff;
}

.cwp-video__player:hover .cwp-video__play {
	background: var(--wp--preset--color--primary);
	transform: scale(1.06);
}

.cwp-video__body {
	padding-top: 1rem;
}

.cwp-video__title {
	margin: 0;
	font-size: 1rem;
	line-height: 1.35;
}

.cwp-video__title a {
	text-decoration: none;
	color: var(--wp--preset--color--foreground-1);
}

.cwp-video__title a:hover {
	color: var(--wp--preset--color--primary);
}

.cwp-video__date {
	margin: 0.35rem 0 0;
	font-size: 0.75rem;
	color: var(--wp--preset--color--foreground-4);
}

.cwp-video__desc {
	margin: 0.5rem 0 0;
	font-size: 0.875rem;
	font-weight: 400;
	line-height: 1.55;
	color: var(--wp--preset--color--foreground-3);
}

@media (max-width: 1000px) {
	.cwp-videos {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.cwp-videos {
		grid-template-columns: 1fr;
	}
}

.cwp-videos__more {
	margin-top: 2.5rem;
	text-align: center;
}

.cwp-videos__more-btn {
	padding: 12px 24px;
	border: 1px solid var(--wp--preset--color--background-4);
	border-radius: 8px;
	background: #fff;
	font: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--wp--preset--color--foreground-1);
	cursor: pointer;
}

.cwp-videos__more-btn:hover,
.cwp-videos__more-btn:focus-visible {
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
}

.cwp-video[hidden] {
	display: none;
}
