/* Tipografía del contenido Markdown (.post-content): la usan el post público y la vista previa del panel. */

.post-content {
  font-family: var(--font-serif);
  font-size: 1.14rem;
  line-height: 1.75;
  overflow-wrap: break-word;
}
.post-content > * + * { margin-top: 1.1em; }
.post-content h1, .post-content h2, .post-content h3, .post-content h4 {
  line-height: 1.3;
  margin-top: 1.8em;
  color: var(--text-main);
  font-weight: 700;
}
.post-content h1 { font-size: 1.75rem; }
.post-content h2 { font-size: 1.45rem; }
.post-content h3 { font-size: 1.2rem; }
.post-content h4 { font-size: 1.05rem; }
.post-content ul, .post-content ol { padding-left: 1.5em; }
.post-content li + li { margin-top: 0.35em; }
.post-content img { max-width: 100%; height: auto; border-radius: 4px; display: block; margin: 1.6em auto; }
.post-content blockquote {
  border-left: 3px solid var(--primary);
  padding: 2px 0 2px 20px;
  color: var(--text-secondary);
  font-style: italic;
}
.post-content code {
  font-family: var(--font-mono);
  font-size: 0.82em;
  background: var(--code-bg);
  border: 1px solid var(--border);
  padding: 1px 5px;
  border-radius: 3px;
}
.post-content pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  padding: 16px 18px;
  border-radius: 4px;
  overflow-x: auto;
  line-height: 1.5;
}
.post-content pre code { background: none; border: none; padding: 0; font-size: 0.85rem; }
.post-content table {
  border-collapse: collapse;
  width: 100%;
  display: block;
  overflow-x: auto;
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.post-content th, .post-content td { border-bottom: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.post-content th { border-bottom: 2px solid var(--text-main); font-weight: 600; }
.post-content hr { border: none; border-top: 1px solid var(--border); margin: 2.4em 0; }
.post-content a { text-decoration-thickness: 1px; }

@media (max-width: 700px) {
  .post-content { font-size: 1.06rem; line-height: 1.7; }
  .post-content pre { margin-left: -16px; margin-right: -16px; border-radius: 0; border-left: none; border-right: none; }
}
