/* Site do vereador Luis da Sede.
   Identidade tirada dos posts públicos: azul-royal, amarelo vivo, branco,
   títulos pesados em itálico e caixa alta, etiquetas em pílula com alfinete de local,
   fundo em mosaico de quadrados como o da foto de perfil.
   Pensado primeiro para celular; os ajustes de tela larga ficam no fim. */

:root {
  /* Azuis: do mais claro (brilho dos fundos) ao mais escuro (rodapé). */
  --azul-vivo: #1F47DA;
  --azul: #1230A0;
  --azul-fundo: #0B1C6B;
  --noite: #071247;

  /* Amarelos: o da marca e um tom quente para dar profundidade. */
  --amarelo: #FFE600;
  --amarelo-quente: #FFC41A;

  /* Claros: fundo de página, superfícies e linhas. */
  --branco: #FFFFFF;
  --papel: #F4F6FD;
  --nevoa: #E5EAFB;
  --linha: #C8D1F0;

  /* Texto. */
  --tinta: #0A1440;
  --tinta-suave: #3D4770;
  --claro-suave: #DCE3FC;

  --verde: #0B6B3A;

  --fonte: "Archivo", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --altura-menu: 3.5rem;
  --curva: cubic-bezier(0.2, 0.7, 0.2, 1);

  --mosaico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cg fill='%23fff'%3E%3Crect width='20' height='20' opacity='.07'/%3E%3Crect x='60' width='20' height='20' opacity='.04'/%3E%3Crect x='120' y='20' width='20' height='20' opacity='.09'/%3E%3Crect x='20' y='40' width='20' height='20' opacity='.05'/%3E%3Crect x='80' y='40' width='20' height='20' opacity='.1'/%3E%3Crect x='140' y='60' width='20' height='20' opacity='.05'/%3E%3Crect x='40' y='80' width='20' height='20' opacity='.08'/%3E%3Crect x='100' y='100' width='20' height='20' opacity='.05'/%3E%3Crect y='120' width='20' height='20' opacity='.1'/%3E%3Crect x='60' y='140' width='20' height='20' opacity='.06'/%3E%3Crect x='120' y='140' width='20' height='20' opacity='.08'/%3E%3C/g%3E%3Cg fill='%23FFE600'%3E%3Crect x='100' width='20' height='20' opacity='.16'/%3E%3Crect x='40' y='20' width='20' height='20' opacity='.1'/%3E%3Crect y='60' width='20' height='20' opacity='.14'/%3E%3Crect x='120' y='80' width='20' height='20' opacity='.2'/%3E%3Crect x='60' y='100' width='20' height='20' opacity='.12'/%3E%3Crect x='20' y='140' width='20' height='20' opacity='.16'/%3E%3C/g%3E%3C/svg%3E");
  --mosaico-quente: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cg fill='%23FFC41A'%3E%3Crect width='20' height='20' opacity='.5'/%3E%3Crect x='120' y='20' width='20' height='20' opacity='.35'/%3E%3Crect x='80' y='40' width='20' height='20' opacity='.55'/%3E%3Crect x='40' y='80' width='20' height='20' opacity='.4'/%3E%3Crect y='120' width='20' height='20' opacity='.55'/%3E%3Crect x='120' y='140' width='20' height='20' opacity='.4'/%3E%3C/g%3E%3Cg fill='%23fff'%3E%3Crect x='60' width='20' height='20' opacity='.45'/%3E%3Crect x='20' y='40' width='20' height='20' opacity='.35'/%3E%3Crect x='140' y='60' width='20' height='20' opacity='.5'/%3E%3Crect x='100' y='100' width='20' height='20' opacity='.4'/%3E%3Crect x='60' y='140' width='20' height='20' opacity='.3'/%3E%3C/g%3E%3C/svg%3E");
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
  scroll-padding-bottom: calc(var(--altura-menu) + 0.5rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-bottom: calc(var(--altura-menu) + env(safe-area-inset-bottom, 0px));
  background: var(--branco);
  color: var(--tinta);
  font-family: var(--fonte);
  font-size: 1.0625rem;
  line-height: 1.6;
}

a {
  color: var(--azul);
  text-underline-offset: 0.2em;
}

p {
  margin: 0 0 1rem;
}

h1,
h2,
.marca-nome,
.numero-valor,
.acao-dia,
.projeto-rotulo,
.votos-ano,
.fatos strong,
.lemas span {
  font-weight: 900;
  font-style: italic;
  font-stretch: 85%;
}

h1,
h2 {
  margin: 0 0 1rem;
  text-transform: uppercase;
  text-wrap: balance;
}

/* Todo título de seção leva um traço inclinado, que se desenha quando o título aparece. */
h2 {
  --traco: linear-gradient(90deg, var(--azul), var(--azul-vivo));
  position: relative;
  margin-bottom: 1.4rem;
  padding-bottom: 0.32em;
  font-size: clamp(2.2rem, 8.5vw, 4rem);
  line-height: 0.94;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.6em;
  height: 0.14em;
  background: var(--traco);
  transform: skewX(-20deg);
  transform-origin: 0 50%;
  transition: transform 0.8s var(--curva) 0.15s;
}

h3 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.2;
}

:focus-visible {
  outline: 3px solid var(--amarelo);
  outline-offset: 3px;
  box-shadow: 0 0 0 7px var(--noite);
}

.largura {
  width: min(100% - 2.5rem, 72rem);
  margin-inline: auto;
}

.secao {
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
}

.intro {
  max-width: 60ch;
  margin-bottom: 1.75rem;
  color: var(--tinta-suave);
  font-size: 1.1rem;
}

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

[data-contar] {
  font-variant-numeric: tabular-nums;
}

.pular {
  position: absolute;
  left: 0.5rem;
  top: -5rem;
  z-index: 50;
  padding: 0.6rem 1rem;
  background: var(--amarelo);
  color: var(--azul-fundo);
  font-weight: 800;
}

.pular:focus {
  top: 0.5rem;
}

/* ---------- Barra de progresso da leitura ---------- */

.progresso {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  height: 4px;
  pointer-events: none;
}

.progresso span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--amarelo), var(--amarelo-quente));
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ---------- Faixa de demonstração ---------- */

.faixa-demo {
  margin: 0;
  padding: 0.5rem 1rem;
  background: var(--branco);
  border-bottom: 2px dashed var(--azul);
  color: var(--tinta);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

/* ---------- Topo e menu ---------- */

.topo {
  background: var(--azul-fundo);
  transition: box-shadow 0.25s ease;
}

.topo-dentro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.75rem;
}

.marca {
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
  line-height: 1;
  text-decoration: none;
}

.marca-cargo {
  color: var(--branco);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.marca-nome {
  color: var(--amarelo);
  font-size: 1.4rem;
  font-stretch: 125%;
  text-transform: uppercase;
}

.menu {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0.3rem 0.3rem calc(0.3rem + env(safe-area-inset-bottom, 0px));
  background: var(--noite);
  border-top: 3px solid var(--amarelo);
}

.menu a {
  display: grid;
  place-items: center;
  min-height: calc(var(--altura-menu) - 0.6rem);
  border-radius: 999px;
  color: var(--branco);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.menu a[aria-current] {
  background: var(--amarelo);
  color: var(--azul-fundo);
}

/* ---------- Botões e links ---------- */

.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.7rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.15s ease, color 0.15s ease;
}

/* Sombra dura, como adesivo colado: sobe um pouco ao passar o cursor e afunda ao clicar. */
.botao-amarelo {
  background: var(--amarelo);
  color: var(--azul-fundo);
  box-shadow: 4px 4px 0 var(--noite);
}

.botao-azul {
  background: var(--azul);
  color: var(--branco);
  box-shadow: 4px 4px 0 var(--amarelo-quente);
}

.botao-amarelo:hover,
.botao-azul:hover {
  transform: translate(-2px, -2px);
}

.botao-amarelo:hover {
  box-shadow: 6px 6px 0 var(--noite);
}

.botao-azul:hover {
  box-shadow: 6px 6px 0 var(--amarelo-quente);
}

.botao-amarelo:active,
.botao-azul:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--noite);
}

.botao-contorno {
  border-color: var(--branco);
  color: var(--branco);
}

.botao-contorno:hover {
  background: var(--branco);
  color: var(--azul-fundo);
}

.link-forte {
  font-weight: 800;
  text-decoration-thickness: 2px;
}

.link-forte:hover {
  text-decoration-color: var(--amarelo-quente);
  text-decoration-thickness: 4px;
}

/* ---------- Abertura ---------- */

.abertura {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(2.5rem, 8vw, 5.5rem);
  padding-bottom: 5.25rem;
  background: radial-gradient(120% 85% at 12% 0%, var(--azul-vivo) 0%, var(--azul) 44%, var(--azul-fundo) 100%);
  color: var(--branco);
}

.abertura-mosaico {
  position: absolute;
  inset: -12% 0;
  z-index: -1;
  background-image: var(--mosaico);
  -webkit-mask-image: linear-gradient(200deg, #000 0%, transparent 62%);
  mask-image: linear-gradient(200deg, #000 0%, transparent 62%);
  pointer-events: none;
  will-change: transform;
}

.abertura-dentro {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "titulo titulo"
    "chamada chamada"
    "retrato retrato"
    "botoes selo";
  align-items: center;
  gap: 0 1rem;
}

.abertura h1 {
  grid-area: titulo;
  margin-bottom: 1.25rem;
  color: var(--amarelo);
  font-size: clamp(2.9rem, 13.4vw, 7.2rem);
  line-height: 0.88;
  letter-spacing: -0.01em;
  filter: drop-shadow(0 0.055em 0 rgb(7 18 71 / 0.6));
}

/* Cada palavra tem um degradê de amarelo, do claro ao quente, como nos cartazes. */
.palavra {
  display: inline-block;
  margin: -0.06em -0.1em -0.12em 0;
  padding: 0.06em 0.1em 0.12em 0;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .palavra {
    background: linear-gradient(180deg, #FFF36B 0%, var(--amarelo) 46%, var(--amarelo-quente) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

.abertura-chamada {
  grid-area: chamada;
  max-width: 34rem;
  margin-bottom: 1.75rem;
  font-size: 1.2rem;
  line-height: 1.5;
}

.abertura-acoes {
  grid-area: botoes;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  margin: 0;
}

.selo {
  grid-area: selo;
  position: relative;
  justify-self: end;
  width: clamp(5.75rem, 28vw, 8rem);
  aspect-ratio: 1;
  filter: drop-shadow(5px 6px 0 rgb(7 18 71 / 0.55));
}

.selo-anel {
  display: block;
  width: 100%;
  height: 100%;
  will-change: transform;
}

.selo-anel text {
  font-family: var(--fonte);
}

.selo-pino {
  position: absolute;
  inset: 29%;
  width: 42%;
  height: 42%;
}

.abertura-retrato {
  grid-area: retrato;
  width: min(100%, 18rem);
  margin-bottom: 1.75rem;
  aspect-ratio: 1;
  border: 6px solid var(--amarelo);
  border-radius: 50%;
  object-fit: cover;
}

.fatos {
  display: grid;
  margin-top: clamp(2.5rem, 7vw, 4rem);
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}

.fatos li {
  border-top: 2px solid rgb(255 255 255 / 0.3);
}

.fatos a {
  display: block;
  padding: 0.9rem 0 1rem;
  color: var(--branco);
  text-decoration: none;
}

.fatos a:hover {
  text-decoration: underline;
  text-decoration-color: var(--amarelo);
}

.fatos strong {
  display: block;
  color: var(--amarelo);
  font-size: 2.8rem;
  line-height: 1;
}

/* ---------- Quem foi atendido ---------- */

.atendidos {
  position: relative;
  isolation: isolate;
  margin-top: -2.75rem;
  padding: 5.75rem 0 4rem;
  background: var(--amarelo);
  color: var(--azul-fundo);
  clip-path: polygon(0 2.75rem, 100% 0, 100% 100%, 0 100%);
}

.atendidos::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--mosaico-quente);
  -webkit-mask-image: linear-gradient(215deg, #000 0%, transparent 55%);
  mask-image: linear-gradient(215deg, #000 0%, transparent 55%);
  pointer-events: none;
}

.atendidos h2 {
  --traco: var(--azul);
}

.atendidos a {
  color: var(--azul-fundo);
  font-weight: 700;
}

.numeros {
  display: grid;
  gap: 2.25rem;
  margin-top: 1.75rem;
}

.numero-valor {
  margin: 0;
  color: var(--azul);
  font-size: clamp(5.5rem, 26vw, 11rem);
  line-height: 0.82;
  letter-spacing: -0.02em;
}

.numero-rotulo {
  max-width: 22ch;
  margin: 0.7rem 0 0.3rem;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.2;
}

.numero-onde {
  margin: 0;
}

.nota {
  max-width: 62ch;
  margin: 2.25rem 0 0;
  padding: 0.9rem 1.1rem;
  background: rgb(255 255 255 / 0.6);
  border-left: 5px solid var(--azul);
  font-size: 1rem;
}

.bairros-titulo {
  margin: 2.5rem 0 1rem;
}

.pilulas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pilulas li {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: var(--azul-fundo);
  color: var(--branco);
  box-shadow: 3px 3px 0 rgb(7 18 71 / 0.25);
}

.pilulas .local {
  color: var(--branco);
}

.pilulas .pin {
  fill: var(--amarelo);
}

/* ---------- Peças comuns das ações ---------- */

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.85rem;
  margin: 0 0 0.65rem;
  font-size: 0.97rem;
}

.meta time {
  color: var(--tinta-suave);
}

.etiqueta {
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  background: var(--amarelo);
  color: var(--azul-fundo);
  font-weight: 800;
}

.local {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--azul);
  font-weight: 700;
}

.pin {
  flex: none;
  width: 0.72em;
  height: 0.9em;
  fill: currentColor;
}

/* Caixa do post: enquanto o Instagram não responde, mostra um mosaico e um aviso.
   O post só aparece quando está pronto, para não piscar pela metade. */
.post {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 30rem;
  overflow: hidden;
  background: var(--mosaico), linear-gradient(160deg, var(--azul) 0%, var(--azul-fundo) 60%, var(--noite) 100%);
  color: var(--branco);
  text-align: center;
}

.post-espera {
  margin: 0;
  padding-inline: 1rem;
  font-weight: 700;
}

.post blockquote {
  margin: 0;
  padding: 0 1rem;
}

.post blockquote a {
  color: var(--amarelo);
  font-weight: 800;
}

.post iframe {
  position: absolute;
  inset: 0 auto auto 0;
  display: block;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.post.com-post {
  min-height: 0;
  background: var(--branco);
}

.post.com-post iframe {
  position: static;
  opacity: 1;
}

.post.com-post .post-espera {
  display: none;
}

/* ---------- Ações ---------- */

.acoes {
  padding-bottom: calc(clamp(3.5rem, 9vw, 6.5rem) + 2rem);
  background: var(--papel);
}

.filtro {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 2.25rem;
}

.chip {
  min-height: 2.9rem;
  padding: 0.45rem 1.15rem;
  border: 2px solid var(--linha);
  border-radius: 999px;
  background: var(--branco);
  color: var(--tinta);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.chip:hover {
  border-color: var(--azul);
}

.chip[aria-pressed="true"] {
  border-color: var(--azul);
  background: var(--azul);
  color: var(--branco);
}

.destaques {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(84vw, 21.5rem);
  gap: 1.25rem;
  margin-inline: -1.25rem;
  padding: 0 1.25rem 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 1.25rem;
  scrollbar-width: none;
}

.destaques::-webkit-scrollbar {
  display: none;
}

.destaque {
  display: flex;
  flex-direction: column;
  background: var(--branco);
  border: 2px solid var(--azul-fundo);
  box-shadow: 6px 6px 0 var(--azul);
  scroll-snap-align: start;
}

.destaque-texto {
  padding: 1.15rem 1.15rem 1.35rem;
}

.destaque-texto p:last-of-type {
  margin-bottom: 0.85rem;
}

/* Marcadores do carrossel, só no celular. */
.pontos {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.pontos span {
  width: 0.65rem;
  height: 0.65rem;
  background: var(--linha);
  transition: width 0.25s var(--curva), background-color 0.25s ease;
}

.pontos span.atual {
  width: 1.9rem;
  background: var(--azul);
}

.lista-acoes {
  display: grid;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.acao {
  display: grid;
  grid-template-columns: 4.25rem 1fr;
  align-content: start;
  gap: 1.1rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--linha);
}

/* A data vem num quadrado azul levemente torto, como adesivo. */
.acao-data {
  display: flex;
  flex-direction: column;
  align-self: start;
  padding: 0.55rem 0.2rem 0.5rem;
  background: var(--azul);
  box-shadow: 3px 3px 0 var(--amarelo-quente);
  color: var(--branco);
  text-align: center;
  transform: rotate(-3deg);
}

.acao-dia {
  color: var(--amarelo);
  font-size: 2.2rem;
  line-height: 0.95;
}

.acao-mes {
  font-size: 0.86rem;
  font-weight: 700;
}

.acao-corpo {
  min-width: 0;
}

.acao-corpo > p {
  max-width: 62ch;
}

.acao-botoes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.4rem;
  margin: 1.1rem 0 0;
}

/* No celular o post ocupa a largura toda da linha, por baixo da data. */
.acao .post {
  width: calc(100% + 5.35rem);
  min-height: 22rem;
  margin-top: 1.4rem;
  margin-left: -5.35rem;
}

/* ---------- Faixa de lemas ---------- */

.lemas {
  position: relative;
  z-index: 2;
  margin-top: -2rem;
  overflow: hidden;
  background: var(--azul-fundo);
  transform: skewY(-1.5deg);
}

.lemas-trilho {
  display: flex;
  width: max-content;
  will-change: transform;
}

.lemas-grupo {
  display: flex;
  flex: none;
}

.lemas span {
  padding: 0.7rem 0;
  color: var(--amarelo);
  font-size: clamp(1.25rem, 4.6vw, 1.75rem);
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
}

.lemas span::after {
  content: "";
  display: inline-block;
  width: 0.42em;
  height: 0.42em;
  margin: 0 1.1em;
  background: var(--branco);
  vertical-align: 0.1em;
}

/* ---------- Projetos de lei ---------- */

.projetos {
  padding-bottom: calc(clamp(3.5rem, 9vw, 6.5rem) + 2.5rem);
}

.busca {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1.1rem;
  background: var(--papel);
  border: 1px solid var(--linha);
}

.campo-texto {
  grid-column: 1 / -1;
}

.campo label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.97rem;
  font-weight: 700;
}

.campo input,
.campo select {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.6rem 0.9rem;
  border: 2px solid var(--linha);
  border-radius: 0.5rem;
  background-color: var(--branco);
  color: var(--tinta);
  font: inherit;
  transition: border-color 0.15s ease;
}

.campo input {
  padding-left: 2.7rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='8.5' cy='8.5' r='6' fill='none' stroke='%231230A0' stroke-width='2.4'/%3E%3Cpath d='M13 13l5 5' stroke='%231230A0' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0.85rem 50%;
  background-size: 1.15rem;
}

.campo input::placeholder {
  color: var(--tinta-suave);
  opacity: 1;
}

.campo input:hover,
.campo select:hover,
.campo input:focus,
.campo select:focus {
  border-color: var(--azul);
}

.contagem {
  margin: 1.5rem 0 0;
  font-weight: 700;
}

.lista-projetos {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.projeto {
  display: grid;
  gap: 0.7rem 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--linha);
}

.projeto-rotulo {
  margin: 0 0 0.55rem;
  color: var(--azul);
  font-size: 1.95rem;
  line-height: 1;
}

.selo-situacao {
  display: inline-block;
  padding: 0.22rem 0.8rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
}

.selo-tramitando {
  background: var(--azul);
  color: var(--branco);
}

.selo-aprovado {
  background: var(--verde);
  color: var(--branco);
}

.selo-arquivado {
  background: var(--nevoa);
  color: var(--tinta-suave);
}

.projeto-ementa {
  max-width: 68ch;
  margin: 0 0 0.5rem;
  overflow-wrap: anywhere;
}

.projeto-meta {
  margin: 0 0 0.6rem;
  color: var(--tinta-suave);
  font-size: 0.97rem;
}

.projetos-mais {
  margin: 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--linha);
}

.aviso {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border: 2px dashed var(--azul);
  border-radius: 0.75rem;
  background: var(--papel);
}

/* ---------- Sobre ---------- */

.sobre {
  position: relative;
  margin-top: -2.5rem;
  padding-top: calc(clamp(3.5rem, 9vw, 6.5rem) + 2.5rem);
  background: radial-gradient(110% 80% at 88% 0%, #17349A 0%, var(--azul-fundo) 52%, var(--noite) 100%);
  color: var(--branco);
  clip-path: polygon(0 0, 100% 2.5rem, 100% 100%, 0 100%);
}

.sobre h2 {
  --traco: linear-gradient(90deg, var(--amarelo), var(--amarelo-quente));
  color: var(--amarelo);
}

.sobre a {
  color: var(--amarelo);
}

.sobre-colunas {
  display: grid;
  gap: 3rem;
}

.sobre-texto p {
  max-width: 60ch;
}

.sobre-dados h3 {
  margin-bottom: 1.2rem;
}

.votos {
  margin: 0 0 2.75rem;
  padding: 0;
  list-style: none;
}

.votos li {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 0.3rem 1rem;
  margin-bottom: 1.25rem;
}

.votos-ano {
  grid-row: span 2;
  color: var(--amarelo);
  font-size: 1.8rem;
  line-height: 1;
}

/* Trilho claro com a barra amarela por cima: a barra cresce quando entra na tela. */
.votos-barra {
  position: relative;
  height: 1.15rem;
  align-self: center;
  overflow: hidden;
  background: rgb(255 255 255 / 0.13);
}

.votos-barra::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--parte);
  background: linear-gradient(90deg, var(--amarelo), var(--amarelo-quente));
  transform-origin: 0 50%;
  transition: transform 1s var(--curva);
  transition-delay: calc(var(--ordem, 0) * 160ms + 120ms);
}

.votos-texto {
  grid-column: 2;
  color: var(--claro-suave);
}

.votos-texto strong {
  color: var(--branco);
}

.comissoes {
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}

.comissoes li {
  position: relative;
  margin-bottom: 0.65rem;
  padding-left: 1.45rem;
}

.comissoes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.6rem;
  height: 0.6rem;
  background: var(--amarelo);
}

.fonte {
  margin: 0;
  color: var(--claro-suave);
  font-size: 0.97rem;
}

/* ---------- Contato e rodapé ---------- */

.contato {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(120% 90% at 10% 100%, var(--azul-vivo) 0%, var(--azul) 46%, var(--azul-fundo) 100%);
  color: var(--branco);
}

.contato::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--mosaico);
  -webkit-mask-image: linear-gradient(20deg, transparent 35%, #000 100%);
  mask-image: linear-gradient(20deg, transparent 35%, #000 100%);
  pointer-events: none;
}

.contato h2 {
  --traco: var(--branco);
  color: var(--amarelo);
}

.contato .intro {
  color: var(--branco);
  font-size: 1.2rem;
}

.contato-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 0;
}

.contato-numero {
  margin: 1.4rem 0 0;
  font-weight: 700;
}

.sem-quebra {
  white-space: nowrap;
}

/* ---------- Página de endereço não encontrado ---------- */

.pagina-erro {
  min-height: 100vh;
  padding-bottom: 0;
  background: var(--azul-fundo);
}

.pagina-erro .contato {
  min-height: calc(100vh - 4rem);
}

.erro-titulo {
  margin-bottom: 1.25rem;
  color: var(--amarelo);
  font-size: clamp(2.4rem, 9vw, 4.5rem);
  line-height: 0.94;
}

.rodape {
  padding-block: 2.25rem;
  background: var(--noite);
  color: var(--claro-suave);
  font-size: 0.97rem;
}

.rodape p {
  max-width: 75ch;
}

.rodape a {
  color: var(--branco);
}

.sem-script {
  margin: 0;
  padding: 1.5rem 1.25rem;
  background: var(--amarelo);
  color: var(--azul-fundo);
  font-weight: 700;
}

/* ---------- Movimento ----------
   Só vale com JavaScript ligado (.com-js). O estado normal de tudo é visível;
   estas regras só escondem o que ainda não entrou na tela.
   Há dois modos:
   - completo: deslocamentos, giro do selo, faixa que desliza;
   - suave (.movimento-suave): para quem pediu menos movimento no aparelho.
     Fica só o que não desloca nada na tela: transições de opacidade e contagem dos números. */

@keyframes aparecer {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes colar {
  from {
    opacity: 0;
    transform: translateY(0.4em) rotate(-4deg) scale(1.05);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes surgir {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes carimbar {
  from {
    opacity: 0;
    transform: scale(0.5) rotate(-50deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Abertura: as palavras do título entram uma a uma. */
.com-js:not(.sem-movimento) .palavra {
  animation: colar 0.7s var(--curva) both;
  animation-delay: calc(40ms + var(--i) * 80ms);
}

.com-js:not(.sem-movimento) .abertura-chamada,
.com-js:not(.sem-movimento) .abertura-acoes {
  animation: surgir 0.6s var(--curva) both;
  animation-delay: 0.32s;
}

.com-js:not(.sem-movimento) .abertura-acoes {
  animation-delay: 0.42s;
}

.com-js:not(.sem-movimento) .selo {
  animation: carimbar 0.8s var(--curva) both;
  animation-delay: 0.5s;
}

/* Os três fatos fazem parte da abertura: entram junto com ela, sem depender da rolagem. */
.com-js:not(.sem-movimento) .fatos li {
  animation: surgir 0.6s var(--curva) both;
  animation-delay: calc(0.6s + var(--ordem, 0) * 90ms);
}

.movimento-suave .palavra,
.movimento-suave .abertura-chamada,
.movimento-suave .abertura-acoes,
.movimento-suave .selo,
.movimento-suave .fatos li {
  animation-name: aparecer;
}

/* Revelar ao entrar na tela. */
[data-revelar] {
  transition: opacity 0.55s ease, transform 0.65s var(--curva);
  transition-delay: calc(var(--ordem, 0) * 80ms);
}

.com-js:not(.sem-movimento) [data-revelar]:not(.visivel) {
  opacity: 0;
}

.com-js:not(.sem-movimento):not(.movimento-suave) [data-revelar]:not(.visivel) {
  transform: translateY(1.5rem);
}

.com-js:not(.sem-movimento):not(.movimento-suave) [data-revelar="pino"]:not(.visivel) {
  transform: translateY(-0.8rem) scale(0.6);
}

/* Títulos e barras não somem: só o traço e a barra é que se desenham. */
.com-js:not(.sem-movimento):not(.movimento-suave) [data-revelar="titulo"]:not(.visivel),
.com-js:not(.sem-movimento):not(.movimento-suave) [data-revelar="barra"]:not(.visivel) {
  opacity: 1;
  transform: none;
}

.com-js:not(.sem-movimento) [data-revelar="titulo"]:not(.visivel),
.com-js:not(.sem-movimento) [data-revelar="barra"]:not(.visivel) {
  opacity: 1;
}

.com-js:not(.sem-movimento) [data-revelar="titulo"]:not(.visivel)::after {
  transform: skewX(-20deg) scaleX(0);
}

.com-js:not(.sem-movimento) [data-revelar="barra"]:not(.visivel) .votos-barra::after {
  transform: scaleX(0);
}

/* ---------- Telas médias ---------- */

@media (min-width: 40rem) {
  body {
    font-size: 1.125rem;
  }

  .numeros {
    grid-template-columns: 1fr 1fr;
  }

  .fatos {
    grid-template-columns: repeat(3, 1fr);
    gap: 0 2rem;
  }

  .busca {
    grid-template-columns: 2fr 1fr 1.5fr;
    padding: 1.35rem;
  }

  .campo-texto {
    grid-column: auto;
  }

  .acao {
    grid-template-columns: 5rem 1fr;
  }

  .acao .post {
    width: auto;
    max-width: 25rem;
    margin-left: 0;
  }
}

/* ---------- Telas largas ---------- */

@media (min-width: 56rem) {
  html {
    scroll-padding-top: 5.5rem;
    scroll-padding-bottom: 0;
  }

  body {
    padding-bottom: 0;
  }

  .topo {
    position: sticky;
    top: 0;
    z-index: 30;
  }

  .rolou .topo {
    box-shadow: 0 8px 28px rgb(7 18 71 / 0.4);
  }

  .menu {
    position: static;
    display: flex;
    gap: 0.25rem;
    padding: 0;
    border: 0;
    background: none;
  }

  .menu a {
    min-height: 2.75rem;
    padding: 0 1.15rem;
  }

  .menu a:hover {
    background: rgb(255 255 255 / 0.12);
  }

  .menu a[aria-current]:hover {
    background: var(--amarelo);
  }

  .abertura-mosaico {
    -webkit-mask-image: linear-gradient(to left, #000 0%, transparent 72%);
    mask-image: linear-gradient(to left, #000 0%, transparent 72%);
  }

  .abertura-dentro {
    grid-template-areas:
      "titulo selo"
      "chamada selo"
      "botoes selo";
    gap: 0 2.5rem;
  }

  .abertura h1 {
    font-size: clamp(4.5rem, 9.3vw, 7.2rem);
  }

  .abertura-acoes {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .selo {
    width: clamp(12rem, 21vw, 16.5rem);
    align-self: center;
  }

  .abertura-retrato {
    grid-area: selo;
    width: clamp(13rem, 22vw, 18rem);
    margin-bottom: 0;
  }

  .com-retrato .selo {
    display: none;
  }

  .destaques {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    margin-inline: 0;
    padding: 0 6px 6px 0;
    overflow: visible;
  }

  .pontos {
    display: none;
  }

  .lista-acoes {
    grid-template-columns: 1fr 1fr;
    gap: 0 3.5rem;
  }

  .projeto {
    grid-template-columns: 14rem 1fr;
  }

  .sobre-colunas {
    grid-template-columns: 1.1fr 1fr;
    gap: 4.5rem;
  }
}

/* ---------- Quem pediu menos movimento ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.movimento-suave .botao:hover,
.movimento-suave .botao:active {
  transform: none;
}
