/* App sections (public/sections.js): search everything, the section tabs and the shared filter bar. Night theme. */
.sx { position: sticky; top: 0; z-index: 15; display: grid; gap: 8px; padding: 10px 14px 8px; margin: 0 0 10px;
  background: rgba(12,21,32,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
body:not(.member) .sx { display: none; }
.sx-s { display: flex; gap: 8px; }
.sx-s input { flex: 1; min-width: 0; height: 40px; padding: 0 12px 0 36px; border-radius: 10px; border: 1px solid var(--line); color: var(--ink); font: inherit; font-size: 15px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23a3b4c6' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 4 4'/%3E%3C/svg%3E") 12px 50% no-repeat; }
.sx-s input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.sx-s .btn { height: 40px; }
.sx-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin: 0 -14px; padding: 0 14px; scroll-snap-type: x proximity; }
.sx-tabs::-webkit-scrollbar { display: none; }
.sx-tabs a { flex: none; scroll-snap-align: start; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); text-decoration: none; font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.sx-tabs a:hover { color: var(--ink); }
.sx-tabs a[aria-current="page"] { color: #06212a; background: var(--accent); border-color: var(--accent); }
.sx-f { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 8px; align-items: end; }
.sx-f label { display: grid; gap: 3px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); min-width: 0; }
.sx-f input, .sx-f select { height: 34px; min-width: 0; width: 100%; box-sizing: border-box; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; text-transform: none; letter-spacing: 0; }
.sx-f .sx-q { grid-column: 1 / -1; }
.sx-f .sx-rng { display: flex; gap: 4px; } .sx-f .sx-rng input { width: 50%; }
.sx-f .sx-x { display: flex; gap: 8px; align-items: center; grid-column: 1 / -1; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.sx-f .sx-x button { font: inherit; font-size: 13px; background: none; border: 0; color: var(--accent); cursor: pointer; padding: 4px 0; }
.sx-f details { grid-column: 1 / -1; }
body:not([data-v="products"]):not([data-v="gaps"]):not([data-v="niches"]) .sx-f { display: none; }
body[data-v="niches"] .sx-f .sx-prod { display: none; }   /* niche topics have no price, margin or pick check */
/* one bar: the duplicate per-section filters step aside while the shared bar is on */
body.sx-on #live-q, body.sx-on #live .lsort:has(#live-cat), body.sx-on #live .lsort:has(#live-verdict), body.sx-on #live .lsort:has(#live-price), body.sx-on #nf-q { display: none !important; }
@media (min-width: 760px) {
  .sx { padding: 12px 20px 10px; }
  .sx-tabs { margin: 0; padding: 0; }
  .sx-f { grid-template-columns: 2fr 1.4fr 1.1fr 1.1fr 1.2fr 1.2fr .9fr; }
  .sx-f .sx-q { grid-column: auto; }
}
/* search results and past picks (#view-sx) */
.sxv { padding: 4px 14px 90px; max-width: 980px; }
.sxv h1 { font-family: var(--f-display); font-size: 26px; margin: 6px 0 2px; }
.sxv .sx-lead { color: var(--muted); margin: 0 0 12px; }
.sxv .sx-note { font-size: 12.5px; color: var(--muted); padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; margin: 0 0 14px; }
.sx-grp { margin: 18px 0 0; }
.sx-grp h2 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.sx-grp h2 small { letter-spacing: 0; text-transform: none; font-size: 12.5px; }
.sx-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
@media (min-width: 760px) { .sx-list { grid-template-columns: 1fr 1fr; } }
.sx-it { display: grid; gap: 5px; width: 100%; text-align: left; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; text-decoration: none; box-sizing: border-box; }
.sx-it:hover { border-color: rgba(127,211,230,.45); }
.sx-it b { font-size: 15px; font-weight: 600; }
.sx-it .sx-m { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12.5px; color: var(--muted); }
.sx-chip { padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(255,255,255,.06); color: var(--muted); }
.sx-chip.good { color: #5FD69A; background: rgba(95,214,154,.12); } .sx-chip.warn { color: #F2BD63; background: rgba(242,189,99,.12); } .sx-chip.bad { color: #FF8A80; background: rgba(255,138,128,.12); }
.sx-it.locked { opacity: .75; } .sx-it.locked b::after { content: " · in the full list"; font-weight: 400; color: var(--muted); font-size: 12.5px; }
.sx-empty { color: var(--muted); font-size: 14px; margin: 0; }
.sx-seg { display: inline-flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.sx-seg button { font: inherit; font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.sx-seg button[aria-pressed="true"] { color: var(--accent); border-color: rgba(127,211,230,.45); background: rgba(127,211,230,.1); }
.sx-cta { margin-top: 14px; padding: 12px; border-radius: 10px; background: rgba(127,211,230,.08); border: 1px solid rgba(127,211,230,.25); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.sx:empty { display: none; }   /* until public/sections.js fills it (see PHASE2-STATUS.md) */
/* 390 fit: hidden label, no overflow */
.sx { box-sizing: border-box; max-width: 100%; min-width: 0; }
.sx-s label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sx-f { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.sx-f .sx-x button { white-space: nowrap; }
@media (min-width: 760px) { .sx-f { grid-template-columns: 2fr 1.4fr 1.1fr 1.1fr 1.2fr 1.2fr; } }
