header:has(#nav.site-menu) { position: sticky; top: 0; z-index: 50; }
header button.menu[aria-controls="nav"] {
 display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px;
 border: 0 !important; background: transparent; color: #dfff00 !important; font-size: 0;
}
header button.menu[aria-controls="nav"]::before {
 content: ""; width: 20px; height: 9px;
 background: linear-gradient(currentColor,currentColor) top left / 20px 2px no-repeat,
             linear-gradient(currentColor,currentColor) bottom left / 13px 2px no-repeat;
}
header button.menu[aria-expanded="true"][aria-controls="nav"]::before {
 height: 20px;
 background: linear-gradient(45deg,transparent 46%,currentColor 46% 54%,transparent 54%),
             linear-gradient(-45deg,transparent 46%,currentColor 46% 54%,transparent 54%);
}
#nav.site-menu {
 display: none; position: absolute; top: 100%; right: 0; left: auto; width: min(100%, 30rem);
 max-height: calc(100dvh - 7.5rem); overflow: auto; margin: 0; padding: 12px 14px 16px;
 background: #0b0b0b; color: #fff; box-shadow: 0 12px 24px #0008;
 font: 500 1rem/1.3 system-ui, sans-serif; overscroll-behavior-y: contain;
}
#nav.site-menu.open { display: block; }
#nav.site-menu a { color: inherit; text-decoration: none; border: 0; }
#nav.site-menu [hidden] { display: none; }
#nav.site-menu :focus-visible { outline: 2px solid #dfff00; outline-offset: -3px; }
#nav .site-menu__shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
#nav .site-menu__shortcuts a {
 display: grid; place-items: center; min-height: 54px; padding: 8px 6px;
 border-radius: 12px; background: #242424; text-align: center; font-weight: 650;
}
#nav .site-menu__shortcuts a:is(:active,[aria-current="page"]) { color: #0b0b0b; background: #dfff00; }
#nav .site-menu__explore {
 display: flex; justify-content: space-between; align-items: center; margin-top: 18px;
 border-top: 1px solid #343434; padding: 16px 0 9px; color: #aaa;
 font-size: .75rem; text-transform: uppercase; letter-spacing: .055em;
}
#nav .site-menu__explore span { color: #dfff00; font-size: 1rem; }
#nav .site-menu__tabs {
 display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain;
 scrollbar-width: thin; scrollbar-color: #555 transparent; padding-bottom: 4px;
}
#nav .site-menu__tabs button {
 flex: 0 0 auto; min-height: 44px; padding: 0 15px; border: 0; border-radius: 999px;
 background: #242424; color: #fff; font: inherit; white-space: nowrap; cursor: pointer;
}
#nav .site-menu__tabs button[aria-selected="true"] { color: #0b0b0b; background: #dfff00; }
#nav .site-menu__panel { background: #171717; border-radius: 12px; margin: 8px 0 0; padding: 12px; }
#nav .site-menu__panel h2 {
 margin: 0 0 3px; font: 700 1.125rem/1.25 system-ui,sans-serif; color: #fff;
 letter-spacing: normal; text-transform: none;
}
#nav .site-menu__panel a {
 display: flex; justify-content: space-between; align-items: center; gap: 10px;
 min-height: 46px; padding: 9px 3px;
}
#nav .site-menu__panel a::after { content: "↗"; color: #aaa; font-size: .875rem; }
#nav .site-menu__panel a + a { border-top: 1px solid #343434; }
#nav .site-menu__panel a:is(:hover,[aria-current="page"]) { color: #dfff00; }
@media (max-width: 760px) { #nav.site-menu { left: 0; width: 100%; } }
