/* New navigation bar (shared by every page). Self-contained: no theme variables. */
body header{position:fixed!important;top:0!important;left:0!important;width:100%!important;transform:none!important;background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;overflow:visible!important;padding:calc(12px + env(safe-area-inset-top,0px)) 16px 0!important;pointer-events:none;z-index:1000}
body header .nav{pointer-events:auto;display:flex;align-items:center;justify-content:space-between;gap:14px;max-width:1080px!important;margin:0 auto!important;padding:9px 10px 9px 20px!important;border-radius:20px;background:rgba(10,10,12,.72);border:1px solid rgba(255,255,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 10px 40px rgba(0,0,0,.35);-webkit-backdrop-filter:blur(18px) saturate(160%)!important;backdrop-filter:blur(18px) saturate(160%)!important}
body header .brand{display:flex;align-items:center;gap:9px;flex:none;color:#fff;font:700 16px/1 -apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI Variable Display","Segoe UI",Inter,system-ui,sans-serif;letter-spacing:-.01em}
body header .brand svg{width:22px;height:22px;color:#fff}
body header nav.links{display:flex;align-items:center;gap:4px}
body header nav.links a{padding:7px 12px!important;border:0!important;border-radius:999px!important;font-size:14px;color:#9b9ba3;white-space:nowrap;background:none;transition:color .2s,background .2s}
body header nav.links a:hover{color:#f5f5f6!important;background:rgba(255,255,255,.07)}
body header nav.links a.active,body header nav.links a[aria-current="page"]{color:#f5f5f6!important;background:rgba(255,255,255,.1)!important;border-radius:999px!important}
body header .nav-right{display:flex;align-items:center;gap:8px}
body header .nav-right .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:38px;padding:0 16px!important;border-radius:999px!important;background:#fff!important;color:#0a0a0c!important;border:1px solid #fff!important;font:600 14px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",Inter,system-ui,sans-serif;box-shadow:none!important;transition:background .2s}
body header .nav-right .btn:hover{background:#e6e6ea!important}
body header .nav-right .btn svg{width:16px;height:16px;flex:none}
body header .menu-btn{display:none;width:38px;height:38px;border-radius:12px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);color:#fff;align-items:center;justify-content:center;cursor:pointer}
body header .mobile-panel{display:none;pointer-events:auto;max-width:1080px;margin:8px auto 0;padding:8px;border-radius:20px;background:rgba(10,10,12,.94);border:1px solid rgba(255,255,255,.1);-webkit-backdrop-filter:blur(18px)!important;backdrop-filter:blur(18px)!important}
body header .mobile-panel.open{display:block}
body header .mobile-panel .wrap{display:flex;flex-direction:column;padding:0}
body header .mobile-panel a{padding:12px 14px!important;border:0!important;border-radius:12px;color:#9b9ba3!important;background:none}
body header .mobile-panel a:hover,body header .mobile-panel a.active{color:#f5f5f6!important;background:rgba(255,255,255,.09)!important}
@media(max-width:900px){body header nav.links{display:none}body header .menu-btn{display:inline-flex}}
@media(max-width:420px){body header .nav-right .btn .full{display:none}body header .nav-right .btn{padding:0 12px!important}}

/* Rounded boxes, same shape as the home page (inner pages only) */
body .btn,body .btn-solid,body .btn-dark,body .comm-btn,body .chip{border-radius:999px!important}
body .card,body .step,body .stat-mini,body .fcard,body .comm-note,body .warn,body .glass-panel,body .compare-wrap,body .install-line,body .shared-table,body .panel,body .tile,body .spec-card,body .cat-card,body .hd-card,body .bench-card,body .counter,body .ph-card,body .ph-item,body .ph-mem,body .ph-shot,body .ph-stat,body .ph-release,body .ph-price-card,body .ph-tbl-wrap,body .ph-req{border-radius:18px!important}

/* Smooth page changes (Chrome/Edge/Safari): the nav stays put, the page fades. */
@view-transition{navigation:auto}
::view-transition-old(root),::view-transition-new(root){animation-duration:.2s}
@media(prefers-reduced-motion:reduce){::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}}
body header{view-transition-name:site-nav}
.btn,.chip{transition:transform .18s,background .2s,border-color .2s}
.btn:active{transform:scale(.97)}
