/**
 * Section heading block (.bst-section-heading): centered eyebrow, h2 and
 * a short intro, then space before the section content.
 * Markup: bstieunhien_theme_section_heading() in inc/section-heading.php.
 * See "Section heading block" in docs/design-system.md (price-list-01.jpg).
 */

.bst-section-heading {
	margin-bottom: calc(var(--section-y) / 2);
	text-align: center;
}

.bst-section-heading__title {
	margin-bottom: 0;
	text-wrap: balance;
}

/* Limited line length, as in the reference (two short lines). */
.bst-section-heading__intro {
	max-width: 36em;
	margin: 0.75em auto 0;
}

/*
 * Section header row (.bst-section-header): left-aligned h2 at --text-h2,
 * optional italic link at the right end of the row (below the heading
 * under 600px), 1px hairline under the row, then space before the
 * section content. Markup: bstieunhien_theme_section_header().
 * See "Section header row" in docs/design-system.md (no screenshot).
 */
.bst-section-header {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.5em;
	margin-bottom: var(--gap);
	padding-bottom: calc(var(--gap) / 2);
	border-bottom: 1px solid var(--color-border);
}

.bst-section-header__title {
	margin: 0;
	font-size: var(--text-h2);
	text-align: left;
}

@media (min-width: 600px) {

	.bst-section-header {
		flex-direction: row;
		align-items: baseline;
		justify-content: space-between;
		gap: var(--gap);
	}

	.bst-section-header__link {
		flex-shrink: 0;
	}
}
