
/* v1.8.4 Layout Recovery — Safe Scope Only */

/* Do not alter global header, nav, hero grids, WooCommerce layout, or page shells. */
html, body {
  overflow-x: hidden;
}

/* Safe readable text only inside regular content and NCR module bodies. */
.entry-content p,
.entry-content li,
.ncr-pro-panel p,
.ncr-pro-panel li,
.ncr-tool-card p,
.ncr-tool-card li,
.ncr-community-shell p,
.ncr-community-shell li,
.ncr-pro-community-app p,
.ncr-pro-community-app li {
  line-height: 1.65;
  overflow-wrap: break-word;
}

/* Keep community typography controlled without affecting the rest of the site. */
.ncr-pro-community-app h1,
.ncr-pro-community-app h2,
.ncr-pro-community-app h3,
.ncr-community-shell h1,
.ncr-community-shell h2,
.ncr-community-shell h3 {
  text-wrap: balance;
}

/* Prevent the media platform from stretching pages sideways. */
.ncr-pro-community-app,
.ncr-community-shell,
.ncr-pro-feed-main,
.ncr-pro-feed-list,
.ncr-pro-post-card,
.ncr-pro-composer,
.ncr-pro-media-grid {
  max-width: 100%;
  min-width: 0;
}

/* Make uploaded media safe within cards. */
.ncr-pro-media-grid img,
.ncr-pro-media-grid video,
.ncr-pro-upload-preview img,
.ncr-pro-upload-preview video {
  max-width: 100%;
}

/* Stop long titles/URLs from breaking cards. */
.ncr-pro-post-body,
.ncr-pro-comment p,
.ncr-pro-member-main,
.ncr-pro-group-body,
.ncr-pro-side-card {
  overflow-wrap: anywhere;
}

/* Restore safer mobile spacing. */
@media (max-width: 782px) {
  .ncr-pro-community-app,
  .ncr-community-shell {
    width: min(100% - 1rem, 1180px) !important;
  }

  .ncr-pro-community-layout,
  .ncr-pro-profile-layout {
    display: grid;
    grid-template-columns: 1fr !important;
  }

  .ncr-pro-community-header {
    margin-top: 1rem;
  }
}
