.disclosure {
  position: relative;
}

.disclosure__button {
  align-items: center;
  cursor: pointer;
  display: flex;
  height: 4rem;
  padding: 0 1.5rem 0 1.5rem;
  font-size: 1.3rem;
  background-color: transparent;
}

.disclosure__button[aria-expanded=true] .label {
  background-position: left bottom, left bottom;
  background-size: 100% 0.1rem, 100% 0.1rem;
}

.disclosure__button > .icon-caret {
  transition: transform var(--duration-default) ease;
}

.disclosure__button[aria-expanded=true] > .icon-caret {
  transform: scaleY(-1);
}

.disclosure__list {
  border: 0.1rem solid rgb(var(--color-border));
  font-size: 1.4rem;
  margin-top: -0.5rem;
  min-height: 8.2rem;
  max-height: 19rem;
  max-width: 22rem;
  min-width: 12rem;
  width: max-content;
  padding: 0.8rem 2rem;
  position: absolute;
  bottom: calc(100% + 1rem);
  z-index: 2;
  background-color: rgb(var(--color-background));
  left: 50%;
  transform: translateX(-50%);
  overflow-x: hidden;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scrollbar-width: thin;
}

.disclosure__list::-webkit-scrollbar {
  appearance: none;
  width: 0.8rem;
  background-clip: padding-box;
  border: 0.3rem solid transparent;
  border-radius: 1.6rem;
  background-color: rgba(var(--color-border), 0.3);
}

.disclosure__list::-webkit-scrollbar-thumb {
  border: 0.3rem solid transparent;
  background-clip: padding-box;
  border-radius: 1.6rem;
  background-color: rgb(var(--color-border));
}

.disclosure__item {
  padding: 0.6rem 0;
  display: flex;
}

.disclosure__link {
  display: block;
  position: relative;
  text-decoration: none;
  font-size: 1.3rem;
  line-height: calc(1 + 0.4 / var(--font-body-scale));
  white-space: nowrap;
}

.disclosure__link--active {
  pointer-events: none;
  opacity: 0.4;
}
