.hero-text {
	--hero-text-top: clamp(3.5rem, 1.844rem + 6.797vw, 10rem);
	--hero-text-bottom: clamp(4.5rem, 2.463rem + 8.366vw, 12.5rem);

	position: relative;
	overflow: hidden;
	padding-block: var(--hero-text-top) var(--hero-text-bottom);
	background: var(--neutral-50);
}

.hero-text--compact {
	--hero-text-bottom: clamp(3.5rem, 2.48rem + 4.183vw, 7.5rem);
}

.hero-text.is-hidden-preview {
	opacity: 0.4;
}

.hero-text__ring {
	position: absolute;
	aspect-ratio: 1;
	border: 2px solid;
	border-radius: 50%;
	pointer-events: none;
}

.hero-text__ring--yellow {
	top: -220px;
	left: 41.03%;
	width: 107.69%;
	border-color: var(--yellow);
	opacity: 0.6;
}

.hero-text__ring--red {
	top: -160px;
	left: 58.97%;
	width: 87.18%;
	border-color: var(--red);
	opacity: 0.2;
}

.hero-text__inner {
	position: relative;
}

.hero-text__breadcrumbs {
	display: none;
}

.hero-text__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
	max-width: 896px;
}

.hero-text__overline {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--red-dark);
}

.hero-text__overline::before {
	content: "";
	width: 24px;
	height: 3px;
	border-radius: 2px;
	background: var(--red);
}

.hero-text__title {
	max-width: 100%;
	letter-spacing: -0.6px;
	hyphens: auto;
	overflow-wrap: break-word;
}

.hero-text__text {
	color: var(--neutral-600);
	font-size: var(--fs-lead);
	line-height: var(--lh-lead);
}

.hero-text__buttons {
	display: flex;
	flex-direction: column;
	align-self: stretch;
	gap: 12px;
	padding-top: 8px;
}

.hero-text__hint {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 8px;
	margin: 0;
}

.hero-text__hint-text {
	color: var(--neutral-600);
	font-size: var(--fs-body-m);
	line-height: var(--lh-body-m);
}

.hero-text__hint-link {
	font-size: var(--fs-button-s);
	line-height: var(--lh-button-s);
}

.hero-text__hint-link .button__icon {
	--icon-px: 18;
}

@media (min-width: 576px) {
	.hero-text__buttons {
		flex-direction: row;
		align-items: flex-start;
		align-self: flex-start;
		gap: 16px;
	}

	/* Rings keep a fixed size in the top right corner instead of growing with
	   the width, so their arcs do not run through the headline and lead. */
	.hero-text__ring--yellow {
		top: -250px;
		left: calc(100% - 300px);
		width: 420px;
	}

	.hero-text__ring--red {
		top: -230px;
		left: calc(100% - 200px);
		width: 340px;
	}
}

@media (min-width: 1024px) {
	.hero-text__ring--yellow {
		top: -420px;
		left: 64.58%;
		width: 52.08%;
	}

	.hero-text__ring--red {
		top: -300px;
		left: 71.88%;
		width: 41.67%;
	}

	.hero-text--crumbs {
		--hero-text-top: 4rem;
	}

	.hero-text__breadcrumbs {
		display: block;
		margin-bottom: 56px;
	}

	.hero-text__content {
		gap: 24px;
	}

	.hero-text__overline {
		gap: 12px;
	}

	.hero-text__overline::before {
		width: 32px;
	}

	.hero-text__title {
		letter-spacing: var(--ls-h1);
	}

	.hero-text__buttons {
		padding-top: 16px;
	}
}

.hero-text__crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--neutral-600);
	font-size: var(--fs-body-s);
	line-height: var(--lh-body-s);
}

.hero-text__crumb {
	display: flex;
	align-items: center;
}

.hero-text__crumb a {
	color: inherit;
	text-decoration: none;
}

.hero-text__crumb a:hover {
	color: var(--neutral-900);
	text-decoration: underline;
}

.hero-text__crumb [aria-current] {
	color: var(--neutral-900);
	font-weight: 500;
}

.hero-text__sep {
	--icon-px: 14;
	margin-inline: 8px;
}

/* Job list page: the hero carries the search of the plugin (Figma 02 and M02, spacing differs from the text pages). */
.hero-text:has(.edd-job-search) {
	--hero-text-top: 2rem;
	--hero-text-bottom: 1.5rem;
}

.hero-text:has(.edd-job-search) .hero-text__content {
	gap: 16px;
}

.hero-text:has(.edd-job-search) .hero-text__text {
	font-size: var(--fs-body-m);
	line-height: var(--lh-body-m);
}

@media (min-width: 1024px) {
	/* The search card spans the content width (Figma 1440 px); the lead text keeps its 820 px column. */
	.hero-text:has(.edd-job-search) .hero-text__inner {
		container-type: inline-size;
	}

	.hero-text:has(.edd-job-search) .hero-text__text {
		max-width: 820px;
	}

	.hero-text:has(.edd-job-search) .edd-job-search {
		width: 100cqw;
	}

	.hero-text:has(.edd-job-search) {
		--hero-text-top: 5rem;
		--hero-text-bottom: 5rem;
	}

	.hero-text:has(.edd-job-search) .hero-text__breadcrumbs {
		margin-bottom: 40px;
	}

	.hero-text:has(.edd-job-search) .hero-text__text {
		font-size: var(--fs-lead);
		line-height: var(--lh-lead);
	}
}
