/**
 * AC | Anchor Nav — secundary-menu do DS (node 2031:12485).
 *
 * Faixa branca full-width, sticky abaixo do header, com pílulas outline que
 * levam (smooth scroll via js/ac-anchor-nav.js) aos tópicos da página.
 * Scroll horizontal no overflow (mobile já resolvido pelo DS).
 */

.ac-anchor-nav {
  position: sticky;
  /* --ac-header-height é setada pelo JS a partir do .ac-header (fallback 0). */
  top: var(--ac-header-height, 0px);
  z-index: 90;
  width: 100%;
  background: var(--color-branco, #ffffff);
  /* Elevation/sm do DS. */
  box-shadow: 0 6px 8px -2px rgba(0, 0, 0, 0.06);
}

.ac-anchor-nav__inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--space-2, 8px);
  max-width: var(--container-max, 1104px);
  margin: 0 auto;
  padding: var(--space-4, 16px);
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.ac-anchor-nav__inner::-webkit-scrollbar {
  display: none;
}

.ac-anchor-nav__item {
  flex: 0 0 auto;
  white-space: nowrap;
  border: 1px solid #b2b2b2;
  border-radius: 36px;
  padding: 6px 16px;
  font-family: var(--font-body, Arial, Helvetica, sans-serif);
  font-weight: 700;
  font-size: 12px;
  line-height: 16px;
  color: #404040;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.ac-anchor-nav__item:hover,
.ac-anchor-nav__item:focus-visible {
  background: #f0f2f5;
  border-color: #f0f2f5;
}

.ac-anchor-nav__item:focus-visible {
  outline: 2px solid var(--color-verde-nobre, #033936);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------------------
 * Variante ETAPAS (stepper numerado) — uma âncora por etapa de conteúdo.
 * Círculos numerados conectados por linha; o atual fica preenchido (scrollspy).
 * --------------------------------------------------------------------------- */
.ac-anchor-nav--steps .ac-anchor-nav__inner {
  justify-content: center;
  gap: 16px;
}
.ac-anchor-nav__steps-label {
  flex: 0 0 auto;
  font-family: var(--font-body, Arial, Helvetica, sans-serif);
  font-weight: 700;
  font-size: 12px;
  line-height: 16px;
  color: #404040;
  white-space: nowrap;
}
.ac-anchor-nav__steps {
  display: flex;
  align-items: center;
  gap: 8px; /* sem traço conector — só 8px entre os steps (DS) */
  margin: 0;
  padding: 0;
  list-style: none;
}
.ac-anchor-nav__step-item {
  display: flex;
  align-items: center;
}
/* Pílula (DS Step 7033:36279): radius 36, padding 6×16, Button/sm (Arial Bold
 * 14/20). Estado "próximo" = outline; "atual" = filled. Sem estado "concluído":
 * os números ficam sempre visíveis (navegação livre). */
.ac-anchor-nav__step {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  border-radius: 36px;
  border: 1px solid #b2b2b2;
  background: transparent;
  color: #404040;
  padding: 6px 16px;
  font-family: var(--font-body, Arial, Helvetica, sans-serif);
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
/* Atual (DS Active): filled. Cor configurável — verde (default) ou amarelo (DS). */
.ac-anchor-nav--steps-verde .ac-anchor-nav__step.is-active {
  background: var(--color-verde-nobre, #033936);
  border-color: var(--color-verde-nobre, #033936);
  color: #fff;
}
.ac-anchor-nav--steps-amarelo .ac-anchor-nav__step.is-active {
  background: #FFD16C;
  border-color: #FFD16C;
  color: #242424;
}
/* Hover nas etapas ainda não-ativas. */
.ac-anchor-nav__step:hover { border-color: #404040; }
.ac-anchor-nav__step:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 82, 54, 0.5);
}
