/* ---------- Blog (index + articles) ----------
   Loaded only on /blog/ pages, after /styles.css. Reuses the site's colors
   and components (buttons, faq-list, area-links, contact form). */

/* Article hero: byline under the H1 */
.byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.byline img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brand);
  flex: none;
}
.section p.byline, .hero p.byline { color: var(--muted); }
.byline strong { color: var(--text); font-weight: 600; }
.byline-sep { color: rgba(212, 175, 55, 0.55); }
.hero-article h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); }

/* Article body with a sticky table of contents */
.article-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}
.toc {
  position: sticky;
  top: 6.5rem;
  padding: 1.25rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(212, 175, 55, 0.04);
  font-size: 0.92rem;
}
.section .toc p.toc-title {
  margin: 0 0 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-dark);
}
.toc ol { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.45rem; color: var(--muted); }
.toc a { color: var(--body); }
.toc a:hover { color: var(--brand); }

.article-body { max-width: 760px; }
.article-body h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-top: 2.75rem; scroll-margin-top: 6.5rem; }
.article-body > h2:first-child { margin-top: 0; }
.article-body h3 { font-size: 1.25rem; margin-top: 1.75rem; margin-bottom: 0.6rem; line-height: 1.3; }
.section .article-body p,
.article-body li { font-size: 1.07rem; line-height: 1.75; color: var(--body); }
.article-body ul, .article-body ol { padding-left: 1.3rem; margin: 0 0 1.25rem; }
.article-body li { margin-bottom: 0.45rem; }
.article-body li strong, .article-body p strong { color: var(--text); }
.article-body a:not(.button) {
  color: var(--brand);
  border-bottom: 1px solid rgba(212, 175, 55, 0.4);
}
.article-body a:not(.button):hover { border-color: var(--brand); }

/* Key takeaways box */
.takeaways {
  margin: 0 0 2rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-left: 4px solid var(--brand);
  border-radius: 16px;
  background: rgba(212, 175, 55, 0.06);
}
.section .takeaways p.takeaways-title {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
}
.takeaways ul { margin: 0; }
.takeaways li:last-child { margin-bottom: 0; }

/* Comparison tables */
.table-wrap { overflow-x: auto; margin: 1.25rem 0 1.75rem; border: 1px solid var(--line); border-radius: 16px; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.97rem; min-width: 560px; }
.compare-table caption { text-align: left; padding: 0.9rem 1rem 0.4rem; color: var(--muted); font-size: 0.88rem; }
.compare-table th, .compare-table td { padding: 0.8rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(212, 175, 55, 0.14); line-height: 1.5; }
.compare-table thead th { color: var(--brand); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; background: rgba(212, 175, 55, 0.06); }
.compare-table tbody th { color: var(--text); font-weight: 600; width: 22%; }
.compare-table td { color: var(--body); }
.compare-table tr:last-child th, .compare-table tr:last-child td { border-bottom: 0; }

/* Photo inside an article */
.article-figure { margin: 1.75rem 0 2rem; }
.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
}
.article-figure figcaption { margin-top: 0.6rem; font-size: 0.9rem; color: var(--muted); }

/* Mid-article call to action */
.cta-inline {
  margin: 2.5rem 0;
  padding: 1.6rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(24,24,24,0.98), rgba(18,18,18,0.98));
  box-shadow: var(--shadow);
}
.article-body .cta-inline h3 { margin: 0 0 0.5rem; font-size: 1.3rem; }
.section .article-body .cta-inline p { font-size: 1rem; margin-bottom: 0; }
.cta-inline .cta-actions { margin: 1.1rem 0 0; }

/* Numbered steps (selling guide) */
.step-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-dark);
}

/* Blog index cards */
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.post-card {
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.7rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(24,24,24,0.98), rgba(18,18,18,0.98));
  transition: border-color 160ms ease, transform 160ms ease;
}
.post-card:hover { border-color: var(--brand); transform: translateY(-1px); }
.post-card-featured { grid-column: 1 / -1; }
.section p.post-meta {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-dark);
}
.post-card h2 { font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.2; margin-bottom: 0.7rem; letter-spacing: -0.02em; }
.post-card h2 a:hover { color: var(--brand); }
.section .post-card p.post-excerpt { margin-bottom: 1rem; }
.post-card .text-link { margin-top: auto; align-self: flex-start; }

@media (max-width: 960px) {
  .article-layout { grid-template-columns: 1fr; gap: 1.75rem; }
  .toc { position: static; }
}
@media (max-width: 860px) {
  .post-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cta-inline { padding: 1.3rem; }
  .cta-inline .cta-actions .button { width: 100%; }
  .takeaways { padding: 1.15rem 1.2rem; }
}
