/* Figma nav-list-item 7706:97. Layout widths follow the translated label. */
.furpsy-nav-list-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  width: fit-content;
  height: 24px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--furpsy-color-opacity-black-100);
  text-decoration: none;
  transition: color 0.3s ease;
  cursor: pointer;
}

.furpsy-nav-list-item__text {
  display: inline-grid;
  white-space: nowrap;
}

.furpsy-nav-list-item__label,
.furpsy-nav-list-item__reserve {
  grid-area: 1 / 1;
}

/* Reserve the translated label's medium-weight width without an accessible copy. */
.furpsy-nav-list-item__reserve {
  visibility: hidden;
  font-weight: var(--furpsy-type-body-medium-l-weight);
  pointer-events: none;
  user-select: none;
}

.furpsy-nav-list-item__label {
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: from-font;
  text-underline-position: from-font;
  transition: text-decoration-color 0.3s ease;
}

.furpsy-nav-list-item--dropdown {
  min-width: 54px;
}

.furpsy-nav-list-item__arrow {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  background-color: var(--furpsy-color-grey-50);
  mask: url('../../icons/nav-list-item-arrow.svg') center / 16px 16px no-repeat;
  transition: background-color 0.3s ease;
}

.furpsy-nav-list-item:hover {
  font-weight: var(--furpsy-type-body-medium-l-weight);
}

.furpsy-nav-list-item:hover .furpsy-nav-list-item__label,
.furpsy-nav-list-item.is-active .furpsy-nav-list-item__label,
.furpsy-nav-list-item[aria-expanded='true'] .furpsy-nav-list-item__label {
  text-decoration-color: currentColor;
}

.furpsy-nav-list-item.is-active,
.furpsy-nav-list-item[aria-expanded='true'] {
  color: var(--furpsy-color-opacity-primary-100);
  font-weight: var(--furpsy-type-body-medium-l-weight);
}

.furpsy-nav-list-item[aria-expanded='true'] .furpsy-nav-list-item__arrow {
  background-color: var(--furpsy-color-opacity-primary-100);
  mask-image: url('../../icons/nav-list-item-arrow-active.svg');
}

.furpsy-nav-list-item:focus-visible {
  outline: none;
}

.furpsy-nav-list-item:focus-visible::after {
  content: '';
  position: absolute;
  inset: -4px -8px;
  border: 2px solid var(--furpsy-color-primary-30);
  border-radius: 30px;
  box-sizing: border-box;
  pointer-events: none;
}

.furpsy-nav-list-item:disabled,
.furpsy-nav-list-item[aria-disabled='true'] {
  color: var(--furpsy-color-grey-50);
  font-weight: var(--furpsy-type-body-regular-l-weight);
  cursor: default;
}

.furpsy-nav-list-item:disabled .furpsy-nav-list-item__label,
.furpsy-nav-list-item[aria-disabled='true'] .furpsy-nav-list-item__label {
  text-decoration-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  .furpsy-nav-list-item,
  .furpsy-nav-list-item__label,
  .furpsy-nav-list-item__arrow {
    transition: none;
  }
}
