/*
 * Statement body (prototype statement.html "statement-body"). Pattern cmc/statement-body, the start of every
 * statement's content:
 *   <section> section-statement-body is-style-statement-body, white, 40 / 40, constrained
 *     .statement-body__grid   1 col gap 50; lg: 640 + 340 columns, indented 133
 *       .statement-body__text the statement (ends with the "Statement boilerplate" synced pattern)
 *       <aside>               sticky at lg under the header: .statement-body__card (cloud) + .statement-body__note
 * The text column styles its blocks itself, so editors just write: paragraphs text-8 at 20 apart, H2 text-5 (40
 * above), H3 text-7 semibold (30 above), images full width rounded (25 above), lists with coral dots, links navy
 * semibold with the link rule.
 */
.section-statement-body .statement-body__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 50px;
}

.section-statement-body .statement-body__text {
	min-width: 0;
	font-size: var(--wp--preset--font-size--text-8);
	line-height: 1.3;
}

.section-statement-body .statement-body__text > * + * {
	margin-top: 20px;
}

.section-statement-body .statement-body__text > h2 {
	font-size: var(--wp--preset--font-size--text-5);
	font-weight: 400;
	line-height: 1.2;
}

.section-statement-body .statement-body__text > * + h2 {
	margin-top: 40px;
}

.section-statement-body .statement-body__text > h3 {
	font-size: var(--wp--preset--font-size--text-7);
	font-weight: 600;
	line-height: 1.3;
}

.section-statement-body .statement-body__text > * + h3 {
	margin-top: 30px;
}

.section-statement-body .statement-body__text > .wp-block-image {
	margin-bottom: 0;
}

.section-statement-body .statement-body__text > * + .wp-block-image {
	margin-top: 25px;
}

.section-statement-body .statement-body__text > .wp-block-image img {
	width: 100%;
	border-radius: var(--wp--custom--radius--card);
}

.section-statement-body .statement-body__text > ul {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding-left: 10px;
	list-style: none;
}

.section-statement-body .statement-body__text > ul > li {
	position: relative;
	padding-left: 17px;
}

.section-statement-body .statement-body__text > ul > li::before {
	content: "";
	position: absolute;
	top: 9px;
	left: 0;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background-color: var(--wp--preset--color--coral);
}

/* Links: the prototype's .link-rule, navy semibold */
.section-statement-body .statement-body__text a {
	position: relative;
	color: var(--wp--preset--color--navy);
	font-weight: 600;
	text-decoration: none;
}

.section-statement-body .statement-body__text a::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	height: 2px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.35s var(--wp--custom--ease);
}

.section-statement-body .statement-body__text a:hover::after,
.section-statement-body .statement-body__text a:focus-visible::after {
	transform: scaleX(1);
}

/* Aside cards: rounded-card p-30, heading → body 12 → link 16; the second card 20 below, greige keyline */
.section-statement-body .statement-body__aside {
	min-width: 0;
}

.section-statement-body .statement-body__card {
	padding: 30px;
	border-radius: var(--wp--custom--radius--card);
}

.section-statement-body .statement-body__card + .statement-body__card {
	margin-top: 20px;
}

.section-statement-body .statement-body__note {
	border: 1px solid var(--wp--preset--color--greige);
}

.section-statement-body .statement-body__card > * + * {
	margin-top: 12px;
}

/* The link sits on the card's own 24px line with its 16px margin inside it, as the prototype's inline-flex <a mt-16>
   does (that line is ~37px, not 16 + 24): the margin goes on the link, not on the Buttons block. */
.section-statement-body .statement-body__card > .wp-block-buttons {
	margin-top: 0;
}

.section-statement-body .statement-body__card .wp-block-button__link {
	margin-top: 16px;
}

.section-statement-body .statement-body__card .wp-block-button.is-style-link .wp-block-button__link::after {
	width: 14px;
	height: 14px;
}

@media (width >= 1024px) {
	.section-statement-body .statement-body__grid {
		grid-template-columns: minmax(0, 640px) minmax(0, 340px);
		padding-left: 133px;
	}

	.section-statement-body .statement-body__aside {
		position: sticky;
		top: calc(var(--header-height, 90px) + 30px);
		align-self: start;
	}
}

@media (prefers-reduced-motion: reduce) {
	.section-statement-body .statement-body__text a::after {
		transition: none;
	}
}
