.wa-reference-archive {
  display: flex;
  flex-direction: column;
  gap: var(--space-l);
}
.wa-reference-archive-section {
  padding-top: var(--space-l);
}
.wa-reference-archive__top {
  display: flex;
  flex-direction: column;
  gap: var(--space-l);
  width: 100%;
  position: relative;
}
.wa-reference-archive-filter {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: var(--space-s);
}
.wa-reference-archive-filter-box {
  border: 1px solid var(--primary);
  background-color: var(--white);
  padding: var(--space-s);
  transition: 0.2s all ease-in-out;
  color: var(--base);
  display: flex;
  align-items: center;
}
@media (min-width: 768px) {
  .wa-reference-archive-filter-box {
    width: 20%;
  }
}
@media (max-width: 767px) {
  .wa-reference-archive-filter-box {
    padding: var(--space-xs);
  }
}
.wa-reference-archive-filter-box__text {
  line-height: 1;
  font-weight: 600;
}
.wa-reference-archive-filter-box[aria-current=page] {
  background-color: var(--primary);
  color: var(--white);
}
@media (min-width: 1281px) {
  .wa-reference-archive-filter-box:hover {
    background-color: var(--primary);
    color: var(--white);
  }
}
.wa-reference-archive-filter-box:last-of-type {
  z-index: 100;
}
@media (max-width: 991px) {
  .wa-reference-archive-filter {
    min-width: calc(100% + var(--gutter));
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow-y: hidden;
    overflow-x: auto;
    padding-bottom: var(--space-xs);
    padding-right: var(--gutter);
  }
  .wa-reference-archive-filter:after {
    content: "";
    position: absolute;
    display: block;
    pointer-events: none;
    width: 25%;
    height: 100%;
    z-index: 99;
    bottom: 0;
    right: calc(var(--gutter) * -1);
    background: -moz-linear-gradient(270deg, white 0%, rgba(255, 255, 255, 0) 100%);
    background: -webkit-linear-gradient(270deg, white 0%, rgba(255, 255, 255, 0) 100%);
    background: linear-gradient(270deg, white 0%, rgba(255, 255, 255, 0) 100%);
  }
}
