/* Tabelas no corpo das notícias
   Uso:
   <div class="tabela-noticia-wrap">
     <table class="tabela-noticia">...</table>
   </div>
   O site usa html { font-size: 10px }, por isso os tamanhos estão em rem
   (1.4rem = 14px). Cores nas variáveis abaixo. */

.tabela-noticia-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0 3rem;
}

.tabela-noticia {
  --tn-texto: #425563;
  --tn-borda: #d9dde3;
  --tn-cabecalho-fundo: #eef1f4;
  --tn-zebra: #f8f9fb;

  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  border-spacing: 0;
  background: transparent;
  color: var(--tn-texto);
}

.tabela-noticia th,
.tabela-noticia td {
  padding: 1rem 1.4rem;
  font-size: 1.4rem;
  line-height: 1.45;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--tn-borda);
}

.tabela-noticia thead th {
  background: var(--tn-cabecalho-fundo);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  border-bottom: 2px solid var(--tn-borda);
}

.tabela-noticia thead th strong {
  font-weight: inherit;
}

.tabela-noticia tbody tr:nth-child(even) {
  background: var(--tn-zebra);
}

/* Colunas a partir da segunda (local, horário) não quebram linha;
   a primeira coluna absorve o texto longo */
.tabela-noticia td:not(:first-child) {
  white-space: nowrap;
}

/* Respiro entre intertítulos e tabelas */
h3 + .tabela-noticia-wrap {
  margin-top: 1rem;
}

.tabela-noticia-wrap + h2,
.tabela-noticia-wrap + h3 {
  margin-top: 2rem;
}

@media (max-width: 600px) {
  .tabela-noticia th,
  .tabela-noticia td {
    padding: 0.8rem 1rem;
    font-size: 1.3rem;
  }
}
