/* Base comum ao portal e ao painel: fontes, reset, tipografia e utilitários. */

/* ---- Fontes (hospedadas no próprio servidor, subconjunto latino) ---- */
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fontes/dm-serif-display-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fontes/source-serif-4-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fontes/source-serif-4-latin-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/static/fontes/source-serif-4-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fontes/source-serif-4-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fontes/public-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/static/fontes/public-sans-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/static/fontes/public-sans-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fontes/public-sans-latin-700-normal.woff2') format('woff2');
}

/* ---- Reset enxuto ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--f-ui);
  font-size: 15px;
  line-height: 1.5;
}
h1,
h2,
h3,
h4,
p,
figure,
blockquote {
  margin: 0;
}
img,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
ul[role='list'],
ol[role='list'] {
  list-style: none;
  margin: 0;
  padding: 0;
}

a {
  color: var(--tinta);
  text-decoration: none;
}
a:hover {
  color: var(--ambar);
}

:focus-visible {
  outline: 3px solid var(--ambar);
  outline-offset: 2px;
}

/* ---- Tipografia ---- */
.marca {
  font-family: var(--f-marca);
  font-weight: 400;
  line-height: 1;
}
.titulo-secao {
  font-family: var(--f-marca);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.15;
}
.chapeu {
  font-family: var(--f-ui);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--ambar);
}
.linha-fina {
  font-family: var(--f-titulo);
  font-size: 19px;
  line-height: 1.5;
  color: var(--tinta-2);
}
.texto-materia {
  max-width: 700px;
  font-family: var(--f-titulo);
  font-size: 19px;
  line-height: 1.7;
}
.meta {
  font-size: 13px;
  color: var(--cinza);
}

@media (max-width: 767px) {
  .titulo-secao {
    font-size: 24px;
  }
  .chapeu {
    font-size: 11px;
  }
  .linha-fina {
    font-size: 16px;
  }
  .texto-materia {
    font-size: 18px;
    line-height: 1.65;
  }
}

/* ---- Botões ---- */
.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--tinta);
  border-radius: 4px;
  background: transparent;
  font-family: var(--f-ui);
  font-size: 15px;
  font-weight: 600;
  color: var(--tinta);
  text-decoration: none;
  white-space: nowrap;
}
.botao:hover {
  color: var(--tinta);
  background: var(--papel-escuro);
}
.botao--principal {
  border-color: var(--verde);
  background: var(--verde);
  color: #fff;
  font-weight: 700;
}
.botao--principal:hover {
  color: #fff;
  background: var(--verde-2);
}
.botao--acao {
  border-color: var(--ambar);
  background: var(--ambar);
  color: #fff;
  font-weight: 700;
}
.botao--acao:hover {
  color: #fff;
  background: var(--ambar-escuro);
}
.botao-icone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--tinta);
  border-radius: 4px;
  background: transparent;
  color: var(--tinta);
}

/* ---- Utilitários ---- */
/* O atributo hidden sempre esconde, mesmo em elementos com display próprio (flex, grid...). */
[hidden] {
  display: none !important;
}
.visualmente-oculto {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.pular-conteudo {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--verde);
  color: #fff;
  font-weight: 700;
}
.pular-conteudo:focus {
  top: 8px;
  color: #fff;
}
.conteiner {
  width: 100%;
  max-width: calc(var(--largura-max) + 2 * var(--margem));
  margin: 0 auto;
  padding: 0 var(--margem);
}

/* Visibilidade por tamanho de tela (computador ≥ 768 px) */
@media (max-width: 767px) {
  .esconde-celular {
    display: none !important;
  }
}
@media (min-width: 768px) {
  .so-celular {
    display: none !important;
  }
}

.faixa-homologacao {
  margin: 0;
  padding: 6px 16px;
  background: var(--st-revisao-bg);
  color: var(--st-revisao);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
