/* Text: a block of rich text in three sizes. */
.px-page .px-text { font-size: var(--px-text-body); line-height: var(--px-leading-body); }
.px-page .px-text--lead { font-size: var(--px-text-lead); max-width: 40rem; }
.px-page :is(.px-section--al-center .px-text--lead:not(.px-text--start), .px-text--lead.px-text--center) { margin-inline: auto; }
.px-page .px-text--small { font-size: var(--px-text-small); color: var(--px-color-muted); }
.px-page .px-text--label { font-size: var(--px-text-small); font-weight: 500; letter-spacing: .12em; line-height: 1.5; text-transform: uppercase; }
.px-page .px-text--start { text-align: start; }
.px-page .px-text--center { text-align: center; }
.px-page .px-text--end { text-align: end; }
.px-page .px-text__body { text-wrap: pretty; overflow-wrap: anywhere; }
.px-page .px-text__body > :first-child { margin-top: 0; }
.px-page .px-text__body > :last-child { margin-bottom: 0; }
.px-page .px-text__body p,
.px-page .px-text__body ul,
.px-page .px-text__body ol { margin: 0 0 var(--px-space-s); }
.px-page .px-text__body ul,
.px-page .px-text__body ol { padding-inline-start: 1.25em; }
.px-page .px-text__body a { color: var(--px-color-primary-text); text-underline-offset: .15em; }
.px-page .px-text__body a:hover { color: var(--px-color-primary-hover); }
.px-page .px-text__body a:focus-visible { outline: 2px solid var(--px-color-primary); outline-offset: 2px; }
.px-page .px-text--label :is(strong, b) { font-weight: 700; }

/* labelStyle (label size only): pill = soft capsule, dot = a small dot before the text. */
.px-page .px-text--label.px-text--ls-pill {
	display: inline-block;
	padding: .25em var(--px-space-s);
	border-radius: 999px;
	background: var(--px-color-primary-soft);
	color: var(--px-color-primary-text);
}
.px-page :is(.px-section--bg-soft, .px-section--bgs-tint) .px-text--label.px-text--ls-pill { background: var(--px-color-surface); }
.px-page .px-text--label.px-text--ls-dot { display: flex; align-items: baseline; gap: .5em; }
/* The text takes the rest of the line, so it never shrinks to its widest word (labels wrapped every two words). */
.px-page .px-text--label.px-text--ls-dot > .px-text__body { flex: 1 1 0; min-width: 0; }
.px-page .px-text--label.px-text--ls-dot::before {
	content: "";
	flex: none;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--px-color-primary-text);
	align-self: flex-start;
	margin-top: calc((1.5em - 6px) / 2);
}

/* tone muted (advanced). */
.px-page .px-text--muted { color: var(--px-color-muted); }

/* ★ in the content: the star colour (as the quote rating). */
.px-page .px-star { color: var(--px-star, #f5b301); }
