/*
 * AMEN-1: amenities grid.
 * What comes with a home, a hotel or a campus, as a grid of short entries:
 * a small mark, the name, and a line of detail where one helps. Each entry
 * arrives with a tick; staff may change it for another of WordPress's icons.
 */

.wprk-section.wprk-amen-1 .wprk-amen-1__list {
	gap: var(--wp--preset--spacing--40);
}

.wprk-amen-1 .wprk-amen-1__item {
	align-items: start;
	border-block-start: 1px solid var(--wprk-border);
	column-gap: var(--wp--preset--spacing--30);
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	padding-block-start: var(--wp--preset--spacing--30);
}

.wprk-amen-1 .wprk-amen-1__item > *,
.wprk-amen-1 .wprk-amen-1__text > * {
	margin: 0;
	min-width: 0;
}

/* An entry without a mark gives its words the whole width. */
.wprk-amen-1 .wprk-amen-1__item > .wprk-amen-1__text:first-child {
	grid-column: 1 / -1;
}

/* The mark, in the accent colour on a light ground of the same colour. */
.wprk-amen-1 .wprk-card__icon {
	background-color: color-mix(in srgb, var(--wprk-accent-text) 12%, transparent);
	border-radius: var(--wp--custom--radius--md);
	color: var(--wprk-accent-text);
	display: grid;
	height: 2.5rem;
	place-items: center;
	width: 2.5rem;
}

.wprk-amen-1 .wprk-card__icon :where(svg) {
	display: block;
	fill: currentColor;
	height: 1.5rem;
	width: 1.5rem;
}

.wprk-amen-1 .wprk-amen-1__text :where(h3) {
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.35;
	overflow-wrap: break-word;
}

.wprk-amen-1 .wprk-amen-1__text .wprk-muted {
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
	margin-block-start: 0.2rem;
}
