/* The filter bar, "Show all" and the empty state shared by /projects/ and the Library home (assets/js/code-ia.js;
   owner, 20 Oct 2026). A label and a row of toggles per group; hidden without JavaScript, as the toggles need it. */
/* the filters: a label and a row of toggles per group */
.pf-bar { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: clamp(28px, 3vw, 44px); }
html:not(.js) .pf-bar { display: none; }
.pf-g { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pf-l { flex: none; font-size: 14.5px; font-weight: 650; color: var(--ink-3); }
.pf-opts { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--paper-2); }
.pf-b { min-height: 44px; min-width: 44px; padding: 0 16px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-2); font: 600 15px/1 var(--font); cursor: pointer; white-space: nowrap; }
.pf-b:hover { color: var(--ink); background: color-mix(in srgb, var(--paper-0) 55%, transparent); }
.pf-b[aria-pressed="true"] { background: var(--paper-0); color: var(--ink); box-shadow: 0 1px 3px rgba(9, 24, 44, .16); }
.pf-b:focus-visible, .pf-clear:focus-visible, .pf-all:focus-visible, .pjx-ms > summary:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
@media (max-width: 560px) {
  .pf-bar { flex-direction: column; gap: 12px; }
  .pf-g { flex-direction: column; align-items: stretch; gap: 6px; }
  .pf-opts { display: flex; }
  .pf-b { flex: 1 1 auto; padding: 0 8px; }
}
.pf-none { margin-top: 32px; font-size: 16.5px; color: var(--ink-2); }
.pf-clear { min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--teal-text); font: 650 16.5px/1 var(--font); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; cursor: pointer; }

.pf-all { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 16px; padding: 0 4px; border: 0; background: none; color: var(--teal-text); font: 650 16px/1 var(--font); cursor: pointer; }
.pf-all .t2-chev { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.pf-all[aria-expanded="true"] .t2-chev { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .pf-all .t2-chev { transition: none; } }
/* hidden by a filter or the fold: whatever display the card or section has */
[data-pf-grid] > [hidden], [data-pf-sec][hidden], .pf-all[hidden], [data-pf-none][hidden] { display: none !important; }
/* past the fold (data-pf-fold): shown by "Show all" or a filter; without JavaScript everything shows */
.js [data-pf-grid] > .is-more { display: none; }
