.nordemo-documents {
	max-width: 824px;
	margin-block: 0 72px;
	margin-inline: auto;
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.nordemo-documents__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

/*
 * The card's designed height is what places the download button 32px below the text. Keeping it
 * as a minimum lets longer copy grow the card instead of crowding the button.
 */
.nordemo-documents__card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-height: 265px;
	padding: 24px;
	background: var(--nordemo-on-primary);
	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-border-light);
}

.nordemo-documents__head {
	display: flex;
	align-items: center;
	gap: 16px;
}

.nordemo-documents__icon {
	flex: none;
	display: block;
	width: 52px;
	height: 52px;
}

.nordemo-documents__title {
	margin: 0;
	font-size: 24px;
	font-weight: 600;
	line-height: 1.333;
}

.nordemo-documents__text {
	margin: 0;
	line-height: 1.471;
	color: var(--nordemo-text-muted);
}

.nordemo-documents__download {
	align-self: flex-start;
	margin-top: auto;
}

.nordemo-documents__note {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	padding: 24px 32px;
	background: var(--nordemo-surface-accent);
	border-radius: 10px;
}

.nordemo-documents__note-body {
	display: flex;
	flex-direction: column;
	gap: 7px;
	min-width: 0;
}

.nordemo-documents__note-title {
	margin: 0;
	font-size: 24px;
	font-weight: 600;
	line-height: 1.25;
}

.nordemo-documents__note-text {
	max-width: 464px;
	margin: 0;
	line-height: 1.471;
	color: var(--nordemo-text-muted);
}

.nordemo-documents__note-link {
	flex: none;
}

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

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

	.nordemo-documents__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.nordemo-documents__card {
		min-height: 249px;
		padding: 16px;
	}

	.nordemo-documents__title {
		font-size: 20px;
		line-height: 1.2;
	}

	.nordemo-documents__download {
		align-self: stretch;
	}

	.nordemo-documents__note {
		flex-direction: column;
		align-items: stretch;
		gap: 24px;
		padding: 24px 16px;
	}

	.nordemo-documents__note-body {
		gap: 16px;
	}

	.nordemo-documents__note-text {
		max-width: none;
	}

	.nordemo-documents__note-link {
		justify-content: center;
	}
}
