/**
 * Kubota Europe division heading (WPBakery element `vc_kbeu_division_heading`).
 *
 * Figma node 4481-2660: the centered block between a division landing page's
 * hero and its categories bar — a small turquoise eyebrow (28px / Light) with the
 * division name over the large single line "What product are you looking for?"
 * (70px / Medium, 1.02 line height). Same type scale as `vc_kbeu_heading`, so the
 * two read as one family when they share a page.
 *
 * The block fills the width its WPBakery row/column gives it (no breakout, no
 * own max width) and only centers its text. Its vertical padding carries the
 * design's distances to the neighbours — ~104px below the hero and ~48px above
 * the categories bar @2560 — as custom properties, so a row can still override
 * them. Font "Inter" comes from the plugin's fonts stylesheet
 * (this handle depends on `kbeu-fonts`), referenced through
 * `--kbeu-font-principal`; the bundled family ships the 300 / 400 / 500 / 700 weights,
 * so both faces of the design match exactly.
 */

.kbeu-division-heading {
	--kbeu-dh-teal: var( --kbeu-color-teal );
	--kbeu-dh-ink: #000;
	/* Design: 104px from the hero to the block, 48px from the block to the bar @2560. */
	--kbeu-dh-pad-top: clamp( 48px, 4.06vw, 104px );
	--kbeu-dh-pad-bottom: clamp( 24px, 1.875vw, 48px );

	/* Fills whatever width its WPBakery row/column gives it (no breakout, no
	   own max width): the row decides between site width and full width. */
	width: 100%;
	box-sizing: border-box;
	padding: var( --kbeu-dh-pad-top ) 0 var( --kbeu-dh-pad-bottom );
	color: var( --kbeu-dh-ink );
	text-align: center;
}

.kbeu-division-heading__inner {
	width: 100%;
}

.kbeu-division-heading__eyebrow {
	margin: 0;
	font-family: var( --kbeu-font-principal );
	font-weight: 300;
	line-height: 1.2;
	font-size: clamp( 20px, 2vw, 28px );
	color: var( --kbeu-dh-teal );
}

.kbeu-division-heading__title {
	/* Design: ~30px between the eyebrow's baseline and the title's cap height;
	   the line heights already add most of it. */
	margin: clamp( 8px, 0.55vw, 14px ) 0 0;
	font-family: var( --kbeu-font-principal );
	font-weight: 500;
	line-height: 1.02;
	font-size: clamp( 36px, 4.8vw, 70px );
	color: var( --kbeu-dh-ink );
	/* Long translations wrap instead of overflowing on narrow screens. */
	overflow-wrap: break-word;
}

/* The level's own introduction (only some terms have one). Kept to a reading
   measure: a line across the whole row would be too long to follow. */
.kbeu-division-heading__intro {
	max-width: 62em;
	margin: clamp( 16px, 1.4vw, 32px ) auto 0;
	font-family: var( --kbeu-font-principal );
	font-weight: 300;
	line-height: 1.55;
	font-size: clamp( 17px, 1.3vw, 22px );
	color: var( --kbeu-dh-ink );
}

.kbeu-division-heading__intro > :first-child {
	margin-top: 0;
}

.kbeu-division-heading__intro > :last-child {
	margin-bottom: 0;
}
