/* Public filter: chips, search, sort and count for public pages (/features/, the
   comparison hub). Behaviour: includes/ui/js/public-filter.js.

   Colours come through custom properties so a light ground can restyle the same
   controls. The fallbacks are the dark-ground values /features/ has always used:
   --ink is near-white, so a page on cream sets its own (see .adm-compare in
   blocks/comparison-index/style.css). */
.pf-tools { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
/* The bar carries `hidden` for the Markdown view only; it stays on screen from first paint so nothing shifts when the script runs. */
.pf-tools[hidden] { display: flex; }
[data-pf-root] [hidden]:not(.pf-tools) { display: none !important; }
.pf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-chip {
    padding: 6px 14px;
    border: 1px solid var(--pf-border, var(--hairline-strong));
    border-radius: 9999px;
    background: transparent;
    color: var(--pf-fg, var(--ink));
    font-family: var(--wp--preset--font-family--outfit);
    font-size: var(--wp--preset--font-size--sm);
    cursor: pointer;
}
.pf-chip:hover { border-color: var(--pf-hover, var(--teal)); }
.pf-chip.is-active {
    background: var(--pf-active-bg, var(--teal));
    border-color: var(--pf-active-bg, var(--teal));
    color: var(--pf-active-fg, var(--navy-deep));
}
.pf-search__input,
.pf-sort__select {
    padding: 8px 12px;
    border: 1px solid var(--pf-border, var(--hairline-strong));
    border-radius: 4px;
    background: var(--pf-field, var(--navy-surface));
    color: var(--pf-fg, var(--ink));
    font-family: var(--wp--preset--font-family--outfit);
    font-size: var(--wp--preset--font-size--base);
}
.pf-search__input { min-width: 240px; }
.pf-search__input:focus,
.pf-sort__select:focus { outline: none; border-color: var(--pf-hover, var(--teal)); }
.pf-sort { display: inline-flex; align-items: center; gap: 8px; color: var(--pf-fg, var(--ink)); font-size: var(--wp--preset--font-size--sm); }
.pf-count { margin: 0; color: var(--pf-muted, var(--ink-muted)); font-size: var(--wp--preset--font-size--sm); }
.pf-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pf-nomatch { color: var(--pf-muted, var(--ink-muted)); }

@media (max-width: 640px) {
    .pf-search, .pf-search__input { width: 100%; min-width: 0; }
}
