/* Corpo do artigo (.entry-content) — compatível com Gutenberg e HTML importado */
.entry-content { font-size: var(--pe-body); line-height: var(--pe-lh); color: var(--pe-text); overflow-wrap: break-word; word-wrap: break-word; min-width: 0; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content p { margin: 0 0 1.25em; }
.entry-content > p:not([class*="has-text-align"]):not(.pe-cta):not(.has-text-align-center) {
	text-align: var(--pe-justify); hyphens: auto; -webkit-hyphens: auto;
}
.entry-content .has-text-align-center { text-align: center; }
.entry-content .has-text-align-right { text-align: right; }
.entry-content .has-text-align-left { text-align: left; }

.entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5, .entry-content h6 {
	color: var(--pe-text); text-align: left; hyphens: manual; scroll-margin-top: calc(var(--pe-sticky-h) + 24px);
}
.entry-content h2 { font-size: var(--pe-h2); font-weight: var(--pe-hw); line-height: 1.25; margin: 1.9em 0 0.65em; }
.entry-content h3 { font-size: calc(var(--pe-h2) * 0.78); font-weight: var(--pe-hw); line-height: 1.3; margin: 1.6em 0 0.55em; }
.entry-content h4 { font-size: 1.05em; font-weight: var(--pe-hw); margin: 1.4em 0 0.5em; }
.entry-content h5, .entry-content h6 { font-size: 1em; font-weight: var(--pe-hw); margin: 1.2em 0 0.4em; }
.entry-content :is(h2, h3, h4)[style], .entry-content :is(h2, h3, h4) span[style], .entry-content :is(h2, h3, h4) strong[style] {
	color: inherit !important; background: transparent !important; font-size: inherit !important; font-family: inherit !important;
}

.entry-content a { color: var(--pe-primary); text-decoration: underline; text-underline-offset: 2px; }
.entry-content a:hover { color: var(--pe-primary-hover); }
.entry-content a[target="_blank"]:not(.pe-resp-author a):not(.pe-cta a)::after { content: "\2197"; font-size: 0.72em; margin-left: 2px; text-decoration: none; display: inline-block; }
.entry-content strong, .entry-content b { font-weight: 700; }
.entry-content mark, .entry-content .has-inline-background, .entry-content .is-style-pe-highlight {
	background: var(--pe-mark-bg); color: var(--pe-mark-text); padding: 0.05em 0.2em; border-radius: 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

.entry-content ul, .entry-content ol { margin: 0 0 1.25em; padding-left: 1.5em; }
.entry-content li { margin: 0.4em 0; padding-left: 0.2em; }
.entry-content li > ul, .entry-content li > ol { margin: 0.4em 0; }

.entry-content blockquote {
	margin: 1.6em 0; padding: 14px 22px; border-left: 4px solid var(--pe-primary); background: var(--pe-surface-2);
	font-style: italic; color: var(--pe-text);
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote cite { display: block; font-size: 0.85em; font-style: normal; color: var(--pe-muted); margin-top: 8px; }

.entry-content figure { margin: 1.7em 0; max-width: 100%; }
.entry-content img { max-width: 100%; height: auto; }
.entry-content figure img { display: block; margin-inline: auto; }
.entry-content figcaption, .entry-content .wp-caption-text, .entry-content .wp-element-caption {
	text-align: center; font-size: 12.5px; line-height: 1.5; color: var(--pe-muted); margin-top: 8px; hyphens: manual;
}
.entry-content .alignleft { float: left; margin: 0.3em 1.4em 1em 0; max-width: 50%; }
.entry-content .alignright { float: right; margin: 0.3em 0 1em 1.4em; max-width: 50%; }
.entry-content .aligncenter { display: block; margin-inline: auto; text-align: center; }
.entry-content .alignwide, .entry-content .alignfull { max-width: 100%; }
.entry-content::after { content: ""; display: block; clear: both; }

/* Vídeos e embeds */
.pe-video, .entry-content .wp-block-embed__wrapper { position: relative; width: 100%; max-width: 100%; }
.pe-video { aspect-ratio: 16 / 9; margin: 1.7em 0; background: #000; }
.pe-video iframe, .pe-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.entry-content iframe[src*="youtube"], .entry-content iframe[src*="youtu.be"], .entry-content iframe[src*="vimeo"], .entry-content iframe[src*="dailymotion"] {
	display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0;
}
.pe-video iframe[src*="youtube"], .pe-video iframe[src*="vimeo"] { height: 100%; aspect-ratio: auto; }
.entry-content iframe { max-width: 100%; }
.entry-content video { display: block; width: 100%; height: auto; margin-block: 1.5em; }
.entry-content .wp-block-embed { margin: 1.7em 0; }
.entry-content .wp-block-embed.wp-has-aspect-ratio .wp-block-embed__wrapper { aspect-ratio: 16 / 9; }
.entry-content .wp-block-embed.wp-has-aspect-ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.entry-content .wp-block-embed .pe-video { margin: 0; }
.entry-content .wp-block-embed.wp-has-aspect-ratio .pe-video { position: absolute; inset: 0; aspect-ratio: auto; }

/* Tabelas e código */
.entry-content table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1.6em 0; font-size: 0.92em; -webkit-overflow-scrolling: touch; }
.entry-content th, .entry-content td { border: 1px solid var(--pe-border-strong); padding: 10px 12px; text-align: left; vertical-align: top; }
.entry-content th { background: var(--pe-surface-2); font-weight: 700; }
.entry-content pre { margin: 1.6em 0; padding: 16px 18px; overflow-x: auto; background: #1d1d23; color: #f1f1f4; border-radius: 6px; font-size: 14px; line-height: 1.55; white-space: pre; text-align: left; max-width: 100%; }
.entry-content code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; }
.entry-content :not(pre) > code { background: var(--pe-surface-2); padding: 0.12em 0.4em; border-radius: 4px; }
.entry-content hr { border: 0; border-top: 1px solid var(--pe-border-strong); margin: 2em 0; }

/* Avisos / destaques de bloco */
.entry-content .is-style-pe-notice, .entry-content .pe-callout {
	margin: 1.6em 0; padding: 16px 20px; border-left: 4px solid var(--pe-primary); background: var(--pe-surface-2); border-radius: 0 6px 6px 0;
}
.entry-content .is-style-pe-notice > :last-child { margin-bottom: 0; }

/* Índice de conteúdo */
.pe-toc { margin: 1.8em 0 1.4em; }
.pe-toc__details { border: 0; }
.pe-toc__title { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; font-family: var(--pe-font-heading); font-size: var(--pe-h2); font-weight: var(--pe-hw); line-height: 1.25; color: var(--pe-text); }
.pe-toc__title::-webkit-details-marker { display: none; }
.pe-toc__title::after { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform 0.2s; margin-left: 2px; flex: none; }
.pe-toc__details[open] > .pe-toc__title::after { transform: rotate(-135deg) translateY(-3px); }
.pe-toc__list { margin: 12px 0 0; padding-left: 1.3em; font-size: 15px; line-height: 1.8; list-style: disc; }
.pe-toc__list .pe-toc__sub { list-style: circle; margin: 2px 0 4px; padding-left: 1.3em; }
.pe-toc__item { margin: 0.15em 0; }
.pe-toc__item a { color: var(--pe-text); text-decoration: none; }
.pe-toc__item a:hover { color: var(--pe-primary); text-decoration: underline; }

/* CTA de canais */
.pe-cta { text-align: center; margin: 1.7em 0; }
.pe-cta a { display: inline-flex; align-items: center; gap: 8px; color: var(--cta, var(--pe-primary)); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; font-size: 0.95em; }
.pe-cta a::after { content: none !important; }
.pe-cta--wa a { color: var(--cta, #1f9d55); }
.pe-cta--tg a { color: var(--cta, #229ed9); }
.pe-cta a:hover { filter: brightness(0.85); }

/* Autor responsável (<pre> reconhecido) */
.pe-resp-author { display: flex; align-items: flex-start; gap: 16px; margin: 2em 0; padding: 18px 20px; border: 1px solid var(--pe-border-strong); border-radius: 10px; background: var(--pe-surface-2); text-align: left; }
.pe-resp-author__avatar { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--pe-primary); color: #fff; font-family: var(--pe-font-heading); font-size: 22px; font-weight: 700; }
.pe-resp-author__body { min-width: 0; }
.pe-resp-author__label { margin: 0 0 2px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pe-muted); text-align: left; }
.pe-resp-author__name { margin: 0 0 8px; font-family: var(--pe-font-heading); font-size: 19px; font-weight: 600; line-height: 1.2; text-align: left; }
.entry-content .pe-resp-author__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.entry-content .pe-resp-author__list li { margin: 0; padding: 0; }
.pe-resp-author__list a { display: inline-flex; align-items: center; gap: 8px; color: var(--pe-primary); text-decoration: none; font-size: 15px; word-break: break-word; }
.pe-resp-author__list a:hover { text-decoration: underline; }
.entry-content .pe-resp-author a::after { content: none; }
@media (max-width: 480px) { .pe-resp-author { flex-direction: column; } }
