/*
 * Statement list (prototype statements.html "statement-list"). Pattern cmc/statement-list:
 *   <section> section-statement-list is-style-statement-list, off-white, 40 / 40, constrained
 *     .statement-list__bar        the filter row; the filters are not built (plan §7), so the Subscribe box sits on
 *                                 the right at lg as it does beside them, full width below
 *     Query Loop .statement-list__query > ul.statement-list__items > li > article.statement-card
 * Card: rounded-card bg-white/75 p-20, 2px outline black/10 + white on hover; grid 1 col gap 25, lg 2fr 1fr gap 50.
 */
.section-statement-list .statement-list__bar {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 25px;
}

@media (width >= 1024px) {
	.section-statement-list .statement-list__bar {
		flex-direction: row;
		align-items: center;
		justify-content: flex-end;
	}
}

/* Subscribe box (the Contact notice): 20px info glyph, 14 gap, heading over body */
.section-statement-list .statement-list__subscribe {
	display: flex;
	flex-shrink: 0;
	gap: 14px;
	width: 100%;
	padding: 18px 20px;
	border-radius: var(--wp--custom--radius--btn);
	color: var(--wp--preset--color--charcoal);
}

@media (width >= 1024px) {
	.section-statement-list .statement-list__subscribe {
		width: auto;
		max-width: 500px;
	}
}

.section-statement-list .statement-list__subscribe::before {
	content: "";
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	margin-top: 2px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}

.section-statement-list .statement-list__subscribe-text {
	display: flex;
	flex-direction: column;
	gap: 5px;
	min-width: 0;
}

.section-statement-list .statement-list__subscribe a {
	text-decoration-line: underline;
	text-decoration-thickness: 2px;
	text-decoration-color: color-mix(in srgb, var(--wp--preset--color--charcoal) 40%, transparent);
	text-underline-offset: 2px;
	transition: text-decoration-color 300ms var(--wp--custom--ease);
}

.section-statement-list .statement-list__subscribe a:hover,
.section-statement-list .statement-list__subscribe a:focus-visible {
	text-decoration-color: var(--wp--preset--color--charcoal);
}

/* The list */
.section-statement-list .statement-list__query {
	margin-top: 30px;
}

.section-statement-list .statement-list__items {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* The card */
.section-statement-list .statement-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 25px;
	padding: 20px;
	border-radius: var(--wp--custom--radius--card);
	outline: 2px solid transparent;
	background-color: rgb(255 255 255 / 0.75);
	color: var(--wp--preset--color--charcoal);
	transition: background-color 300ms var(--wp--custom--ease), outline-color 300ms var(--wp--custom--ease);
}

.section-statement-list .statement-card:hover {
	outline-color: rgb(0 0 0 / 0.1);
	background-color: var(--wp--preset--color--white);
}

.section-statement-list .statement-card__main {
	display: flex;
	gap: 20px;
	min-width: 0;
}

.section-statement-list .statement-card__meta {
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
	gap: 10px;
}

.section-statement-list .statement-card__region {
	color: color-mix(in srgb, var(--wp--preset--color--charcoal) 70%, transparent);
}

.section-statement-list .statement-card__body {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

/* "Read the statement" (core Read More): the prototype's .card-cta, underlined while the card is hovered */
.section-statement-list .statement-card .statement-card__cta {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 8px;
	margin-top: 16px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: var(--wp--custom--letter-spacing--eyebrow);
	text-transform: uppercase;
	text-decoration-line: underline;
	text-decoration-thickness: 2px;
	text-decoration-color: transparent;
	text-underline-offset: 4px;
	transition: text-decoration-color 350ms var(--wp--custom--ease);
}

.section-statement-list .statement-card:hover .statement-card__cta,
.section-statement-list .statement-card .statement-card__cta:focus-visible {
	text-decoration-color: currentColor;
}

.section-statement-list .statement-card .statement-card__cta::after {
	content: "";
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.section-statement-list .statement-card__figures {
	display: flex;
	flex-direction: column;
	gap: 15px;
	min-width: 0;
}

.section-statement-list .statement-card__value {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 15px;
	margin-top: 4px;
}

.section-statement-list .statement-card__value > :empty {
	display: none;
}

@media (width >= 1024px) {
	.section-statement-list .statement-card {
		grid-template-columns: 2fr 1fr;
		gap: 50px;
	}

	.section-statement-list .statement-card__main {
		gap: 50px;
	}

	.section-statement-list .statement-card .statement-card__cta {
		margin-top: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.section-statement-list .statement-card,
	.section-statement-list .statement-card .statement-card__cta,
	.section-statement-list .statement-list__subscribe a {
		transition: none;
	}
}
