.ambient-shadow { box-shadow: 0px 4px 20px rgba(0, 75, 135, 0.08); }
.text-shadow-sm { text-shadow: 0 1px 2px rgba(0,0,0,0.5); }
/* Banners do Ad Manager (padrão t82/coligados): vazio some, com banner centraliza e limita à largura */
.am-box { display: flex; justify-content: center; width: 100%; }
.am-box:empty { display: none; }
.am-box img, .am-box iframe { max-width: 100%; height: auto; }
.dropdown:hover > .dropdown-panel,
.dropdown:focus-within > .dropdown-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-panel { opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s ease, transform .18s ease, visibility .18s; }
.slide { transition: opacity .7s ease; }
:focus-visible { outline: 2px solid #e9c176; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition-duration: .01ms !important; animation-duration: .01ms !important; } }

/* Corpo da notícia (HTML vindo do editor) */
.article-text { font-size: 18px; line-height: 30px; color: #1a1c1e; overflow-wrap: anywhere; }
.article-text > * + * { margin-top: 1.1em; }
.article-text p:empty { display: none; }
.article-text a { color: #004b87; text-decoration: underline; text-underline-offset: 2px; }
.article-text a:hover { color: #775a19; }
.article-text strong, .article-text b { font-weight: 600; }
.article-text h2, .article-text h3, .article-text h4 { font-family: Manrope, sans-serif; font-weight: 700; color: #003461; line-height: 1.3; margin-top: 1.6em; }
.article-text h2 { font-size: 26px; } .article-text h3 { font-size: 22px; } .article-text h4 { font-size: 19px; }
.article-text ol { padding-left: 1.4em; list-style: decimal; }
/* Listas: marcador redondo dourado (ex.: significados do símbolo em /ad-alagoas/institucional) */
.article-text ul { list-style: none; padding-left: 0; display: flex; flex-direction: column; gap: .7em; }
.article-text ul > li { position: relative; padding-left: 1.9em; }
.article-text ul > li::before { content: ""; position: absolute; left: 0; top: .42em; width: 1.05em; height: 1.05em; border-radius: 9999px; border: 3px solid #e9c176; background: #fff; box-shadow: 0 0 0 2px rgba(0, 52, 97, .08); }
.article-text ul > li > strong:first-child { color: #003461; }
.article-text blockquote { border-left: 4px solid #e9c176; padding: .25em 0 .25em 1em; color: #424750; font-style: italic; }
.article-text img { max-width: 100% !important; height: auto !important; border-radius: .5rem; display: inline-block; }
.article-text iframe { display: block; width: 100% !important; height: auto !important; aspect-ratio: 16 / 9; border: 0; border-radius: .5rem; }
.article-text table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.article-text td, .article-text th { border: 1px solid #c2c6d1; padding: .4em .6em; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; background: rgba(10, 14, 20, .92); padding: 56px 16px; }
.lightbox.is-open { display: flex; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lightbox img { max-width: min(1200px, 100%); max-height: calc(100vh - 140px); object-fit: contain; border-radius: .5rem; }
.lightbox figcaption { color: #e2e2e5; font-size: 14px; text-align: center; max-width: 900px; }
.lightbox button { position: absolute; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 9999px; color: #fff; background: rgba(255, 255, 255, .12); transition: background .15s; }
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lightbox-close { top: 12px; right: 12px; }
.lightbox-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox.is-single .lightbox-prev, .lightbox.is-single .lightbox-next { display: none; }
.lightbox-count { position: absolute; top: 22px; left: 20px; color: #e2e2e5; font-size: 14px; }

/* Texto justificado vindo do editor legado abre "rios" entre palavras em tela estreita */
@media (max-width: 639px) {
    .article-text [style*="justify"] { text-align: left !important; }
}

/* Menu ativo (marcado via JS, ver scripts.js) */
[data-menu="desktop"] > li > .is-active { background: rgba(255, 255, 255, .12); box-shadow: inset 0 -3px 0 #e9c176; }
[data-menu="desktop"] .dropdown-panel a.is-active { color: #003461; background: #f3f3f6; font-weight: 600; }
[data-menu="mobile"] .is-active { color: #e9c176; }

/* Fundo fixo colado do editor legado (style="background-color: rgb(255,255,255)") vira faixa branca */
.article-text [style*="background-color"] { background-color: transparent !important; }

/* Missões: textos do editor antigo. Parágrafos com várias fotos (fichas dos missionários) viram grade. */
.missoes-texto img { border-radius: 8px; height: auto; }
.missoes-texto .missoes-fichas { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }
.missoes-texto .missoes-fichas > a, .missoes-texto .missoes-fichas > img { display: block; }
.missoes-texto .missoes-fichas img { width: 100%; aspect-ratio: 5 / 7; object-fit: cover; box-shadow: 0 2px 8px rgba(0, 52, 97, .12); transition: transform .3s; }
.missoes-texto .missoes-fichas a img { outline: 2px solid transparent; }
.missoes-texto .missoes-fichas a:hover img { transform: translateY(-2px); outline-color: #e9c176; }
.missoes-texto h2 { font-family: Manrope, sans-serif; font-size: 22px; line-height: 30px; font-weight: 700; color: #003461; text-align: left; }
.missoes-texto h3 { font-family: Manrope, sans-serif; font-size: 18px; font-weight: 700; color: #003461; }
.missoes-texto hr { border: 0; border-top: 1px solid #c3c6d1; }
