/* ============================================================
   bbcode-conteudo.css — o conteúdo renderizado do BBCode e do HTML de autor
   (motor: bbcode-motor.js; filtro: html-seguro.js). Carregada em todas as
   páginas, logo depois de painel.css (views/partials/header.ejs), porque o
   BBCode aparece em documentos, tópicos, respostas, mensagens, perfil e
   requerimentos. Tudo o que desenha o conteúdo em BBCode está aqui:
     1. a fonte do conteúdo do fórum (Roboto), onde quer que o BBCode seja lido;
     2. o recorte: o conteúdo do autor nunca desenha fora da própria caixa;
     3. o contraste das cores do autor no texto oficial, que fica sobre o tema;
     4. a folha do fórum (.bb): a tipografia, as cores e as caixas do fórum;
     5. as tags que só o System tem, sobre a mesma folha;
     6. as classes do tema do fórum que os modelos usam nas tabelas;
     7. o HTML de autor e o texto oficial fora da folha.
   ============================================================ */

/* 1. Roboto: [font=Roboto] é a fonte dos modelos do fórum. Declarada aqui para existir em toda
   página que mostra BBCode (antes só existia na Biblioteca e na página do editor, e o leitor via
   Times New Roman). Os arquivos são os de public/fonts/roboto (Fontsource, SIL OFL 1.1).
   O fórum carrega os pesos 300, 400, 500 e 700: o 300 é o do texto das tabelas info-table. */
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 300; font-display: swap; src: url("/fonts/roboto/roboto-latin-300-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 300; font-display: swap; src: url("/fonts/roboto/roboto-latin-ext-300-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/roboto/roboto-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/roboto/roboto-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Roboto"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/roboto/roboto-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/roboto/roboto-latin-ext-400-italic.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/roboto/roboto-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/roboto/roboto-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Roboto"; font-style: italic; font-weight: 500; font-display: swap; src: url("/fonts/roboto/roboto-latin-500-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto"; font-style: italic; font-weight: 500; font-display: swap; src: url("/fonts/roboto/roboto-latin-ext-500-italic.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/roboto/roboto-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/roboto/roboto-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Roboto"; font-style: italic; font-weight: 700; font-display: swap; src: url("/fonts/roboto/roboto-latin-700-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto"; font-style: italic; font-weight: 700; font-display: swap; src: url("/fonts/roboto/roboto-latin-ext-700-italic.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* 2. Recorte. O style do autor admite deslocamento, margem negativa, escala e camada (dentro dos
   tetos de bbcode-motor.js, Valores.estiloCss), e tabelas aninhadas somam deslocamentos: quem
   garante que nada cobre o topo nem os botões da página é a caixa. Cada superfície é um contexto de
   empilhamento próprio (isolation: o z-index do autor não passa dela) e corta o que sai (overflow);
   a margem do corte deixa a sombra aparecer (documento e prévia já rolam na moldura). */
.bb, .pf-motivo, .req-item-resumo, .docs-html-previa, .nt-html, .dp-corpo { position: relative; isolation: isolate; }
.bb:not(.bb-canvas-inner):not(.bbe-previa) { overflow: clip; overflow-clip-margin: 16px; }
.pf-motivo { overflow: clip; }
/* Aberto por "Ler tudo": requerimentos.css põe overflow: visible; fechado, o corte é o das duas linhas */
.req-item-caixa .req-item-resumo.req-item-resumo--aberto { overflow: clip; }
/* Prévia e histórico do documento em HTML: tabela larga rola dentro da caixa */
.docs-html-previa { overflow: auto; }
/* Tabela flutuante ([table align=left]) conta na altura da caixa em vez de ser cortada */
.bb::after, .pf-motivo::after { content: ""; display: block; clear: both; }

/* 3. Contraste. O texto oficial do perfil e do requerimento fica sobre a superfície do tema: o motor
   calcula, para cada cor fixa do autor, a cor legível no tema escuro (--bb-e) e no claro (--bb-c) e as
   põe no style (DIALETO.forumContraste); aqui só se escolhe a do tema em uso. Na folha do fórum (.bb)
   a cor do autor vale como ele a escreveu: o fundo é o branco para o qual ela foi escolhida. */
:root[data-theme="dark"] .pf-motivo [style*="--bb-e:"]:not(table, table *),
:root[data-theme="dark"] .req-item-resumo [style*="--bb-e:"]:not(table, table *) { color: var(--bb-e) !important; }
:root[data-theme="light"] .pf-motivo [style*="--bb-c:"]:not(table, table *),
:root[data-theme="light"] .req-item-resumo [style*="--bb-c:"]:not(table, table *) { color: var(--bb-c) !important; }
/* Tabela nesses textos: uma folha pequena (o fundo e as cores do autor são os do fórum; por isso a
   troca de cor acima não entra nela: a cor clara do tema escuro sumiria no branco da tabela) */
.pf-motivo table, .req-item-resumo table { border-collapse: collapse; background-color: #fff; color: #444; }
.pf-motivo td, .pf-motivo th, .req-item-resumo td, .req-item-resumo th { padding: 4px 8px; border: 1px solid #c2c2c2; }

/* 4. A folha do fórum. Todo conteúdo em BBCode (.bb: documento e tópico dos grupos, resposta,
   mensagem privada, acervo da Biblioteca e a prévia do editor) é lido como no fórum de onde os
   modelos vêm (policiadme.forumeiros.com, tema ModernBB com o CSS do DME): folha branca nos dois
   temas, texto #444 em Roboto 13px e cada caixa com as medidas da folha de estilo de lá. Ao lado de
   cada regra, o seletor do fórum de onde ela saiu. A ordem e a especificidade relativas são as
   mesmas, porque os modelos contam com elas (border: none !important no style para tirar a borda
   que a folha põe com !important, por exemplo). Conferido contra uma réplica do fórum: a mesma
   posição e a mesma medida de cada trecho de texto e de cada caixa, na mesma largura. */
.bb {
  color-scheme: light;
  /* As peças do System dentro da folha (aviso, botão, marca-texto) usam os tokens do tema claro */
  --text-primary: #1d2024; --text-secondary: #363a41; --text-tertiary: #4a4f57; --text-muted: #636872;
  --text: #1d2024; --muted: #636872; --border-color: #d8d8d1; --line: #d8d8d1;
  --surface-1: #ffffff; --surface-2: #f6f6f3; --surface: #ffffff; --bg-sunken: #ebebe6;
  --accent-text: #8f6000; --accent-soft: rgba(234, 165, 6, .15); --cyan-text: #00768c;
  --success-text: #1b7a3d; --danger-text: #b3262c; --info-text: #2458a8;
  /* A página do System tem escala (tokens.css, --zoom); a folha a desfaz: 13px aqui são os 13px do fórum */
  zoom: calc(1 / var(--zoom, 1));
  background-color: #fff;
  color: #444;                                         /* .content */
  font: 400 13px/1.4em Roboto, sans-serif;             /* .content, .postbody .content */
  --bb-lh: 18.2px;                                     /* a entrelinha da caixa, para o texto dela (ver "A entrelinha") */
  letter-spacing: normal; text-transform: none; text-indent: 0; text-shadow: none; word-spacing: normal; white-space: normal;
  text-align: left;
  word-break: break-word; overflow-wrap: break-word;   /* .postbody, .content */
}
.bb .bb { zoom: 1; }
.bb *::before, .bb *::after { box-sizing: border-box; }  /* *,*:before,*:after (margem e padding zerados já são a base do System) */
/* As superfícies que mostram a folha solta na página; a da Biblioteca já está no papel dela. A
   margem de cima é uma peça vazia, não padding: a margem do primeiro bloco (um título, uma tabela
   com margin-top) funde-se com ela, como no fórum, onde some na margem de cima da mensagem. */
.mp-corpo.bb, .doc-cia-corpo.bb, .cp-topico-corpo.bb, .cp-resposta > .bb, .bbe-previa.bb { --bb-margem: 18px; padding: 0 var(--bb-margem) var(--bb-margem); }   /* .postbody */
:is(.mp-corpo, .doc-cia-corpo, .cp-topico-corpo, .cp-resposta > .bb, .bbe-previa).bb::before { content: ""; display: block; margin-top: var(--bb-margem); }
.mp-corpo.bb, .doc-cia-corpo.bb, .cp-topico-corpo.bb, .cp-resposta > .bb { border: 1px solid var(--border-color); border-radius: var(--radius-sm); }
@media (max-width: 600px) {
  .mp-corpo.bb, .doc-cia-corpo.bb, .cp-topico-corpo.bb, .cp-resposta > .bb, .bbe-previa.bb { --bb-margem: 12px; }
}

/* Texto */
.bb strong { font-weight: 700; color: inherit; }                        /* b,strong */
.bb em { line-height: 1; --bb-lh: 1; }                                  /* i */
.bb a:not(.btn) { color: #3e464c; text-decoration: none; }              /* a, a:link, a:visited */
.bb a:not(.btn):hover { color: #d31141; }                               /* a:hover */
.bb a:not(.btn):active { color: #368ad2; }                              /* a:active */
/* [center], [left] e [right] são <div align> no fórum: alinham também os blocos de dentro (a tabela
   com largura no style). O valor de cada navegador entra por cima do text-align do style. */
.bb div[style="text-align:center"] { text-align: -moz-center !important; text-align: -webkit-center !important; }
.bb div[style="text-align:right"] { text-align: -moz-right !important; text-align: -webkit-right !important; }
.bb div[style="text-align:left"] { text-align: -moz-left !important; text-align: -webkit-left !important; }
.bb .bb-hr { display: block; height: 1px; margin: 5px 0; border: 0; border-top: 1px solid #444; overflow: hidden; }   /* hr */
.bb .bb-img { max-width: 100%; height: auto; border-radius: 0; }       /* .content img, .postbody img */
/* Imagem sozinha na linha (o motor a marca): a linha tem a altura da imagem, sem a folga do texto
   embaixo, como na página do fórum, que não é HTML5 estrito (as fatias de um banner se encostam) */
.bb .bb-img-so { vertical-align: bottom; }
/* A entrelinha da página do fórum. Ela não é HTML5 estrito, e ali só a caixa que tem texto conta
   na altura da linha: o parágrafo inteiro dentro de um [size=10] fica com a entrelinha da letra 10
   (não com a da folha) e a linha que só tem uma imagem fica com a altura da imagem. O motor embrulha
   cada trecho de texto em .bb-t (DIALETO.forumLinhas); aqui toda caixa perde a entrelinha e só o
   .bb-t a tem: a da caixa onde o texto está (--bb-lh). Conteúdo sem .bb-t (o HTML antigo gravado na
   Biblioteca) fica como sempre foi, e o que o System põe dentro de um botão também. */
.bb:has(.bb-t), .bb:has(.bb-t) :where(div, span, strong, em, u, s, sub, sup, a, mark, table, thead, tbody, tr, td, th, ul, ol, blockquote, details, summary, marquee):not(button *) { line-height: 0 !important; }
/* O item de lista é a exceção do navegador: nele toda linha tem a entrelinha do item */
.bb:has(.bb-t) .bb-t, .bb:has(.bb-t) li { line-height: var(--bb-lh) !important; }
/* O ícone que uma classe do fórum põe antes da linha da tabela (seção 6) é texto, sem span */
.bb:has(.bb-t) tr::before { line-height: var(--bb-lh); }
.bb span[style*="line-height:normal"] { --bb-lh: normal; }             /* [size]: font-size: Npx; line-height: normal */
/* Títulos: h1.post-content a h6.post-content sobre .content h1/h2 e h3 */
.bb .bb-h1, .bb .bb-h2, .bb .bb-h3, .bb .bb-h4, .bb .bb-h5, .bb .bb-h6 { font-weight: 500; }
.bb .bb-h1 { margin: .5em 0; padding-bottom: .5em; border-bottom: 1px solid #ccd0d4; color: #ccd0d4; font-size: 2em; line-height: 2.4em; --bb-lh: 2.4; }
.bb .bb-h2 { margin: -3px 0 9px; padding-bottom: 3px; border-bottom: 1px solid #ccd0d4; color: #ccd0d4; font-size: 1.5em; line-height: 1.8em; --bb-lh: 1.8; }
.bb .bb-h2 strong { font-weight: 400; }                                 /* .content h2 strong */
.bb .bb-h3 { margin-bottom: 12px; padding-bottom: 3px; border-bottom: 1px solid #ccd0d4; font-size: 1.2em; line-height: 1.3em; --bb-lh: 1.3; letter-spacing: .3px; }
.bb .bb-h4 { font-size: 1em; line-height: 1.3em; --bb-lh: 1.3; }
.bb .bb-h5 { font-size: .8em; line-height: .7em; --bb-lh: .7; }
.bb .bb-h6 { font-size: .7em; line-height: .6em; --bb-lh: .6; }

/* Listas */
.bb .bb-list { margin: 0 0 1em 3em; padding: 0; }                       /* .content ul,.content ol */
.bb ul.bb-list { list-style-type: disc; }
.bb ul.bb-list-circle { list-style-type: circle; }
.bb ul.bb-list-square { list-style-type: square; }
.bb ol.bb-list:not([type]) { list-style-type: decimal; }
.bb .bb-list li { margin: 0; list-style-type: inherit; }                /* .content li */

/* Citação */
.bb .bb-quote {                                                         /* blockquote */
  position: relative; margin: 0 9px; padding: 8px 16px 8px 10px; overflow: hidden;
  background-color: transparent; border: solid rgba(0, 0, 0, .1); border-width: 1px 1px 1px 6px; border-radius: 3px;
  color: inherit; font-size: 14px; font-style: normal; line-height: 1.5; --bb-lh: 1.5;
}
.bb .bb-quote .bb-quote { margin: 18px 9px 18px 3px; background-color: rgba(0, 0, 0, .05); }   /* blockquote blockquote */
.bb .bb-quote .bb-quote .bb-quote { background-color: #ebeadd; }                               /* blockquote blockquote blockquote */
.bb .bb-quote-autor { display: block; margin-bottom: 3px; color: rgba(0, 0, 0, .44); font-size: .9em; font-style: normal; font-weight: 500; }   /* blockquote cite */

/* Código: a caixa do fórum (dl.codebox) com o rótulo (dt) e o texto (code, com a margem que o realce
   de sintaxe de lá lhe dá). shortcut: o rótulo rola junto com o código comprido; para ficar parado
   como no fórum, o motor teria de emitir a caixa e o rótulo em volta do <pre>. */
.bb .bb-code {                                                          /* .codebox, dl.codebox code, .hljs */
  display: block; position: relative; max-height: 460px; margin: 0; padding: 8px 23.5px 15.5px 17.5px; overflow: auto;
  background-color: #354147; border: 0 solid rgba(0, 0, 0, .44); border-left-width: 6px; border-radius: 3px;
  color: #e6e1dc; font: 400 15px/1.3em Courier, "Courier New", monospace; white-space: pre;
  /* A única diferença de propósito para o fórum: a linha comprida do código (que não quebra) não
     alarga a tabela onde a caixa está; rola dentro da caixa. No fórum ela alarga, e o modelo inteiro
     estoura a página quando o leitor abre o spoiler do "copie o modelo" (conferido no fórum de verdade).
     shortcut: em tabela de várias colunas a coluna do código tem esta largura mínima, não a do texto; medir o texto se alguém usar código lado a lado. */
  contain: inline-size; min-width: 12em;
}
.bb .bb-code::before {                                                  /* .codebox dt */
  content: "Código:"; display: block; margin: 0 0 8px -7.5px;
  color: rgba(255, 255, 255, .44); font: 400 13px/1.5 Roboto, sans-serif; text-align: left; white-space: normal;
}
/* Dentro de um spoiler o rótulo ganha a margem do título dele (.spoiler dt vale para todo dt de dentro) */
.bb .bb-spoiler .bb-code::before { padding: 6px 11px; }
.bb .bb-code-rotulo { margin: 0 0 2px; color: var(--muted); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }

/* Spoiler: a faixa cinza com a seta e o conteúdo com o fio à esquerda */
.bb .bb-spoiler {                                                       /* .codebox + .spoiler */
  display: block; position: relative; padding: 0; background-color: transparent; border: 0; border-radius: 3px;
  color: #212121; font-size: 14px; line-height: 1.5; --bb-lh: 1.5;
}
.bb .bb-spoiler > summary {                                             /* dl.codebox dt + .spoiler dt */
  display: block; position: relative; margin-bottom: 3px; padding: 6px 11px;
  background-color: rgba(0, 0, 0, .22); border-radius: 3px;
  color: #263238; font-size: 15px; font-weight: 400; list-style: none; cursor: pointer;
}
.bb .bb-spoiler > summary::-webkit-details-marker { display: none; }
.bb .bb-spoiler > summary::marker { content: ""; }
/* A seta do fórum é o glifo f104 da Ionicons (triângulo cheio de 9x6); aqui, o mesmo desenho sem a fonte */
.bb .bb-spoiler > summary::after {                                      /* .spoiler dt:after */
  content: ""; position: absolute; top: 14px; right: 12px;
  border: solid transparent; border-width: 6px 4.5px 0; border-top-color: currentColor; pointer-events: none;
}
.bb .bb-spoiler-corpo { margin-top: 6px; padding: 2px 2px 2px 22px; border-left: 3px solid rgba(0, 0, 0, .22); }   /* .spoiler_content */

/* Tabelas. No fórum toda tabela ocupa a largura da coluna, centra o texto e tem borda de 1px na
   tabela e em cada célula; o modelo que não a quer escreve border: none !important no style (só o
   style com !important vence esta regra). Atributo de apresentação não vence a folha: o motor nem
   emite width, border, cellpadding e cellspacing da tabela. O seletor repete a classe para ficar,
   como no fórum, acima das classes do tema (seção 6).
   A linha (tr) NÃO tem borda nesta folha. O fórum põe um fio de 1px (#d0d0d0) embaixo de toda linha
   (.postbody .content table tr): na tabela comum ele some atrás da borda da célula, mas no modelo
   que tira as bordas da tabela e das células ele sobrava como uma linha clara embaixo de cada caixa
   (bem visível nas escuras), sem estar no BBCode e sem que o style da tabela ou da célula o
   alcançasse. Borda de linha só existe se o autor a escrever no style do [tr]. */
.bb.bb table {                                                          /* .postbody .content table */
  border-collapse: collapse; border: solid 1px #c2c2c2; text-align: center;
  width: -moz-available; width: -webkit-fill-available; width: stretch;
}
.bb.bb table td, .bb.bb table th { padding: 15px; border: none; }       /* .postbody .content table td, th */
.bb table:not(.bbf-info-table), .bb td { border: solid 1px #c2c2c2 !important; }           /* .postbody table:not(.info-table), .postbody td */
.bb .bbf-info-table, .bb .bbf-info-table td { border: none !important; }                    /* .postbody .info-table, .info-table td */
/* [table width=...] sem atributo do fórum sai com a largura no style: como no fórum, não vale */
.bb .bb-table { width: -moz-available !important; width: -webkit-fill-available !important; width: stretch !important; }
.bb .bb-al-left { text-align: left; }
.bb .bb-al-center { text-align: center; }
.bb .bb-al-right { text-align: right; }
.bb .bb-al-justify { text-align: justify; }
.bb .bb-va-top { vertical-align: top; }
.bb .bb-va-middle { vertical-align: middle; }
.bb .bb-va-bottom { vertical-align: bottom; }
.bb .bb-va-baseline { vertical-align: baseline; }
/* Só a tabela de fora rola de lado (a página nunca estoura); a folga de 2px deixa o anel (box-shadow) aparecer */
.bb .bb-tabela-wrap { max-width: calc(100% + 4px); overflow-x: auto; padding: 1px 2px 2px; margin: -1px -2px -2px; }
.bb .table-wrap { overflow-x: auto; }

/* Vídeo: o quadro de 560x315 do fórum, em linha (o alinhamento do texto o posiciona); encolhe na tela estreita */
.bb .bb-video { display: inline-block; position: relative; width: 560px; max-width: 100%; aspect-ratio: 16 / 9; overflow: hidden; vertical-align: baseline; background: #000; }
.bb .bb-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 5. Tags que só o System tem (o fórum as mostraria como texto): sobre a mesma folha */
.bb .bb-p { margin: 0 0 8px; text-align: inherit; hyphens: manual; }
.bb .bb-indent { margin-left: 28px; }
.bb .bb-indent-2 { margin-left: 56px; }
.bb .bb-indent-3 { margin-left: 84px; }
.bb .bb-indent-4 { margin-left: 112px; }
.bb .bb-indent-5 { margin-left: 140px; }
.bb .bb-indent-6 { margin-left: 168px; }
@media (max-width: 600px) {
  .bb .bb-indent { margin-left: 14px; }
  .bb .bb-indent-2 { margin-left: 28px; }
  .bb .bb-indent-3 { margin-left: 42px; }
  .bb .bb-indent-4 { margin-left: 56px; }
  .bb .bb-indent-5 { margin-left: 70px; }
  .bb .bb-indent-6 { margin-left: 84px; }
}
.bb .bb-img-invalida { color: var(--muted); font-size: 12px; font-style: italic; }
.bb .bb-media { display: block; width: 100%; max-width: 720px; margin: 8px 0; border-radius: var(--radius-sm); }
.bb .bb-documento { margin: 8px 0; padding: 22px 26px; background: #f4f4ee; border: 1px solid #cfd2c2; border-radius: var(--radius-field); color: #23261e; }
.bb .bb-documento .bb-topico, .bb .bb-documento .bb-h1, .bb .bb-documento .bb-h2, .bb .bb-documento .bb-h3 { color: #1d2530; }
.bb .bb-logo { display: block; width: 64px; margin: 4px auto 10px; image-rendering: pixelated; }
.bb .bb-topico { margin: 16px 0 6px; color: var(--cyan-text); font-size: 15px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.bb .bb-aviso { margin: 8px 0; padding: 10px 12px; background: var(--accent-soft); border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; }
.bb .bb-aprovados { margin: 8px 0; padding: 10px 12px; background: rgba(30, 168, 74, .12); border-left: 3px solid #1ea84a; border-radius: 0 8px 8px 0; color: inherit; }
.bb .bb-reprovados { margin: 8px 0; padding: 10px 12px; background: rgba(217, 48, 37, .12); border-left: 3px solid #d93025; border-radius: 0 8px 8px 0; }
.bb .bb-assinatura { margin-top: 18px; padding-top: 10px; border-top: 1px dashed var(--line); color: var(--muted); font-style: italic; }
.bb .bb-botao { margin: 6px 4px 6px 0; }
/* [mark] sem cor: o amarelo do marca-texto; com cor, o motor põe o fundo e o texto de maior contraste no style */
.bb .bb-mark { padding: 0 3px; background: #fcf000; border-radius: 3px; color: #1a1a1a; }
.bb .bb-mention { color: var(--accent-text); font-weight: 600; }
/* Efeitos do fórum, com o que as classes .flipH, .flipV, .blur e .fade da folha dele dão num
   navegador de hoje (os filter: progid de lá não valem mais): o desfoque é a letra clara com sombra
   e o esmaecido é um fundo que some para a direita. Os letreiros ([scroll], [updown]) saem no
   <marquee> que o fórum publica e é o navegador que os move, sem regra aqui */
.bb .bb-espelho-h { display: inline-block; transform: scale(-1, 1); }
.bb .bb-espelho-v { display: inline-block; transform: scale(1, -1); }
.bb .bb-desfocado { display: inline-block; color: #ddd; text-shadow: 0 0 6px #aaaaaa; }
.bb .bb-esmaecido { display: inline-block; background-image: linear-gradient(to right, rgb(235, 234, 221), rgba(235, 234, 221, 0)); }

/* 6. Classes do tema do fórum. Os modelos põem classes do CSS do fórum nas tabelas
   ([table class="rank"], [table class="info-table success"]); o motor as emite com o prefixo bbf-.
   As regras abaixo são as do fórum, com as declarações como lá estão (geradas da folha dele);
   :where() não soma especificidade, e cada regra fica com a que tem no fórum. Os ícones também são
   os de lá: um quadro antes do texto (.rank.x:before) ou um ícone antes de cada linha da tabela
   (.x tr::before, que vira uma célula a mais, como no fórum), na Font Awesome 5 Free 5.8.1, a
   versão que o fórum carrega, servida pelo site (public/fonts/font-awesome, licença em LICENSE.txt).
   Com o peso 300 da info-table o navegador usa a face regular, que não tem todos os ícones: os que
   faltam ficam em branco no fórum e aqui. */
@font-face { font-family: "Font Awesome 5 Free"; font-style: normal; font-weight: 400; font-display: auto; src: url("/fonts/font-awesome/fa-regular-400.woff2") format("woff2"); }
@font-face { font-family: "Font Awesome 5 Free"; font-style: normal; font-weight: 900; font-display: auto; src: url("/fonts/font-awesome/fa-solid-900.woff2") format("woff2"); }
@keyframes bbf-rainbow {0% {background-position: 0% 82%;} 50% {background-position: 100% 19%;} 100% {background-position: 0% 82%;} }
:where(.bb) .bbf-rank { color: #fff; font-size: 16px; font-weight: 800; font-family: 'Calibri Light','sans-serif'; text-transform: uppercase; height: 30px; line-height: 30px; margin: 10px auto 0; width: 200px; padding: 0 5px; border-radius: 4px; border-bottom: 2px solid rgba(0,0,0,0.2); --bb-lh: 30px; }
:where(.bb) .bbf-rank:before { float: left; width: 30px; height: 30px; line-height: 30px; left: 5px; background-color: rgba(255,255,255,0.2); text-align: center; font-size: 15px; color: #fff; font-family: 'Font Awesome 5 Free'; }
:where(.bb) .bbf-rank.bbf-supr { background-image: linear-gradient(124deg, #FF0000, #FF7F00, #FFFF00, #00FF00, #0000FF, #4B0082, #8F00FF); background-size: 1800% 1800%; animation: bbf-rainbow 5s linear infinite; }
:where(.bb) .bbf-rank.bbf-supr:before { content: "\f521"; }
:where(.bb) .bbf-rank.bbf-adm { background-image: linear-gradient(124deg, #86167e, #501686, #861616, #161e86, #16864e, #1e8616, #e6e608, #e68608, #e63808, #e60808, #5d2525, #1b1818); background-size: 1800% 1800%; animation: bbf-rainbow 3s linear infinite; }
:where(.bb) .bbf-rank.bbf-adm:before { content: "\f669"; }
:where(.bb) .bbf-rank.bbf-abin { background-image: linear-gradient(124deg, #000000, #004002, #307a25, #000000, #380000, #3d2222); background-size: 1800% 1800%; animation: bbf-rainbow 4s linear infinite; }
:where(.bb) .bbf-rank.bbf-abin:before { content: "\f21b"; }
:where(.bb) .bbf-rank.bbf-goe { background-image: linear-gradient(124deg, #000000, #3f1717, #670101, #000000, #781010, #b32525, #361515); background-size: 1800% 1800%; animation: bbf-rainbow 4s linear infinite; }
:where(.bb) .bbf-rank.bbf-goe:before { content: "\f714"; }
:where(.bb) .bbf-rank.bbf-cigs { background-image: linear-gradient(to right, #8C4614, #000, #3d2222); background-size: 1800% 1800%; animation: bbf-rainbow 4s linear infinite; }
:where(.bb) .bbf-rank.bbf-cigs:before { content: "\f0e7"; }
:where(.bb) .bbf-rank.bbf-cdt { background-image: linear-gradient(to right, #4EFCBD, #6DFCC9, #000, #392FCD7); background-size: 1800% 1800%; animation: bbf-rainbow 4s linear infinite; }
:where(.bb) .bbf-rank.bbf-cdt:before { content: "\f0e3"; }
:where(.bb) .bbf-rank.bbf-cor { background-image: linear-gradient(to right, #666666, #5C5C5C, #525252, #484848, #3F3F3F, #373737, #2f2f2f, #282828, #202020, #181818, #0e0e0e, #000000); }
:where(.bb) .bbf-rank.bbf-cor:before { content: "\f0e3"; }
:where(.bb) .bbf-rank.bbf-mnp { background-image: linear-gradient(to right, #9be3e3, #227a76, #304241); }
:where(.bb) .bbf-rank.bbf-mnp:before { content: "\f24e"; }
:where(.bb) .bbf-rank.bbf-des { background-image: linear-gradient(124deg, #3f59cc, #3b477f, #1a203d, #2a1a3d, #421d6f, #5f1daf, #e3aed6, #c463ac, #952f7b, #661251, #39072d, #000000); background-size: 1800% 1800%; animation: bbf-rainbow 4s linear infinite; }
:where(.bb) .bbf-rank.bbf-des:before { content: "\f121"; }
:where(.bb) .bbf-rank.bbf-cog { background-color:#003616; }
:where(.bb) .bbf-rank.bbf-cog:before { content: "\f70e"; }
:where(.bb) .bbf-rank.bbf-crh { background-color:#4F4F4F; }
:where(.bb) .bbf-rank.bbf-crh:before { content: "\f2bb"; }
:where(.bb) .bbf-rank.bbf-af { background-color:#106309; }
:where(.bb) .bbf-rank.bbf-af:before { content: "\f201"; }
:where(.bb) .bbf-rank.bbf-apm { background-image: linear-gradient(to left, #a0b8b5, #879a97, #6f7d7a, #57615f, #414645); }
:where(.bb) .bbf-rank.bbf-apm:before { content: "\f274"; }
:where(.bb) .bbf-rank.bbf-aman { background-color:#999191; }
:where(.bb) .bbf-rank.bbf-aman:before { content: "\f02d"; }
:where(.bb) .bbf-rank.bbf-cf { background-color:#df4b88; }
:where(.bb) .bbf-rank.bbf-cf:before { content: "\f114"; }
:where(.bb) .bbf-rank.bbf-cs { background-color:#0AC200; }
:where(.bb) .bbf-rank.bbf-cs:before { content: "\f19d"; }
:where(.bb) .bbf-rank.bbf-ci { background-color:#2A11ED; }
:where(.bb) .bbf-rank.bbf-ci:before { content: "\f19d"; }
:where(.bb) .bbf-rank.bbf-ct { background-color:#E00000; }
:where(.bb) .bbf-rank.bbf-ct:before { content: "\f19d"; }
:where(.bb) .bbf-rank.bbf-cp { background-color:#D6E326; }
:where(.bb) .bbf-rank.bbf-cp:before { content: "\f19d"; }
:where(.bb) .bbf-rank.bbf-cons { background-color:#FFAA00; }
:where(.bb) .bbf-rank.bbf-cons:before { content: "\f19d"; }
:where(.bb) .bbf-rank.bbf-cdo { background-color:#571239; }
:where(.bb) .bbf-rank.bbf-cdo:before { content: "\f5a2"; }
:where(.bb) .bbf-rank.bbf-dme0 { background-color: #86bb87; }
:where(.bb) .bbf-rank.bbf-dme0:before { content: "\f1ae"; }
:where(.bb) .bbf-rank.bbf-dme1 { background-color: #c99428; }
:where(.bb) .bbf-rank.bbf-dme1:before { content: "\f1b0"; }
:where(.bb) .bbf-rank.bbf-dme5 { background-color: #0c3d52; }
:where(.bb) .bbf-rank.bbf-dme5:before { content: "\f2ce"; }
:where(.bb) .bbf-success a, :where(.bb) .bbf-information a, :where(.bb) .bbf-warn a, :where(.bb) .bbf-alert a, :where(.bb) .bbf-custom a, :where(.bb) .bbf-dev a, :where(.bb) .bbf-jrevo a, :where(.bb) .bbf-admin a, :where(.bb) .bbf-rh a, :where(.bb) .bbf-esa a, :where(.bb) .bbf-efp a, :where(.bb) .bbf-stm a, :where(.bb) .bbf-aud a { color: #ecf0f1!important;text-decoration: underline!important; }
:where(.bb) .bbf-success { background-color: #00a300; }
:where(.bb) .bbf-success tr:first-child::before { content: '\f058 ';font-family: "Font Awesome 5 Free"; }
:where(.bb) .bbf-alert { background-color: #ffc40d; }
:where(.bb) .bbf-alert tr::before { content: '\f071 ';font-family: "Font Awesome 5 Free"; }
:where(.bb) .bbf-warn { background-color: #e54d42; }
:where(.bb) .bbf-warn tr::before { content: '\F057 ';font-family: "Font Awesome 5 Free"; }
:where(.bb) .bbf-information { background-color: #3a99d9; }
:where(.bb) .bbf-information tr::before { content: '\F05a ';font-family: "Font Awesome 5 Free"; }
:where(.bb) .bbf-custom { background-color: #2C3E50; }
:where(.bb) .bbf-custom tr::before { content: '\F069 ';font-family: "Font Awesome 5 Free"; }
:where(.bb) .bbf-dev { background-color: #3296FA; }
:where(.bb) .bbf-dev tr::before { content: '\F121 ';font-family: "Font Awesome 5 Free"; }
:where(.bb) .bbf-jrevo { background-color: #00468c; }
:where(.bb) .bbf-jrevo tr::before { content: '\F1ea ';font-family: "Font Awesome 5 Free"; }
:where(.bb) .bbf-admin { background-color: #00468c; }
:where(.bb) .bbf-admin tr::before { content: '\f013 ';font-family: "Font Awesome 5 Free"; }
:where(.bb) .bbf-rh { background-color: #00B7FF; }
:where(.bb) .bbf-rh tr::before { content: '\f058 ';font-family: "Font Awesome 5 Free"; }
:where(.bb) .bbf-esa { background-color: #0006BF; }
:where(.bb) .bbf-esa tr::before { content: '\f058 ';font-family: "Font Awesome 5 Free"; }
:where(.bb) .bbf-efp { background-color: #044505; }
:where(.bb) .bbf-efp tr::before { content: '\f058 ';font-family: "Font Awesome 5 Free"; }
:where(.bb) .bbf-stm { background-color: #044505; }
:where(.bb) .bbf-stm tr::before { content: '\f058 ';font-family: "Font Awesome 5 Free"; }
:where(.bb) .bbf-audi { background-color: #005C03; }
:where(.bb) .bbf-audi tr::before { content: '\F201 ';font-family: "Font Awesome 5 Free"; }
:where(.bb) .bbf-info-table.bbf-dev { background: linear-gradient(to right, #eb8500, #965602, #5c3502);background-size: 1800% 1800%;animation: bbf-rainbow 2s linear infinite; }
:where(.bb) .bbf-info-table.bbf-admin { background-image: radial-gradient(circle, #ff0000, #db0a10, #b71317, #941719, #711919);background-size: 1800% 1800%;animation: bbf-rainbow 6s ease infinite; }
:where(.bb) .bbf-info-table.bbf-rh { background-image: radial-gradient(circle, #0483b5, #00B7FF); background-size: 1800% 1800%; animation: bbf-rainbow 3s ease infinite; }
:where(.bb) .bbf-info-table.bbf-esa { background-image: radial-gradient(circle, #0f138c, #0006BF); background-size: 1800% 1800%; animation: bbf-rainbow 3s ease infinite; }
:where(.bb) .bbf-info-table.bbf-efp { background-image: radial-gradient(circle, #044505, #477a11); background-size: 1800% 1800%; animation: bbf-rainbow 3s ease infinite; }
:where(.bb) .bbf-info-table.bbf-stm { background-image: radial-gradient(circle, #1c1c1c, #262626, #666666); background-size: 1800% 1800%; animation: bbf-rainbow 3s ease infinite; }
:where(.bb) .bbf-success, :where(.bb) .bbf-information, :where(.bb) .bbf-warn, :where(.bb) .bbf-alert, :where(.bb) .bbf-custom, :where(.bb) .bbf-dev, :where(.bb) .bbf-jrevo, :where(.bb) .bbf-admin, :where(.bb) .bbf-audi { width: 95%; height: auto; padding: 1.4em; margin: 1em; text-align: left; border-radius: 2px; font-weight: 300; color: white; }
:where(.bb) .bbf-rank.bbf-wbm { background-image: linear-gradient(124deg,#000000,#273e73,#1e88e5,#ffffff,#1de840,#1ddde8,#2b1de8,#dd00f3,#dd00f3);background-size: 1800% 1800%;animation: bbf-rainbow 3s ease infinite; }
:where(.bb) .bbf-rank.bbf-wbm:before { content: "\f505";margin-right: 5px;font-family: "Font Awesome 5 Free"; }
:where(.bb) .bbf-rank.bbf-stm { background-image: linear-gradient(to right, #666666, #5c5c5c, #525252, #484848, #3f3f3f, #373737, #2f2f2f, #282828, #202020, #181818, #0e0e0e, #000000); }
:where(.bb) .bbf-rank.bbf-stm:before { content: "\f0e3";margin-right: 5px;font-family: "Font Awesome 5 Free"; }
:where(.bb) .bbf-rank.bbf-crh { background: linear-gradient(to right, #1D399e 0%, #02a5ee 100%); }
:where(.bb) .bbf-rank.bbf-crh:before { content: "\f2c2";margin-right: 5px;font-family: "Font Awesome 5 Free"; }
:where(.bb) .bbf-rank.bbf-p2 { background-image: linear-gradient(to right, #000000, #004002, #040038, #a98a01, #115000);color: #fff09c;background-size: 1800% 1800%;animation: bbf-rainbow 6s linear infinite; }
:where(.bb) .bbf-rank.bbf-p2:before { content: "\f21b";margin-right: 5px;font-family: "Font Awesome 5 Free"; }
:where(.bb) .bbf-rank.bbf-aud { background-image: radial-gradient(circle, #00c400, #0ea200, #118100, #106200, #0c4400); color:#fdd050; }
:where(.bb) .bbf-rank.bbf-aud:before { content: "\f201";margin-right: 5px;font-family: "Font Awesome 5 Free"; }
:where(.bb) .bbf-rank.bbf-jfamr { background-image: linear-gradient(to right, #5c23be, #5139cb, #424ad7, #3059e2, #1267eb); }
:where(.bb) .bbf-rank.bbf-jfamr:before { content: "\f1ea";margin-right: 5px;font-family: "Font Awesome 5 Free"; }
:where(.bb) .bbf-rank.bbf-deat { background: linear-gradient(to right, #000000 0%, #4b0303 100%); color:#9e0000; }
:where(.bb) .bbf-rank.bbf-deat:before { content: "\f714";margin-right: 5px;font-family: "Font Awesome 5 Free"; }
:where(.bb) .bbf-rank.bbf-cdp { background-image: linear-gradient(124deg, #FF0000, #FF7F00, #FFFF00, #00FF00, #0000ff, #4b0082, #8f00ff);background-size: 1800% 1800%;animation: bbf-rainbow 5s linear infinite; }
:where(.bb) .bbf-rank.bbf-cdp:before { content: "\f521";margin-right: 5px;font-family: "Font Awesome 5 Free"; }
:where(.bb) .bbf-rank.bbf-adm { background-image: radial-gradient(circle, #ff0000, #db0a10, #b71317, #941719, #711919);background-size: 1800% 1800%;animation: bbf-rainbow 6s ease infinite; }
:where(.bb) .bbf-rank.bbf-adm:before { content: "\f085";margin-right: 5px;font-family: "Font Awesome 5 Free"; }

/* 7. HTML de autor e texto oficial fora da folha. */
/* HTML de autor (documentos e notícias): texto pré-formatado e código quebram dentro da caixa. Um
   <pre> de linha comprida alargava a página do editor no celular (não havia regra para ele). */
.doc-html pre, .nt-html pre { max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; font-family: 'Courier New', Courier, monospace; }
.doc-html code, .doc-html kbd, .doc-html samp, .nt-html code { overflow-wrap: anywhere; }
/* Texto oficial em BBCode no perfil e no requerimento (fora das superfícies .bb): o básico da leitura */
.pf-motivo a, .req-item-resumo a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }
.pf-motivo .bb-list, .req-item-resumo .bb-list { margin: 4px 0; padding-left: 20px; }
.pf-motivo .bb-img, .req-item-resumo .bb-img { max-width: 100%; height: auto; }
