.recipes-page {
	--recipes-blue: #4a86cf;
	--recipes-ink: #26384a;
	--recipes-muted: #657789;
	--recipes-surface: #f6f7f8;
	--recipes-line: #dce2e8;
	width: min(100% - 2rem, 1320px);
	margin: 1.5rem auto 3rem;
	color: var(--recipes-ink);
	font-family: inherit;
}

.recipes-install {
	display: block;
	width: 100%;
	margin: 0 0 1rem;
	padding: .8rem 1rem;
	border: 0;
	border-radius: .4rem;
	background: #176b58;
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.recipes-install[hidden] {
	display: none;
}

.recipes-page,
.recipes-page * {
	box-sizing: border-box;
}

.recipes-page a {
	color: inherit;
	text-decoration: none;
}

.recipes-page__heading {
	margin: 0 0 1.35rem;
	padding: .15rem .25rem .45rem;
}

.recipes-page__heading h1 {
	margin: 0 0 .35rem;
	color: var(--recipes-blue);
	font-size: clamp(1.6rem, 3vw, 2.15rem);
	line-height: 1.2;
}

.recipes-page__heading > p:last-child {
	margin: 0;
	color: var(--recipes-muted);
	font-size: 1.05rem;
}

.recipes-page__eyebrow {
	margin: 0 0 .3rem;
	color: var(--recipes-muted);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.recipes-page__heading--compact {
	margin-bottom: 1rem;
}

.recipes-grid {
	display: grid;
	gap: .7rem;
}

.recipe-card {
	position: relative;
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr) 24px;
	align-items: center;
	gap: clamp(1rem, 3vw, 2rem);
	min-height: 142px;
	padding: 1rem clamp(1rem, 3vw, 2.5rem);
	border: 1px solid var(--recipes-line);
	border-radius: .35rem;
	background: #f7f7f7;
	box-shadow: 0 3px 6px rgb(22 35 48 / 18%);
	transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.recipe-card:hover,
.recipe-card:focus-visible {
	transform: translateY(-1px);
	border-color: #a9c7e9;
	box-shadow: 0 5px 12px rgb(22 35 48 / 20%);
}

.recipe-card:focus-visible,
.recipes-back:focus-visible {
	outline: 3px solid #93bdf0;
	outline-offset: 3px;
}

.recipe-card__image {
	display: block;
	width: 120px;
	height: 120px;
	border: 2px solid #fff;
	border-radius: 12px;
	background: #fff;
	object-fit: cover;
}

.recipe-card__body {
	display: grid;
	gap: .35rem;
	min-width: 0;
}

.recipe-card__title {
	color: var(--recipes-blue);
	font-size: clamp(1.15rem, 2vw, 1.5rem);
	font-weight: 700;
	line-height: 1.25;
}

.recipe-card__description,
.recipe-card__meta {
	color: var(--recipes-blue);
	font-size: 1rem;
	line-height: 1.45;
}

.recipe-card__arrow {
	color: #8ba6c3;
	font-size: 1.5rem;
	text-align: center;
}

.recipes-back {
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	margin: 0 0 1rem;
	padding: .45rem .85rem;
	border-radius: .25rem;
	background: var(--recipes-surface);
	box-shadow: 0 2px 5px rgb(22 35 48 / 16%);
	color: var(--recipes-blue) !important;
	font-size: 1rem;
}

.recipes-back span {
	font-size: 1.25rem;
	line-height: 1;
}

.recipe-rating {
	color: #e4a93a;
	letter-spacing: .08em;
}

.recipes-empty {
	padding: 1rem 1.2rem;
	border: 1px solid var(--recipes-line);
	border-radius: .35rem;
	background: var(--recipes-surface);
	color: var(--recipes-muted);
}

.recipe-detail__titlebar,
.recipe-detail__footer {
	margin: .25rem 0 1rem;
	padding: .45rem 1rem;
	background: var(--recipes-blue);
	box-shadow: 0 3px 6px rgb(22 35 48 / 25%);
	color: #fff;
	text-align: center;
}

.recipes-page .recipe-detail__titlebar h1 {
	margin: 0;
	font-size: clamp(1.15rem, 2.4vw, 1.5rem);
	font-weight: 700;
	line-height: 1.3;
	font-family: inherit;
	color: #fff !important;
	text-decoration: none !important;
	text-transform: uppercase;
}

.recipe-detail__intro {
	display: flex;
	align-items: flex-start;
	gap: 1.25rem;
	min-height: 145px;
	margin: 0 3.5rem 1rem;
	padding: .8rem 2rem;
	background: var(--recipes-surface);
	box-shadow: 0 3px 6px rgb(22 35 48 / 20%);
}

.recipe-detail__image {
	width: 120px;
	height: 120px;
	flex: 0 0 120px;
	border: 2px solid #fff;
	border-radius: 12px;
	background: #fff;
	object-fit: cover;
}

.recipe-detail__summary {
	padding-top: .35rem;
	color: var(--recipes-blue);
	line-height: 1.65;
}

.recipe-detail__section {
	margin: 0 0 1.25rem;
}

.recipe-detail__section h2 {
	width: min(58%, 750px);
	margin: 0 0 .7rem .4rem;
	padding: .35rem .85rem;
	border-radius: .35rem;
	background: var(--recipes-surface);
	color: var(--recipes-blue);
	font-size: clamp(1.35rem, 3vw, 1.9rem);
	line-height: 1.25;
	text-transform: uppercase;
}

.recipe-detail__section h3 {
	margin: .8rem 0 .4rem 1rem;
	color: var(--recipes-blue);
	font-size: 1rem;
	text-transform: uppercase;
}

.recipe-richtext {
	color: var(--recipes-blue);
	font-size: 1rem;
	line-height: 1.65;
}

.recipe-richtext p {
	margin: .3rem 0;
}

.recipe-richtext ul,
.recipe-richtext ol {
	margin: 0;
	padding-left: 2.4rem;
}

.recipe-richtext li {
	padding-left: .15rem;
}

.recipe-richtext li::marker {
	color: var(--recipes-blue);
}

.recipe-detail__footer {
	margin-top: 1.5rem;
	font-size: 1.2rem;
	font-weight: 700;
	text-transform: uppercase;
}

@media (max-width: 640px) {
	.recipes-page {
		width: min(100% - 1.25rem, 1320px);
		margin-top: .65rem;
		margin-bottom: max(1.5rem, env(safe-area-inset-bottom));
		font-size: 1.05rem;
	}

	.recipes-page__heading {
		margin-bottom: 1rem;
	}

	.recipes-page__heading h1 {
		font-size: clamp(1.8rem, 7vw, 2.2rem);
	}

	.recipes-page__heading > p:last-child {
		font-size: 1.1rem;
		line-height: 1.5;
	}

	.recipes-page__eyebrow {
		font-size: .85rem;
	}

	.recipes-categories .recipes-grid {
		gap: 1rem;
	}

	.recipe-card {
		grid-template-columns: 96px minmax(0, 1fr) 22px;
		gap: .85rem;
		min-height: 120px;
		padding: .75rem;
		border-radius: .55rem;
	}

	.recipe-card__image {
		width: 96px;
		height: 96px;
		border-radius: 11px;
	}

	.recipe-card__title {
		font-size: 1.2rem;
		line-height: 1.3;
	}

	.recipe-card--category .recipe-card__title {
		font-size: 1.47rem;
		line-height: 1.3;
	}

	.recipe-card--category {
		width: 100%;
		max-width: 100%;
		min-width: 0;
		min-height: 167px;
		padding: .9rem;
		grid-template-columns: 115px minmax(0, 1fr);
		gap: .9rem;
	}

	.recipe-card--category .recipe-card__image {
		width: 115px;
		height: 115px;
	}

	.recipe-card--category .recipe-card__description {
		font-size: 1.05rem;
		line-height: 1.5;
	}

	.recipe-card--category .recipe-card__arrow {
		display: none;
	}

	.recipe-card--category .recipe-card__body,
	.recipe-card--category .recipe-card__title,
	.recipe-card--category .recipe-card__description {
		min-width: 0;
		overflow-wrap: anywhere;
	}

	.recipe-card__description,
	.recipe-card__meta {
		font-size: 1rem;
		line-height: 1.5;
	}

	.recipe-card__arrow {
		font-size: 1.7rem;
	}

	.recipe-detail__intro {
		align-items: center;
		gap: .9rem;
		min-height: 124px;
		margin: 0 0 1rem;
		padding: .75rem;
		border-radius: .45rem;
	}

	.recipe-detail__image {
		width: 104px;
		height: 104px;
		flex-basis: 104px;
		border-radius: 11px;
	}

	.recipe-detail__summary {
		font-size: 1.05rem;
		line-height: 1.55;
	}

	.recipes-back {
		min-height: 48px;
		margin-bottom: .8rem;
		padding: .65rem .9rem;
		font-size: 1.05rem;
	}

	.recipes-install {
		min-height: 50px;
		font-size: 1.05rem;
	}

	.recipes-page .recipe-detail__titlebar h1 {
		font-size: 1.3rem;
	}

	.recipe-detail__titlebar,
	.recipe-detail__footer {
		padding: .7rem .9rem;
		border-radius: .35rem;
	}

	.recipe-detail__section h2 {
		width: 100%;
		margin: 0 0 .75rem;
		padding: .55rem .75rem;
		font-size: 1.4rem;
	}

	.recipe-detail__section h3 {
		margin: 1rem 0 .45rem .25rem;
		font-size: 1.05rem;
	}

	.recipe-richtext {
		font-size: 1.1rem;
		line-height: 1.75;
	}

	.recipe-richtext ul,
	.recipe-richtext ol {
		padding-left: 1.65rem;
	}

	.recipe-richtext li {
		padding-left: .2rem;
		margin-bottom: .2rem;
	}

	.recipes-empty {
		padding: .9rem;
		font-size: 1.05rem;
		line-height: 1.55;
	}
}
