/* Catalog filters — advanced chip bar */

.work-catalog__sub {
  max-width: 52ch;
  margin: 0 auto 1.25rem;
  text-align: center;
  opacity: 0.85;
  line-height: 1.5;
}

.work-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.catalog-toolbar .work-filters {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  flex-wrap: nowrap;
  gap: 0;
  padding-bottom: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border: 1px solid rgba(26, 26, 26, 0.18);
}

.catalog-toolbar .work-filters::-webkit-scrollbar {
  display: none;
}

.work-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 0;
  border-right: 1px solid rgba(26, 26, 26, 0.18);
  background: #fff;
  color: var(--ink, #1a1a1a);
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  transition: background 0.22s ease, color 0.22s ease;
}

.catalog-toolbar .work-filter:last-child {
  border-right: 0;
}

.work-filter .ti {
  font-size: 0.95rem;
  opacity: 0.85;
}

.work-filter__count {
  opacity: 0.5;
  font-size: 0.62rem;
  font-weight: 700;
}

.work-filter:hover {
  background: rgba(26, 26, 26, 0.05);
  color: var(--ink, #1a1a1a);
}

.work-filter.is-active,
.work-filter.is-active:hover {
  background: var(--ink, #1a1a1a);
  color: #fff;
}

.work-filter.is-active .work-filter__count {
  opacity: 0.7;
}

.section--work-full .work-filter {
  border-color: rgba(235, 224, 211, 0.4);
  color: var(--cream);
}

.section--work-full .work-filter:hover {
  background: rgba(235, 224, 211, 0.12);
}

.section--work-full .work-filter.is-active {
  background: var(--cream);
  color: var(--black);
  border-color: var(--cream);
}

.work-catalog__empty {
  padding: 3rem;
  text-align: center;
  opacity: 0.7;
}

@media (max-width: 640px) {
  .work-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
}
