/* Botões — sistema único para o site.
   Pílulas sólidas (azul-marinho) com a ação principal em dourado, ícone
   alinhado e estados de hover/foco discretos. Carregado depois do
   leitura.css para prevalecer sobre os estilos antigos de cada página. */

.civic-actions {
  gap: 12px;
}

.civic-actions a,
.civic-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--navy);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 750;
  line-height: 1.15;
  text-align: left;
  text-decoration: none;
  box-shadow: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.civic-actions a:hover,
.civic-actions button:hover {
  background: var(--info-bg);
  border-color: var(--navy);
  color: var(--navy);
  text-decoration: none;
}

.civic-actions a:active,
.civic-actions button:active {
  background: var(--info-bg-2);
}

.civic-actions > :first-child {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
  font-weight: 800;
}

.civic-actions > :first-child:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
  filter: brightness(0.96);
}

.civic-actions svg {
  flex: 0 0 auto;
}

.civic-actions a:focus-visible,
.civic-actions button:focus-visible {
  outline: 3px solid var(--info-bd);
  outline-offset: 2px;
}

/* Botões de componente (planos, fornecedores, CSV, carregar mais) */
.plano-btn,
.btn-csv,
.btn-load-more,
.forn-btn-detalhe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--navy);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.plano-btn:hover,
.btn-load-more:hover {
  border-color: var(--navy);
  background: var(--info-bg);
  color: var(--navy);
  transform: translateY(-1px);
}

.plano-btn--primary,
.btn-csv,
.forn-btn-detalhe {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--on-accent, #fff);
}

.plano-btn--primary:hover,
.btn-csv:hover,
.forn-btn-detalhe:hover {
  background: var(--navy-dk);
  border-color: var(--navy-dk);
  color: var(--on-accent, #fff);
}

.plano-btn--lai {
  background: var(--warn-bg);
  border-color: var(--warn-bd);
  color: var(--warn-ink);
}

.plano-btn--lai:hover {
  background: var(--warn-2);
  border-color: var(--warn);
  color: var(--warn-ink);
}

.plano-btn:focus-visible,
.btn-csv:focus-visible,
.btn-load-more:focus-visible,
.forn-btn-detalhe:focus-visible {
  outline: 3px solid var(--info-bd);
  outline-offset: 2px;
}

/* Abas: pílulas com estado ativo sólido */
.pref-tab,
.forn-tab {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 800;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pref-tab:hover,
.forn-tab:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.pref-tab.is-active,
.forn-tab[aria-selected="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--on-accent, #fff);
}

.pref-tab.is-active span,
.forn-tab[aria-selected="true"] span {
  color: var(--on-accent, #fff);
}

@media (max-width: 760px) {
  .civic-actions a,
  .civic-actions button {
    min-height: 46px;
  }
}
