/* ════════════════════════════════════════════════════
   ARTICLE SINGLE PAGE — shared styles
   Used by all pages inside /insights/*.html
   All selectors are namespaced .article-* to avoid
   collisions with the global style.css rules.
════════════════════════════════════════════════════ */

/* ── Breadcrumb ──────────────────────────────────── */
.article-crumb {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 13px 0;
}
.article-crumb-inner {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  flex-wrap: wrap;
}
.article-crumb a {
  color: var(--ink-2);
  text-decoration: none;
  transition: color .15s;
}
.article-crumb a:hover { color: var(--gold-dk); }
.article-crumb-sep { color: var(--ink-3); font-size: 12px; }
.article-crumb-current {
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

/* ── Hero ────────────────────────────────────────── */
.article-hero {
  background: var(--grad);
  padding: calc(var(--nav-h) + var(--ann-offset) + 64px) 0 60px;
  position: relative;
  overflow: hidden;
}
.article-hero-inner { position: relative; z-index: 1; }
.article-hero h1 {
  font-size: clamp(26px, 4vw, 50px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  color: #fff;
  max-width: 820px;
  margin-bottom: 18px;
}
.article-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.article-hero-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,.5);
  padding: 5px 12px;
  border-radius: 4px;
  text-decoration: none;
  transition: background .15s;
}
.article-hero-cat:hover { background: rgba(255,255,255,1); }
.article-hero-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
  flex-shrink: 0;
}
.article-hero-date,
.article-hero-readtime {
  font-size: 12px;
  color: rgba(255,255,255,.82);
  letter-spacing: .5px;
}
.article-hero-excerpt {
  font-size: 17px;
  line-height: 1.72;
  color: rgba(255,255,255,.82);
  max-width: 640px;
  margin: 0;
}

/* ── Article featured image ──────────────────────── */
.article-feature {
  width: var(--max-w);
  max-width: 920px;
  margin: -44px auto 0;
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0,0,0,.14);
  position: relative;
  z-index: 2;
  background: #fff;
}
.article-feature img { width: 100%; height: auto; display: block; }
@media (max-width: 720px) { .article-feature { margin-top: -24px; } }

/* ── Article body section ────────────────────────── */
.article-body-section {
  background: var(--white);
  padding: 72px 0 100px;
}
.article-layout {
  display: grid;
  grid-template-columns: 1fr 252px;
  gap: 72px;
  align-items: start;
}

/* ── Article content typography ──────────────────── */
.article-content h2 {
  font-size: clamp(19px, 2vw, 26px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.3px;
  color: var(--ink);
  margin: 52px 0 16px;
  padding-top: 4px;
  scroll-margin-top: calc(var(--nav-h) + var(--ann-offset) + 20px);
}
.article-content h2:first-child { margin-top: 0; }
.article-content h3 {
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  margin: 32px 0 10px;
  scroll-margin-top: calc(var(--nav-h) + var(--ann-offset) + 20px);
}
.article-content p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-2);
  margin-bottom: 20px;
}
.article-content p:last-child { margin-bottom: 0; }
.article-content ul,
.article-content ol {
  margin: 4px 0 22px;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.article-content li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
}
.article-content strong { color: var(--ink); font-weight: 700; }
.article-content a {
  color: var(--gold-dk);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .15s;
}
.article-content a:hover { color: var(--ink); }

/* ── Stat callout box ────────────────────────────── */
.article-stat {
  background: rgba(187,132,47,.06);
  border-left: 4px solid var(--gold-md);
  border-radius: 0 var(--r-card) var(--r-card) 0;
  padding: 20px 26px;
  margin: 30px 0;
}
.article-stat-num {
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  color: var(--gold-dk);
  margin-bottom: 5px;
  letter-spacing: -1px;
}
.article-stat-label {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
}

/* ── Key takeaway box ────────────────────────────── */
.article-takeaway {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 22px 28px;
  margin: 32px 0;
}
.article-takeaway-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold-md);
  margin-bottom: 10px;
}
.article-takeaway p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0;
  font-weight: 500;
}

/* ── Divider ─────────────────────────────────────── */
.article-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 52px 0 40px;
}

/* ── TOC sidebar ─────────────────────────────────── */
.article-toc {
  position: sticky;
  top: calc(var(--nav-h) + var(--ann-offset) + 28px);
}
.article-toc-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold-md);
  margin-bottom: 14px;
}
.article-toc-list {
  list-style: none;
  border-left: 2px solid var(--border);
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.article-toc-link {
  font-size: 13px;
  color: var(--ink-3);
  text-decoration: none;
  padding: 5px 0 5px 16px;
  display: block;
  transition: color .15s, border-color .15s;
  line-height: 1.45;
  border-left: 2px solid transparent;
  margin-left: -2px;
}
.article-toc-link:hover,
.article-toc-link.is-active {
  color: var(--gold-dk);
  border-left-color: var(--gold-md);
}

/* ── Author block ────────────────────────────────── */
.article-author {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 30px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  margin-top: 56px;
}
.article-author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dk), var(--gold-md));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.article-author-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}
.article-author-role {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-md);
  margin-bottom: 8px;
}
.article-author-bio {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0;
}

/* ── Related articles ────────────────────────────── */
.article-related { background: var(--cream); padding: 80px 0; }
.article-related-head { margin-bottom: 36px; }
.article-related-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold-md);
  margin-bottom: 8px;
}
.article-related-title {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}
.article-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.article-related-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: border-color .15s, box-shadow .15s;
}
.article-related-card:hover {
  border-color: var(--gold-md);
  box-shadow: var(--sh-md);
}
.article-related-img {
  aspect-ratio: 1612 / 976;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.article-related-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.article-related-img svg { opacity: .2; }
.article-related-body { padding: 18px 20px 22px; }
.article-related-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-md);
  margin-bottom: 7px;
}
.article-related-h {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 8px;
}
.article-related-meta {
  font-size: 11px;
  color: var(--ink-3);
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 1fr 220px; gap: 48px; }
}
@media (max-width: 768px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-toc { display: none; }
  .article-related-grid { grid-template-columns: 1fr 1fr; }
  .article-hero { padding: calc(var(--nav-h) + var(--ann-offset) + 44px) 0 40px; }
  .article-body-section { padding: 52px 0 80px; }
  .article-author { flex-direction: column; gap: 14px; }
}
@media (max-width: 480px) {
  .article-related-grid { grid-template-columns: 1fr; }
  .article-stat-num { font-size: 32px; }
}
