/* Account for the catalog page's bottom padding so categories stay pinned at its end. */
@media (min-width: 761px) {
    .main-content .games-extension.gx .gx-sidebar {
        --gx-sidebar-top: calc(
            var(--header-visible-height, var(--header-height, 58px)) + 12px
        );
        position: sticky;
        align-self: start;
        top: var(--gx-sidebar-top);
        max-height: calc(100vh - var(--gx-sidebar-top) - 40px);
        max-height: calc(100dvh - var(--gx-sidebar-top) - 40px);
        overflow-y: auto;
        overscroll-behavior-y: contain;
        scrollbar-width: thin;
    }
}

/* Tablet pages reserve 82px for the bottom navigation, plus a 12px edge gap. */
@media (min-width: 761px) and (max-width: 860px) {
    .main-content .games-extension.gx .gx-sidebar {
        max-height: calc(100vh - var(--gx-sidebar-top) - 94px);
        max-height: calc(100dvh - var(--gx-sidebar-top) - 94px);
    }
}
