/* ==========================================================================
   Notícia, páginas, comentários, edição digital
   ========================================================================== */

.poe-single { background: var(--poe-surface); padding: 24px 0 36px; }
.poe-single__grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
.poe-single__grid:not(.has-sidebar) .poe-article { max-width: 820px; margin-inline: auto; width: 100%; }
@media (min-width: 1024px) {
	.poe-single__grid.has-sidebar { grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: start; }
}
.poe-article { min-width: 0; }

.poe-article__head { margin-bottom: 18px; }
.poe-article__cat { min-height: 0; }
.poe-article__cat .poe-cat-label { font-size: 11px; }
.poe-article__title { margin: 4px 0 12px; color: var(--poe-link); font-size: 28px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; overflow-wrap: anywhere; }
@media (min-width: 768px) { .poe-article__title { font-size: 36px; } }
.poe-article__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.poe-meta { color: var(--poe-muted); font-size: 13px; margin: 0; }
.poe-meta__author { font-weight: 600; color: var(--poe-text); }

.poe-share { position: relative; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.poe-share__btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 36px; height: 36px; padding: 0;
	border: 0; border-radius: 50%; background: transparent; color: var(--poe-primary);
	text-decoration: none;
}
.poe-share__btn .poe-icon { width: 18px; height: 18px; }
.poe-share__btn:hover, .poe-share__btn:focus-visible { background: var(--poe-primary); color: #fff; }
.poe-share__status {
	position: absolute; right: 0; top: 100%; z-index: 5; margin-top: 4px; padding: 4px 10px;
	background: #1d1f23; color: #fff; border-radius: 3px; font-size: 12px; white-space: nowrap;
	opacity: 0; pointer-events: none; transition: opacity .2s;
}
.poe-share__status:empty { padding: 0; }
.poe-share__status.is-visible { opacity: 1; }

.poe-article__media { margin: 0 0 22px; }
.poe-article__media > .poe-img, .poe-article__media > img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--poe-radius); }
.poe-article__caption { margin-top: 8px; color: var(--poe-muted); font-size: 12px; line-height: 1.4; }

/* Vídeo sob demanda */
.poe-video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; border-radius: var(--poe-radius); }
.poe-video__media { position: absolute; inset: 0; }
.poe-video__media .poe-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.poe-video__play {
	position: absolute; top: 50%; left: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px;
	display: inline-flex; align-items: center; justify-content: center;
	border: 0; border-radius: 50%; background: rgba(0, 0, 0, .7); color: #fff;
	transition: background-color .15s, transform .15s;
}
.poe-video__play .poe-icon { width: 34px; height: 34px; margin-left: 4px; }
.poe-video__play:hover, .poe-video__play:focus-visible { background: var(--poe-primary); transform: scale(1.06); }
.poe-video__player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }

/* Texto */
.poe-prose { font-size: 17px; line-height: 1.7; overflow-wrap: anywhere; }
.poe-prose > p { margin: 0 0 1.15em; text-align: justify; hyphens: auto; }
.poe-prose a { color: var(--poe-link); text-underline-offset: 2px; }
.poe-prose h2, .poe-prose h3, .poe-prose h4 { margin: 1.6em 0 .55em; line-height: 1.25; color: var(--poe-text); }
.poe-prose h2 { font-size: 23px; }
.poe-prose h3 { font-size: 20px; }
.poe-prose h4 { font-size: 17px; }
.poe-prose ul, .poe-prose ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.poe-prose li { margin-bottom: .35em; }
.poe-prose blockquote, .poe-prose .wp-block-quote {
	margin: 1.6em 0; padding: 8px 20px; background: var(--poe-bg);
	border-left: 4px solid var(--poe-primary); font-style: italic;
}
.poe-prose blockquote p { margin: .5em 0; }
.poe-prose cite, .poe-prose .wp-block-quote cite { display: block; margin-top: 6px; color: var(--poe-muted); font-size: 14px; font-style: normal; }
.poe-prose figure { margin: 1.4em 0; max-width: 100%; }
.poe-prose img { height: auto; border-radius: var(--poe-radius); }
.poe-prose figcaption, .poe-prose .wp-element-caption, .poe-prose .wp-caption-text { margin-top: 6px; color: var(--poe-muted); font-size: 13px; line-height: 1.4; text-align: left; }
.poe-prose .alignleft { float: left; max-width: 50%; margin: .3em 1.2em 1em 0; }
.poe-prose .alignright { float: right; max-width: 50%; margin: .3em 0 1em 1.2em; }
.poe-prose .aligncenter { margin-inline: auto; display: block; }
.poe-prose .alignwide, .poe-prose .alignfull { max-width: 100%; margin-inline: 0; }
.poe-prose::after { content: ""; display: table; clear: both; }
.poe-prose table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 15px; }
.poe-prose th, .poe-prose td { padding: 8px 12px; border: 1px solid var(--poe-border); text-align: left; }
.poe-prose th { background: var(--poe-bg); }
.poe-prose .wp-block-table { overflow-x: auto; }
.poe-prose pre { overflow: auto; margin: 1.4em 0; padding: 14px 16px; background: #15171a; color: #eceef1; border-radius: var(--poe-radius); font-size: 14px; line-height: 1.55; }
.poe-prose code { font-size: .92em; }
.poe-prose iframe, .poe-prose video, .poe-prose embed { max-width: 100%; }
.poe-prose .wp-block-embed__wrapper { position: relative; }
.poe-prose hr { margin: 2em 0; border: 0; border-top: 1px solid var(--poe-border); }
.poe-page-links { margin: 1em 0; font-weight: 600; }
.poe-inline-ad { margin: 1.6em 0; clear: both; }
.poe-inline-ad .poe-ad { margin: 0; }

/* Autor responsável */
.poe-author-card {
	margin: 1.8em 0; padding: 16px 20px; background: var(--poe-bg);
	border-left: 4px solid var(--poe-primary); border-radius: 0 var(--poe-radius) var(--poe-radius) 0;
	font-size: 15px; line-height: 1.5; text-align: left; clear: both;
}
.poe-author-card__label { display: block; color: var(--poe-muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.poe-author-card__name { display: block; margin: 2px 0 8px; font-size: 18px; }
.poe-author-card__list { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; list-style: none; }
.poe-author-card__list a { color: var(--poe-link); text-decoration: none; font-weight: 500; }
.poe-author-card__list a:hover { text-decoration: underline; }

/* Tags */
.poe-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 26px 0 8px; padding-top: 16px; border-top: 1px solid var(--poe-border); }
.poe-tags__label { font-size: 12px; font-weight: 700; }
.poe-tags__list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.poe-tags__list a { display: inline-block; padding: 3px 10px; background: #111; color: #fff; font-size: 11px; line-height: 1.5; border-radius: 3px; text-decoration: none; }
.poe-tags__list a:hover { background: var(--poe-primary); }
:root[data-theme="dark"] .poe-tags__list a { background: #2d3036; }

/* Sidebar */
.poe-sidebar { display: grid; gap: 18px; align-content: start; min-width: 0; }
.poe-panel { background: var(--poe-bg); border-radius: var(--poe-radius); overflow: hidden; box-shadow: 0 1px 4px rgba(0, 0, 0, .06); }
.poe-panel__head { margin: 0; padding: 9px 14px; background: var(--poe-primary); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.poe-panel__body { padding: 4px 14px 8px; }
.poe-related-item { border-bottom: 1px solid var(--poe-border); }
.poe-related-item:last-child { border-bottom: 0; }
.poe-related-item__link { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 0; color: inherit; text-decoration: none; }
.poe-related-item__link:not(:has(.poe-related-item__media)) { grid-template-columns: minmax(0, 1fr); }
.poe-related-item__media { position: relative; display: block; overflow: hidden; aspect-ratio: 1; border-radius: 3px; background: #dcdde0; }
.poe-related-item__media .poe-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.poe-related-item__body { display: block; min-width: 0; }
.poe-related-item__title { display: block; color: var(--poe-link); font-size: 13px; font-weight: 700; line-height: 1.3; }
.poe-related-item__link:hover .poe-related-item__title { text-decoration: underline; }
.poe-related-item__excerpt { display: block; margin-top: 4px; color: var(--poe-muted); font-size: 12px; line-height: 1.4; }
.poe-discover { padding: 12px 14px; background: var(--poe-bg); border-radius: var(--poe-radius); }
.poe-discover__title { display: block; margin-bottom: 8px; color: var(--poe-muted); font-size: 12px; font-weight: 600; }
.poe-discover__list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.poe-discover__list a {
	display: inline-block; padding: 3px 10px; border: 1px solid color-mix(in srgb, var(--poe-blue) 30%, transparent);
	border-radius: 999px; background: color-mix(in srgb, var(--poe-blue) 8%, var(--poe-bg));
	color: var(--poe-link); font-size: 11px; font-weight: 600; text-decoration: none;
}
.poe-discover__list a:hover { background: var(--poe-blue); color: #fff; }
.poe-sidebar__ad .poe-ad { margin: 0; }

/* Comentários */
.poe-comments { margin-top: 34px; }
.poe-comments__title, .poe-comments__reply-title { margin: 0 0 8px; font-size: 22px; line-height: 1.25; }
.poe-comments__list, .poe-comments__list .children { margin: 0 0 20px; padding: 0; list-style: none; }
.poe-comments__list .children { margin: 12px 0 0 22px; }
.poe-comments__list .comment-body { margin-bottom: 12px; padding: 14px 16px; background: var(--poe-bg); border-radius: var(--poe-radius); font-size: 15px; overflow-wrap: anywhere; }
.poe-comments__list .comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.poe-comments__list .avatar { border-radius: 50%; }
.poe-comments__list .comment-metadata { margin: 2px 0 8px; font-size: 12px; }
.poe-comments__list .comment-metadata a { color: var(--poe-muted); }
.poe-comments__list .reply a { font-size: 12px; font-weight: 700; }
.poe-comments__closed { color: var(--poe-muted); }
.comment-form { display: grid; gap: 4px; }
.comment-form p { margin: 0 0 14px; }
.comment-notes { color: var(--poe-muted); font-size: 14px; }
.comment-form label { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 500; }
.comment-form .required { color: #b3261e; }
.comment-form textarea, .comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"] {
	display: block; width: 100%; padding: 10px 12px;
	border: 1px solid #b5b8bd; border-radius: 3px; background: var(--poe-bg); color: var(--poe-text); font-size: 15px;
}
.comment-form textarea:focus, .comment-form input:focus { border-color: var(--poe-primary); outline: 0; box-shadow: 0 0 0 3px color-mix(in srgb, var(--poe-primary) 25%, transparent); }
.comment-form textarea:user-invalid, .comment-form input:user-invalid { border-color: #b3261e; }
.comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; }
.comment-form-cookies-consent label { display: inline; margin: 0; font-weight: 400; }
.comment-form-cookies-consent input { margin-top: 4px; }
.comment-form .form-submit { margin: 6px 0 0; }
.comment-form .form-submit .submit { width: 100%; }
#cancel-comment-reply-link { margin-left: 8px; font-size: 13px; }

/* Edição digital */
.poe-edition { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.poe-edition__cover { max-width: 360px; width: 100%; margin-inline: auto; position: relative; aspect-ratio: 420 / 580; overflow: hidden; border-radius: 3px; box-shadow: 0 6px 24px rgba(0, 0, 0, .25); background: #dcdde0; }
.poe-edition__cover .poe-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.poe-edition__info { display: grid; gap: 14px; justify-items: start; }
.poe-edition__info .poe-btn-outline { width: auto; padding-inline: 28px; }
@media (min-width: 768px) { .poe-edition { grid-template-columns: 360px minmax(0, 1fr); gap: 40px; } }

@media (max-width: 767.98px) {
	.poe-prose .alignleft, .poe-prose .alignright { float: none; max-width: 100%; margin: 1em 0; }
}

/* Formulários dentro do conteúdo (ex.: Contact Form 7) */
.poe-prose input[type="text"], .poe-prose input[type="email"], .poe-prose input[type="tel"], .poe-prose input[type="url"],
.poe-prose input[type="number"], .poe-prose select, .poe-prose textarea {
	display: block; width: 100%; max-width: 100%; padding: 10px 12px;
	border: 1px solid #b5b8bd; border-radius: 3px; background: var(--poe-bg); color: var(--poe-text); font-size: 15px;
}
.poe-prose textarea { min-height: 140px; }
.poe-prose label { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 500; }
.poe-prose input[type="submit"], .poe-prose .wpcf7-submit {
	padding: 12px 28px; border: 0; border-radius: 999px; background: var(--poe-primary); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer;
}
.poe-prose .wpcf7-not-valid-tip { color: #b3261e; font-size: 13px; }
.poe-prose .wpcf7-response-output { margin: 1em 0; padding: 10px 14px; border: 2px solid var(--poe-primary); border-radius: 3px; }
