/* PLUGIN COLLECTION PAGES (EN /wordpress-plugins/, ES /es/wordpress-plugins/) */

/* Sections Stack Vertically and Keep Their Content at the Theme Width, Centered */
.wpsddc-plugin-index-hero,
.wpsddc-plugin-index-section,
.wpsddc-plugin-index-conclusion {
	--wpsddc-index-width: min(100% - 2 * var(--sddc-gutter), var(--sddc-max));
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}
.wpsddc-plugin-index-hero > *,
.wpsddc-plugin-index-section > .wp-block-group__inner-container,
.wpsddc-plugin-index-conclusion > .wp-block-group__inner-container {
	box-sizing: border-box;
	width: var(--wpsddc-index-width) !important;
	max-width: var(--wpsddc-index-width);
	margin-inline: auto;
	padding-inline: 0;
}
.wpsddc-plugin-index-hero > .wp-block-group__inner-container > *,
.wpsddc-plugin-index-section > .wp-block-group__inner-container > *,
.wpsddc-plugin-index-conclusion > .wp-block-group__inner-container > * {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin-inline: auto;
}

/* Hero */
.wpsddc-plugin-index-hero {
	padding-block: clamp(4.5rem, 9vw, 7rem);
	/* Featured Image Behind a Dark Veil, So the Text Stays Readable in Both Themes */
	background-color: #0b0f14;
	background-image: linear-gradient(180deg, rgba(11, 15, 20, .5), rgba(11, 15, 20, .78)), var(--wpsddc-index-hero-image, none);
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	color: #fff;
}
.wpsddc-plugin-index-hero .wpsddc-index-kicker {
	margin-block: 0;
	font-size: .85rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #d7dde5;
}
.wpsddc-plugin-index-hero h1.wp-block-heading {
	max-width: 100%;
	margin-block: .8rem 1.15rem;
	font-size: clamp(2.2rem, 5.4vw, 4.35rem);
	font-weight: 800;
	line-height: 1.14;
	letter-spacing: -.035em;
	color: #fff;
	text-wrap: balance;
}
.wpsddc-plugin-index-hero .wpsddc-plugin-index-lead {
	max-width: 100%;
	margin-block: 0;
	font-size: clamp(1rem, 1.5vw, 1.2rem);
	line-height: 1.75;
	color: #d7dde5;
}

.wpsddc-plugin-index-hero .wpsddc-plugin-index-lead strong {
	color: #fff;
}
.wpsddc-plugin-index-hero > .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: .75rem 1rem;
	width: auto;
	margin-block: clamp(1.75rem, 3vw, 2.5rem) 0;
}
.wpsddc-plugin-index-hero > .wp-block-buttons > * {
	flex: 0 0 auto;
	width: auto;
	height: auto;
	margin: 0;
}
.wpsddc-plugin-index-hero > .wp-block-buttons .wp-block-button__link {
	height: auto;
	min-height: 0;
}

/* Category Sections */
.wpsddc-plugin-index-section {
	padding-block: clamp(3.5rem, 7vw, 5.5rem);
	border-block-end: 1px solid var(--sddc-border);
}
.wpsddc-plugin-index-section > .wp-block-group__inner-container > h2.wp-block-heading {
	margin-block: 0 .65rem;
	font-size: clamp(1.375rem, 2.6vw, 1.75rem);
	color: var(--sddc-text);
	text-align: center;
}
.wpsddc-plugin-index-section > .wp-block-group__inner-container > p {
	max-width: 72ch;
	margin-block: 0 clamp(1.75rem, 3.5vw, 2.75rem);
	color: var(--sddc-text-2);
	line-height: 1.7;
	text-align: center;
}
.wpsddc-plugin-index-section .wp-block-query {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
}

/* Plugin Grid: Image-Only Cards at the Theme Width (3 Columns), Incomplete Rows Centered. Shared With the Home Plugins Section */
.wpsddc-plugin-index-grid {
	--wpsddc-index-gap: clamp(1rem, 2vw, 1.5rem);
	--wpsddc-index-cols: 3;
	display: flex !important;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--wpsddc-index-gap);
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}
.wpsddc-plugin-index-grid > li.wp-block-post {
	box-sizing: border-box;
	display: flex;
	flex: 0 0 calc((100% - (var(--wpsddc-index-cols) - 1) * var(--wpsddc-index-gap)) / var(--wpsddc-index-cols));
	max-width: calc((100% - (var(--wpsddc-index-cols) - 1) * var(--wpsddc-index-gap)) / var(--wpsddc-index-cols));
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}
.wpsddc-plugin-index-grid > li.wp-block-post::marker {
	content: "";
}
.wpsddc-plugin-index-card {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}
.wpsddc-plugin-index-card > .wp-block-group__inner-container {
	max-width: none;
	margin: 0;
	padding: 0;
}
.wpsddc-plugin-index-card .wpsddc-plugin-index-card-image {
	display: block;
	width: 100%;
	margin: 0;
	aspect-ratio: 1200 / 630;
	overflow: hidden;
	border: var(--sddc-component-border-width, 2px) solid var(--sddc-border-strong);
	border-radius: var(--sddc-radius-sm, 12px);
	background: #000;
	transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.wpsddc-plugin-index-card .wpsddc-plugin-index-card-image > a {
	display: block;
	width: 100%;
	height: 100%;
}
.wpsddc-plugin-index-card .wpsddc-plugin-index-card-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}
.wpsddc-plugin-index-card:is(:hover, :focus-within) .wpsddc-plugin-index-card-image {
	transform: translateY(-4px);
	border-color: var(--sddc-border-strong);
	box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
}
.wpsddc-plugin-index-card .wpsddc-plugin-index-card-image > a:focus-visible {
	outline: 2px solid var(--sddc-text);
	outline-offset: 3px;
}

/* The Image Is the Card: the Title Stays for Screen Readers, the Rest Is Hidden */
.wpsddc-plugin-index-card h3.wp-block-post-title {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.wpsddc-plugin-index-card .wp-block-post-excerpt,
.wpsddc-plugin-index-card .wp-block-read-more {
	display: none;
}
.wpsddc-plugin-index-section .wp-block-query-no-results {
	color: var(--sddc-text-2);
	font-size: .95rem;
}

/* Conclusion */
.wpsddc-plugin-index-conclusion {
	padding-block: clamp(3.5rem, 7vw, 5.5rem);
}
.wpsddc-plugin-index-conclusion > .wp-block-group__inner-container > h2.wp-block-heading {
	max-width: 100%;
	margin: 0 auto clamp(1.5rem, 4vw, 2rem);
	font-size: clamp(1.6rem, 5vw, 2.25rem);
	line-height: 1.25;
	text-wrap: balance;
}
.wpsddc-plugin-index-conclusion > .wp-block-group__inner-container > p {
	max-width: 100%;
	margin: 0 auto 1.5rem;
	line-height: 1.7;
	text-wrap: pretty;
}
.wpsddc-plugin-index-conclusion > .wp-block-group__inner-container > p:last-child {
	margin-bottom: 0;
}

@media (max-width: 820px) {
	.wpsddc-plugin-index-grid {
		--wpsddc-index-cols: 2;
	}
}
@media (max-width: 520px) {
	.wpsddc-plugin-index-grid {
		--wpsddc-index-cols: 1;
	}
	.wpsddc-plugin-index-hero {
		padding-block: 3.5rem;
	}
	.wpsddc-plugin-index-conclusion {
		--wpsddc-index-width: min(100% - 2 * var(--sddc-gutter), var(--sddc-max));
		padding-block: 3.5rem;
	}
	.wpsddc-plugin-index-conclusion > .wp-block-group__inner-container > p {
		font-size: 1rem;
		line-height: 1.75;
		margin-bottom: 1.75rem;
	}
}
@media (prefers-reduced-motion: reduce) {
	.wpsddc-plugin-index-card .wpsddc-plugin-index-card-image {
		transition: none;
	}
	.wpsddc-plugin-index-card:is(:hover, :focus-within) .wpsddc-plugin-index-card-image {
		transform: none;
	}
}


/* WORDPRESS PLUGIN INDEX FAQ MATCHES THE NATIVE CPT FAQ CARDS */
body.page-id-2239 .wpsddc-cpt-section--faq,
body.page-id-2240 .wpsddc-cpt-section--faq {
	padding-block: clamp(3.5rem, 7vw, 5.5rem);
	background: var(--sddc-bg);
	text-align: left;
}
body.page-id-2239 .wpsddc-cpt-section--faq > .wp-block-group__inner-container,
body.page-id-2240 .wpsddc-cpt-section--faq > .wp-block-group__inner-container {
	box-sizing: border-box;
	width: min(100% - 2 * var(--sddc-gutter), var(--sddc-max));
	max-width: none;
	margin-inline: auto;
	padding: 0;
}
body.page-id-2239 .wpsddc-cpt-section--faq h2.wp-block-heading,
body.page-id-2240 .wpsddc-cpt-section--faq h2.wp-block-heading {
	margin: 0 0 clamp(2.25rem, 4vw, 3rem);
	color: var(--sddc-text);
	font-size: clamp(1.55rem, 2.7vw, 2.2rem);
	font-weight: 700;
	line-height: 1.3;
	text-wrap: balance;
}
body.page-id-2239 .wpsddc-cpt-section--faq .wp-block-details,
body.page-id-2240 .wpsddc-cpt-section--faq .wp-block-details {
	margin-block: 0 1rem;
	padding: clamp(1.1rem, 2.3vw, 1.65rem);
	border: 1px solid var(--sddc-border);
	border-radius: 12px;
	background: var(--sddc-bg);
	color: var(--sddc-text);
	transition: border-color .25s ease, box-shadow .25s ease, transform .3s ease;
}
body.page-id-2239 .wpsddc-cpt-section--faq .wp-block-details:hover,
body.page-id-2240 .wpsddc-cpt-section--faq .wp-block-details:hover {
	border-color: var(--sddc-border-strong);
	transform: translateY(-2px);
}
body.page-id-2239 .wpsddc-cpt-section--faq summary,
body.page-id-2240 .wpsddc-cpt-section--faq summary {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	cursor: pointer;
	list-style: none;
	font-weight: 650;
}
body.page-id-2239 .wpsddc-cpt-section--faq summary::-webkit-details-marker,
body.page-id-2240 .wpsddc-cpt-section--faq summary::-webkit-details-marker {
	display: none;
}
body.page-id-2239 .wpsddc-cpt-section--faq summary::marker,
body.page-id-2240 .wpsddc-cpt-section--faq summary::marker {
	content: "";
}
body.page-id-2239 .wpsddc-cpt-section--faq summary::before,
body.page-id-2240 .wpsddc-cpt-section--faq summary::before {
	display: none !important;
	content: none !important;
}
body.page-id-2239 .wpsddc-cpt-section--faq summary::after,
body.page-id-2240 .wpsddc-cpt-section--faq summary::after {
	display: block;
	flex: 0 0 auto;
	margin-inline-start: auto;
	content: "+";
	font-size: 1.6rem;
	font-weight: 400;
	line-height: 1;
}
body.page-id-2239 .wpsddc-cpt-section--faq details[open] > summary::after,
body.page-id-2240 .wpsddc-cpt-section--faq details[open] > summary::after {
	content: "−";
}
body.page-id-2239 .wpsddc-cpt-section--faq .wp-block-details[open] > summary,
body.page-id-2240 .wpsddc-cpt-section--faq .wp-block-details[open] > summary {
	margin-bottom: 1rem;
	padding-bottom: .8rem;
	border-bottom: 1px solid var(--sddc-border);
}
body.page-id-2239 .wpsddc-cpt-section--faq .wp-block-details > :last-child,
body.page-id-2240 .wpsddc-cpt-section--faq .wp-block-details > :last-child {
	margin-bottom: 0;
}
@media (prefers-reduced-motion: reduce) {
	body.page-id-2239 .wpsddc-cpt-section--faq .wp-block-details,
	body.page-id-2240 .wpsddc-cpt-section--faq .wp-block-details {
		transition: none;
	}
}

/* KEEP THE FAQ HEADING CENTERED WITHIN THE STANDARD THEME CONTAINER */
body.page-id-2239 .wpsddc-cpt-section--faq h2.wp-block-heading,
body.page-id-2240 .wpsddc-cpt-section--faq h2.wp-block-heading {
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	margin-inline: auto;
	text-align: center;
}

/* NATIVE GUTENBERG DASHICONS FOR THE THREE SELECTION GUIDES */
body.page-id-2239 .wpsddc-plugin-howto .wpsddc-howto-icon,
body.page-id-2240 .wpsddc-plugin-howto .wpsddc-howto-icon {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	margin: 0 auto 1rem;
	color: var(--sddc-text);
}
body.page-id-2239 .wpsddc-plugin-howto .wpsddc-howto-icon .dashicons,
body.page-id-2240 .wpsddc-plugin-howto .wpsddc-howto-icon .dashicons {
	width: 2.5rem;
	height: 2.5rem;
	font-size: 2.5rem;
	line-height: 1;
}

/* SPACE THE NATIVE GUTENBERG HOW-TO COLUMNS EVENLY */
body.page-id-2239 .wpsddc-plugin-howto .wp-block-columns,
body.page-id-2240 .wpsddc-plugin-howto .wp-block-columns {
	column-gap: clamp(2.5rem, 5vw, 5rem);
	row-gap: 2.25rem;
}
body.page-id-2239 .wpsddc-plugin-howto .wp-block-column,
body.page-id-2240 .wpsddc-plugin-howto .wp-block-column { min-width: 0; }

/* MATCH THE INDEX FAQ BORDERS TO THE SITE COMPONENTS */
body.page-id-2239 .wpsddc-cpt-section--faq .wp-block-details,
body.page-id-2240 .wpsddc-cpt-section--faq .wp-block-details {
	border-width: var(--sddc-component-border-width, 2px);
}
