.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%}}

/* v1.0.4: keep the native Industry dropdown in a light color scheme so Astra/OS hover styling cannot turn option text black-on-black. */
.bbn-search.bbn-industry-only select {
  color-scheme: light !important;
  color: #172b3d !important;
  background-color: #fff !important;
}
.bbn-search.bbn-industry-only select option,
.bbn-search.bbn-industry-only select option:checked,
.bbn-search.bbn-industry-only select option:hover,
.bbn-search.bbn-industry-only select option:focus {
  color: #172b3d !important;
  background-color: #fff !important;
}

/* v1.3.1: custom Industry dropdown. White list, BLACK text, BLACK text on hover. */
.bbn-search.bbn-industry-only.bbn-enhanced select{display:none!important}
.bbn-search.bbn-industry-only .bbn-dd{position:relative;width:100%}
.bbn-search.bbn-industry-only .bbn-dd .bbn-dd-btn{display:block;width:100%;min-height:46px;box-sizing:border-box;text-align:left;padding:10px 40px 10px 12px;background:#ffffff!important;color:#000000!important;-webkit-text-fill-color:#000000!important;border:1px solid #94a3b8!important;border-radius:7px;font:inherit;font-weight:500;cursor:pointer;position:relative}
.bbn-search.bbn-industry-only .bbn-dd .bbn-dd-btn::after{content:"";position:absolute;right:14px;top:50%;width:8px;height:8px;border-right:2px solid #000;border-bottom:2px solid #000;transform:translateY(-70%) rotate(45deg)}
.bbn-search.bbn-industry-only .bbn-dd .bbn-dd-btn:hover,.bbn-search.bbn-industry-only .bbn-dd .bbn-dd-btn:focus{background:#ffffff!important;color:#000000!important;outline:2px solid rgba(23,74,120,.45);outline-offset:1px}
.bbn-search.bbn-industry-only .bbn-dd .bbn-dd-list{position:absolute;left:0;right:0;top:calc(100% + 4px);z-index:99999;margin:0;padding:4px 0;list-style:none;background:#ffffff!important;border:1px solid #94a3b8;border-radius:8px;box-shadow:0 12px 30px rgba(0,0,0,.25);max-height:340px;overflow-y:auto}
.bbn-search.bbn-industry-only .bbn-dd .bbn-dd-list[hidden]{display:none}
.bbn-search.bbn-industry-only .bbn-dd .bbn-dd-list li{margin:0;padding:10px 14px;background:#ffffff!important;color:#000000!important;-webkit-text-fill-color:#000000!important;cursor:pointer;line-height:1.3;font-size:16px}
.bbn-search.bbn-industry-only .bbn-dd .bbn-dd-list li:hover,.bbn-search.bbn-industry-only .bbn-dd .bbn-dd-list li:focus{background:#dbeafe!important;color:#000000!important;-webkit-text-fill-color:#000000!important;outline:none}
.bbn-search.bbn-industry-only .bbn-dd .bbn-dd-list li[aria-selected="true"]{font-weight:700;background:#eff6ff!important}


/* v1.3.2: expanded public search bar */
.bbn-search.bbn-enhanced-search{display:grid;grid-template-columns:minmax(220px,1fr) minmax(260px,1.2fr) auto auto;gap:10px;align-items:center}
.bbn-search.bbn-enhanced-search .bbn-company-field input{width:100%;box-sizing:border-box;min-height:46px;padding:10px 12px;border:1px solid #94a3b8;border-radius:7px;background:#fff!important;color:#172b3d!important}
.bbn-search.bbn-enhanced-search .bbn-company-field input::placeholder{color:#64748b!important}
.bbn-search.bbn-enhanced-search .bbn-industry-field{min-width:0}
.bbn-search.bbn-enhanced-search .bbn-dd{position:relative;width:100%}
.bbn-search.bbn-enhanced-search .bbn-dd .bbn-dd-list{max-height:420px}
@media(max-width:900px){.bbn-search.bbn-enhanced-search{grid-template-columns:1fr 1fr}.bbn-search.bbn-enhanced-search button,.bbn-search.bbn-enhanced-search .bbn-clear-search{grid-column:auto}}
@media(max-width:540px){.bbn-search.bbn-enhanced-search{grid-template-columns:1fr}.bbn-search.bbn-enhanced-search button,.bbn-search.bbn-enhanced-search .bbn-clear-search{width:100%}}

/* v1.3.6: company search field stays white/dark in every state; town chip */
.bbn-search.bbn-enhanced-search .bbn-company-field input,
.bbn-search.bbn-enhanced-search .bbn-company-field input:focus,
.bbn-search.bbn-enhanced-search .bbn-company-field input:hover,
.bbn-search.bbn-enhanced-search .bbn-company-field input:active{background:#fff!important;background-color:#fff!important;color:#172b3d!important;-webkit-text-fill-color:#172b3d!important;caret-color:#172b3d!important;box-shadow:none!important}
.bbn-search .bbn-company-field input:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px #fff inset!important;-webkit-text-fill-color:#172b3d!important}
.bbn-town-chip{margin:0 0 16px;padding:10px 14px;background:#eef4fa;border:1px solid #cbd8e6;border-radius:8px;color:#172b3d!important;font-size:15px}
.bbn-town-chip a{color:#174a78!important;font-weight:700;text-decoration:underline}

/* v1.3.6: clients carousel */
.bbn-carousel{margin:24px auto;max-width:1200px;color:inherit}
.bbn-carousel-title{text-align:center;margin:0 0 18px;color:inherit}
.bbn-carousel-frame{position:relative;padding:0 26px}
.bbn-car-track{display:flex;gap:16px;margin:0;padding:6px 2px 14px;list-style:none;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.bbn-car-track::-webkit-scrollbar{display:none}
.bbn-car-track:focus-visible{outline:2px solid #174a78;outline-offset:2px}
.bbn-car-slide{flex:0 0 calc((100% - 48px)/4);scroll-snap-align:start;margin:0;padding:0;list-style:none}
.bbn-car-card{display:flex;flex-direction:column;align-items:center;gap:10px;height:100%;box-sizing:border-box;padding:20px 14px;text-align:center;background:#fff;border:1px solid #dce4ec;border-radius:12px;box-shadow:0 3px 14px rgba(20,45,70,.10);text-decoration:none!important;transition:transform .2s ease,box-shadow .2s ease}
.bbn-car-card:hover,.bbn-car-card:focus-visible{transform:translateY(-3px);box-shadow:0 10px 24px rgba(20,45,70,.18)}
.bbn-car-logo{display:flex;align-items:center;justify-content:center;width:100%;height:110px}
.bbn-car-logo img{display:block;max-width:100%;max-height:110px;width:auto;height:auto;object-fit:contain}
.bbn-car-initial{display:flex;align-items:center;justify-content:center;width:84px;height:84px;border-radius:50%;background:#174a78;color:#fff!important;font:700 34px/1 Arial,Helvetica,sans-serif}
.bbn-car-name{color:#174a78!important;font-weight:700;font-size:18px;line-height:1.25}
.bbn-car-meta{color:#64748b!important;font-size:14px;line-height:1.3}
.bbn-car-btn{position:absolute;top:50%;z-index:3;width:44px;height:44px;margin-top:-30px;padding:0;border:1px solid #94a3b8!important;border-radius:50%;background:#fff!important;color:#172b3d!important;font:400 28px/1 Arial,sans-serif;cursor:pointer;box-shadow:0 4px 12px rgba(0,0,0,.2)}
.bbn-car-btn:hover,.bbn-car-btn:focus-visible{background:#eef4fa!important;color:#000!important;outline:2px solid #174a78;outline-offset:2px}
.bbn-car-prev{left:-6px}.bbn-car-next{right:-6px}
.bbn-carousel.bbn-car-static .bbn-car-btn{display:none}
.bbn-carousel.bbn-car-static .bbn-car-track{justify-content:center}
@media(max-width:1000px){.bbn-car-slide{flex-basis:calc((100% - 32px)/3)}}
@media(max-width:700px){.bbn-car-slide{flex-basis:calc((100% - 16px)/2)}}
@media(max-width:480px){.bbn-carousel-frame{padding:0 18px}.bbn-car-slide{flex-basis:84%}.bbn-car-btn{width:40px;height:40px}}
@media(prefers-reduced-motion:reduce){.bbn-car-track{scroll-behavior:auto}.bbn-car-card{transition:none}}

/* v1.3.7: banner carousel (Digital Whiz promo images) */
.bbn-banner{margin:24px auto;max-width:1200px;color:inherit}
.bbn-ban-frame{position:relative;border-radius:14px;overflow:hidden;box-shadow:0 10px 30px rgba(0,0,0,.35);background:#061a2f}
.bbn-ban-track{display:flex;margin:0;padding:0;list-style:none;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.bbn-ban-track::-webkit-scrollbar{display:none}
.bbn-ban-track:focus-visible{outline:3px solid #e7bd61;outline-offset:-3px}
.bbn-ban-slide{flex:0 0 100%;scroll-snap-align:start;margin:0;padding:0;list-style:none;line-height:0}
.bbn-ban-slide a{display:block}
.bbn-ban-img{display:block;width:100%;height:auto;aspect-ratio:1672/941;object-fit:cover}
.bbn-ban-btn{position:absolute;top:50%;z-index:3;width:46px;height:46px;margin-top:-23px;padding:0;border:1px solid rgba(255,255,255,.7)!important;border-radius:50%;background:rgba(6,26,47,.72)!important;color:#fff!important;font:400 30px/1 Arial,sans-serif;cursor:pointer;backdrop-filter:blur(2px)}
.bbn-ban-btn:hover,.bbn-ban-btn:focus-visible{background:rgba(6,26,47,.95)!important;outline:2px solid #e7bd61;outline-offset:2px}
.bbn-ban-prev{left:12px}.bbn-ban-next{right:12px}
.bbn-ban-dots{position:absolute;left:0;right:0;bottom:10px;z-index:3;display:flex;justify-content:center;gap:10px;line-height:0}
.bbn-ban-dot{width:12px;height:12px;padding:0;border:2px solid #fff!important;border-radius:50%;background:rgba(6,26,47,.55)!important;cursor:pointer;min-height:0}
.bbn-ban-dot[aria-current="true"]{background:#e7bd61!important;border-color:#e7bd61!important}
.bbn-ban-dot:focus-visible{outline:2px solid #e7bd61;outline-offset:2px}
@media(max-width:600px){.bbn-ban-btn{width:36px;height:36px;margin-top:-18px;font-size:24px}.bbn-ban-prev{left:6px}.bbn-ban-next{right:6px}.bbn-ban-dots{bottom:6px;gap:8px}.bbn-ban-frame{border-radius:10px}}
@media(prefers-reduced-motion:reduce){.bbn-ban-track{scroll-behavior:auto}}

/* v1.3.9: Premium badge on business pages */
.bbn-premium-badge{display:inline-block;margin:0 0 14px;padding:6px 12px;border-radius:999px;background:#fff7dc;border:1px solid #e7bd61;color:#6b4e00!important;font-weight:700;font-size:14px}

/* v1.3.10: keep the "Browse the directory" button readable on any theme */
body .bbn-single .bbn-back,body .bbn-single .bbn-back:visited,body .bbn-single .bbn-back:hover,body .bbn-single .bbn-back:focus{color:#ffffff!important;-webkit-text-fill-color:#ffffff!important;background:#174a78!important;text-decoration:none!important}
body .bbn-single .bbn-back:hover,body .bbn-single .bbn-back:focus{background:#1d5c96!important}
