/* Article page typography and readability */

.page-article .article-meta {
  color: var(--pm-muted);
}

.page-article .content-body :is(h2, h3, h4) {
  margin-top: 1.6rem;
}

.page-article .content-body p,
.page-article .content-body li {
  max-width: 74ch;
}

.page-article .article-page .h1 {
  font-size: 2.986rem;
}

.page-article nav[aria-label="Article navigation"] .btn {
  white-space: normal;
  text-wrap: balance;
}

@media (max-width: 767px) {
  .page-article .article-page .h1 {
    font-size: 2.4rem;
  }
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
  color: #374151;
  background: #f3f4f6;
  padding: 0.15rem 0.35rem;
  border-radius: 0.3rem;
}

pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #1f2937;
  background: #f8fafc;
  padding: 1rem 1.15rem;
  border-radius: 0.75rem;
  overflow-x: auto;
  border: 1px solid #e5e7eb;
  margin: 1.5rem 0;
}

pre code {
  color: inherit;
  background: transparent;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
  white-space: pre;
}
