/* =====================================================================
   BFREPA News search — add-on v1 — 1 December 2026. NEW FILE.
   Matches www.bfrepa.co.uk/news: IBM Plex Sans (from the site), cream #F5F1E4,
   green #33482F, gold #C58A2E, gold-on-cream category pills.
   Everything is scoped under .bns so nothing else on the site changes.
   The search bar (.bns-search) also works on /news and category pages:
   wrap the partial in <div class="bns"> there.
   ===================================================================== */
.bns{--cream:#F5F1E4;--ink:#26281F;--muted:#5B5D4E;--green:#33482F;--green-dk:#1A2418;--gold:#C58A2E;--gold-dk:#a97424;--line:#e3ddca;--sky:#99CCEB}
.bns *{box-sizing:border-box}
.bns-wrap{max-width:1240px;margin:0 auto;padding:0 36px}
.bns-hero{padding:6px 0 26px}
.bns-crumb{font-size:13px;color:var(--muted);margin:26px 0 14px}.bns-crumb a{color:var(--muted);text-decoration:none}
.bns h1{font-size:52px;line-height:1.15;letter-spacing:-1px;margin:0 0 12px;font-weight:700;color:var(--ink)}
.bns-lead{color:var(--muted);max-width:680px;margin:0 0 22px}
.bns-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.bns-search{position:relative;display:flex;max-width:640px;background:#fff;border-radius:8px;box-shadow:0 6px 20px rgba(38,40,31,.12);padding:8px;margin:0 0 8px; margin-top: 1.5rem;}
.bns-search input{flex:1;font:inherit;font-size:16px;border:0;padding:10px 14px;background:transparent;color:var(--ink);min-width:0}
.bns-search input:focus{outline:0}
.bns-search:focus-within{outline:2px solid var(--sky)}
.bns-btn{display:inline-flex;align-items:center;justify-content:center;font:600 15px "IBM Plex Sans","Segoe UI",sans-serif;padding:11px 20px;border-radius:6px;border:0;cursor:pointer;background:var(--green);color:#fff;text-decoration:none;white-space:nowrap}
.bns-btn:hover{background:var(--green-dk)}
.bns-btn-gold{background:var(--gold)}.bns-btn-gold:hover{background:var(--gold-dk)}
.bns-btn-sm{padding:7px 13px;font-size:14px}
.bns-suggest{position:absolute;left:8px;right:8px;top:100%;margin:6px 0 0;padding:6px 0;list-style:none;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:0 10px 24px rgba(38,40,31,.14);z-index:20}
.bns-suggest li a{display:flex;justify-content:space-between;gap:14px;padding:8px 14px;color:var(--ink);text-decoration:none;font-size:15px}
.bns-suggest li a span{color:var(--muted);font-size:13px;white-space:nowrap}
.bns-suggest li.on a,.bns-suggest li a:hover{background:var(--cream)}
.bns-suggest li.all a{border-top:1px solid var(--line);font-weight:600;color:var(--green)}
.bns-filters{display:flex;gap:14px;flex-wrap:wrap;margin-top:16px}
.bns-filters label{display:flex;flex-direction:column;font-size:11.5px;font-weight:600;letter-spacing:.9px;text-transform:uppercase;color:var(--muted);gap:6px}
.bns-filters select{font:inherit;font-size:15px;text-transform:none;letter-spacing:0;font-weight:400;color:var(--ink);background:#fff;border:1px solid #cfc9b6;border-radius:6px;padding:9px 12px;min-width:200px}
.bns-layout{display:grid;grid-template-columns:240px 1fr;gap:30px;align-items:start;padding-bottom:60px}
.bns-panel{background:#fff;border:1px solid var(--line);border-radius:8px;padding:18px 20px}
.bns-label{display:block;font-size:11.5px;font-weight:600;letter-spacing:.9px;text-transform:uppercase;color:var(--muted);margin-bottom:8px}
.bns-cat{display:flex;justify-content:space-between;gap:8px;padding:9px 10px;border-bottom:1px solid #efeadb;font-size:14.5px;color:var(--ink);text-decoration:none;border-radius:4px}
.bns-cat b{font-weight:600;color:var(--muted);font-size:13px}
.bns-cat:hover{background:var(--cream)}
.bns-cat.on{background:#fbf1e0;border-left:3px solid var(--gold);font-weight:600}
.bns-back{border-bottom:0;margin-top:8px;color:var(--green);font-weight:500}
.bns-count{margin:0 0 14px;color:var(--muted)}.bns-count b{color:var(--ink)}
.bns-members{display:flex;align-items:center;gap:14px;flex-wrap:wrap;background:#fbf1e0;border:1px solid #eed7b0;color:#6b4a12;border-radius:8px;padding:12px 16px;margin:0 0 16px;font-size:15px}
.bns-members a{margin-left:auto}
.bns-result{display:grid;grid-template-columns:220px 1fr;gap:22px;background:#fff;border:1px solid var(--line);border-radius:8px;overflow:hidden;margin-bottom:14px;transition:box-shadow .15s,border-color .15s}
.bns-result:hover{border-color:#c9c0a3;box-shadow:0 4px 14px rgba(38,40,31,.08)}
.bns-img{display:block;background:#e9e4d3;min-height:150px}
.bns-img img{width:100%;height:100%;object-fit:cover;display:block}
.bns-result > div{padding:18px 20px 16px 0}
.bns-meta{display:flex;align-items:center;gap:12px;font-size:13px;color:var(--muted);margin-bottom:8px}
.bns-tag{display:inline-block;font-size:11px;font-weight:600;letter-spacing:.6px;text-transform:uppercase;color:#8a5f1b;background:#fbf1e0;border:1px solid #eed7b0;border-radius:4px;padding:2px 8px;text-decoration:none}
.bns-tag-members{color:#fff;background:var(--green);border-color:var(--green)}
.bns-result h2{font-size:20px;line-height:1.3;margin:0 0 8px;font-weight:600}
.bns-result h2 a{color:var(--ink);text-decoration:none}.bns-result h2 a:hover{text-decoration:underline}
.bns-result p{margin:0 0 8px;color:var(--muted);font-size:15px;line-height:1.6}
.bns mark{background:#fde9b8;color:inherit;padding:0 1px;border-radius:2px}
.bns-more{font-size:14px;font-weight:600;color:var(--green);text-decoration:none}
.bns-empty h3{margin:0 0 8px;font-size:19px}.bns-empty ul{margin:0;padding-left:18px;color:var(--muted)}
.bns-pager{display:flex;justify-content:center;align-items:center;gap:20px;margin-top:20px;font-size:15px}
.bns-pager a{color:var(--green);font-weight:600;text-decoration:none}
@media(max-width:900px){.bns-layout{grid-template-columns:1fr}.bns-side{order:2}.bns h1{font-size:38px}}
@media(max-width:600px){.bns-wrap{padding:0 18px}.bns-result{grid-template-columns:1fr}.bns-img{min-height:180px}.bns-result>div{padding:0 16px 16px}.bns-filters select{min-width:0;width:100%}.bns-filters label{flex:1 1 100%}}
.bns-empty a,.bns-members a:not(.bns-btn){color:var(--green)}
