/*
Theme Name: Lumen
Theme URI: https://pendaagency.com
Author: Penda Inspiration Agency Ltd
Description: A clean, minimal reading theme with a built-in "Listen" audio player (uploaded narration or automatic text-to-speech), styled comments and a social feed section.
Version: 3.2.1
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: lumen
*/

:root {
	--paper: #ffffff;
	--page: #ffffff;
	--sand: #f6f4ee;
	--ink: #14201b;
	--ink-soft: #5d6862;
	--rule: #e7e4dc;
	--wash: #f6f4ee;
	--green: #0f3d2e;
	--green-2: #165a43;
	--on-green: #f4f1e8;
	--gold: #e2a93b;
	--accent: #0f3d2e; /* overridden by Customizer */
	--accent-ink: #ffffff;
	--accent-text: #165a43;
	--chip1: #fbecc9; --chip1t: #7a5410;
	--chip2: #d8ebe2; --chip2t: #0f3d2e;
	--chip3: #f3e0d6; --chip3t: #8a3a1e;
	--chip4: #e3e8f2; --chip4t: #2f4370;
	--radius: 16px;
	--shadow: 0 1px 2px rgba(20,32,27,.05), 0 8px 24px rgba(15,61,46,.07);

	--font-read: "Literata", Georgia, "Times New Roman", serif;
	--font-ui: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;

	--measure: 40rem;
	--wide: 68rem;
	--gutter: clamp(1.25rem, 4vw, 2.5rem);
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--paper: #121a17;
		--page: #0d1411;
		--sand: #17211d;
		--ink: #e9ede9;
		--ink-soft: #a5b0aa;
		--rule: #26332d;
		--wash: #17211d;
		--accent-text: #9ed1b8;
		--chip1: #3d2f12; --chip1t: #f2cf86;
		--chip2: #163a2d; --chip2t: #a7dcc4;
		--chip3: #3f2419; --chip3t: #f0b9a0;
		--chip4: #1e2a40; --chip4t: #b8c8ec;
		--shadow: none;
	}
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-read);
	font-size: 1.125rem;
	line-height: 1.7;
	text-rendering: optimizeLegibility;
}

img, video, iframe { max-width: 100%; height: auto; }

a { color: var(--accent-text); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 1rem; left: 1rem; z-index: 100; clip: auto; width: auto; height: auto;
	padding: .6rem 1rem; background: var(--ink); color: var(--paper); font-family: var(--font-ui);
}

.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: var(--measure); }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap {
	display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
	min-height: 4.5rem; flex-wrap: wrap;
}
.site-title {
	font-family: var(--font-ui); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em;
	color: var(--ink); text-decoration: none;
}
.custom-logo { max-height: 2.5rem; width: auto; display: block; }

.nav-toggle {
	display: none; background: none; border: 1px solid var(--rule); color: var(--ink);
	font-family: var(--font-ui); font-size: .9rem; padding: .4rem .8rem; border-radius: 4px; cursor: pointer;
}
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.75rem; }
.primary-nav a {
	font-family: var(--font-ui); font-size: .95rem; color: var(--ink-soft); text-decoration: none;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a { color: var(--ink); }

@media (max-width: 720px) {
	.nav-toggle { display: inline-block; }
	.primary-nav { display: none; width: 100%; padding-bottom: 1rem; }
	.primary-nav.is-open { display: block; }
	.primary-nav ul { flex-direction: column; gap: .75rem; }
}

/* ---------- Home intro ---------- */
.intro { padding-top: clamp(3rem, 8vw, 6rem); padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.intro-text {
	font-family: var(--font-read); font-weight: 400; font-size: clamp(1.75rem, 4.2vw, 2.9rem);
	line-height: 1.22; letter-spacing: -0.015em; margin: 0; max-width: 22ch;
}

/* ---------- Post list ---------- */
.post-list { border-top: 1px solid var(--rule); }
.post-row {
	display: grid; grid-template-columns: 9rem 1fr; gap: 2rem;
	padding: 2.25rem 0; border-bottom: 1px solid var(--rule);
}
.post-row-meta { font-family: var(--font-ui); font-size: .85rem; color: var(--ink-soft); line-height: 1.5; }
.post-row-meta span { display: block; }
.post-row-title {
	font-family: var(--font-read); font-weight: 600; font-size: 1.5rem; line-height: 1.25;
	letter-spacing: -0.01em; margin: 0 0 .5rem;
}
.post-row-title a { color: var(--ink); text-decoration: none; }
.post-row-title a:hover { color: var(--accent-text); }
.post-row-excerpt { color: var(--ink-soft); margin: 0; max-width: 38rem; }
.post-row-excerpt p { margin: 0; }
.post-row-thumb { display: block; margin-bottom: 1.25rem; }
.post-row:not(.is-lead) .post-row-main:has(.post-row-thumb) {
	display: grid; grid-template-columns: minmax(0, 1fr) 13rem; grid-template-rows: auto 1fr; column-gap: 2rem; align-items: start;
}
.post-row:not(.is-lead) .post-row-main:has(.post-row-thumb) > * { grid-column: 1; }
.post-row:not(.is-lead) .post-row-main > .post-row-thumb { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
.post-row:not(.is-lead) .post-row-thumb img { aspect-ratio: 4 / 3; }
.post-row-thumb img { border-radius: 3px; display: block; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; max-width: 38rem; }
.has-audio-tag { color: var(--accent-text); }

.post-row.is-lead { grid-template-columns: 1fr; padding-top: 0; }
.post-row.is-lead .post-row-thumb img { max-width: none; aspect-ratio: 21 / 9; }
.post-row.is-lead .post-row-title { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.post-row.is-lead .post-row-meta span { display: inline; margin-right: 1.25rem; }

@media (max-width: 720px) {
	.post-row { grid-template-columns: 1fr; gap: .5rem; }
	.post-row:not(.is-lead) .post-row-main:has(.post-row-thumb) { grid-template-columns: minmax(0, 1fr) 6.5rem; column-gap: 1rem; }
	.post-row:not(.is-lead) .post-row-thumb img { aspect-ratio: 1; }
	.post-row-meta span { display: inline; margin-right: 1rem; }
}

.archive-head { padding-top: clamp(2.5rem, 6vw, 4rem); padding-bottom: 2rem; }
.archive-head h1 { font-family: var(--font-ui); font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; letter-spacing: -0.02em; }
.archive-head p { color: var(--ink-soft); margin: .5rem 0 0; }

.pagination { font-family: var(--font-ui); padding: 2.5rem 0 4rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.pagination .page-numbers {
	padding: .45rem .85rem; border: 1px solid var(--rule); border-radius: 4px; color: var(--ink); text-decoration: none; font-size: .9rem;
}
.pagination .current { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Single post ---------- */
.reading-progress {
	position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--accent); z-index: 50;
	transition: width .1s linear;
}
.admin-bar .reading-progress { top: 32px; }

.entry-head { padding-top: clamp(3rem, 7vw, 5rem); padding-bottom: 2rem; }
.entry-cats { font-family: var(--font-ui); font-size: .9rem; margin-bottom: 1rem; }
.entry-cats a { text-decoration: none; }
.entry-title {
	font-family: var(--font-read); font-weight: 600; font-size: clamp(2.1rem, 5vw, 3.4rem);
	line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 1.25rem;
}
.entry-meta { font-family: var(--font-ui); font-size: .9rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }

.entry-hero { margin: 0 0 2.5rem; }
.entry-hero img { width: 100%; display: block; border-radius: 3px; }
.entry-hero figcaption { font-family: var(--font-ui); font-size: .85rem; color: var(--ink-soft); margin-top: .6rem; }

.entry-content { font-size: 1.15rem; line-height: 1.78; }
.entry-content > * { max-width: var(--measure); margin-left: auto; margin-right: auto; }
.entry-content > .alignwide { max-width: var(--wide); }
.entry-content > .alignfull { max-width: none; }
.entry-content h2, .entry-content h3 {
	font-family: var(--font-ui); letter-spacing: -0.01em; line-height: 1.3; margin-top: 2.5em; margin-bottom: .6em;
}
.entry-content h2 { font-size: 1.55rem; }
.entry-content h3 { font-size: 1.25rem; }
.entry-content blockquote {
	margin: 2em auto; padding: 0 0 0 1.5rem; border-left: 3px solid var(--accent);
	font-size: 1.3rem; line-height: 1.5;
}
.entry-content figure { margin: 2.5em auto; }
.entry-content figcaption { font-family: var(--font-ui); font-size: .85rem; color: var(--ink-soft); }
.entry-content pre { background: var(--wash); padding: 1rem; overflow-x: auto; font-size: .9rem; border-radius: 4px; }
.entry-content table { display: block; overflow-x: auto; border-collapse: collapse; font-family: var(--font-ui); font-size: .95rem; }
.entry-content td, .entry-content th { border-bottom: 1px solid var(--rule); padding: .6rem .8rem; text-align: left; }

.entry-foot { max-width: var(--measure); margin: 3rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--rule); font-family: var(--font-ui); font-size: .9rem; }
.tag-list a {
	display: inline-block; margin: 0 .4rem .5rem 0; padding: .25rem .7rem; border-radius: 100px;
	background: var(--wash); color: var(--ink-soft); text-decoration: none;
}
.share-row { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1rem; color: var(--ink-soft); }
.share-row a, .share-row button {
	color: var(--ink); background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: .2em;
}

.post-nav { max-width: var(--measure); margin: 3rem auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; font-family: var(--font-ui); }
.post-nav a { text-decoration: none; color: var(--ink); display: block; }
.post-nav small { display: block; color: var(--ink-soft); font-size: .8rem; margin-bottom: .25rem; }
.post-nav .next { text-align: right; }

/* ---------- Listen player (the signature element) ---------- */
.listen {
	max-width: var(--measure); margin: 0 auto 2.5rem;
	display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem;
	padding: .9rem 1.1rem; border: 1px solid var(--rule); border-radius: 100px;
	font-family: var(--font-ui); font-size: .9rem;
}
.listen-play {
	width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0; cursor: pointer;
	background: var(--accent); color: var(--accent-ink); display: grid; place-items: center;
	transition: transform .15s ease;
}
.listen-play:active { transform: scale(.94); }
.listen-play svg { width: 1rem; height: 1rem; fill: currentColor; }
.listen-play .icon-pause { display: none; }
.listen.is-playing .icon-play { display: none; }
.listen.is-playing .icon-pause { display: block; }

.listen-body { min-width: 0; }
.listen-label { display: flex; justify-content: space-between; gap: 1rem; color: var(--ink); margin-bottom: .4rem; }
.listen-label .listen-time { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.listen-track {
	position: relative; height: 4px; background: var(--rule); border-radius: 4px; cursor: pointer;
}
.listen-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent); border-radius: 4px; }
.listen-speed {
	background: none; border: 1px solid var(--rule); color: var(--ink); border-radius: 100px;
	padding: .3rem .7rem; font: inherit; font-size: .8rem; cursor: pointer; font-variant-numeric: tabular-nums;
}
.listen[data-mode="tts"] .listen-track { cursor: default; }
.listen-note { display: block; color: var(--ink-soft); font-size: .78rem; margin-top: .35rem; }

@media (max-width: 480px) {
	.listen { border-radius: 14px; }
}

/* ---------- Comments ---------- */
.comments { max-width: var(--measure); margin: 4rem auto 0; padding-top: 2.5rem; border-top: 1px solid var(--rule); font-family: var(--font-ui); }
.comments-title { font-size: 1.35rem; margin: 0 0 1.5rem; letter-spacing: -0.01em; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { margin-left: clamp(1rem, 4vw, 2.5rem); border-left: 2px solid var(--rule); padding-left: 1.25rem; }
.comment-body { padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
.comment-head { display: flex; align-items: center; gap: .75rem; margin-bottom: .5rem; }
.comment-head img { border-radius: 50%; }
.comment-author-name { font-weight: 600; font-size: .95rem; }
.comment-date { color: var(--ink-soft); font-size: .8rem; display: block; }
.comment-date a { color: inherit; text-decoration: none; }
.comment-text { font-family: var(--font-read); font-size: 1.02rem; line-height: 1.65; }
.comment-text p { margin: .4rem 0; }
.comment-actions { font-size: .85rem; display: flex; gap: 1rem; }
.comment-awaiting { color: var(--ink-soft); font-size: .85rem; font-style: italic; }

.comment-respond { margin-top: 2.5rem; }
.comment-reply-title { font-size: 1.15rem; margin: 0 0 1rem; }
.comment-reply-title small { margin-left: .75rem; font-size: .85rem; font-weight: 400; }
.comment-form p { margin: 0 0 1rem; }
.comment-form label { display: block; font-size: .85rem; margin-bottom: .35rem; color: var(--ink-soft); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.search-form input[type="search"] {
	width: 100%; padding: .75rem .9rem; border: 1px solid var(--rule); border-radius: 6px;
	background: var(--paper); color: var(--ink); font: inherit; font-size: 1rem;
}
.comment-form textarea { min-height: 8rem; resize: vertical; }
.comment-form .comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { margin: 0; }
.button, .comment-form .submit, .search-form button {
	background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 6px;
	padding: .75rem 1.4rem; font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer;
}
.button:hover, .comment-form .submit:hover, .search-form button:hover { filter: brightness(1.08); }

/* ---------- Social feed ---------- */
.social-feed { background: var(--wash); padding: clamp(3rem, 6vw, 4.5rem) 0; margin-top: 4rem; }
.social-feed-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.social-feed-head h2 { font-family: var(--font-ui); font-size: 1.4rem; margin: 0; letter-spacing: -0.01em; }
.social-feed-body { overflow-x: auto; }
.social-feed-embeds { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.5rem; }

.social-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-family: var(--font-ui); font-size: .95rem; }
.social-links a { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding: 2.5rem 0 3rem; font-family: var(--font-ui); font-size: .9rem; color: var(--ink-soft); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
.footer-widgets { margin-bottom: 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 2rem; }
.footer-widgets .widget-title { font-size: 1rem; color: var(--ink); margin: 0 0 .75rem; }

/* ---------- Search & 404 ---------- */
.search-form { display: flex; gap: .5rem; max-width: 30rem; }
.empty-state { padding-top: 4rem; padding-bottom: 6rem; }
.empty-state h1 { font-family: var(--font-ui); font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.02em; margin: 0 0 1rem; }
.empty-state p { color: var(--ink-soft); max-width: 32rem; }

/* WordPress core classes */
.alignleft { float: left; margin: .3rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .3rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text { font-family: var(--font-ui); font-size: .85rem; color: var(--ink-soft); }
.sticky .post-row-title::after { content: " (pinned)"; font-family: var(--font-ui); font-size: .8rem; font-weight: 400; color: var(--ink-soft); }

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
	.site-header, .site-footer, .listen, .comments, .social-feed, .reading-progress, .post-nav, .share-row { display: none !important; }
}

/* =========================================================
   Long-form analysis: subtitles, contents, boxes, tables
   ========================================================= */
.entry-subtitle {
	font-family: var(--font-read); font-style: italic; font-size: clamp(1.2rem, 2.4vw, 1.5rem);
	line-height: 1.4; color: var(--ink-soft); margin: -0.25rem 0 1.5rem; max-width: 34ch;
}
.post-row-subtitle { font-style: italic; color: var(--ink-soft); margin: -.2rem 0 .6rem; font-size: 1.05rem; line-height: 1.45; }
.post-row-subtitle + .post-row-excerpt { display: none; }
.post-row.is-lead .post-row-subtitle + .post-row-excerpt { display: block; }

/* Contents */
.toc {
	max-width: var(--measure); margin: 0 auto 2.5rem; font-family: var(--font-ui);
	border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: .9rem 0;
}
.toc summary { cursor: pointer; font-weight: 600; font-size: .95rem; list-style-position: outside; }
.toc ol { margin: .9rem 0 .2rem; padding-left: 1.4rem; font-size: .95rem; line-height: 1.45; }
.toc li { margin: .4rem 0; padding-left: .25rem; }
.toc li::marker { color: var(--ink-soft); }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--accent-text); text-decoration: underline; }
.entry-content h2 { scroll-margin-top: 1.5rem; }

/* Opening material */
.entry-content .kicker { font-family: var(--font-ui); font-size: .95rem; color: var(--ink-soft); }
.entry-content .standfirst { font-size: 1.3rem; line-height: 1.55; color: var(--ink); }
.entry-content .abstract,
.entry-content .factcheck {
	font-family: var(--font-ui); font-size: .98rem; line-height: 1.6; color: var(--ink);
	border-left: 3px solid var(--accent); padding: .2rem 0 .2rem 1.25rem; margin: 2rem auto 2.5rem;
}
.entry-content .factcheck { color: var(--ink-soft); font-size: .9rem; }

/* Data boxes */
.databox-title { font-family: var(--font-ui); font-weight: 700; font-size: 1rem; line-height: 1.35; margin: 0 0 .75rem !important; color: var(--ink); }
.entry-content .databox {
	background: var(--wash); border-radius: 8px; padding: 1.4rem 1.5rem; margin: 2.25rem auto;
	font-family: var(--font-ui); font-size: .97rem; line-height: 1.6;
}
.entry-content .databox p { margin: .45rem 0; }
.entry-content .databox ul, .entry-content .databox ol { margin: .5rem 0; padding-left: 1.2rem; }
.entry-content .databox li { margin: .4rem 0; padding-left: .2rem; }
.entry-content .databox ul li::marker { color: var(--accent-text); }
.entry-content .databox strong { color: var(--ink); }

/* Pull quotes (replace the default blockquote look) */
.entry-content blockquote.pullquote {
	border-left: 0; padding: 0; margin: 2.75rem auto;
	font-family: var(--font-read); font-weight: 600; font-size: clamp(1.3rem, 2.6vw, 1.6rem); line-height: 1.38;
	letter-spacing: -0.01em; color: var(--ink);
}
.entry-content blockquote.pullquote p { margin: 0; padding-top: 1.1rem; border-top: 3px solid var(--accent); max-width: 30ch; }

/* Data tables */
.entry-content figure.data-table {
	max-width: var(--wide); margin: 2.5rem auto; overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.entry-content figure.data-table table {
	display: table; width: 100%; min-width: 40rem; border-collapse: collapse;
	font-family: var(--font-ui); font-size: .88rem; line-height: 1.45;
}
.entry-content figure.data-table th {
	text-align: left; vertical-align: bottom; font-weight: 600; color: var(--ink);
	border-bottom: 2px solid var(--ink); padding: .6rem .75rem; background: var(--paper);
}
.entry-content figure.data-table td { vertical-align: top; padding: .6rem .75rem; border-bottom: 1px solid var(--rule); }
.entry-content figure.data-table tr:nth-child(even) td { background: var(--wash); }
.entry-content figure.data-table td:first-child { font-weight: 600; color: var(--ink); }

/* Closing material */
.entry-content .author-note {
	font-family: var(--font-ui); font-size: .95rem; border-top: 1px solid var(--rule); padding-top: 1.5rem; margin-top: 3rem;
}
.entry-content .author-note p:last-child { color: var(--ink-soft); }
.entry-content .method-note,
.entry-content .sources-note { font-family: var(--font-ui); font-size: .85rem; line-height: 1.6; color: var(--ink-soft); }
.entry-content .method-note { margin-top: 3rem; border-top: 1px solid var(--rule); padding-top: 1.5rem; }

.listen-label .listen-time { white-space: nowrap; }
@media (max-width: 480px) {
	.listen[data-mode="tts"] .listen-time { display: none; }
	.entry-content .standfirst { font-size: 1.15rem; }
	.entry-content .databox { padding: 1.1rem 1.15rem; }
}
.post-row.is-lead .post-row-subtitle { font-size: clamp(1.15rem, 2vw, 1.35rem); margin: 0 0 1rem; }

/* =========================================================
   Author, Connect and image credits
   ========================================================= */
.entry-meta .byline { color: var(--ink); text-decoration: none; font-weight: 600; }
.entry-meta .byline:hover { color: var(--accent-text); text-decoration: underline; }
.entry-hero figcaption .credit { display: block; margin-top: .2rem; }
.entry-hero figcaption .credit a { color: inherit; }

.author-mark { border-radius: 50%; object-fit: cover; display: block; }

/* Connect buttons: LinkedIn leads */
.connect-text { font-family: var(--font-ui); color: var(--ink-soft); margin: 0 0 .9rem; max-width: 34rem; }
.connect-buttons { display: flex; flex-wrap: wrap; gap: .6rem; }
.connect-btn {
	display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-ui); font-weight: 600; font-size: .92rem;
	padding: .6rem 1rem; border-radius: 6px; text-decoration: none; line-height: 1.2;
}
.connect-btn svg { width: 1.05rem; height: 1.05rem; fill: currentColor; flex: none; }
.connect-btn--linkedin { background: #0a66c2; color: #fff; }
.connect-btn--linkedin:hover { background: #084f96; color: #fff; }
.connect-btn--x { border: 1px solid var(--rule); color: var(--ink); }
.connect-btn--x:hover { border-color: var(--ink); color: var(--ink); }
.connect--compact .connect-btn { padding: .45rem .8rem; font-size: .85rem; }

/* Author box under posts */
.author-box {
	max-width: var(--measure); margin: 3.5rem auto 0; padding: 1.75rem; border-radius: 10px; background: var(--wash);
	display: grid; grid-template-columns: 5rem 1fr; gap: 1.25rem; align-items: start; font-family: var(--font-ui);
}
.author-box-mark .author-mark { width: 5rem; height: 5rem; }
.author-box-name { font-weight: 700; font-size: 1.15rem; margin: 0; }
.author-box-name a { color: var(--ink); text-decoration: none; }
.author-box-role { color: var(--ink-soft); font-size: .9rem; margin: .1rem 0 .7rem; }
.author-box-bio { font-family: var(--font-read); font-size: 1rem; line-height: 1.6; margin: 0 0 1rem; }
.author-box .connect { margin-bottom: .8rem; }
.author-box-more { font-size: .9rem; }
@media (max-width: 520px) {
	.author-box { grid-template-columns: 1fr; text-align: left; }
	.author-box-mark .author-mark { width: 4rem; height: 4rem; }
}

/* About page */
.about-head {
	display: grid; grid-template-columns: minmax(10rem, 16rem) 1fr; gap: clamp(1.5rem, 5vw, 3.5rem); align-items: center;
	padding-top: clamp(3rem, 7vw, 5rem); padding-bottom: clamp(2rem, 5vw, 3rem);
}
.about-mark img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; display: block; }
.about-name { font-family: var(--font-read); font-weight: 600; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 .5rem; }
.about-role { font-family: var(--font-ui); font-size: 1.1rem; color: var(--ink-soft); margin: 0 0 1.5rem; }
.about-content { padding-bottom: 1rem; }
.about-content h2 { font-size: 1.35rem; }
.about-writing { padding-top: 2rem; }
.about-writing h2, .about-connect h2 { font-family: var(--font-ui); font-size: 1.4rem; letter-spacing: -0.01em; margin: 0 0 1.25rem; }
.about-connect { background: var(--wash); padding: clamp(2.5rem, 6vw, 4rem) 0; margin-top: 3rem; }
@media (max-width: 640px) {
	.about-head { grid-template-columns: 1fr; }
	.about-mark { max-width: 9rem; }
}

/* Footer connect */
.site-footer .connect-buttons { justify-content: flex-end; }

/* Image credits list */
.entry-content .image-credits {
	font-family: var(--font-ui); font-size: .85rem; color: var(--ink-soft); line-height: 1.55;
	border-top: 1px solid var(--rule); padding-top: 1.25rem; margin-top: 2.5rem;
}
.entry-content .image-credits ul { list-style: none; padding: 0; margin: .4rem 0 0; }
.entry-content .image-credits li { margin: .3rem 0; }
.entry-content .image-credits span { color: var(--ink); }
.entry-content .image-credits a { color: inherit; }
.entry-content figure.wp-caption, .entry-content figure.wp-block-image { margin: 2.5rem auto; }
.entry-content figure img { border-radius: 3px; }

/* =========================================================
   3.0 — Green, gold and white
   ========================================================= */
h1, h2, h3 { text-wrap: balance; }

/* Header: clean white */
.site-header { background: var(--paper); border-bottom: 1px solid var(--rule); }
.site-header .wrap { min-height: 4.75rem; }
.site-title { font-family: var(--font-read); font-weight: 600; font-size: 1.35rem; color: var(--green); }
.custom-logo { max-height: 3rem; }
.header-right { display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; }
.primary-nav a { color: var(--ink-soft); font-size: 1rem; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--green); }
.header-connect {
	display: inline-flex; align-items: center; gap: .5rem; background: var(--green); color: #fff; text-decoration: none;
	font-family: var(--font-ui); font-weight: 700; font-size: .9rem; padding: .55rem 1.05rem; border-radius: 999px;
}
.header-connect svg { width: 1rem; height: 1rem; fill: currentColor; }
.header-connect:hover { background: var(--green-2); color: #fff; }
@media (max-width: 720px) {
	.header-right { width: 100%; justify-content: space-between; padding-bottom: .9rem; gap: .75rem; }
	.site-header .wrap { padding-top: .75rem; }
	.primary-nav { order: 3; }
}
.reading-progress { background: var(--gold); }

/* Home hero: bold green with her portrait */
.home-hero { background: var(--green); color: var(--on-green); overflow: hidden; }
.home-hero-grid {
	display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
	padding-top: clamp(2.75rem, 6vw, 4.5rem); padding-bottom: clamp(2.75rem, 6vw, 4.5rem);
}
.kicker { font-family: var(--font-ui); font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin: 0 0 1.25rem; }
.home-hero-title {
	font-family: var(--font-read); font-weight: 600; font-size: clamp(2.3rem, 5vw, 3.9rem); line-height: 1.06;
	letter-spacing: -0.025em; margin: 0 0 1.35rem; color: #fff;
}
.home-hero-title em { font-style: normal; color: var(--gold); }
.home-hero-sub { font-family: var(--font-ui); font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.55; color: rgba(244,241,232,.85); margin: 0 0 2rem; max-width: 38ch; }
.home-hero-btns { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn { display: inline-flex; align-items: center; font-family: var(--font-ui); font-weight: 700; font-size: 1rem; padding: .8rem 1.4rem; border-radius: 999px; text-decoration: none; }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #ebb752; color: var(--ink); }
.btn--ghost { border: 1.5px solid rgba(244,241,232,.4); color: #fff; }
.btn--ghost:hover { border-color: #fff; color: #fff; }

.home-portrait { margin: 0; position: relative; justify-self: center; width: min(100%, 25rem); }
.home-portrait-img { display: block; }
.portrait {
	display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 200px 200px 24px 24px;
	background: var(--green-2); box-shadow: 0 30px 60px rgba(0,0,0,.25);
}
.portrait--initials { display: grid; place-items: center; font-family: var(--font-read); font-weight: 600; font-size: clamp(4rem, 9vw, 7rem); color: var(--gold); letter-spacing: -0.04em; }
.home-portrait-card {
	position: absolute; left: -1.5rem; right: 1.5rem; bottom: -1rem; background: var(--paper); color: var(--ink);
	border-radius: 16px; padding: 1rem 1.2rem; box-shadow: 0 16px 40px rgba(0,0,0,.18); font-family: var(--font-ui);
	display: grid; gap: .15rem;
}
.home-portrait-name { font-family: var(--font-read); font-weight: 600; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.home-portrait-role { color: var(--ink-soft); font-size: .88rem; margin-bottom: .5rem; }
.home-portrait-card .connect-btn { padding: .4rem .75rem; font-size: .82rem; }
@media (max-width: 860px) {
	.home-hero-grid { grid-template-columns: 1fr; }
	.home-portrait { width: min(80%, 20rem); margin-bottom: 1rem; }
	.home-portrait-card { left: -1rem; right: -1rem; }
}

/* Stats strip */
.stats-strip { background: var(--paper); border-bottom: 1px solid var(--rule); }
.stats-strip-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats-strip .stat { padding: 2rem 1.75rem; border-left: 1px solid var(--rule); font-family: var(--font-ui); }
.stats-strip .stat:first-child { border-left: 0; padding-left: 0; }
.stats-strip .stat b { display: block; font-family: var(--font-read); font-weight: 600; font-size: clamp(2rem, 3.4vw, 2.7rem); line-height: 1; letter-spacing: -0.02em; color: var(--green); }
.stats-strip .stat span { display: block; margin-top: .5rem; color: var(--ink-soft); font-size: .95rem; line-height: 1.4; max-width: 26ch; }
@media (max-width: 700px) {
	.stats-strip-grid { grid-template-columns: 1fr; }
	.stats-strip .stat { border-left: 0; border-top: 1px solid var(--rule); padding: 1.25rem 0; }
	.stats-strip .stat:first-child { border-top: 0; }
}

/* Latest analysis: clean card grid */
.home-main { padding-top: clamp(2.75rem, 5vw, 4rem); padding-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.5rem; }
.section-head h2 { font-family: var(--font-read); font-weight: 600; font-size: clamp(1.6rem, 2.6vw, 2rem); letter-spacing: -0.015em; margin: 0; }
.section-head--more { margin-top: 3.5rem; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem; }
.card { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .2s ease; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card.no-img { border-top: 4px solid var(--green); }
.card-media { display: block; }
.card-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-body { padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.chip { align-self: flex-start; display: inline-block; font-family: var(--font-ui); font-size: .78rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px; text-decoration: none; margin-bottom: .85rem; }
.chip-1 { background: var(--chip1); color: var(--chip1t); }
.chip-2 { background: var(--chip2); color: var(--chip2t); }
.chip-3 { background: var(--chip3); color: var(--chip3t); }
.chip-4 { background: var(--chip4); color: var(--chip4t); }
.card-title { font-family: var(--font-read); font-weight: 600; font-size: clamp(1.3rem, 2vw, 1.55rem); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 .5rem; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--green-2); }
.card-sub { font-family: var(--font-read); font-style: italic; color: var(--ink-soft); font-size: 1.02rem; line-height: 1.45; margin: 0 0 1rem; }
.card-meta { margin-top: auto; font-family: var(--font-ui); font-size: .85rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
@media (max-width: 760px) { .card-grid { grid-template-columns: 1fr; } }

/* Coming up */
.coming-up { background: var(--sand); padding: clamp(3rem, 6vw, 4.5rem) 0; }
.coming-up-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.coming-up-art img { width: 100%; max-width: 20rem; height: auto; display: block; border-radius: var(--radius); }
.coming-up-intro h2 { font-family: var(--font-read); font-weight: 600; font-size: clamp(1.6rem, 2.6vw, 2rem); letter-spacing: -0.015em; margin: 1.25rem 0 .6rem; }
.coming-up-intro p { font-family: var(--font-ui); color: var(--ink-soft); margin: 0; max-width: 36ch; }
.coming-up-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.coming-up-list li {
	background: var(--paper); border-radius: 14px; padding: 1.1rem 1.3rem; border: 1px solid var(--rule);
	display: grid; grid-template-columns: 4.5rem 1fr auto; gap: .2rem 1rem; align-items: center; font-family: var(--font-ui);
}
.coming-up-part { grid-row: span 2; font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); color: #a87412; }
.coming-up-title { font-family: var(--font-read); font-weight: 600; font-size: 1.12rem; line-height: 1.3; color: var(--ink); }
.coming-up-tease { grid-column: 2; color: var(--ink-soft); font-size: .9rem; }
.coming-up-soon { grid-column: 3; grid-row: 1 / span 2; font-size: .75rem; font-weight: 700; color: var(--green); background: var(--chip2); padding: .3rem .65rem; border-radius: 999px; white-space: nowrap; }
@media (max-width: 860px) { .coming-up-grid { grid-template-columns: 1fr; } .coming-up-art img { max-width: 14rem; } }
@media (max-width: 520px) {
	.coming-up-list li { grid-template-columns: 1fr; }
	.coming-up-part, .coming-up-tease, .coming-up-soon { grid-column: 1; grid-row: auto; }
	.coming-up-soon { justify-self: start; margin-top: .4rem; }
}

/* Archive / search bands */
.page-band { background: var(--green); color: #fff; padding: clamp(2.5rem, 6vw, 3.5rem) 0; }
.page-band h1 { font-family: var(--font-read); font-weight: 600; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.02em; margin: 0; color: #fff; }
.page-band .archive-desc { color: rgba(244,241,232,.8); margin-top: .6rem; }

/* Article header: light sand band, green accents */
.post-band { background: var(--sand); border-bottom: 1px solid var(--rule); }
.post-band .entry-head { max-width: 46rem; margin: 0 auto; padding-top: clamp(2.5rem, 6vw, 4rem); padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.post-band .chip { margin-bottom: 1.1rem; }
.entry-meta .byline { color: var(--green); }
.entry-hero { margin-top: -2rem; position: relative; }
.entry-hero img { border-radius: var(--radius); box-shadow: var(--shadow); }
.single .post-band + .wrap { padding-top: 2.5rem; }
.single .post-band + .wrap:has(> .entry-hero) { padding-top: 0; }
.page .post-band + .wrap { padding-top: 2.5rem; }
.entry-content h2 { font-family: var(--font-read); font-weight: 600; letter-spacing: -0.015em; color: var(--green); }

/* Article components */
.listen-play { background: var(--green); }
.listen { border-color: var(--rule); }
.listen-fill { background: var(--gold); }
.toc { border-color: var(--rule); }
.entry-content .databox { background: var(--sand); border-left: 4px solid var(--gold); border-radius: 12px; }
.entry-content .abstract, .entry-content .factcheck { border-left-color: var(--green); }
.entry-content blockquote.pullquote p { border-top-color: var(--gold); color: var(--green); }
.entry-content figure.data-table th { background: var(--green); color: #fff; border-bottom: 0; }
.entry-content figure.data-table tr:nth-child(even) td { background: var(--sand); }
.entry-content figure img { border-radius: 12px; }
.author-box { background: var(--sand); border-left: 4px solid var(--green); }
.author-box .author-mark { width: 5rem; height: 5rem; }

/* Disclaimer */
.disclaimer { font-family: var(--font-ui); font-weight: 600; }
.disclaimer--post {
	max-width: var(--measure); margin: 3rem auto 0; padding: 1rem 1.25rem; border-radius: 12px;
	background: var(--chip1); color: var(--chip1t); font-size: .95rem; line-height: 1.5;
}

/* About */
.about-band { background: var(--green); color: var(--on-green); }
.about-band .about-name { color: #fff; }
.about-band .about-role { color: rgba(244,241,232,.78); }
.about-band .connect-text { color: rgba(244,241,232,.85); }
.about-band .connect-btn--x { border-color: rgba(255,255,255,.4); color: #fff; }
.about-band .about-mark img { border: 4px solid rgba(255,255,255,.18); background: #fff; }
.about-connect { background: var(--sand); }

/* Footer */
.site-footer { background: var(--green); color: rgba(244,241,232,.75); border-top: 0; padding: 3rem 0 2.5rem; }
.site-footer .wrap { display: flex; }
.footer-top { justify-content: space-between; align-items: flex-start; gap: 2rem; flex-wrap: wrap; padding-bottom: 2rem; border-bottom: 1px solid rgba(244,241,232,.15); }
.footer-name { font-family: var(--font-read); font-weight: 600; font-size: 1.5rem; color: #fff; text-decoration: none; }
.footer-tagline { margin: .4rem 0 0; max-width: 34ch; }
.footer-label { margin: 0 0 .6rem; color: var(--gold); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.site-footer .connect-buttons { justify-content: flex-start; }
.site-footer .connect-btn--x { border-color: rgba(255,255,255,.35); color: #fff; }
.footer-bottom { flex-direction: column; align-items: flex-start !important; gap: .6rem; padding-top: 1.5rem; }
.disclaimer--footer { margin: 0; color: #fff; font-size: .92rem; max-width: 60ch; }
.footer-note { margin: 0; font-size: .85rem; }
.footer-menu { list-style: none; display: flex; gap: 1.25rem; padding: 0; margin: 0; }
.footer-menu a { color: rgba(244,241,232,.85); }
.social-feed { background: var(--paper); }
.entry-content .kicker { margin: 0 auto 1rem; text-transform: none; letter-spacing: 0; color: var(--ink-soft); font-size: 1rem; font-weight: 600; }
.coming-up-intro h2 { line-height: 1.2; }

/* =========================================================
   3.1: article numbers, stronger subtitles, disclaimer
   ========================================================= */
.article-no {
	display: inline-block; font-family: var(--font-ui); font-weight: 800; font-size: .78rem;
	letter-spacing: .08em; text-transform: uppercase; color: var(--green-2);
	margin: 0 .75rem .85rem 0; vertical-align: middle;
}
.entry-cats .article-no, .card-tags .article-no { padding: .3rem 0; }
.card-tags { display: flex; flex-wrap: wrap; align-items: center; }
.card-tags .chip { margin-bottom: .85rem; }
.post-row-meta .article-no { display: block; margin: 0 0 .35rem; }

/* Subtitle: as prominent as the title, one step lighter (title 600, subtitle 500) */
.entry-subtitle {
	font-style: normal; font-weight: 500; color: var(--ink);
	font-size: clamp(1.35rem, 2.8vw, 1.75rem); line-height: 1.35; max-width: 40ch;
}
.card-sub, .post-row-subtitle { font-style: normal; font-weight: 500; color: var(--ink); }
.card-sub { font-size: 1.08rem; }

/* Disclaimer inside the article, just before the sources */
.entry-content .disclaimer--post { margin: 2.5rem auto 1.5rem; }
.entry-content .disclaimer--post strong { color: inherit; }

/* =========================================================
   3.2: visuals (takeaways, stat cards, charts), photos,
   share call to action, comments call to action
   ========================================================= */

/* Section headings get a short gold rule so long articles scan in parts */
.single .entry-content h2 { position: relative; padding-top: 1.1rem; margin-top: 3.25rem; }
.single .entry-content h2::before { content: ""; position: absolute; top: 0; left: 0; width: 3rem; height: 4px; border-radius: 2px; background: var(--gold); }

/* In brief */
.entry-content .takeaways {
	background: var(--green); color: var(--on-green); border-radius: var(--radius);
	padding: 1.5rem 1.6rem 1.3rem; margin: 2rem auto 2.5rem; font-family: var(--font-ui);
}
.takeaways-title { margin: 0 0 .75rem; color: var(--gold); font-weight: 800; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.entry-content .takeaways ul { margin: 0; padding: 0; list-style: none; counter-reset: tk; }
.entry-content .takeaways li { position: relative; padding: .55rem 0 .55rem 2.4rem; font-size: 1.02rem; line-height: 1.5; border-top: 1px solid rgba(244,241,232,.14); }
.entry-content .takeaways li:first-child { border-top: 0; }
.entry-content .takeaways li::before {
	counter-increment: tk; content: counter(tk); position: absolute; left: 0; top: .55rem;
	width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--gold); color: var(--green);
	font-weight: 800; font-size: .85rem; display: grid; place-items: center;
}

/* Stat cards */
.entry-content .stat-cards {
	max-width: var(--wide); display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
	gap: 1rem; margin: 2.5rem auto 1rem; font-family: var(--font-ui);
}
.stat-card { background: var(--sand); border-radius: 14px; padding: 1.25rem 1.25rem 1.1rem; border-top: 4px solid var(--green-2); }
.stat-card.is-hi { border-top-color: var(--gold); background: var(--chip1); }
.stat-card b { display: block; font-family: var(--font-read); font-weight: 600; font-size: clamp(1.6rem, 3.4vw, 2.1rem); line-height: 1.1; color: var(--green); letter-spacing: -0.02em; }
.stat-card.is-hi b { color: var(--chip1t); }
.stat-card span { display: block; margin-top: .45rem; font-size: .9rem; line-height: 1.4; color: var(--ink-soft); }
.viz-source--stats { max-width: var(--wide); margin: 0 auto 2.5rem; }

/* Chart frame */
.entry-content .viz {
	max-width: var(--wide); margin: 2.75rem auto; padding: clamp(1.25rem, 3vw, 2rem);
	background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
	box-shadow: var(--shadow); font-family: var(--font-ui);
}
.entry-content .viz .viz-title { font-family: var(--font-read); font-weight: 600; font-size: clamp(1.15rem, 2.2vw, 1.4rem); line-height: 1.3; color: var(--ink); margin: 0 0 1.25rem; }
.viz-note { font-size: .92rem; color: var(--ink); margin: 1.1rem 0 0; line-height: 1.5; }
.viz-source { font-size: .8rem; color: var(--ink-soft); margin: .6rem 0 0; }

/* Horizontal bars */
.bars { display: grid; gap: .55rem; }
.bar { display: grid; grid-template-columns: minmax(6.5rem, 11rem) 1fr 7.5rem; align-items: center; gap: .85rem; font-size: .92rem; }
.bar-label { color: var(--ink); line-height: 1.25; }
.bar-track { height: 1.35rem; background: var(--wash); border-radius: 6px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--green-2); border-radius: 6px; opacity: .55; }
.bar-value { font-variant-numeric: tabular-nums; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar.is-hi .bar-label, .bar.is-hi .bar-value { font-weight: 800; color: var(--ink); }
.bar.is-hi .bar-fill { background: var(--gold); opacity: 1; }
.viz--versus .bar { grid-template-columns: minmax(7rem, 12rem) 1fr; grid-template-areas: "label value" "track track"; row-gap: .4rem; }
.viz--versus .bar-label { grid-area: label; font-weight: 600; }
.viz--versus .bar-value { grid-area: value; text-align: right; font-family: var(--font-read); font-weight: 600; font-size: 1.15rem; color: var(--ink); }
.viz--versus .bar-track { grid-area: track; height: 2.4rem; border-radius: 8px; }
.viz--versus .bar-fill { opacity: 1; background: var(--green-2); border-radius: 8px; }
.viz--versus .bar.is-hi .bar-fill { background: var(--gold); }
.viz--versus .bars { gap: 1.1rem; }

/* Probability ranges */
.ranges { display: grid; gap: .6rem; }
.ranges-scale { display: flex; justify-content: space-between; margin-left: calc(min(14rem, 40%) + .85rem); margin-right: calc(4.5rem + .85rem); font-size: .75rem; color: var(--ink-soft); }
.range { display: grid; grid-template-columns: minmax(7rem, 14rem) 1fr 4.5rem; align-items: center; gap: .85rem; font-size: .9rem; }
.range-label { line-height: 1.25; }
.range-track { position: relative; height: 1.1rem; border-radius: 999px; background: repeating-linear-gradient(90deg, var(--wash) 0 calc(50% - 1px), var(--rule) calc(50% - 1px) 50%); }
.range-fill { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: var(--green-2); }
.range.is-hi .range-fill { background: var(--gold); }
.range-value { font-variant-numeric: tabular-nums; color: var(--ink-soft); text-align: right; white-space: nowrap; }
.range.is-hi .range-label, .range.is-hi .range-value { font-weight: 800; color: var(--ink); }

@media (max-width: 600px) {
	.bar, .range { grid-template-columns: 1fr auto; grid-template-areas: "label value" "track track"; row-gap: .3rem; }
	.bar-label, .range-label { grid-area: label; }
	.bar-value, .range-value { grid-area: value; }
	.bar-track, .range-track { grid-area: track; }
	.ranges-scale { margin: 0; }
}

/* Photos inside articles: a little wider than the text */
.single .entry-content > figure.wp-caption,
.single .entry-content > figure.wp-block-image { max-width: min(var(--wide), 100%); }
.single .entry-content figure.wp-block-image img,
.single .entry-content figure.wp-caption img { width: 100%; height: auto; }
.single .entry-content figure figcaption { margin-top: .6rem; }

/* Mini share bar under the heading */
.share-mini { display: flex; align-items: center; gap: .5rem; margin-top: 1.25rem; font-family: var(--font-ui); font-size: .85rem; color: var(--ink-soft); }
.share-mini > span { margin-right: .25rem; }
.share-mini a { display: inline-flex; align-items: center; justify-content: center; gap: .3rem; min-width: 2.25rem; height: 2.25rem; padding: 0 .55rem; border-radius: 999px; border: 1px solid var(--rule); color: var(--ink); text-decoration: none; background: var(--paper); }
.share-mini a:hover { border-color: var(--green-2); color: var(--green-2); }
.share-mini svg { width: 1rem; height: 1rem; fill: currentColor; }
.share-mini-comments { margin-left: auto; }

/* Share call to action */
.share-cta {
	max-width: var(--measure); margin: 3rem auto 0; padding: clamp(1.5rem, 4vw, 2.25rem);
	border-radius: var(--radius); background: var(--sand); border: 1px solid var(--rule); font-family: var(--font-ui);
}
.share-cta-kicker { margin: 0 0 .4rem; color: var(--green-2); font-weight: 800; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.share-cta h2 { font-family: var(--font-read); font-weight: 600; font-size: clamp(1.3rem, 2.6vw, 1.6rem); line-height: 1.25; margin: 0 0 .6rem; color: var(--ink); }
.share-cta-text p:last-child { margin: 0 0 1.25rem; color: var(--ink-soft); font-size: .95rem; }
.share-cta-buttons { display: flex; flex-wrap: wrap; gap: .6rem; }
.share-btn {
	display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.05rem; border-radius: 999px;
	font: 600 .92rem/1 var(--font-ui); text-decoration: none; cursor: pointer; border: 1px solid transparent;
	color: #fff; transition: transform .15s ease, filter .15s ease;
}
.share-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.share-btn svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }
.share-btn--linkedin { background: #0a66c2; }
.share-btn--x { background: #111; }
.share-btn--whatsapp { background: #1f8f4e; }
.share-btn--facebook { background: #1877f2; }
.share-btn--copy { background: var(--paper); color: var(--ink); border-color: var(--rule); }
.share-cta-comment { display: inline-flex; gap: .4rem; margin-top: 1.25rem; font-weight: 700; color: var(--green-2); text-decoration: none; }
.share-cta-comment:hover { text-decoration: underline; }

/* Comments call to action */
.comments-cta { background: var(--green); color: var(--on-green); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.25rem); margin-bottom: 2rem; }
.comments-cta-kicker { margin: 0 0 .5rem; color: var(--gold); font-weight: 800; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.comments-cta .comments-cta-q { font-family: var(--font-read); font-weight: 600; font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.3; color: #fff; margin: 0 0 .75rem; }
.comments-cta-rules { margin: 0; font-size: .9rem; color: rgba(244,241,232,.82); line-height: 1.5; }
.comment-form textarea::placeholder { color: var(--ink-soft); opacity: .8; }
.comment-form .submit { padding: .85rem 1.6rem; border-radius: 999px; font-weight: 700; }
.viz--versus .bar-value { overflow: visible; white-space: normal; }
@media (max-width: 600px) {
	.viz--versus .bar { grid-template-columns: 1fr; grid-template-areas: "label" "value" "track"; }
	.viz--versus .bar-value { text-align: left; }
	.entry-content .stat-cards { grid-template-columns: 1fr 1fr; }
}
.comment-notes { font-size: .88rem; color: var(--ink-soft); }

/* 3.2.1: simpler share and comment headings */
.share-cta { padding: 1.5rem 1.75rem; }
.share-cta h2 { font-family: var(--font-ui); font-size: 1.1rem; font-weight: 700; margin: 0 0 1rem; }
.comment-reply-title { font-family: var(--font-read); font-weight: 600; font-size: 1.45rem; }
