/* Breakpoint: below this width, the sidebar becomes an off-canvas overlay
   panel instead of a fixed column, and the hamburger toggle appears. */
@media (max-width: 900px) {
  .app-shell {
    margin-left: 0;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform .2s ease;
    box-shadow: 0 0 32px rgba(0, 0, 0, .45);
  }

  app-sidebar.is-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-overlay {
    opacity: 0;
    pointer-events: none;
    background: rgba(0, 0, 0, .5);
    transition: opacity .2s ease;
  }
  app-sidebar.is-open .sidebar-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar-close {
    display: inline-flex;
  }

  .navbar-toggle {
    display: inline-flex;
  }
}

@media (min-width: 901px) {
  .sidebar-overlay {
    display: none;
  }
}

/* Avoid horizontal scroll on narrow viewports for the portal shell itself
   (documentation.css governs its own iframes/tables independently). */
@media (max-width: 600px) {
  .home-hero {
    margin: 32px auto;
  }
}
