.hp-hero {
	display: grid;
	gap: 8px;
	color: #000;
}

.hp-hero__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 350px;
	gap: 8px;
}

.hp-hero__cell {
	position: relative;
	overflow: hidden;
	background: var(--hp-gradient-surface);
}

.hp-hero__top-link {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8px 16px;
	text-decoration: none;
	color: #111111;
	text-align: center;
}

.hp-hero__top-text--mobile {
	display: none;
	font-weight: 600;
}

.hp-hero__top-text p:first-child {
	margin-top: 0;
}

.hp-hero__top-text p:last-child {
	margin-bottom: 0;
}

.hp-hero__cell--main {
	display: flex;
	align-items: flex-end;
	justify-content: flex-start;
}

.hp-hero__cell--side {
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 20px;
}

.hp-hero__img {
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	pointer-events: none;
	z-index: 0;
}

/* Side column: full-bleed image behind content. */
.hp-hero__img--side {
	width: 100%;
}

.hp-hero__content {
	position: relative;
	z-index: 1;
}

.hp-hero__content--main {
	width: 50%;
	text-align: left;
	padding: 24px;
	min-width: 350px;
	position: relative;
}

.hp-hero__content--side {
	text-align: center;
}

.hp-hero__badge {
	display: inline-block;
	padding: 6px 10px;
	margin-bottom: 10px;
	background: #ff005a;
	color: #ffffff;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	line-height: 1;
}

.hp-hero__title {
	margin: 0 0 8px;
	font-size: 45px;
	font-weight: 700;
	line-height: 1.1;
}

.hp-hero__title--side {
	font-size: 30px;
}

/* Body copy & buttons: see child theme /css/global.css (.hp-text, .hp-btn) */

.hp-hero__button {
	margin-top: 18px;
}

@media (max-width: 991px) {
	.hp-hero__title {
		font-size: 34px;
	}

	.hp-hero__title--side {
		font-size: 26px;
	}

}

@media (max-width: 767px) {
	.hp-hero__row--top {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hp-hero__badge {
		position: absolute;
		top: 0;
		left: 0;
	}

	.hp-hero__row--bottom {
		grid-template-columns: 1fr;
	}

	.hp-hero__row--bottom .hp-hero__cell--side {
		aspect-ratio: unset;
		min-height: 0;
		padding: 0;
		display: grid;
		grid-template-columns: 6fr 4fr;
		grid-template-rows: minmax(0, auto);
		align-items: stretch;
		column-gap: 0;
	}

	.hp-hero__row--bottom .hp-hero__cell--side .hp-hero__content--side {
		grid-column: 1;
		grid-row: 1;
		align-self: center;
		text-align: left;
		min-width: 0;
		padding: 16px;
	}

	.hp-hero__row--bottom .hp-hero__cell--side .hp-hero__img--side {
		grid-column: 2;
		grid-row: 1;
		position: relative;
		top: auto;
		left: auto;
		width: 100%;
		height: 100%;
		min-height: 120px;
		align-self: stretch;
		object-fit: cover;
		object-position: center;
	}

	/* Main: text first, image below (DOM order is img then content — reorder with flex). */
	.hp-hero__cell--main {
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-end;
		min-height: 280px;
	}

	.hp-hero__cell--main .hp-hero__content--main {
		width: 100%;
		padding: 40px 16px 16px;
		min-width: unset;
		height: 100%;
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		justify-content: flex-end;
		max-width: 300px;
	}

	.hp-hero__cell--main .hp-hero__img--main {
		top: auto;
		left: auto;
		width: 100%;
		height: 100%;
		min-height: 200px;
		object-fit: cover;
		order: -1;
	}

	.hp-hero__content--main {
		width: 100%;
	}

	/* Top strip: each half is a container so mobile copy can be 100% wide, one line, fluid type. */
	.hp-hero__row--top .hp-hero__top-link {
		min-width: 0;
		container-type: inline-size;
		padding-inline: 12px;
	}

	.hp-hero__top-text--desktop {
		display: none;
	}

	.hp-hero__top-text--mobile {
		display: block;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		box-sizing: border-box;
	}

	.hp-hero__top-text--mobile p {
		margin: 0;
		width: 100%;
		max-width: 100%;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		/* Viewport fallback; overridden when container queries apply. */
		font-size: clamp(9px, 2.8vw, 18px);
	}

	@supports (container-type: inline-size) {
		.hp-hero__top-text--mobile p {
			font-size: clamp(9px, 2.8vw, 18px);
		}
	}

	.hp-hero__text {
		font-size: 14px;
	}

	.hp-hero__title {
		font-size: 26px;
		margin-bottom: 8px;
	}

	.hp-hero__title--side {
		font-size: 22px;
	}
}