/* The filter rows of Peers, Supporters, Ideas and Events, in one style (2026-11-24, the owner's review: each page had its own sizes, colors
   and weights, and Events' row sat on two uneven lines). Loaded last, so it settles what css/intro.css (.fd-*), css/ideas.css (.tw-*) and
   css/main.css (.ld-tb, .sp-*) each say about their own row. One control: 40px high, the card's line, 6px corners, the lightest paper,
   15.5px. The filter box comes first and is at most 340px wide; a dropdown or a button after it is forest and bold with its icon inside; a
   control that is on wears the forest ring; the row wraps one control at a time, 8px apart. Only these four rows: the same event filters
   on Overview's card, the timeline and the Subscribe dialog keep their own, smaller style. */
:root{--fc-h:40px;--fc-bg:var(--hover-paper);--fc-line:var(--card-line);--fc-r:6px;--fc-fs:15.5px}

/* the rows */
.tw-bar,.ld-tb,.ab .fd-top{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.ld-tb{margin:14px 0 12px;justify-content:flex-start}
.ld-tb .sp-fl{display:contents} /* Events' controls are the row's own, so they wrap one at a time beside the box */

/* the filter box */
.tw-q,.ld-tb .ld-q,.ab .fd-top > .fd-q,.ab .fd-top > .fd-q:focus-within,.ab .fd-top > .fd-q.has{flex:1 1 220px;max-width:340px;min-width:150px}
.tw-q{min-height:var(--fc-h);height:var(--fc-h);padding:0 12px;border:1px solid var(--fc-line);border-radius:var(--fc-r);background:var(--fc-bg)}
.tw-q input{height:calc(var(--fc-h) - 2px);font-size:var(--fc-fs)}
.tw-q input::-webkit-search-cancel-button{cursor:pointer}
.ab .fd-top > .fd-q .in,.ab .fd-top > .fd-q:not(:focus-within):not(.has) .in{height:var(--fc-h);padding:0 34px 0 37px;border:1px solid var(--fc-line);border-radius:var(--fc-r);background:var(--fc-bg);font-size:var(--fc-fs);color:var(--ink);cursor:text}
.ab .fd-top > .fd-q:not(:focus-within):not(.has):hover .in{background:var(--fc-bg)}
.ab .fd-top > .fd-q .in::placeholder,.ab .fd-top > .fd-q:not(:focus-within):not(.has) .in::placeholder{color:var(--muted)}
.ab .fd-top > .fd-q > svg{left:12px;width:17px;height:17px;color:var(--forest);opacity:.8}
.ab .fd-top .fd-x{right:6px}
.tw-q:focus-within,.ab .fd-top > .fd-q .in:focus{border-color:var(--forest);box-shadow:0 0 0 1px var(--forest)}

/* a dropdown or a button after it: Ideas' three, Peers' Filters, Events' Location and Feed */
.tw-catb,.ab .fd-top .fd-f,.ld-tb .sp-loc select,.ld-tb .sp-chk{height:var(--fc-h);min-height:var(--fc-h);box-sizing:border-box;border:1px solid var(--fc-line);border-radius:var(--fc-r);background:var(--fc-bg);color:var(--forest);font-family:var(--f-body);font-size:var(--fc-fs);font-weight:700;line-height:1.2;cursor:pointer}
.tw-catb,.ab .fd-top .fd-f{padding:0 12px;gap:8px}
.ab .fd-top .fd-f{border-color:var(--fc-line)}
.tw-catb:hover,.tw-cat[data-open] .tw-catb,.ab .fd-top .fd-f:hover,.ld-tb .sp-loc select:hover,.ld-tb .sp-chk:not(.off):hover{border-color:var(--forest);background:var(--hover-forest)}
.ab .fd-top .fd-f.on,.ld-tb .sp-chk:has(input:checked){border-color:var(--forest);background:var(--hover-forest);box-shadow:inset 0 0 0 1px var(--forest)}
.ab .fd-top .fd-f > svg{width:17px;height:17px}
/* Events' selects: the pin and the feed mark sit inside, as a dropdown's icon does */
.ld-tb .sp-loc{position:relative;flex:0 1 auto;gap:0;min-width:0}
.ld-tb .sp-loc > .sp-fi{position:absolute;left:12px;top:50%;z-index:1;transform:translateY(-50%);color:var(--forest);pointer-events:none}
.ld-tb .sp-loc select{width:100%;max-width:210px;padding:0 32px 0 36px}
.ld-tb .sp-loc .fg-vs-chev{right:11px;color:var(--forest);opacity:.8}
.ld-tb .fg-loc-w{box-shadow:none}
/* Events' checkboxes: the same control, its box and icon inside */
.ld-tb .sp-chk{display:inline-flex;align-items:center;gap:7px;padding:0 12px}
.ld-tb .sp-chk input{accent-color:var(--forest)}
.ld-tb .sp-chk .sp-fi{color:var(--forest)}
.ld-tb .sp-chk.off{cursor:default}
.ld-tb .sp-chk:has(input:focus-visible),.ld-tb .sp-loc select:focus-visible,.ab .fd-top .fd-f:focus-visible{outline:2px solid var(--forest);outline-offset:2px}

/* narrow panels: the box takes a row of its own, the controls share the next */
@container pgmain (max-width:680px){
  .tw-q,.ld-tb .ld-q,.ab .fd-top > .fd-q,.ab .fd-top > .fd-q:focus-within,.ab .fd-top > .fd-q.has{flex:1 1 100%;max-width:none}
  .ld-tb{justify-content:flex-start}
}

/* A page's own filter box handing on to the guide (js/handoff.js): one row under the box, on Peers, Supporters, Ideas and Events */
.ho{display:flex;align-items:center;gap:10px;width:100%;box-sizing:border-box;margin:10px 0;padding:9px 12px;border:1px solid var(--card-line);border-radius:6px;background:var(--hover-paper);font:inherit;color:var(--ink);text-align:left;cursor:pointer}
.ho:hover,.ho:focus-visible{background:var(--hover-stone);border-color:var(--ochre)}
.ho > svg.ho-sp{flex:none;color:var(--burnt)}
.ho-t{flex:0 1 auto;min-width:0;display:flex;align-items:baseline;gap:8px}
.ho-t b{flex:none;font-size:15.5px;font-weight:600}
.ho-q{min-width:0;font-size:15px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ho-n{flex:1 0 auto;margin-left:auto;font-size:13.5px;color:var(--muted);text-align:right}
@container pgmain (max-width:680px){.ho{flex-wrap:wrap}.ho-n{flex:1 1 100%;margin-left:30px;text-align:left}}
.ab .fd-top .fd-c.none{display:none} /* no empty room in the button: nothing follows it in the row to be moved by a count appearing */
