/*
 * An area's lists, and the record pages nested among them, stay in view down
 * the side while the page scrolls. A coverholder's or an agreement's form runs
 * to two screens, and without this the way across to its other pages scrolled
 * away with the top of it.
 *
 * Held to the height of the window beneath the topbar, because an agreement's
 * pages and the configuration's headed lists both run taller than a laptop
 * screen. Taller than that, the column scrolls on its own rather than leaving
 * its last entries out of reach.
 *
 * Only from Filament's md breakpoint, where it shows the column at all; below
 * that the sub navigation is a dropdown at the top of the page.
 */
@media (min-width: 48rem) {
    .fi-body .fi-page-sub-navigation-sidebar-ctn {
        --sub-navigation-top: calc(4rem + var(--spacing) * 6);

        max-height: calc(100dvh - var(--sub-navigation-top) - var(--spacing) * 6);
        overflow-y: auto;
        overscroll-behavior: contain;
        position: sticky;
        top: var(--sub-navigation-top);
    }
}
