/* AUTOCENTER Native Service v1 shell closure — child theme v1.4.5
 *
 * Scope: only Pages explicitly promoted with:
 *   _ac_service_template = service-v1
 *
 * Purpose: reproduce the validated no-gap native Page shell systemically.
 * No per-ID selectors. No related-card/layout rules live here.
 */

body.ac-native-service-v1 {
  --content-vertical-spacing: 0px !important;
}

/* The custom graphite shell must hand off directly to the service hero.
   Reset both physical and logical margins on the shell boundary because
   Blocksy versions/plugins may express the same space differently. */
body.ac-native-service-v1 .ac-site-header {
  margin-bottom: 0 !important;
  margin-block-end: 0 !important;
}

body.ac-native-service-v1 .ac-site-header + #main-container,
body.ac-native-service-v1 .ac-site-header + main,
body.ac-native-service-v1 #main-container,
body.ac-native-service-v1 #main-container > main,
body.ac-native-service-v1 #main-container .site-main,
body.ac-native-service-v1 main#main,
body.ac-native-service-v1 .site-main,
body.ac-native-service-v1 .content-area,
body.ac-native-service-v1 .site-main > .ct-container,
body.ac-native-service-v1 .site-main > .ct-container-full,
body.ac-native-service-v1 #main > .ct-container,
body.ac-native-service-v1 #main > .ct-container-full {
  margin-top: 0 !important;
  margin-block-start: 0 !important;
  padding-top: 0 !important;
  padding-block-start: 0 !important;
}

body.ac-native-service-v1 [data-vertical-spacing*="top"] {
  margin-top: 0 !important;
  margin-block-start: 0 !important;
  padding-top: 0 !important;
  padding-block-start: 0 !important;
}

body.ac-native-service-v1 article.page,
body.ac-native-service-v1 article.type-page,
body.ac-native-service-v1 article.page > .entry-content,
body.ac-native-service-v1 article.type-page > .entry-content,
body.ac-native-service-v1 .entry-content {
  margin-top: 0 !important;
  margin-block-start: 0 !important;
  padding-top: 0 !important;
  padding-block-start: 0 !important;
}

body.ac-native-service-v1 .entry-content > .ac-article:first-child,
body.ac-native-service-v1 .entry-content > .ac-article:first-child > .ac-hero:first-child,
body.ac-native-service-v1 .ac-article:first-child,
body.ac-native-service-v1 .ac-article:first-child > .ac-hero:first-child {
  margin-top: 0 !important;
  margin-block-start: 0 !important;
  padding-top: 0 !important;
  padding-block-start: 0 !important;
}

/* Guard against an empty Blocksy spacer/wrapper immediately before the
   canonical service root. This does not hide arbitrary content: only empty
   direct entry-content children are collapsed on explicitly managed pages. */
body.ac-native-service-v1 .entry-content > :empty {
  margin-block: 0 !important;
  padding-block: 0 !important;
  min-height: 0 !important;
}
