/*
 * Blog article body (`.blog-content`).
 *
 * One definition of how rendered post markdown looks on the web, shared by
 * the public post page (general_pages/blogs/post_detail.html), the admin
 * editor's visual surface and its Widescreen preview, so what authors see is
 * what readers get. The HTML comes from BlogRepository.render_markdown.
 */

.blog-content {
  font-size: 1.02rem;
  line-height: 1.7;
}

.blog-content h2,
.blog-content h3 {
  margin-top: 1.5rem;
}

.blog-content ul,
.blog-content ol {
  padding-left: 1.25rem;
}

.blog-content pre {
  padding: 1rem;
  border-radius: 0.75rem;
  overflow: auto;
}

.blog-content code {
  padding: 0.1rem 0.3rem;
  border-radius: 0.25rem;
}

/* Inline images: natural size, never wider than the column. */
.blog-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.5rem auto;
  border-radius: 0.75rem;
}

/* GFM tables scroll sideways instead of widening the page on phones. */
.blog-content table {
  display: block;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  margin: 1.5rem 0;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.blog-content th,
.blog-content td {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--cc-border, #2e2e2e);
  text-align: left;
  vertical-align: top;
}

.blog-content thead th {
  background: var(--cc-surface-2, #242424);
  font-weight: 600;
}
