/*
 * Long-form content (articles, pages). Design: body 17/18px Inter at 172%, h2 22/27px Merriweather,
 * captioned photos (13px muted caption), brand-dot bullets, centred social embeds.
 * Covers block-editor output (wp-block-*) and classic-editor captions (wp-caption).
 */
.fp-prose {
	color: var(--fp-body);
	font-size: 17px;
	line-height: 1.72;
	overflow-wrap: break-word;
}

.fp-prose > * + * {
	margin-top: 18px;
}

.fp-prose h2,
.fp-prose h3,
.fp-prose h4 {
	margin-top: 32px;
	scroll-margin-top: calc(var(--fp-header-h) + var(--fp-rail-h) + 16px);
}

.fp-prose h2 {
	font-size: 22px;
	line-height: 1.26;
}

.fp-prose h3 {
	font-size: 19px;
	line-height: 1.3;
}

.fp-prose h4 {
	font-size: 17px;
	line-height: 1.35;
}

.fp-prose h2 + *,
.fp-prose h3 + *,
.fp-prose h4 + * {
	margin-top: 12px;
}

.fp-prose a {
	color: var(--fp-brand-text);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

.fp-prose a:hover {
	color: var(--fp-ink);
}

.fp-prose strong,
.fp-prose b {
	color: var(--fp-ink);
	font-weight: 600;
}

/* Lists: brand-dot bullets. */
.fp-prose ul,
.fp-prose ol {
	padding-left: 1.4em;
}

.fp-prose ul {
	list-style: none;
}

.fp-prose ul > li {
	position: relative;
}

.fp-prose ul > li::before {
	content: "";
	position: absolute;
	top: 0.72em;
	left: -1.05em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--fp-brand);
}

.fp-prose li + li {
	margin-top: 8px;
}

/* Quotes (not social embeds, which also use <blockquote>). */
.fp-prose blockquote:not([class*="instagram"], [class*="twitter"], [class*="tiktok"]) {
	padding: 4px 0 4px 20px;
	border-left: 3px solid var(--fp-brand);
	color: var(--fp-ink);
	font-family: var(--fp-font-head);
	font-size: 19px;
	font-style: italic;
	line-height: 1.55;
}

/* Images and captions (block + classic). */
.fp-prose img {
	border-radius: var(--fp-radius);
}

.fp-prose figure,
.fp-prose .wp-caption {
	max-width: 100%;
}

.fp-prose figure img,
.fp-prose .wp-caption img {
	width: 100%;
}

.fp-prose figcaption,
.fp-prose .wp-caption-text,
.fp-prose .wp-element-caption {
	margin-top: 8px;
	color: var(--fp-muted);
	font-size: 13px;
	line-height: 1.5;
}

.fp-prose .aligncenter {
	margin-inline: auto;
}

.fp-prose .alignleft,
.fp-prose .alignright {
	max-width: 50%;
}

@media (min-width: 768px) {
	.fp-prose .alignleft {
		float: left;
		margin: 6px 24px 12px 0;
	}

	.fp-prose .alignright {
		float: right;
		margin: 6px 0 12px 24px;
	}
}

.fp-prose::after {
	content: "";
	display: table;
	clear: both;
}

/* Embeds: centre social posts, make video iframes responsive. */
.fp-prose .wp-block-embed,
.fp-prose .instagram-media,
.fp-prose .twitter-tweet,
.fp-prose .tiktok-embed {
	margin-inline: auto !important;
	max-width: 540px;
}

/* Instagram sets an inline min-width of 326px (blockquote and its iframe), wider than the text column on
   a 320px phone: let it shrink to the column (responsiveness sweep 2026-11-26). */
.fp-prose .instagram-media,
.fp-prose iframe.instagram-media {
	min-width: 0 !important;
	max-width: min(540px, 100%) !important;
}

.fp-prose .wp-block-embed__wrapper {
	display: flex;
	justify-content: center;
}

.fp-prose iframe {
	max-width: 100%;
	margin-inline: auto;
}

.fp-prose iframe[src*="youtube"],
.fp-prose iframe[src*="youtube-nocookie"],
.fp-prose iframe[src*="vimeo"] {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
}

.fp-prose hr {
	height: 1px;
	margin-block: 32px;
	border: 0;
	background: var(--fp-rule);
}

.fp-prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.fp-prose th,
.fp-prose td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--fp-rule);
	text-align: left;
}

@media (min-width: 1024px) {
	.fp-prose {
		font-size: 18px;
	}

	.fp-prose > * + * {
		margin-top: 20px;
	}

	.fp-prose h2 {
		margin-top: 36px;
		font-size: 27px;
	}

	.fp-prose h3 {
		font-size: 21px;
	}
}
