/* ManualLib brand index pages (dir-N-brands.html) — generated by tools/generate-brand-index.php */
:root{--blue:#054ada;--cyan:#1db6e7;--orange:#ff7100;--ink:#1f2937;--text:#4b5563;--muted:#9aa0a6;--line:#e5e9ef;--soft:#f5f7fb}
html{scroll-behavior:smooth;scroll-padding-top:72px}
body.brands-page{background:var(--soft);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}
.brands-page a{color:var(--blue)}

/* header: reuses .top/.logo/.search-bar from /app.css */
.bi-header{background:#fff;border-bottom:1px solid var(--line)}
.bi-header .top{align-items:center;padding:0 16px}
.bi-header .logo img{width:200px;height:60px}
.bi-header .search-bar{width:420px;max-width:100%}

/* hero */
.bi-hero{background:var(--blue);color:#fff;text-align:center;padding:36px 16px 28px}
.bi-crumbs{font-size:14px;opacity:.8;margin-bottom:8px}
.bi-crumbs a{color:#fff!important;text-decoration:underline}
.bi-crumbs span{margin:0 6px}
.bi-hero h1{font-size:40px;line-height:1.2;color:#fff;margin:0 0 10px;font-weight:700}
.bi-hero p{max-width:680px;margin:0 auto 20px;color:rgba(255,255,255,.88)}
.bi-hero p strong{color:#fff}
.bi-industries{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.bi-industries a{color:#fff!important;border:1px solid rgba(255,255,255,.55);border-radius:2em;padding:2px 14px;font-size:14px;transition:background .15s}
.bi-industries a:hover{background:rgba(255,255,255,.15)}
.bi-industries a.active{background:#fff;color:var(--blue)!important;border-color:#fff;font-weight:600}

/* sticky A–Z bar */
.bi-letters{position:sticky;top:0;z-index:10;background:#fff;border-bottom:1px solid var(--line);box-shadow:0 2px 6px rgba(0,0,0,.04)}
.bi-letters .w{display:flex;flex-wrap:wrap;justify-content:center;gap:4px;padding:10px 16px}
.bi-letters a,.bi-letters span{display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:32px;padding:0 6px;border-radius:6px;font-size:14px;font-weight:600;line-height:1}
.bi-letters a{color:var(--blue);background:#eef3fd}
.bi-letters a:hover{background:var(--blue);color:#fff}
.bi-letters span{color:#c9ced6}

/* groups */
.bi-main{padding:24px 16px 40px}
.bi-group{background:#fff;border:1px solid var(--line);border-radius:10px;margin-bottom:16px;overflow:hidden}
.bi-group-head{display:flex;align-items:center;gap:12px;padding:12px 18px;border-bottom:1px solid var(--line);background:#fafbfd}
.bi-group-head h2{margin:0;font-size:22px;line-height:1;color:var(--ink);font-weight:700;min-width:28px}
.bi-group-head span{font-size:13px;color:var(--muted)}
.bi-group-head .bi-top{margin-left:auto;font-size:13px;color:var(--muted)!important}
.bi-group-head .bi-top:hover{color:var(--blue)!important}
.bi-list{column-width:200px;column-gap:24px;padding:12px 18px 14px;margin:0}
.bi-list li{break-inside:avoid;line-height:1.4}
.bi-list a{display:block;padding:4px 0;color:var(--text)!important;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bi-list a:hover{color:var(--blue)!important;text-decoration:underline}

/* footer */
.bi-footer{border-top:1px solid var(--line);background:#fff;font-size:14px;color:var(--muted)}
.bi-footer .w{display:flex;flex-wrap:wrap;gap:18px;justify-content:center;padding:20px 16px}

@media(max-width:900px){
.bi-header .top{flex-direction:column;padding-bottom:12px}
.bi-header .search-bar{width:100%}
.bi-hero{padding:24px 16px 20px}
.bi-hero h1{font-size:28px}
.bi-letters .w{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;-webkit-overflow-scrolling:touch}
.bi-letters a,.bi-letters span{flex:0 0 auto}
.bi-main{padding:16px 12px 32px}
.bi-list{column-width:140px;column-gap:16px;padding:10px 14px}
.bi-list a{font-size:14px;padding:6px 0}
}
