/* wpagent/text. Presets read --wp--custom--type--<preset>--* like headings (font role: body). */
.wpab-text {
	margin: 0;
	overflow-wrap: break-word;
}

.wpab-text mark {
	background: none;
	color: inherit;
}

.wpab-text a {
	color: inherit;
}

/* Decoration: a rule or skewed bar before (and after) the text. */
.wpab-text[class*="has-decor-"] {
	display: flex;
	align-items: center;
	gap: var(--wpab-decor-gap, 10px);
}

.wpab-text.has-decor-rule::before,
.wpab-text.has-decor-rule-both::before,
.wpab-text.has-decor-rule-both::after,
.wpab-text.has-decor-skew-bar::before {
	content: "";
	flex: none;
	width: var(--wpab-decor-w, 18px);
	height: var(--wpab-decor-h, 2px);
	background: var(--wpab-decor-color, currentColor);
}

.wpab-text.has-decor-skew-bar::before {
	transform: skewX(-20deg);
}

.wpab-text.is-preset-body {
	font-family: var(--wp--custom--type--body--font, var(--wp--custom--font--body, inherit));
	font-size: var(--wp--custom--type--body--size, 1rem);
	font-weight: var(--wp--custom--type--body--weight, 400);
	font-style: var(--wp--custom--type--body--style, normal);
	line-height: var(--wp--custom--type--body--line-height, 1.65);
	letter-spacing: var(--wp--custom--type--body--tracking, normal);
	text-transform: var(--wp--custom--type--body--transform, none);
}

.wpab-text.is-preset-lead {
	font-family: var(--wp--custom--type--lead--font, var(--wp--custom--font--body, inherit));
	font-size: var(--wp--custom--type--lead--size, 1.125rem);
	font-weight: var(--wp--custom--type--lead--weight, 400);
	font-style: var(--wp--custom--type--lead--style, normal);
	line-height: var(--wp--custom--type--lead--line-height, 1.6);
	letter-spacing: var(--wp--custom--type--lead--tracking, normal);
	text-transform: var(--wp--custom--type--lead--transform, none);
}

.wpab-text.is-preset-eyebrow {
	font-family: var(--wp--custom--type--eyebrow--font, var(--wp--custom--font--body, inherit));
	font-size: var(--wp--custom--type--eyebrow--size, 0.8125rem);
	font-weight: var(--wp--custom--type--eyebrow--weight, 600);
	font-style: var(--wp--custom--type--eyebrow--style, normal);
	line-height: var(--wp--custom--type--eyebrow--line-height, 1.4);
	letter-spacing: var(--wp--custom--type--eyebrow--tracking, 0.12em);
	text-transform: var(--wp--custom--type--eyebrow--transform, uppercase);
}

.wpab-text.is-preset-small {
	font-family: var(--wp--custom--type--small--font, var(--wp--custom--font--body, inherit));
	font-size: var(--wp--custom--type--small--size, 0.875rem);
	font-weight: var(--wp--custom--type--small--weight, 400);
	font-style: var(--wp--custom--type--small--style, normal);
	line-height: var(--wp--custom--type--small--line-height, 1.55);
	letter-spacing: var(--wp--custom--type--small--tracking, normal);
	text-transform: var(--wp--custom--type--small--transform, none);
}

.wpab-text.is-preset-caption {
	font-family: var(--wp--custom--type--caption--font, var(--wp--custom--font--body, inherit));
	font-size: var(--wp--custom--type--caption--size, 0.8125rem);
	font-weight: var(--wp--custom--type--caption--weight, 400);
	font-style: var(--wp--custom--type--caption--style, normal);
	line-height: var(--wp--custom--type--caption--line-height, 1.5);
	letter-spacing: var(--wp--custom--type--caption--tracking, normal);
	text-transform: var(--wp--custom--type--caption--transform, none);
}

.wpab-text.is-preset-crumbs {
	font-family: var(--wp--custom--type--crumbs--font, var(--wp--custom--font--body, inherit));
	font-size: var(--wp--custom--type--crumbs--size, 0.875rem);
	font-weight: var(--wp--custom--type--crumbs--weight, 400);
	font-style: var(--wp--custom--type--crumbs--style, normal);
	line-height: var(--wp--custom--type--crumbs--line-height, 1.5);
	letter-spacing: var(--wp--custom--type--crumbs--tracking, normal);
	text-transform: var(--wp--custom--type--crumbs--transform, none);
}
