/* Custom theme overrides — edited from Admin → Theme editor */

/* Layout hardening: keep content inside containers on frontend/admin */
*,
*::before,
*::after {
  box-sizing: border-box;
}

.container,
.panel,
.stat-card,
.admin-content,
.admin-main,
.admin-shell,
.admin-data-table,
.admin-data-table th,
.admin-data-table td,
.post-card,
.profile-card,
.community-main,
.community-sidebar,
.dash-panels,
.dash-panels > * {
  max-width: 100%;
}

.panel,
.stat-card,
.post-card,
.profile-card,
.community-main,
.community-sidebar {
  overflow: hidden;
}

.admin-data-table th,
.admin-data-table td {
  word-break: break-word;
}

@media (max-width: 900px) {
  .admin-content {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

@media (max-width: 760px) {
  .dash-panels {
    grid-template-columns: 1fr !important;
  }
}

/* Profile page: prevent horizontal page scroll on mobile */
body.page-profile,
body.page-profile .site-main,
body.page-profile .profile-section,
body.page-profile .profile-section .container {
  overflow-x: hidden;
  max-width: 100%;
}

body.page-profile .profile-card,
body.page-profile .profile-body,
body.page-profile .feed,
body.page-profile .panel {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
