/**
 * OBF Content Typography — tag-by-tag spec from the OBF Typography & Fonts
 * design system (obf_new_font.html).
 *
 * Families: Public Sans for everything structural (quotes included, per the
 * Signal-Detail screen design), JetBrains Mono for code.
 *
 * Scopes: article body, static pages, job detail, legal prose, contact.
 */

/* ---- Container ---------------------------------------------------------- */
.obf-article {
	font-family: var(--obf-sans);
	color: var(--obf-ink-body);
	background: var(--obf-surface);
	max-width: 640px;
	margin-inline: auto;
}

/* ---- Headings ------------------------------------------------------------ */
:is(.obf-article, .entry-content.empath__single-content, .obf-about-body, .obf-mandate-content, .obf-job-detail__body, .obf-prose, .obf-contact-block) h1 {
	font-family: var(--obf-sans) !important;
	font-weight: 800;
	font-size: 40px;
	line-height: 1.12;
	letter-spacing: -0.02em;
	color: var(--obf-ink);
	margin: 0 0 12px;
	text-transform: none;
}

:is(.obf-article, .entry-content.empath__single-content, .obf-about-body, .obf-mandate-content, .obf-job-detail__body, .obf-prose, .obf-contact-block) h2 {
	font-family: var(--obf-sans) !important;
	font-weight: 800;
	font-size: 32px;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--obf-ink);
	margin: 40px 0 14px;
	text-transform: none;
}

:is(.obf-article, .entry-content.empath__single-content, .obf-about-body, .obf-mandate-content, .obf-job-detail__body, .obf-prose, .obf-contact-block) h3 {
	font-family: var(--obf-sans) !important;
	font-weight: 800;
	font-size: 24px;
	line-height: 1.2;
	letter-spacing: -0.015em;
	color: var(--obf-ink);
	margin: 32px 0 12px;
	text-transform: none;
}

:is(.obf-article, .entry-content.empath__single-content, .obf-about-body, .obf-mandate-content, .obf-job-detail__body, .obf-prose, .obf-contact-block) h4 {
	font-family: var(--obf-sans) !important;
	font-weight: 700;
	font-size: 16px;
	line-height: 21px;
	letter-spacing: -0.08px;
	color: var(--obf-ink);
	margin: 24px 0 8px;
	text-transform: none;
}

:is(.obf-article, .entry-content.empath__single-content, .obf-about-body, .obf-mandate-content, .obf-job-detail__body, .obf-prose, .obf-contact-block) h5 {
	font-family: var(--obf-sans) !important;
	font-weight: 700;
	font-size: 13px;
	line-height: 17px;
	letter-spacing: 1.04px;
	text-transform: uppercase;
	color: var(--obf-gray-80);
	margin: 20px 0 8px;
}

:is(.obf-article, .entry-content.empath__single-content, .obf-about-body, .obf-mandate-content, .obf-job-detail__body, .obf-prose, .obf-contact-block) h6 {
	font-family: var(--obf-sans) !important;
	font-weight: 700;
	font-size: 11px;
	line-height: 11px;
	letter-spacing: 1.32px;
	text-transform: uppercase;
	color: var(--obf-accent);
	margin: 18px 0 6px;
}

/* First heading in a body shouldn't push down from the top. */
:is(.obf-article, .entry-content.empath__single-content, .obf-about-body, .obf-mandate-content, .obf-job-detail__body, .obf-prose, .obf-contact-block) > :is(h1, h2, h3, h4, h5, h6):first-child {
	margin-top: 0;
}

/* ---- Body copy ------------------------------------------------------------ */
:is(.obf-article, .entry-content.empath__single-content, .obf-about-body, .obf-mandate-content, .obf-job-detail__body, .obf-prose, .obf-contact-block) p {
	font-family: var(--obf-sans);
	font-weight: 300;
	font-size: 18px;
	line-height: 1.68;
	color: var(--obf-ink-body);
	margin: 0 0 22px;
}

:is(.obf-article, .entry-content.empath__single-content, .obf-about-body, .obf-mandate-content, .obf-job-detail__body, .obf-prose, .obf-contact-block) .lead,
:is(.obf-article, .entry-content.empath__single-content, .obf-about-body, .obf-mandate-content, .obf-job-detail__body, .obf-prose, .obf-contact-block) p.lead {
	font-weight: 300;
	font-size: 18px;
	line-height: 1.68;
	color: var(--obf-gray-80);
	margin: 0 0 24px;
}

:is(.obf-article, .entry-content.empath__single-content, .obf-about-body, .obf-mandate-content, .obf-job-detail__body, .obf-prose, .obf-contact-block) a {
	color: var(--obf-accent);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/*
 * Theme sets `a { display: inline-block }`, which wraps the whole link as one box.
 * Only override prose links — not tag pills, share buttons, or other chrome.
 */
:is(.obf-article, .entry-content.empath__single-content, .obf-about-body, .obf-mandate-content, .obf-job-detail__body, .obf-prose, .obf-contact-block)
:is(.obf-article-body, p, li, blockquote, td, th, figcaption, dd) a {
	display: inline !important;
}

:is(.obf-article, .entry-content.empath__single-content, .obf-about-body, .obf-mandate-content, .obf-job-detail__body, .obf-prose, .obf-contact-block) a:hover {
	color: var(--obf-accent-dark);
}

:is(.obf-article, .entry-content.empath__single-content, .obf-about-body, .obf-mandate-content, .obf-job-detail__body, .obf-prose, .obf-contact-block) strong {
	font-weight: 700;
	color: var(--obf-ink);
}

:is(.obf-article, .entry-content.empath__single-content, .obf-about-body, .obf-mandate-content, .obf-job-detail__body, .obf-prose, .obf-contact-block) em {
	font-style: italic;
}

/* ---- Lists ---------------------------------------------------------------- */
:is(.obf-article, .entry-content.empath__single-content, .obf-about-body, .obf-mandate-content, .obf-job-detail__body, .obf-prose, .obf-contact-block) :is(ul, ol) {
	font-family: var(--obf-sans);
	font-weight: 300;
	font-size: 18px;
	line-height: 1.68;
	color: var(--obf-ink-body);
	padding-left: 22px;
	margin: 0 0 22px;
}

:is(.obf-article, .entry-content.empath__single-content, .obf-about-body, .obf-mandate-content, .obf-job-detail__body, .obf-prose, .obf-contact-block) li {
	margin-bottom: 8px;
	font-size: 18px;
	line-height: 1.68;
	color: var(--obf-ink-body);
}

:is(.obf-article, .entry-content.empath__single-content, .obf-about-body, .obf-mandate-content, .obf-job-detail__body, .obf-prose, .obf-contact-block) li::marker {
	color: var(--obf-accent);
}

/* ---- Quotes ---------------------------------------------------------------
 * Featured Insight card — grid layout, accent bar, texture, glyph column.
 * Handles <blockquote><em>…</em></blockquote> and standard Gutenberg blocks.
 * High specificity + !important beats the forcast theme quote skin. */
html body :is(.obf-article, .entry-content.empath__single-content, .obf-about-body, .obf-mandate-content, .obf-job-detail__body, .obf-prose, .obf-contact-block) :is(
	blockquote:not(.wp-block-pullquote blockquote),
	.wp-block-quote,
	.wp-block-pullquote
) {
	display: block !important;
	position: relative;
	isolation: isolate;
	margin: 32px 0 !important;
	/* Left column for decorative “. */
	padding: 18px 22px 18px 3.85rem !important;
	border: 1px solid rgba(239, 103, 31, 0.14) !important;
	border-left: 5px solid var(--obf-accent) !important;
	border-radius: 10px !important;
	background: var(--obf-row-hover) !important;
	box-shadow:
		0 1px 2px rgba(20, 20, 20, 0.035),
		0 10px 28px rgba(239, 103, 31, 0.07) !important;
	text-align: left !important;
	overflow: visible;
}

/* Kill theme watermarks / cite dashes (not our decorative closing mark). */
html body :is(.obf-article, .entry-content.empath__single-content, .obf-about-body, .obf-mandate-content, .obf-job-detail__body, .obf-prose, .obf-contact-block) :is(
	blockquote:not(.wp-block-pullquote blockquote),
	.wp-block-quote,
	.wp-block-pullquote
) cite::after,
html body :is(.obf-article, .entry-content.empath__single-content, .obf-about-body, .obf-mandate-content, .obf-job-detail__body, .obf-prose, .obf-contact-block) .wp-block-pullquote blockquote::before,
html body :is(.obf-article, .entry-content.empath__single-content, .obf-about-body, .obf-mandate-content, .obf-job-detail__body, .obf-prose, .obf-contact-block) .wp-block-pullquote blockquote::after {
	content: none !important;
	background: none !important;
	display: none !important;
}

/* Opening glyph — large decorative “ in its own left column, flush with first line. */
html body :is(.obf-article, .entry-content.empath__single-content, .obf-about-body, .obf-mandate-content, .obf-job-detail__body, .obf-prose, .obf-contact-block) :is(
	blockquote:not(.wp-block-pullquote blockquote),
	.wp-block-quote,
	.wp-block-pullquote
)::before {
	content: "\201C" !important;
	position: absolute !important;
	left: 0.55rem;
	top: 0.1rem;
	display: block !important;
	width: 2.85rem;
	margin: 0 !important;
	padding: 0 !important;
	font-family: Georgia, "Times New Roman", Times, serif !important;
	font-style: normal !important;
	font-weight: 700;
	font-size: 4.5rem;
	line-height: 0.85;
	letter-spacing: -0.06em;
	color: var(--obf-accent);
	-webkit-text-fill-color: var(--obf-accent);
	text-shadow: 0 2px 12px rgba(239, 103, 31, 0.18);
	transform: none;
	pointer-events: none;
	z-index: 0;
	overflow: visible;
}

/* Theme/blockquote ::after watermarks off — no decorative closing mark. */
html body :is(.obf-article, .entry-content.empath__single-content, .obf-about-body, .obf-mandate-content, .obf-job-detail__body, .obf-prose, .obf-contact-block) :is(
	blockquote:not(.wp-block-pullquote blockquote),
	.wp-block-quote,
	.wp-block-pullquote
)::after {
	content: none !important;
	display: none !important;
}

/* Pullquote inner blockquote — transparent shell only. */
html body :is(.obf-article, .entry-content.empath__single-content, .obf-about-body, .obf-mandate-content, .obf-job-detail__body, .obf-prose, .obf-contact-block) .wp-block-pullquote blockquote {
	display: contents !important;
	border: none !important;
	background: none !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 !important;
	text-align: left !important;
}

/* Quote copy — p, em, or nested combinations. */
html body :is(.obf-article, .entry-content.empath__single-content, .obf-about-body, .obf-mandate-content, .obf-job-detail__body, .obf-prose, .obf-contact-block) :is(
	blockquote:not(.wp-block-pullquote blockquote),
	.wp-block-quote,
	.wp-block-pullquote
) > :is(p, em),
html body :is(.obf-article, .entry-content.empath__single-content, .obf-about-body, .obf-mandate-content, .obf-job-detail__body, .obf-prose, .obf-contact-block) :is(
	blockquote:not(.wp-block-pullquote blockquote),
	.wp-block-quote,
	.wp-block-pullquote
) > p > em {
	grid-column: auto;
	grid-row: auto;
	position: relative;
	z-index: 1;
	font-family: var(--obf-sans) !important;
	font-style: italic !important;
	font-weight: 300 !important;
	font-size: var(--obf-reader-body, 18px) !important;
	line-height: 1.68 !important;
	color: var(--obf-ink-body) !important;
	text-wrap: pretty;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	background: none !important;
}

html body :is(.obf-article, .entry-content.empath__single-content, .obf-about-body, .obf-mandate-content, .obf-job-detail__body, .obf-prose, .obf-contact-block) :is(
	blockquote:not(.wp-block-pullquote blockquote),
	.wp-block-quote,
	.wp-block-pullquote
) cite {
	position: relative;
	z-index: 1;
	display: block !important;
	margin: 18px 0 0 !important;
	padding: 14px 0 2px !important;
	border-top: 1px solid rgba(239, 103, 31, 0.16) !important;
	font-family: var(--obf-sans) !important;
	font-style: normal !important;
	font-weight: 700 !important;
	font-size: 10px !important;
	line-height: 1 !important;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--obf-accent-dark) !important;
}

/* ---- Figures / media ------------------------------------------------------ */
:is(.obf-article, .entry-content.empath__single-content, .obf-about-body, .obf-mandate-content, .obf-job-detail__body, .obf-prose, .obf-contact-block) figure {
	margin: 24px 0;
}

:is(.obf-article, .entry-content.empath__single-content, .obf-about-body, .obf-mandate-content, .obf-job-detail__body, .obf-prose, .obf-contact-block) figcaption {
	font-family: var(--obf-sans);
	font-weight: 400;
	font-size: 12px;
	line-height: 18px;
	color: var(--obf-gray-40);
	margin-top: 8px;
}

:is(.obf-article, .entry-content.empath__single-content, .obf-about-body, .obf-mandate-content, .obf-job-detail__body, .obf-prose, .obf-contact-block) hr {
	border: 0;
	border-top: 1px solid var(--obf-hairline);
	margin: 32px 0;
}

/* ---- Tables ---------------------------------------------------------------- */
:is(.obf-article, .entry-content.empath__single-content, .obf-about-body, .obf-mandate-content, .obf-job-detail__body, .obf-prose, .obf-contact-block) table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid var(--obf-hairline);
	border-radius: var(--obf-r-border, 6px);
	overflow: hidden;
	margin: 24px 0;
}

:is(.obf-article, .entry-content.empath__single-content, .obf-about-body, .obf-mandate-content, .obf-job-detail__body, .obf-prose, .obf-contact-block) th {
	text-align: left;
	padding: 12px 14px;
	background: var(--obf-panel);
	font-family: var(--obf-sans);
	font-weight: 700;
	font-size: 12px;
	line-height: 12px;
	letter-spacing: 0.72px;
	text-transform: uppercase;
	color: var(--obf-gray-80);
	border-bottom: 1px solid var(--obf-hairline);
}

:is(.obf-article, .entry-content.empath__single-content, .obf-about-body, .obf-mandate-content, .obf-job-detail__body, .obf-prose, .obf-contact-block) td {
	padding: 12px 14px;
	font-family: var(--obf-sans);
	font-weight: 400;
	font-size: 14px;
	line-height: 21px;
	color: var(--obf-ink-body);
	border-bottom: 1px solid var(--obf-hairline);
}

/* ---- Code ------------------------------------------------------------------ */
:is(.obf-article, .entry-content.empath__single-content, .obf-about-body, .obf-mandate-content, .obf-job-detail__body, .obf-prose, .obf-contact-block) code {
	font-family: var(--obf-mono);
	font-size: 14px;
	background: var(--obf-panel);
	border: 1px solid var(--obf-hairline);
	padding: 2px 6px;
	border-radius: var(--obf-r-border, 6px);
	color: var(--obf-accent-dark);
}

:is(.obf-article, .entry-content.empath__single-content, .obf-about-body, .obf-mandate-content, .obf-job-detail__body, .obf-prose, .obf-contact-block) pre {
	font-family: var(--obf-mono);
	font-size: 13px;
	line-height: 22px;
	background: var(--obf-panel);
	border: 1px solid var(--obf-hairline);
	border-radius: var(--obf-r-border, 6px);
	padding: 18px;
	overflow-x: auto;
	margin: 24px 0;
}

:is(.obf-article, .entry-content.empath__single-content, .obf-about-body, .obf-mandate-content, .obf-job-detail__body, .obf-prose, .obf-contact-block) pre code {
	background: none;
	border: none;
	padding: 0;
	color: inherit;
	font-size: inherit;
}

/* ---- Small / source labels -------------------------------------------------- */
:is(.obf-article, .entry-content.empath__single-content, .obf-about-body, .obf-mandate-content, .obf-job-detail__body, .obf-prose, .obf-contact-block) small,
:is(.obf-article, .entry-content.empath__single-content, .obf-about-body, .obf-mandate-content, .obf-job-detail__body, .obf-prose, .obf-contact-block) .source {
	font-family: var(--obf-sans);
	font-weight: 700;
	font-size: 10px;
	line-height: 10px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--obf-accent);
}
