#filters {
  gap: 0.5rem;
  align-items: center;
}
#filters > li {
  line-height: 1.2;
}
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: 9999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #3f3f46;
  line-height: 1.2;
  transition: all 0.18s ease;
}
.cat-pill .cat-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: #0c7be0;
  flex: none;
}
.cat-pill:hover {
  background: #f4f4f5;
  border-color: #e4e4e7;
  color: #18181b;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.06);
}
.cat-pill:hover .cat-dot {
  transform: scale(1.15);
}
.cat-pill.is-active {
  background: #3296ef;
  border-color: transparent;
  color: #fff;
  box-shadow: 0 3px 12px rgb(50 150 239 / 0.35);
}
.cat-pill.is-active:hover {
  background: #1e86de;
  color: #fff;
}
.cat-pill.is-active .cat-dot {
  background: #fff;
}
.cat-sub {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.1rem;
  border: 1px solid transparent;
  border-radius: 9999px;
  padding: 0.2rem 0.5rem;
  font-size: 0.8125rem;
  font-weight: 400;
  color: #a1a1aa;
  line-height: 1.2;
  transition: all 0.18s ease;
}
.cat-sub .cat-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 9999px;
  background: #0c7be0;
  flex: none;
  opacity: 0.55;
}
.cat-sub:hover {
  background: #fafafa;
  color: #52525b;
}
.cat-sub.is-active {
  color: #3296ef;
  font-weight: 600;
}
.cat-sub.is-active .cat-dot {
  opacity: 1;
}
.dark #filters .cat-pill {
  color: #d4d4d8;
}
.dark #filters .cat-pill:hover {
  background: #3f3f46;
  border-color: #52525b;
  color: #fafafa;
}
.dark #filters .cat-pill.is-active,
.dark #filters .cat-pill.is-active:hover {
  background: #3296ef;
  color: #fff;
}
.dark #filters .cat-sub {
  color: #71717a;
}
.dark #filters .cat-sub:hover {
  background: #3f3f46;
  color: #fafafa;
}