/* Scoped to opt-in layouts. Classic keeps its original markup and CSS. */
.zk-layout-hero {
	/* Scheduled and linked heroes may arrive on a cached page that still
	   holds an older storefront.css. Their own versioned CSS caps them too. */
	--zkbl-hero-cap: var(--zkbl-preview-cap, 100vh);
	box-sizing: border-box;
	max-block-size: var(--zkbl-hero-cap);
	overflow: auto;
	--zk-hero-paper: #f5f2eb;
	--zk-hero-ink: #171a17;
	--zk-hero-green: var(--primary-color, #084439);
	--zk-hero-yellow: #efd16d;
	--zk-hero-pad: clamp(24px, 5vw, 76px);
	font-family: var(--neurialgrotesk-font, system-ui, sans-serif);
}
@supports (height: 100svh) {
	.zk-layout-hero { --zkbl-hero-cap: var(--zkbl-preview-cap, 100svh); }
}
.zk-layout-hero__frame {
	position: relative;
	display: grid;
	isolation: isolate;
	min-height: min(clamp(320px, var(--zk-hero-height, 520px), 1000px), var(--zkbl-hero-cap, 100vh));
	overflow: hidden;
	background: var(--zk-hero-paper);
	color: var(--zk-hero-ink);
}
.zk-layout-hero__copy {
	z-index: 1;
	align-self: center;
	min-width: 0;
	padding: var(--zk-hero-pad);
	overflow-wrap: anywhere;
}
.zk-layout-hero__title {
	margin: 0;
	color: inherit;
	font-family: inherit;
	font-size: clamp(30px, 4.7vw, 72px);
	font-weight: 600;
	line-height: 1.03;
	letter-spacing: -.045em;
	text-wrap: balance;
}
.zk-layout-hero__subtitle {
	max-width: 43ch;
	margin-top: 12px;
	font-family: inherit;
	font-size: clamp(15px, 1.4vw, 20px);
	line-height: 1.45;
}
.zk-layout-hero__subtitle > :last-child { margin-bottom: 0; }
.zk-layout-hero__cta {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	min-height: 44px;
	max-width: 100%;
	margin-top: 20px;
	padding: 9px 16px;
	border-radius: 6px;
	background: var(--zk-hero-green);
	color: white;
	font-family: inherit;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
}
.zk-layout-hero__cta:hover { text-decoration: underline; color: white; }
.zk-layout-hero__cta:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.zk-layout-hero__media, .zk-layout-hero__detail {
	position: relative;
	min-width: 0;
	min-height: 240px;
	overflow: hidden;
	background: #d8cfc0;
}
.zk-layout-hero__media picture, .zk-layout-hero__detail picture,
.zk-layout-hero__media img, .zk-layout-hero__detail img, .zk-layout-hero__video {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.zk-layout-hero__video { visibility: hidden; }
.zk-layout-hero__video[data-playing] { visibility: visible; }

/* Photo-led layouts. The shading protects the text contrast over uploaded images. */
.zk-layout-hero:is([data-zk-hero-layout="full-left"], [data-zk-hero-layout="full-center"], [data-zk-hero-layout="image-card"]) .zk-layout-hero__media {
	position: absolute;
	inset: 0;
}
.zk-layout-hero:is([data-zk-hero-layout="full-left"], [data-zk-hero-layout="full-center"]) .zk-layout-hero__frame {
	color: white;
	background: var(--zk-hero-green);
}
.zk-layout-hero:is([data-zk-hero-layout="full-left"], [data-zk-hero-layout="full-center"]) .zk-layout-hero__media::after {
	position: absolute;
	inset: 0;
	content: "";
	background: rgb(18 22 19 / 72%);
}
.zk-layout-hero[data-zk-hero-layout="full-left"] .zk-layout-hero__media::after {
	background: linear-gradient(90deg, rgb(18 22 19 / 94%) 0%, rgb(18 22 19 / 74%) 49%, rgb(18 22 19 / 5%) 95%);
}
.zk-layout-hero[data-zk-hero-layout="full-left"] .zk-layout-hero__copy { width: min(62%, 760px); }
.zk-layout-hero[data-zk-hero-layout="full-center"] .zk-layout-hero__copy {
	justify-self: center;
	width: min(100%, 900px);
	text-align: center;
}
.zk-layout-hero[data-zk-hero-layout="full-center"] .zk-layout-hero__subtitle { margin-inline: auto; }
.zk-layout-hero:is([data-zk-hero-layout="full-left"], [data-zk-hero-layout="full-center"], [data-zk-hero-layout="split-green"]) .zk-layout-hero__cta {
	background: var(--zk-hero-paper);
	color: var(--zk-hero-green);
}
.zk-layout-hero[data-zk-hero-layout="image-card"] .zk-layout-hero__frame {
	padding: clamp(12px, 2vw, 30px);
}
.zk-layout-hero[data-zk-hero-layout="image-card"] .zk-layout-hero__copy {
	align-self: end;
	width: min(58%, 510px);
	padding: clamp(17px, 2.6vw, 36px);
	border-radius: 7px;
	background: #fffdf6;
}
.zk-layout-hero:is([data-zk-hero-layout="image-card"], [data-zk-hero-layout="image-detail"], [data-zk-hero-layout="campaign-strip"]) .zk-layout-hero__title {
	font-size: clamp(25px, 3.6vw, 57px);
}

/* The three distinct text-and-image layouts. */
.zk-layout-hero[data-zk-hero-layout="split-light"] .zk-layout-hero__frame {
	grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
}
.zk-layout-hero[data-zk-hero-layout="split-green"] .zk-layout-hero__frame {
	grid-template-columns: minmax(0, 56fr) minmax(0, 44fr);
	background: var(--zk-hero-green);
	color: white;
}
.zk-layout-hero[data-zk-hero-layout="split-green"] .zk-layout-hero__media { order: -1; }
.zk-layout-hero:is([data-zk-hero-layout="split-green"], [data-zk-hero-layout="panorama"]) .zk-layout-hero__title {
	font-weight: 700;
}
.zk-layout-hero[data-zk-hero-layout="image-detail"] .zk-layout-hero__frame {
	grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
}
.zk-layout-hero[data-zk-hero-layout="image-detail"] .zk-layout-hero__frame--detail {
	grid-template-columns: minmax(0, 39fr) minmax(0, 42fr) minmax(0, 19fr);
	gap: 2px;
}
.zk-layout-hero[data-zk-hero-layout="image-detail"] .zk-layout-hero__detail img {
	transform: scale(2.4);
	transform-origin: 68% 61%;
}

/* Centered editorial header and the inset campaign with an action row. */
.zk-layout-hero[data-zk-hero-layout="panorama"] .zk-layout-hero__frame {
	grid-template-rows: auto minmax(210px, 1fr);
}
.zk-layout-hero[data-zk-hero-layout="panorama"] .zk-layout-hero__copy {
	padding-block: clamp(24px, 3.5vw, 48px);
	text-align: center;
}
.zk-layout-hero[data-zk-hero-layout="panorama"] .zk-layout-hero__subtitle { margin-inline: auto; }
.zk-layout-hero[data-zk-hero-layout="campaign-strip"] .zk-layout-hero__frame {
	grid-template-rows: minmax(180px, 1fr) auto;
	min-height: min(clamp(320px, var(--zk-hero-height, 390px), 480px), var(--zkbl-hero-cap, 100vh));
	padding: clamp(12px, 2.3vw, 30px);
	background: #e8e5dc;
}
.zk-layout-hero[data-zk-hero-layout="campaign-strip"] .zk-layout-hero__media { order: -1; }
.zk-layout-hero[data-zk-hero-layout="campaign-strip"] .zk-layout-hero__copy {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, auto);
	gap: 0 24px;
	align-items: center;
	padding: 20px 0 0;
}
.zk-layout-hero[data-zk-hero-layout="campaign-strip"] .zk-layout-hero__subtitle { grid-column: 1; margin-top: 5px; }
.zk-layout-hero[data-zk-hero-layout="campaign-strip"] .zk-layout-hero__cta {
	grid-area: 1 / 2 / span 2;
	max-width: min(35vw, 350px);
	margin-top: 0;
	background: var(--zk-hero-yellow);
	color: var(--zk-hero-ink);
}
.zk-layout-hero[data-zk-hero-layout] .zk-layout-hero__frame--text-only {
	grid-template: auto / minmax(0, 1fr);
	min-height: 0;
}
.zk-layout-hero[data-zk-hero-layout] .zk-layout-hero__frame--text-only .zk-layout-hero__copy { width: auto; }

@media (max-width: 767px) {
	.zk-layout-hero { --zk-hero-pad: clamp(18px, 5vw, 38px); }
	.zk-layout-hero__frame { min-height: 0; }
	.zk-layout-hero__media { min-height: clamp(185px, 58vw, 315px); }
	.zk-layout-hero__title { font-size: clamp(28px, 7vw, 52px); }
	.zk-layout-hero:is([data-zk-hero-layout="full-left"], [data-zk-hero-layout="full-center"], [data-zk-hero-layout="image-card"]) .zk-layout-hero__frame:not(.zk-layout-hero__frame--text-only) {
		min-height: min(clamp(340px, 110vw, 500px), var(--zkbl-hero-cap, 100vh));
	}
	.zk-layout-hero:is([data-zk-hero-layout="full-left"], [data-zk-hero-layout="full-center"]) .zk-layout-hero__media::after {
		background: linear-gradient(0deg, rgb(18 22 19 / 96%) 0%, rgb(18 22 19 / 80%) 44%, rgb(18 22 19 / 25%) 100%);
	}
	.zk-layout-hero[data-zk-hero-layout="full-left"] .zk-layout-hero__copy,
	.zk-layout-hero[data-zk-hero-layout="full-center"] .zk-layout-hero__copy {
		align-self: end;
		width: 100%;
	}
	.zk-layout-hero[data-zk-hero-layout="image-card"] .zk-layout-hero__copy { width: 100%; }
	.zk-layout-hero:is([data-zk-hero-layout="split-light"], [data-zk-hero-layout="split-green"], [data-zk-hero-layout="image-detail"]) .zk-layout-hero__frame {
		grid-template-columns: minmax(0, 1fr);
	}
	.zk-layout-hero[data-zk-hero-layout="image-detail"] .zk-layout-hero__media { order: -1; }
	.zk-layout-hero__detail { display: none; }
	.zk-layout-hero[data-zk-hero-layout="campaign-strip"] .zk-layout-hero__frame { min-height: 0; }
	.zk-layout-hero[data-zk-hero-layout="campaign-strip"] .zk-layout-hero__copy { grid-template-columns: minmax(0, 1fr); }
	.zk-layout-hero[data-zk-hero-layout="campaign-strip"] .zk-layout-hero__cta {
		grid-area: auto;
		justify-self: start;
		max-width: 100%;
		margin-top: 14px;
	}
}
