/* Taco Day — ACF block (Ask Brotega card styles from recipes-hero-block.css) */

.ortega-taco-day.is-text-entrance-pending .ortega-taco-day__logo,
.ortega-taco-day.is-text-entrance-pending .ortega-taco-day__headline,
.ortega-taco-day.is-text-entrance-pending .ortega-recipes-hero__ask-bro-text,
.ortega-taco-day.is-text-entrance-pending .ortega-recipes-hero__ask-bro-cta {
	visibility: hidden;
}

.ortega-taco-day {
	--ortega-td-blue: #0058a4;
	--ortega-td-navy: #092450;
	--ortega-td-yellow: #ffe400;
	--ortega-td-white: #fff;
	--ortega-td-content-padding: clamp(1rem, 4vw, 3rem);
	/* Shared Ask Brotega card tokens (recipes-hero-block.css). */
	--ortega-rh-blue: var(--ortega-td-blue);
	--ortega-rh-navy: var(--ortega-td-navy);
	--ortega-rh-yellow: var(--ortega-td-yellow);
	--ortega-rh-yellow-hover: #ffd000;
	--ortega-rh-white: var(--ortega-td-white);
	isolation: isolate;
	/* Sit flush under the yellow module so one torn edge bridges both. */
	margin-block-start: 0 !important;
	margin-inline: calc(50% - 50vw);
	max-width: 100vw;
	/* Clip the right-bleed hero image without a page scrollbar. */
	overflow-x: clip;
	overflow-y: visible;
	position: relative;
	width: 100vw;
}

/* Yellow Follow Along above — drop its white bottom overlay so Taco Day’s
   yellow top edge is the single yellow→blue tear. */
.wp-block-post-content > .ortega-follow-along--yellow:has(+ .ortega-taco-day) .ortega-follow-along__edge--bottom,
.wp-block-post-content > .wp-block-acf-follow-along:has(.ortega-follow-along--yellow):has(+ .ortega-taco-day) .ortega-follow-along__edge--bottom,
.wp-block-post-content > .wp-block-acf-follow-along:has(.ortega-follow-along--yellow):has(+ .wp-block-acf-taco-day) .ortega-follow-along__edge--bottom {
	display: none;
}

/* Same SVG overlay system as Follow Along / footer. */
.ortega-taco-day__edge {
	display: block;
	height: auto;
	left: 50%;
	pointer-events: none;
	position: absolute;
	width: 110vw;
	z-index: 4;
}

.ortega-taco-day__edge--top {
	top: -1px;
	transform: translateX(-50%) scaleY(-1);
}

.ortega-taco-day__edge--bottom {
	bottom: -1px;
	transform: translateX(-50%);
}

.ortega-taco-day .edge.navy {
	background-color: var(--ortega-td-navy);
}

.ortega-taco-day__pattern {
	background-color: var(--ortega-td-blue);
	background-image: url("../images/recipes/bg-pattern-blue.svg");
	background-position: center top;
	background-repeat: no-repeat;
	background-size: cover;
	inset: 0;
	position: absolute;
	z-index: 0;
}

.ortega-taco-day__desktop {
	display: none;
}

.ortega-taco-day__mobile {
	display: block;
	position: relative;
	width: 100%;
	z-index: 2;
}

.ortega-taco-day__mobile-top {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: clamp(1rem, 3vw, 1.5rem);
	padding:
		clamp(3.5rem, 10vw, 5rem)
		var(--ortega-td-content-padding)
		clamp(0.75rem, 3vw, 1.25rem);
	padding-bottom: 130px;
	position: relative;
	text-align: center;
	z-index: 2;
}

.ortega-taco-day__inner {
	box-sizing: border-box;
	margin-inline: auto;
	max-width: min(1440px, 100%);
	overflow: visible;
	padding:
		clamp(3.5rem, 10vw, 5rem)
		var(--ortega-td-content-padding)
		clamp(1.5rem, 4vw, 2.5rem);
	position: relative;
	width: 100%;
	z-index: 2;
}

.ortega-taco-day__content {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: clamp(1.25rem, 3vw, 1.75rem);
	max-width: min(640px, 100%);
	position: relative;
	text-align: center;
	z-index: 2;
}

.ortega-taco-day__logo {
	display: block;
	height: auto;
	margin-bottom: 0.25rem;
	width: clamp(100px, 18vw, 148px);
}

.ortega-taco-day__headline {
	color: var(--ortega-td-yellow);
	font-family: var(--ortega-font-display);
	/* Slightly under global hero-lg so “TACO DAY!” stays one line. */
	font-size: clamp(52px, 14vw, 96px);
	font-weight: 700;
	line-height: 0.88;
	margin: 0;
	text-align: center;
	text-transform: uppercase;
}

.ortega-taco-day__headline p:not(:has(.ortega-taco-day__headline-accent)) {
	white-space: nowrap;
}

.ortega-taco-day__headline :is(p, strong, em) {
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	margin: 0;
}

.ortega-taco-day__headline p + p {
	margin-top: 0.04em;
}

.ortega-taco-day__headline-accent {
	display: block;
	font-size: var(--ortega-type-hero-sm--mobile, clamp(28px, 8.5vw, 40px));
	line-height: 1;
	margin-bottom: 0.08em;
}

/* Nest Ask Brotega card — keep recipes-hero styles, tighten for this module. */
.ortega-taco-day__ask-bro {
	margin-top: clamp(0.5rem, 2vw, 1rem);
	text-align: left;
	width: 100%;
}

/* Mobile Ask Brotega — mirrors Recipes Hero mobile lower panel. */
.ortega-taco-day__mobile-lower {
	background-color: var(--ortega-td-navy);
	margin-top: clamp(0.25rem, 2vw, 0.75rem);
	overflow: visible;
	padding-bottom: clamp(0.75rem, 3vw, 1.25rem);
	padding-top: clamp(2rem, 8vw, 3rem);
	position: relative;
	width: 100%;
}

.ortega-taco-day__mobile-lower .edge.top {
	left: 0;
	right: 0;
	transform: none;
	width: 100%;
	z-index: 1;
}

.ortega-taco-day__mobile-feature {
	box-sizing: border-box;
	margin-top: -150px;
	padding: 0 16px;
	position: relative;
	width: 100%;
	z-index: 2;
}

.ortega-taco-day__mobile-header-graphic {
	display: block;
	height: auto;
	margin-inline: auto;
	max-width: 430px;
	width: 100%;
}

.ortega-taco-day__mobile-panel-inner {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: clamp(1rem, 4vw, 1.5rem);
	margin-inline: auto;
	max-width: min(100%, 420px);
	padding:
		clamp(1.25rem, 4vw, 2rem)
		clamp(1.25rem, 5vw, 2rem)
		clamp(2rem, 8vw, 3rem);
	position: relative;
	text-align: center;
	z-index: 2;
}

/* Light orange tear at the end of the mobile Ask panel (Recipes Hero handoff). */
.ortega-taco-day__mobile-edge-bottom {
	bottom: -1px;
	display: block;
	height: auto;
	left: 50%;
	pointer-events: none;
	position: absolute;
	transform: translateX(-50%);
	width: 110vw;
	z-index: 4;
}

/* Mobile: no taco cutout; white section edge is desktop-only. */
.ortega-taco-day__mobile .ortega-taco-day__figure,
.ortega-taco-day__edge--bottom {
	display: none;
}

.ortega-taco-day__mobile .ortega-recipes-hero__ask-bro-text {
	margin-inline: auto;
	max-width: 28ch;
	text-align: center;
}

.ortega-taco-day__mobile .ortega-recipes-hero__ask-bro-cta,
.ortega-taco-day__mobile .ortega-recipes-hero__ask-bro-cta--static {
	align-self: center;
	justify-content: center;
	margin-inline: auto;
	padding-inline: clamp(1.5rem, 6vw, 2rem);
}

/* Mobile: in-flow below Ask Brotega. Desktop: absolute right bleed. */
.ortega-taco-day__figure {
	align-items: center;
	display: flex;
	justify-content: center;
	margin-inline: auto;
	padding:
		clamp(0.5rem, 3vw, 1.25rem)
		var(--ortega-td-content-padding)
		clamp(2.5rem, 8vw, 4rem);
	position: relative;
	width: min(92vw, 440px);
	z-index: 1;
}

.ortega-taco-day__image {
	display: block;
	height: auto;
	max-height: clamp(240px, 58vw, 360px);
	object-fit: contain;
	object-position: center center;
	width: 100%;
}

.ortega-taco-day-placeholder {
	background: #e9f2f9;
	border: 1px dashed var(--ortega-td-blue, #0058a4);
	color: var(--ortega-td-navy, #092450);
	font-family: var(--ortega-font-body);
	padding: 1.5rem;
	text-align: center;
}

@media (min-width: 900px) {
	.ortega-taco-day__mobile {
		display: none;
	}

	.ortega-taco-day__edge--bottom {
		display: block;
	}

	.ortega-taco-day__desktop {
		display: block;
		position: relative;
		z-index: 2;
	}

	.ortega-taco-day__inner {
		min-height: clamp(640px, 62vw, 820px);
		padding:
			clamp(7rem, 12vw, 10rem)
			var(--ortega-td-content-padding)
			clamp(7rem, 12vw, 10rem);
	}

	.ortega-taco-day__headline {
		font-size: clamp(72px, 7.5vw, 104px);
	}

	.ortega-taco-day__headline-accent {
		font-size: var(--ortega-type-hero-sm);
	}

	.ortega-taco-day__figure {
		bottom: 0;
		justify-content: flex-end;
		/* Bleed past the viewport so part of the cutout sits off-screen. */
		margin-inline: 0;
		margin-right: clamp(-4rem, -6vw, -2.5rem);
		padding: 0;
		pointer-events: none;
		position: absolute;
		right: 0;
		top: 0;
		width: min(62vw, 900px);
	}

	.ortega-taco-day__image {
		max-height: clamp(420px, 52vw, 680px);
		object-position: center right;
	}
}

@media (min-width: 1200px) {
	.ortega-taco-day__content {
		max-width: 680px;
	}

	.ortega-taco-day__inner {
		padding-block: clamp(8rem, 11vw, 11rem);
	}

	.ortega-taco-day__figure {
		margin-right: clamp(-8rem, -8vw, -4rem);
		width: min(58vw, 980px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ortega-taco-day.is-text-entrance-pending .ortega-taco-day__logo,
	.ortega-taco-day.is-text-entrance-pending .ortega-taco-day__headline,
	.ortega-taco-day.is-text-entrance-pending .ortega-recipes-hero__ask-bro-text,
	.ortega-taco-day.is-text-entrance-pending .ortega-recipes-hero__ask-bro-cta {
		visibility: visible;
	}
}
