/*
 * Technical Committee quotes, "Why the committee does this" (prototype index.html "technical-committee", the
 * visible slider; the member carousel and the Slider/Grid switch are not built). Pattern cmc/technical-committee:
 *   backing (off-white) > section (white, pb 40) > .tc-quotes (Group style "Pager", greige hairline, pt 40):
 *     .tc-quotes__head (eyebrow + H2) | .pager__nav (round prev/next), then .pager__track, then the committee link.
 *   The track's slides are PAGES of two quotes (side by side from 1024px, stacked below), so one click turns a page
 *   as the prototype does. A quote: .quote-card (off-white, p 30) > core/quote + .quote-card__by (photo, name, role).
 */
.tc-quotes {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	border-top: 1px solid var(--wp--preset--color--greige);
}

.tc-quotes__head {
	display: flex;
	flex-direction: column;
	gap: 25px;
	min-width: 0;
}

.tc-quotes > .pager__nav {
	margin-top: 25px;
}

.tc-quotes > .pager__track {
	gap: 32px;
	margin-top: 30px;
}

.tc-quotes > .pager__track > * {
	width: 100%;
}

.tc-quotes > .tc-quotes__more {
	margin-top: 30px;
}

@media (width >= 1024px) {
	.tc-quotes {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.tc-quotes > .pager__nav {
		align-self: end;
		margin-top: 0;
	}

	.tc-quotes > .pager__track,
	.tc-quotes > .tc-quotes__more {
		grid-column: 1 / -1;
	}
}

.tc-quotes__page {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 32px;
	padding-bottom: 10px;
}

@media (width >= 1024px) {
	.tc-quotes__page {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.quote-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 30px;
	border-radius: var(--wp--custom--radius--card);
}

.quote-card .wp-block-quote {
	display: block;
	margin: 0;
	padding: 0;
	border: 0;
}

/* the quote reads at the regular weight here (blocks/core-quote.css makes quote words semibold by default) */
.quote-card .wp-block-quote > p {
	font-weight: 400;
}

/* the coral quote marks (prototype .quote-mark), drawn round the words so editors only type the quote */
.quote-card .wp-block-quote p::before,
.quote-card .wp-block-quote p::after {
	font-size: 1.5em;
	font-weight: 700;
	line-height: 0;
	color: var(--wp--preset--color--coral);
	user-select: none;
}

.quote-card .wp-block-quote p:first-child::before {
	content: "\201C";
	margin-left: -0.26em;
	margin-right: 0.04em;
}

.quote-card .wp-block-quote p:last-child::after {
	content: "\201D";
	margin-left: 0.06em;
	vertical-align: -0.12em;
}

.quote-card > .quote-card__by {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 24px;
	padding-top: 15px;
	border-top: 1px solid var(--wp--preset--color--greige);
}

.quote-card__by .wp-block-image {
	flex: none;
	margin: 0;
}

.quote-card__by .wp-block-image img {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	object-fit: cover;
}

.quote-card__who {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

/* "Meet the Technical Committee": the Link button at 18px, navy, with no bottom padding (prototype: no pb-2). It sits
   on a 24px line, as the prototype's inline-flex link in its mt-30 div does. */
.tc-quotes__more .wp-block-button__link {
	gap: 8px;
}

.tc-quotes__more .wp-block-button__link::after {
	width: 15px;
	height: 15px;
}
