/* ========================================
   Blog (articles and indexes). Loaded after styles.css and content.css.
   Bump the ?v= in generator/blog.py (BLOG_CSS_V) whenever this file changes.
   ======================================== */
.blog-article {
  max-width: 760px;
  margin: 0 auto;
}
.blog-header h1 {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 4px 0 12px;
}
.blog-meta {
  font-size: 0.9rem;
  color: rgba(232, 232, 237, 0.62);
}
.blog-cover {
  margin: 28px 0 32px;
}
.blog-cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}
.blog-intro p {
  font-size: 1.12rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

/* Table of contents */
.blog-toc {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 32px 0 48px;
}
.blog-toc-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-accent);
  margin-bottom: 8px;
}
.blog-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.blog-toc li {
  padding: 6px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}
.blog-toc li:last-child {
  border-bottom: none;
}
.blog-toc a {
  color: var(--color-text);
  transition: color 0.2s;
}
.blog-toc a:hover {
  color: var(--color-accent);
}

/* Sections */
.blog-section {
  margin-bottom: 44px;
}
.blog-section h2 {
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
  scroll-margin-top: 96px;
}
.blog-section h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 24px 0 10px;
}
.blog-section p,
.blog-section li {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--color-text);
}
.blog-section p {
  margin-bottom: 14px;
}
.blog-section ul,
.blog-section ol {
  padding-left: 22px;
  margin: 0 0 16px;
}
.blog-section li {
  margin: 6px 0;
}
.blog-section strong,
.blog-intro strong {
  color: #fff;
}
.blog-intro a,
.blog-section p a,
.blog-section li a,
.blog-section td a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.blog-section .table-wrap {
  margin: 20px 0 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.blog-section td {
  vertical-align: top;
}
.blog-section .faq-list {
  max-width: none;
}
.blog-badges {
  position: relative;
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
/* Index */
.blog-hub-header {
  max-width: 760px;
  margin: 0 auto 40px;
}
.blog-hub-header h1 {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
}
.blog-hub-header p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(232, 232, 237, 0.75);
}
.blog-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
}
.blog-card {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 24px;
  align-items: center;
  padding: 16px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s;
}
.blog-card:hover {
  border-color: var(--color-border-hover);
}
.blog-card-img img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}
.blog-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 6px 0 8px;
}
.blog-card h2 a {
  color: var(--color-text);
  transition: color 0.2s;
}
.blog-card h2 a:hover {
  color: var(--color-accent);
}
.blog-card-body > p:last-child {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(232, 232, 237, 0.7);
}
.blog-empty {
  text-align: center;
  color: rgba(232, 232, 237, 0.7);
  margin: 40px 0;
}

@media (max-width: 768px) {
  .blog-header h1,
  .blog-hub-header h1 {
    font-size: 1.9rem;
  }
  .blog-section h2 {
    font-size: 1.35rem;
  }
  .blog-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}
