.bbn-directory{--bbn-blue:#174a78;--bbn-ink:#172b3d;color:#172b3d;margin:24px auto;max-width:1200px}
.bbn-search{display:grid;grid-template-columns:2fr 1.3fr 1.3fr auto auto;gap:10px;background:#f1f5f9;padding:18px;border-radius:12px;margin-bottom:24px}
.bbn-search input,.bbn-search select{width:100%;min-height:44px;padding:10px 12px;border:1px solid #cbd5e1;border-radius:7px;background:#fff}
.bbn-search button,.bbn-more,.bbn-back{display:inline-block;background:#174a78;color:#fff!important;border:0;border-radius:7px;padding:11px 16px;text-decoration:none;font-weight:600;cursor:pointer}
.bbn-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.bbn-card{border:1px solid #dce4ec;border-radius:12px;overflow:hidden;background:#fff;box-shadow:0 3px 14px rgba(20,45,70,.06)}
.bbn-card-image img{display:block;width:100%;height:190px;object-fit:cover}
.bbn-card-body{padding:18px}
.bbn-card h2{font-size:21px;line-height:1.25;margin:0 0 10px}
.bbn-card h2 a{color:#174a78;text-decoration:none}
.bbn-card p{margin:8px 0}
.bbn-muted{color:#64748b;font-size:14px}
.bbn-more{margin-top:8px}
.bbn-empty{padding:24px;background:#f8fafc;border-radius:10px}
.bbn-pagination ul{display:flex;gap:8px;list-style:none;padding:0;margin:24px 0}
.bbn-pagination a,.bbn-pagination span{display:block;padding:8px 12px;border:1px solid #d5dee8;border-radius:6px;text-decoration:none}
.bbn-single-wrap{padding:36px 18px;background:#f7f9fc}
.bbn-single{max-width:900px;margin:0 auto;background:#fff;padding:clamp(22px,5vw,48px);border-radius:14px;box-shadow:0 4px 24px rgba(20,45,70,.07)}
.bbn-single h1{color:#174a78;font-size:clamp(30px,5vw,44px);margin:0 0 22px}
.bbn-eyebrow{color:#64748b;text-transform:uppercase;letter-spacing:.08em;font-size:12px;font-weight:700}
.bbn-featured img{width:100%;height:auto;border-radius:10px;margin-bottom:20px}
.bbn-contact{margin-top:28px;padding:22px;background:#f1f5f9;border-radius:10px}
.bbn-contact h2{color:#174a78;margin-top:0}
.bbn-powered{font-size:13px;color:#64748b;margin-top:24px}
@media(max-width:800px){.bbn-search{grid-template-columns:1fr 1fr}.bbn-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){.bbn-search,.bbn-grid{grid-template-columns:1fr}.bbn-card-image img{height:210px}}

.bbn-search .bbn-clear-search{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 14px;border:1px solid #174a78;border-radius:7px;color:#174a78;text-decoration:none;font-weight:600;background:#fff}.bbn-search .bbn-clear-search:hover{background:#eaf2f8}
@media(max-width:800px){.bbn-search .bbn-clear-search{grid-column:1/-1}}

/* v1.2.1: make dropdown + fields readable on dark themes */
.bbn-search input,.bbn-search select,.bbn-search select option{color:#172b3d!important;background-color:#fff!important}
.bbn-search input::placeholder{color:#64748b!important;opacity:1}

/* v1.2.3: keep search fields readable while focused and make pagination stay on the directory */
.bbn-search input:focus,.bbn-search select:focus{color:#172b3d!important;background:#fff!important;border-color:#174a78!important;outline:2px solid rgba(23,74,120,.18);outline-offset:1px;box-shadow:none}
.bbn-search{position:relative;z-index:20}
.bbn-search label{position:relative;z-index:30;display:block}
.bbn-search input,.bbn-search select{position:relative;z-index:31;pointer-events:auto!important;opacity:1!important;-webkit-user-select:text!important;user-select:text!important;-webkit-appearance:none!important;appearance:none!important;color:#172b3d!important;background:#fff!important;background-image:none!important;caret-color:#172b3d!important}
.bbn-search input:focus,.bbn-search input:active,.bbn-search input:hover,.bbn-search select:focus,.bbn-search select:active,.bbn-search select:hover{color:#172b3d!important;background:#fff!important;background-color:#fff!important;caret-color:#172b3d!important;outline:2px solid rgba(23,74,120,.35)!important;box-shadow:none!important}
.bbn-search input[type=search]{-webkit-appearance:none!important;appearance:none!important}
.bbn-page-list{display:flex;flex-wrap:wrap;gap:8px;margin:24px 0}
.bbn-page-list .page-numbers{display:block;padding:8px 12px;border:1px solid #d5dee8;border-radius:6px;text-decoration:none;background:#fff;color:#174a78}
.bbn-page-list .page-numbers.current{background:#174a78;color:#fff;border-color:#174a78;font-weight:700}

/* v1.2.9: simplified industry-only search */
.bbn-search.bbn-industry-only{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.bbn-search.bbn-industry-only .bbn-industry-field{flex:1 1 360px}
.bbn-search.bbn-industry-only select{min-height:46px}
.bbn-search.bbn-industry-only button{min-height:46px}
.bbn-search.bbn-industry-only .bbn-clear-search{min-height:46px;box-sizing:border-box}
@media(max-width:540px){.bbn-search.bbn-industry-only{display:grid;grid-template-columns:1fr}.bbn-search.bbn-industry-only .bbn-industry-field{width:100%}}
