/* RC11b — close the WordPress theme canvas directly after the Naa Mart footer.
   The Naa Mart footer already occupies full viewport width. The empty white
   rectangle sometimes visible below it comes from padding/min-height on the
   hosting WordPress page/article wrappers, not from the footer component.
   This stylesheet applies ONLY on Naa Mart shortcode pages in standalone mode.
   It deliberately does not touch the enquiry modals or any non-Naa-Mart page. */

body.naa-mart-landing-standalone {
  background-color: #f6f8f4;
}

/* Clear theme-added trailing canvas spacing while leaving top/side spacing and
   the site's internal footer layout unchanged. :has() restricts matching to
   WordPress wrappers that actually contain this plugin's public site. */
body.naa-mart-landing-standalone :is(
  #page, #content, #primary,
  .site, .site-content, .content-area, .site-main,
  .page, .type-page, .hentry, .entry, .entry-content,
  .wp-site-blocks, .wp-block-post-content, .wp-block-group,
  .wp-block-group__inner-container, .wp-block-column,
  .ast-container, .site-inner, .content, .content-wrapper,
  .elementor, .elementor-section-wrap, .elementor-widget-wrap,
  .elementor-widget-container, .et_builder_inner_content
):has(#naa-mart-site) {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  min-height: 0 !important;
}

/* No empty WordPress paragraph should follow the shortcode as a second block. */
body.naa-mart-landing-standalone :is(.entry-content, .wp-block-post-content) > p:empty,
body.naa-mart-landing-standalone :is(.entry-content, .wp-block-post-content) > p:has(> br:only-child) {
  display: none !important;
}

body.naa-mart-landing-standalone #naa-mart-site {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
body.naa-mart-landing-standalone #naa-mart-site > footer.nm-footer {
  margin-bottom: 0 !important;
}
