#archive-filters-wrapper{
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem 5rem;
  align-items: center;
  font-stretch: condensed;
  position: relative;
  background-color: #f5f5f5;
  padding: 0.5rem 0 2rem;
  margin-bottom: 1.5rem;
  z-index: 50;
  font-size: 3.2rem;
  line-height: 4.2rem;
}
#archive-filters-header{
  text-decoration: underline from-font;
}
#archive-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
#archive-filters label {
  padding: 0.1rem 1rem;
  border-radius: 1.8rem;
  background-color: #eee;
  border: 2px solid black;
  user-select: none;
  transition: all 0.15s;
}
#archive-filters input[type="checkbox"] {
  display: none;
}
#archive-filters input[type="checkbox"]:checked+label {
  background-color: var(--brand);
  border-color: transparent;
}
#archive-filters select {
  padding: 0.1rem 1rem;
  border-radius: 1.8rem;
}
#archive-filters select:hover,
#archive-filters label:hover{
  background-color: #D8D8D8;
}
#archive-year-dropdown{
  display: none;
}
.archive{
  padding: 1rem 0;
  border-top: 1px solid rgba(0,0,0,0.2);
}
.archive:first-child{
  border: none;
}
.archive a{
  text-decoration: none;
}
.archive a:hover{
  text-decoration: underline;
}
.archive h5{
  opacity: 0.75;
  font-stretch: condensed;
}
/* .archive-item{ */
  /* display: flex; */
  /* border-bottom: 1px solid #000; */
  /* line-height: 3.6rem; */
  /* text-decoration: none; */
  /* padding: 0.5rem 0; */
/* } */
/* .archive-item:hover{ */
  /* background-color: #eee; */
/* } */
/* .archive-title{ */
  /* width: 40%; */
/* } */
/* .archive-type{ */
  /* width: 40%; */
/* } */
/* .archive-date{ */
  /* width: 20%; */
  /* text-align: right; */
/* } */
.archive-pagination{
  display: flex;
  gap: 1rem;
  align-items: center;
  margin: 4.4rem 0.4rem 0;
  font-size: 3.2rem;
  line-height: 4.2rem;
}
.arrow-prev{
  border-left: 1px solid #000;
  transform: rotate(-45deg);
}
.arrow-next{
  border-right: 1px solid #000;
  transform: rotate(45deg);
}
.arrow-prev,
.arrow-next{
  border-top: 1px solid #000;
  width: 1.7rem;
  height: 1.7rem;
  text-decoration: none;
}
.dropdown-wrapper {
  position: absolute;
  top: calc(2rem - 2px);
  right: 0;
  z-index: 12;
}
.dropdown {
  display: block;
  position: relative;
  margin: 0!important;
  list-style: none!important;
  padding: 0.1rem 4rem 0.1rem 1rem!important;
  border-radius: 1.8rem;
  border: 2px solid #000;
  background-color: #EEE;
  transition: background-color 0.15s;
}
.dropdown:hover {
  background-color: #D8D8D8;
  cursor: pointer;
}
.dropdown.open {
  filter: drop-shadow(0 4px 3px #00000012) drop-shadow(0 2px 2px #0000000f);
}
.dropdown.open:hover {
  background-color: #eee;
}
.dropdown::before {
  content: "";
  position: absolute;
  z-index: 20;
  width: 1.5rem;
  height: 1.5rem;
  border-right: 2px solid #000;
  border-bottom: 2px solid #000;
  right: 1.3rem;
  top: 1.5rem;
  transition: transform 0.15s;
  transform: scaleY(1) rotate(45deg);
}
.dropdown.open::before {
  transform: scaleY(-1) rotate(45deg);
}
.dropdown li {
  margin: 0!important;
  display: none;
  min-width: 6.3rem;
}
.dropdown.open li {
  display: block;
}
.dropdown li.selected {
  display: block;
}
.dropdown.open li:hover,
.dropdown.open li.selected {
  text-decoration: underline from-font;
}

@media (max-width: 480px) {
  #archive-filters-wrapper{
    flex-direction: column;
    align-items: flex-start;
    font-size: 2.4rem;
    line-height: 3rem;
    margin: -1rem 0 0;
  }
  #archive-filters{
    gap: 1rem;
  }
  #archive-filters label{
    border-radius: 1.2rem;
    border-width: 1px;
    padding: 0 0.5rem;
  }
  .archive-item{
    display: grid;
    grid-template: "title title" "type date";
    grid-column-gap: 1rem;
    line-height: inherit;
    padding: 1rem 0;
  }
  .archive-title,
  .archive-type,
  .archive-date{
    width: inherit;
  }
  .archive-title{
    grid-area: title;
    font-size: 2rem;
    line-height: 2.6rem;
  }
  .archive-type{
    grid-area: type;
  }
  .archive-date{
    grid-area: date;
  }
  .archive-pagination{
    font-size: 2.2rem;
    line-height: 2.8rem;
  }
  .arrow-prev,
  .arrow-next{
    width: 1.2rem;
    height: 1.2rem;
  }
  .dropdown-wrapper{
    top: calc(2rem);
  }
  .dropdown{
    border-width: 1px;
    border-radius: 1.2rem;
    padding: 0 2rem 0 1rem!important;
  }
  .dropdown::before{
    height: 1.2rem;
    width: 1.2rem;
    border-bottom-width: 1px;
    border-right-width: 1px;
    top: 0.9rem;
  }
}

