/* Fixes for user-generated markdown content */
.article-body pre {
  overflow-x: auto;
}

/* Full-file source code pages */
.code-page pre {
  margin: 0;
  overflow-x: auto;
}

.code-page pre code {
  display: block;
  padding: 1.5rem;
  line-height: 1.6;
}

.article-body table {
  display: block;
  overflow-x: auto;
  white-space: nowrap;
}

.article-body img {
  max-width: 100%;
  height: auto;
}

.article-body code {
  word-break: break-word;
}

/* python-markdown emits codehilite-free fenced blocks; keep inline code subtle */
.article-body :not(pre) > code {
  background: #eef2ff;
  color: #4338ca;
  padding: 0.15em 0.4em;
  border-radius: 0.35em;
  font-weight: 500;
}

.article-body :not(pre) > code::before,
.article-body :not(pre) > code::after {
  content: none;
}
