.home-category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.home-category-filter button {
  min-width: 64px;
  height: 34px;
  padding: 0 16px;
  border: 1px solid #c7d7cc;
  border-radius: 6px;
  background: #ffffff;
  color: #315040;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.home-category-filter button:hover,
.home-category-filter button:focus-visible {
  border-color: #548367;
  outline: none;
}

.home-category-filter button.is-active {
  border-color: #315e45;
  background: #315e45;
  color: #ffffff;
}

/* The catalog cards set display: grid, so make the filter state explicit. */
.catalog-reference-list-item[hidden] {
  display: none;
}

@media (max-width: 640px) {
  .home-category-filter {
    gap: 8px;
    margin-top: 14px;
  }

  .home-category-filter button {
    min-width: 58px;
    height: 32px;
    padding: 0 13px;
  }
}
