/* Keep the final widget flush with the content column boundary. */
.content-shell.has-sidebar > .sidebar > .widget:last-child {
  margin-bottom: 0;
}

/* Desktop sidebars follow the page scroll without creating a nested scroller. */
@media (min-width: 1024px) {
  .content-shell.has-sidebar > .sidebar {
    position: sticky;
    top: 18px;
    align-self: start;
  }

  .dafa-header-sticky .content-shell.has-sidebar > .sidebar {
    top: calc(var(--dafa-header-height) + 60px);
  }
}

@media (max-width: 1023px) {
  .content-shell.has-sidebar > .sidebar {
    position: static;
  }
}
