*{box-sizing:border-box}
html,body{margin:0;background:#f4f7fa;color:#1d2733;font:16px/1.5 system-ui,-apple-system,Segoe UI,Roboto,sans-serif}
a{color:#1f6fb2}
.top{display:flex;align-items:center;gap:16px;padding:0 18px;height:58px;background:#0f2a3d;color:#fff}
.brand{font-weight:800;font-size:20px;color:#fff;text-decoration:none;white-space:nowrap}
.tld{opacity:.6;font-weight:600}
.beta{font-size:11px;font-weight:600;background:#f0a020;color:#222;border-radius:10px;padding:2px 8px;margin-left:6px;vertical-align:middle}
.sitelinks{display:flex;gap:2px;margin-left:auto}
.sitelinks a{color:#bcd;text-decoration:none;font-weight:700;font-size:13px;padding:6px 9px;border-radius:6px;white-space:nowrap}
.sitelinks a:hover{color:#fff}
.sitelinks a.on{background:#1f4b6b;color:#fff}
main{max-width:920px;margin:0 auto;padding:24px 16px 64px}
.hero h1{font-size:32px;letter-spacing:-.02em;margin:0 0 8px}
.hero p{margin:0 0 16px;color:#345;max-width:46em}
.searchbar{display:flex;gap:8px;margin:16px 0 10px}
.searchbar input{flex:1;padding:10px 12px;border:1px solid #cfd8e2;border-radius:8px;font-size:16px}
.searchbar button,.morewrap button{background:#1f6fb2;color:#fff;border:0;border-radius:8px;padding:10px 16px;font-weight:700;cursor:pointer}
.meta,.count{color:#678;font-size:13px;margin:0 0 12px}
.filters{background:#fff;border:1px solid #e3e8ee;border-radius:12px;padding:12px;margin:8px 0 16px}
.filters .row{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.filters label{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:700;color:#456}
.filters select{padding:7px 8px;border:1px solid #cfd8e2;border-radius:6px;font-size:13px;font-weight:600;background:#fff}
.chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.chips button{border:1px solid #d5dee8;background:#f7f9fb;border-radius:999px;padding:4px 10px;font-size:12px;font-weight:700;cursor:pointer;color:#234}
.chips button.on{background:#0f2a3d;color:#fff;border-color:#0f2a3d}
.results{display:flex;flex-direction:column;gap:10px}
.card{background:#fff;border:1px solid #e3e8ee;border-radius:12px;padding:14px 16px}
.card h2{font-size:18px;margin:0 0 6px;line-height:1.3}
.card h2 a{color:#0f2a3d;text-decoration:none}
.card h2 a:hover{color:#1f6fb2;text-decoration:underline}
.byline{font-size:13px;color:#678;margin:0 0 6px}
.snippet{margin:0 0 8px;color:#2a3542;font-size:14.5px}
.tags{display:flex;flex-wrap:wrap;gap:5px}
.tag{font-size:11px;font-weight:700;background:#eef3f8;color:#345;border-radius:999px;padding:2px 8px}
.tag.topic{background:#e7f1fb;color:#1a4f86}
.tag.county{background:#e7f7ee;color:#0a5d2c}
.orig{font-size:11px;color:#8a93a0}
.morewrap{text-align:center;margin:18px 0 32px}
.hidden{display:none!important}
.empty{padding:32px 16px;text-align:center;color:#567}
.about{margin-top:24px;padding-top:16px;border-top:1px solid #e3e8ee}
.about h2{font-size:20px;margin:0 0 8px}
.about p{color:#456;font-size:14.5px}
.sourcelist{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
.source{background:#fff;border:1px solid #e3e8ee;border-radius:10px;padding:10px 12px;font-size:13px}
.source b{display:block}
.source.fail{border-color:#f0cd75;background:#fffaf0}
.source .st{color:#678;font-size:12px}
footer{max-width:920px;margin:0 auto;padding:0 16px 40px;color:#678;font-size:13px}
@media (max-width:800px){
  .top{flex-wrap:wrap;height:auto;padding:8px 10px;gap:6px}
  .sitelinks{margin-left:0;width:100%}
  .sitelinks a{flex:1;text-align:center}
  .hero h1{font-size:26px}
  .filters .row,.sourcelist{grid-template-columns:1fr 1fr}
  .searchbar{flex-direction:column}
}
@media (max-width:520px){.filters .row,.sourcelist{grid-template-columns:1fr}}
