main.container { max-width: 1280px; }
.post-layout, .post-layout * { font-family: 'Montserrat', 'Jost', system-ui, Arial, sans-serif; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2.5rem; align-items: start; color: #222526; }
.post-layout a { text-decoration: none; }

/* headline + byline */
.post-title { font-size: clamp(2rem, 3.6vw, 3.3rem); line-height: 1.12; font-weight: 700; margin: 0 0 1.1rem; color: #222526; }
.post-by { margin: 0 0 0.25rem; font-size: 1.05rem; }
.post-by strong { text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.post-by .sep { display: inline-block; width: 1px; height: 0.95em; background: #6e7070; margin: 0 0.55rem; vertical-align: middle; }
.post-date { margin: 0 0 1.25rem; color: #6e7070; font-size: 1rem; font-weight: 400; }

/* hero */
.post-hero { margin: 0 0 1rem; }
.post-hero img { display: block; width: 100%; height: auto; }
.post-hero figcaption { font-size: 0.85rem; color: #6e7070; margin-top: 0.4rem; }

/* share row */
.post-share { display: flex; align-items: center; gap: 0.75rem; padding: 0.9rem 0; margin-bottom: 1.25rem; border-top: 1px solid #d2d6d7; border-bottom: 1px solid #d2d6d7; }
.sh { display: inline-flex; width: 54px; height: 54px; align-items: center; justify-content: center; border-radius: 6px; }
.sh-fb { background: #0072ee; }
.sh-x { background: #000; }
.sh-wa { background: #128C7E; }
.sh:hover { opacity: 0.85; }

/* body */
.article-body { font-size: 1.22rem; line-height: 1.5; font-weight: 400; }
.article-body p { margin: 0 0 1.1rem; }
.article-body > p:first-of-type { font-weight: 700; }
.article-body a { color: #0072ee; text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover { color: var(--brand); }
.article-body h2, .article-body h3, .article-body h4 { font-weight: 800; line-height: 1.2; margin: 1.8rem 0 0.7rem; color: #0a0a0a; }
.article-body img { max-width: 100%; height: auto; }
.article-body figure { margin: 1.4rem 0; }
.article-body figcaption { font-size: 0.85rem; color: #6e7070; margin-top: 0.4rem; text-align: left; }
.article-body blockquote { margin: 1.4rem 0; padding: 0.4rem 0 0.4rem 1.1rem; border-left: 4px solid var(--brand); font-weight: 500; }
.article-body iframe { display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; margin: 1.4rem 0; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: 1rem; }
.article-body th { background: #0a0a0a; color: #fff; text-align: left; }
.article-body th, .article-body td { border: 1px solid #d2d6d7; padding: 0.55rem 0.75rem; }
.article-body tr:nth-child(even) td { background: #f3f6f7; }

/* newsletter box */
.post-news { background: #0a0a0a; color: #fff; border-radius: 10px; padding: 1.1rem 1.4rem 1.2rem; margin: 1.5rem 0; }
.post-news h3 { margin: 0 0 0.8rem; font-size: 1.5rem; font-weight: 700; color: #fff; }
.post-news h3 span { color: #ff3b40; }
.post-news form { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.post-news input[type=email] { flex: 1 1 240px; padding: 0.9rem 1rem; border: 0; border-radius: 6px; font-size: 1.05rem; background: #f3f6f7; }
.post-news button { background: #0A7A3A; color: #fff; border: 0; border-radius: 6px; padding: 0.9rem 2.2rem; font-size: 1.05rem; font-weight: 700; cursor: pointer; }
.post-news button:hover { background: #086A32; }
.post-news p { margin: 0.8rem 0 0; font-size: 0.85rem; font-weight: 600; }
.post-news p a { color: #fff; text-decoration: underline; }
.post-news .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* read more blocks */
.read-more { background: #E6EEE9; padding: 1.4rem; margin: 1.8rem 0; }
.read-more h3 { margin: 0 0 1rem; font-size: 1.6rem; font-weight: 800; text-transform: uppercase; color: #0a0a0a; }
.rm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.rm-card { display: flex; flex-direction: column; background: #f6f1e4; border: 1px solid var(--brand); }
.rm-img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #0a0a0a; }
.rm-img img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; }
.rm-ph { display: block; width: 100%; height: 100%; min-height: 80px; background: linear-gradient(135deg, #064E27, #064E27 60%, #0A7A3A); }
.rm-title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; padding: 0.9rem; font-size: 1.12rem; font-weight: 800; line-height: 1.3; color: #0a0a0a; }
.rm-card:hover .rm-title { color: var(--brand); }

/* topics */
.post-topics { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin: 1.6rem 0 2rem; }
.post-topics strong { font-size: 1.1rem; font-weight: 800; margin-right: 0.3rem; }
.post-topics a { border: 1px solid #6e7070; padding: 0.45rem 0.9rem; font-size: 0.95rem; color: #222526; }
.post-topics a:hover { background: #0a0a0a; color: #fff; border-color: #0a0a0a; }

/* you might like */
.might-like h2 { font-size: 1.6rem; font-weight: 800; text-transform: uppercase; margin: 0 0 1rem; }
.ml-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.ml-card { display: block; }
.ml-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #0a0a0a; margin-bottom: 0.7rem; }
.ml-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ml-title { display: block; font-size: 1.2rem; font-weight: 800; line-height: 1.3; color: #0a0a0a; }
.ml-card:hover .ml-title { color: var(--brand); }

/* recommended sidebar */
.post-side { position: sticky; top: 1rem; }
.rec { background: #0a0a0a; color: #fff; padding: 0.9rem 0.9rem 0.4rem; }
.rec h3 { margin: 0 0 0.9rem; font-size: 1.05rem; font-weight: 700; text-transform: uppercase; color: #fff; }
.rec-item { display: grid; grid-template-columns: 42% 1fr; gap: 0.8rem; padding: 0.9rem 0; border-top: 1px solid rgba(255,255,255,.7); color: #fff; }
.rec-img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #1a1a1a; }
.rec-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rec-title { font-size: 0.98rem; font-weight: 700; line-height: 1.35; color: #fff; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.rec-item:hover .rec-title { color: #8FE3AF; }

@media (max-width: 1000px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-side { position: static; }
}
@media (max-width: 600px) {
  .rm-grid, .ml-grid { grid-template-columns: 1fr; }
  .article-body { font-size: 1.1rem; }
  .post-news button { width: 100%; }
}
/* single post page: 80% of the window width */
main.container { width: 80%; max-width: none; margin-left: auto; margin-right: auto; }
@media (max-width: 1000px) { main.container { width: 92%; } }

/* article page uses Varela too */
.post-layout, .post-layout * { font-family: 'Varela', system-ui, 'Segoe UI', Arial, sans-serif; }
@media (max-width: 1000px) { main.container { padding-top: 2rem; } }

/* capitalise every post title on the single post page */
.post-title, .rm-title, .rec-title, .ml-title { text-transform: capitalize; }

/* ---- scale down the single post page ---- */
.post-layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 2rem; }

/* headline + byline */
.post-title { font-size: clamp(1.5rem, 2.3vw, 2.2rem); line-height: 1.2; margin-bottom: 0.8rem; }
.post-by { font-size: 0.9rem; }
.post-date { font-size: 0.85rem; margin-bottom: 1rem; }
.post-hero figcaption { font-size: 0.78rem; }

/* share row */
.post-share { padding: 0.6rem 0; margin-bottom: 1rem; gap: 0.5rem; }
.sh { width: 38px; height: 38px; border-radius: 5px; }
.sh svg { width: 19px; height: 19px; }

/* body text */
.article-body { font-size: 1rem; line-height: 1.6; }
.article-body p { margin-bottom: 0.95rem; }
.article-body h2 { font-size: 1.35rem; }
.article-body h3 { font-size: 1.15rem; }
.article-body h4 { font-size: 1rem; }
.article-body table { font-size: 0.9rem; }
.article-body figcaption { font-size: 0.78rem; }

/* newsletter box */
.post-news { padding: 0.8rem 1rem 0.9rem; margin: 1.2rem 0; border-radius: 8px; }
.post-news h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.post-news input[type=email] { padding: 0.6rem 0.8rem; font-size: 0.9rem; }
.post-news button { padding: 0.6rem 1.4rem; font-size: 0.9rem; }
.post-news p { font-size: 0.74rem; margin-top: 0.6rem; }

/* read more panels */
.read-more { padding: 1rem; margin: 1.4rem 0; }
.read-more h3 { font-size: 1.1rem; margin-bottom: 0.7rem; }
.rm-grid { gap: 0.8rem; }
.rm-title { font-size: 0.88rem; padding: 0.65rem; line-height: 1.3; }

/* topics + you might like */
.post-topics { margin: 1.2rem 0 1.5rem; gap: 0.45rem; }
.post-topics strong { font-size: 0.95rem; }
.post-topics a { padding: 0.3rem 0.7rem; font-size: 0.8rem; }
.might-like h2 { font-size: 1.15rem; margin-bottom: 0.8rem; }
.ml-grid { gap: 1rem; }
.ml-title { font-size: 0.95rem; }

/* recommended sidebar */
.rec { padding: 0.75rem 0.75rem 0.2rem; }
.rec h3 { font-size: 0.85rem; margin-bottom: 0.6rem; }
.rec-item { padding: 0.65rem 0; gap: 0.65rem; grid-template-columns: 40% 1fr; }
.rec-title { font-size: 0.82rem; line-height: 1.3; }

/* article page: Jost, slightly larger text */
.post-layout, .post-layout * { font-family: 'Jost', system-ui, 'Segoe UI', Arial, sans-serif; }

.post-title { font-size: clamp(1.7rem, 2.6vw, 2.5rem); }
.post-by { font-size: 1rem; }
.post-date { font-size: 0.95rem; }
.post-hero figcaption { font-size: 0.85rem; }

.article-body { font-size: 1.15rem; line-height: 1.6; }
.article-body h2 { font-size: 1.55rem; }
.article-body h3 { font-size: 1.3rem; }
.article-body h4 { font-size: 1.12rem; }
.article-body table { font-size: 1rem; }
.article-body figcaption { font-size: 0.85rem; }

.post-news h3 { font-size: 1.25rem; }
.post-news input[type=email], .post-news button { font-size: 1rem; }
.post-news p { font-size: 0.8rem; }

.read-more h3 { font-size: 1.25rem; }
.rm-title { font-size: 1rem; }

.post-topics strong { font-size: 1.05rem; }
.post-topics a { font-size: 0.9rem; }
.might-like h2 { font-size: 1.3rem; }
.ml-title { font-size: 1.05rem; }

.rec h3 { font-size: 0.95rem; }
.rec-title { font-size: 0.92rem; }

/* Read also: thumbnail left, red lines top and bottom */
.read-also { display: grid; grid-template-columns: 220px 1fr; gap: 1.25rem; align-items: center; margin: 2rem 0; padding: 1rem 0; border-top: 3px solid var(--brand); border-bottom: 3px solid var(--brand); clear: both; }
.ra-thumb { display: block; height: 130px; overflow: hidden; background: #0a0a0a; border-radius: 3px; }
.ra-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; }
.ra-label { display: block; color: var(--brand); font-size: 0.85rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 0.4rem; }
.article-body a.ra-title { display: block; color: var(--brand-dark); font-size: 1.35rem; font-weight: 700; line-height: 1.25; text-transform: capitalize; text-decoration: none; }
.article-body a.ra-title:hover { color: var(--brand); }
.article-body a.ra-thumb { text-decoration: none; }
@media (max-width: 600px) {
  .read-also { grid-template-columns: 1fr; }
  .ra-thumb { height: 170px; }
}

/* single post page: 90% of the window width */
main.container { width: 90%; max-width: none; margin-left: auto; margin-right: auto; }
@media (max-width: 1000px) { main.container { width: 94%; } }

/* content | sidebar: a clear shared edge with equal space either side */
.post-layout { grid-template-columns: minmax(0, 1fr) 330px; column-gap: 0; align-items: start; }
.post-stream { min-width: 0; padding-right: 2rem; border-right: 1px solid #d2d6d7; }
.post-side { padding-left: 2rem; align-self: start; margin-top: 0; }
.post-item { min-width: 0; }
.post-item img, .post-item iframe, .post-item table { max-width: 100%; }
.article-body { overflow-wrap: anywhere; }

/* autoloaded stories */
.next-divider { margin: 2.5rem 0 2rem; padding-top: 0.9rem; border-top: 4px solid var(--brand); text-align: center; font-size: 0.8rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: #6e7070; }
.stream-sentinel { min-height: 40px; text-align: center; color: #6e7070; font-size: 0.9rem; }
.stream-sentinel.loading::after { content: 'Loading next story...'; }
.stream-end { margin: 2rem 0 1rem; font-weight: 700; color: #6e7070; }

@media (max-width: 1000px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-stream { padding-right: 0; border-right: 0; }
  .post-side { padding-left: 0; }
}

.post-hero .credit, .feat-fig .credit { color: #666; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin: 0 0 0.8rem; font-size: 0.85rem; color: #666; }
.crumbs a { color: #555; text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }
.post-sources { margin: 1.4rem 0 0; padding: 1rem 1.2rem; background: #F6FAF7; border-left: 4px solid var(--brand); font-size: 0.95rem; }
.post-sources h2 { margin: 0 0 0.5rem; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-dark); }
.post-sources ul { margin: 0; padding-left: 1.1rem; }
.post-sources li { margin: 0.2rem 0; color: #333; }
.post-sources a { color: #07622F; text-decoration: underline; word-break: break-word; }
.nf-links ul { list-style: none; margin: 1rem 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 0.6rem; }
.nf-links a { display: inline-block; padding: 0.35rem 0.8rem; border: 1px solid #CDD9D1; border-radius: 999px; color: #07622F; font-weight: 600; text-decoration: none; }
.nf-links a:hover { background: #E8F5EC; }
.ls-try { margin: 0.5rem 0 1rem; font-size: 0.95rem; }
.ls-try a { color: #07622F; font-weight: 600; }
