/* Shared full-width glass navigation. Last-loaded rules also cover legacy layouts. */
html body .site-header.shared-header {
    --nav-ink:#202936;
    --nav-active:#2949fa;
    position:sticky;
    top:0;
    z-index:100;
    display:block;
    flex-shrink:0;
    width:100%;
    height:auto;
    margin:0;
    padding:0;
    border:0;
    border-bottom:1px solid rgba(41,73,250,.12);
    border-radius:0;
    color:var(--nav-ink);
    background:rgba(255,255,255,.8);
    -webkit-backdrop-filter:blur(20px) saturate(135%);
    backdrop-filter:blur(20px) saturate(135%);
    box-shadow:0 6px 24px rgba(18,35,99,.05);
    transition:background-color 200ms ease,color 200ms ease,border-color 200ms ease;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
}
html body.home-page .site-header.shared-header { margin-bottom:-73px; }
html body .shared-header[data-nav-theme=dark] {
    --nav-ink:#edf2ff;
    --nav-active:#fff;
    background:rgba(8,20,61,.56);
    border-bottom-color:rgba(185,198,255,.22);
    box-shadow:inset 0 -1px 0 rgba(255,255,255,.04);
}
html body .shared-header .header-inner.shared-header-inner {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    width:100%;
    max-width:none;
    min-height:72px;
    height:auto;
    margin:0;
    padding:10px clamp(24px,4vw,72px);
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
    -webkit-backdrop-filter:none;
    backdrop-filter:none;
    color:inherit;
    box-sizing:border-box;
}
.shared-header .shared-brand { position:relative; display:block; flex-shrink:0; width:300px; text-decoration:none; }
.shared-header .shared-brand picture { display:block; }
.shared-header .shared-brand img { display:block; width:100%; height:auto; }
.shared-header .shared-logo-dark { position:absolute; inset:0; opacity:0; }
.shared-header[data-nav-theme=dark] .shared-logo-light { opacity:0; }
.shared-header[data-nav-theme=dark] .shared-logo-dark { opacity:1; }
.shared-header .shared-navigation { display:flex; align-items:center; gap:28px; margin:0; padding:0; }
.shared-header .shared-navigation>a { position:relative; display:flex; align-items:center; min-height:48px; color:var(--nav-ink); text-decoration:none; font-size:14px; font-weight:500; white-space:nowrap; transition:color 160ms ease; }
.shared-header .shared-navigation>a[aria-current=page] { color:var(--nav-active); }
.shared-header .shared-navigation>a[aria-current=page]::after { content:""; position:absolute; bottom:-11px; left:0; right:0; height:2px; background:var(--nav-active); }
.shared-header .shared-navigation>a:hover { color:var(--nav-active); }
.shared-header a:focus-visible,.shared-header button:focus-visible { outline:2px solid var(--nav-active); outline-offset:4px; }
.shared-header .shared-menu-toggle { display:none; }
.shared-header [hidden] { display:none!important; }
@media(max-width:1000px) {
    .shared-header .shared-navigation { gap:18px; }
    .shared-header .shared-brand { width:260px; }
}
@media(max-width:900px) {
    html body .shared-header .header-inner.shared-header-inner { min-height:68px; padding:10px 20px; flex-wrap:wrap; gap:12px; }
    html body.home-page .site-header.shared-header { margin-bottom:-69px; }
    .shared-header .shared-brand { width:225px; }
    .shared-header .shared-brand img { height:45px; object-fit:contain; }
    .shared-header .shared-menu-toggle:not([hidden]) { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; width:40px; height:40px; padding:0; color:var(--nav-ink); background:transparent; border:1px solid currentColor; border-radius:8px; cursor:pointer; }
    .shared-header .shared-menu-toggle span { width:18px; height:1px; background:currentColor; }
    .shared-header .shared-menu-toggle[aria-expanded=true] span:first-child { transform:translateY(3.5px) rotate(45deg); }
    .shared-header .shared-menu-toggle[aria-expanded=true] span:last-child { transform:translateY(-3.5px) rotate(-45deg); }
    .shared-header .shared-navigation { width:100%; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px 12px; padding:12px 0 4px; border-top:1px solid #8899bb44; }
    .shared-header .shared-navigation>a { justify-content:center; font-size:13px; min-height:44px; }
    .shared-header .shared-navigation>a[aria-current=page]::after { bottom:0; left:20%; right:20%; }
}
@media(max-width:360px) { .shared-header .shared-brand { width:200px; } }
@media(prefers-reduced-motion:reduce) { html body .site-header.shared-header,.shared-header .shared-navigation>a { transition:none; } }
@supports not (backdrop-filter:blur(1px)) {
    html body .site-header.shared-header { background:#fff; }
    html body .shared-header[data-nav-theme=dark] { background:#101f57; }
}
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more) {
    html body .site-header.shared-header { background:#fff; backdrop-filter:none; }
    html body .shared-header[data-nav-theme=dark] { background:#101f57; }
}
@media(forced-colors:active) {
    html body .site-header.shared-header { background:Canvas; color:CanvasText; border-bottom:1px solid CanvasText; --nav-ink:CanvasText; --nav-active:LinkText; }
    .shared-header .shared-logo-dark { display:none; }
    .shared-header .shared-logo-light { opacity:1!important; }
}
