/*
Theme Name: Band Maranhão
Theme URI: https://bandma.com.br/
Author: Redação Band
Description: Tema próprio da praça do Maranhão (visual v2, verde #bandmaranhão), separado do tema Band Nordeste usado pelas outras praças da rede. Usa os plugins Band já instalados — Banners (publicidade), Colunistas, Clima, WhatsApp, Assinantes, Audiência, Rede (municípios e contato), Sorteio, Vagas e Vídeo — e mantém Aparência → Widgets e Menus. Capa com Band Play (YouTube), Jogo Aberto, Band Promo e rádio; página da matéria; páginas dos programas em /play/nome-do-programa/.
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: band-maranhao
Tags: news, classic, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, translation-ready
*/

/* O visual vem de assets/css/tema.css (Tailwind compilado a partir de assets/src/tema.css).
   Aqui ficam só as classes que o próprio WordPress injeta no conteúdo. */

.alignleft { float: left; margin: .4em 1.6em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.6em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide, .alignfull { max-width: none; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12px; color: #66717b; margin-top: .5em; }
.sticky {}
.gallery-caption {}
.bypostauthor > .comment-body .comment-author { color: #08763f; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.screen-reader-text:focus {
	clip: auto; width: auto; height: auto; z-index: 100000;
	background: #fff; color: #182027; padding: 12px 20px; left: 8px; top: 8px;
}

/* ------------------------------------------------------------------
 * Submenus no celular (Play e itens do menu com filhos) — tema.js
 * ------------------------------------------------------------------ */
#nav-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: rgba(15, 20, 22, .45); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
#nav-sheet.is-open { opacity: 1; pointer-events: auto; }
#nav-sheet .nav-sheet__box { max-height: 100%; overflow-y: auto; background: #fff; border-top: 2px solid #08763f; box-shadow: 0 24px 48px rgba(24, 32, 39, .18); padding: 12px 16px 18px; transform: translateY(-8px); transition: transform .2s ease; }
#nav-sheet.is-open .nav-sheet__box { transform: none; }
#nav-sheet .nav-sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
#nav-sheet .nav-sheet__all { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #08763f; }
#nav-sheet .nav-sheet__close { width: 36px; height: 36px; border-radius: 999px; font-size: 26px; line-height: 1; color: #34404a; background: #f1f5f4; }
#nav-sheet .nav-sheet__body > .grid { grid-template-columns: 1fr 1fr; }
#nav-sheet .nav-sheet__body a { width: 100%; }
@media (min-width: 1024px) { #nav-sheet { display: none; } }
@media (max-width: 1023px) {
	#nav-links > .group > a[aria-haspopup] > svg { display: block !important; }
	#nav-links > .group > a[aria-expanded="true"] > svg { transform: rotate(180deg); }
}
/* Menu lateral: item com subitens */
.bma-sub[open] > summary .bma-sub-seta { transform: rotate(180deg); }
.bma-sub-lista { border-left: 2px solid #dfe6e4; padding-left: 12px; }
.bma-sub > summary::-webkit-details-marker { display: none; }

/* Município sem portal: aviso "em breve" (tema.js) */
#muni-em-breve { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(8, 20, 16, .6); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
#muni-em-breve.is-open { opacity: 1; pointer-events: auto; }
#muni-em-breve .meb-caixa { width: 100%; max-width: 400px; border-radius: 16px; background: #fff; padding: 28px 24px 22px; text-align: center; box-shadow: 0 30px 60px rgba(0, 0, 0, .3); transform: translateY(8px); transition: transform .2s ease; }
#muni-em-breve.is-open .meb-caixa { transform: none; }
#muni-em-breve .meb-icone { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 999px; background: #e8f5ee; font-size: 24px; }
#muni-em-breve .meb-selo { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #08763f; }
#muni-em-breve .meb-titulo { margin: 4px 0 8px; font-size: 24px; font-weight: 800; line-height: 1.15; color: #171d21; }
#muni-em-breve .meb-texto { font-size: 15px; line-height: 1.5; color: #4f5b62; }
#muni-em-breve .meb-ok { margin-top: 18px; width: 100%; min-height: 44px; border-radius: 999px; background: #08763f; color: #fff; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
#muni-em-breve .meb-ok:hover { background: #0b9b54; }

/* Band Promo nunca dentro do player de vídeo da matéria (o vídeo cobria o preço). */
.bandvid__palco .bpromo { display: none !important; }
.bandvid + .bpromo, .bandvid ~ .bpromo { position: relative; z-index: 1; }
