/* Gerado por tools/subset-fontes.py. Não editar à mão.

   Source Serif 4 e Source Sans 3, SIL Open Font License 1.1.
   Instanciadas em peso 400:600 e recortadas aos caracteres do site. */

@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/source-serif-4-8552061c.woff2') format('woff2');
}

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/source-sans-3-571e722a.woff2') format('woff2');
}


/* O Brasil acordou — folha de estilo única.
 *
 * Documento, não campanha. Tipografia e espaço; nenhuma imagem na página.
 * Mobile first: tudo abaixo assume 360px e só cresce em media query.
 */

:root {
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --fundo: #fbfaf7;
  --fundo-2: #f2f0ea;
  --fundo-3: #e9e6dd;
  --texto: #1b1a17;
  --texto-2: #5f5b52;
  --linha: #dcd8ce;
  --acento: #0d5c63;
  --acento-texto: #ffffff;

  color-scheme: light dark;

  --medida: 68ch;
  --gutter: 1.25rem;
  --ritmo: 1.6rem;
}

/* Modo escuro em dois lugares, de propósito:
   - a media query vale quando o leitor não escolheu nada (o padrão "automático");
   - o [data-theme] vale quando escolheu, e precisa ganhar da media query
     nas duas direções — claro dentro de um sistema escuro também.
   Nenhuma cor tem sua única definição aqui dentro. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='claro']) {
    --fundo: #16171a;
    --fundo-2: #1d1f23;
    --fundo-3: #26292e;
    --texto: #e9e6df;
    --texto-2: #a49e93;
    --linha: #33363c;
    --acento: #63c3cc;
    --acento-texto: #10181a;
  }
}

:root[data-theme='escuro'] {
    --fundo: #16171a;
    --fundo-2: #1d1f23;
    --fundo-3: #26292e;
    --texto: #e9e6df;
    --texto-2: #a49e93;
    --linha: #33363c;
    --acento: #63c3cc;
    --acento-texto: #10181a;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  padding: 0;
  background: var(--fundo);
  color: var(--texto);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.65;
  font-variant-numeric: oldstyle-num;
  text-rendering: optimizeLegibility;
}

@media (min-width: 46em) { body { font-size: 19px; line-height: 1.7; } }

a { color: inherit; }
[hidden] { display: none !important; }

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

.visualmente-oculto {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.pular {
  position: absolute; left: -9999px;
  z-index: 60; padding: .7rem 1rem;
  background: var(--acento); color: var(--acento-texto);
  font-family: var(--sans); font-size: .9rem; text-decoration: none;
}
.pular:focus { left: .5rem; top: .5rem; }

/* ------------------------------------------------------- barra de progresso */

.progresso {
  position: fixed; inset: 0 0 auto 0;
  height: 3px; z-index: 50;
  background: transparent; pointer-events: none;
}
.progresso-barra {
  height: 100%; width: 0;
  background: var(--acento);
  transition: width .1s linear;
}

/* ------------------------------------------------------ sugestão de idioma */

.sugestao {
  display: flex; align-items: center; gap: 1rem;
  padding: .7rem var(--gutter);
  background: var(--fundo-3);
  border-bottom: 1px solid var(--linha);
  font-family: var(--sans); font-size: .9rem;
}
.sugestao p { margin: 0; flex: 1; }
.sugestao a { color: var(--acento); font-weight: 600; }
.sugestao-fechar {
  border: 1px solid var(--linha); background: transparent; color: var(--texto-2);
  font-family: var(--sans); font-size: .8rem;
  padding: .3rem .6rem; border-radius: 3px; cursor: pointer;
}

/* --------------------------------------------------------------- capa */

.capa {
  max-width: calc(var(--medida) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 3rem var(--gutter) 2.5rem;
}

.capa-topo {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  margin: 0 0 3.5rem;
}
.idiomas ul { display: flex; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.idioma {
  display: block;
  font-family: var(--sans); font-size: .78rem; font-weight: 600;
  letter-spacing: .06em;
  padding: .3rem .55rem;
  color: var(--texto-2); text-decoration: none;
  border: 1px solid var(--linha); border-radius: 3px;
}
.idioma[aria-current] { color: var(--acento-texto); background: var(--acento); border-color: var(--acento); }
.idioma--inativo { opacity: .45; cursor: default; }

/* seletor de tema: automático, claro, escuro */
.tema { display: flex; }
.tema-grupo {
  display: flex; gap: .25rem;
  border: 1px solid var(--linha); border-radius: 3px;
  padding: .15rem;
}
.tema-opcao {
  font-family: var(--sans); font-size: .72rem; font-weight: 600;
  letter-spacing: .05em;
  padding: .28rem .55rem;
  color: var(--texto-2); background: transparent;
  border: 0; border-radius: 2px; cursor: pointer;
  white-space: nowrap;
}
.tema-opcao:hover { color: var(--texto); }
.tema-opcao[aria-pressed='true'] {
  color: var(--acento-texto); background: var(--acento);
}

.chapeu {
  font-family: var(--sans);
  font-size: .82rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--acento);
  margin: 0;
}
.titulo {
  font-size: clamp(1.9rem, 7vw, 2.9rem);
  font-weight: 600; line-height: 1.2;
  margin: .7rem 0 0;
}
.data-linha {
  font-family: var(--sans); font-size: .85rem;
  color: var(--texto-2); margin: .7rem 0 0;
}

.meta-linha {
  display: flex; flex-direction: column; gap: .15rem;
  font-family: var(--sans); font-size: .85rem; color: var(--texto-2);
  margin: 1.8rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--linha);
}

/* --------------------------------------------------------- página e índice */

.pagina {
  max-width: calc(var(--medida) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.indice {
  margin: 0 0 3rem;
  padding: 1.2rem 1.3rem;
  background: var(--fundo-2);
  border: 1px solid var(--linha);
  border-radius: 4px;
  font-family: var(--sans);
}
.indice-cabeca { display: flex; align-items: baseline; justify-content: space-between; }
.indice-titulo {
  font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em;
  color: var(--texto-2); margin: 0 0 .8rem;
}
.indice-fechar {
  border: 1px solid var(--linha); background: transparent; color: var(--texto-2);
  font-family: var(--sans); font-size: .78rem; padding: .25rem .6rem;
  border-radius: 3px; cursor: pointer;
}
.indice-lista { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.indice-item a {
  display: flex; align-items: baseline; gap: .6rem;
  padding: .32rem 0; text-decoration: none; color: var(--texto);
}
.indice-item a:hover .indice-rotulo { color: var(--acento); }
.indice-rotulo { flex: 1; }
.indice-tempo { font-size: .75rem; color: var(--texto-2); white-space: nowrap; }
.indice-item--n1 { font-size: .95rem; font-weight: 600; }
.indice-item--n1 + .indice-item--n1 { margin-top: .5rem; }
.indice-item--n2 { font-size: .82rem; font-weight: 400; padding-left: .8rem; }
.indice-item--n2 a { align-items: baseline; }
.indice-item--n2 .indice-rotulo { line-height: 1.35; }
.indice-item--n2 a { color: var(--texto-2); }
.indice-item--inativo {
  display: flex; gap: .6rem; padding: .32rem 0;
  font-size: .95rem; font-weight: 600; color: var(--texto-2); opacity: .55;
}
.indice-item--inativo .indice-rotulo { flex: 1; }
/* Dois níveis de destaque: a camada em que o leitor está fica acesa de leve, e
   a seção corrente ganha a marca do acento. Assim a posição se lê de relance
   sem que o índice inteiro pisque. */
.indice-item[data-camada-ativa] > a .indice-rotulo { color: var(--texto); }
.indice-item[data-camada-ativa].indice-item--n1 > a .indice-rotulo { color: var(--texto); }

.indice-item[data-ativo] { position: relative; }
.indice-item[data-ativo] > a .indice-rotulo { color: var(--acento); font-weight: 600; }
.indice-item[data-ativo] > a .indice-tempo { color: var(--acento); }
.indice-item[data-ativo]::before {
  content: '';
  position: absolute;
  top: .45rem; bottom: .45rem; left: -1.4rem;
  width: 2px; border-radius: 1px;
  background: var(--acento);
}
.indice-item--n2[data-ativo]::before { left: -1.4rem; }

/* --------------------------------------------------------------- conteúdo */

.conteudo p {
  margin: 0 0 var(--ritmo);
}
.secao-titulo {
  display: flex; align-items: baseline; gap: .5rem;
  font-size: 1.28rem; font-weight: 600; line-height: 1.25;
  margin: 3.5rem 0 1.4rem;
  scroll-margin-top: 1.5rem;
}
.secao-titulo .ancora {
  font-family: var(--sans); font-size: .85rem; font-weight: 400;
  color: var(--texto-2); text-decoration: none;
  opacity: 0; transition: opacity .15s;
}
.secao-titulo:hover .ancora,
.secao-titulo .ancora:focus-visible { opacity: 1; }
@media (hover: none) { .secao-titulo .ancora { opacity: .45; } }

.camada--historia { scroll-margin-top: 1.5rem; }

/* -------------------------------------------------------------- transição */

.transicao {
  margin: 3.5rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--linha);
  border-bottom: 1px solid var(--linha);
  text-align: center;
}
.transicao-titulo { font-size: 1.05rem; margin: 0; }
.transicao-tempo {
  font-family: var(--sans); font-size: .82rem; color: var(--texto-2);
  margin: .3rem 0 0;
}
.transicao-botao {
  margin-top: 1rem;
  font-family: var(--sans); font-size: .9rem; font-weight: 600;
  padding: .6rem 1.4rem; cursor: pointer;
  color: var(--acento-texto); background: var(--acento);
  border: 1px solid var(--acento); border-radius: 3px;
}

/* --------------------------------------------------------------- gráficos */

.grafico {
  margin: 2.5rem 0;
  padding: 1.3rem 1.2rem 1rem;
  background: var(--fundo-2);
  border: 1px solid var(--linha);
  border-radius: 4px;
}
.grafico-titulo {
  font-family: var(--sans); font-size: .82rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--texto-2); margin: 0 0 1.1rem;
}
.grafico-fonte {
  font-family: var(--sans); font-size: .74rem; color: var(--texto-2);
  margin: 1rem 0 0 !important;
}
.grafico .svg { display: block; width: 100%; height: auto; overflow: visible; }

.svg .eixo { stroke: var(--linha); stroke-width: 1; }
.svg .serie { fill: none; stroke: var(--acento); stroke-width: 2.5; stroke-linecap: round; }
.svg .ponto { fill: var(--acento); }
.svg .ponto--fim { r: 7; }
.svg .barra { fill: var(--texto-2); opacity: .35; }
.svg .barra--destaque { fill: var(--acento); opacity: 1; }
.svg .barra--aproximada { opacity: .22; }
.svg text { font-family: var(--sans); fill: var(--texto-2); }
.svg .rotulo-valor { font-size: 19px; font-weight: 600; fill: var(--texto); }
.svg .rotulo-nota, .svg .rotulo-eixo { font-size: 13px; }

/* linha do tempo: vertical no celular, horizontal no desktop */
.linha-do-tempo { display: flex; flex-direction: column; gap: 1.6rem; }
.ato-rotulo {
  font-family: var(--sans); font-size: .74rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .09em;
  color: var(--acento); margin: 0 0 .7rem;
}
.eventos { list-style: none; margin: 0; padding: 0 0 0 1rem; border-left: 2px solid var(--linha); }
.evento { position: relative; padding: 0 0 .9rem .2rem; }
.evento::before {
  content: ''; position: absolute; left: calc(-1rem - 5px); top: .55rem;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--acento);
}
.evento-data {
  display: block; font-family: var(--sans); font-size: .72rem; font-weight: 600;
  letter-spacing: .05em; color: var(--texto-2);
}
.evento-texto { display: block; font-size: .95rem; line-height: 1.4; }

/* grade de números */
.grade-numeros {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.1rem 1rem;
  grid-template-columns: repeat(2, 1fr);
}
.numero-valor {
  display: block; font-family: var(--sans);
  font-size: 1.7rem; font-weight: 600; line-height: 1;
  font-variant-numeric: lining-num tabular-nums;
  color: var(--texto);
}
.numero-rotulo {
  display: block; font-family: var(--sans); font-size: .78rem;
  color: var(--texto-2); margin-top: .25rem; line-height: 1.35;
}

/* ---------------------------------------------- pesquisa (barras horizontais) */

.pesquisa-lista { list-style: none; margin: 0; padding: 0; }
.pesquisa {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .3rem .8rem;
  align-items: baseline;
  padding: .8rem 0;
  border-top: 1px solid var(--linha);
}
.pesquisa:first-child { border-top: 0; padding-top: 0; }
.pesquisa-rotulo {
  font-family: var(--sans); font-size: .88rem; line-height: 1.35;
  grid-column: 1;
}
.pesquisa-quando {
  display: block; font-size: .72rem; color: var(--texto-2); margin-top: .1rem;
}
.pesquisa-valor {
  grid-column: 2; grid-row: 1;
  font-family: var(--sans); font-size: 1.4rem; font-weight: 600;
  font-variant-numeric: lining-num tabular-nums;
  color: var(--texto-2);
}
.pesquisa--destaque .pesquisa-valor { color: var(--acento); }
.pesquisa-trilho {
  grid-column: 1 / -1;
  position: relative; display: block;
  height: 8px; border-radius: 4px;
  background: var(--fundo-3);
}
.pesquisa-barra {
  display: block; height: 100%; border-radius: 4px;
  background: var(--texto-2); opacity: .55;
}
.pesquisa--destaque .pesquisa-barra { background: var(--acento); opacity: 1; }
/* marca de onde o número estava antes; não há série para desenhar entre os dois */
.pesquisa-antes {
  position: absolute; top: -3px; bottom: -3px;
  width: 2px; background: var(--texto); opacity: .5;
}
.pesquisa-nota {
  grid-column: 1 / -1;
  font-family: var(--sans); font-size: .74rem; color: var(--texto-2);
}

/* ------------------------------------------------- as onze cadeiras do STF */

.assentos { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.1rem; }
.cadeira {
  display: inline-block; flex: 0 0 auto;
  width: 22px; height: 26px; border-radius: 3px 3px 5px 5px;
  border: 2px solid var(--texto-2);
}
.cadeira--votou { background: var(--acento); border-color: var(--acento); }
/* sem cor: a hachura distingue quem não votou */
.cadeira--nao-votou {
  background: repeating-linear-gradient(-45deg,
    transparent 0 3px, var(--texto-2) 3px 5px);
}
.cadeira--vaga { border-style: dashed; background: transparent; opacity: .55; }

.assentos-legenda { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.assentos-legenda-item {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--sans); font-size: .82rem; color: var(--texto-2);
  line-height: 1.35;
}
.assentos-legenda-item .cadeira { width: 15px; height: 18px; border-width: 2px; }
.assentos-legenda-item strong { color: var(--texto); }
.assentos-desfecho {
  font-family: var(--sans); font-size: .88rem; font-weight: 600;
  margin: 1.1rem 0 0 !important;
}

/* ------------------------------------------------- a mecânica do bloqueio */

.bloqueio { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.no-bloqueio {
  padding: .9rem 1rem;
  background: var(--fundo);
  border: 1px solid var(--linha);
  border-left: 3px solid var(--acento);
  border-radius: 3px;
}
.no-ator {
  display: block; font-family: var(--sans);
  font-size: .95rem; font-weight: 600;
}
.no-verbo {
  display: block; font-family: var(--sans);
  font-size: .7rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--texto-2); margin: .3rem 0 .15rem;
}
.no-objeto { display: block; font-size: .95rem; line-height: 1.4; }
.bloqueio-rodape {
  font-family: var(--sans); font-size: 1rem; font-weight: 600;
  text-align: center;
  margin: 1.2rem 0 0 !important;
}

.numero--destaque .numero-valor { color: var(--acento); }

.pendente {
  font-family: var(--sans); font-size: .85rem;
  padding: .9rem 1rem; border-left: 3px solid #b3261e; background: #b3261e14;
}

/* --------------------------------------------------------- compartilhamento */

.compartilhar {
  margin: 3rem 0;
  padding: 1.6rem 1.3rem;
  background: var(--fundo-2);
  border: 1px solid var(--linha);
  border-radius: 4px;
}
.compartilhar-titulo {
  font-family: var(--sans); font-size: 1.15rem; font-weight: 600;
  margin: 0 !important;
}
.compartilhar-pedido {
  font-family: var(--sans); font-size: .9rem; color: var(--texto-2);
  margin: .25rem 0 1.2rem !important;
}
.compartilhar-botoes { display: flex; flex-wrap: wrap; gap: .5rem; }
.botao-share {
  font-family: var(--sans); font-size: .87rem; font-weight: 600;
  padding: .55rem .95rem;
  color: var(--texto); background: var(--fundo);
  border: 1px solid var(--linha); border-radius: 3px;
  text-decoration: none; cursor: pointer;
}
.botao-share:hover { border-color: var(--acento); color: var(--acento); }
.botao-share--principal {
  flex: 1 0 100%;
  text-align: center; font-size: 1rem;
  padding: .8rem 1rem;
  color: var(--acento-texto); background: var(--acento); border-color: var(--acento);
}
.botao-share--principal:hover { color: var(--acento-texto); opacity: .9; }

.aviso-copia {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%);
  z-index: 55; margin: 0;
  font-family: var(--sans); font-size: .85rem;
  padding: .6rem 1.1rem; border-radius: 3px;
  color: var(--acento-texto); background: var(--texto);
}

/* ----------------------------------------------------------------- rodapé */

.rodape {
  max-width: calc(var(--medida) + 2 * var(--gutter));
  margin: 4rem auto 0;
  padding: 2rem var(--gutter) calc(5rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--linha);
  font-family: var(--sans); font-size: .85rem; color: var(--texto-2);
}
.rodape p { margin: 0 0 .7rem; }
.rodape a { color: var(--acento); }
.rodape-assinatura { margin-top: 1.5rem; }

/* ------------------------------------------------- botão de índice (mobile) */

.indice-abrir {
  position: fixed; z-index: 45;
  left: 50%; transform: translateX(-50%);
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  font-family: var(--sans); font-size: .87rem; font-weight: 600;
  padding: .65rem 1.4rem; cursor: pointer;
  color: var(--acento-texto); background: var(--texto);
  border: 0; border-radius: 999px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .22);
}

/* No celular o índice vive no painel do botão. Sem JS não há botão, então
   ele fica inline: some só quando o JS assume. */
@media (max-width: 71.99em) {
  .js .indice:not([data-painel]) { display: none; }
}

.indice[data-painel] {
  position: fixed; inset: 0; z-index: 46;
  margin: 0; border: 0; border-radius: 0;
  overflow-y: auto;
  padding: 1.5rem var(--gutter) calc(2rem + env(safe-area-inset-bottom, 0px));
  padding-top: calc(1.5rem + env(safe-area-inset-top, 0px));
}

/* --------------------------------------------------------------- desktop */

@media (min-width: 62em) {
  :root { --gutter: 2rem; }

  .capa { padding-top: 5rem; padding-bottom: 3.5rem; }
  .meta-linha { flex-direction: row; gap: 1.5rem; }

  .grafico { padding: 1.6rem 1.5rem 1.2rem; }
  .grade-numeros { grid-template-columns: repeat(4, 1fr); }
  .bloqueio { grid-template-columns: repeat(3, 1fr); }
  .assentos-legenda { grid-template-columns: 1fr; }
  .pesquisa { grid-template-columns: minmax(0, 1fr) auto; }

  /* linha do tempo horizontal: dois atos lado a lado */
  .linha-do-tempo { flex-direction: row; gap: 2rem; }
  .ato { flex: 1; min-width: 0; }

  .compartilhar-botoes { gap: .55rem; }
  .botao-share--principal { flex: 0 0 auto; font-size: .95rem; }
}

/* ------------------------------------------------- índice na margem esquerda

   A coluna de texto fica centrada na tela, não o conjunto índice + texto. O
   truque é a terceira coluna, vazia, espelhando a do índice: com ela o grid é
   simétrico e a coluna do meio cai exatamente no centro. O índice continua
   sticky, o que uma coluna posicionada por fora não permitiria.

   Só entra a partir de 72em, que é onde sobra margem para os 13rem do índice
   dos dois lados sem espremer o texto. Abaixo disso, ele vive no painel. */
@media (min-width: 72em) {
  .pagina {
    display: grid;
    grid-template-columns: 14rem minmax(0, var(--medida)) 14rem;
    gap: 0 2.5rem;
    justify-content: center;
    align-items: start;
    max-width: none;
  }

  .indice {
    position: sticky;
    top: 2rem;
    margin: 0;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    background: transparent;
    border: 0;
    border-right: 1px solid var(--linha);
    border-radius: 0;
    padding: 0 1.4rem 0 0;
  }

  /* o índice fica à esquerda do texto, então a marca vai na borda de dentro */
  .indice-item[data-ativo]::before,
  .indice-item--n2[data-ativo]::before { left: auto; right: -1.4rem; }

  .indice-abrir { display: none !important; }
}

@media print {
  .indice, .compartilhar, .progresso, .sugestao, .indice-abrir, .pular, .transicao-botao, .ancora { display: none !important; }
  body { font-size: 11pt; background: #fff; color: #000; }
  .pagina { display: block; max-width: none; }
  .grafico { break-inside: avoid; border: 1px solid #ccc; background: #fff; }
  .secao-titulo { break-after: avoid; }
}

/* Gerado a partir de data/graficos.json. Ver cssDasBarras em build.js. */
.pesquisa-barra--16 { width: 16%; }
.pesquisa-barra--43 { width: 43%; }
.pesquisa-barra--76 { width: 76%; }
.pesquisa-barra--79 { width: 79%; }
.pesquisa-antes--24 { left: 24%; }
