
/* v1.8.6 forced community layout lock */

body.ncr-community-forced-body,
body.ncr-community-app-body {
  background: #f7efe5 !important;
}

body.ncr-community-forced-body .ncr-breadcrumbs,
body.ncr-community-forced-body .ncr-shell-hero,
body.ncr-community-forced-body .ncr-page-hero-visual,
body.ncr-community-forced-body .ncr-content-card,
body.ncr-community-forced-body .ncr-tool-card,
body.ncr-community-app-body .ncr-breadcrumbs,
body.ncr-community-app-body .ncr-shell-hero,
body.ncr-community-app-body .ncr-page-hero-visual {
  display: none !important;
}

body.ncr-community-forced-body main.ncr-community-app-page,
body.ncr-community-app-body main.ncr-community-app-page {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 0 clamp(2rem, 4vw, 4rem) !important;
  background:
    radial-gradient(circle at top right, rgba(237,122,30,.12), transparent 34rem),
    linear-gradient(180deg, #fff8ef 0%, #f7efe5 100%) !important;
}

body.ncr-community-forced-body .ncr-community-app-wrap,
body.ncr-community-app-body .ncr-community-app-wrap {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: clamp(.75rem, 2vw, 1.5rem) 0 !important;
}

body.ncr-community-forced-body .ncr-pro-community-app,
body.ncr-community-app-body .ncr-pro-community-app,
body.ncr-community-forced-body .ncr-community-shell,
body.ncr-community-app-body .ncr-community-shell {
  width: min(1280px, calc(100vw - 2rem)) !important;
  max-width: 1280px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

/* If old cached page.php still prints a shell section, flatten it. */
body.ncr-community-forced-body .ncr-shell-section,
body.ncr-community-forced-body .ncr-shell-container,
body.ncr-community-app-body .ncr-shell-section,
body.ncr-community-app-body .ncr-shell-container {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

/* Keep profile layout clean */
body.ncr-community-forced-body .ncr-pro-profile-page,
body.ncr-community-app-body .ncr-pro-profile-page {
  padding-top: 0 !important;
}

body.ncr-community-forced-body .ncr-pro-profile-hero,
body.ncr-community-app-body .ncr-pro-profile-hero {
  margin-top: 1rem !important;
}

body.ncr-community-forced-body .ncr-pro-profile-main,
body.ncr-community-app-body .ncr-pro-profile-main {
  min-width: 0 !important;
}

body.ncr-community-forced-body .ncr-pro-profile-main h2,
body.ncr-community-app-body .ncr-pro-profile-main h2,
body.ncr-community-forced-body .ncr-pro-community-header h2,
body.ncr-community-app-body .ncr-pro-community-header h2 {
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
}

/* Full responsive app */
@media (max-width: 900px) {
  body.ncr-community-forced-body .ncr-pro-community-app,
  body.ncr-community-app-body .ncr-pro-community-app,
  body.ncr-community-forced-body .ncr-community-shell,
  body.ncr-community-app-body .ncr-community-shell {
    width: min(100% - 1rem, 1280px) !important;
  }

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