/* anuncios.css — espaços de publicidade (ver js/anuncios.js). Discretos, com rótulo
 * "Publicidade" e separados do conteúdo da apuração. */
.anuncio-faixa { padding: 8px 0 28px; }
.anuncio-bloco { margin-top: 22px; }
.anuncio-caixa {
  position: relative; border: 1.5px dashed var(--line); border-radius: var(--raio);
  background: var(--surface-2); padding: 22px 18px 16px; min-height: 100px;
}
.anuncio-rotulo {
  position: absolute; top: 8px; left: 14px; font-size: 10.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--faint);
}
.anuncio-convite { display: grid; gap: 10px; justify-items: start; }
.anuncio-txt strong { display: block; font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; }
.anuncio-txt span { color: var(--muted); font-size: 14.5px; }
.anuncio-btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-weight: 700; font-size: 14px; text-decoration: none;
  max-width: 100%; overflow-wrap: anywhere;
}
.anuncio-btn:hover { opacity: .88; }
.anuncio-regra { color: var(--faint); font-size: 12px; }

@media (min-width: 1024px) {
  .anuncio-faixa .anuncio-caixa { min-height: 110px; padding: 26px 28px 20px; }
  .anuncio-faixa .anuncio-convite { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 28px; }
  .anuncio-faixa .anuncio-regra { grid-column: 1 / -1; }
  .anuncio-faixa .anuncio-txt strong { font-size: 1.35rem; }
}

@media print { .anuncio { display: none; } }

/* anúncio de patrocinador (vindo do anuncios.json) */
.anuncio-pago.com-img { grid-template-columns: 88px minmax(0, 1fr); align-items: center; column-gap: 14px; }
.anuncio-pago.com-img .anuncio-btn { grid-column: 1 / -1; }
.anuncio-img { width: 88px; height: 88px; object-fit: cover; border-radius: 12px; background: var(--surface); }
@media (min-width: 1024px) {
  .anuncio-faixa .anuncio-pago.com-img { grid-template-columns: 120px minmax(0, 1fr) auto; }
  .anuncio-faixa .anuncio-pago.com-img .anuncio-btn { grid-column: auto; }
  .anuncio-faixa .anuncio-img { width: 120px; height: 80px; }
}
.anuncio-txt .anuncio-regra { display: block; margin-top: 6px; }

/* botão "Apoie" (Pix) — js/apoio.js */
.btn-apoio {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--c13); font: inherit; font-weight: 700;
  font-size: 13.5px; cursor: pointer; flex: none;
}
.btn-apoio span { color: var(--ink); }
.btn-apoio:hover { background: var(--surface-2); }
@media (max-width: 1023.98px) {
  .topo-dir .btn-apoio { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .topo-dir .btn-apoio span { display: none; }
  .topo-dir .btn-apoio svg { width: 22px; height: 22px; }
}
.rodape-apoio { margin-top: 14px; }
.rodape-apoio .btn-apoio { height: 44px; padding: 0 16px; }
.apoio-dialogo { border: 0; padding: 0; border-radius: 20px; background: var(--surface); color: var(--ink);
  width: min(400px, calc(100vw - 32px)); box-shadow: var(--sombra); }
.apoio-dialogo::backdrop { background: rgba(10, 12, 16, .55); }
.apoio-cx { position: relative; padding: 26px 22px 20px; display: grid; gap: 12px; }
.apoio-cx h2 { margin: 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.apoio-cx p { margin: 0; color: var(--muted); font-size: 14.5px; }
.apoio-fechar { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: transparent; color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer; }
.apoio-qr { justify-self: center; width: 210px; height: 210px; padding: 8px; background: #fff; border-radius: 14px; }
.apoio-qr svg { width: 100%; height: 100%; display: block; }
.apoio-rot { font-size: 12px !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint) !important; }
.apoio-chave { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.apoio-chave code { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; font-size: 14.5px; font-weight: 700;
  background: var(--surface-2); padding: 10px 12px; border-radius: 10px; }
.apoio-btn { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--ink); color: var(--bg);
  font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.apoio-btn-2 { background: var(--surface-2); color: var(--ink); }
.apoio-nota { font-size: 12.5px !important; }
.anuncio-mail { color: var(--muted); font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; }
@media (min-width: 1024px) { .anuncio-faixa .anuncio-mail { grid-column: 1 / -1; } }
.btn-baixar { color: var(--ink); text-decoration: none; }
#anuncio-presidente { padding: 16px 0 0; }

/* vários anúncios no mesmo espaço: um por vez, revezando (js/anuncios.js girar) */
.anuncio-slide { display: none; }
.anuncio-slide.ativo { display: block; animation: anuncio-entra .45s ease; }
@keyframes anuncio-entra { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .anuncio-slide.ativo { animation: none; } }
.anuncio-pontos { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
.anuncio-pontos i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.anuncio-pontos i.ativo { background: var(--muted); }

/* contagem de visitantes dentro das caixas "Anuncie aqui" e na página Anuncie (js/visitantes.js) */
.vis-contagem { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.vis-contagem[hidden] { display: none; }
.vis-contagem b { color: var(--ink); font-variant-numeric: tabular-nums; }
.vis-contagem i { width: 8px; height: 8px; border-radius: 50%; background: #1fa855; flex: none; }
