/* Glass bar = reference data-subnav-wrap inner (UL4). */
.ax-notch-wrap {
  position: fixed;
  left: 0;
  right: 0;
  bottom: clamp(16px, 2.4vw, 34px);
  z-index: 78;
  display: flex;
  justify-content: center;
  padding: 0 clamp(14px, 4vw, 72px);
  pointer-events: none;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.62s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.62s cubic-bezier(0.16, 1, 0.3, 1);
}

.ax-notch-wrap.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.ax-notch {
  pointer-events: auto;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: rgba(14, 18, 38, 0.62);
  backdrop-filter: blur(34px) saturate(190%);
  -webkit-backdrop-filter: blur(34px) saturate(190%);
  border: 1px solid rgba(244, 241, 235, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 18px 44px rgba(10, 13, 28, 0.34);
  padding: 5px;
}

.ax-notch__scroll {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 100%;
  cursor: grab;
}

.ax-notch__scroll::-webkit-scrollbar {
  display: none;
}

/* Inactive chip — reference inline on [data-subnav]. */
.ax-notch__link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  box-sizing: border-box;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 12px clamp(13px, 1.3vw, 20px);
  background: transparent;
  color: rgba(244, 241, 235, 0.62);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.38s ease, color 0.38s ease, border-color 0.38s ease;
}

@media (hover: hover) and (pointer: fine) {
  .ax-notch__link:hover {
    color: rgba(244, 241, 235, 0.92);
    background: transparent;
  }
}

/*
 * Active — reference frame() on [data-subnav]:
 * background #F4F1EB; color #141833
 */
.ax-notch__link.is-active {
  background: var(--ax-paper);
  border-color: var(--ax-paper);
  color: var(--ax-ink);
  border-radius: 999px;
}

@media (hover: hover) and (pointer: fine) {
  .ax-notch__link.is-active:hover {
    background: var(--ax-paper);
    border-color: var(--ax-paper);
    color: var(--ax-ink);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ax-notch-wrap {
    transition: none;
  }
}
