/* Insights — blog listing and article template */

/* ---------- Listing: featured guide ---------- */
.featured { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.featured > .feature-read { flex: 1.5 1 440px; min-width: 0; min-height: 360px; padding: clamp(26px, 3.4vw, 48px); }
.featured > .feature-read .title { font-size: clamp(28px, 3vw, 42px); max-width: 760px; }
.featured > .feature-read .blurb { font-size: 17px; max-width: 620px; }
.featured .feature-meta { font-size: 14px; color: var(--on-dark); }
.featured > .inside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; }
.inside-list { list-style: none; margin: 14px 0 0; padding: 0; counter-reset: inside; }
.inside-list li { counter-increment: inside; display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.inside-list li:last-child { border-bottom: 0; }
.inside-list li::before { content: counter(inside, decimal-leading-zero); flex: 0 0 28px; font-weight: 600; color: var(--burgundy); }

/* ---------- Listing: filter + cards ---------- */
.filter-bar { margin-top: 40px; }
.post-grid { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--card-min)), 1fr)); gap: 12px; }
.post-grid > li { display: flex; min-width: 0; }
.post { flex: 1 1 auto; display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 26px 24px 22px; background: var(--light); border: 1px solid transparent; border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.section:not(.section-white) .post { background: #FFFFFF; border-color: var(--line); }
.post:hover, .is-picked > .post { border-color: var(--burgundy); color: var(--ink); }
.is-picked > .post { background: #FFFFFF; }
.post-meta { font-size: 14px; color: var(--muted); }
.post-title { font-size: 21px; font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; }
.post:hover .post-title { color: var(--burgundy); }
.post-excerpt { font-size: 15px; color: var(--body); }
.post-foot { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.post-foot .arrow { color: var(--burgundy); font-size: 18px; }
.empty-state { margin-top: 24px; padding: 32px 28px; background: var(--light); border-radius: var(--radius); color: var(--body); }
.empty-state .h3 { color: var(--ink); }
.empty-state p + p { margin-top: 8px; }

/* ---------- Listing: more resources + newsletter ---------- */
.resource-card { display: flex; flex-direction: column; gap: 10px; min-height: 220px; color: var(--ink); text-decoration: none; }
.resource-card:hover { border-color: var(--burgundy); color: var(--ink); }
.resource-card .name { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.resource-card .line { color: var(--body); }
.resource-card .more { margin-top: auto; font-weight: 600; color: var(--burgundy); }
.newsletter { display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: flex-start; background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 56px); }
.newsletter > :first-child { flex: 1 1 340px; min-width: 0; }
.newsletter > form { flex: 1.3 1 420px; min-width: 0; }
.newsletter .lead { margin-top: 18px; }

/* ---------- Article: hero ---------- */
.article-title { font-weight: 600; font-size: clamp(36px, 4.4vw, 62px); line-height: 1.06; letter-spacing: -0.035em; max-width: 1040px; margin-top: 14px; }
.page-hero .standfirst { margin-top: 24px; max-width: 760px; }
/* Hand-built articles: a photo beside the title, stacked under it on narrow screens */
.article-hero { align-items: center; }
.article-hero > :last-child { flex: 1 1 360px; }
.article-hero-media img { aspect-ratio: 4 / 3; max-height: 520px; }
.byline { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 15px; color: var(--muted); }
.byline strong { color: var(--ink); font-weight: 600; }
.byline .sep { color: var(--sage); }
.tag-row { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }

/* ---------- Article: body ---------- */
.article-wrap { padding-block: 0 96px; }
.prose h2[id], .prose h3[id] { scroll-margin-top: 24px; }
.prose a { text-underline-offset: 2px; }
.prose .callout { font-size: 17px; line-height: 1.6; }
.prose .table-scroll { border: 1px solid var(--line); border-radius: var(--radius); background: #FFFFFF; }
.prose .table-scroll table { min-width: 680px; }
.prose caption { caption-side: top; text-align: left; padding: 14px 14px 10px; font-size: 15px; font-weight: 600; color: var(--ink); }
.prose tr:last-child td { border-bottom: 0; }
.prose ol.checklist { list-style: none; padding: 0; counter-reset: step; }
.prose ol.checklist > li { counter-increment: step; position: relative; padding: 14px 0 14px 52px; border-top: 1px solid var(--line); margin: 0; }
.prose ol.checklist > li:last-child { border-bottom: 1px solid var(--line); }
.prose ol.checklist > li::before { content: counter(step); position: absolute; left: 0; top: 14px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--pink-tint); color: var(--burgundy); font-size: 15px; font-weight: 600; line-height: 1; }
.example { background: #FFFFFF; border: 1px solid var(--line); border-left: 3px solid var(--burgundy); border-radius: var(--radius); padding: 22px 26px; }
.example .eyebrow { display: block; margin-bottom: 8px; }
.example p + p { margin-top: 0.8em; }
.prose .faq h3 { margin-top: 1.4em; }
.prose .faq h3 + p { margin-top: 0.5em; }
.related-service { font-size: 15px; color: var(--muted); }

/* ---------- Article: aside ---------- */
.article-aside { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.article-aside .toc { position: static; }
.toc-title { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--crimson); }
.toc a { min-height: 44px; display: flex; align-items: center; line-height: 1.35; }
.toc a:hover { box-shadow: inset 2px 0 0 var(--burgundy); }
.talk-card .h { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
.talk-card p { margin-top: 10px; font-size: 15px; color: var(--body); }
.talk-card .btn { margin-top: 18px; width: 100%; }
@media (max-width: 860px) {
  .article-aside { position: static; max-height: none; overflow: visible; order: -1; }
  .article-aside .talk-card { display: none; }
  .article-aside .toc { background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 8px; }
}

/* ---------- Article: after ---------- */
.related-cap { display: flex; flex-wrap: wrap; gap: 12px; }
.related-cap > * { flex: 1 1 320px; min-width: 0; }
