/* Fallbacks + small custom touches that Tailwind CDN utilities don't cover */

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Article body typography (long_content1/2/3, FAQ answers, points) */
.article-body h2 {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
  color: #0f172a;
  scroll-margin-top: 100px;
}
.article-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
  color: #0f172a;
}
.article-body p { margin-bottom: 1rem; line-height: 1.8; color: #334155; }
.article-body ul, .article-body ol { margin: 1rem 0 1rem 1.25rem; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 0.4rem; color: #334155; }
.article-body img { border-radius: 0.75rem; margin: 1rem 0; }
.article-body a { color: var(--pl-primary); text-decoration: underline; text-underline-offset: 2px; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.article-body table th, .article-body table td { border: 1px solid #e2e8f0; padding: 0.6rem 0.9rem; text-align: left; }
.article-body table th { background: #f8fafc; font-weight: 600; }
.article-body blockquote {
  border-left: 4px solid var(--pl-primary);
  background: var(--pl-surface);
  padding: 0.9rem 1.2rem;
  border-radius: 0 0.5rem 0.5rem 0;
  margin: 1.5rem 0;
  color: #1e293b;
  font-style: italic;
}

/* Sticky ToC scroll active indicator */
.toc-link.active { color: var(--pl-primary); font-weight: 600; }

/* Swiper-free simple horizontal scroller for related posts (no external JS dependency) */
.scroller { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.5rem; }
.scroller::-webkit-scrollbar { height: 6px; }
.scroller::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 999px; }
.scroller > * { scroll-snap-align: start; }
