/**
 * Feature cards.
 *
 * brand.css .features / .feature.
 */

.nysf-features {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
}

.nysf-feature {
	background: var(--nysf-card);
	border: 1px solid var(--nysf-line);
	border-radius: 22px;
	padding: 34px 26px;
	box-shadow: var(--nysf-shadow-sm);
	transition: 0.25s;
}

.nysf-feature:hover {
	transform: translateY(-4px);
	border-color: var(--nysf-gold);
}

.nysf-feature__icon {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 22px;
	background: var(--nysf-navy);
	color: var(--nysf-light);
}

/*
 * The palette cycles on a 4n rhythm rather than being set per card, so
 * inserting a card in the middle re-colours the rest the way the design
 * intends instead of leaving a repeated pair.
 */
.nysf-feature:nth-child(4n + 2) .nysf-feature__icon {
	background: var(--nysf-gold);
	color: var(--nysf-navy);
}

.nysf-feature:nth-child(4n + 3) .nysf-feature__icon {
	background: var(--nysf-flare);
	color: var(--nysf-light);
}

.nysf-feature:nth-child(4n + 4) .nysf-feature__icon {
	background: var(--nysf-twilight);
	color: var(--nysf-light);
}

.nysf-feature__title {
	font-family: var(--nysf-display);
	font-weight: 700;
	font-size: 20px;
	line-height: 1.2;
	color: var(--nysf-navy);
	margin: 0 0 10px;
}

.nysf-feature__text {
	color: var(--nysf-ink-soft);
	font-size: 14.5px;
	line-height: 1.55;
	margin: 0;
}

/* brand.css drops to two columns at 980 and one at 620. */
@media (max-width: 980px) {
	.nysf-features {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

@media (max-width: 620px) {
	.nysf-features {
		grid-template-columns: 1fr !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nysf-feature {
		transition: none;
	}

	.nysf-feature:hover {
		transform: none;
	}
}
