/*
 * Prose: long text written in the classic editor (news posts, privacy,
 * accessibility). Paragraphs, H2/H3, lists with orange bullets, quotes,
 * images with captions and links.
 *
 * .prose--article   news: 19px / 1.75, H2 34px
 * .prose--doc       text pages: 18px / 1.7, H2 32px
 */

.prose {
	--prose-size: 19px;
	--prose-lh: 1.75;
	--prose-h2: clamp(28px, calc(28px + 6 * (100vw - 390px) / 1050), 34px);
	display: flex;
	flex-direction: column;
	gap: 22px;
	min-width: 0;
	color: var(--rbnl-text);
	font-size: var(--prose-size);
	line-height: var(--prose-lh);
}

.prose--doc {
	--prose-size: 18px;
	--prose-lh: 1.7;
	--prose-h2: clamp(26px, calc(26px + 6 * (100vw - 390px) / 1050), 32px);
	gap: 16px;
}

.prose > * {
	margin: 0;
}

.prose p {
	margin: 0;
}

.prose h2 {
	margin-top: 24px;
	font-size: var(--prose-h2);
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.prose--doc h2 {
	margin-top: 36px;
	scroll-margin-top: var(--rbnl-header-offset);
}

.prose--doc > h2:first-child {
	margin-top: 0;
}

.prose h3 {
	margin-top: 12px;
	font-size: var(--rbnl-fs-h3-sm);
}

.prose a {
	color: var(--rbnl-ink);
	font-weight: 500;
	text-decoration: underline;
	text-decoration-color: var(--rbnl-peach-2);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
	transition:
		color 0.3s var(--rbnl-ease),
		text-decoration-color 0.3s var(--rbnl-ease);
}

.prose a:hover {
	color: var(--rbnl-orange-dark);
	text-decoration-color: var(--rbnl-orange);
}

.prose ul,
.prose ol {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.prose ol {
	counter-reset: prose;
}

.prose li {
	position: relative;
	padding-left: 20px;
	line-height: 1.55;
}

.prose ul > li::before {
	content: '';
	position: absolute;
	top: 0.62em;
	left: 0;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--rbnl-orange);
}

.prose ol > li {
	padding-left: 32px;
	counter-increment: prose;
}

.prose ol > li::before {
	content: counter(prose) '.';
	position: absolute;
	left: 0;
	color: var(--rbnl-orange-dark);
	font-weight: 600;
}

.prose blockquote {
	position: relative;
	margin: 20px 0;
	padding: 36px;
	border-radius: var(--rbnl-radius-card-lg);
	background: var(--rbnl-peach);
	color: var(--rbnl-ink);
}

.prose blockquote::before {
	content: '“';
	display: block;
	height: 40px;
	color: var(--rbnl-orange-text);
	font-family: var(--rbnl-font-heading);
	font-size: 96px;
	font-weight: 700;
	line-height: 0.8;
}

.prose blockquote p {
	font-family: var(--rbnl-font-heading);
	font-size: clamp(22px, calc(22px + 8 * (100vw - 390px) / 1050), 30px);
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.015em;
}

.prose blockquote cite,
.prose blockquote footer {
	display: block;
	margin-top: 14px;
	color: var(--rbnl-orange-dark);
	font-size: 15px;
	font-style: normal;
	font-weight: 600;
	line-height: 1.4;
}

.prose figure,
.prose .wp-caption {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: auto !important;
	max-width: 100%;
	margin: 16px 0;
}

.prose figure img,
.prose .wp-caption img,
.prose > p > img {
	width: 100%;
	height: auto;
	border-radius: var(--rbnl-radius-card-lg);
}

.prose figcaption,
.prose .wp-caption-text {
	color: var(--rbnl-mute);
	font-size: 14px;
	line-height: 1.5;
}

.prose hr {
	width: 100%;
	height: 1px;
	margin: 24px 0;
	border: 0;
	background: var(--rbnl-line);
}

.prose table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
}

.prose th,
.prose td {
	padding: 10px 14px;
	border-bottom: 1px solid var(--rbnl-line);
	text-align: left;
}

@media (max-width: 639.98px) {
	.prose blockquote {
		padding: 26px 22px;
	}
}
