.blog-header:has(.blog-filter-form-shell) {
  display: block;
}

.blog-filter-form-shell {
  width: 100%;
  min-width: 0;
  margin-top: 28px;
}

.blog-collection-filter {
  margin-bottom: 40px;
}

.blog-collection-filter__label {
  margin: 0 0 14px;
  color: #0e0f11;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.blog-collection-filter__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-collection-filter__button {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #c8c9ca;
  border-radius: 999px;
  background: #fff;
  color: #0e0f11;
  font: inherit;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.blog-collection-filter__button:hover {
  border-color: #194d80;
}

.blog-collection-filter__button[aria-pressed="true"] {
  border-color: #194d80;
  background: #194d80;
  color: #fff;
}

.blog-collection-filter__button:focus-visible {
  outline: 3px solid rgba(25, 77, 128, 0.3);
  outline-offset: 2px;
}

.blog-collection-filter__status {
  margin: 16px 0 0;
  color: #55585c;
  font-size: 0.9375rem;
}

.blog-posts__grid > [data-blog-category][hidden] {
  display: none !important;
}

@media (max-width: 767px) {
  .blog-collection-filter {
    margin-bottom: 28px;
  }

  .blog-collection-filter__buttons {
    flex-wrap: nowrap;
    padding-right: 20px;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .blog-collection-filter__button {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 9px 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-collection-filter__button {
    transition: none;
  }
}
