/*
 * Two cards around an arrow: the situation today, then after the project.
 * Lists qualified to outweigh the Article prose lists.
 */
.wp-block-group.is-style-before-after {
	display: grid;
	gap: var(--wp--preset--spacing--20);
}

.is-style-before-after::after {
	content: "";
	order: 1;
	justify-self: center;
	width: var(--wp--custom--control--chip);
	height: var(--wp--custom--control--chip);
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6' stroke='%232457F5' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center / var(--wp--custom--size--checkbox) no-repeat;
	transform: rotate(90deg);
}

.wp-block-group.is-style-before-after > * {
	margin: 0;
	padding: var(--wp--preset--spacing--28);
	border-radius: var(--wp--custom--radius--24);
}

.is-style-before-after > :first-child {
	border: var(--wp--custom--border--hairline) solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--white);
}

.is-style-before-after > :last-child {
	order: 2;
	background: var(--wp--preset--color--blue);
	color: var(--wp--preset--color--white);
}

.is-style-before-after p {
	margin: 0 0 var(--wp--preset--spacing--16);
	font-size: var(--wp--preset--font-size--13);
	font-weight: var(--wp--custom--font-weight--semibold);
	letter-spacing: var(--wp--custom--letter-spacing--label);
	color: var(--wp--preset--color--grey);
}

.is-style-before-after > :last-child p {
	color: var(--wp--custom--color--on-blue-muted);
}

.wp-block-group.is-style-before-after .wp-block-list {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--14);
	margin: 0;
	padding: 0;
	list-style: none;
}

.wp-block-group.is-style-before-after .wp-block-list li {
	position: relative;
	padding-left: calc(var(--wp--custom--size--checkbox) + var(--wp--preset--spacing--12));
	font-size: var(--wp--preset--font-size--16);
	line-height: var(--wp--custom--line-height--normal);
	color: var(--wp--custom--color--body-soft);
}

.wp-block-group.is-style-before-after > :last-child li {
	color: inherit;
}

.wp-block-group.is-style-before-after .wp-block-list li::before {
	content: "";
	position: absolute;
	top: 1px;
	left: 0;
	width: var(--wp--custom--size--checkbox);
	height: var(--wp--custom--size--checkbox);
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--custom--color--error-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6 6 18' stroke='%23D92D20' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / var(--wp--preset--spacing--12) no-repeat;
}

.wp-block-group.is-style-before-after > :last-child li::before {
	background-color: var(--wp--custom--color--on-night-outline);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' stroke='%23FFFFFF' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

@media (min-width: 1001px) {

	.wp-block-group.is-style-before-after {
		grid-template-columns: 1fr auto 1fr;
	}

	.is-style-before-after::after {
		align-self: center;
		transform: none;
	}
}
