/* Public layout only; desktop legacy navigation remains intact. */
header.public-nav-compact .public-mobile-primary,header.public-nav-compact .public-mobile-menu,header.public-nav-compact>.public-mobile-login{display:none!important}
@media(max-width:900px){
body header.nav.public-nav-compact{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:8px!important;padding:10px 12px!important;position:relative!important}
body header.nav.public-nav-compact>.brand{order:0;flex:1 1 auto;min-width:0;max-width:none!important;min-height:44px;flex-wrap:wrap;font-size:1rem!important}
body header.nav.public-nav-compact>.brand span{font-size:inherit!important;white-space:normal!important;overflow-wrap:normal}
body header.nav.public-nav-compact>.public-mobile-login{order:1;display:inline-flex!important;align-items:center;justify-content:center;position:static!important;min-width:44px;min-height:44px;padding:10px 12px!important;font-size:.875rem!important;line-height:1.3!important;border:1px solid var(--border);border-radius:999px;color:var(--text);text-decoration:none;white-space:normal!important}
body header.nav.public-nav-compact .language-switcher{order:2;position:static!important;transform:none!important;max-width:100%;margin:0!important;flex:0 1 auto}
body header.nav.public-nav-compact .language-switcher button,body header.nav.public-nav-compact .language-switcher select{min-height:44px!important;min-width:44px!important;font-size:.875rem!important}
body header.nav.public-nav-compact>nav{order:3;flex:1 0 100%;display:flex!important;flex-wrap:wrap!important;width:100%!important;max-width:100%!important;overflow:visible!important;padding:0!important;margin:0!important;gap:8px!important;align-items:flex-start!important;position:relative!important}
body header.nav.public-nav-compact>nav>:not(.public-mobile-primary):not(.public-mobile-menu):not(.language-switcher){display:none!important}
body header.nav.public-nav-compact>nav>.public-mobile-primary{display:inline-flex!important;min-height:44px!important;max-width:100%;padding:12px 16px!important;font-size:.875rem!important;line-height:1.3!important;white-space:normal!important}
body header.nav.public-nav-compact>nav>.public-mobile-menu{display:block!important;position:static!important;flex:1 1 100px;min-width:0;color:var(--text)}
body header.nav.public-nav-compact .public-mobile-menu>summary{display:list-item;list-style-position:inside;cursor:pointer;min-height:44px;padding:11px 14px;border:1px solid var(--border);border-radius:16px;font-size:.875rem;line-height:1.4;background:rgba(255,255,255,.04)}
body header.nav.public-nav-compact .public-mobile-panel{position:absolute;left:0;right:0;top:100%;z-index:30;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr));gap:4px;margin-top:8px;padding:8px;border:1px solid var(--border);border-radius:16px;background:#0b0d12;max-height:60vh;max-height:60dvh;overflow-y:auto;overscroll-behavior:contain}
body header.nav.public-nav-compact .public-mobile-panel a{display:flex!important;align-items:center;min-height:44px!important;min-width:44px;max-width:100%;padding:12px!important;font-size:.875rem!important;line-height:1.4!important;white-space:normal!important;overflow-wrap:anywhere;color:var(--text);border-radius:8px;position:relative}
body header.nav.public-nav-compact :is(a,summary,button,select):focus-visible{outline:3px solid #8ff6ff;outline-offset:2px}
}
