/* ── ARTICLE TEMPLATE — shared by all pages in /insights/ ──
   Loads after style.css. Page-specific tweaks stay in a small
   inline <style> per page. Tags use the shared .chip/.overline
   primitives; the footer is the site-wide .site-footer. */

/* ── ARTICLE HERO ── */
.article-hero {
  margin-top: var(--nav-h);
  padding: clamp(48px,8vw,96px) var(--px) clamp(40px,6vw,72px);
  background: var(--ink);
  border-bottom: 1px solid var(--border-teal);
  position: relative; overflow: hidden;
}
.article-hero::before {
  content: '';
  position: absolute; top: 0; right: 0; bottom: 0; width: 60%;
  background:
    radial-gradient(520px 380px at 80% 30%, rgba(20,183,152,0.16), transparent 70%),
    linear-gradient(135deg, rgba(20,183,152,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.article-hero-inner { max-width: 760px; position: relative; z-index: 1; }
.article-meta {
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap; margin-bottom: 24px;
}
/* deliberate context exception: hero tags keep the stronger tint (Batch 3 converged chips to --teal-bg) */
.article-hero .chip--active { background: var(--teal-bg-hi); }
.article-date { font-size: 12px; color: var(--text-muted); letter-spacing: .04em; }
.article-read-time { font-size: 12px; color: var(--text-muted); }
/* H1 typography comes from the shared .page-title scale (style.css) */
.article-hero h1 .accent { color: var(--teal); }
.article-deck {
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.7; color: var(--text-dim); max-width: 600px;
}

/* ── ARTICLE LAYOUT ── */
.article-wrap {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 56px;
  max-width: 1100px; margin: 0 auto;
  padding: clamp(40px,6vw,72px) var(--px) clamp(48px,8vw,96px);
  align-items: start;
}

/* ── PROSE ── */
.article-body p {
  font-size: 16px; line-height: 1.82; color: var(--text-dim); margin-bottom: 24px;
}
.article-body h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800; letter-spacing: -.02em; line-height: 1.2;
  color: var(--text); margin: 44px 0 16px;
  padding-top: 8px; border-top: 2px solid var(--teal);
  display: inline-block;
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.article-body h2:first-of-type { margin-top: 0; }

/* Pull quote */
.pull-quote {
  border-left: 3px solid var(--teal);
  padding: 16px 24px; margin: 32px 0;
  background: var(--teal-bg); border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.pull-quote p {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(16px, 1.8vw, 20px) !important;
  font-weight: 600; color: var(--teal) !important;
  line-height: 1.5 !important; margin: 0 !important; font-style: italic;
}

/* ── SCORECARD ── */
.scorecard {
  background: var(--surface-2); border: 1px solid var(--border-teal);
  border-radius: var(--radius-lg); overflow: hidden; margin: 32px 0; box-shadow: var(--shadow), var(--glow);
}
.scorecard-header {
  background: var(--ink); padding: 18px 24px;
  display: flex; align-items: center; gap: 10px;
}
.scorecard-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px; font-weight: 700; color: var(--white); letter-spacing: .02em;
}
.scorecard-subtitle { font-size: 11px; color: var(--text-soft); margin-top: 2px; }
.scorecard-icon { font-size: 20px; }
.scorecard-body { padding: 8px 0; }
.scorecard-item {
  display: flex; align-items: flex-start;
  padding: 14px 24px; border-bottom: 1px solid var(--border); gap: 14px;
}
.scorecard-item:last-child { border-bottom: none; }
.scorecard-check {
  width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; margin-top: 1px;
}
.check-yes   { background: var(--teal-bg); color: var(--teal); }
.check-flag  { background: var(--teal-bg); color: var(--teal); }
.check-maybe { background: rgba(173,230,100,0.16); color: var(--lime); }
.check-no    { background: var(--red-bg); color: var(--red); }
.scorecard-item-text { flex: 1; }
.scorecard-item-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 3px;
}
.scorecard-item-desc { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* ── STAGES ── */
.stages { display: flex; flex-direction: column; gap: 12px; margin: 28px 0; }
.stage {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 18px 20px; border-radius: var(--radius-md);
  border: 1px solid var(--border-teal); background: var(--surface-2);
}
.stage-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px; font-weight: 800; line-height: 1; flex-shrink: 0; width: 36px;
}
.stage-1 .stage-num { color: var(--red-dim); }
.stage-2 .stage-num { color: rgba(173,230,100,0.6); }
.stage-3 .stage-num { color: var(--teal); }
.stage-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 4px;
}
.stage-desc { font-size: 13px; color: var(--text-dim); line-height: 1.55; }

/* ── SIDEBAR ── */
.article-sidebar { position: sticky; top: 84px; }
.sidebar-card {
  background: var(--surface-2); border: 1px solid var(--border-teal);
  border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px;
  box-shadow: var(--glow);
}
.sidebar-card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 16px;
}
.toc-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.toc-list a {
  display: block; padding: 7px 10px;
  font-size: 13px; color: var(--text-dim);
  border-radius: var(--radius-sm); transition: background .2s, color .2s; line-height: 1.4;
}
.toc-list a:hover  { background: var(--teal-bg); color: var(--teal); }
.toc-list a.active { background: var(--teal-bg); color: var(--teal); }
.sidebar-cta {
  background:
    radial-gradient(220px 180px at 50% 0%, rgba(20,183,152,0.18), transparent 75%),
    linear-gradient(165deg, var(--surface-2), var(--ink));
  border: 1px solid var(--border-teal);
  box-shadow: var(--glow);
  border-radius: var(--radius-lg); padding: 24px; text-align: center;
}
.sidebar-cta-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px; font-weight: 800; color: var(--white);
  margin-bottom: 8px; letter-spacing: -.01em; line-height: 1.3;
}
.sidebar-cta-sub {
  font-size: 13px; color: var(--text-soft); line-height: 1.6; margin-bottom: 18px;
}
.share-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px;
}
.share-links { display: flex; gap: 8px; }
.share-link {
  flex: 1; padding: 9px 12px; border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-size: 12px; font-weight: 500; color: var(--text-dim);
  text-align: center; transition: border-color .2s, color .2s;
}
.share-link:hover { border-color: var(--teal); color: var(--teal); }

/* ── AUTHOR BIO ── */
.article-footer {
  border-top: 1px solid var(--border-teal);
  padding: clamp(32px,5vw,56px) var(--px); background: var(--surface);
}
.article-footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: flex-start; gap: 32px; flex-wrap: wrap;
}
.author-logo { height: 28px; width: auto; }
.author-text { flex: 1; min-width: 200px; }
.author-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 6px;
}
.author-bio { font-size: 13px; line-height: 1.65; color: var(--text-dim); }
.author-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.author-tag {
  font-size: 10px; font-weight: 500; padding: 3px 9px; border-radius: var(--radius-pill);
  background: var(--surface-3); border: 1px solid var(--border); color: var(--text-muted);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .article-wrap { grid-template-columns: 1fr; gap: 40px; }
  .article-sidebar { position: static; }
}
@media (max-width: 480px) {
  .article-meta { gap: 10px; }
}
