/**
 * Evergreen Post Content — Figma 18983:16837
 * Scoped to Bricks Post Content (`.brxe-post-content`).
 */

.brxe-post-content {
	--epc-heading: #f9c587;
	--epc-body: #e5e5e5;
	--epc-lead: #fafafa;
	--epc-muted: rgba(229, 229, 229, 0.72);
	--epc-border: rgba(249, 197, 135, 0.28);
	--epc-border-soft: rgba(255, 255, 255, 0.12);
	--epc-table-head: rgba(249, 197, 135, 0.1);
	--epc-table-stripe: rgba(255, 255, 255, 0.03);
	--epc-font: 'SFU Futura', 'Montserrat', system-ui, sans-serif;
	--epc-gap: 56px;
	--epc-gap-sm: 24px;
	--epc-gap-xs: 16px;

	color: var(--epc-body);
	font-family: var(--epc-font);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.25;
	word-break: break-word;
}

.brxe-post-content > *:first-child {
	margin-top: 0;
}

.brxe-post-content > *:last-child {
	margin-bottom: 0;
}

/* —— Lead intro (first paragraph) — H5 oblique / #fafafa —— */
.brxe-post-content > p:first-of-type {
	margin: 0 0 var(--epc-gap);
	color: var(--epc-lead);
	font-size: 24px;
	font-style: oblique;
	font-weight: 400;
	line-height: 1.25;
}

/* —— Headings — text/heading primary base —— */
.brxe-post-content :is(h1, h2, h3, h4, h5, h6) {
	margin: var(--epc-gap) 0 var(--epc-gap-sm);
	color: var(--epc-heading);
	font-family: var(--epc-font);
	font-weight: 400;
	line-height: 1.25;
}

.brxe-post-content h1 {
	/* Desktop/Heading/H3 */
	font-size: 40px;
	letter-spacing: -0.03em;
}

.brxe-post-content h2 {
	/* Desktop/Heading/H4 — section titles in design */
	font-size: 30px;
	letter-spacing: 0;
}

.brxe-post-content h3 {
	/* Desktop/Heading/H5 */
	font-size: 24px;
	letter-spacing: 0;
}

.brxe-post-content h4 {
	font-size: 20px;
	letter-spacing: 0;
}

.brxe-post-content h5 {
	font-size: 18px;
	letter-spacing: 0;
}

.brxe-post-content h6 {
	font-size: 16px;
	letter-spacing: -0.01em;
}

.brxe-post-content :is(h1, h2, h3, h4, h5, h6) + :is(h1, h2, h3, h4, h5, h6) {
	margin-top: var(--epc-gap-sm);
}

/* —— Body —— */
.brxe-post-content p {
	margin: 0 0 var(--epc-gap-xs);
	color: var(--epc-body);
	font-size: 18px;
	font-style: normal;
	font-weight: 400;
	line-height: 1.25;
}

.brxe-post-content > p:first-of-type + * {
	margin-top: 0;
}

.brxe-post-content :is(strong, b) {
	color: var(--epc-lead);
	font-weight: 500;
}

.brxe-post-content :is(em, i) {
	font-style: oblique;
}

.brxe-post-content a {
	color: var(--epc-heading);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	transition: color 0.2s ease, opacity 0.2s ease;
}

.brxe-post-content a:hover,
.brxe-post-content a:focus-visible {
	color: var(--epc-lead);
}

/* —— Lists —— */
.brxe-post-content :is(ul, ol) {
	margin: 0 0 var(--epc-gap-sm);
	padding-left: 1.35em;
	color: var(--epc-body);
}

.brxe-post-content li {
	margin: 0 0 0.5em;
	font-size: 18px;
	line-height: 1.25;
}

.brxe-post-content li:last-child {
	margin-bottom: 0;
}

.brxe-post-content li::marker {
	color: var(--epc-heading);
}

/* —— Blockquote —— */
.brxe-post-content blockquote {
	margin: var(--epc-gap-sm) 0;
	padding: 8px 0 8px 24px;
	border-left: 3px solid var(--epc-heading);
	color: var(--epc-lead);
	font-size: 24px;
	font-style: oblique;
	font-weight: 400;
	line-height: 1.25;
}

.brxe-post-content blockquote p {
	margin: 0 0 var(--epc-gap-xs);
	color: inherit;
	font-size: inherit;
	font-style: inherit;
	line-height: inherit;
}

.brxe-post-content blockquote p:last-child {
	margin-bottom: 0;
}

.brxe-post-content blockquote cite {
	display: block;
	margin-top: 12px;
	color: var(--epc-heading);
	font-size: 16px;
	font-style: normal;
	letter-spacing: -0.01em;
	line-height: 1.5;
}

/* —— Table —— */
.brxe-post-content .wp-block-table,
.brxe-post-content figure.wp-block-table {
	margin: var(--epc-gap-sm) 0;
	width: 100%;
	overflow-x: auto;
}

.brxe-post-content table {
	width: 100%;
	margin: var(--epc-gap-sm) 0;
	border-collapse: collapse;
	border: 1px solid var(--epc-border-soft);
	color: var(--epc-body);
	font-size: 16px;
	letter-spacing: -0.01em;
	line-height: 1.5;
}

.brxe-post-content .wp-block-table table {
	margin: 0;
}

.brxe-post-content :is(th, td) {
	padding: 14px 16px;
	border: 1px solid var(--epc-border-soft);
	text-align: left;
	vertical-align: top;
}

.brxe-post-content th {
	background: var(--epc-table-head);
	color: var(--epc-heading);
	font-weight: 400;
	border-bottom-color: var(--epc-border);
}

.brxe-post-content tbody tr:nth-child(even) td {
	background: var(--epc-table-stripe);
}

.brxe-post-content caption {
	margin-bottom: 12px;
	color: var(--epc-muted);
	font-size: 12px;
	line-height: 1.25;
	text-align: left;
}

/* —— Media —— */
.brxe-post-content :is(figure, .wp-block-image, .wp-block-video, .wp-block-embed) {
	margin: var(--epc-gap) 0;
}

.brxe-post-content :is(img, video, iframe) {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
}

.brxe-post-content img {
	object-fit: cover;
}

.brxe-post-content figcaption,
.brxe-post-content .wp-element-caption {
	margin-top: 12px;
	color: var(--epc-muted);
	font-size: 12px;
	line-height: 1.25;
}

/* —— HR / code —— */
.brxe-post-content hr {
	margin: var(--epc-gap) 0;
	border: 0;
	border-top: 1px solid var(--epc-border);
}

.brxe-post-content :is(code, kbd, samp) {
	padding: 0.1em 0.35em;
	border: 1px solid var(--epc-border-soft);
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.04);
	color: var(--epc-lead);
	font-size: 0.92em;
}

.brxe-post-content pre {
	margin: var(--epc-gap-sm) 0;
	padding: 20px 24px;
	overflow-x: auto;
	border: 1px solid var(--epc-border-soft);
	background: rgba(0, 0, 0, 0.28);
	color: var(--epc-body);
	font-size: 14px;
	line-height: 1.5;
}

.brxe-post-content pre code {
	padding: 0;
	border: 0;
	background: transparent;
}

/* —— Responsive —— */
@media (max-width: 1199px) {
	.brxe-post-content {
		--epc-gap: 40px;
		--epc-gap-sm: 20px;
		font-size: 17px;
	}

	.brxe-post-content > p:first-of-type {
		font-size: 22px;
	}

	.brxe-post-content h1 {
		font-size: 34px;
	}

	.brxe-post-content h2 {
		font-size: 26px;
	}

	.brxe-post-content h3 {
		font-size: 22px;
	}

	.brxe-post-content h4 {
		font-size: 18px;
	}

	.brxe-post-content p,
	.brxe-post-content li {
		font-size: 17px;
	}

	.brxe-post-content blockquote {
		font-size: 22px;
		padding-left: 20px;
	}
}

@media (max-width: 575px) {
	.brxe-post-content {
		--epc-gap: 32px;
		--epc-gap-sm: 16px;
		--epc-gap-xs: 12px;
		font-size: 16px;
	}

	.brxe-post-content > p:first-of-type {
		font-size: 18px;
	}

	.brxe-post-content h1 {
		font-size: 28px;
	}

	.brxe-post-content h2 {
		font-size: 22px;
	}

	.brxe-post-content h3 {
		font-size: 20px;
	}

	.brxe-post-content h4 {
		font-size: 18px;
	}

	.brxe-post-content h5 {
		font-size: 16px;
	}

	.brxe-post-content p,
	.brxe-post-content li {
		font-size: 16px;
		line-height: 1.4;
	}

	.brxe-post-content blockquote {
		font-size: 18px;
		padding-left: 16px;
		border-left-width: 2px;
	}

	.brxe-post-content :is(th, td) {
		padding: 10px 12px;
		font-size: 14px;
	}
}
