/* The site's filter window (user, 2026-10-03): ONE "סינון" button that opens a small window with the filter groups,
 * each option a pill; the chosen ones show as chips with ✕. Used by the catalog (assets/catalog.js) and by the notice
 * board (assets/board.js) - one look, defined only here. The window hangs from the nearest positioned box around the
 * button (the catalog's search row, the board's tools row) from its right edge; on phones it is a sheet from the bottom. */
.sc-drop-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border: 1px solid var(--sc-c-line); border-radius: 999px; background: var(--sc-c-card); color: var(--sc-c-ink); font: 500 .95rem var(--sc-font-body, inherit); cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
.sc-drop-btn:hover { border-color: color-mix(in srgb, var(--sc-c-ink) 35%, transparent); }
.sc-drop-btn .sc-ico { color: var(--sc-c-primary); }
.sc-drop-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--sc-c-ink); color: var(--sc-c-bg); font-size: var(--sc-fs-tiny, .875rem); }
.sc-drop-n[hidden] { display: none; }
/* the chosen filters */
.sc-active { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 8px; }
.sc-active[hidden] { display: none; }
.sc-chosen { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 8px 0 14px; border-radius: 999px; background: var(--sc-c-soft); color: var(--sc-c-ink); font-size: var(--sc-fs-small, 1rem); }
.sc-chosen button { display: inline-grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--sc-c-card) 60%, transparent); color: var(--sc-c-ink); cursor: pointer; }
.sc-clear { border: 0; background: none; padding: 2px 4px; color: var(--sc-c-muted); font: inherit; font-size: var(--sc-fs-small, 1rem); text-decoration: underline; cursor: pointer; }
.sc-clear:hover { color: var(--sc-c-primary); }
.sc-fpop-host { position: static; } /* the window hangs from the whole search row (.sc-cat-top), from its right edge */
.sc-fpop-host.is-on > .sc-fbtn, .sc-fpop-host.open > .sc-fbtn { border-color: var(--sc-c-ink); }
.sc-fpop { position: absolute; top: calc(100% + 10px); right: 0; z-index: 40; display: none; width: min(860px, 100%); border-radius: 18px; background: var(--sc-c-card); box-shadow: 0 22px 60px var(--sc-c-shadow), 0 2px 10px var(--sc-c-shadow); }
.sc-fpop-host.open > .sc-fpop { display: block; }
.sc-fpop-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 20px 0; color: var(--sc-c-ink); font-weight: 700; font-size: 1.1rem; }
.sc-fpop-x { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: var(--sc-c-panel); color: var(--sc-c-ink); cursor: pointer; }
/* the scrollbar on the right (user): the scrolling box is ltr, its content rtl again */
.sc-fpop-scroll { direction: ltr; max-height: min(62vh, 520px); overflow: auto; }
.sc-fpop-body { direction: rtl; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 28px; padding: 6px 20px 14px; }
.sc-fgrp { padding: 8px 0; border-top: 1px solid var(--sc-c-line); }
.sc-fgrp:nth-child(-n+2) { border-top: 0; }
.sc-fgrp-wide { grid-column: 1 / -1; }
.sc-fpop .sc-fgrp h3 { margin: 0 0 6px; color: var(--sc-c-muted); font: 600 var(--sc-fs-tiny, .875rem)/1.4 var(--sc-font-body, inherit); }
.sc-fpills { display: flex; flex-wrap: wrap; gap: 7px; }
.sc-fpill { position: relative; cursor: pointer; }
.sc-fpill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sc-fpill span { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border: 1px solid var(--sc-c-line); border-radius: 999px; background: var(--sc-c-card); color: var(--sc-c-ink); font-size: .95rem; font-weight: 400; transition: background-color .15s ease, border-color .15s ease; }
.sc-fpill:hover span { border-color: color-mix(in srgb, var(--sc-c-ink) 40%, transparent); }
.sc-fpill input:checked + span { background: var(--sc-c-ink); border-color: var(--sc-c-ink); color: var(--sc-c-bg); }
.sc-fpill input:focus-visible + span { outline: 2px solid var(--sc-c-accent); outline-offset: 2px; }
.sc-fdot { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); }
.sc-fpop-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 20px; border-top: 1px solid var(--sc-c-line); border-radius: 0 0 18px 18px; background: var(--sc-c-panel); }
.sc-fpop--small { width: min(560px, 100%); } /* a short list of groups (the board) */
@media (max-width: 700px) {
	.sc-fpop { position: fixed; inset: auto 0 0 0; z-index: 1001; width: auto; border-radius: 20px 20px 0 0; box-shadow: 0 -12px 40px var(--sc-c-shadow); }
	.sc-fpop-scroll { max-height: 62vh; }
	.sc-fpop-body { grid-template-columns: 1fr; gap: 0; }
	.sc-fgrp:nth-child(2) { border-top: 1px solid var(--sc-c-line); }
	.sc-fpop-foot { border-radius: 0; padding-bottom: 20px; }
	body.sc-sheet-open::after { content: ""; position: fixed; inset: 0; z-index: 1000; background: rgba(20, 28, 23, .35); }
}
