/**
 * Section heading: eyebrow above an h2 (Figma 344:2285, 344:2331).
 * Loaded only by blocks that list "nook-section-heading" in block.json "style".
 */

.nook-section-heading {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	max-width: 504px;
}

.nook-section-heading__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--heading-l);

	&:is(h1) {
		font-size: var(--wp--preset--font-size--heading-xl);
	}
}

.nook-section-heading--center {
	align-items: center;
	margin-inline: auto;
	text-align: center;
}

@media (width < 37.5rem) {
	.nook-section-heading {
		gap: var(--wp--preset--spacing--30);
		max-width: none;
	}

	.nook-section-heading--mobile-start {
		align-items: flex-start;
		margin-inline: 0;
		text-align: start;
	}

	.nook-section-heading--mobile-center {
		align-items: center;
		margin-inline: auto;
		text-align: center;
	}

	/* Phones wrap headings freely; the space before <br> keeps words apart. */
	.nook-section-heading .nook-br {
		display: none;
	}
}

/* "|" in a heading: a line break on phones only. */
@media (width >= 37.5rem) {
	.nook-br-m {
		display: none;
	}
}
