/* Insights (blog): editorial layout. Uses the site tokens from style.css. */
.blog-page { background: var(--rp-ivory-50); }
.article-wrap { padding: 112px 20px 72px; }

/* ---------- Index ---------- */
.blog-head { max-width: 760px; margin: 0 auto 2.5rem; text-align: left; }
.blog-head h1 { font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.12; margin: 0.4rem 0 0.9rem; color: var(--rp-evergreen-900); }
.blog-head p { color: var(--muted); font-size: 1.08rem; line-height: 1.6; margin: 0; }
.post-list { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--line); }
.post-card { display: block; padding: 1.75rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; text-align: left; }
.post-card h2 { font-size: 1.45rem; line-height: 1.25; margin: 0.35rem 0 0.5rem; color: var(--rp-evergreen-900); transition: color 0.2s ease; }
.post-card--lead h2 { font-size: clamp(1.7rem, 3vw, 2.1rem); }
.post-card:hover h2, .post-card:focus-visible h2 { color: var(--rp-evergreen-600); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.post-cat { margin: 0; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--rp-gold-700); }
.post-dek { margin: 0 0 0.6rem; color: var(--muted); line-height: 1.55; }
.post-meta, .byline-meta { margin: 0; font-size: 0.88rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0 0.9rem; }
.post-meta span + span::before, .byline-meta span + span::before { content: ""; display: inline-block; width: 1px; height: 0.8em; background: var(--line); margin-right: 0.9rem; vertical-align: -0.05em; }

/* ---------- Article ---------- */
.article { max-width: 700px; margin: 0 auto; text-align: left; }
.article-crumbs { font-size: 0.85rem; display: flex; gap: 0.5rem; align-items: center; margin-bottom: 1.25rem; }
.article-crumbs a { color: var(--rp-gold-700); font-weight: 600; text-decoration: none; letter-spacing: 0.02em; }
.article-crumbs a:hover { text-decoration: underline; }
.article-crumbs span { color: var(--line); }
.article-head { border-bottom: 1px solid var(--line); padding-bottom: 1.5rem; margin-bottom: 2rem; }
.article-head h1 { font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.1; letter-spacing: -0.01em; color: var(--rp-evergreen-900); margin: 0 0 1rem; }
.article-dek { font-size: 1.2rem; line-height: 1.5; color: var(--muted); margin: 0 0 1.5rem; }
.byline { display: flex; align-items: center; gap: 0.85rem; }
.byline img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.byline p { margin: 0; }
.byline-name { font-weight: 600; color: var(--ink); }
.byline-name a { color: inherit; text-decoration: none; }
.byline-name a:hover { text-decoration: underline; }

.article-body { font-size: 1.125rem; line-height: 1.75; color: var(--ink); }
.article-body p { margin: 0 0 1.35rem; }
.article-body .lede { font-size: 1.28rem; line-height: 1.65; }
.article-body .lede::first-letter { font-family: var(--font-serif); float: left; font-size: 3.6em; line-height: 0.82; padding: 0.08em 0.1em 0 0; color: var(--rp-evergreen-700); }
.article-body h2 { font-size: 1.6rem; line-height: 1.25; margin: 2.75rem 0 0.9rem; color: var(--rp-evergreen-900); }
.article-body h3 { font-size: 1.2rem; margin: 2rem 0 0.6rem; }
.article-body a { color: var(--rp-evergreen-600); text-underline-offset: 3px; }
.article-body ul, .article-body ol { padding-left: 1.3rem; margin: 0 0 1.35rem; }
.article-body li { margin-bottom: 0.5rem; }
.cite { font-size: 0.72em; line-height: 0; margin-left: 0.1em; }
.cite a { text-decoration: none; font-weight: 700; color: var(--rp-gold-700); }
.cite a::before { content: "["; } .cite a::after { content: "]"; }

.key-points { background: var(--rp-sage-50); border-left: 3px solid var(--rp-evergreen-700); border-radius: 0 8px 8px 0; padding: 1.1rem 1.4rem; margin: 2rem 0; font-size: 1.02rem; }
.key-points-h { font-size: 0.8rem !important; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--rp-evergreen-700); margin: 0 0 0.6rem !important; }
.key-points ul { margin: 0; }

.table-scroll { overflow-x: auto; margin: 1.5rem 0 1.75rem; border: 1px solid var(--line); border-radius: 8px; }
.article-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; line-height: 1.5; }
.article-table th { background: var(--rp-evergreen-900); color: #fffdf8; text-align: left; font-weight: 600; padding: 0.7rem 0.85rem; white-space: nowrap; }
.article-table td { padding: 0.75rem 0.85rem; border-top: 1px solid var(--line); vertical-align: top; background: #fff; }
.article-table tbody tr:nth-child(even) td { background: var(--rp-ivory-50); }

.sources { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.sources h2 { font-size: 1.1rem; margin: 0 0 0.8rem; color: var(--rp-evergreen-900); }
.sources ol { padding-left: 1.4rem; margin: 0; font-size: 0.92rem; line-height: 1.6; color: var(--muted); }
.sources li { margin-bottom: 0.45rem; }
.sources li:target { background: var(--rp-gold-200); }
.sources a { color: var(--rp-evergreen-600); word-break: break-word; }

.article-note { margin: 2rem 0; font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
.article-note a { color: var(--rp-evergreen-600); }
.author-box { display: flex; gap: 1.25rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 1.4rem; }
.author-box img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex: none; }
.author-box p { margin: 0 0 0.5rem; line-height: 1.55; color: var(--muted); }
.author-name { font-family: var(--font-serif); font-size: 1.2rem; color: var(--rp-evergreen-900) !important; }

/* Draft markers: never published (the release check fails if any remain). */
.draft-block { display: block; background: #fff7e0; border: 1px dashed var(--rp-gold-500); color: var(--rp-gold-700); border-radius: 6px; padding: 0.6rem 0.8rem; margin: 0 0 1.2rem; font-size: 0.92rem; line-height: 1.5; }
li .draft-block, td .draft-block { margin: 0; }

@media (max-width: 600px) {
  .article-wrap { padding-top: 96px; }
  .article-body { font-size: 1.06rem; }
  .article-body .lede { font-size: 1.15rem; }
  .author-box { flex-direction: column; }
}
@media print {
  #navbar-include, .site-footer, .author-box { display: none !important; }
  .article-wrap { padding-top: 0; }
}
.article-table tbody th { text-align: left; font-family: var(--font-serif); font-weight: 600; color: var(--rp-evergreen-900); padding: 0.75rem 0.85rem; border-top: 1px solid var(--line); vertical-align: top; background: #fff; min-width: 9rem; }
.article-table tbody tr:nth-child(even) th { background: var(--rp-ivory-50); }
.article-table td { min-width: 10rem; }
.article-body .table-note { font-size: 0.88rem; line-height: 1.6; color: var(--muted); margin-top: -0.75rem; }
.sources-note { font-size: 0.9rem; color: var(--muted); margin: 0 0 0.8rem; }
@media (min-width: 1000px) {
  .article-body .table-scroll { margin-left: -110px; margin-right: -110px; }
}
