/* Recipe filters (task 823.19): the panel on /search and category pages, the active-filter chips, the empty state. */
.f-root { margin-top: 4px; }
.f-form { margin: 0 0 16px; }
.f-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.f-box > summary { cursor: pointer; list-style: none; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; padding: 12px 16px; min-height: 48px; font-weight: 700; }
.f-box > summary::-webkit-details-marker { display: none; }
.f-box > summary::before { content: ""; width: .55em; height: .55em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; margin-right: 4px; }
.f-box[open] > summary::before { transform: rotate(45deg); }
.f-box > summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: var(--radius); }
.f-badge { display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; padding: 0 .4em; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: .8rem; }
.f-hint { font-weight: 400; }
.f-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 4px 24px; padding: 4px 16px 0; border-top: 1px solid var(--line); }
.f-group { margin: 12px 0 8px; min-width: 0; }
.f-group legend { font: 700 1rem var(--sans); margin-bottom: 4px; }
.f-ing { grid-column: span 2; }
.f-ing label { display: block; font-size: .875rem; font-weight: 600; margin: 6px 0 2px; color: var(--muted); }
.f-ing input { width: 100%; }
.f-free, .f-have { grid-column: span 2; }
.f-hide { margin: 10px 0 0; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.f-hide legend { font-size: .95rem; }
.f-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.f-opt { display: flex; align-items: center; gap: 8px; min-height: 36px; font-size: .95rem; cursor: pointer; }
.f-opt input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); flex: none; }
.f-opt.off { color: var(--muted); opacity: .6; cursor: default; }
.f-n { margin-left: auto; padding-left: 6px; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.f-note { margin: 6px 0 0; }
.f-check { margin: 8px 0 4px; padding: 8px 10px; border-radius: 10px; background: var(--warn-soft); }
.f-how { margin: 4px 0 0; }
.f-how summary { cursor: pointer; color: var(--link); text-decoration: underline; text-underline-offset: 2px; min-height: 32px; display: inline-flex; align-items: center; }
.f-how ul { padding-left: 1.2em; margin: 6px 0; }
.f-how li { margin: 0 0 4px; }
.f-actions { display: flex; align-items: center; gap: 16px; padding: 12px 16px 16px; }
.f-clear { font-weight: 600; }
.f-chips ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 12px; }
.f-chips .chip { min-height: 36px; padding: .3em .85em; gap: 8px; }
.f-chips .x { font-size: .75rem; opacity: .85; }
.f-total { margin: 0 0 12px; }
.f-empty .f-relax { list-style: none; padding: 0; margin: 0 auto 16px; max-width: 420px; text-align: left; }
.f-empty .f-relax li { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; }
.f-root[aria-busy="true"] .f-results { opacity: .55; transition: opacity .15s; }
@media (max-width: 640px) {
  .f-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; padding: 4px 12px 0; }
  .f-ing, .f-free { grid-column: 1 / -1; }
  .f-cols { gap: 0 16px; }
  .f-box > summary { padding: 10px 12px; }
  .f-hint { flex-basis: 100%; padding-left: 18px; }
  .f-actions { padding: 10px 12px 14px; }
  .f-actions .btn { flex: 1; }
  /* 44 px touch targets on phones (task 823.56). */
  .f-opt, .f-chips .chip, .f-how summary, .f-clear { min-height: 44px; }
  .f-clear { display: inline-flex; align-items: center; }
  .f-have, .f-hide { grid-column: 1 / -1; }
}
@media (max-width: 360px) { .f-cols { grid-template-columns: minmax(0, 1fr); } }
@media print { .f-form, .f-chips { display: none !important; } }
/* Site search (task 823.26): what search did with the words, and the no-results help. */
.search-note { margin: 12px 0 14px; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); }
.search-help p { margin: 0 0 10px; }
.search-help .btn { margin: 4px 2px; }
