/* SDCG blog — layers on top of styles.css (reuses its tokens, .container, .btn, .page-hero). */

.blog-hero { padding: 96px 0 36px; }
.blog-hero h1 { font-family: var(--font-display); font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1.02; letter-spacing: -0.01em; color: var(--green-900); }
.blog-hero .page-hero-sub { max-width: 640px; }

/* ---------- listing ---------- */
.blog-list-wrap { padding: 24px 0 72px; }
.blog-list { list-style: none; display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.blog-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: 14px; transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease); }
.blog-card:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 14px 40px -24px rgba(12,27,20,.4); }
.blog-card a { display: block; padding: 26px 26px 22px; text-decoration: none; color: inherit; height: 100%; }
.blog-card-date { display: block; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 12px; }
.blog-card-title { font-family: var(--font-display); font-weight: 460; font-size: 1.34rem; line-height: 1.18; color: var(--green-900); margin-bottom: 10px; }
.blog-card-excerpt { font-size: .96rem; line-height: 1.55; color: var(--ink-soft); margin-bottom: 18px; }
.blog-card-kw { display: inline-block; font-size: .74rem; letter-spacing: .04em; color: var(--gold-deep); background: var(--paper-tint); border: 1px solid var(--line-soft); border-radius: 999px; padding: 4px 11px; }

/* ---------- article ---------- */
.post { padding: 96px 0 0; }
.post-head .post-title { font-family: var(--font-display); font-weight: 460; font-size: clamp(2.1rem, 4.6vw, 3.3rem); line-height: 1.06; letter-spacing: -0.01em; color: var(--green-900); margin-top: 6px; }
.post-meta { margin-top: 18px; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint); }
.hero-kicker a { color: inherit; text-decoration: none; }
.hero-kicker a:hover { color: var(--gold-deep); }

.post-body { max-width: 720px; margin-top: 40px; padding-bottom: 16px; }
.post-body p { font-size: 1.075rem; line-height: 1.72; color: var(--ink); margin: 0 0 1.25em; }
.post-body h2.post-sub { font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; line-height: 1.25; color: var(--green-900); margin: 1.9em 0 .7em; }
.post-body ul, .post-body ol { margin: 0 0 1.4em 1.25em; padding: 0; }
.post-body li { font-size: 1.04rem; line-height: 1.65; color: var(--ink); margin: 0 0 .55em; padding-left: .25em; }
.post-body li::marker { color: var(--gold); }
.post-body a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--gold-soft); }
.post-body a:hover { color: var(--gold-deep); }
.post-body strong { font-weight: 700; color: var(--green-900); }

.post-body h2.sources-title { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); font-family: var(--font-sans); font-weight: 700; margin: 2.4em 0 .7em; padding-top: 1.4em; border-top: 1px solid var(--line); }
.post-body ul.post-sources { margin: 0 0 1em; padding: 0; list-style: none; }
.post-body ul.post-sources li { font-size: .9rem; line-height: 1.5; color: var(--ink-soft); margin: 0 0 .4em; padding-left: 1.1em; position: relative; }
.post-body ul.post-sources li::before { content: "↗"; position: absolute; left: 0; color: var(--gold); font-size: .82rem; }
.post-body ul.post-sources a { color: var(--ink-soft); text-decoration-color: var(--line); }

.post-body blockquote.post-cta { margin: 2.2em 0 .6em; padding: 26px 28px; background: var(--green-900); border-radius: 14px; color: var(--paper); position: relative; }
.post-body blockquote.post-cta strong { color: #fff; }
.post-body blockquote.post-cta a { color: var(--gold-soft); text-decoration-color: var(--gold-soft); font-weight: 600; }
.post-body blockquote.post-cta a:hover { color: #fff; }

/* ---------- related ---------- */
.post-related { padding: 16px 0 8px; }
.post-related h2 { font-family: var(--font-display); font-weight: 480; font-size: 1.5rem; color: var(--green-900); margin-bottom: 18px; }
.post-related ul { list-style: none; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.post-related li a { display: block; padding: 18px 20px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--green-900); font-family: var(--font-display); font-size: 1.05rem; line-height: 1.25; transition: border-color .2s var(--ease); }
.post-related li a:hover { border-color: var(--gold); }

/* ---------- cta band ---------- */
.post-cta-band { margin-top: 64px; background: var(--green-900); color: var(--paper); padding: 72px 0; text-align: center; }
.post-cta-band .hero-kicker { color: var(--gold-soft); }
.post-cta-band h2 { font-family: var(--font-display); font-weight: 460; font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.1; color: #fff; margin: 10px auto 16px; max-width: 18ch; }
.post-cta-band p { max-width: 560px; margin: 0 auto 30px; color: rgba(246,244,237,.82); font-size: 1.05rem; line-height: 1.6; }
.post-cta-band .btn-primary { background: var(--gold); color: var(--green-900); }
.post-cta-band .btn-primary:hover { background: #fff; }

/* ---------- hero + figures ---------- */
.post-hero { margin: 34px 0 8px; }
.post-hero img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); background: var(--paper-2); display: block; }
.post-hero figcaption, .post-figure figcaption { margin-top: 12px; font-size: .85rem; line-height: 1.5; color: var(--ink-faint); text-align: center; font-style: italic; }

.post-body .post-figure { margin: 2em 0; }
.post-figure img { display: block; width: 100%; height: auto; border-radius: 12px; }
.post-figure.is-photo img { border: 1px solid var(--line); }
.post-figure.is-diagram img { border: 1px solid var(--line-soft); background: var(--paper-2); padding: 18px; }
.post-figure.is-diagram { max-width: 760px; margin-inline: auto; }
.post-figure.is-mermaid { text-align: center; }
.post-figure.is-mermaid pre.mermaid { margin: 0; background: var(--paper-2); border: 1px solid var(--line-soft); border-radius: 12px; padding: 24px; line-height: 1.4; min-height: 60px; overflow-x: auto; }
.post-figure.is-mermaid pre.mermaid:not([data-processed]) { color: transparent; }
.post-figure.is-mermaid svg { max-width: 100%; height: auto; display: block; margin: 0 auto; overflow: visible; }
.post-figure.is-mermaid .nodeLabel, .post-figure.is-mermaid .edgeLabel { font-family: var(--font-sans); white-space: normal; }

/* ---------- card thumbnails ---------- */
.blog-card a { padding: 0; display: flex; flex-direction: column; }
.blog-card-thumb { display: block; }
.blog-card-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px 14px 0 0; display: block; }
.blog-card-body { display: block; padding: 22px 24px 22px; }
.blog-card.has-thumb .blog-card-body { padding-top: 18px; }

/* ---------- homepage "Latest Insights" strip ---------- */
.home-insights-list { margin-top: 38px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.home-insights-more { margin-top: 30px; }
.home-insights-more a { font-family: var(--font-sans); font-weight: 600; font-size: .98rem; color: var(--green); text-decoration: none; border-bottom: 1px solid var(--gold-soft); padding-bottom: 2px; transition: color .2s var(--ease), border-color .2s var(--ease); }
.home-insights-more a:hover { color: var(--gold-deep); border-color: var(--gold-deep); }

@media (max-width: 640px) {
  .blog-hero { padding: 80px 0 24px; }
  .post { padding: 80px 0 0; }
  .post-body p, .post-body li { font-size: 1.02rem; }
}
