.ml-features-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	width: 100%;
}

.ml-features-grid__card {
	display: flex;
	height: 100%;
	min-width: 0;
	box-sizing: border-box;
	padding: 20px;
	background: #f5f9ffe5;
	border: 1px solid #e4ecfb;
	border-radius: 12px;
	box-shadow: 0 1px 2px #1018280a, 0 12px 32px -12px #005ff933;
}

.ml-features-grid__content {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
}

.ml-features-grid__emoji {
	align-self: flex-start;
	color: #000;
	font-family: "Heebo", "Roboto", sans-serif;
	font-size: 28px;
	font-weight: 600;
	line-height: 36px;
	letter-spacing: 0.24px;
}

.ml-features-grid__heading {
	display: flex;
	align-items: center;
	gap: 0 16px;
	min-width: 0;
}

.ml-features-grid__title {
	min-width: 0;
	color: #000;
	font-family: "Heebo", "Roboto", sans-serif;
	font-size: 24px;
	font-weight: 600;
	line-height: 36px;
	letter-spacing: 0.24px;
}

.ml-features-grid__label {
	flex: 0 0 auto;
	padding: 0 4px;
	color: var(--ml-feature-label-color, #8224e3);
	font-family: "Heebo", "Roboto", sans-serif;
	font-size: 12px;
	font-weight: 600;
	line-height: 18px;
	letter-spacing: 0.08px;
	border: 1px solid var(--ml-feature-label-color, #8224e3);
	border-radius: 2px;
}

.ml-features-grid__description {
	color: #363636;
	font-family: "Heebo", "Roboto", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	letter-spacing: 0.24px;
}

.ml-features-grid__empty {
	color: #646970;
	font-size: 14px;
}

@media (min-width: 769px) {
	.ml-features-grid__content {
		max-width: 328px;
	}
}

/*
 * Three cards to a row on a six-column track, so an incomplete last row never
 * leaves a gap: two leftover cards share the row half and half, and a single
 * leftover pulls the card above down with it, turning the last two rows into
 * two columns each.
 */
@media (min-width: 1025px) {
	.ml-features-grid {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}

	.ml-features-grid__card {
		grid-column: span 2;
	}

	/* 3n + 2 cards: the last two. */
	.ml-features-grid__card:nth-child(3n+1):nth-last-child(2),
	.ml-features-grid__card:nth-child(3n+1):nth-last-child(2) + .ml-features-grid__card,
	/* 3n + 1 cards (4 or more): the last four. */
	.ml-features-grid__card:nth-child(3n+1):nth-last-child(4),
	.ml-features-grid__card:nth-child(3n+1):nth-last-child(4) ~ .ml-features-grid__card {
		grid-column: span 3;
	}

	.ml-features-grid__card:nth-child(3n+1):nth-last-child(2) .ml-features-grid__content,
	.ml-features-grid__card:nth-child(3n+1):nth-last-child(2) + .ml-features-grid__card .ml-features-grid__content,
	.ml-features-grid__card:nth-child(3n+1):nth-last-child(4) .ml-features-grid__content,
	.ml-features-grid__card:nth-child(3n+1):nth-last-child(4) ~ .ml-features-grid__card .ml-features-grid__content {
		max-width: none;
	}
}

@media (max-width: 1024px) {
	.ml-features-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	.ml-features-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.ml-features-grid__heading {
		flex-wrap: wrap;
	}
}