/* =========================================================
   Monte sua colinha · Renato Filho 1500
   Os 6 votos da urna de AL. Cores da campanha do Renato Filho (azul,
   lime e verde da marca da campanha). Página autocontida:
   o subdomínio não tem site principal por trás.
   ========================================================= */

:root {
  --azul: #2153A5;
  --azul-esc: #1F438D;
  --azul-deep: #17356F;
  --lime: #BCD747;
  --lime-esc: #A3BD36;
  --verde: #66AF45;
  --verde-esc: #4E8A2E;
  --branco: #FFFFFF;
  --fundo: #F4F6FF;
  --grafite: #2C3650;
  --erro: #B42318;
  --zap: #25D366;
  --radius: 16px;
  --fonte: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fonte-titulo: "Bricolage Grotesque", system-ui, sans-serif;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  /* foco de teclado nunca fica escondido atras da barra fixa de acoes */
  scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
}
body {
  margin: 0;
  font-family: var(--fonte);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--azul-deep);
  background: var(--fundo);
  -webkit-font-smoothing: antialiased;
}
h1, h2, p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
img, svg, canvas { display: block; max-width: 100%; }
button, input { font: inherit; }
a { color: inherit; }

/* sem isto, elementos com [hidden] que recebem display de outra regra
   continuam visiveis */
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--azul-deep); outline-offset: 2px; }
.hero :focus-visible, .rodape :focus-visible { outline-color: var(--lime); }

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 16px;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--lime);
  color: var(--azul-deep);
  font-weight: 800;
  padding: .6rem 1rem;
  border-radius: 10px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- botoes ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 50px;
  padding: .7rem 1.3rem;
  border-radius: 12px;
  border: 2px solid transparent;
  font-family: var(--fonte);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, transform 150ms ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: scale(.98); }
.btn[aria-busy="true"] { opacity: .6; pointer-events: none; }
.btn--ghost { background: var(--branco); border-color: var(--azul); color: var(--azul); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: #E6EFFA; }
.btn--zap { background: var(--zap); border-color: #0F9D48; color: #06301A; }
.btn--zap:hover, .btn--zap:focus-visible { background: #2BE06F; }
.btn--sm { min-height: 46px; padding: .55rem .9rem; font-size: .95rem; }

/* ---------- topo (hero) ----------
   fundo oficial da campanha (multidao no degrade azul e verde, linhas finas
   e faixas amarelas ja na imagem) com um veu escuro so pra leitura do texto;
   a foto do Renato encosta na borda de baixo */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--branco);
  background:
    linear-gradient(180deg, rgba(0, 35, 80, .12) 0%, rgba(0, 35, 80, .5) 100%),
    url("img/topo-960.webp") center top / cover no-repeat,
    var(--azul);
}
@media (min-width: 880px) {
  .hero {
    background:
      linear-gradient(90deg, rgba(0, 35, 80, .55) 0%, rgba(0, 35, 80, .3) 50%, rgba(0, 35, 80, 0) 75%),
      url("img/topo-1920.webp") center / cover no-repeat,
      var(--azul);
  }
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "marca"
    "sobre"
    "titulo";
  padding-top: 16px;
}
/* textos por cima da foto */
.hero__marca, .hero__sobre, .hero__titulo, .hero__lead { position: relative; z-index: 1; }
.hero__marca {
  grid-area: marca;
  justify-self: start;
  display: block;
  /* no celular o logo vertical, numa coluna a esquerda da foto */
  width: min(42vw, 200px);
  border-radius: 8px;
}
.hero__marca picture { display: block; }
.hero__marca img { width: 100%; height: auto; }

/* celular: a foto ocupa a altura toda do topo, na faixa a direita do logo
   (sem cobrir o logo nem os suplentes), recortada no rosto e no tronco e
   com a borda esquerda sumindo no fundo; o texto de apresentacao desce pra
   area clara (.colinha-intro) */
.hero__foto {
  position: absolute;
  z-index: 0;
  top: 10px;
  bottom: 0;
  right: -16px;
  left: calc(min(42vw, 200px) + 20px);
  align-self: stretch;
  justify-self: stretch;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%);
  mask-image: linear-gradient(90deg, transparent 0, #000 22%);
}
.hero__foto img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% top;
}

/* os filhos do bloco de texto entram direto na grade do topo */
.hero__texto { display: contents; }
.hero__sobre {
  font-family: var(--fonte-titulo);
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lime);
  grid-area: sobre;
  max-width: 52vw;
  margin: 18px 0 .35rem;
}
.hero__titulo {
  font-family: var(--fonte-titulo);
  font-size: clamp(2.2rem, 10vw, 5rem);
  font-weight: 900;
  line-height: .95;
  letter-spacing: -.005em;
  text-transform: uppercase;
  grid-area: titulo;
  max-width: 52vw;
  padding-bottom: 1.2rem;
  margin-bottom: 0;
}
/* "colinha" no lime com a sombra do 1500 */
.hero__titulo span {
  display: inline-block;
  color: var(--lime);
  text-shadow: .045em .045em 0 var(--verde);
}
.hero__lead {
  display: none;
  grid-area: lead;
  padding-bottom: clamp(2rem, 7vw, 3rem);
  max-width: 38rem;
  font-size: 1.06rem;
  font-weight: 500;
  line-height: 1.55;
  color: rgba(255, 255, 255, .94);
}
.hero__lead strong { color: var(--lime); font-weight: 800; }
.sem-quebra { white-space: nowrap; }
.hero__sobre, .hero__lead { text-shadow: 0 1px 3px rgba(0, 25, 60, .55); }

@media (min-width: 880px) {
  .hero__lead { display: block; }
  .colinha-intro { display: none; }
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) 440px;
    grid-template-rows: auto auto auto 1fr;
    grid-template-areas:
      "marca ."
      "sobre ."
      "titulo ."
      "lead .";
    column-gap: 32px;
    padding-top: 36px;
  }
  .hero__marca { width: 400px; }
  .hero__sobre, .hero__titulo { max-width: none; }
  .hero__titulo { align-self: start; }
  /* no computador a foto ocupa a altura toda do topo */
  .hero__foto {
    position: absolute;
    top: 20px;
    bottom: 0;
    margin-right: 0;
    right: 16px;
    left: auto;
    width: auto;
    -webkit-mask-image: none;
    mask-image: none;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
  }
  .hero__foto img { height: 100%; width: auto; max-width: none; object-fit: contain; }
  .hero__sobre { margin-top: 28px; align-self: start; }
  .hero__titulo { padding-bottom: 0; margin-bottom: .8rem; }
  .hero__titulo { align-self: start; }
  .hero__lead { padding-bottom: 3.4rem; }
}

/* celular baixinho: o primeiro voto tem que aparecer sem rolar tanto */
@media (max-width: 480px) and (max-height: 700px) {
  .hero__inner { padding-top: 12px; }
  .hero__titulo { font-size: clamp(2.3rem, 11vw, 3rem); margin-bottom: .5rem; }
  .hero__lead { font-size: .98rem; line-height: 1.42; padding-bottom: 1.25rem; }
  .hero__sobre { margin-top: 12px; }
}

/* ---------- topo com a arte oficial da campanha ----------
   a imagem ja traz titulo, texto, nomes, vice e suplentes; uma versao em
   pe pro celular (hero-m) e uma deitada em alta pro computador (hero-d-*) */
.hero-arte { background: #124388; }
.hero-arte picture { display: block; }
.hero-arte__img { display: block; width: 100%; height: auto; }
/* computador: a arte em alta (3840 px, servida em 1280/1920/2560) nunca e ampliada e ocupa no maximo ~60% da
   altura da tela, pra colinha aparecer ja na primeira tela; as laterais
   ganham a propria arte desfocada e as bordas dela se dissolvem nelas */
@media (min-width: 880px) {
  .hero-arte { position: relative; overflow: hidden; }
  .hero-arte::before {
    content: "";
    position: absolute;
    inset: -40px;
    background: url("img/hero-d-1280.webp") center / cover;
    filter: blur(30px) brightness(.8);
  }
  .hero-arte picture { position: relative; margin: 0 auto; width: min(100%, 1280px, calc(60vh * 16 / 9)); }
  .hero-arte__img {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  }
}

/* ---------- app ---------- */
.pagina-colinha {
  /* espaco pra barra fixa de acoes nao cobrir o fim do rodape */
  padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
}

.colinha-app { padding-block: clamp(1.4rem, 4vw, 2.2rem) clamp(2.5rem, 6vw, 4rem); }
.colinha-container { max-width: 640px; }

.colinha-intro {
  margin: 0 0 1.1rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border-left: 6px solid var(--lime);
  background: var(--azul);
  color: var(--branco);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.5;
  box-shadow: 0 6px 18px rgba(0, 43, 92, .18);
}
.colinha-intro strong { color: var(--lime); font-weight: 800; }

.colinha-chapa {
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--grafite);
  background: var(--branco);
  border-left: 6px solid var(--verde);
  border-radius: 10px;
  padding: .7rem .9rem;
  margin: 0 0 1rem;
}
.colinha-chapa strong { color: var(--azul-deep); font-weight: 800; }

.colinha-ordem {
  font-family: var(--fonte-titulo);
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--azul);
  margin: 0 0 .7rem;
}

/* ---------- cartoes de voto ---------- */
.colinha-lista { display: grid; gap: .75rem; }

.voto {
  background: var(--branco);
  border: 2px solid rgba(0, 43, 92, .1);
  border-left: 6px solid var(--azul);
  border-radius: var(--radius);
  padding: .85rem 1rem 1rem;
  box-shadow: 0 2px 8px rgba(0, 43, 92, .05);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.voto:focus-within { border-color: var(--azul); box-shadow: 0 0 0 3px rgba(0, 79, 159, .14); }
.voto.is-ok { border-color: rgba(0, 150, 64, .55); border-left-color: var(--verde); }
.voto.is-erro { border-color: var(--erro); }
.voto.is-ok:focus-within,
.voto.is-erro:focus-within { box-shadow: 0 0 0 3px var(--azul-deep); }

.voto__topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .6rem;
  min-height: 26px;
}
.voto__cargo {
  font-family: var(--fonte-titulo);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--azul);
}
.voto__limpar {
  background: none;
  border: 0;
  min-height: 44px;
  padding: .25rem .2rem;
  font-size: .85rem;
  font-weight: 700;
  color: rgba(0, 43, 92, .65);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.voto__linha {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem 1rem;
}

.voto__digitos {
  position: relative;
  display: flex;
  gap: .4rem;
  flex: none;
}
.voto__caixa {
  width: 44px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 2px solid #738AA5;
  border-radius: 10px;
  background: #F4F6FF;
  font-family: var(--fonte);
  font-size: min(1.75rem, 32px);
  line-height: 1;
  font-weight: 800;
  color: var(--azul-deep);
  font-variant-numeric: tabular-nums;
  transition: border-color 120ms ease, background-color 120ms ease;
}
.voto__caixa.is-cheia { background: var(--branco); border-color: var(--azul); }
.voto__digitos.is-foco .voto__caixa.is-atual {
  border-color: var(--lime-esc);
  box-shadow: 0 0 0 3px rgba(255, 213, 0, .55);
  background: var(--branco);
}
.voto.is-ok .voto__caixa.is-cheia { border-color: var(--verde); }
.voto.is-erro .voto__caixa.is-cheia { border-color: var(--erro); }

/* o campo real fica por cima das caixas, invisivel: recebe toque, teclado,
   colar e leitor de tela, e as caixas so desenham o que ele tem */
.voto__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  border: 0;
  padding: 0;
  font-size: 16px; /* abaixo disso o iOS da zoom ao focar */
  color: transparent;
  caret-color: transparent;
  background: transparent;
  cursor: text;
}

.voto__cand {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-width: 0;
  flex: 1 1 180px;
}
.voto__foto {
  width: 46px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--verde);
  background: #E9EEF4;
  flex: none;
}
.voto__info { display: flex; flex-direction: column; min-width: 0; }
.voto__nome {
  font-family: var(--fonte-titulo);
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1.1;
  letter-spacing: .01em;
  color: var(--azul-deep);
  overflow-wrap: anywhere;
}
.voto__partido {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: rgba(0, 43, 92, .68);
}

.voto__buscar {
  background: none;
  border: 0;
  min-height: 44px;
  padding: .4rem 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--azul);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
  cursor: pointer;
}

.voto__aviso {
  width: 100%;
  margin: .6rem 0 0;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--erro);
}
.voto__aviso--neutro { color: rgba(0, 43, 92, .7); }

/* ---------- votos da chapa (fixos) ---------- */
.voto--fixo {
  background: var(--azul);
  border-color: var(--azul);
  border-left-color: var(--lime);
  color: var(--branco);
}
.voto--fixo .voto__cargo { color: var(--lime); }
.voto__selo {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .8rem;
  font-weight: 800;
  color: var(--azul-deep);
  background: var(--lime);
  border-radius: 999px;
  padding: .25rem .65rem .25rem .5rem;
  white-space: nowrap;
}
.voto__selo svg { width: 14px; height: 14px; }
.voto--fixo .voto__caixa {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--azul-deep);
}
.voto--fixo .voto__foto { border-color: var(--lime); }
.voto--fixo .voto__nome { color: var(--branco); }
.voto--fixo .voto__partido { color: rgba(255, 255, 255, .85); }

/* ---------- imprimir / limpar ---------- */
.colinha-extra {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  margin: 1.4rem 0 0;
}
.colinha-imprimir { width: 100%; max-width: 360px; }
.colinha-limpar-tudo {
  background: none;
  border: 0;
  min-height: 44px;
  padding: .4rem;
  font-size: .9rem;
  font-weight: 700;
  color: rgba(0, 43, 92, .65);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

/* ---------- informacoes ---------- */
.colinha-info { margin-top: 1.8rem; display: grid; gap: .8rem; }
.colinha-info__bloco {
  background: var(--branco);
  border: 2px solid rgba(0, 43, 92, .1);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
}
.colinha-info__bloco--alerta {
  background: #FFF6C2;
  border-color: var(--lime-esc);
}
.colinha-info__bloco h2 {
  font-family: var(--fonte-titulo);
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--azul-deep);
  margin: 0 0 .35rem;
}
.colinha-info__bloco p {
  font-size: .98rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--grafite);
}
.colinha-info__bloco p strong { color: var(--azul-deep); font-weight: 800; }
.colinha-info__offline {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-top: .6rem !important;
  color: var(--verde-esc) !important;
  font-weight: 800 !important;
}
.colinha-info__offline svg { width: 20px; height: 20px; flex: none; }
.colinha-fonte {
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.5;
  color: rgba(0, 43, 92, .68);
  text-align: center;
}

/* ---------- rodape ---------- */
.rodape {
  color: var(--branco);
  background:
    linear-gradient(90deg, var(--verde) 0 50%, var(--lime) 50% 100%) top / 100% 6px no-repeat,
    var(--azul-deep);
  padding: 2.4rem 0 2.2rem;
  text-align: center;
}
.rodape__inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.rodape__marca { display: block; width: min(300px, 80%); border-radius: 8px; }
.rodape__marca img { width: 100%; height: auto; }
.rodape__slogan {
  font-family: var(--fonte-titulo);
  font-style: italic;
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1;
}
.rodape__slogan span { color: var(--lime); }
.rodape__chapa {
  max-width: 34rem;
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(255, 255, 255, .92);
}
.rodape__chapa strong { color: var(--lime); font-weight: 800; }
.rodape__legal {
  max-width: 46rem;
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.55;
  color: rgba(255, 255, 255, .85);
}
.rodape__site {
  font-size: .85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .78);
}
.rodape__site a { color: var(--lime); font-weight: 800; text-underline-offset: 2px; }

/* ---------- barra fixa de acoes ---------- */
.colinha-barra {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: rgba(255, 255, 255, .97);
  border-top: 1px solid rgba(0, 43, 92, .12);
  box-shadow: 0 -6px 18px rgba(0, 33, 68, .1);
  padding: .55rem clamp(.6rem, 3vw, 1rem) calc(.55rem + env(safe-area-inset-bottom, 0px));
}
.colinha-barra__inner {
  max-width: 640px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: .4rem;
}
.colinha-barra__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 50px;
  padding: .4rem .45rem;
  text-align: center;
  text-decoration: none;
  border-radius: 12px;
  border: 2px solid var(--azul);
  background: var(--branco);
  color: var(--azul);
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.15;
  cursor: pointer;
  transition: background-color 150ms ease, transform 150ms ease;
}
.colinha-barra__btn svg { width: 20px; height: 20px; flex: none; }
.colinha-barra__btn { min-width: 0; overflow-wrap: anywhere; }
.colinha-barra__btn:hover, .colinha-barra__btn:focus-visible { background: #E6EFFA; }
.colinha-barra__btn:active { transform: scale(.98); }
.colinha-barra__btn--zap {
  background: var(--zap);
  border-color: #0F9D48;
  color: #06301A;
}
.colinha-barra__btn--zap:hover, .colinha-barra__btn--zap:focus-visible { background: #2BE06F; }
.colinha-barra__btn[aria-busy="true"] { opacity: .6; pointer-events: none; }

/* no celular: icone em cima, texto embaixo */
@media (max-width: 640px) {
  .colinha-barra__btn { flex-direction: column; gap: .2rem; min-height: 58px; font-size: .8rem; }
}

/* com o teclado aberto a barra nao disputa espaco nem cobre o campo
   (a classe vem do colinha.js, que mede o viewport visual) */
.colinha-barra.is-escondida { display: none; }

/* ---------- dialogos ---------- */
.colinha-dialogo {
  width: min(560px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: var(--branco);
  color: var(--azul-deep);
  box-shadow: 0 24px 60px rgba(0, 20, 40, .35);
  overflow: hidden;
}
.colinha-dialogo[open] { display: flex; flex-direction: column; }
.colinha-dialogo::backdrop { background: rgba(0, 25, 55, .65); }
html.dialogo-aberto { overflow: hidden; }

.colinha-dialogo__topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem .6rem 1.2rem;
  flex: none;
}
.colinha-dialogo__topo h2 {
  font-family: var(--fonte-titulo);
  font-size: 1.45rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.1;
}
.colinha-dialogo__fechar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #EEF2F8;
  color: var(--azul-deep);
  cursor: pointer;
  flex: none;
}
.colinha-dialogo__fechar svg { width: 22px; height: 22px; }

/* busca */
.busca { height: min(720px, calc(100dvh - 24px)); }
.busca__input {
  margin: 0 1.2rem;
  min-height: 50px;
  padding: .7rem 1rem;
  border-radius: 12px;
  border: 2px solid #738AA5;
  font-size: 16px;
  font-weight: 600;
  color: var(--azul-deep);
  flex: none;
}
.busca__input:focus { outline: 3px solid var(--azul); outline-offset: 1px; }
.busca__contagem {
  padding: .5rem 1.2rem .3rem;
  font-size: .85rem;
  font-weight: 700;
  color: rgba(0, 43, 92, .65);
  flex: none;
}
.busca__lista {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 .7rem 1rem;
}
.busca__grupo {
  position: sticky;
  top: 0;
  z-index: 1;
  margin: .6rem 0 .2rem;
  padding: .35rem .6rem;
  border-radius: 8px;
  background: var(--azul);
  color: var(--branco);
  font-family: var(--fonte-titulo);
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .08em;
}
.busca__item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .6rem .5rem;
  border: 0;
  border-bottom: 1px solid rgba(0, 43, 92, .08);
  background: none;
  text-align: left;
  color: inherit;
  cursor: pointer;
  border-radius: 10px;
}
.busca__item:hover, .busca__item:focus-visible { background: #EEF4FB; }
.busca__item[disabled] { opacity: .45; cursor: not-allowed; }
.busca__foto {
  width: 42px;
  height: 58px;
  object-fit: cover;
  border-radius: 7px;
  background: #E9EEF4;
  flex: none;
}
.busca__texto { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.busca__nome {
  font-family: var(--fonte-titulo);
  font-weight: 800;
  font-size: 1.12rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.busca__sub { font-size: .8rem; font-weight: 600; color: rgba(0, 43, 92, .65); overflow-wrap: anywhere; }
.busca__num {
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--azul);
  font-variant-numeric: tabular-nums;
  flex: none;
}
.busca__vazio {
  padding: 1.5rem .8rem;
  text-align: center;
  font-size: .95rem;
  font-weight: 600;
  color: rgba(0, 43, 92, .7);
}

/* eu + colinha */
.eu { overflow-y: auto; }
.eu__palco {
  position: relative;
  margin: 0 1.2rem;
  border-radius: 14px;
  overflow: hidden;
  background: var(--azul);
  touch-action: none;
  flex: none;
  aspect-ratio: 1080 / 1350;
  max-height: max(140px, min(58dvh, calc(100dvh - 300px)));
  align-self: center;
}
.eu.is-stories .eu__palco { aspect-ratio: 1080 / 1920; }
.eu__palco canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
}
.eu__palco canvas:active { cursor: grabbing; }
.eu__vazio {
  position: absolute;
  left: 4%;
  top: 50%;
  transform: translateY(-50%);
  width: 44%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 1rem .6rem;
  border-radius: 14px;
  border: 2px dashed rgba(255, 255, 255, .8);
  background: rgba(0, 43, 92, .55);
  font-size: .95rem;
  font-weight: 800;
  text-align: center;
  color: var(--branco);
  cursor: pointer;
}
.eu__vazio svg { width: 34px; height: 34px; }
/* no stories a foto fica em cima (metade de cima da arte) */
.eu.is-stories .eu__vazio {
  left: 50%;
  top: 25%;
  transform: translate(-50%, -50%);
  width: 58%;
}
.eu__dica {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  background: rgba(0, 20, 40, .75);
  color: var(--branco);
  font-size: .8rem;
  font-weight: 700;
  padding: .35rem .75rem;
  border-radius: 999px;
  width: max-content;
  max-width: calc(100% - 16px);
  text-align: center;
  line-height: 1.25;
  pointer-events: none;
}

.eu__formato {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .3rem;
  margin: .8rem 1.2rem 0;
  padding: .25rem;
  background: #EEF2F8;
  border-radius: 12px;
  flex: none;
}
.eu__formato-btn {
  min-height: 44px;
  border: 0;
  border-radius: 9px;
  background: none;
  font-size: .98rem;
  font-weight: 800;
  color: rgba(0, 43, 92, .68);
  cursor: pointer;
}
.eu__formato-btn.is-ativo { background: var(--azul); color: var(--branco); }

.eu__acoes {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: .8rem 1.2rem 0;
  flex: none;
}
.eu__acoes > * { flex: 1 1 120px; cursor: pointer; }
.eu__acoes {
  position: sticky;
  bottom: 0;
  z-index: 1;
  background: var(--branco);
  padding: .5rem 0;
}
/* o campo de arquivo e invisivel: o foco aparece no rotulo */
.eu:has(#eu-foto:focus-visible) #eu-vazio { outline: 3px solid var(--lime); outline-offset: 3px; }
.eu:has(#eu-foto:focus-visible) #eu-trocar { outline: 3px solid var(--azul-deep); outline-offset: 2px; }

.eu__ajuste {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .35rem;
  margin: .7rem 1.2rem 0;
  flex: none;
}
.eu__ajuste button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 .6rem;
  border: 2px solid #738AA5;
  border-radius: 10px;
  background: var(--branco);
  color: var(--azul-deep);
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
}
.eu__ajuste button[data-ajuste="centro"] { font-size: .9rem; }
.eu__ajuste button:hover, .eu__ajuste button:focus-visible { background: #E6EFFA; }
.eu__nota {
  margin: .7rem 1.2rem 1.1rem;
  font-size: .82rem;
  font-weight: 600;
  text-align: center;
  color: rgba(0, 43, 92, .65);
  flex: none;
}

/* ---------- aviso flutuante ---------- */
.colinha-aviso:empty { display: none; }
.colinha-aviso {
  position: fixed;
  left: 50%;
  bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 95;
  width: max-content;
  max-width: calc(100% - 32px);
  background: var(--azul-deep);
  color: var(--branco);
  font-size: .95rem;
  font-weight: 700;
  padding: .65rem 1rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 20, 40, .3);
  text-align: center;
}

/* ---------- impressao ---------- */
.impressao { display: none; }

@media print {
  @page { margin: 12mm; }
  html, body { background: #fff !important; }
  .pagina-colinha { padding-bottom: 0; }
  body.pagina-colinha > *:not(.impressao) { display: none !important; }
  .impressao { display: block !important; }
  .impressao__recorte {
    width: 9.5cm;
    padding: 3mm;
    border: 1.5px dashed #555;
  }
  .impressao__recorte img { width: 100%; height: auto; }
  .impressao__nota {
    margin-top: 3mm;
    font: 600 9pt/1.4 Barlow, Arial, sans-serif;
    color: #333;
  }
}

/* no celular o nome vai sempre embaixo dos numeros: sem isto os cargos de
   2 digitos ficavam com o nome ao lado e os de 4 e 5, embaixo */
@media (max-width: 520px) {
  .voto__cand { flex-basis: 100%; }
}

@media (max-width: 420px) {
  .voto { padding: .8rem .8rem .9rem; }
  .voto__caixa { width: 40px; height: 52px; font-size: min(1.6rem, 30px); }
  .voto__digitos { gap: .32rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
