/* ============================================================
   Argento CRM — blog styles (loaded after /assets/site.css)
   Used by /blog/index.html and every /blog/<slug>/index.html
   ============================================================ */

/* ---------- breadcrumbs ---------- */
.crumbs { font-size: 13px; color: #94a3b8; margin-bottom: 18px; }
.crumbs a { color: #cbd5e1; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span { margin: 0 6px; }

/* ---------- blog hero ---------- */
.blog-hero { padding: 56px 0 60px; }
.blog-hero .kicker {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 12px;
}
.blog-hero h1 { max-width: 820px; }
.blog-hero p.dek { font-size: 18px; color: #cbd5e1; max-width: 720px; }
.meta-line { margin-top: 20px; font-size: 14px; color: #94a3b8; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.meta-line strong { color: #e2e8f0; font-weight: 600; }

/* ---------- article layout ---------- */
.post-wrap {
  max-width: 1080px; margin: 0 auto; padding: 48px 24px 24px;
  display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 56px;
}
.post-body { min-width: 0; max-width: 740px; }
.post-body > * + * { margin-top: 18px; }
.post-body p, .post-body li { font-size: 17px; line-height: 1.75; color: var(--body); }
.post-body h2 { margin-top: 48px; font-size: clamp(22px, 2.6vw, 28px); scroll-margin-top: 96px; }
.post-body h3 { margin-top: 30px; font-size: 19px; scroll-margin-top: 96px; }
.post-body ul, .post-body ol { padding-left: 24px; }
.post-body li + li { margin-top: 8px; }
.post-body a { color: #0284c7; text-decoration: underline; text-underline-offset: 2px; }
.post-body a.btn { color: #00232b; text-decoration: none; }
.post-body strong { color: var(--ink); }
.post-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em; background: #f1f5f9; padding: 2px 6px; border-radius: 5px; color: var(--ink);
}
.post-body blockquote {
  border-left: 3px solid var(--teal); padding: 4px 0 4px 18px; color: var(--ink-soft); font-style: italic;
}

/* answer box — the short, quotable answer near the top */
.answer {
  background: #f0fbff; border: 1px solid #bae6fd; border-radius: 12px; padding: 20px 22px;
}
.answer .label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #0284c7; margin-bottom: 6px; }
.answer p { margin: 0; }

.takeaways {
  border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; background: #f8fafc;
}
.takeaways h2 { margin: 0 0 10px; font-size: 18px; }
.takeaways ul { margin: 0; }

/* comparison / checklist tables */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.post-body table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.post-body th, .post-body td { border: 1px solid var(--line); padding: 11px 13px; text-align: left; vertical-align: top; }
.post-body th { background: #f8fafc; color: var(--ink); font-weight: 650; }

/* FAQ */
.faq details {
  border: 1px solid var(--line); border-radius: 10px; padding: 0 18px; background: #fff;
}
.faq details + details { margin-top: 10px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 28px 16px 0; font-weight: 650; color: var(--ink);
  position: relative; font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 13px; font-size: 22px; color: var(--blue); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 16px; margin: 0; font-size: 16px; }

/* CTA */
.cta-box {
  background: var(--ink); color: #cbd5e1; border-radius: 14px; padding: 30px 28px; margin-top: 44px;
}
.cta-box h2 { color: #fff; margin: 0 0 8px; font-size: 24px; }
.cta-box p { color: #cbd5e1; font-size: 16px; }
.cta-box .btn { margin-top: 16px; }

/* sidebar TOC */
.toc { position: sticky; top: 104px; align-self: start; font-size: 14px; }
.toc .toc-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc ol { list-style: none; border-left: 2px solid var(--line); }
.toc li a {
  display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent;
  color: var(--muted); text-decoration: none; line-height: 1.4;
}
.toc li a:hover { color: var(--ink); border-left-color: var(--blue); }
.toc .toc-cta {
  margin-top: 22px; border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: #f8fafc;
}
.toc .toc-cta p { font-size: 13px; color: var(--body); margin-bottom: 10px; }

/* related posts */
.related { border-top: 1px solid var(--line); margin-top: 40px; }
.related h2 { margin-bottom: 18px; }

/* ---------- index / cards ---------- */
.post-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.post-card {
  display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; background: #fff; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.post-card:hover { border-color: var(--blue); box-shadow: 0 10px 30px rgba(0,170,227,.10); transform: translateY(-2px); }
.post-card .tag {
  align-self: flex-start; font-size: 12px; font-weight: 700; color: #0369a1;
  background: linear-gradient(135deg, rgba(0,170,227,.12), rgba(0,212,192,.12));
  padding: 4px 10px; border-radius: 999px; margin-bottom: 14px;
}
.post-card h3 { font-size: 18px; line-height: 1.35; margin-bottom: 8px; }
.post-card p { font-size: 14px; color: var(--muted); flex: 1; }
.post-card .date { font-size: 13px; color: #94a3b8; margin-top: 14px; }

.topics { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.topics a {
  font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; background: #fff;
}
.topics a:hover { border-color: var(--blue); color: #0369a1; }

.cluster { padding: 48px 0 8px; scroll-margin-top: 90px; }
.cluster + .cluster { border-top: 1px solid var(--line); }
.cluster .lede { margin-bottom: 22px; }
.cluster .empty { font-size: 14px; color: var(--muted); font-style: italic; }

@media (max-width: 900px) {
  .post-wrap { grid-template-columns: 1fr; gap: 0; padding-top: 32px; }
  .toc { display: none; }
}
@media (max-width: 640px) {
  .post-body p, .post-body li { font-size: 16px; }
  .blog-hero { padding: 44px 0 46px; }
  .blog-hero p.dek { font-size: 16px; }
  .cta-box { padding: 24px 20px; }
}
