/* Shared iPad / tablet responsive fixes — included in all HTML pages */

/* Prevent horizontal scroll globally */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Safe area support for notched devices */
body {
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* iPad range: hide right sidebar, expand main content */
@media (min-width: 769px) and (max-width: 1199px) {
  .sidebar-right {
    display: none;
  }
  .main-content {
    max-width: 100%;
    padding: 24px 32px;
  }
}

/* Ensure nav stays visible on iPad */
@media (min-width: 769px) {
  .topnav-nav {
    display: flex !important;
  }
}

/* Cap content containers for readability */
.community-quickpost,
.community-section,
.search-section,
.alerts-section,
.nw-section,
.profile-section,
.inbox-section,
.hub-section {
  max-width: min(720px, 100%);
  margin-left: auto;
  margin-right: auto;
}
