/* Blog/archive sidebar filter -- shared between index.php (blog listing) and archive.php (category/tag/date archives) */

.post-sidebar-sticky {
  margin-top: 1rem;
  position: sticky;
  top: 140px;
}

.category-filter {
  text-align: left;
  max-width: 58%;
  margin: 0 auto 1.5rem;
  padding: 16px;
  border: 1px solid #e0e4ee;
  border-radius: 6px;
}

.category-filter-title {
  margin: 0 0 10px;
}

.category-filter-up {
  display: block;
  margin-bottom: 10px;
  color: #4e629a;
  font-size: 15px;
  text-decoration: none;
}

.category-filter-up:hover {
  color: #94adf3;
  text-decoration: underline;
}

.category-filter-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-flow: column;
  gap: 0.35em;
}

.category-filter-list a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 0.2em 0;
  color: #4e629a;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.3;
  text-decoration: none;
}

.category-filter-list a:hover {
  color: #94adf3;
  text-decoration: underline;
}

.category-filter-list li.is-active > a {
  color: #1f305f;
  font-weight: 700;
  text-decoration: underline;
}

.category-filter-count {
  color: #4e629a;
  font-weight: 300;
  flex: 0 0 auto;
}

.category-filter-list li.is-active > a .category-filter-count {
  color: #1f305f;
}

.category-filter-children {
  margin: 0.35em 0 0 14px;
  gap: 0.25em;
}

.category-filter-children a {
  font-size: 14px;
}

.category-filter-more {
  margin-top: 10px;
}

.category-filter-more summary {
  cursor: pointer;
  color: #4e629a;
  font-size: 15px;
  font-weight: 700;
}

.category-filter-more summary:hover {
  color: #94adf3;
}

.category-filter-more .category-filter-list {
  margin-top: 10px;
}

.category-filter-clear {
  display: inline-block;
  margin-top: 10px;
  color: #4e629a;
  font-size: 15px;
  text-decoration: none;
}

.category-filter-clear:hover {
  color: #94adf3;
  text-decoration: underline;
}

@media only screen and (max-width: 1010px) {
  .post-sidebar-sticky {
    margin-top: 0;
    padding: 20px;
  }

  .category-filter {
    max-width: 100%;
  }
}