/* Scoped BMA header repair. Does not affect legacy headers or footer. */
nav[data-bma-header] {position:sticky; top:0; z-index:1000; width:100%; padding:0; background:#0d1117; border-bottom:1px solid #30363d; box-shadow:0 4px 16px #0003; color:#e6edf3; font:600 14px/1.4 system-ui,sans-serif;}
nav[data-bma-header] *,nav[data-bma-header] *::before,nav[data-bma-header] *::after {box-sizing:border-box;}
nav[data-bma-header] .nav__inner {display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; max-width:1280px; margin:0 auto; padding:10px 20px; min-height:68px; height:auto;}
nav[data-bma-header] .nav__logo {display:inline-flex; flex:none; align-items:center; gap:9px; color:#e6edf3; text-decoration:none; font-size:18px; font-weight:800; letter-spacing:-.04em; white-space:nowrap;}
nav[data-bma-header] .nav__logo-icon {display:grid; place-items:center; width:36px; height:36px; border:1px solid #d4a843; border-radius:7px; color:#d4a843; font-size:12px; letter-spacing:.04em;}
nav[data-bma-header] .nav__logo>span:last-child>span {color:#d4a843;}
nav[data-bma-header] .nav__links {display:flex; align-items:center; justify-content:center; gap:2px; flex:1; list-style:none; margin:0; padding:0; min-width:0;}
nav[data-bma-header] .nav__links li {list-style:none; margin:0; padding:0;}
nav[data-bma-header] .nav__links a,nav[data-bma-header] .mobile-menu a {display:block; padding:10px 8px; border-radius:6px; color:#b8c3cf; text-decoration:none; font:600 13px/1.4 system-ui,sans-serif; white-space:nowrap;}
nav[data-bma-header] .nav__links a:hover,nav[data-bma-header] .nav__links a.active,nav[data-bma-header] .mobile-menu a:hover {background:#21262d; color:#f1f5f9;}
nav[data-bma-header] .desktop-only {display:inline-flex; flex:none; align-items:center; justify-content:center; padding:10px 13px; margin:0; border:1px solid #d4a843; border-radius:7px; color:#e6edf3; background:transparent; text-decoration:none; font:600 13px/1.4 system-ui,sans-serif; white-space:nowrap;}
nav[data-bma-header] .nav__toggle,nav[data-bma-header] .mobile-menu {display:none;}
nav[data-bma-header] a:focus-visible,nav[data-bma-header] button:focus-visible {outline:2px solid #d4a843; outline-offset:3px;}
@media(max-width:1100px){
 nav[data-bma-header] .nav__inner {flex-wrap:wrap; padding:10px 16px; gap:10px; min-height:64px;}
 nav[data-bma-header] .desktop-only {display:none;}
 nav[data-bma-header] .nav__links {order:3; flex:1 0 100%; flex-direction:column; align-items:stretch; padding:4px 0;}
 nav[data-bma-header] .nav__links a,nav[data-bma-header] .mobile-menu a {padding:12px; white-space:normal;}
 nav[data-bma-header][data-has-mobile] .nav__links {display:none;}
 nav[data-bma-header][data-has-mobile] .mobile-menu {display:grid; max-width:1280px; margin:0 auto; padding:0 16px 12px; gap:2px;}
 nav[data-bma-header][data-ready] .nav__toggle {display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; width:44px; height:44px; margin-left:auto; border:1px solid #30363d; border-radius:7px; background:#161b22; cursor:pointer; padding:8px;}
 nav[data-bma-header] .nav__toggle span {display:block; width:21px; height:2px; margin:0; background:#e6edf3; border-radius:2px;}
 nav[data-bma-header][data-ready]:not([data-open]) .nav__links,nav[data-bma-header][data-ready]:not([data-open]) .mobile-menu {display:none;}
 nav[data-bma-header][data-ready][data-open] .mobile-menu,nav[data-bma-header][data-ready][data-open]:not([data-has-mobile]) .nav__links {max-height:calc(100vh - 78px); max-height:calc(100dvh - 78px); overflow:auto; overscroll-behavior:contain;}
 nav[data-bma-header][data-open] .nav__toggle span:nth-child(1){transform:translateY(7px) rotate(45deg);}
 nav[data-bma-header][data-open] .nav__toggle span:nth-child(2){opacity:0;}
 nav[data-bma-header][data-open] .nav__toggle span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}
 /* Without JavaScript keep navigation available and avoid a tall sticky header. */
 nav[data-bma-header]:not([data-ready]) {position:relative;}
}
