/* ==========================================================
   CONFIGURAÇÕES GERAIS DA PÁGINA
   ========================================================== */

html,
body {
    max-width: 100vw;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    color: #212529;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

body {
    padding-top: 70px;
}

/* ==========================================================
   LOGO
   ========================================================== */

.logo-original-topo {
    max-height: 170px;
    width: auto;
}

/* ==========================================================
   CARD / PAPER
   ========================================================== */

.paper-card {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    overflow: hidden;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* ==========================================================
   CONTAINER RESPONSIVO DAS TABELAS
   ========================================================== */

.table-responsive {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1.5rem;
}

.tabela-fisica-preto-branco {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border: 2px solid #222;
    border-radius: 12px;
    overflow: hidden;
    margin: 0;
    font-size: .92rem;
    line-height: 1.42;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.tabela-fisica-preto-branco th,
.tabela-fisica-preto-branco td {
    width: 12.5%;
}

.tabela-fisica-preto-branco thead th {
    background: #111;
    color: #fff;
    padding: 10px;
    text-align: center;
    vertical-align: middle;
    font-weight: 700;
    border-right: 1px dotted rgba(255, 255, 255, .35);
}

.tabela-fisica-preto-branco tbody td {
    padding: 9px 10px;
    vertical-align: middle;
    border-top: 1px dotted #cfcfcf;
    border-right: 1px dotted #cfcfcf;
}

.tabela-fisica-preto-branco tbody tr:nth-of-type(odd) td {
    background: #fff;
    color: #222;
}

.tabela-fisica-preto-branco tbody tr:nth-of-type(even) td {
    background: #595959;
    color: #fff;
}

.tabela-fisica-preto-branco tbody td:first-child {
    text-align: left;
    padding-left: 14px;
    font-weight: 600;
}

.tabela-fisica-preto-branco tbody td:not(:first-child) {
    text-align: center;
}

/* ==========================================================
   MATHJAX RESPONSIVO
   ========================================================== */

mjx-container[jax="CHTML"] {
    margin: 0 !important;
    padding: 0 !important;
}

.math, .equacao {
    margin: 1rem 0;
    text-align: center;
}

.math mjx-container[jax="CHTML"][display="true"],
.equacao mjx-container[jax="CHTML"][display="true"] {
    display: block;
    text-align: center !important;
    margin: 0 auto !important;
}

.math-mobile {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

/* ==========================================================
   TIPOGRAFIA E ELEMENTOS GERAIS
   ========================================================== */

p,
li,
span {
    word-break: break-word;
    overflow-wrap: break-word;
}

.conteudo-texto-pagina,
.conteudo-texto-pagina p,
.conteudo-texto-pagina li,
.conteudo-texto-pagina span,
.conteudo-texto-pagina td,
.conteudo-texto-pagina th {
    font-family: "Times New Roman", Times, serif !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Lato', sans-serif;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

h1 {
    font-size: 1.75rem;
    text-align: center;
    font-weight: bold;
}

h2 {
    font-size: 1.35rem;
    border-bottom: 1px solid #eee;
    padding-bottom: .3rem;
}

p {
    text-align: justify;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* ==========================================================
   CABEÇALHO DO ARTIGO (AUTOR E INSTITUIÇÃO)
   ========================================================== */
.artigo-cabecalho {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #dee2e6;
}

.artigo-titulo {
    font-size: 1.75rem;
    font-weight: bold;
    color: #212529;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    font-family: 'Lato', sans-serif;
}

.artigo-autores {
    font-size: 1.1rem;
    font-weight: 600;
    color: #343a40;
    margin-bottom: 0.25rem;
}

.artigo-instituicao {
    font-size: 0.95rem;
    font-style: italic;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

/* ==========================================================
   ESTILIZAÇÃO DOS ITENS DO MENU CUSTOMIZADO DE ARTIGOS
   ========================================================== */
.artigo-custom-dropdown .dropdown-item {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    transition: all 0.15s ease-in-out;
    border-left: 4px solid transparent;
}

.artigo-custom-dropdown .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #395898 !important;
    border-left-color: #E29532;
    padding-left: 20px !important;
}

/* ==========================================================
   CENTRALIZAÇÃO PERFEITA DO RODAPÉ
   ========================================================== */
footer, 
.fisica-footer, 
#rodape-site {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* ==========================================================
   QUEBRA DE PÁGINA MANUAL (PARA IMPRESSÃO E PDF)
   ========================================================== */
@media print {
    body {
        background-color: #fff !important;
        padding-top: 0 !important;
    }
    
    .paper-card {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
}

.quebra-pagina {
    page-break-after: always;
    break-after: page;
}



/* Regra base para listas */
.apa-list {
  text-align: left !important;
  list-style-position: outside !important;
  padding-left: 1.5rem !important;
  margin-left: 0 !important;
}

.apa-list-item {
  text-align: left !important;
  margin-bottom: 0.5rem;
}

/* Ajuste fino apenas para telas pequenas (Celular) */
@media (max-width: 768px) {
  .apa-list {
    padding-left: 1.1rem !important;
    margin-left: 0 !important;
  }
}



@media (max-width: 768px) {
  /* Mantém a largura de 100% alinhada com o menu superior */
  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
  
  /* Card com largura total, mas com padding interno confortável para o texto não colar nas bordas */
  .paper-card {
    width: 100% !important;
    max-width: 100% !important;
    border-left: none !important;
    border-right: none !important;
    border-radius: 0 !important;
    padding: 20px 16px !important; /* Respiro ideal para o texto nas laterais da tela */
    margin: 0 !important;
  }
}