﻿/* ═══════════════════════════════════════════════════════════
   Evalora - Blog / article styles
   Loaded AFTER styles.css, so it inherits all :root design tokens,
   the nav, footer and .btn / .container primitives.
   ═══════════════════════════════════════════════════════════ */

.article-shell {
  padding-top: clamp(6.5rem, 5rem + 6vw, 9rem);
  padding-bottom: var(--section);
}

.article-wrap {
  max-width: 760px;
  margin-inline: auto;
}

/* ── Breadcrumb ─────────────────────────────────────────── */
.breadcrumb {
  font-size: var(--text-xs);
  color: var(--muted);
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb span[aria-current] { color: var(--body); }
.breadcrumb .sep { opacity: 0.5; }

/* ── Article header ─────────────────────────────────────── */
.article-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-dk);
  background: var(--teal-lt);
  padding: 6px 14px;
  border-radius: var(--r-full);
  margin-bottom: 1.25rem;
}

.article-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
  margin-bottom: 1rem;
}

.article-standfirst {
  font-size: var(--text-lg);
  line-height: 1.55;
  color: var(--body);
  margin-bottom: 1.5rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  font-size: var(--text-xs);
  color: var(--muted);
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.25rem;
}
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); opacity: 0.6; }

/* ── Body typography ────────────────────────────────────── */
.article-body { font-size: var(--text-base); line-height: 1.72; color: var(--body); }
.article-body > * + * { margin-top: 1.35rem; }

.article-body h2 {
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-top: 3rem;
  scroll-margin-top: 6rem;
  text-wrap: balance;
}
.article-body h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin-top: 2.25rem;
  scroll-margin-top: 6rem;
}
.article-body p { color: var(--body); }
.article-body strong { color: var(--ink); font-weight: 700; }
.article-body a { color: var(--teal-dk); text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover { color: var(--teal); }

.article-body ul,
.article-body ol { padding-left: 1.35rem; }
.article-body li { margin-top: 0.5rem; }
.article-body li::marker { color: var(--teal); }

/* ── TL;DR / key-takeaways box (GEO: gives answer engines a clean summary) ── */
.tldr {
  background: var(--teal-lt);
  border: 1px solid rgba(3, 184, 162, 0.25);
  border-radius: var(--r-lg);
  padding: clamp(1.25rem, 1rem + 1.5vw, 1.75rem);
  margin: 2rem 0;
}
.tldr h2 {
  font-size: var(--text-base) !important;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal-dk);
  margin: 0 0 0.75rem !important;
}
.tldr ul { margin: 0; padding-left: 1.2rem; }
.tldr li { color: var(--ink); }

/* ── Callout / key stat ─────────────────────────────────── */
.callout {
  border-left: 3px solid var(--teal);
  background: var(--bg);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 1.1rem 1.4rem;
  margin: 2rem 0;
  font-size: var(--text-base);
  color: var(--ink);
}
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}
.stat-card {
  flex: 1 1 150px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--sh-sm);
}
.stat-card .num {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--teal-dk);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-card .lbl { font-size: var(--text-xs); color: var(--muted); margin-top: 0.4rem; }

/* ── Comparison table ───────────────────────────────────── */
.table-scroll { overflow-x: auto; margin: 2rem 0; border-radius: var(--r-md); border: 1px solid var(--border); }
table.cmp {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  min-width: 520px;
  background: var(--surface);
}
table.cmp th,
table.cmp td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
table.cmp thead th {
  background: var(--nav-dk);
  color: #fff;
  font-weight: 700;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
table.cmp thead th.win { background: var(--teal-dk); }
table.cmp tbody tr:last-child td { border-bottom: none; }
table.cmp td.win { background: var(--teal-lt); color: var(--ink); font-weight: 600; }
table.cmp td:first-child { font-weight: 600; color: var(--ink); }

/* ── Blog index section heading ─────────────────────────── */
.section-head { font-size: var(--text-xl); font-weight: 800; color: var(--ink); letter-spacing: -0.01em; margin: 2.75rem 0 1.1rem; }
.blog-index > .section-head:first-of-type { margin-top: 2.25rem; }

/* ── Source note ────────────────────────────────────────── */
.article-body p.src { font-size: var(--text-xs); color: var(--muted); }

/* ── FAQ ────────────────────────────────────────────────── */
.faq-list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.1rem 1.35rem;
}
.faq-item h3 { font-size: var(--text-base); font-weight: 700; color: var(--ink); margin: 0 0 0.5rem; }
.faq-item p { margin: 0; font-size: var(--text-sm); }

/* ── Inline CTA ─────────────────────────────────────────── */
.article-cta {
  margin: 3rem 0 0;
  background: linear-gradient(135deg, var(--nav-dk), var(--nav));
  border-radius: var(--r-lg);
  padding: clamp(1.75rem, 1.5rem + 2vw, 2.75rem);
  text-align: center;
  color: #fff;
}
.article-cta h2 { font-size: var(--text-xl); font-weight: 800; color: #fff; margin: 0 0 0.5rem; text-wrap: balance; }
.article-cta p { color: rgba(255,255,255,0.8); margin: 0 0 1.5rem; font-size: var(--text-sm); }
/* High-contrast button on the dark CTA panel: solid white pill, teal label */
.article-cta .btn-primary {
  background: #fff;
  border-color: #fff;
  color: var(--teal-dk);
  box-shadow: 0 10px 30px rgba(0,0,0,0.28);
}
.article-cta .btn-primary:hover {
  background: #fff;
  border-color: #fff;
  color: var(--teal-dk);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.34);
}

/* ── Related / hub links ────────────────────────────────── */
.related {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.related h2 { font-size: var(--text-lg); font-weight: 800; color: var(--ink); margin-bottom: 1rem; }

/* Smooth horizontal slider: one row, scroll-snap, momentum on touch */
.related-grid {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: var(--teal) transparent;
}
.related-grid::-webkit-scrollbar { height: 6px; }
.related-grid::-webkit-scrollbar-thumb { background: var(--teal); border-radius: var(--r-full); }
.related-grid::-webkit-scrollbar-track { background: var(--border); border-radius: var(--r-full); }

.related-card {
  flex: 0 0 clamp(240px, 60%, 300px);
  scroll-snap-align: start;
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.2rem 1.35rem;
  text-decoration: none;
  transition: transform var(--dur) var(--ease-smooth), box-shadow var(--dur) var(--ease-smooth), border-color var(--dur) var(--ease-smooth);
}
.related-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--teal); }
/* Beat .article-body a underline on the card links */
.article-body a.related-card,
.article-body a.related-card:hover { text-decoration: none; }
.related-card .rc-tag { display: block; font-size: var(--text-xs); font-weight: 700; color: var(--teal-dk); text-transform: uppercase; letter-spacing: 0.05em; text-decoration: none; }
.related-card .rc-title { display: block; font-size: var(--text-sm); font-weight: 700; color: var(--ink); margin-top: 0.4rem; line-height: 1.35; text-decoration: none; }

/* ── Table of contents ──────────────────────────────────── */
.toc {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.toc strong { display: block; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 0.6rem; }
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc li { margin-top: 0.35rem; }
.toc a { color: var(--body); text-decoration: none; }
.toc a:hover { color: var(--teal); text-decoration: underline; }

/* ── Solid nav on article pages (no dark hero behind it) ───── */
.site-nav.nav-solid {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--border);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: var(--sh-sm);
}
.site-nav.nav-solid .nav-logo--white { display: none; }
.site-nav.nav-solid .nav-logo--color { display: block; }
.site-nav.nav-solid .nav-link { color: var(--body); }
.site-nav.nav-solid .nav-link:hover,
.site-nav.nav-solid .nav-link.active { color: var(--teal); }
.site-nav.nav-solid .ham-bar { background: var(--ink); }

/* ═══════════════════════════════════════════════════════════
   Blog index - featured hero + responsive card grid
   ═══════════════════════════════════════════════════════════ */
.blog-index { margin-top: 2.25rem; }

/* Featured / "start here" post */
.blog-featured {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--sh-sm);
  margin-bottom: 1.5rem;
  text-decoration: none;
  transition: transform var(--dur) var(--ease-smooth), box-shadow var(--dur) var(--ease-smooth), border-color var(--dur) var(--ease-smooth);
}
.blog-featured:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: var(--teal); }
.blog-featured__body { padding: clamp(1.5rem, 1.2rem + 1.6vw, 2.5rem); display: flex; flex-direction: column; align-items: flex-start; gap: 0.85rem; }
.blog-featured__label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--teal-dk); background: var(--teal-lt); padding: 5px 12px; border-radius: var(--r-full);
}
.blog-featured__title { font-size: var(--text-2xl); font-weight: 800; line-height: 1.15; letter-spacing: -0.015em; color: var(--ink); text-wrap: balance; }
.blog-featured__excerpt { font-size: var(--text-base); line-height: 1.6; color: var(--body); }
.blog-featured__more { margin-top: 0.25rem; font-size: var(--text-sm); font-weight: 700; color: var(--teal-dk); display: inline-flex; align-items: center; gap: 7px; }
.blog-featured__more .arw, .post-card__more .arw { transition: transform var(--dur) var(--ease-smooth); }
.blog-featured:hover .arw, .post-card:hover .arw { transform: translateX(4px); }
.blog-featured__aside {
  position: relative;
  background: linear-gradient(135deg, var(--nav-dk), var(--nav));
  display: grid; place-items: center;
  min-height: 190px; overflow: hidden;
}
.blog-featured__aside::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120px 120px at 70% 30%, var(--teal-glow), transparent 70%);
}
.blog-featured__aside img { position: relative; width: clamp(120px, 60%, 190px); height: auto; opacity: 0.96; }

/* Card grid for the rest */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 1rem; }
.post-card {
  display: flex; flex-direction: column; gap: 0.7rem;
  padding: 1.4rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  text-decoration: none;
  transition: transform var(--dur) var(--ease-smooth), box-shadow var(--dur) var(--ease-smooth), border-color var(--dur) var(--ease-smooth);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--teal); }
.post-chip {
  align-self: flex-start;
  font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 4px 11px; border-radius: var(--r-full);
}
.post-chip--guide { color: var(--teal-dk); background: var(--teal-lt); }
.post-chip--compare { color: #fff; background: var(--nav); }
.post-chip--product { color: #fff; background: var(--teal-dk); }
.post-chip--funding { color: var(--ink); background: #fde8c8; }
.post-card__title { font-size: var(--text-lg); font-weight: 800; line-height: 1.25; color: var(--ink); letter-spacing: -0.01em; }
.post-card__excerpt { font-size: var(--text-sm); line-height: 1.55; color: var(--body); flex: 1 1 auto; }
.post-card__more { font-size: var(--text-sm); font-weight: 700; color: var(--teal-dk); display: inline-flex; align-items: center; gap: 7px; }

@media (max-width: 640px) {
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured__aside { min-height: 120px; order: -1; }
  .blog-featured__aside img { width: 130px; }
}
