/**
 * Hero (text) — DS 0.2.4 draft (Figma Hero text).
 *
 * section.ya-hero-text → __container → __content
 * → H1 (post-title or ya-plugin/hero) + optional Body LG ingress.
 * Surrounding spacing: D014 fluid clamps (no breakpoint steps).
 */

.ya-hero-text {
	--ya-hero-text-content-max: 708px;
	--ya-hero-text-content-gap: var(--ya-spacing-24);
	--ya-hero-text-padding-block-start: 0;
	--ya-hero-text-padding-inline: var(--wp--custom--spacing--padding-inline, clamp(1rem, -1.486rem + 8.304vi, 2.5rem));
	--ya-hero-text-padding-block-end: var(--wp--custom--spacing--padding-block, clamp(3rem, 1.004rem + 4.163vi, 6rem));
	--ya-hero-text-background: var(--wp--custom--color--background-base);
	--ya-hero-text-color: var(--wp--custom--color--text-primary);

	box-sizing: border-box;
	width: 100%;
	margin-block: 0;
	padding-inline: var(--ya-hero-text-padding-inline);
	margin-block-start: var(--ya-hero-text-padding-block-start);
	margin-block-end: var(--ya-hero-text-padding-block-end);
	background: var(--ya-hero-text-background);
	color: var(--ya-hero-text-color);
}

.ya-hero-text,
.ya-hero-text * {
	box-sizing: border-box;
}

.ya-hero-text__container {
	width: min(100%, var(--wp--style--global--wide-size, 1440px));
	margin-inline: auto;
}

.ya-hero-text__content {
	display: grid;
	gap: var(--ya-hero-text-content-gap);
	width: min(100%, var(--ya-hero-text-content-max));
}

.ya-hero-text__title,
.ya-hero-text__title.wp-block-post-title,
.ya-hero-text__title.wp-block-heading,
.ya-hero-text__body,
.ya-hero-text__body.wp-block-post-excerpt {
	margin: 0;
	overflow-wrap: anywhere;
}

.ya-hero-text__body .wp-block-post-excerpt__excerpt,
.ya-hero-text__body p {
	margin: 0;
}

.ya-hero-text__body .wp-block-post-excerpt__more-text,
.ya-hero-text__body .wp-block-post-excerpt__more-link {
	display: none;
}
