/* ═══════════════════════════════════════════════════════════════
   ListingGems blog prose styles
   Used by /blog/ pages. Builds on site.css.
═══════════════════════════════════════════════════════════════ */

.blog-hero {
  margin-top: 100px;
  margin-bottom: 3rem;
  text-align: left;
}
.blog-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 1rem;
}
.blog-hero p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 600px;
}

/* Article list cards on blog/index */
.article-list { display: flex; flex-direction: column; gap: 1.5rem; }
.article-card {
  display: block;
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
}
.article-card:hover {
  border-color: rgba(5, 150, 105, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}
.article-card .article-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.article-card h2 {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.3px;
}
.article-card p { color: var(--text-secondary); font-size: 1rem; margin: 0; }
.article-card .read-more {
  display: inline-block;
  margin-top: 1rem;
  color: var(--emerald-deep);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Article layout */
.breadcrumb {
  max-width: 720px;
  margin: 100px auto 0;
  padding: 0 24px;
  font-size: 0.9rem;
  font-family: var(--font-mono);
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text-secondary); }

article {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 24px 4rem;
  line-height: 1.7;
}
article h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 1rem;
}
article .article-meta {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}
article > p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--text-secondary);
}
article > p strong { color: var(--text-primary); }
article h2 {
  font-size: 1.65rem;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}
article h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}
article ul, article ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: var(--text-secondary);
}
article li { margin-bottom: 0.5rem; font-size: 1.1rem; }
article a { color: var(--emerald-deep); text-decoration: underline; text-underline-offset: 3px; }
article a:hover { color: var(--emerald); }
article img { width: 100%; border-radius: 0.75rem; margin: 2rem 0; }
article blockquote {
  border-left: 3px solid var(--emerald);
  padding-left: 1.5rem;
  margin: 2rem 0;
  color: var(--text-primary);
  font-style: italic;
}

/* Tables */
article table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
article th, article td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
article th {
  background: var(--bg-main);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
article td { color: var(--text-secondary); font-size: 0.95rem; }
article td strong { color: var(--text-primary); }

/* TL;DR box */
.tldr-box {
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-left: 3px solid var(--emerald);
  border-radius: 0.75rem;
  padding: 1.5rem 2rem;
  margin: 2rem 0 3rem;
}
.tldr-box h2 {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--emerald-deep);
  margin-top: 0;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.tldr-box ul { margin-bottom: 0; padding-left: 1.2rem; }
.tldr-box li { font-size: 1.05rem; color: var(--text-primary); margin-bottom: 0.5rem; }

/* FAQ accordion uses .faq-item / .faq-question / .faq-answer from site.css.
   Only override the section header here. */
.faq-section { margin-top: 4rem; }
.faq-section > h2 { font-size: 1.65rem; margin-bottom: 1.5rem; color: var(--text-primary); }


/* Responsive */
@media (max-width: 640px) {
  .blog-hero { margin-top: 80px; }
  .breadcrumb { margin-top: 80px; }
  article { padding: 1.5rem 20px 3rem; }
  article th, article td { padding: 0.5rem 0.75rem; font-size: 0.85rem; }
}
