/* ============================================================
   DriveGuardians — Article / Blog Post Styles
   Mapped to new CSS token system in style.css
   ============================================================ */

/* ── ARTICLE HERO — dark navy header ──────────────────────── */
.article-hero {
  background: linear-gradient(145deg, #060E1C 0%, #0A1628 50%, #0F2040 100%);
  padding: 116px 0 56px;
  border-bottom: 4px solid var(--orange);
  position: relative;
}
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 24px; transition: color .2s;
}
.back-link:hover { color: var(--orange); }
.article-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.article-tag {
  background: rgba(240,75,0,.15); color: var(--orange);
  padding: 4px 12px; border-radius: 50px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.article-read-time { font-size: 14px; color: rgba(255,255,255,.45); }
.article-hero h1 {
  font-size: clamp(30px, 4.5vw, 56px);
  color: #fff; max-width: 840px; margin-bottom: 18px; line-height: 1.08;
}
.article-hero .lead {
  font-size: 18px; color: rgba(255,255,255,.72);
  max-width: 720px; line-height: 1.72; font-weight: 300;
}

/* ── ARTICLE BODY WRAPPER ─────────────────────────────────── */
/* Override any old inline background styles */
.article-body-wrap,
[style*="background:var(--royal-dark)"],
[style*="background: var(--royal-dark)"],
[style*="background:var(--navy)"],
[style*="background: var(--navy)"] {
  background: var(--bg) !important;
}

/* ── ARTICLE LAYOUT ───────────────────────────────────────── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
  align-items: start;
  padding: 64px 0 96px;
}

/* ── ARTICLE BODY TEXT ────────────────────────────────────── */
.article-body { }
.article-body p {
  font-size: 17px; line-height: 1.82; margin-bottom: 20px;
  color: var(--text-mid);
}
.article-body h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 900; text-transform: uppercase; letter-spacing: .02em;
  color: var(--navy); margin: 48px 0 16px;
  padding-top: 40px; border-top: 1px solid var(--border);
}
.article-body h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.article-body h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 24px; font-weight: 800; text-transform: uppercase;
  color: var(--navy); margin: 32px 0 12px;
}
.article-body ul,
.article-body ol { margin: 0 0 22px 24px; }
.article-body li {
  font-size: 16px; line-height: 1.78; margin-bottom: 8px;
  color: var(--text-mid);
}
.article-body strong { color: var(--text); font-weight: 700; }
.article-body a { color: var(--orange); }
.article-body a:hover { color: var(--orange-lt); }
.article-body em { color: var(--orange); font-style: normal; }

/* ── CITATION ─────────────────────────────────────────────── */
.citation {
  font-size: 12px; color: var(--text-muted);
  font-style: italic; display: block; margin-top: 6px; line-height: 1.5;
}

/* ── STAT CALLOUT ─────────────────────────────────────────── */
.stat-callout {
  background: var(--navy);
  border-left: 4px solid var(--orange);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 24px 28px; margin: 32px 0;
}
.stat-callout .stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 52px; font-weight: 900; color: var(--orange); line-height: 1;
}
.stat-callout .stat-label {
  font-size: 15px; color: rgba(255,255,255,.7); margin-top: 6px; line-height: 1.5;
}
.stat-callout .stat-source {
  font-size: 11px; color: rgba(255,255,255,.35); margin-top: 8px; font-style: italic;
}

/* ── KEY TAKEAWAY ─────────────────────────────────────────── */
.key-takeaway {
  background: rgba(240,75,0,.06);
  border: 1px solid rgba(240,75,0,.2);
  border-radius: var(--r); padding: 26px 30px; margin: 36px 0;
}
.key-takeaway-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 10px;
}
.key-takeaway p { font-size: 16px; color: var(--text-mid); margin: 0; line-height: 1.72; }

/* ── ARTICLE IN-LINE CTA ──────────────────────────────────── */
.article-cta {
  background: var(--navy);
  border-radius: var(--r); padding: 36px 32px;
  text-align: center; margin: 48px 0 0;
}
.article-cta h3 { color: #fff; font-size: 28px; margin-bottom: 12px; }
.article-cta p { color: rgba(255,255,255,.65); margin-bottom: 22px; }
.article-cta .btn-orange { display: inline-flex; }

/* ── SIDEBAR ──────────────────────────────────────────────── */
.article-sidebar { position: sticky; top: 108px; }
.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--r);
  padding: 24px; margin-bottom: 20px; box-shadow: var(--shadow-sm);
}
.sidebar-card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 16px;
}
.sidebar-stat { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border-lt); }
.sidebar-stat:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.sidebar-stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 38px; font-weight: 900; color: var(--orange); line-height: 1;
}
.sidebar-stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; line-height: 1.5; }
.sidebar-cta {
  background: var(--orange); border-radius: var(--r);
  padding: 22px; text-align: center; margin-bottom: 20px;
}
.sidebar-cta h4 { color: #fff; font-size: 20px; margin-bottom: 8px; }
.sidebar-cta p { color: rgba(255,255,255,.8); font-size: 14px; margin-bottom: 16px; }
.sidebar-cta .btn-white {
  display: inline-block; background: #fff; color: var(--orange);
  padding: 11px 20px; border-radius: var(--r-sm);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  transition: all .22s;
}
.sidebar-cta .btn-white:hover { background: rgba(255,255,255,.92); }
.toc { }
.toc a {
  display: block; font-size: 14px; color: var(--text-muted);
  padding: 7px 0; border-bottom: 1px solid var(--border-lt);
  transition: color .2s;
}
.toc a:hover { color: var(--orange); }
.toc a:last-child { border-bottom: none; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; gap: 40px; }
  .article-sidebar { position: static; }
}
@media (max-width: 640px) {
  .article-hero { padding: 100px 0 40px; }
  .article-body p, .article-body li { font-size: 16px; }
}
