.nordemo-cards {
	margin-block: 0 56px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 100%;
}

.nordemo-cards__grid {
	display: flex;
	gap: 24px;
}

.nordemo-cards__card {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 0;
	min-height: 157px;
	padding: 16px 0;
	text-decoration: none;
	background: var(--nordemo-surface);
	border-radius: var(--nordemo-radius);
	/* Figma strokes sit inside the frame. An inset shadow keeps the designed box height. */
	box-shadow: inset 0 0 0 1px var(--nordemo-surface-accent);
}

.nordemo-cards__card:hover {
	box-shadow: inset 0 0 0 1px var(--nordemo-primary);
}

.nordemo-cards__icon {
	flex: none;
	display: block;
	width: 32px;
	height: 32px;
}

.nordemo-cards__header {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 4px;
	width: 100%;
}

.nordemo-cards__title {
	font-size: 20px;
	font-weight: 500;
	line-height: 24px;
	color: var(--nordemo-primary);
	text-align: center;
}

.nordemo-cards__card:hover .nordemo-cards__title {
	color: var(--nordemo-primary-hover);
}

.nordemo-cards :focus-visible {
	outline: 2px solid var(--nordemo-primary);
	outline-offset: 2px;
}

@media (max-width: 991px) {
	.nordemo-cards {
		margin-block: 0 16px;
	}

	.nordemo-cards {
		padding-top: 40px;
	}

	.nordemo-cards__grid {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-auto-rows: 1fr;
		gap: 16px;
	}

	/* A shared minimum keeps one- and two-line titles on the same card height across the grid. */
	.nordemo-cards__card {
		min-height: 111px;
		padding: 16px 8px;
	}

	.nordemo-cards__title {
		font-size: 17px;
		line-height: 25px;
	}

	.nordemo-cards__header .nordemo-icon--card-arrow {
		display: none;
	}
}
