/* Focus Actual: sticky last sidebar widget on desktop.
   The row that holds #sidebar becomes a flex row, so the sidebar column is as tall as the article column;
   the last widget (.sidebar-sticky) then stays in view while the rest of the page scrolls. */
@media (min-width: 992px) {
    .row:has(> #sidebar) {
        display: flex;
        flex-wrap: wrap; /* breadcrumb (full width) stays on its own line */
        align-items: stretch;
    }
    .row:has(> #sidebar)::before,
    .row:has(> #sidebar)::after {
        display: none;
    }
    #sidebar .sidebar-sticky {
        position: -webkit-sticky;
        position: sticky;
        top: 20px;
    }
}

/* the bottom sidebar banner is floated: keep it inside the sticky block so the whole group
   (last widget + banner) stops at the end of the content instead of hanging over the footer */
#sidebar .sidebar-sticky {
    display: flow-root;
}
#sidebar .sidebar-sticky::after {
    content: "";
    display: table;
    clear: both;
}
