/* IPA Eyebrow — IPA Design System / Enfold Advanced Layout Builder */
.ipa-section-eyebrow {
	--ipa-eyebrow-size: 0.7rem;
	--ipa-eyebrow-spacing: 0.32em;
	--ipa-eyebrow-line-width: 32px;
	--ipa-eyebrow-line-height: 3px;

	display: flex;
	align-items: center;
	gap: 0.75rem;
	width: 100%;
	margin: 0 0 0.75rem;
	font-size: var(--ipa-eyebrow-size);
	line-height: 1.3;
	letter-spacing: var(--ipa-eyebrow-spacing);
}

.ipa-section-eyebrow .ipa-eyebrow-text {
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
	line-height: inherit;
	text-transform: inherit;
}

.ipa-section-eyebrow .ipa-eyebrow-line {
	display: none;
	flex: 0 0 var(--ipa-eyebrow-line-width);
	width: var(--ipa-eyebrow-line-width);
	height: var(--ipa-eyebrow-line-height);
	min-width: var(--ipa-eyebrow-line-width);
	min-height: var(--ipa-eyebrow-line-height);
	background-color: currentColor;
}

.ipa-section-eyebrow .ipa-eyebrow-line.primary-background {
	color: inherit;
}

.ipa-section-eyebrow.ipa-eyebrow-line-before .ipa-eyebrow-line:first-child,
.ipa-section-eyebrow.ipa-eyebrow-line-after .ipa-eyebrow-line:last-child,
.ipa-section-eyebrow.ipa-eyebrow-line-before_after .ipa-eyebrow-line {
	display: block;
}

.ipa-section-eyebrow.ipa-eyebrow-line-above,
.ipa-section-eyebrow.ipa-eyebrow-line-below {
	flex-direction: column;
	justify-content: center;
}

.ipa-section-eyebrow.ipa-eyebrow-line-above .ipa-eyebrow-line:first-child,
.ipa-section-eyebrow.ipa-eyebrow-line-below .ipa-eyebrow-line:last-child {
	display: block;
	flex: 0 0 auto;
}

.ipa-eyebrow-align-left {
	justify-content: flex-start;
	text-align: left;
}

.ipa-eyebrow-align-center {
	justify-content: center;
	text-align: center;
}

.ipa-eyebrow-align-right {
	justify-content: flex-end;
	text-align: right;
}

.ipa-eyebrow-line-above.ipa-eyebrow-align-left,
.ipa-eyebrow-line-below.ipa-eyebrow-align-left {
	align-items: flex-start;
}

.ipa-eyebrow-line-above.ipa-eyebrow-align-center,
.ipa-eyebrow-line-below.ipa-eyebrow-align-center {
	align-items: center;
}

.ipa-eyebrow-line-above.ipa-eyebrow-align-right,
.ipa-eyebrow-line-below.ipa-eyebrow-align-right {
	align-items: flex-end;
}

.ipa-section-eyebrow.ipa-eyebrow-no-line .ipa-eyebrow-line {
	display: none !important;
}

.ipa-eyebrow-builder-preview {
	padding: 12px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

/*
 * When the divider sits beside multi-line text, align the flex items to the
 * first line rather than vertically centering the divider against the entire
 * text block.
 */
.ipa-section-eyebrow.ipa-eyebrow-line-before,
.ipa-section-eyebrow.ipa-eyebrow-line-after,
.ipa-section-eyebrow.ipa-eyebrow-line-before_after {
	align-items: flex-start;
}

/*
 * Place the divider at the optical center of the first line of text.
 * The parent element uses a 1.3 line-height by default.
 */
.ipa-section-eyebrow.ipa-eyebrow-line-before .ipa-eyebrow-line:first-child,
.ipa-section-eyebrow.ipa-eyebrow-line-after .ipa-eyebrow-line:last-child,
.ipa-section-eyebrow.ipa-eyebrow-line-before_after .ipa-eyebrow-line {
	margin-top: calc((1.3em - var(--ipa-eyebrow-line-height)) / 2);
}
