/*
 * About values (prototype about.html "about-values"): heading, then four value cards in a 2 by 2 grid with keylines
 * (from 1024px). One Group: section-about-values is-style-about-values, constrained, off-white (the prototype's <section>).
 */
.about-values__head {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding-bottom: 56px;
}

.about-values__title {
	max-width: 910px;
}

.about-values__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
}

.value-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 24px 0 28px;
}

.value-card > h3 {
	margin: 0;
}

ul.values-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0 0 0 10px;
	list-style: none;
}

.values-list li {
	position: relative;
	margin: 0;
	padding-left: 17px;
}

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

/* the animated link underline (prototype .link-rule) */
.values-list a {
	position: relative;
	font-weight: 600;
}

.values-list a::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	height: 2px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 350ms var(--wp--custom--ease);
}

.values-list a:hover::after,
.values-list a:focus-visible::after {
	transform: scaleX(1);
}

/* the effects scripts rebuild the heading and drop the br's is-desktop-only class: hide them below 1024 here */
@media (width < 1024px) {
	.about-values__title br {
		display: none;
	}
}

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

	.value-card:nth-child(odd) {
		padding-right: 56px;
	}

	.value-card:nth-child(even) {
		padding-left: 56px;
	}

	.value-card:nth-child(1) {
		border-right: 1px solid var(--wp--preset--color--greige);
		border-bottom: 1px solid var(--wp--preset--color--greige);
	}

	.value-card:nth-child(2) {
		border-bottom: 1px solid var(--wp--preset--color--greige);
	}

	.value-card:nth-child(3) {
		border-right: 1px solid var(--wp--preset--color--greige);
	}
}
