/* One navigation tree: desktop rail + panel, narrow native disclosure drawer. */
[hidden] { display: none !important; }
.product-navigation { position: fixed; inset: 0 auto 0 0; width: 284px; background: #1b1b1b; border-right: 1px solid var(--line); z-index: 5; }
.shell { margin: 0 auto 0 284px; min-width: 0; padding: 40px 32px 0; }
.context-panel { display: flex; flex-direction: column; padding: 24px 14px; overflow-y: auto; height: 100dvh; scrollbar-gutter: stable; }
.context-panel > * { flex-shrink: 0; }
.navigation-footer { margin-top: auto; padding-top: 24px; }
.navigation-footer svg { display: none; }
.context-panel .brand { margin: 0 10px 28px; font-size: 21px; }
.context-heading { font-size: 16px; letter-spacing: 0; margin: 0 10px 20px; }
.nav-area > summary { padding: 12px 10px; cursor: pointer; font-weight: 600; }
.nav-area > .context-heading { display: none; }
.nav-label { margin: 14px 10px 8px; font-size: 11px; letter-spacing: 1px; }
.nav-section + .nav-section { margin-top: 12px; }
.side-nav a, .side-nav a.nav-building { min-height: 44px; flex-wrap: wrap; gap: 4px 8px; }
.nav-title { flex: 1 1 100%; white-space: normal; overflow-wrap: anywhere; }
.nav-hint, .nav-construction { margin-left: 0; }
.nav-group > summary { min-height: 44px; padding: 10px; }
.nav-group > summary.active-group { color: var(--accent); }
.nav-children { margin-left: 8px; padding-left: 6px; }
.product-navigation summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.primary-rail { flex-direction: column; align-items: center; gap: 10px; width: 60px; padding: 20px 6px; border-right: 1px solid var(--line); }
.rail-brand { font-size: 20px; font-weight: 650; min-height: 44px; padding: 4px; margin-bottom: 18px; }
.rail-brand span { color: var(--accent); }
.rail-button { position: relative; display: grid; place-items: center; width: 44px; min-height: 44px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; }
.rail-letter { display: grid; place-items: center; width: 24px; height: 24px; font-family: inherit; font-size: 24px; font-weight: 700; line-height: 1; }
.nav-warframe-logo { display: block; flex: 0 0 24px; object-fit: contain; filter: brightness(0) invert(1); }
.rail-button:hover { background: #27262a; color: var(--text); }
.rail-button[aria-current="true"] { color: var(--accent); background: #302a3d; border-color: #62517d; }
.rail-button:focus-visible { outline-offset: -2px; }
.rail-tooltip { pointer-events: none; display: none; position: absolute; left: 50px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); color: var(--text); white-space: nowrap; z-index: 8; font-size: 13px; }
.rail-button:hover .rail-tooltip, .rail-button:focus-visible .rail-tooltip { display: block; }
.panel-toggle { margin-top: auto; font-size: 24px; }
.nav-ready .product-navigation { display: flex; }
.nav-ready .section-menu { width: 224px; min-width: 0; }
@media (min-width: 801px) {
    .primary-rail .navigation-footer { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 44px; margin-top: 0; padding: 0; }
    .primary-rail .navigation-footer a,
    .primary-rail .navigation-footer .text-button { position: relative; display: grid; place-items: center; width: 32px; height: 32px; min-height: 32px; padding: 0; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--muted); }
    .primary-rail .navigation-footer svg { display: block; width: 18px; height: 18px; }
    .primary-rail .navigation-footer a:hover,
    .primary-rail .navigation-footer .text-button:hover { background: #27262a; color: var(--text); }
    .primary-rail .navigation-footer a[aria-current="page"] { color: var(--accent); background: #302a3d; border-color: #62517d; }
    .primary-rail .navigation-footer .nav-title { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .primary-rail .navigation-footer a:hover .nav-title,
    .primary-rail .navigation-footer a:focus-visible .nav-title,
    .primary-rail .navigation-footer button:hover .nav-title,
    .primary-rail .navigation-footer button:focus-visible .nav-title { left: 44px; width: auto; height: auto; padding: 5px 9px; margin: 0; overflow: visible; clip-path: none; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); color: var(--text); pointer-events: none; z-index: 8; font-size: 13px; }
    .primary-rail > * { flex-shrink: 0; }
    .nav-ready .nav-area > summary { display: none; }
    .nav-ready .nav-area > .context-heading { display: block; }
    .nav-ready .section-menu > .context-panel { display: flex; }
    .nav-ready.nav-collapsed .product-navigation { width: 60px; }
    .nav-ready.nav-collapsed .section-menu { display: none; }
    .nav-ready.nav-collapsed .shell { margin-left: 60px; }
}
@media (min-width: 801px) and (max-height: 600px) {
    .primary-rail { overflow-y: auto; scrollbar-width: thin; }
}
@media (max-width: 800px) {
    .product-navigation, .nav-ready .product-navigation { position: static; display: block; width: auto; border-right: 0; border-bottom: 1px solid var(--line); }
    .primary-rail { display: none; }
    .section-menu, .nav-ready .section-menu { width: auto; }
    .mobile-menu-toggle { display: list-item; cursor: pointer; padding: 16px 22px; min-height: 56px; color: var(--text); }
    .context-panel { height: auto; max-height: 75dvh; overflow-y: auto; padding: 8px 18px 24px; }
    .context-panel .brand { display: none; }
    .nav-area { border-top: 1px solid var(--line); }
    .nav-area > summary { min-height: 48px; }
    .shell, .nav-ready.nav-collapsed .shell { margin: 0; padding: 28px 20px 0; }
    .side-nav { padding-bottom: 14px; }
}

/* Section names navigate; the remaining native summary toggles its submenu. */
.nav-area > summary { position: relative; display: block; list-style: none; padding: 0 44px 0 0; }
.nav-area > summary::-webkit-details-marker { display: none; }
.area-home { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px; }
.area-home[aria-current="true"] { color: var(--accent); }
.area-disclosure { position: absolute; right: 0; top: 0; display: grid; place-items: center; width: 44px; min-height: 48px; }
.nav-area[open] > summary .area-disclosure { transform: rotate(180deg); }
.rail-button { text-decoration: none; }

.wow-hub-section { margin-bottom: 40px; }
.adventure-nav-character { padding: 0 16px; overflow-wrap: anywhere; font-size: .875rem; }
