/*
 * Red band of the detail pages, with the breadcrumb back to the listing: the recipe page
 * (813:45227) and the product page (934:43578) draw the same 272 band (184 below the
 * header) with the same white curve and "BREADCRUMBS | Light". Moved out of
 * recipe-single.css by change product-page; each page keeps its own BEM block.
 *
 * Mobile first, like the pages that use it.
 */

/*
 * Same white ellipse and same technique as .page-banner::after: the curve is the top of a
 * 3761 x 2461 ellipse that starts 89px into the band and gets cut by the band's bottom.
 */
.recipe-hero,
.product-hero {
	position: relative;
	min-height: 120px;
	overflow: hidden;
	background-color: var(--color-surface-detail);
}

.recipe-hero::after,
.product-hero::after {
	position: absolute;
	bottom: -1px;
	left: 50%;
	width: 260%;
	height: 60px;
	background-image: url('../../img/banner-hero-bottom-curve.svg');
	background-repeat: no-repeat;
	background-position: top center;
	background-size: 100% auto;
	transform: translateX(-50%);
	content: '';
}

.recipe-hero__inner,
.product-hero__inner {
	position: relative;
	z-index: 1;
	padding-block-start: var(--space-3);
}

/* BREADCRUMBS | Light, the same component as .page-banner__breadcrumb. */
.recipe-hero__breadcrumb,
.product-hero__breadcrumb {
	display: inline-flex;
	align-items: center;
	gap: var(--space-1);
	padding-block: 10px;
	color: var(--color-link-on-brand);
	font-size: var(--font-p3);
	font-weight: 500;
	line-height: 1.3;
}

.recipe-hero__breadcrumb-icon,
.product-hero__breadcrumb-icon {
	flex: none;
	width: 10px;
	height: 10px;
	transform: rotate(180deg);
}

@media (min-width: 768px) {
	.recipe-hero,
	.product-hero {
		min-height: 160px;
	}

	.recipe-hero::after,
	.product-hero::after {
		height: 80px;
	}
}

@media (min-width: 1024px) {
	/* 272 - 88 of header = 184, breadcrumb box at 141 - 88 = 53, curve 95 tall. */
	.recipe-hero,
	.product-hero {
		min-height: 184px;
	}

	/*
	 * Same cap as .page-banner::after, sized for the 95px box: without it the curve is cut
	 * before the corner above about 1440 (change banner-curve-wide-screens).
	 */
	.recipe-hero::after,
	.product-hero::after {
		height: 95px;
		background-size: 100% min(170vw, 2440px);
	}

	.recipe-hero__inner,
	.product-hero__inner {
		padding-block-start: 43px;
	}
}
