/* Navegação compartilhada dos projetos oficiais do Voluntariado Eleições 2026.
   Componente local-first: copie este arquivo para a raiz pública de cada domínio. */
.network-ticker,
.network-ticker * {
  box-sizing: border-box;
}

.network-ticker {
  --network-ink: #10251f;
  --network-green: #043d30;
  --network-yellow: #ffd21c;
  position: relative;
  z-index: 100;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 34px;
  margin: 0;
  color: #fff;
  background: var(--network-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .035em;
  line-height: 1;
}

.network-ticker .ticker-label {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 34px;
  padding: 7px 16px 6px max(16px, 5vw);
  color: var(--network-yellow);
  background: var(--network-green);
  text-decoration: none;
  white-space: nowrap;
}

.network-ticker .ticker-window {
  display: flex;
  min-width: 0;
  align-items: center;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent);
}

.network-ticker .ticker-track {
  display: flex;
  width: max-content;
  min-height: 34px;
  align-items: center;
  animation: volunteer-network-ticker-scroll 42s linear infinite;
}

.network-ticker .ticker-set {
  display: flex;
  height: 34px;
  flex: 0 0 auto;
  align-items: center;
  padding-right: 32px;
}

.network-ticker .ticker-set a,
.network-ticker .ticker-set span {
  display: inline-flex;
  height: 100%;
  align-items: center;
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, .76);
  background: transparent;
  border: 0;
  font: inherit;
  line-height: 1;
  text-decoration: none;
  text-transform: none;
  white-space: nowrap;
}

.network-ticker .ticker-set a::after,
.network-ticker .ticker-set span::after {
  content: "◆";
  margin: 0 22px;
  color: var(--network-yellow);
  font-size: 7px;
}

.network-ticker .ticker-set a:hover,
.network-ticker .ticker-set a:focus-visible,
.network-ticker .ticker-set a.current {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--network-yellow);
  text-underline-offset: 3px;
}

.network-ticker .ticker-set small {
  margin-left: 6px;
  color: var(--network-yellow);
  font: inherit;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.network-ticker:hover .ticker-track,
.network-ticker:focus-within .ticker-track {
  animation-play-state: paused;
}

@keyframes volunteer-network-ticker-scroll {
  to { transform: translateX(-50%); }
}

@media (max-width: 860px) {
  .network-ticker {
    grid-template-columns: 128px minmax(0, 1fr);
    font-size: 10px;
  }

  .network-ticker .ticker-label {
    padding-left: 12px;
    line-height: 1.15;
    white-space: normal;
  }

  .network-ticker .ticker-label span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .network-ticker .ticker-window {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .network-ticker .ticker-track { animation: none; }
  .network-ticker .ticker-set[aria-hidden="true"] { display: none; }
}

@media print {
  .network-ticker { display: none !important; }
}
