/* Contain page decorations without clipping the separate offcanvas. */

.home-overflow-fix .landing-page {
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
}

/* Allow content inside flex and grid layouts to shrink naturally. */

.home-overflow-fix .landing-page .row > *, .home-overflow-fix .sandstrom-sidebar .offcanvas-body, .home-overflow-fix .sandstrom-sidebar .offcanvas-body > *, .home-overflow-fix .sandstrom-sidebar-brand {
  min-width: 0;
}

.home-overflow-fix .landing-page footer a, .home-overflow-fix .sandstrom-sidebar .nav-link, .home-overflow-fix .sandstrom-sidebar-description {
  overflow-wrap: anywhere;
}

/* Keep the drawer and its scrolling content inside the viewport. */

.home-overflow-fix .sandstrom-sidebar {
  box-sizing: border-box;
  width: min(var(--bs-offcanvas-width), 100vw);
  max-width: 100%;
}

.home-overflow-fix .sandstrom-sidebar .offcanvas-body {
  overflow-x: hidden;
  overflow-y: auto;
}

.home-overflow-fix .sandstrom-sidebar .sandstrom-sidebar-links {
  width: 100%;
  margin: 0;
}

.home-overflow-fix .sandstrom-sidebar .sandstrom-sidebar-links > li {
  min-width: 0;
  max-width: 100%;
}

.home-overflow-fix .sandstrom-sidebar .sandstrom-navbar-cta {
  max-width: 100%;
  white-space: normal;
}

/* Let the income illustration's header wrap instead of widening its card. */

.home-overflow-fix .retirement-picture__header {
  flex-wrap: wrap;
}

.home-overflow-fix .retirement-picture__figures {
  min-width: 0;
}

@media (max-width: 991.98px) {
  .home-overflow-fix .sandstrom-sidebar-navbar .sandstrom-navbar-shell {
    flex-wrap: nowrap;
    gap: 12px;
    min-width: 0;
    max-width: 100%;
    padding-right: 16px;
    padding-left: 16px;
  }
}

@media (max-width: 991.98px) {
  .home-overflow-fix .sandstrom-sidebar-navbar .sandstrom-navbar-brand {
    flex: 1 1 auto;
    min-width: 0;
    margin-right: 0;
  }
}

@media (max-width: 991.98px) {
  .home-overflow-fix .sandstrom-sidebar-navbar .sandstrom-navbar-logo {
    width: auto;
    max-width: 100%;
    max-height: 55px;
    object-fit: contain;
  }
}

@media (max-width: 991.98px) {
  .home-overflow-fix .sandstrom-sidebar-navbar .sandstrom-menu-toggle {
    flex: 0 0 auto;
  }
}

@media (max-width: 991.98px) {
  .home-overflow-fix .sandstrom-sidebar .offcanvas-header {
    gap: 16px;
  }
}

@media (max-width: 991.98px) {
  .home-overflow-fix .sandstrom-sidebar-brand {
    flex: 1 1 auto;
  }
}

@media (max-width: 991.98px) {
  .home-overflow-fix .sandstrom-sidebar-logo {
    max-width: 100%;
  }
}

/* Match row gutters to the surrounding Bootstrap container padding. */

@media (max-width: 991.98px) {
  .home-overflow-fix .sandstrom-help-grid {
    --bs-gutter-x: 1.5rem;
  }
}

@media (max-width: 991.98px) {
  .home-overflow-fix .sandstrom-hero-copy {
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 991.98px) {
  .home-overflow-fix .sandstrom-hero-actions .btn {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
  }
}

