/*
 * FilterBar.module.css → the shared "filter" part.
 *
 * Ported by scripts/port-css.mjs. Class names are prefixed to survive being
 * flattened out of CSS Modules; design tokens are rewritten to the custom
 * properties theme.json emits. Edit this file, not the original.
 */

.px-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--wp--preset--spacing--xs) var(--wp--preset--spacing--sm);
  padding-block: var(--wp--preset--spacing--md);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--wp--preset--spacing--xxl);
}

.px-filter__label {
  font-family: var(--wp--preset--font-family--mono);
  font-size: var(--wp--preset--font-size--xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-right: var(--wp--preset--spacing--md);
}

.px-filter__option {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line);
  font-family: var(--wp--preset--font-family--mono);
  font-size: var(--wp--preset--font-size--xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  transition:
    color var(--wp--custom--duration--fast) var(--wp--custom--ease--out),
    border-color var(--wp--custom--duration--fast) var(--wp--custom--ease--out),
    background-color var(--wp--custom--duration--fast) var(--wp--custom--ease--out);
}

.px-filter__option:hover {
  color: var(--fg);
  border-color: var(--line-strong);
}

.px-filter__option[data-active='true'] {
  color: var(--bg);
  background: var(--fg);
  border-color: var(--fg);
}

.px-filter__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dot-color, currentColor);
  flex: none;
}

.px-filter__count {
  margin-left: auto;
  font-family: var(--wp--preset--font-family--mono);
  font-size: var(--wp--preset--font-size--xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-faint);
  font-variant-numeric: tabular-nums;
}
