/* Ajustes do tema Manda a Real para o markup do Plone 6 (o CSS da origem foi escrito para o Plone 5). */

/* Ações do site no rodapé: <li> vindos do Plone (ul.actions-site_actions) dentro do #portal-siteactions do tema. */
#portal-siteactions li.portletItem { display: inline-block; }
#portal-siteactions li.portletItem a span { text-transform: uppercase; }

/* Botão "subir ao topo" (existia na origem, comentado no ensaio). O estilo1.css da origem deixa `top: -20px`
   (era `position: relative` no rodapé); com `position: fixed` isso esticava a caixa do topo ao rodapé e a seta
   aparecia no canto superior direito, parada. `top: auto` devolve o botão ao canto inferior direito. */
.botao-subir { position: fixed; top: auto; right: 24px; bottom: 24px; z-index: 50; }
.botao-subir img { width: 48px; height: 48px; display: block; }

/* Faixa superior padrão dos sites vinculados ao MPF (Design System — Padrão para sites vinculados, versão final
   de 20/07/2026, protótipo "Vinculados - Desktop/Mobile"): fundo brand-100, texto e marca em brand (#0b0261),
   alinhados à direita, sem botões. Marca no mínimo regulamentar de 60px de largura. */
.barra-vinculado { background: #c2c0d8; color: #0b0261; font-family: 'Inter', sans-serif; }
.barra-vinculado .container { display: flex; justify-content: flex-end; align-items: center; gap: 16px; min-height: 38px; padding: 4px 80px; box-sizing: border-box; }
.barra-vinculado-texto { font-size: 16px; line-height: 1.25; font-weight: 400; text-align: right; }
.barra-vinculado-texto strong { font-weight: 700; }
.barra-vinculado-marca { display: block; line-height: 0; flex: none; }
.barra-vinculado-marca img { width: 60px; height: auto; display: block; }
@media (max-width: 768px) {
  .barra-vinculado .container { padding: 4px 16px; min-height: 32px; gap: 10px; }
  .barra-vinculado-texto { font-size: 12px; }
}

/* Faixa inferior padrão dos sites vinculados (mesma fonte do Design System, "Barra Inferior Padrão"): copyright à
   esquerda e o botão "Gestão de Cookies" à direita, na mesma paleta da faixa superior. No celular o botão vira só
   ícone (o texto fica para o leitor de tela) e a faixa ganha 24px de folga embaixo, para a barra do navegador não
   cobrir o botão. Bug AB#11367. */
.barra-vinculado-rodape .container { justify-content: space-between; min-height: 48px; }
.barra-vinculado-copyright { font-size: 14px; line-height: 1.25; text-align: left; }
.barra-vinculado-cookies { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 8px; color: #0b0261; font-size: 14px; font-weight: 600; line-height: 1.25; text-decoration: none; border-radius: 4px; }
.barra-vinculado-cookies:hover, .barra-vinculado-cookies:focus { color: #0b0261; text-decoration: underline; }
.barra-vinculado-cookies:focus-visible { outline: 3px solid #0b0261; outline-offset: 2px; }
.barra-vinculado-cookies-icone { width: 24px; height: 24px; display: block; }
@media (max-width: 768px) {
  .barra-vinculado-rodape .container { padding: 4px 16px 24px; }
  .barra-vinculado-copyright { font-size: 12px; }
  .barra-vinculado-cookies { min-width: 40px; justify-content: center; padding: 0; }
  .barra-vinculado-cookies-texto { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
}

/* Menu do Plone 6 (navbar-nav) com o visual do menu do Plone 5. */
#portal-globalnav .nav-item { list-style: none; }
#portal-globalnav .nav-link { display: block; }

/* Listagem e página de notícia (markup do Plone 6). */
body.section-noticias .newsImageContainer { float: right; margin: 0 0 1rem 1rem; }
body.section-noticias .newsImageContainer img { max-width: 200px; height: auto; }
body.section-noticias .documentDescription { font-weight: 600; margin-bottom: 1rem; }
body.section-noticias .tileImage img { width: 200px; height: auto; }

/* Botão de menu (mobile) só abaixo de 768px, como na origem. */
@media (min-width: 768px) { .plone-navbar-header, .plone-navbar-toggle { display: none !important; } }

/* Telas do próprio Plone 6 (busca, contato, mapa do site, login) dentro do tema: o CSS do Plone 6 vive no
   tema Barceloneta (Bootstrap 5) e não é carregado aqui, então os dropdowns de "Filtrar os resultados" e
   "Ordenar por" da busca precisam deste mínimo de Bootstrap 5 para abrir. */
.dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; z-index: 1000; min-width: 12rem; padding: .5rem 0; margin: .125rem 0 0; background: #fff; border: 1px solid rgba(0,0,0,.15); border-radius: .25rem; box-shadow: 0 .5rem 1rem rgba(0,0,0,.15); list-style: none; }
.dropdown-menu.show { display: block; }
.dropdown-menu-md-end { right: 0; }
.dropdown-item { display: block; width: 100%; padding: .25rem 1rem; color: #212529; text-decoration: none; white-space: nowrap; background: transparent; border: 0; text-align: left; }
.dropdown-item:hover, .dropdown-item.active { background: #f0e9f5; color: #5f2f7e; }
.dropdown-toggle::after { content: " ▾"; }
body.template-search #search-filter form, body.template-search .dropdown-menu form { padding: .5rem 1rem; }
body.template-search .form-check { display: block; margin: .25rem 0; }
body.template-search .form-check-input { margin-right: .4rem; }
body.template-search #search-results-bar, body.template-search nav.navbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin: .5rem 0 1rem; }
body.template-search nav.navbar ul { display: flex; gap: 1rem; list-style: none; padding: 0; margin: 0; }
body.template-search #search-results { border: 1px solid #ddd; border-radius: 4px; padding: 1rem 1.5rem; }
body.template-search .btn { display: inline-block; padding: .375rem .75rem; border: 1px solid #5f2f7e; border-radius: .25rem; color: #5f2f7e; text-decoration: none; background: #fff; }
body.template-search .btn-primary, body.template-search .btn.btn-primary { background: #5f2f7e; color: #fff; }
