/* Shared vertical navigation. Without JavaScript the mobile menu stays visible. */
:root { --sidebar-width:224px; }
.has-sidebar { padding-left:var(--sidebar-width); }
.site-sidebar {
  position:fixed; inset:0 auto 0 0; z-index:1002; width:var(--sidebar-width);
  height:100vh; height:100dvh; padding:18px 12px; display:flex; flex-direction:column;
  gap:14px; overflow:hidden; background:#111827; color:#fff;
}
.site-sidebar-head { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-shrink:0; }
.site-sidebar .brand { display:inline-flex; align-items:center; gap:9px; padding:0 8px; font-size:20px; font-weight:650; }
.site-sidebar .brand img { border-radius:6px; }
.site-sidebar .quick-search-open { width:100%; text-align:left; flex-shrink:0; padding:10px 12px; }
.site-nav { display:flex; flex-direction:column; gap:3px; flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; }
.site-nav a { display:block; padding:9px 12px; border-radius:7px; color:#cbd5e1; text-decoration:none; line-height:1.35; overflow-wrap:anywhere; }
.site-nav a:hover, .site-nav a.on { color:#fff; background:#24344f; }
.site-nav a.on { box-shadow:inset 3px 0 #6492f0; }
.site-nav a:focus-visible, .site-sidebar button:focus-visible, .mobile-header button:focus-visible { outline:2px solid #9dbbff; outline-offset:-2px; }
.site-logout { flex-shrink:0; margin:0; padding-top:12px; border-top:1px solid #334155; }
.site-logout button, .site-menu-close, .mobile-header button { background:none; border:1px solid #475569; border-radius:7px; color:#e2e8f0; font:inherit; padding:8px 11px; cursor:pointer; }
.site-logout button { width:100%; text-align:left; font-size:12px; overflow-wrap:anywhere; }
.site-menu-close, .mobile-header, .site-menu-backdrop { display:none; }
.skip-link { position:fixed; left:12px; top:-80px; z-index:5000; padding:10px 16px; background:#fff; border:2px solid #2457d6; border-radius:8px; }
.skip-link:focus { top:8px; }
@media (max-width:900px) {
  .has-sidebar { padding-left:0; }
  .site-sidebar { position:static; width:auto; height:auto; }
  .has-sidebar main { padding:16px 12px; }
  .has-sidebar.nav-ready { padding-top:58px; }
  .nav-ready .mobile-header { position:fixed; inset:0 0 auto; z-index:1000; height:58px; padding:8px 12px; display:flex; align-items:center; justify-content:flex-start; gap:12px; background:#111827; color:#fff; }
  .mobile-header .brand { font-size:18px; font-weight:650; }
  .nav-ready .site-sidebar { position:fixed; width:min(280px, calc(100vw - 48px)); height:100vh; height:100dvh; transform:translateX(-100%); visibility:hidden; transition:transform .18s ease, visibility .18s; }
  .nav-ready .site-menu-close { display:block; padding:3px 11px; font-size:25px; line-height:1.3; }
  .sidebar-open { overflow:hidden; }
  .sidebar-open .site-sidebar { transform:translateX(0); visibility:visible; }
  .site-menu-backdrop:not([hidden]) { display:block; position:fixed; inset:0; z-index:1001; background:#07152899; }
}
@media (prefers-reduced-motion:reduce) { .nav-ready .site-sidebar { transition:none; } }
