/* Block / Newsletter teaser. Three 410-wide cards at gap 24. Tablet: two cards, the third hidden.
   Mobile: horizontally scrolling row of 300-wide cards at gap 16, leading padding aligned to the
   page margin; the "all newsletters" link moves below the row, left-aligned, 24 above it. */

.axn-teaser .axn-container {
	display: flex;
	flex-direction: column;
	gap: var(--space-40);
}

.axn-teaser__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--space-24);
}

.axn-teaser__head .axn-section-header {
	max-width: 640px;
}

.axn-teaser__all {
	flex: none;
}

.axn-teaser__cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: start;
	gap: var(--space-24);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (max-width: 1023px) {
	.axn-teaser__cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.axn-teaser__cards > li:nth-child(n + 3) {
		display: none;
	}
}

@media (max-width: 767px) {
	.axn-teaser .axn-container {
		display: grid;
		gap: var(--space-24);
	}

	.axn-teaser__head {
		display: contents;
	}

	.axn-teaser__all {
		order: 3;
	}

	.axn-teaser__cards {
		order: 2;
		display: flex;
		gap: var(--space-16);
		margin: 0 calc(-1 * var(--page-margin));
		padding: 0 var(--page-margin) var(--space-4);
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: var(--page-margin);
		scrollbar-width: none;
	}

	.axn-teaser__cards::-webkit-scrollbar {
		display: none;
	}

	.axn-teaser__cards > li,
	.axn-teaser__cards > li:nth-child(n + 3) {
		display: block;
		flex: 0 0 300px;
		scroll-snap-align: start;
	}

	.axn-teaser__cards .axn-resource-card__media {
		height: 165px;
	}
}
