/* Give the lesson navigation menu its own hover target within a slideshow chip. */
.custom-link-chip .ninja-vocab-chip-menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.custom-link-chip .ninja-vocab-chip-menu-button:hover,
.custom-link-chip .ninja-vocab-chip-menu-button:focus-visible,
.custom-link-chip.ninja-vocab-chip-menu-open .ninja-vocab-chip-menu-button {
  background-color: rgba(0, 0, 0, 0.12) !important;
  color: #424242 !important;
}

.custom-link-chip .ninja-vocab-chip-menu-button:focus-visible {
  outline: 2px solid #757575;
  outline-offset: 2px;
}

/* Keep preview geometry intact so returning to the chip label restores it in place. */
body:has(.custom-link-chip [data-ninja-vocab-menu=true]:hover) .link-preview-card {
  visibility: hidden !important;
  pointer-events: none !important;
}