.fwf-checklist {
	padding-block: var(--wp--preset--spacing--50);
	background: var(--wp--preset--color--surface);
}

.fwf-checklist--dark {
	background: var(--wp--preset--color--primary);
	color: #fff;
}

.fwf-checklist__inner {
	max-width: var(--wp--style--global--wide-size, 1280px);
	margin-inline: auto;
	padding-inline: var(--wp--preset--spacing--20);
}

/* Header ------------------------------------------------------------------ */

/*
 * The prose used to sit in a `.fwf-checklist__header` wrapper that carried the
 * centering. Moving it to InnerBlocks left the eyebrow, heading and intro as
 * direct children with no wrapper, so that rule stopped matching anything and
 * the header quietly went left-aligned. Each part now centers itself, which
 * also survives an editor adding a fourth paragraph.
 *
 * The list is deliberately excluded: its block is centerd, but a check list
 * reads as a column, so the items stay left-aligned against their marks.
 */
.fwf-checklist__eyebrow,
.fwf-checklist__heading,
.fwf-checklist__intro {
	max-width: 62ch;
	margin-inline: auto;
	text-align: center;
}

.fwf-checklist__intro {
	margin-block-end: var(--wp--preset--spacing--40);
}

.fwf-checklist__eyebrow {
	margin-block-end: var(--wp--preset--spacing--10);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--wp--preset--color--primary);
}

.fwf-checklist--dark .fwf-checklist__eyebrow {
	color: var(--wp--preset--color--accent);
}

.fwf-checklist__heading {
	margin: 0;
	font-size: var(--wp--preset--font-size--xx-large);
	color: var(--wp--preset--color--secondary);
}

.fwf-checklist--dark .fwf-checklist__heading {
	color: #fff;
}

.fwf-checklist__intro {
	margin-block-start: var(--wp--preset--spacing--20);
	color: var(--wp--preset--color--muted);
}

.fwf-checklist--dark .fwf-checklist__intro {
	color: rgb(255 255 255 / 0.8);
}

.fwf-checklist__list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--wp--preset--spacing--20) var(--wp--preset--spacing--40);
	max-width: 62rem;
	margin-inline: auto;
	padding: 0;
	list-style: none;
}

/* Points ------------------------------------------------------------------ */

/*
 * The generic `is-style-checks` mark in assets/css/blocks.css is drawn in
 * `primary`, which is exactly the color this band's dark variant sits on — so
 * on a dark checklist it was primary on primary and vanished entirely. These
 * rules carry `.wp-block-list` so they outrank that one on specificity rather
 * than on source order, and give the band the check-circle icon the design
 * called for.
 */
.fwf-checklist .wp-block-list.fwf-checklist__list > li {
	position: relative;
	padding-inline-start: 2.4rem;
	margin-block-end: 0;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
}

.fwf-checklist .wp-block-list.fwf-checklist__list > li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	inset-block-start: 0.15em;
	width: 1.4rem;
	height: 1.4rem;
	background-color: var(--wp--preset--color--primary);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M256 32a224 224 0 1 1 0 448 224 224 0 1 1 0-448zm0 480A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM363.3 203.3c6.2-6.2 6.2-16.4 0-22.6s-16.4-6.2-22.6 0L224 297.4l-52.7-52.7c-6.2-6.2-16.4-6.2-22.6 0s-6.2 16.4 0 22.6l64 64c6.2 6.2 16.4 6.2 22.6 0l128-128z'/%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 512 512'%3E%3Cpath d='M256 32a224 224 0 1 1 0 448 224 224 0 1 1 0-448zm0 480A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM363.3 203.3c6.2-6.2 6.2-16.4 0-22.6s-16.4-6.2-22.6 0L224 297.4l-52.7-52.7c-6.2-6.2-16.4-6.2-22.6 0s-6.2 16.4 0 22.6l64 64c6.2 6.2 16.4 6.2 22.6 0l128-128z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.fwf-checklist--dark .wp-block-list.fwf-checklist__list > li::before {
	background-color: var(--wp--preset--color--accent);
}

@media (max-width: 780px) {
	.fwf-checklist__list {
		grid-template-columns: 1fr;
	}
}
