/**
 * Kubota Europe reusable text-block classes.
 *
 * Three plain, standalone typography classes for the "text block" family of
 * the Figma design (frame 4961-2669 / 4961-2670 / 4961-2671, "The JOURNEY —
 * Case studies from KUBOTA"): a big centered teal title, a bold black
 * statement under it, and a light black paragraph. Each maps to a type scale
 * already used elsewhere in the plugin, so they read as the same family:
 *
 *   - `.kbeu-block-title`    — same scale as `.kbeu-heading__title` /
 *     `.kbeu-division-heading__title`, in the brand teal instead of black.
 *   - `.kbeu-block-subtitle` — same scale as `.kbeu-contact-cta__title` /
 *     `.kbeu-info-cta__title` / `.kbeu-descriptions__title` (bold 32px).
 *   - `.kbeu-block-text`     — same scale as `.kbeu-heading__text` /
 *     `.kbeu-section-heading__text` / `.kbeu-text-card__text` (light 24px).
 *
 * Two left-aligned story classes follow (`.kbeu-story-text`, `.kbeu-story-lead`,
 * the single case study's copy — see their comment at the end).
 *
 * None of these are WPBakery elements of their own — they are plain reusable
 * classes. Add one to the "Extra class name" field of whatever text element
 * already holds the copy (a native WPBakery Text Block, a Heading, a WYSIWYG
 * field, …) wherever the design calls for it; the class only sets the
 * typography and colour, not the markup, so multi-line copy is just a line
 * break or a second paragraph inside that element.
 */

.kbeu-block-title,
.kbeu-block-subtitle,
.kbeu-block-text {
	margin: 0;
	font-family: var( --kbeu-font-principal );
	text-align: center;
}

/* Paragraphs inside the element (e.g. a WYSIWYG field with one <p> per line)
   sit flush against the line-height above, like the design's separate lines. */
.kbeu-block-title p,
.kbeu-block-subtitle p,
.kbeu-block-text p {
	margin: 0;
}

/* Figma 4961-2669: "The JOURNEY / Case studies from KUBOTA" — 70px Medium,
   teal, line-height 1.02. */
.kbeu-block-title {
	font-weight: 500;
	line-height: 1.02;
	font-size: clamp( 36px, 4.8vw, 70px );
	color: var( --kbeu-color-teal );
}

/* Figma 4961-2670: "Every journey begins with a vision" — 32px Bold, black,
   line-height 1.37. */
.kbeu-block-subtitle {
	font-weight: 700;
	line-height: 1.37;
	font-size: clamp( 24px, 2.4vw, 32px );
	color: #000;
}

/* Figma 4961-2671: the "Welcome to THE JOURNEY…" paragraph — 24px Light,
   black, line-height 1.55. */
.kbeu-block-text {
	font-weight: 300;
	line-height: 1.55;
	font-size: clamp( 17px, 1.7vw, 24px );
	color: #000;
}

/*
 * Story copy — the full text of a single case study (Figma 3727-10504, the
 * block between the post title and "You may also like"). Left-aligned, unlike
 * the centred block classes above.
 *
 *   - `.kbeu-story-text` — set on the template's Post Content element, so every
 *     story reads the same: 24px Light / 1.55 (`.kbeu-block-text`'s scale) with
 *     one empty line between paragraphs, as the design draws them.
 *   - `.kbeu-story-lead` — on the Text Block holding the opening statement:
 *     32px Bold / 1.58 (down to 20px on phones, where it would outweigh the
 *     title), ~22px above the story.
 */
.kbeu-story-text {
	font-family: var( --kbeu-font-principal );
	font-weight: 300;
	line-height: 1.55;
	font-size: clamp( 17px, 1.7vw, 24px );
	color: #000;
}

.kbeu-story-text p {
	margin: 0 0 1.55em;
}

.kbeu-story-text p:last-child {
	margin-bottom: 0;
}

/* On a Text Block the bottom margin is Impreza's own
   (`.wpb_text_column:not(:last-child)` reads `--text-block-margin-bottom`). */
.kbeu-story-lead {
	--text-block-margin-bottom: 0.675em;
	margin: 0 0 0.675em;
	font-family: var( --kbeu-font-principal );
	font-weight: 700;
	line-height: 1.58;
	font-size: clamp( 20px, 2.4vw, 32px );
	color: #000;
}

.kbeu-story-lead p,
.kbeu-story-text .kbeu-story-lead p {
	margin: 0;
}

/*
 * `.kbeu-story-heading` — a turquoise sub-heading inside a story (The Journey
 * page, Figma 4516-5472 / 4516-5473: "BUT WHY DID DRAGON EQUIPMENT CHOOSE…",
 * capitals as typed): the lead's 32px Bold / 1.58 in teal, ~29px above the
 * paragraph that follows. Write it as a heading (H2/H3) inside the Text Block:
 * the theme's heading look is reset to the block's.
 */
.kbeu-story-heading {
	--text-block-margin-bottom: 0.9em;
	margin: 0 0 0.9em;
	font-family: var( --kbeu-font-principal );
	font-weight: 700;
	line-height: 1.58;
	font-size: clamp( 20px, 2.4vw, 32px );
	color: var( --kbeu-color-teal );
}

.kbeu-story-heading :is( h2, h3, h4, p ) {
	margin: 0;
	padding: 0;
	font: inherit;
	letter-spacing: inherit;
	text-transform: none;
	color: inherit;
}

/*
 * `.kbeu-block-note` — a small centred legal line under a block (the lead
 * generation page, Figma 5037-5092: "Prize availability may vary by market…"):
 * 20px / Roman at 1.5, black.
 */
.kbeu-block-note {
	margin: 0;
	font-family: var( --kbeu-font-principal );
	font-weight: 400;
	line-height: 1.5;
	font-size: clamp( 15px, 0.78vw, 20px );
	text-align: center;
	color: #000;
}

.kbeu-block-note p {
	margin: 0;
}

/*
 * `.kbeu-sep`, for a separator between blocks that may print nothing: when the block
 * between two of them is empty, the second one does not add its height to the first.
 */
.kbeu-sep + .kbeu-sep {
	display: none;
}
