/*
***************
* category links
***************
*/
.category-links {
  margin: 0 auto !important;
  padding-bottom: 24px;
  padding-top: 24px;
  position: relative;
}

@media (min-width: 1025px) {
  .category-links {
    padding-bottom: 32px;
    padding-top: 32px;
  }
}

/* gradient behind prev and next buttons on mobile */
@media (max-width: 1024px) {
  .category-links::before,
  .category-links::after {
    content: '';
    height: 100%;
    pointer-events: none;
    position: absolute;
    top: 0;
    width: 100px;
  }

  .category-links:not(:has(.prev.hidden))::before {
    background: linear-gradient(90deg, var(--body-bg, #ffffff) 25%, transparent 100%);
    left: 0;
  }

  .category-links:not(:has(.next.hidden))::after {
    background: linear-gradient(270deg, var(--body-bg, #ffffff) 25%, transparent 100%);
    right: 0;
  }
}

/* category boxes with scrollable links */
.category-links-inner {
  scrollbar-width: none;
  -ms-overflow-style: none;
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  overflow-x: auto;
}

@media (min-width: 1025px) {
  .category-links-inner {
    gap: 24px;
    justify-content: center;
  }
}

/*
***************
* link box
***************
*/
.category-link {
  align-items: center;
  display: flex;
  flex: none;
  gap: 8px;
  text-decoration: none;
}

.category-link:hover {
  text-decoration: none;
}

.category-link-icon {
  height: 32px;
  user-select: none;
  -webkit-user-select: none;
  width: 32px;
}

.category-link-title {
  color: inherit;
  margin: 0;
}

.category-link:not(:last-child) .category-link-title {
  border-right: 1px solid var(--body-color, #000000);
  padding-right: 16px;
}

@media (min-width: 1025px) {
  .category-link:not(:last-child) .category-link-title {
    padding-right: 24px;
  }
}

/*
***************
* navigation buttons
***************
*/
.category-links-button {
  background: none;
  border: none;
  color: var(--body-color, #000000);
  height: var(--btn-icon-height-sm);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: var(--btn-icon-height-sm);
  z-index: 2;
}

/* hide navigation buttons on desktop */
@media (min-width: 1025px) {
  .category-links-button {
    display: none;
  }
}

.category-links-button.prev {
  left: var(--btn-gap);
}

.category-links-button.next {
  right: var(--btn-gap);
}

.category-links-button.hidden {
  display: none;
}
