/* Conteúdo editorial; preserva os estilos dos cabeçalhos, menus e chamadas. */
.genio-entry-content {
  font-size: 1.125rem;
  line-height: 1.75;
  overflow-wrap: break-word;
}
.genio-entry-content :where(p, li, blockquote) { line-height: 1.75; }
.genio-entry-content :where(h2, h3, h4, h5, h6) {
  line-height: 1.3;
  margin-block: 2em 0.75em;
  scroll-margin-top: 9rem;
}
.genio-entry-content :where(ul, ol) { padding-inline-start: 1.5em; }
.genio-entry-content li + li { margin-block-start: 0.4em; }
.genio-entry-content img { max-width: 100%; height: auto; }
.genio-entry-content :where(iframe, video) { max-width: 100%; }
.genio-entry-content .wp-block-table { overflow-x: auto; }
.genio-table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
.genio-table-scroll:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.genio-entry-content table { border-collapse: collapse; max-width: 100%; }
.genio-entry-content :where(th, td) { padding: 0.65em; vertical-align: top; }
.genio-entry-content :where(figcaption, .wp-caption-text) {
  font-size: 0.875em;
  line-height: 1.5;
  margin-block-start: 0.5em;
}
.genio-entry-content :where(pre, code) { overflow-wrap: normal; }
.genio-entry-content pre { overflow-x: auto; max-width: 100%; }
.genio-entry-content a:not(.wp-block-button__link) {
  text-underline-offset: 0.15em;
}
/* As fórmulas copiadas preservam MathML; evita exibir também o HTML de apoio. */
.genio-entry-content .katex:has(.katex-mathml) > .katex-html { display: none !important; }
.genio-entry-content .katex:not(:has(.MathJax, .MathJax_SVG, mjx-container)) > .katex-mathml {
  position: static !important;
  clip: auto !important;
  clip-path: none !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
}
.genio-entry-content .katex-display { display: block; max-width: 100%; overflow-x: auto; }
.genio-entry-content .genio-recovered-formula { max-width: 100%; }
@media (max-width: 767px) {
  .genio-entry-content { font-size: 1rem; }
  .genio-entry-content :where(h2, h3, h4, h5, h6) { scroll-margin-top: 7rem; }
}
