/* Single Recipe — hero, ingredients, directions, related */

/* Edge divider utilities (`.edge.top` / `.edge.bottom` + color) are defined
   globally in style.css. */

.ortega-recipe {
	--ortega-rc-blue: #0058a4;
	--ortega-rc-blue-dark: #093272;
	--ortega-rc-yellow: #ffe400;
	--ortega-rc-cloud: var(--wp--preset--color--blue-200, #e9f2f9);
	--ortega-rc-white: #ffffff;
	--ortega-rc-radius: 16px;
	/* Match the shared site container (footer inner) so content lines up across pages. */
	--ortega-rc-inline: clamp(1rem, 4vw, 3rem);
	--ortega-rc-maxw: 1440px;
	box-sizing: border-box;
	color: var(--ortega-rc-blue-dark);
	display: block;
	max-width: 100vw;
	overflow-x: clip;
	width: 100%;
}

.ortega-recipe *,
.ortega-recipe *::before,
.ortega-recipe *::after {
	box-sizing: border-box;
}

/* ---------------------------------------------------------------- Hero */

.ortega-recipe__hero.is-text-entrance-pending .ortega-recipe__breadcrumb,
.ortega-recipe__hero.is-text-entrance-pending .ortega-recipe__title,
.ortega-recipe__hero.is-text-entrance-pending .ortega-recipe__lead,
.ortega-recipe__hero.is-text-entrance-pending .ortega-recipe__meta {
	visibility: hidden;
}

.ortega-recipe__hero {
	background-color: var(--ortega-rc-cloud);
	position: relative;
	width: 100%;
}

.ortega-recipe__hero-inner {
	margin-inline: auto;
	max-width: var(--ortega-rc-maxw);
	padding: clamp(1.75rem, 5vw, 5.8rem) var(--ortega-rc-inline) clamp(2.5rem, 6vw, 5rem);
	position: relative;
	width: 100%;
	/* Above the rough edge (z-index 2) so the bleeding photo sits on top of it. */
	z-index: 3;
}

/* Breadcrumbs */

.ortega-recipe__breadcrumb {
	margin-bottom: clamp(1.5rem, 4vw, 3rem);
}

.ortega-recipe__breadcrumb-list {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ortega-recipe__breadcrumb-item {
	align-items: center;
	display: inline-flex;
	gap: 7px;
	margin: 0;
}

.ortega-recipe__breadcrumb-link,
.ortega-recipe__breadcrumb-current {
	color: var(--ortega-rc-blue-dark);
	font-family: var(--ortega-font-copy);
	font-size: var(--ortega-type-breadcrumb, 14px);
	font-weight: 500;
	letter-spacing: 0.01em;
	line-height: 1.28;
	text-decoration: none;
}

.ortega-recipe__breadcrumb-link {
	transition: opacity 0.2s ease;
}

.ortega-recipe__breadcrumb-link:hover,
.ortega-recipe__breadcrumb-link:focus-visible {
	opacity: 0.65;
}

.ortega-recipe__breadcrumb-current {
	opacity: 0.85;
}

.ortega-recipe__breadcrumb-sep {
	color: var(--ortega-rc-blue-dark);
	display: inline-flex;
	opacity: 0.5;
}

/* Hero layout */

.ortega-recipe__hero-grid {
	align-items: start;
	display: grid;
	gap: clamp(1.5rem, 4vw, 3rem);
	grid-template-columns: 1fr;
	width: 100%;
}

.ortega-recipe__hero-content {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.ortega-recipe__title {
	color: var(--ortega-rc-blue-dark);
	font-family: var(--ortega-font-display);
	font-size: clamp(2.5rem, 9vw, 4rem);
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 0.87;
	margin: 0;
	text-transform: uppercase;
}

.ortega-recipe__lead {
	color: var(--ortega-rc-blue-dark);
	font-family: var(--ortega-font-copy);
	font-size: clamp(1rem, 2.4vw, 1rem);
	font-weight: 500;
	line-height: 1.44;
	margin-top: clamp(1rem, 3vw, 1.5rem);
	max-width: 38ch;
}

.ortega-recipe__lead p {
	margin: 0 0 0.75rem;
}

.ortega-recipe__lead p:last-child {
	margin-bottom: 0;
}

/* Hero meta grid */

.ortega-recipe__meta {
	display: grid;
	gap: clamp(2rem, 3vw, 1.4rem) clamp(1.5rem, 4vw, 3.4rem);
	grid-template-columns: repeat(2, minmax(0, max-content));
	margin: clamp(1.6rem, 4vw, 2.4rem) 0 0;
}

.ortega-recipe__meta-item {
	align-items: center;
	display: flex;
	gap: 12px;
	margin: 0;
}

.ortega-recipe__meta-icon {
	display: block;
	flex: 0 0 auto;
	height: 32px;
	width: 32px;
}

.ortega-recipe__meta-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.ortega-recipe__meta-label {
	color: var(--ortega-rc-blue);
	font-family: var(--ortega-font-copy);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.16;
	text-transform: uppercase;
}

.ortega-recipe__meta-value {
	color: var(--ortega-rc-blue-dark);
	font-family: var(--ortega-font-copy);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.28;
	margin: 1px 0 0;
}

.ortega-recipe__meta-note {
	display: block;
}

/* Print / share — sits in the white band below the blue hero. */

.ortega-recipe__actions-bar {
	display: none;
}

.ortega-recipe__actions {
	align-items: center;
	background-color: var(--ortega-rc-cloud);
	border-radius: 999px;
	display: inline-flex;
	gap: 1.5rem;
	padding: 1rem 1.75rem;
	width: max-content;
}

.ortega-recipe__action {
	align-items: center;
	background: none;
	border: 0;
	color: var(--ortega-rc-blue);
	cursor: pointer;
	display: inline-flex;
	font-family: var(--ortega-font-copy);
	font-size: 14px;
	font-weight: 700;
	gap: 8px;
	letter-spacing: 0.04em;
	padding: 0;
	transition: color 0.2s ease;
}

/* Hover only darkens the label and icon (no background). */
.ortega-recipe__action:hover,
.ortega-recipe__action:focus-visible {
	background-color: transparent;
	color: #092450;
}

.ortega-recipe__action-icon {
	display: block;
	height: 24px;
	width: 24px;
	transition: filter 0.2s ease;
}

.ortega-recipe__action:hover .ortega-recipe__action-icon,
.ortega-recipe__action:focus-visible .ortega-recipe__action-icon {
	filter: brightness(0.6);
}

.ortega-recipe__action-divider {
	background-color: rgba(9, 50, 114, 0.2);
	flex: 0 0 auto;
	height: 25px;
	width: 1px;
}

/* Hero media */

.ortega-recipe__hero-media {
	padding: clamp(16px, 2.2vw, 30px);
	position: relative;
	width: 100%;
}

/* Rough white torn-rectangle backing that peeks out around the photo. */
.ortega-recipe__hero-media::before {
	background-color: var(--ortega-rc-white);
	content: "";
	inset: 0;
	position: absolute;
	z-index: 0;
	-webkit-mask-image: url("../images/recipe/hero-image-mask.svg");
	mask-image: url("../images/recipe/hero-image-mask.svg");
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
}

.ortega-recipe__hero-image-mask {
	background-color: var(--ortega-rc-cloud);
	border-radius: var(--ortega-rc-radius);
	height: 100%;
	overflow: hidden;
	position: relative;
	width: 100%;
	z-index: 1;
}

.ortega-recipe__hero-fill {
	background-color: var(--ortega-rc-yellow);
	inset: 0;
	position: absolute;
	z-index: 0;
}

.ortega-recipe__hero-media.is-image-entrance-pending .ortega-recipe__hero-fill,
.ortega-recipe__hero-media.is-image-entrance-pending .ortega-recipe__hero-image {
	visibility: hidden;
}

.ortega-recipe__hero-media--desktop {
	display: none;
}

.ortega-recipe__hero-media--mobile {
	aspect-ratio: 332 / 296;
	margin-bottom: clamp(1.25rem, 4vw, 1.75rem);
}

.ortega-recipe__hero-image {
	display: block;
	height: 100%;
	object-fit: cover;
	position: relative;
	width: 100%;
	z-index: 1;
}

/* ---------------------------------------------------------------- Body */

.ortega-recipe__body {
	background-color: var(--ortega-rc-white);
	padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(2.5rem, 7vw, 4.5rem);
	width: 100%;
}

.ortega-recipe__body-inner {
	display: grid;
	gap: clamp(2.5rem, 6vw, 4rem);
	grid-template-columns: 1fr;
	margin-inline: auto;
	max-width: var(--ortega-rc-maxw);
	padding-inline: var(--ortega-rc-inline);
	width: 100%;
}

.ortega-recipe__col {
	display: flex;
	flex-direction: column;
	gap: clamp(2rem, 5vw, 3.5rem);
	min-width: 0;
}

.ortega-recipe__section-title {
	color: var(--ortega-rc-blue-dark);
	font-family: var(--ortega-font-display);
	font-size: clamp(1.5rem, 5vw, 2.25rem);
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 0.97;
	margin: 0 0 clamp(1.1rem, 3vw, 1.6rem);
	text-transform: uppercase;
}

/* Serving scaler */

.ortega-recipe__scaler {
	align-items: center;
	background-color: var(--ortega-rc-cloud);
	border-radius: 999px;
	display: inline-flex;
	gap: 2px;
	margin-bottom: 1rem;
	padding: 3px;
	position: relative;
	width: max-content;
}

/* Sliding active background; positioned/sized by JS to the active button. */
.ortega-recipe__scale-indicator {
	background-color: var(--ortega-rc-blue);
	border-radius: 999px;
	height: 0;
	left: 0;
	pointer-events: none;
	position: absolute;
	top: 0;
	transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1), width 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
	width: 0;
	z-index: 0;
}

.ortega-recipe__scale {
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	border: 0;
	border-radius: 999px;
	color: var(--ortega-rc-blue-dark);
	cursor: pointer;
	font-family: var(--ortega-font-copy);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1;
	min-width: 72px;
	padding: 0.55rem 1.1rem;
	position: relative;
	text-align: center;
	transition: color 0.2s ease;
	z-index: 1;
}

/* Hover only darkens the label; background is reserved for the active state. */
.ortega-recipe__scale:hover {
	background-color: transparent;
	color: #092450;
}

/* No-JS fallback: the active button paints its own background. */
.ortega-recipe__scale.is-active,
.ortega-recipe__scale.is-active:hover {
	background-color: var(--ortega-rc-blue);
	color: var(--ortega-rc-white);
}

/* When enhanced, the sliding indicator paints the background instead. */
.ortega-recipe__scaler.is-enhanced .ortega-recipe__scale.is-active,
.ortega-recipe__scaler.is-enhanced .ortega-recipe__scale.is-active:hover {
	background-color: transparent;
}

.ortega-recipe__scale:focus-visible {
	outline: 2px solid var(--ortega-rc-blue);
	outline-offset: 2px;
}

.ortega-recipe__serves {
	color: var(--ortega-rc-blue-dark);
	font-family: var(--ortega-font-copy);
	font-size: 1rem;
	font-weight: 500;
	margin: 0 0 1.25rem;
}

.ortega-recipe__serves-value {
	font-weight: 700;
}

/* Group titles (driven by the repeater `title` checkbox) */

.ortega-recipe__ingredient-groups {
	display: flex;
	flex-direction: column;
	gap: clamp(1.5rem, 4vw, 2.25rem);
	margin-top: 32px;
	transition: opacity 0.18s ease;
}

.ortega-recipe__ingredient-groups.is-swapping {
	opacity: 0;
}

.ortega-recipe__direction-groups,
.ortega-recipe__tip-groups {
	display: flex;
	flex-direction: column;
	gap: clamp(1.75rem, 4vw, 2.75rem);
}

.ortega-recipe__subhead {
	color: var(--ortega-rc-blue-dark);
	font-family: var(--ortega-font-body);
	font-weight: 900;
	letter-spacing: 0.02em;
	line-height: 0.9;
	margin: 0 0 1rem;
}

.ortega-recipe__subhead--ingredient {
	font-size: 1.125rem;
}

.ortega-recipe__subhead--direction {
	font-size: clamp(1.375rem, 4vw, 2rem);
	margin-bottom: clamp(1rem, 3vw, 1.5rem);
	margin-top: 32px;
	text-transform: capitalize;
}

/* Ingredients */

.ortega-recipe__ingredients {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ortega-recipe__ingredient {
	color: #2677bd;
	font-family: var(--ortega-font-copy);
	font-size: 1.0625rem;
	font-weight: 500;
	line-height: 1.4;
	margin: 0;
}

.ortega-recipe__ingredient a,
.ortega-recipe__direction-text a,
.ortega-recipe__tip a {
	color: var(--ortega-rc-blue);
	font-family: var(--ortega-font-copy);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ortega-recipe__ingredient a:hover,
.ortega-recipe__ingredient a:focus-visible,
.ortega-recipe__direction-text a:hover,
.ortega-recipe__direction-text a:focus-visible,
.ortega-recipe__tip a:hover,
.ortega-recipe__tip a:focus-visible {
	text-decoration-thickness: 2px;
}

/* Directions */

.ortega-recipe__directions {
	counter-reset: ortega-recipe-step;
	display: flex;
	flex-direction: column;
	gap: clamp(1.25rem, 3vw, 1.75rem);
	list-style: none;
	margin: 0;
	padding: 0;
}

.ortega-recipe__direction {
	align-items: flex-start;
	counter-increment: ortega-recipe-step;
	display: grid;
	gap: clamp(1rem, 2.5vw, 1.75rem);
	grid-template-columns: 44px 1fr;
	margin: 0;
}

.ortega-recipe__direction::before {
	align-items: center;
	background-color: var(--ortega-rc-yellow);
	/* Organic blob from the design, masking the yellow fill behind the number. */
	-webkit-mask-image: url("../images/recipe/direction-number.svg");
	mask-image: url("../images/recipe/direction-number.svg");
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
	color: var(--ortega-rc-blue-dark);
	content: counter(ortega-recipe-step);
	display: flex;
	font-family: var(--ortega-font-display);
	font-size: 1.4rem;
	font-weight: 700;
	height: 44px;
	justify-content: center;
	line-height: 1;
	width: 44px;
}

.ortega-recipe__direction-text {
	align-self: center;
	color: var(--ortega-rc-blue-dark);
	font-family: var(--ortega-font-copy);
	font-size: 1.0625rem;
	font-weight: 500;
	line-height: 1.5;
}

/* Tips */

.ortega-recipe__tips {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	list-style: disc;
	margin: 0;
	padding-left: 1.25rem;
}

.ortega-recipe__tip {
	color: var(--ortega-rc-blue-dark);
	font-family: var(--ortega-font-copy);
	font-size: 1.0625rem;
	font-weight: 500;
	line-height: 1.5;
}

/* Used in this recipe */

.ortega-recipe__used {
	--ortega-rc-used-media-size: clamp(72px, 22vw, 96px);
	background-color: var(--ortega-rc-cloud);
	border-radius: var(--ortega-rc-radius);
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	padding: clamp(0.85rem, 3vw, 1.25rem);
	position: relative;
}

.ortega-recipe__used-eyebrow {
	color: var(--ortega-rc-blue);
	font-family: var(--ortega-font-copy);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	margin: 0;
	text-transform: uppercase;
}

.ortega-recipe__used-slider {
	position: relative;
	width: 100%;
}

.ortega-recipe__used-viewport {
	/* Clip horizontal slides only — keep Y visible so multi-line titles aren’t cropped. */
	overflow-x: clip;
	overflow-y: visible;
	touch-action: pan-y;
	width: 100%;
}

.ortega-recipe__used-viewport.is-dragging {
	cursor: grabbing;
}

.ortega-recipe__used-track {
	display: flex;
	transform: translate3d(0, 0, 0);
	will-change: transform;
	width: 100%;
}

.ortega-recipe__used-slide {
	box-sizing: border-box;
	flex: 0 0 100%;
	min-width: 0;
	width: 100%;
}

/* Mobile: image to the left of the title. */
.ortega-recipe__used-card {
	align-items: center;
	color: var(--ortega-rc-blue-dark);
	display: flex;
	flex-direction: row;
	gap: 1rem;
	padding: 0;
	text-align: left;
	text-decoration: none;
	transition: transform 0.2s ease;
	width: 100%;
}

.ortega-recipe__used-card:hover,
.ortega-recipe__used-card:focus-visible {
	transform: translateY(-3px);
}

.ortega-recipe__used-media {
	align-items: center;
	aspect-ratio: 1;
	display: flex;
	flex: 0 0 auto;
	justify-content: center;
	width: var(--ortega-rc-used-media-size);
}

.ortega-recipe__used-image {
	display: block;
	height: 100%;
	object-fit: contain;
	width: 100%;
}

.ortega-recipe__used-name {
	color: var(--ortega-rc-blue-dark);
	flex: 1 1 auto;
	font-family: var(--ortega-font-body);
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 1.2;
	min-width: 0;
	overflow: visible;
}

/* Same circular arrow treatment as product detail hero.
   Vertically centered on the product image (not the image + title block). */
.ortega-recipe__used-nav {
	align-items: center;
	background-color: rgb(9 36 80 / 10%);
	border: 0;
	border-radius: 50%;
	color: var(--ortega-rc-blue-dark);
	cursor: pointer;
	display: inline-flex;
	flex-shrink: 0;
	height: 40px;
	justify-content: center;
	padding: 0;
	position: absolute;
	top: calc(var(--ortega-rc-used-media-size) / 2);
	transform: translateY(-50%);
	transition: transform 0.2s ease, background-color 0.2s ease;
	width: 40px;
	z-index: 2;
}

.ortega-recipe__used-nav--prev {
	left: calc(-0.35rem - 16px);
}

.ortega-recipe__used-nav--next {
	right: calc(-0.35rem - 16px);
}

.ortega-recipe__used-nav:hover,
.ortega-recipe__used-nav:focus-visible {
	background-color: rgb(9 36 80 / 16%);
	transform: translateY(-50%) scale(1.05);
}

.ortega-recipe__used-nav:focus-visible {
	outline: 2px solid var(--ortega-rc-blue-dark);
	outline-offset: 3px;
}

.ortega-recipe__used-nav svg {
	display: block;
	height: 30px;
	width: 30px;
}

.ortega-recipe__used--single .ortega-recipe__used-nav {
	display: none;
}

.ortega-recipe__panel--directions {
	margin-bottom: 2em;
}

/* Pair it with */

.ortega-recipe__pair {
	align-items: center;
	background-color: var(--ortega-rc-yellow);
	border-radius: var(--ortega-rc-radius);
	display: flex;
	flex-direction: column;
	gap: clamp(1rem, 3vw, 1.75rem);
	padding: clamp(2rem, 5vw, 2.75rem) clamp(1.5rem, 4vw, 2.5rem);
	position: relative;
}

/* Sits outside the box, framing the top-left corner. */
.ortega-recipe__pair-decoration {
	height: auto;
	left: -2rem;
	pointer-events: none;
	position: absolute;
	top: clamp(-2.25rem, -4.5vw, -1.5rem);
	transform: scale(-1,-1);
	width: clamp(80px, 16%, 130px);
	z-index: 2;
}

.ortega-recipe__pair-media {
	flex: 0 0 auto;
	position: relative;
	width: min(100%, 320px);
	z-index: 1;
}

.ortega-recipe__pair-image {
	display: block;
	height: auto;
	width: 100%;
}

.ortega-recipe__pair-content {
	min-width: 0;
	position: relative;
	width: 100%;
	z-index: 1;
}

/* With an image: photo to the left of the copy at every breakpoint. */
.ortega-recipe__pair--has-image {
	align-items: center;
	flex-direction: row;
	gap: clamp(1rem, 4vw, 3rem);
}

.ortega-recipe__pair--has-image .ortega-recipe__pair-media {
	width: clamp(120px, 42%, 360px);
}

.ortega-recipe__pair--has-image .ortega-recipe__pair-content {
	padding-top: 0;
	width: auto;
}

.ortega-recipe__pair-title {
	color: var(--ortega-rc-blue-dark);
	font-family: var(--ortega-font-display);
	font-size: clamp(1.5rem, 4vw, 2.25rem);
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 0.97;
	margin: 0 0 0.75rem;
	text-transform: uppercase;
}

.ortega-recipe__pair-text {
	color: var(--ortega-rc-blue-dark);
	font-family: var(--ortega-font-copy);
	font-size: 1.0625rem;
	font-weight: 500;
	line-height: 1.44;
	margin: 0;
}

.ortega-recipe__pair-link,
.ortega-recipe__pair-text a {
	color: var(--ortega-rc-blue-dark);
	font-family: var(--ortega-font-copy);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ortega-recipe__pair-link:hover,
.ortega-recipe__pair-link:focus-visible,
.ortega-recipe__pair-text a:hover,
.ortega-recipe__pair-text a:focus-visible {
	text-decoration-thickness: 2px;
}

/* ---------------------------------------------------------------- Related */

.ortega-recipe__related {
	background-color: var(--ortega-rc-white);
	margin-inline: auto;
	max-width: var(--ortega-rc-maxw);
	padding: clamp(1rem, 4vw, 2rem) var(--ortega-rc-inline) clamp(3rem, 8vw, 5.5rem);
	width: 100%;
}

.ortega-recipe__related-head {
	align-items: center;
	display: flex;
	gap: clamp(0.75rem, 2vw, 1.25rem);
	justify-content: center;
	margin-bottom: clamp(1.75rem, 5vw, 3rem);
}

.ortega-recipe__related-flourish {
	aspect-ratio: 66 / 20;
	display: block;
	flex: 0 0 auto;
	height: auto;
	object-fit: contain;
	width: clamp(24px, 4vw, 57px);
}

.ortega-recipe__related-title {
	color: var(--ortega-rc-blue);
	font-family: var(--ortega-font-display);
	font-size: clamp(2.25rem, 7vw, 5rem);
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 0.87;
	margin: 0;
	text-align: center;
	text-transform: uppercase;
}

.ortega-recipe__related-grid {
	display: grid;
	gap: clamp(1.25rem, 3vw, 2rem);
	grid-template-columns: repeat(2, minmax(0, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.ortega-recipe__related-item {
	margin: 0;
	min-width: 0;
}

.ortega-recipe__related-card {
	color: inherit;
	display: grid;
	gap: 1rem;
	text-decoration: none;
}

.ortega-recipe__related-media {
	aspect-ratio: 312 / 328;
	border-radius: 8px;
	overflow: hidden;
	width: 100%;
}

.ortega-recipe__related-image {
	display: block;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
	width: 100%;
}

.ortega-recipe__related-card:hover .ortega-recipe__related-image,
.ortega-recipe__related-card:focus-visible .ortega-recipe__related-image {
	transform: scale(1.04);
}

.ortega-recipe__related-name {
	color: var(--ortega-rc-blue);
	font-family: var(--ortega-font-display);
	font-size: clamp(1rem, 2.4vw, 1.625rem);
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 0.98;
	margin: 0;
	text-align: center;
	text-transform: uppercase;
}

/* ---------------------------------------------------------------- Tablet+ */

@media (min-width: 782px) {
	.ortega-recipe {
		/* How far the hero photo bleeds below the blue panel. */
		--ortega-rc-hero-bleed: clamp(100px, 15vw, 210px);
	}

	.ortega-recipe__hero {
		overflow: visible;
	}

	.ortega-recipe__hero-inner {
		/* Tighter gap between the meta row and the bottom edge. */
		padding-bottom: clamp(1.5rem, 3vw, 2.75rem);
	}

	.ortega-recipe__meta-value {
		font-size: 18px;
	}

	.ortega-recipe__hero-grid {
		align-items: start;
		grid-template-columns: minmax(0, 1fr) minmax(0, 58%);
	}

	.ortega-recipe__hero-media--mobile {
		display: none;
	}

	.ortega-recipe__hero-media--desktop {
		aspect-ratio: 782 / 697;
		display: block;
		/* Photo extends past the blue background into the white band below; the
		   negative margin keeps the blue panel sized to the text column. */
		margin-bottom: calc(-1 * var(--ortega-rc-hero-bleed));
		position: relative;
		z-index: 3;
	}

	.ortega-recipe__actions-bar {
		background-color: var(--ortega-rc-white);
		display: block;
		position: relative;
	}

	.ortega-recipe__actions-bar-inner {
		margin-inline: auto;
		max-width: var(--ortega-rc-maxw);
		/* Extra top padding clears the rough edge that overhangs this band. */
		padding: clamp(3.5rem, 7.5vw, 7.5rem) var(--ortega-rc-inline) clamp(2.5rem, 6vw, 6rem);
		width: 100%;
	}

	.ortega-recipe__body-inner {
		grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
		gap: clamp(2.5rem, 6vw, 6rem);
	}

	.ortega-recipe__col--directions {
		background-image: url("../images/recipes/vertical-pattern.svg");
		background-position: left top;
		background-repeat: repeat-y;
		background-size: 13px auto;
		padding-left: clamp(2.5rem, 6vw, 6rem);
	}

	.ortega-recipe__related-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.ortega-recipe__subhead--direction {
		margin-top: 56px;
	}

	.ortega-recipe__ingredient-groups {
		margin-top: 56px;
	}

	.ortega-recipe__direction {
		grid-template-columns: 56px 1fr;
	}

	.ortega-recipe__direction::before {
		font-size: 32px;
		height: 56px;
		width: 56px;
	}

	.ortega-recipe__pair--has-image .ortega-recipe__pair-media {
		width: clamp(220px, 48%, 360px);
	}

	/* Featured products: label sits inside the light-blue area, centered column. */
	.ortega-recipe__used {
		--ortega-rc-used-media-size: 189px;
		gap: 1.1rem;
		max-width: 313px;
		padding: clamp(1.5rem, 4vw, 2.5rem) 1.5rem;
		text-align: center;
	}

	.ortega-recipe__used--slider {
		/* Room for side arrows without crowding the product art. */
		padding-inline: clamp(2rem, 4vw, 2.5rem);
	}

	.ortega-recipe__used-eyebrow {
		color: var(--ortega-rc-blue-dark);
		font-family: var(--ortega-font-body);
		font-size: 18px;
		font-weight: 500;
		letter-spacing: 0.36px;
		text-align: center;
	}

	.ortega-recipe__used-card {
		flex-direction: column;
		gap: 1.1rem;
		text-align: center;
	}

	.ortega-recipe__used-media {
		margin-inline: auto;
	}

	.ortega-recipe__used-name {
		font-size: 24px;
		line-height: 1.2;
		text-align: center;
	}

	.ortega-recipe__used-nav--prev {
		left: calc(0.35rem - 16px);
	}

	.ortega-recipe__used-nav--next {
		right: calc(0.35rem - 16px);
	}

	.ortega-recipe__pair-content {
		padding-top: 0;
	}
}

/* ---------------------------------------------------------------- Mobile carousels */

@media (max-width: 781px) {
	.ortega-recipe__ingredient,
	.ortega-recipe__direction-text,
	.ortega-recipe__pair-text {
		font-size: 15px;
	}

	.ortega-recipe__related-grid {
		grid-auto-columns: 70%;
		grid-auto-flow: column;
		grid-template-columns: none;
		margin-inline: calc(var(--ortega-rc-inline) * -1);
		overflow-x: auto;
		padding-inline: var(--ortega-rc-inline);
		scroll-padding-inline: var(--ortega-rc-inline);
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
	}

	.ortega-recipe__related-item {
		scroll-snap-align: start;
	}

	.ortega-recipe__related-grid::-webkit-scrollbar {
		display: none;
	}

	.ortega-recipe__related-grid {
		scrollbar-width: none;
	}
}

/* ---------------------------------------------------------------- Motion / print */

@media (prefers-reduced-motion: reduce) {
	.ortega-recipe__hero.is-text-entrance-pending .ortega-recipe__breadcrumb,
	.ortega-recipe__hero.is-text-entrance-pending .ortega-recipe__title,
	.ortega-recipe__hero.is-text-entrance-pending .ortega-recipe__lead,
	.ortega-recipe__hero.is-text-entrance-pending .ortega-recipe__meta {
		visibility: visible;
	}

	.ortega-recipe__hero-media.is-image-entrance-pending .ortega-recipe__hero-fill,
	.ortega-recipe__hero-media.is-image-entrance-pending .ortega-recipe__hero-image {
		visibility: visible;
	}

	.ortega-recipe__used-card,
	.ortega-recipe__used-nav,
	.ortega-recipe__used-track,
	.ortega-recipe__related-image,
	.ortega-recipe__scale,
	.ortega-recipe__scale-indicator,
	.ortega-recipe__ingredient-groups,
	.ortega-recipe__action {
		transition: none;
	}
}

@media print {
	.ortega-recipe__actions-bar,
	.ortega-recipe__actions,
	.ortega-recipe__related,
	.ortega-recipe__pair,
	.ortega-recipe__used-nav,
	.ortega-recipe .edge {
		display: none !important;
	}

	.ortega-recipe__hero {
		background-color: #ffffff;
	}

	.ortega-recipe__body-inner {
		grid-template-columns: 1fr;
	}

	.ortega-recipe__col--directions {
		background-image: none;
		border-left: 0;
		padding-left: 0;
	}
}
