.woodcha-home-recipes {
	background: var(--woodcha-section-background);
}

.woodcha-home-recipes__heading {
	align-items: end;
}

.woodcha-home-recipes__heading > div {
	max-width: 660px;
}

.woodcha-home-recipes__heading p {
	margin-top: 14px;
}

.woodcha-home-recipes__link {
	flex: 0 0 auto;
	min-height: 48px;
	padding-inline: 21px;
}

/* Only one archive link is displayed and focusable at each breakpoint. */
.woodcha-home-recipes__link--mobile {
	display: none;
}

.woodcha-home-recipes__dots {
	display: none;
}

.woodcha-home-recipes__grid {
	display: grid;
	gap: clamp(24px, 2.7vw, 40px) 16px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 920px) {
	.woodcha-home-recipes__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.woodcha-home-recipes__grid {
		--woodcha-recipe-gutter: calc((100vw - var(--woodcha-shell)) / 2);
		/* Clip at the screen edges, not at a narrow frame inside the page. */
		gap: 0;
		grid-auto-columns: 100%;
		grid-auto-flow: column;
		grid-template-columns: none;
		margin-inline: calc(-1 * var(--woodcha-recipe-gutter));
		overflow-x: auto;
		overscroll-behavior-inline: contain;
		padding-block: 4px;
		scrollbar-width: none;
		scroll-snap-type: x mandatory;
		width: 100vw;
	}

	.woodcha-home-recipes__grid::-webkit-scrollbar {
		display: none;
	}

	.woodcha-home-recipes .woodcha-recipe-card {
		/* One viewport per slide; the visible card shares the site's normal gutters. */
		padding-inline: var(--woodcha-recipe-gutter);
		scroll-snap-align: start;
	}

	.woodcha-home-recipes__dots:not([hidden]) {
		display: flex;
		justify-content: center;
		margin-top: 10px;
	}

	.woodcha-home-recipes__dot {
		align-items: center;
		background: transparent;
		border: 0;
		cursor: pointer;
		display: inline-flex;
		height: 44px;
		justify-content: center;
		padding: 0;
		width: 32px;
		-webkit-tap-highlight-color: transparent;
	}

	.woodcha-home-recipes__dot::before {
		background: rgb(72 69 64 / 28%);
		border-radius: 50%;
		content: '';
		height: 7px;
		width: 7px;
	}

	.woodcha-home-recipes__dot[aria-current="true"]::before {
		background: #484540;
	}

	.woodcha-home-recipes__dot:focus-visible {
		outline: 2px solid #484540;
		outline-offset: -3px;
	}

	.woodcha-home-recipes__link--desktop {
		display: none;
	}

	.woodcha-home-recipes__link--mobile {
		background: transparent;
		border-color: rgb(99 38 52 / 42%);
		color: var(--woodcha-ume);
		display: flex;
		margin-top: var(--woodcha-section-heading-gap);
		min-height: 52px;
		width: 100%;
	}

	.woodcha-home-recipes__link--mobile:hover {
		background: transparent;
		border-color: var(--woodcha-ume);
		color: var(--woodcha-ume);
		transform: none;
	}

	.woodcha-home-recipes__link--mobile:focus-visible {
		outline: 2px solid var(--woodcha-ume);
		outline-offset: 4px;
	}
}
