/* Ajustes do WordPress sobre o visual do portal (portal.css). */

/* Elementos ocultos que o portal controlava pelo React */
.drawer[hidden], .cookie[hidden], [data-panel][hidden], .form-msg[hidden] { display: none !important; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.btn-sm { min-height: 38px; font-size: 13px; }
body.oma-lock { overflow: hidden; }

/* Fotos preenchem o quadro (no portal, o Next.js fazia isso com "fill") */
.img-box > img, .hero-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.list-h .img-box, .mini-list .img-box, .video-small .img-box { position: relative; }

/* Barra de administração do WordPress (usuário logado) */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* Logotipo em imagem (Identidade do site) */
.logo-custom a { display: flex; }
.logo-custom img { max-height: 56px; width: auto; }
@media (max-width: 767px) { .logo-custom img { max-height: 40px; } }

/* Menus gerados pelo WordPress */
.navbar li, .footer-grid li { list-style: none; }
.navbar .current-menu-item > a, .navbar .current-category-ancestor > a { color: var(--green); box-shadow: inset 0 -3px 0 var(--green); }

/* Conteúdo das matérias e páginas (blocos do editor do WordPress) */
.prose > * { margin: 0; }
.prose img { height: auto; border-radius: 6px; }
.prose figure { margin: 0; }
.prose .wp-block-image, .prose .wp-caption { max-width: 100%; }
.prose .wp-block-image figcaption, .prose .wp-caption-text { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--muted); text-align: left; }
.prose .wp-block-quote, .prose blockquote { margin: 6px 0; padding: 0 0 0 20px; border-left: 4px solid var(--green); display: block; }
.prose .wp-block-quote p, .prose blockquote p { font-size: 22px; line-height: 1.4; font-weight: 600; color: var(--ink); }
.prose .wp-block-quote cite, .prose blockquote cite { display: block; margin-top: 8px; font-size: 14px; font-style: normal; font-weight: 600; color: var(--muted); }
.prose .wp-block-table { overflow-x: auto; }
.prose .wp-block-embed iframe, .prose iframe { width: 100%; max-width: 100%; }
.prose .wp-block-embed.is-type-video iframe, .prose .wp-block-embed-youtube iframe { aspect-ratio: 16 / 9; height: auto; }
.prose .wp-block-separator { border: 0; border-top: 1px solid var(--line); }
.prose .wp-block-group.callout { background: var(--surface); border-radius: 8px; padding: 20px 22px; }
.prose .wp-block-group.callout strong:first-child { display: block; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--green); margin-bottom: 6px; }
.prose .alignleft { float: left; margin: 0 20px 12px 0; }
.prose .alignright { float: right; margin: 0 0 12px 20px; }
.prose .aligncenter { margin-left: auto; margin-right: auto; }
.prose .wp-block-gallery { gap: 10px; }
.prose .ad { margin: 8px 0; }
.page-links { margin-top: 24px; font-weight: 600; }

/* Paginação gerada pelo WordPress */
.pagination .page-numbers { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); border-radius: 8px; font-weight: 600; padding: 0 12px; }
.pagination .page-numbers.current { background: var(--green); color: #fff; border-color: var(--green); }
.pagination .page-numbers.dots { border: 0; min-width: 20px; padding: 0; }

/* Busca: seletor de editoria */
.filters select { height: 44px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 10px; background: #fff; font-size: 15px; }

/* Comentários */
.comment-list .children { list-style: none; margin: 0 0 0 24px; padding: 0; }
.comment-respond { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.comment-respond .comment-reply-title { font-size: 18px; font-weight: 800; }
.comment-form { display: flex; flex-direction: column; gap: 12px; }
.comment-form p { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.comment-form input[type='text'], .comment-form input[type='email'], .comment-form input[type='url'], .comment-form textarea { border: 1px solid var(--line-2); border-radius: 8px; padding: 10px 12px; font-size: 15px; background: #fff; }
.comment-form .comment-form-cookies-consent { flex-direction: row; align-items: flex-start; font-weight: 500; }
.comment-form .form-submit { flex-direction: row; }
.comment-form .submit { min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--radius); background: var(--green); color: #fff; font-weight: 700; cursor: pointer; }
.comment .comment-reply-link { color: var(--green); font-weight: 700; }

/* Widgets do Elementor: ocupam a largura da coluna do Elementor */
.elementor-widget-container > .hero3, .elementor-widget-container > .cat-columns { padding-top: 0; }
.oma-el-section .section-head { margin-top: 0; }
.elementor-widget-container .newsletter { margin-top: 0; }

/* Faixa da newsletter: cor sólida de reserva (o Elementor adia imagens/gradientes de fundo até a seção aparecer) */
.newsletter { background-color: var(--green); }

/* Coluna lateral da matéria: "Mais da editoria" e "Últimas notícias" (preenche a lateral) */
.aside-more { display: flex; flex-direction: column; }
.aside-more .section-head { margin-bottom: 8px; }
.aside-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.aside-card:last-child { border-bottom: 0; }
.aside-card .img-box { aspect-ratio: 4 / 3; border-radius: 6px; }
.aside-card-t { font-size: 14px; font-weight: 700; line-height: 1.35; }
.aside-card-t:hover { text-decoration: underline; text-decoration-color: var(--green-logo); text-underline-offset: 3px; }
.aside-latest .section-head { margin-bottom: 4px; }
.aside-latest .latest-list.compact .latest-item { padding: 10px 0; }
.aside-latest .latest-list.compact .t { font-size: 14px; }
.article-layout .aside .aside-sticky { display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 1023px) { .aside-latest { display: none; } }

/* Blocos do portal dentro do texto de uma página (atalho [oma_mais_noticias]) */
.prose .oma-more a, .prose .oma-more a:hover { color: inherit; text-decoration: none; }
.prose .oma-more .kicker { color: var(--green); }
.prose .oma-more .btn { color: var(--ink); }
.prose .img-box > img { height: 100%; border-radius: 0; }
.prose .oma-more .section-head h2 { margin-top: 0; }
