/* =============================================================================
   HTML5 Boilerplate CSS: h5bp.com/css
   ========================================================================== */

article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display: block; }
audio, canvas, video { display: inline-block; *display: inline; *zoom: 1; }
audio:not([controls]) { display: none; }
[hidden] { display: none; }

html { font-size: 100%; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
html, button, input, select, textarea { font-family: sans-serif; color: #222; }
body { margin: 0; font-size: 1em; line-height: 1.4; }

::-moz-selection { background: #fe57a1; color: #fff; text-shadow: none; }
::selection { background: #fe57a1; color: #fff; text-shadow: none; }

a { color: #00e; }
a:visited { color: #551a8b; }
a:hover { color: #06e; }
a:focus { outline: thin dotted; }
a:hover, a:active { outline: 0; }

abbr[title] { border-bottom: 1px dotted; }
b, strong { font-weight: bold; }
blockquote { margin: 1em 40px; }
dfn { font-style: italic; }
hr { display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0; }
ins { background: #ff9; color: #000; text-decoration: none; }
mark { background: #ff0; color: #000; font-style: italic; font-weight: bold; }
pre, code, kbd, samp { font-family: monospace, serif; _font-family: 'courier new', monospace; font-size: 1em; }
pre { white-space: pre; white-space: pre-wrap; word-wrap: break-word; }
q { quotes: none; }
q:before, q:after { content: ""; content: none; }
small { font-size: 85%; }

sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sup { top: -0.5em; }
sub { bottom: -0.25em; }

ul, ol { margin: 1em 0; padding: 0 0 0 40px; }
dd { margin: 0 0 0 40px; }
nav ul, nav ol { list-style: none; list-style-image: none; margin: 0; padding: 0; }

img { border: 0; -ms-interpolation-mode: bicubic; vertical-align: middle; }

svg:not(:root) { overflow: hidden; }

figure { margin: 0; }

form { margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; }
label { cursor: pointer; }
legend { border: 0; *margin-left: -7px; padding: 0; white-space: normal; }
button, input, select, textarea { font-size: 100%; margin: 0; vertical-align: baseline; *vertical-align: middle; }
button, input { line-height: normal; }
button, input[type="button"], input[type="reset"], input[type="submit"] { cursor: pointer; -webkit-appearance: button; *overflow: visible; }
button[disabled], input[disabled] { cursor: default; }
input[type="checkbox"], input[type="radio"] { box-sizing: border-box; padding: 0; *width: 13px; *height: 13px; }
input[type="search"] { -webkit-appearance: textfield; -moz-box-sizing: content-box; -webkit-box-sizing: content-box; box-sizing: content-box; }
input[type="search"]::-webkit-search-decoration, input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; }
textarea { overflow: auto; vertical-align: top; resize: vertical; }
input:valid, textarea:valid {  }
input:invalid, textarea:invalid { background-color: #f0dddd; }

table { border-collapse: collapse; border-spacing: 0; }
td { vertical-align: top; }

.chromeframe { margin: 0.2em 0; background: #ccc; color: black; padding: 0.2em 0; }



/* ===== Primary Styles ========================================================
   Author:
   ========================================================================== */


html, body {
  width: 100%;
  height: 100%;
  min-width: 1004px;
  min-height: 400px;
  margin: 0;
  padding: 0;
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  line-height: 20px;
}

a {
  text-decoration: underline;
  color: #B8292F;
}

a:visited {
  text-decoration: underline;
  color: #B8292F;
}

a:hover {
  text-decoration: underline;
  color: #B8292F;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  display: block;
  height: 135px;
  width: 100%;
  overflow: hidden;
  border-bottom: 1px dashed black;
  background-color: #AAADA6;
  z-index: 400;
  min-width: 2800px;
}


#header {
  position: fixed;
  top: 0;
  left: 0;
  display: block;
  height: 135px;
  width: 100%;
  overflow: hidden;
  border-bottom: 1px dashed black;
  background-color: #AAADA6;
  /* 402 e não 400: este bloco é `fixed` COM z-index, logo abre contexto de
     empilhamento e tudo o que vive lá dentro fica preso a ele. A
     `.coluna_menu_x2` também está a 400 e vem depois no DOM, portanto ganhava
     o empate — o rodapé da FMSMB, emitido daqui de dentro, ficava pintado por
     baixo da lista de fundos por muito z-index próprio que levasse (medido:
     `elementFromPoint` no canto devolvia um `LI` da lista).
     Subir este é inócuo para a geometria: o cabeçalho ocupa os primeiros 135px
     e a coluna começa aos 136 — não se sobrepõem. O handle de resize está a
     500 e continua a mandar. */
  z-index: 402;
  min-width: 2800px;
}


.header_seccao {
  display: inline-block;
  text-transform: uppercase;
  color: #B8292F;
  font-weight: 700;
  margin-top: 10px;
}

.header_seccao.falso {
  visibility: hidden;
}

.thumb_topo {
  min-width: 100%;
  min-height: 100%;
}

.coluna_padding8 {
  padding-left: 8px;
  padding-right: 8px;
}

.coluna_padding4 {
  padding-left: 4px;
  padding-right: 4px;
}

.margin8 {
  display: block;
  margin-bottom: 8px;
}

.lista_paises a {
  display: block;
  margin-bottom: 8px;
  text-decoration: none;
  color: #000;
}

.lista_paises a:visited {
  text-decoration: none;
  color: #000;  
}

.lista_paises a:hover {
  color: #B8292F;
}

/* Lista de fundos na sidebar — nome + contador em pill */
.fundos_pesquisa {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 5px 0;
  padding-right: 4px;
  margin-bottom: 2px;
  border-bottom: 1px solid #eeeadf;
  text-decoration: none;
  color: #2a2a2a;
  font-size: 12.5px;
  line-height: 1.35;
  transition: color 0.15s;
}
.fundos_pesquisa:last-child { border-bottom: none; }
.fundos_pesquisa:visited { color: #2a2a2a; }
.fundos_pesquisa:hover { color: #B8292F; text-decoration: none; }
.fundos_pesquisa .fundo_nome {
  flex: 1;
  min-width: 0;
}
.fundos_pesquisa .fundo_count {
  flex-shrink: 0;
  display: inline-block;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: #FFF;
  background: #B8292F;
  padding: 1px 7px;
  border-radius: 10px;
  letter-spacing: 0.02em;
  min-width: 16px;
  text-align: center;
}
.fundos_pesquisa:hover .fundo_count { background: #9a2226; }

/* Link genérico .fundo (usado noutros sítios — manter ao lado) */
.fundo { text-decoration: none; color: #000; }
.fundo:visited { text-decoration: none; color: #000; }
.fundo:hover { text-decoration: none; color: #B8292F; }

/* Botão "Remover filtro de fundos" na sidebar */
.pesq_btn_remover_filtro_sidebar,
.coluna_padding8 .pesq_btn_remover_filtro {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #B8292F;
  background: #fdf4f4;
  padding: 5px 10px;
  border: 1px solid #B8292F;
  border-radius: 3px;
  text-decoration: none;
  margin-bottom: 12px;
  transition: background 0.15s, color 0.15s;
}
.pesq_btn_remover_filtro_sidebar:hover,
.coluna_padding8 .pesq_btn_remover_filtro:hover {
  background: #B8292F;
  color: #FFF;
}

.linkDestaque {
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  display: block;
  text-align: left;
}

.linkDestaque img {
  max-width: 100%;
}

.dataDestaque {
  position: relative;
* display: inline-block;
  /*display: none;*/
  min-height: 18px;
  margin-top: 4px;
  padding-left: 22px;
  background: url("../img/data.gif") no-repeat scroll 0 0 transparent;
}

.dataDestaque.arquivo {
	float: right;
	text-align: right;
	background: none;
	border: 0px dashed purple;
	color: #999;
}

.texto_noticia {
	text-align: justify;
}

.localDestaque {
  position: relative;
  display: inline-block;
  min-height: 18px;
  margin-top: 4px;
  padding-left: 22px;
  background: url("../img/local.gif") no-repeat scroll 0 0 transparent;
}

.coluna_menu_x1 {
  position: fixed;
  display: block;
  overflow: auto;
  left: 0;
  top: 136px;
  bottom: 0px;
  /* Mesma largura da `.coluna_menu_x2`, e não os 150px que tinha: a barra da
     esquerda passava de 150 aqui para 300 nas páginas de arquivo, e o rodapé
     da FMSMB — que segue a variável — sobrava para lá da coluna. A medida é
     agora uma só em todo o site. */
  width: var(--sidebar-width);
  border-right: 1px dashed black;
  z-index: 400;
  background-color: #fff;
}

/* Largura da sidebar — ajustável via handle draggable (persistida em localStorage) */
:root {
  --sidebar-width: 300px;
}

.coluna_menu_x2 {
  position: fixed;
  display: block;
  overflow: auto;
  left: 0;
  top: 136px;
  bottom: 0px;
  /* A coluna vai até ao fundo do ecrã, mas o `.rodape_fmsmb` está fixo lá com
     fundo opaco e z-index 401 — mais alto que o 400 daqui. Sem esta almofada a
     cauda da árvore rola para DEBAIXO do rodapé e nunca chega a ver-se: medido
     no .32 a 2026-08-12, com a lista de fundos, o último («Vítor Cabrita Neto»)
     ficava 27px tapado mesmo com o scroll no fim.
     71px é a altura medida do rodapé (logótipo 110px + padding + borda); os 13
     que sobram são folga para o logótipo poder crescer sem voltar a tapar.
     Abaixo de 520px de altura o rodapé esconde-se por media query e isto passa a
     ser só espaço rolável a mais — inofensivo. */
  padding-bottom: 84px;
  width: var(--sidebar-width);
  border-right: 1px solid #ccc;
  z-index: 400;
  background-color: #fff;
}

/* Handle de resize da sidebar */
.sidebar-resize-handle {
  position: fixed;
  top: 136px;
  bottom: 0;
  left: calc(var(--sidebar-width) - 3px);
  width: 6px;
  cursor: col-resize;
  z-index: 500;
  background: transparent;
  transition: background 0.15s;
}
.sidebar-resize-handle:hover,
.sidebar-resize-handle.dragging {
  background: rgba(184, 41, 47, 0.25);
}
body.sidebar-resizing {
  user-select: none;
  cursor: col-resize;
}
body.sidebar-resizing * { cursor: col-resize !important; }


.contentor_principal_x1 {
  position: relative;
  display: block;
  margin-top: 136px;
  /* Acompanha a coluna, como já fazia o `_x2`. Era 151px fixo, casado à mão com
     os 150 da coluna — alargar uma sem a outra punha a coluna por cima do
     texto. */
  margin-left: calc(var(--sidebar-width) + 1px);
  z-index: 300;
  overflow: visible;
}

.contentor_principal_x2 {
  position: relative;
  display: block;
  margin-top: 136px;
  margin-left: calc(var(--sidebar-width) + 1px);
  z-index: 300;
  overflow: visible;
}

.linha_colunas {
  position: relative;
  display: block;
  width: 100%;
  max-width: 1000px;
  clear: both;
  padding-top: 16px;
}


.linha_colunas .coluna_x25 {
  position: relative;
  display: block;
  float: left;
  width: 25%;
}

.linha_colunas .coluna_x30 {
  position: relative;
  display: block;
  float: left;
  width: 30%;
}

.linha_colunas .coluna_x35 {
  position: relative;
  display: block;
  float: left;
  width: 35%;
}

.linha_colunas .coluna_x40 {
  position: relative;
  display: block;
  float: left;
  width: 40%;
}

.linha_colunas .coluna_x45 {
  position: relative;
  display: block;
  float: left;
  width: 45%;
}

.linha_colunas .coluna_x50 {
  position: relative;
  display: block;
  float: left;
  width: 50%;
}

.linha_colunas .coluna_x60 {
  position: relative;
  display: block;
  float: left;
  width: 60%;
}

.linha_colunas .coluna_x70 {
  position: relative;
  display: block;
  float: left;
  width: 60%;
}

.linha_colunas .coluna_x75 {
  position: relative;
  display: block;
  float: left;
  width: 75%;
}

.linha_colunas .paddingInterno {
  padding-left: 20px;
  padding-right: 20px;
}

.colunas_internas {
  position: absolute;
  /*top: 0px;*/
}

.colunas_top {
  position: relative;
  display: block;
  height: 100%;
  float: left;
  width: 150px;
  overflow: hidden;
}

.colunas_bottom {
  position: absolute;
  display: block;
  top: 136px;
  bottom: 0px;
  overflow: auto;
  /*padding-left: 4px;
  padding-right: 4px;*/
}

.colunas_overflow {
  overflow: hidden;
}

.colunas_overflow:hover {
  overflow: auto;
}

.coluna_logo {
  width: 150px;
  background-color: #FFF;
  /* Centrado nos dois eixos dentro da caixa de 135px, em vez de encostado ao
     topo: a caixa é mais alta que o logótipo e a folga toda ficava em baixo. */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* O logótipo é SVG e não traz width/height intrínsecos — só viewBox. Sem
   dimensão explícita o browser dá-lhe o tamanho por omissão dos elementos
   substituídos (300px) e rebentava a coluna de 150px. O rácio também mudou
   face ao PNG antigo (367x348 em vez de 113x135, porque a assinatura da
   FMSMB saiu do logótipo para o menu). */
.coluna_logo img {
  display: block;
  width: 120px;
  height: auto;
  margin: 0 auto;
}

.coluna_menu {
  /* Menu superior acompanha a largura da sidebar (150px fixo do logo + resto) */
  width: calc(var(--sidebar-width) - 150px);
  background-color: #D0D1CD;
  /* As entradas repartem a altura da caixa entre si. Com altura fixa de 19px
     as cinco somavam 95 dos 135 e sobravam 40 em baixo — a coluna do logótipo,
     ao lado, ficava cheia e esta meia, e lia-se como desalinhamento. */
  display: flex;
  flex-direction: column;
}

.link_menu {
  padding-left: 10%;
  font-size: 12px;
  font-weight: 700;
  /* `flex: 1` reparte em partes iguais seja qual for o número de entradas —
     acrescentar ou tirar uma não obriga a recalcular altura nenhuma. */
  flex: 1;
  display: flex;
  align-items: center;
}

.link_menu a {
  display: block;
  width: 100%;
  text-decoration: none;
  color: #000;
}

.link_menu.selecionado a{
  color: #B8292F;
}

.link_menu_impar {
  background-color: #D0D1CD;
}

.link_menu_par {
  background-color: #E4E5E2;
}

.marca_externa {
  padding-left: 4px;
  font-size: 10px;
  font-weight: 400;
}

/* Assinatura institucional, no fundo da coluna da esquerda.
   Fixa, e não dentro da `.coluna_menu_x2` — a razão está no include_menu.php.
   Só é visível porque o `#header` subiu para z-index 402; ver o comentário lá. */
.rodape_fmsmb {
  position: fixed;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  box-sizing: border-box;
  padding: 10px 12px;
  background: #fff;
  border-top: 1px solid #ccc;
  border-right: 1px solid #ccc;
  z-index: 401;
  text-align: center;
}

.rodape_fmsmb img {
  display: block;
  width: 110px;
  height: auto;
  margin: 0 auto;
  opacity: .85;
  transition: opacity .15s;
}

.rodape_fmsmb a:hover img { opacity: 1; }

/* Ecrã baixo: a faixa comeria a coluna toda. Abaixo disto o logótipo deixa de
   valer o espaço que ocupa. */
@media (max-height: 520px) {
  .rodape_fmsmb { display: none; }
}

.assinatura_fmsmb a {
  text-decoration: none;
  color: #000;
}

.assinatura_fmsmb a:hover b {
  color: #B8292F;
}


.link_instituicao {
  text-decoration: none;
  color: #000;
}

.link_instituicao:hover {
  text-decoration: none;
  color: #B8292F;
}

.link_instituicao:visited {
  text-decoration: none;
  color: #000;
}

.link_instituicao.selecionado {
  color: #B8292F;
}

.coluna_x1 {
  width: 150px;
}

.coluna_x2 {
  width: 300px;
}

.coluna_x3 {
  width: 450px;
}

.coluna_x4 {
  width: 600px;
}

.coluna_fit_window {
  right: 0px;
}

.coluna_left_x1 {
  left: 151px;
}

.coluna_left_x2 {
  left: 301px;
}

.coluna_left_x3 {
  left: 451px;
}

.coluna_left_x4 {
  left: 601px;
}

.interpadding {
  position: relative;
  display: block;
  margin-left: 20px;
  margin-right: 20px;
}

.justify {
  text-align: justify;
}

.editorial .interpadding{
  background-color: #E4E5E2;
}

.na_homepage {
  background-color: rgba(232,232,232,.5);
}

.coluna_dashed {
  border-right: 1px dashed black;
}

.div_imagem_coluna1 {
  position: relative;
  display: block;
  margin-left: 6px;
  overflow: hidden;
  margin-bottom: 6px;
}

.container_thumbs_parceiros .link_documento {
  display: block;
  width: 100%;
}

.container_thumbs_parceiros .link_documento .thumb_documento {
  width: 100%;
}

.logo_instituicao {
  width: 100%;
}

.container_thumbs_parceiros .thumb_documento_altura {
  height: 100%;
}

.container_thumbs_arquivos .link_documento {
  display: block;
  float: left;
  width: 30%;
  height: 100px;
  overflow: hidden;
  margin-left: 2%;
  margin-bottom: 2%;
}

.container_thumbs_arquivos {
  float: right !important;
  padding: 3.2rem 0 1rem 3rem;
}

.container_thumbs_arquivos .img_grande, .container_thumbs_arquivos .img_grande img {
  max-width: 100%;
}

.container_thumbs_arquivos .link_documento .thumb_documento {
  width: 100%;
}


.container_thumbs_arquivos .thumb_documento_altura {
  height: 100%;
}

.fundo_cinza1 {
  background-color: #EFF0EE;
}

.imgHeaderProjecto {
  position: relative;
  display: block;
  height: 240px;
  background-color: #9D2428;
  overflow: hidden;
}


.imgHeaderParceiros {
  position: relative;
  display: block;
  height: 113px;
  background-color: #9D2428;
  overflow: hidden;
}

.headerInstituicao {
  position: absolute;
  width: 400px;
  top: 15px;
  left: 15px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}

.fundo_parceiros {
  position: absolute;
  top: 0px;
  left: 0px;
}


/* ── Search results header: facets + search ── */
.tabs {
  position: fixed;
  display: block;
  margin: 0;
  padding: 6px 12px;
  /* Reserva espaço à direita para a .caixa_de_pesquisa_simples
     (~380px = 320 min input + 16*2 padding + botões + link avançada) */
  padding-right: 380px;
  top: 0;
  left: calc(var(--sidebar-width) + 10px);
  right: 0;
  color: #FFF;
  font-weight: 600;
  z-index: 600;
  box-sizing: border-box;
  background-color: #AAADA6;
}

.tabs_int {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  /* Sem margin-right: o .tabs já tem padding-right:380px a reservar espaço
     para a caixa de pesquisa. A margem de 210px que aqui estava era
     redundante e desperdiçava ~230px de largura útil. */
}

/* ===========================================================================
 * Tab bar — refined editorial pill design (2026-05-16 redesign)
 *
 * Princípios:
 * 1. Pill consistency: TODAS as tabs (tabTodos, tabInfo, tabActas...) usam
 *    o mesmo shell (padding, radius, transition, border 1px subtle). Info
 *    deixa de parecer texto-link e ganha affordance de botão.
 * 2. Selected-by-inversion: tab activa fica BRANCO sólido com texto VERMELHO
 *    (inverte default-state). Elimina ambiguidade entre tabTodos (que já é
 *    vermelho de origem) e selected state.
 * 3. Counter integrado: .c_int_tab vira chip embebido no pill, com bg ligeiro
 *    e number-tabular. Cor herda do tab — branco no default, vermelho quando
 *    selected. Heavy-query badge (.numfound-heavy::after) continua a operar.
 * =========================================================================== */

/* Base — aplica-se a TODAS as tabs no .tabs_int (tabTodos, tabInfo, tabActas,
   tabArte, tabBibDig, tabCorrespondencia, tabDocs, tabFotos, tabImprensa,
   tabVideos, tabAudio, tabProtocolos, tabPesq).
   Nota: especificidade `.tabs .tab` para vencer regras vizinhas legacy. */
.tabs .tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 3px 11px;
  border-radius: 3px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
              box-shadow 0.15s ease, transform 0.05s ease;
}

.tabs .tab:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.32);
  color: #FFF;
  text-decoration: none;
}

.tabs .tab:active {
  transform: translateY(1px);
}

/* tabTodos — variante de destaque (default state mais saturado).
   "Total de resultados: 704" — pill maior protagonismo. */
.tabs .tabTodos {
  background: rgba(184, 41, 47, 0.78);
  border-color: rgba(184, 41, 47, 0.95);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.tabs .tabTodos:hover {
  background: rgba(184, 41, 47, 1);
  border-color: rgba(184, 41, 47, 1);
}

/* tabInfo — leitura de metadata do nivel, secundária mas com pill clara.
   Tom mais frio para diferenciar de doc-type tabs. */
.tabs .tabInfo {
  background: rgba(90, 105, 134, 0.45);
  border-color: rgba(90, 105, 134, 0.7);
}

.tabs .tabInfo:hover {
  background: rgba(90, 105, 134, 0.7);
  border-color: rgba(90, 105, 134, 1);
}

/* Selected — INVERSÃO: branco sólido, texto vermelho. Elimina
   conflito visual do tabTodos selected (que ficaria red-on-red).
   !important para vencer regras de variante (tabTodos, tabInfo) acima. */
.tabs .tabSelecionada,
.tabs .tabSelecionada:hover {
  background: #FFF !important;
  border-color: #FFF !important;
  color: #B8292F !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(184, 41, 47, 0.15);
  cursor: default;
}

/* Counter chip — embebido no pill, herda colour scheme do tab.
   No default (texto branco) → chip com bg subtle white. No selected
   (texto vermelho) → chip com bg vermelho subtle. */
.tabs .tab .c_int_tab {
  display: inline-flex;
  align-items: center;
  height: 16px;
  padding: 0 6px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.22);
  font-family: 'Lato', sans-serif;
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: inherit;
  line-height: 1;
}

.tabs .tab:hover .c_int_tab {
  background: rgba(255, 255, 255, 0.32);
}

.tabs .tabSelecionada .c_int_tab {
  background: rgba(184, 41, 47, 0.12);
  color: #B8292F;
}

/* Heavy-query badge: preserva o U+1F534 red circle (definido em
   badge_annotations.css). Só ajusta margin para integrar no pill. */
.tabs .tab .c_int_tab.numfound-heavy::after {
  margin-left: 5px;
}

/* tabPesq (facet pill) — herda do .tab base, só pequeno offset semântico. */
.tabs .tabPesq {
  background: rgba(255, 255, 255, 0.10);
  font-weight: 600;
}

/* Botão "Sair da pesquisa" — primeiro item da barra */
.tabs .pesq_btn_sair {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #FFF;
  background: rgba(0, 0, 0, 0.18);
  padding: 3px 10px;
  border-radius: 3px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
  margin-right: 4px;
}
.tabs .pesq_btn_sair:hover { background: rgba(0, 0, 0, 0.32); }

/* Botão "Remover filtro X" — destaque cauteloso (fica ao lado dos tabs) */
.tabs .pesq_btn_remover_filtro {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #B8292F;
  background: #FFF;
  padding: 3px 10px;
  border-radius: 3px;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: background 0.15s, color 0.15s;
}
.tabs .pesq_btn_remover_filtro:hover {
  background: #B8292F;
  color: #FFF;
  border-color: #FFF;
}

.breadcrumbs {
  position: fixed;
  top: 105px;
  left: calc(var(--sidebar-width) + 10px);
  right: 0;
  height: 20px;
  padding: 2px 16px;
  color: #FFF;
  text-overflow: ellipsis;
  overflow: hidden;
  z-index: 600;
  font-weight: 900;
  font-size: 12px;
}

.breadcrumbs a, .tabs a {
  color: #FFF;
  text-decoration: none;
  font-weight: 900;
}

.breadcrumbs a:hover {
  color: #B8292F;
}

/* Toggle flexível (≈) vs estrita (=) na pesquisa simples */
#pesquisa_modo_toggle {
  display: inline-flex;
  height: 26px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  vertical-align: middle;
  box-sizing: border-box;
}
#pesquisa_modo_toggle input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
#pesquisa_modo_toggle label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Lora', serif;
  font-size: 15px;
  font-weight: 500;
  color: #888;
  cursor: pointer;
  user-select: none;
  background: transparent;
  transition: background 0.15s, color 0.15s;
  box-sizing: border-box;
}
#pesquisa_modo_toggle label:first-of-type {
  border-right: 1px solid #d5d5d5;
}
#pesquisa_modo_toggle input[type="radio"]:checked + label {
  background: #B8292F;
  color: #fff;
}
#pesquisa_modo_toggle label:hover {
  color: #333;
  background: rgba(184, 41, 47, 0.08);
}
#pesquisa_modo_toggle input[type="radio"]:checked + label:hover {
  background: #9a2226;
  color: #fff;
}

/* Caixa de pesquisa simples — topo-direito, faixa própria acima da tabs (nunca sobreposta pelas pills) */
.caixa_de_pesquisa_simples {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  left: auto !important;
  bottom: auto !important;
  min-width: 360px !important;
  width: auto !important;
  height: auto !important;
  padding: 6px 16px !important;
  margin: 0 !important;
  color: #FFF !important;
  background-color: #AAADA6 !important;
  z-index: 1000 !important; /* acima de tudo */
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 2px;
  box-shadow: -1px 0 0 rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}
.caixa_de_pesquisa_simples form {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  width: 100%;
}
.caixa_de_pesquisa_simples #chama_pesqAvancada {
  text-align: right;
  width: 100%;
}
.caixa_de_pesquisa_simples input[name="termo"] {
  flex: 1;
  min-width: 180px;
  height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.92);
  color: #333;
  font-size: 12px;
  transition: min-width 0.2s ease, box-shadow 0.15s;
  box-sizing: border-box;
}
.caixa_de_pesquisa_simples input[name="termo"]:focus {
  outline: none;
  min-width: 320px;
  box-shadow: 0 0 0 2px rgba(184, 41, 47, 0.25);
}
.caixa_de_pesquisa_simples input[name="termo"]::placeholder { color: #999; font-style: italic; }
.caixa_de_pesquisa_simples input[type="submit"] {
  /* SVG seta direita branca inline — substitui o PNG legacy que trazia círculo cinza */
  background-color: #B8292F !important;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 14px !important;
  border: none !important;
  width: 32px !important;
  height: 26px !important;
  border-radius: 3px !important;
  cursor: pointer;
  margin: 0 !important;
  padding: 0 !important;
  transition: background-color 0.15s;
}
.caixa_de_pesquisa_simples input[type="submit"]:hover {
  background-color: #9a2226 !important;
}
#chama_pesqAvancada {
  margin-top: 4px;
  text-align: right;
}
#chama_pesqAvancada a {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition: color 0.15s;
}
#chama_pesqAvancada a:hover { color: #FFF; text-decoration: underline; }

form input {
  border: 0;
  height: 18px;
  padding: 4px;
  margin-top: 6px;
  margin-bottom: 6px;

position: relative;
}

form input[type="submit"] {
  display: inline-block;
  margin-left: 6px;
  width: 32px;
  height: 26px;
  background-color: transparent;
  background-image: url('../img/icons_viz/seta_pesquisa.png');
  background-repeat: no-repeat;
}

#linkPesqAvancada {
display: block;
width: 100%;
text-align: left;
}

.opcoes_top_resultados {
  display: block;
  position: relative;
  padding: 8px;
}


.opcoes_top_resultados div {
  display: inline-block;
  float: right;
  margin-right: 20px;
}


.instSquare {
  position: relative;
  display: block;
  width: 32%;
  max-width: 300px;
  height: 170px;
  float: left;
  margin-right: 0.5%;
  margin-bottom: 0.5%;
  background-color: #B8292F;
  overflow: hidden;
  background-repeat:no-repeat;
  background-position:center;
}

.instSquare.inst1 {
  background-image: url("../img/parceiros/instSquare/1.jpg");
}

.instSquare.inst2 {
  background-image: url("../img/parceiros/instSquare/2.jpg");
}

.instSquare.inst3 {
  background-image: url("../img/parceiros/instSquare/3.jpg");
}

.instSquare.inst4 {
  background-image: url("../img/parceiros/instSquare/4.jpg");
}

.instSquare.inst5 {
  background-image: url("../img/parceiros/instSquare/5.jpg");
}

.instSquare.inst6 {
  background-image: url("../img/parceiros/instSquare/6.jpg");
}

.instSquare.inst8 {
  background-image: url("../img/parceiros/instSquare/8.jpg");
}

.instSquare.inst9 {
  background-image: url("../img/parceiros/instSquare/9.jpg");
}

.instSquare.inst10 {
  background-image: url("../img/parceiros/instSquare/10.jpg");
}

.instSquare.inst11 {
  background-image: url("../img/parceiros/instSquare/11.jpg");
}

.instSquare.inst12 {
  background-image: url("../img/parceiros/instSquare/12.jpg"); 
}

.instSquare.inst13 {
  background-image: url("../img/parceiros/instSquare/13.jpg"); 
}

.instSquare.inst14 {
  background-image: url("../img/parceiros/instSquare/14.jpg"); 
}

.instSquare.inst15 {
  background-image: url("../img/parceiros/instSquare/15.jpg"); 
}

.instSquare a{
  display: block;
  width: 60%;
  height: 100%;
  color: #FFF;
  font-weight: 700;
  font-size: 14px;
  padding: 5%;
  padding-right: 35%;
  text-decoration: none;
}


.ilustraDestaque img {
  max-width: 100%;
  max-height: 200px;
  cursor: pointer;
}

.ilustraDestaque .legenda {
 display: none;
}

/*//////////////////
/////// MAPA //////
////////////////*/

.mapa_mundi {
  position: relative;
  border: 0px dashed orange;
  width: 90%;
  min-height: 600px;
  /*float: left;*/
  margin: 0 auto;
}

#container_info_paises {
  display: none;
}

.pop_paises {
  position: absolute;
  display: block;
  width: 250px;
  min-height: 50px;
}

.pop_paises .contentor_seta {
  position: absolute;
  right: 0;
  top: 0px;
  width: 5px;
  height: 20px;
  overflow: hidden;
}

.pop_paises .seta {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 20px;
  height: 20px;
  background-color: #D0D1CD;
  opacity: 0.6;
  -moz-transform:rotate(45deg);
  -webkit-transform:rotate(45deg);
}

.pop_paises .interior {
  position: relative;
  left: 0px;
  right: 5px;
  top: 0px;
  padding: 6px;
}

.pop_paises .interior a {
  display: block;
  margin-bottom: 10px;
}

.pop_paises .interiorFundo {
  position: absolute;
  left: 0px;
  right: 5px;
  top: 0px;
  height: 100%;
  padding: 6px;
  background-color: #D0D1CD;
  opacity: 0.6;
}

/*//////////////////
///// ARVORE //////
////////////////*/

ul, li {
  margin: 2px;
  margin-left: 4px;
  padding: 0;
  list-style: none;
}


.abr_fec {
  background-image: url('../img/seta_menos.png');
  cursor: pointer;
}

.fechado .abr_fec {
  background-image: url('../img/seta_mais.png');
  cursor: pointer;
}

.couto {
  width: 9px;
  height: 18px;
  display: inline-block;
  background-repeat:no-repeat;
  background-position: center 8px;
  position: absolute;
  margin-right: 2px;
  margin-left: -9px;  
  position: relative;
  *float: left;
  *left: -7px;
  zoom: 1; /* IE7 */
  *display: inline; /* IE7 */
  *background-position: center 5px; /* IE7 */
}

.nivel.selecionado {
  color: #B8292F;
  font-weight: 700;
}

.nivelLI a {
  text-decoration: none;
  color: #000;
  margin-right: 3px;
}

.nivelLI a:visited {
  text-decoration: none;
  /*color: #000;*/
}

.nivelLI a:hover {
  text-decoration: none;
  color: #B8292F;
}

.aberto .paiDeFilhos {
  display: block;
}

.paiDeFilhos{
  position: relative;
  display: block;
  *margin-top: -10px;
  zoom: 1; /* IE7 */
}

.editNivel, .pasta1, #contador_ajax  {
  display: none;
}

.c_docs {
  position: relative;
  font-size: 10px;
  font-weight: bold;
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  background-color: #5A6986;
  padding: 0 3px;
  color: white;
  /*margin-left: 2px;*/
  height: 100%;
  -moz-border-radius: 3px; /* FF1+ */
  -webkit-border-radius: 3px; /* Saf3-4 */
  border-radius: 3px; /* Opera 10.5, IE9, Saf5, Chrome */
}

.c_int {
  position: relative;
  font-size: 10px;
  font-weight: bold;
  font-family: Arial, sans-serif;
  background-color: #B8292F;
  padding: 0 3px;
  margin-right: 2px;
  color: white;
  -moz-border-radius: 3px; /* FF1+ */
  -webkit-border-radius: 3px; /* Saf3-4 */
  border-radius: 3px; /* Opera 10.5, IE9, Saf5, Chrome */
}

/* Badge "encontrados" — resultados da pesquisa neste ramo */
.c_encontrados {
  position: relative;
  display: inline-block;
  font-size: 10px;
  font-weight: bold;
  font-family: Arial, sans-serif;
  background-color: #F5A623;
  padding: 0 4px;
  margin-left: 2px;
  color: white;
  border-radius: 3px;
}

/* O toggle que controlava estes contadores foi removido. Sem toggle, uma
   sessão antiga com show_encontrados=false esconderia o contador sem forma de
   o repor — por isso são todos incondicionais. */
.c_encontrados { display: inline-block; }

/* Directos e totais, de volta à árvore fora de pesquisa (lista de 31 de Julho,
   ponto 1: «manter o contador, apenas sem o cabeçalho»). Sem rótulos — a
   distinção vive no `title` e na cor. O laranja fica reservado ao
   `.c_encontrados`: em pesquisa, o número que interessa é o dos resultados. */
.c_diretos, .c_acumulados {
  display: inline-block;
  font-size: 10px;
  font-weight: bold;
  font-family: Arial, sans-serif;
  padding: 0 4px;
  margin-left: 2px;
  color: white;
  border-radius: 3px;
}
.c_diretos   { background-color: #9a958c; }
.c_acumulados { background-color: #5A6986; }

/* Filtro "só com resultados": esconde ramos sem encontrados quando activo */
body.show-filter-empty .no-results { display: none; }

/* Uniformiza alinhamento vertical dos counters na árvore (.c_docs no fundo
   estava inline a colar com baseline; .c_diretos.c_int em sub-níveis ficava
   inline-block baseline com 20px de altura → top acima da linha). Pôr todos
   com height 16px + vertical-align middle → caixa centrada na linha do
   texto. Display apenas em .c_docs (sempre visível); os outros são
   geridos pelas regras de toggle acima (show-diretos/acumulados/encontrados). */
.c_docs {
    display: inline-block;
}
.c_docs, .c_int, .c_diretos, .c_acumulados, .c_encontrados {
    height: 16px;
    line-height: 16px;
    vertical-align: middle;
}

/* Linha "Todos os resultados" na vista de raiz com pesquisa */
.arvore-total-row {
  padding: 8px 0 12px;
  border-bottom: 1px solid #d5d2cc;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 13px;
}
.arvore-total-row .fundo { color: #1a1a1a; text-decoration: none; }
.arvore-total-row .fundo:hover { color: #B8292F; }
.arvore-total-row .c_encontrados { display: inline-block !important; margin-left: 6px; }

/* Switches dos contadores na árvore */
.arvore-toggles {
  display: flex;
  gap: 8px;
  padding: 8px 0 10px;
  border-bottom: 1px solid #e5e2db;
  margin-bottom: 10px;
  font-size: 11px;
  color: #6b5a3a;
  flex-wrap: wrap;
}
.arvore-toggles label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  user-select: none;
  padding: 2px 6px;
  border-radius: 3px;
  transition: background 0.12s;
}
.arvore-toggles label:hover { background: #f0ece3; }
.arvore-toggles input[type="checkbox"] { margin: 0; cursor: pointer; }
.arvore-toggles .swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
}
.arvore-toggles .swatch.d { background: #B8292F; }
.arvore-toggles .swatch.a { background: #5A6986; }
.arvore-toggles .swatch.e { background: #F5A623; }
.arvore-toggles-sep {
  display: inline-block;
  width: 1px;
  height: 14px;
  background: #d5d2cc;
  margin: 0 4px;
  vertical-align: middle;
}

.nivel_info {
  position: relative;
  font-size: 10px;
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  background-color: #D0D1CD;
  padding: 0 3px;
  color: #fff !important; 
  font-weight: 900;
  /*margin-left: 2px;*/
  height: 100%;
  -moz-border-radius: 3px; /* FF1+ */
  -webkit-border-radius: 3px; /* Saf3-4 */
  border-radius: 3px; /* Opera 10.5, IE9, Saf5, Chrome */
}

/*//////////////////
/////// DOCS //////
////////////////*/

.pinList {
  position: absolute;
  background-size: 16px auto;
  border-radius: 25px 25px 25px 25px;
  cursor: pointer;
  height: 25px;
  right: 4px;
  top: 4px;
  width: 25px;
  z-index: 200;
  
  background-position: center center;
  background-repeat: no-repeat;
}

.pinUnselect {
  background-color: orange;
  background-image: url("../img/icons_viz/pin_this_w.png");
}

.pinSelect {
  background-color: transparent;
  background-image: url("../img/icons_viz/pin_this_b.png");
}

.pinSelect:hover {
  background-color: green;
  background-image: url("../img/icons_viz/pin_this_w.png");
}

.pinUnselect:hover {
  background-color: red;
}

/*REGULAR*/
.regular .div_um_resultado {
  position: relative;
  display: block;
  float: left;
  margin: 10px;
  width: 200px;
  height: 400px;
  font-size: 12px;
  overflow: hidden;
  line-height: 16px;
}

.regular .div_imagem {
  display: inline-block;
  width: 150px;
  height: 150px;
  overflow: hidden;
  line-height: 150px;
}

.regular .link_documento {
  display: inline-block;
  position: relative;
  vertical-align: bottom;
  width: 150px;
  text-align: center;
}

.regular .campoMetadata {
  line-height: 14px;
}

.regular .thumb_documento {
  max-width: 150px;
  vertical-align: bottom;
}

.regular .div_imagem:hover .thumb_documento {
  max-height: 150px;
}

.thumb_placeholder {
  object-fit: contain;
  padding: 15%;
}

.regular .cota_float,.regular .doc_type_float {
  display: none;
}

/*MOD MASONRY*/

.masonry .div_um_resultado {
  position: relative;
  display: block;
  float: left;
  margin: 10px;
  width: 200px;
  height: auto;
  font-size: 12px;
  overflow: hidden;
  background-color: #E4E5E2;
  padding: 4px;
}

.masonry .div_imagem {
  display: inline-block;
  width: 200px;
  overflow: hidden;
  line-height: auto;
  height: auto;
}

.masonry .link_documento {
  display: inline-block;
  position: relative;
  vertical-align: bottom;
  width: 200px;
  text-align: center;
}


.masonry .thumb_documento {
  max-width: 100%;
  vertical-align: bottom;
}

.masonry .div_imagem:hover .thumb_documento {
  max-height: auto;
}



/*MOD MASONRY-THUMBS*/

.masonry_tumbs .div_um_resultado {
  position: relative;
  display: block;
  float: left;
  margin: 10px;
  width: 200px;
  height: auto;
  font-size: 12px;
  overflow: hidden;
  background-color: #E4E5E2;
  padding: 4px;
}

.masonry_tumbs .div_imagem {
  display: inline-block;
  width: 200px;
  overflow: hidden;
  line-height: auto;
  height: auto;
}

.masonry_tumbs .div_texto {
  display: none;
}

.masonry_tumbs .link_documento {
  display: inline-block;
  position: relative;
  vertical-align: bottom;
  width: 200px;
  text-align: center;
}

.masonry_tumbs .thumb_documento {
  max-width: 100%;
  vertical-align: bottom;
}

.masonry_tumbs .div_imagem:hover .thumb_documento {
  max-height: auto;
}

.masonry_tumbs .cota_float,.masonry_tumbs .doc_type_float {
  position: absolute;
  display: inline-block;
  background-color: rgba(228, 229, 226, 1);
  padding: 4px;
  font-weight: 700;
}

.masonry_tumbs .cota_float {
  top: 0;
  left: 0;
}

.masonry_tumbs .doc_type_float {
  top: 20px;
  left: 0;
}
/*///////////////////////////////////*/


.paginacao_tabs {
  position: relative;
  display: block;
  color: #808285;
  font-weight: 700;
  text-align: right;
  padding-right: 40px;
  padding-bottom: 20px;
  margin-top: 20px;
}

.paginacao_tabs a {
  color: #808285;
  text-decoration: none;
}

.pagina_tab_actual {
  border-bottom: 2px solid #808285;
}

.paginacaoAnterior {
  display: inline-block;
  margin-right: 8px;
}

.paginacaoProxima {
  display: inline-block;
  margin-left: 8px;
}


.campoMetadata {
  position: relative;
  display: block;
  overflow: hidden;
  line-height: 18px;
  /*max-height: 40px;*/
}

/* «Sem páginas digitalizadas» é um estado do documento, não um campo com valor:
   sem rótulo a negrito, e em itálico esbatido para não competir com os campos
   que têm conteúdo. Ver pesqArquivo.php, ramo do $mimeRows vazio. */
.campoMetadata.sem-paginas {
  font-style: italic;
  opacity: .7;
}


/*///////////////
/* ///HOPE/// */
/*///////////*/

.regular .div_um_resultado_HOPE {
  position: relative;
  display: block;
  float: left;
  margin: 10px;
  width: 200px;
  height: 280px;
  font-size: 12px;
  overflow: hidden;
  line-height: 16px;
}

.div_imagem .popHopeExtra {
  display: none;
}

#modalContainerHOPE {
  position: fixed;
  display: block;
  top: 10%;
  left: 10%;
  right: 10%;
  bottom: 10%;
  z-index: 2800;
  background-color: #fff;
  padding: 20px;
  overflow: auto;
}

#modalContainerHOPE .popHopeExtra {
  display: block;
  position: relative;
  height: 100%;
}

#modalContainerHOPE .popHopeExtra .metadadosHopeExtra {
  position: absolute;
  display: block;
  top: 0px;
  right: 0px;
  bottom: 0px;
  left: 300px;
  overflow: auto;
}

#modalContainerHOPE .popHopeExtra .metadadosHopeThumbContainer {
  position: relative;
  top: 0px;
  left: 0px;
  display: block;
  width: 250px;
  text-align: left;
}

#modalContainerHOPE .thumb_documento {
  max-width: 100%;
}

.metadadosHopeExtra .campoMetadata {
  margin-top: 8px;
}

/*///////////////
/*VISUALIZADOR*/
/*///////////*/


#metadados {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 300px;
  background-color: #EFF0EE;
  overflow: auto;
}

#metadados .campoMetadata {
  margin-bottom: 8px;
}

#metadadosInteriorMargem {
  margin: 10px;
}

/* Logótipo na ficha do documento (lista v.2 do cliente, ponto 7: «está
   demasiado grande, não necessita de ter tanto destaque» — e depois, à pergunta
   se podia encolher, «não tenhas medo de diminuir nesse contexto específico»).
   Sem isto renderiza no tamanho intrínseco do SVG, 280px, que é a largura da
   coluna inteira: a marca competia com o documento. Não afecta o logótipo da
   barra lateral (`.coluna_logo`), que é outro contexto.

   Um terço da largura da coluna, centrado — afinado com o operador ao ver o
   resultado (280px → 50% → 33%). Em percentagem e não em pixéis: acompanha a
   coluna se ela mudar. O link tem de ser bloco: inline, o `<a>` encolhe ao
   tamanho da imagem e não há o que centrar. */
.ficha-logo-link {
  display: block;
  text-align: center;
}
.ficha-logo {
  width: 33%;
  max-width: 100%;
  height: auto;
}

#viewport {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 300px;
  left: 0;
  background-color: #EFF0EE;
  overflow: auto;
}

#audioVideoContainer {
  position: relative;
  display: block;
  text-align: center;
  width: 100%;
}

#control {
  position: absolute;
  display: block;
  bottom: 20px;
  left: 30px;
  right: 330px;
  z-index: 400;
  text-align: center;
  color: #FFF;
}

#control a {
  display: inline-block;
  width: 25px;
  height: 25px;
  border-radius: 25px;
  overflow: hidden;
  background-color: #BCBEB8;
  color: #FFF;
  margin-left: 6px;
  background-size: 16px;
  background-repeat:no-repeat;
  background-position: center center;   
}

.zoomIn {
  background-image: url('../img/icons_viz/mais.png');
}

.zoomOut {
  background-image: url('../img/icons_viz/menos.png');
}

.mais90 {
  background-image: url('../img/icons_viz/rotacao_mais.png');
}

.menos90 {
  background-image: url('../img/icons_viz/rotacao_menos.png');
}

.fitH {
  background-image: url('../img/icons_viz/fit_h.png');
}

.fitHV {
  background-image: url('../img/icons_viz/fit_hv.png');
}

.cemporcento {
  background-image: url('../img/icons_viz/100.png');
}

.setaEsquerda {
  background-image: url('../img/icons_viz/seta_esquerda.png');
}

.setaDireita {
  background-image: url('../img/icons_viz/seta_direita.png');
}

#control span {
  line-height: 25px;
  vertical-align: top;
  font-weight: 900;
}

#verthumbs {
  position: relative;
  top: 0px;
  width: auto !important;
  padding-left: 6px;
  padding-right: 6px;
  text-decoration: none;
}

#contentor_percentagem {
  margin-left: 6px;
  margin-right: 20px;
}


#controlInterior {
  display: inline-block;
  padding: 10px;
  background-color: #9b9d9b;
  background-color: rgba(155, 157, 155, 0.8);
}

.dados_da_imagem {
  position: absolute;
  width: 100%;
  margin: 0 auto;
  border: 0 dashed red;
  text-align: center;
  bottom: 2px;
}


#pagina_actual {
  position: absolute;
  display: inline-block;
  top: -10000px;
  left: -10000px;
  -webkit-box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
  -moz-box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
  cursor: grab; 
  border: 1px solid #dde;
  margin: 50px 10px 100px 10px;
}


#pagina_actual_semScript {
  position: absolute;
  display: inline-block;
  top: 0;
  left: 0;
  -webkit-box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
  -moz-box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
}



#pagina_actual:active {
  cursor: grabbing;
}

#canvas {
  position: relative;
  display: inline-block;
  top: -2000px;
  -webkit-box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
  -moz-box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
  cursor: grab;
  margin: 10px 10px 60px 10px;

  /*
  transition: all 0.5s;
  -webkit-transition: all 0.5s; /* Safari and Chrome */
  /*-moz-transition: all 0.5s; /* Firefox 4 */
  /*-o-transition: all 0.5s;
  /*transition:width 2s, height 2s, left 2s, right 2s;
  /*-moz-transition:width 2s, height 2s, left 2s, right 2s; /* Firefox 4 */
  /*-webkit-transition:width 2s, height 2s, left 2s, right 2s; /* Safari and Chrome */
  /*-o-transition:width 2s, height 2s, left 2s, right 2s; /* Opera */  

}

#canvas:active {
  cursor: grabbing;
}

#docPdf {
  position: absolute;
  display: inline-block;
  margin: 0;
  padding: 0;
  border: 0;
  top: 0px;
  bottom: 80px;
  width: 100%;
}

/* ── Loading indicator do visualizador ── */
/* ── Citação multi-formato ── */
.cit-header {
  margin-bottom: 10px;
}
.cit-title {
  display: block;
  font-family: 'Lora', serif;
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
}
.cit-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #e5e1d8;
}
.cit-tab {
  padding: 5px 12px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #6b6358;
  background: transparent;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 3px 3px 0 0;
  cursor: pointer;
  margin-bottom: -1px;
  transition: color 0.15s, background 0.15s;
}
.cit-tab:hover { color: #1a1a1a; background: #faf8f3; }
.cit-tab.cit-tab-active {
  color: #B8292F;
  background: #fff;
  border-color: #e5e1d8;
  font-weight: 700;
}
.cit-body {
  padding: 12px 0;
}
.cit-text {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 12.5px;
  line-height: 1.6;
  color: #2a2a2a;
  padding: 10px 12px;
  background: #faf8f3;
  border: 1px solid #e5e1d8;
  border-radius: 3px;
  word-break: break-word;
}
.cit-text em { font-style: italic; }
.cit-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}
.cit-copy-btn {
  padding: 5px 14px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #B8292F;
  background: #fff;
  border: 1px solid #B8292F;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.cit-copy-btn:hover { background: #B8292F; color: #fff; }
.cit-copy-btn.copied {
  background: #2a7d3a;
  border-color: #2a7d3a;
  color: #fff;
}

#carregamento {
  position: fixed;
  top: 50%;
  right: -160px;
  transform: translateY(-50%);
  z-index: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 14px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e5e1d8;
  border-right: none;
  border-radius: 6px 0 0 6px;
  box-shadow: -2px 0 12px rgba(0, 0, 0, 0.08);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 12px;
  font-style: italic;
  color: #6b6358;
  letter-spacing: 0.02em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
#carregamento img { display: none; /* esconder spinner.gif legacy */ }
#carregamento::before {
  content: '';
  display: block;
  width: 22px;
  height: 22px;
  border: 2px solid #e5e1d8;
  border-top-color: #B8292F;
  border-radius: 50%;
  animation: cc-spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes cc-spin {
  to { transform: rotate(360deg); }
}

/* ── Global top progress bar (navegação entre páginas) ── */
#cc-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 9999;
  background: transparent;
  pointer-events: none;
}
#cc-progress-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #B8292F 40%, #B8292F 60%, transparent);
  animation: cc-progress-slide 1.2s ease-in-out infinite;
}
@keyframes cc-progress-slide {
  0%   { left: -30%; }
  100% { left: 100%; }
}


#contentorThumbs {
  position: fixed;
  display: block;
  z-index: 5000;
  top: 10%;
  padding: 1%;
  max-height: 80%;
  width: 80%;
  border: 1px solid #CACACA;
  overflow: auto;
  background-color: white;
  border-radius: 6px;
  vertical-align: top;
}

.contentorThumbsEscondido {
  left: -5000px;
}

.contentorThumbsVisivel {
  left: 10%;
}


#contentorCitacao {
  position: fixed;
  display: block;
  z-index: 5000;
  top: 10%;
  padding: 1%;
  max-height: 80%;
  width: 80%;
  border: 1px solid #CACACA;
  overflow: auto;
  background-color: white;
  border-radius: 6px;
  vertical-align: top;  
}

.contentorCitacaoEscondido {
  left: -5000px;
}

.contentorCitacaoVisivel {
  left: 10%;
}


.linkthumb {
  display: inline-block;
  vertical-align: top;
  -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
  -moz-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
  margin: 4px;
  overflow: hidden;
  width: 75px;
  background-color: #EBEBEB;
  line-height: 1.4em;
  font-weight: 700;
  padding: 2px;
}

#linkObjectos {
  position: fixed;
  display: none;
  right: 20px;
  top: 28px;
  padding: 4px;
  background-color: #EBEBEB;
  border: 1px solid #CACACA;
}


.dados_da_imagem {
  position: absolute;
  display: none;
  width: 100%;
  margin: 0 auto;
  border: 0 dashed red;
  text-align: center;
  bottom: 2px;
}

#fundo_cinza {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2600;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
}

#modalContainer {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 780px;
  max-height: 92vh;
  background-color: #fff;
  z-index: 2800;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

#modalClose {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 10;
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: #aaa;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

#modalClose:hover {
  color: #B8292F;
  background: rgba(184, 41, 47, 0.06);
}

#modalContent {
  overflow-y: auto;
  flex: 1;
}

#modalContainer .legenda {
  position: absolute;
  bottom: 0px;
  left: 0px;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
}

#modalContainer .legenda a {
  display: inline-block;
  background-color: #fff;
  padding: 4px;
  margin-top: 6px;
}

.cinzaEscondido {
  display: none;
}

.cinzaVisivel {
  display: block;
}

#debug {
  position: fixed;
  top: 80px;
  right: 10px;
  bottom: 10px;
  background-color: blue;
  color: white;
  width: 300px;
  z-index: 500;
  overflow: auto;
}


#form_link_doc {
  display: none;
}

#linkback_doc {
  display: none;
  position: fixed;
  top: 40px;
  left: 0;
  height: 35px;
  width: 25px;
  background-color: #BCBEB8;
  /*border-radius: 0px 5px 5px 0px;*/
  background-image: url('../img/seta_esquerda.png');
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center center;

  transition: width 0.5s;
  -moz-transition: width 0.5s; /* Firefox 4 */
  -webkit-transition: width 0.5s; /* Safari and Chrome */
  -o-transition: width 0.5s; /* Opera */
}

#linkback_doc:hover {
  width: 35px;
}

/* ═══════════════════════════════════════════════
   PESQUISA AVANÇADA — Casa Comum
   ═══════════════════════════════════════════════ */

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

#formPesquisaAvancada {
  position: relative;
  display: block;
  width: 100%;
}


.form_pesquisa_avancada {
  display: inline-block;
  position: relative;
  text-align: right;
}

.form_pesquisa_avancada input {
  
}

.form_pesquisa_avancada .operador_pesq_avancada {
  border: 1px solid #AAADA6;
  width: 60px;
  margin-right: 4px;
  display: inline-block;
  position: relative;
  padding: 4px;
}


.form_pesquisa_avancada .caixa_campo_pesq_avancada {
  border: 1px solid #AAADA6;
  width: 160px;
  margin-right: 4px;
  display: inline-block;
  position: relative;
  padding: 4px;
}


select {
  /*min-width: 250px;*/
  border: 1px solid #AAADA6;
}

.destaqueNoticia {
  position: relative;
  display: block;
  width: 33%;
  /*border: 1px solid #AAADA6;*/
  float: left;
}

.destaqueNoticia .interpadding {
  margin: 6px;
  padding: 6px;
  border: 1px dashed #AAADA6;
}


/* =============================================================================
   Media Queries
   ========================================================================== */

@media only screen and (min-width: 35em) {
	/* Style adjustments for viewports that meet the condition */
}

/* =============================================================================
   Non-Semantic Helper Classes
   ========================================================================== */

.ir { display: block; border: 0; text-indent: -999em; overflow: hidden; background-color: transparent; background-repeat: no-repeat; text-align: left; direction: ltr; *line-height: 0; }
.ir br { display: none; }
.hidden { display: none !important; visibility: hidden; }
.visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
.visuallyhidden.focusable:active, .visuallyhidden.focusable:focus { clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto; }
.invisible { visibility: hidden; }
.clearfix:before, .clearfix:after { content: ""; display: table; }
.clearfix:after { clear: both; }
.clearfix { *zoom: 1; }

/* =============================================================================
   Print Styles
   ========================================================================== */
 
@media print {
  * { background: transparent !important; color: black !important; box-shadow:none !important; text-shadow: none !important; filter:none !important; -ms-filter: none !important; } /* Black prints faster: h5bp.com/s */
  a, a:visited { text-decoration: underline; }
  a[href]:after { content: " (" attr(href) ")"; }
  abbr[title]:after { content: " (" attr(title) ")"; }
  .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; }  /* Don't show links for images, or javascript/internal links */
  pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
  thead { display: table-header-group; } /* h5bp.com/t */
  tr, img { page-break-inside: avoid; }
  img { max-width: 100% !important; }
  @page { margin: 0.5cm; }
  p, h2, h3 { orphans: 3; widows: 3; }
  h2, h3 { page-break-after: avoid; }
}


/* Link para a lista de documentos seleccionados.
   Estava em top:10/right:10 — o canto superior direito do layout antigo.
   Nesse canto vive agora a caixa de pesquisa (fixed, 76px de altura,
   z-index 1000), e o link saía por cima do campo e dos botoes. Desce para
   a faixa livre entre a caixa e a migalha (que e fixed a top:105px). */
/* Última linha da `.caixa_de_pesquisa_simples`, dentro dela e no fluxo.
   Era um bloco `position: fixed` ancorado ao canto do ecrã, com `top`, `right`
   e `z-index: 500` próprios — três valores a duplicar o posicionamento que a
   caixa já faz, e que só se mantinham coerentes por coincidência. Quem o
   posiciona agora é o contentor (`flex-direction: column; align-items:
   stretch`), portanto esta regra só tem de arrumar o que está DENTRO dela.
   `text-align: right` saiu pelo mesmo motivo: o alinhamento é do flex. */
#listaUtilizDocs {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	}

/* Selector do âmbito da lista, encostado à direita da mesma linha. Discreto:
   quem vem carregar nos alfinetes não tropeça aqui. O fundo translúcido é o
   mesmo idioma do campo de pesquisa acima, para não introduzir um branco novo
   sobre a faixa cinzenta. */
#listaScopeToggle {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #4a453d;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 3px;
	padding: 2px 8px;
	background: rgba(255, 255, 255, 0.92);
	white-space: nowrap;
	text-decoration: none;
	}

#listaScopeToggle:hover {
	color: #B8292F;
	}

/* Linha de transbordo: «ver mais N nos níveis abaixo». Aparece por cima da
   lista, e é o único conteúdo quando o nível não tem documentos próprios. */
.lista-transbordo {
	padding: 10px 0 14px;
	font-size: 13px;
	color: #6b6358;
	}

.lista-transbordo-vazio {
	font-style: italic;
	}

.lista-transbordo a {
	color: #B8292F;
	}

/* `position: static` e `z-index: 200` saíram: o primeiro é o valor por omissão
   e o segundo não faz nada num elemento estático — eram resíduo de quando o
   bloco pai era `fixed`. */
#listaUtilizDocs_link {
	display: inline-block;
	color: #FFF;
	font-weight: bold;
	font-size: 12px;
	cursor: pointer;
	background: transparent url('../img/icons_viz/lista_b.png') left center / 16px auto no-repeat;
	padding-left: 24px;
	text-decoration: none;
}

/* O bloco de media centra-se no visualizador, como no casacomum.org actual —
   pedido do cliente a 2026-08-10 («pode ficar posicionado como está atualmente
   na Casa Comum? ver a 08071.005.001»).
   Centra por flex e não por percentagens: o `#viewport` tem altura definida
   (é `position: absolute`), mas o `.media-bloco` não tinha — media 44px, a
   altura do seu conteúdo. Qualquer `height`/`top` em % dentro dele resolvia
   contra uma altura automática, ou seja, para ZERO. */
#viewport .media-bloco {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

#viewport audio {
  margin: 0px auto;
  display: block;
  width: 80%;
  /* Altura EXPLÍCITA, e é o ponto todo: o `<audio>` não tem altura intrínseca.
     A regra anterior dizia `height: 30%`, que resolvia a 0 — o leitor existia,
     carregava (readyState 4, duração 18:55) e era INVISÍVEL. O cliente via os
     controlos de velocidade soltos no topo e mais nada. `height: auto` não
     serve: também dá 0, porque a altura do <audio> vem do UA e qualquer
     sobreposição a anula. */
  height: 54px;
}

#viewport video {
  margin: 0px auto;
  display: block;
  height: 70%;
  position: relative;
  top: 10%;
}

/* Controlos que o leitor nativo não dá — velocidade e salto de 15s (ponto 4 da
   lista de 31 de Julho). A linha de tempo, essa, é a nativa. Discretos de
   propósito: quem só quer ouvir usa o play e ignora isto. */
#viewport .media-extra {
  /* Sem `top: 30%`: com o bloco centrado por flex, esse deslocamento atirava os
     controlos 257px para baixo do leitor (medido). Agora seguem-no. */
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
  font-size: 0.85rem;
  color: #555;
}
#viewport video ~ .media-extra { top: 10%; }

#viewport .media-btn {
  font: inherit;
  padding: 4px 10px;
  border: 1px solid #c9c4bb;
  border-radius: 3px;
  background: #fff;
  color: #333;
  cursor: pointer;
}
#viewport .media-btn:hover { border-color: #B8292F; color: #B8292F; }
#viewport .media-btn:focus-visible { outline: 2px solid #B8292F; outline-offset: 2px; }

#viewport .media-vel { display: inline-flex; align-items: center; gap: 6px; }
#viewport .media-rate {
  font: inherit;
  padding: 3px 6px;
  border: 1px solid #c9c4bb;
  border-radius: 3px;
  background: #fff;
  color: #333;
}

#formPedido {
  width: 40rem;
  margin: 0 auto;
}

/* Item 6: contabilizações por categoria na barra de topo, em grelha compacta
   de 3 colunas — replica a apresentação da versão anterior do site, onde o
   total e as contagens por tipo documental viviam no cabeçalho e não na
   coluna esquerda. */
/* Vive dentro de .tabs_int (flex) na barra fixa do topo, onde já estava.
   A diferença face ao desenho anterior é a arrumação: grelha compacta em vez
   de fila de pills, como na versão anterior do site. */
.pesq-contagens {
  flex: 1 1 auto;
  min-width: 0;
  padding: 2px 0 0 8px;
  font-size: 12px;
  line-height: 1.45;
  color: #FFF;
  font-weight: normal;
}
.pesq-contagens a { color: #FFF; text-decoration: none; }
.pesq-contagens a:hover { text-decoration: underline; }
.pesq-contagens-total {
  display: inline-block;
  margin-bottom: 5px;
  font-weight: bold;
}
.pesq-contagens-grelha {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 18px;
}
.pesq-contagens-item {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* Item 12 — o lugar da página retida do público.
   A marca é discreta de propósito: «não disponível» cobre a retirada
   editorial, o dano no original e a digitalização em falta, sem expor
   decisões de curadoria ao visitante.

   O thumb NÃO leva regras de layout próprias: herda tudo de .linkthumb. Uma
   versão anterior acrescentava display/opacity aqui e o resultado era o thumb
   a aparecer solto no canto do ecrã, fora do painel escondido — visível só na
   captura, invisível no HTML. */
.linkthumb.thumb-indisponivel .marca-indisponivel {
  display: block;
  padding: 16px 2px;
  border: 1px dashed #b0b0b0;
  background: #f4f4f4;
  color: #767676;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.3;
  text-align: center;
}
.pagina_indisponivel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}
.pagina_indisponivel .marca-indisponivel {
  padding: 28px 40px;
  border: 1px dashed #b0b0b0;
  background: #f4f4f4;
  color: #767676;
  font-size: 15px;
}

/* Segunda linha da mesma caixa, para o documento que existe mas ainda não foi
   digitalizado. Vive DENTRO da `.marca-indisponivel` de propósito: o contentor
   é flex em linha e dois filhos ficariam lado a lado. */
.pagina_indisponivel .nota-indisponivel {
  display: block;
  margin-top: 8px;
  max-width: 34em;
  font-size: 13px;
  line-height: 1.4;
  color: #8a8a8a;
}
/* Aviso de pesquisa provisória — ver includes/aviso_pesquisa.php
   Altura alinhada ao vizinho na mesma barra, '.pesq_btn_sair' (26px:
   padding 3px 10px + line-height 20px, sem border). A faixa mantém a
   border de 1px (não mexida — só conta nos 2px do total), por isso o
   padding/font-size/line-height próprios ficam mais apertados do que o
   botão para caber no mesmo tecto. Medido no browser, não estimado —
   ver verificacao-visual-report.md.

   width:100% + box-sizing:border-box: ocupa toda a largura do conteúdo de
   '.tabs' (738px medidos em arquivos.php — 1130 menos os 12px de
   padding-left e os 380px de padding-right reservados à caixa de
   pesquisa). Sem isto a faixa ficava mais estreita que o contentor
   (574px medidos) — width:auto num filho de '.tabs' (display:block)
   devia preencher sozinho, mas media 574px na prática; forçado
   explicitamente para não depender dessa inferência. border-box evita
   que o padding/border próprios (12px+1px de cada lado) empurrem a caixa
   para além dos 100% e criem overflow horizontal. */
.aviso-pesquisa {
    display: flex; align-items: flex-start; gap: .75em;
    width: 100%; box-sizing: border-box;
    /* margin-bottom .5em (6px), não 1em: '.tabs' não tem height fixo —
       cresce com a faixa mais o que já lá estava. Em pesqArquivo.php
       (barra mais cheia: Sair + total + grelha de tipos) medi 136.8px
       com 1em de margem, 0.8px acima dos 136px onde '.coluna_menu_x2'/
       '.contentor_principal_x2' começam (constante ligada à altura fixa
       de '#header', 135px — não a '.tabs'). Invisível na prática, mas é
       overlap real, não coincidência de arredondamento; .5em dá folga
       real (130.8px medidos) em vez de ficar em cima do fio. */
    /* margin-top 6px: a '.tabs' tem padding-top de 6px, o que punha a faixa a
       começar em y=6 enquanto a caixa de pesquisa à direita começa em y=12.
       Os 6px alinham as duas. Só afecta o caso COM faixa — sem ela, a barra
       continua a abrir aos mesmos 6px de sempre. */
    padding: 3px 12px; margin: 6px 0 .5em 0;
    /* Borda BRANCA, não o castanho do preenchimento: a '.tabs' já é uma
       superfície (cinzento #AAADA6), e uma borda tonal fechava a caixa sobre
       si própria — lia-se como objecto pousado em cima da barra. O branco é a
       cor do texto do 'Total de resultados' e dos separadores logo abaixo,
       portanto a borda passa a pertencer ao vocabulário da barra enquanto o
       preenchimento mantém o código de aviso.
       O rácio que conta continua a ser texto sobre preenchimento (#6b4f1d
       sobre #fbeec1, 6,56:1) — a borda não transporta informação. */
    background: #fbeec1; color: #6b4f1d; border: 1px solid #fff;
    font-size: 12px; line-height: 1.3;
}
/* [hidden] { display: none } vive na folha do user agent — precedência
   mais baixa que existe. Uma regra de classe do site (.aviso-pesquisa
   { display: flex }, acima) ganha-lhe sempre em especificidade igual
   (0,0,1,0 os dois) por ordem de fonte, mesmo sendo posterior no
   ficheiro. Sem esta regra, faixa.hidden = true põe o atributo — o JS
   "acha" que fechou — mas display computado continua flex: a faixa
   nunca desaparece do ecrã, e reabrir pela marca também não muda pixel
   nenhum. Confirmado com clique real no browser, não só o atributo. */
.aviso-pesquisa[hidden] { display: none; }
.aviso-pesquisa-DOWN { background: #f4d4d4; color: #7a1f1f; border-color: #c47878; }
.aviso-pesquisa-texto { flex: 1; }
.aviso-pesquisa-fechar {
    background: none; border: 0; cursor: pointer;
    font-size: 1.3em; line-height: 1; color: inherit; padding: 0 .2em;
}
/* #3d2c0f vs #AAADA6 (fundo de .tabs, onde a marca vive nas duas páginas
   que a usam: pesqArquivo.php e tabs.php) => 5.90:1, acima dos 4.5:1 da
   WCAG 1.4.3 AA. O #6b4f1d original (herdado da paleta âmbar da faixa,
   pensada para o fundo claro #fbeec1) dava só 3.35:1 aqui — rácios medidos
   por fórmula WCAG, não estimados; números no task-8-report.md. */
.total-provisorio {
    /* Padding simétrico: com .5em só à esquerda, o texto ficava a 9,5px do
       elemento anterior e a 4px do seguinte — as caixas equidistantes, o texto
       não. */
    background: none; border: 0; padding: 0 .5em; cursor: pointer;
    color: #3d2c0f; font-size: .85em; font-style: italic;
    text-decoration: underline dotted;
}

