/* Table of contents */
.filter a {
  padding: .1875rem .5rem;
  margin-top: .125rem;
  margin-left: .3125rem;
  color: rgba(0, 0, 0, .65);
  text-decoration: none;
}

.filter a:hover,
.filter a:focus {
  color: rgba(0, 0, 0, .85);
  background-color: rgba(8, 133, 191, .1);
}

.filter .active {
  font-weight: 600;
  color: rgba(0, 0, 0, .85);
}

.filter .btn {
  padding: .25rem .5rem;
  font-weight: 600;
  color: rgba(0, 0, 0, .65);
  border: 0;
}

.filter .btn:hover,
.filter .btn:focus {
  color: rgba(0, 0, 0, .85);
  background-color: rgba(8, 133, 191, .1);
}

.filter .btn:focus {
  box-shadow: 0 0 0 1px rgba(8, 133, 191, .7);
}

.filter .btn::before {
  width: 1.25em;
  line-height: 0;
  content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%280,0,0,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
  transition: transform .35s ease;

  /* rtl:raw:
  transform: rotate(180deg) translateX(-2px);
  */
  transform-origin: .5em 50%;
}

.filter .btn[aria-expanded="true"]::before {
  transform: rotate(90deg)/* rtl:ignore */;
}

.filter .sort-direction-btn::before {
  width: 1.25em;
  line-height: 0;
  content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%2858, 133, 191, 0.75%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
  transition: transform .35s ease;
  transform-origin: .5em 50%;
  transform: rotate(90deg);
}

.filter .sort-direction-btn.ascend::before {
  transform: rotate(-90deg)
}
