.pd-section,
.pd-relationship {
  margin: 0 0 2rem;
}

.pd-section__heading,
.pd-relationship__heading {
  color: #19324d;
  margin: 0 0 1rem;
}

.pd-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.5rem;
  margin: 0;
}

.pd-fact {
  border-bottom: 1px solid #e0e0e0;
  margin: 0;
  padding: 0 0 0.75rem;
}

.pd-fact__label {
  color: #19324d;
  font-weight: 700;
}

.pd-fact__value {
  margin: 0.2rem 0 0;
}

.pd-fact__value p:last-child {
  margin-bottom: 0;
}

.pd-verified-link__date {
  display: block;
  font-size: 0.875em;
  margin-top: 0.25rem;
}

.pd-relationship__list {
  display: grid;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pd-image-credit {
  color: #f6f6f6;
  font-size: 0.8125rem;
  margin-top: 0.5rem;
}

.pd-render-empty {
	display: none !important;
}

.gwm-render-empty,
.gwm-render-present {
  display: none !important;
}

body.single-waterbody .et_pb_text.pd-divi-render-slot:has(.pd-render-empty) {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/*
 * Divi retains section padding and background when every PDC renderer in an
 * opt-in conditional shell is empty. This selector is intentionally limited
 * to singular Waterbody pages and sections explicitly marked by the
 * GoWhiteMountains template integration. Populated PDC output prevents the
 * section from matching, including meaningful negative values.
 */
body.single-waterbody .et_pb_section.pd-divi-conditional-section:has(.pd-render-empty):not(:has(.pd-section, .pd-relationship, .pd-acf-link, .pd-image-credit)) {
  display: none !important;
  border: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/*
 * Legacy Divi dynamic modules can retain labels or units when their ACF value
 * is blank. The integration removes those modules server-side and leaves a
 * state marker. Only explicitly opted-in Waterbody sections use these markers
 * for complete all-empty shell suppression.
 */
body.single-waterbody .et_pb_section.gwm-divi-conditional-section:has(.gwm-render-empty, .pd-render-empty):not(:has(.gwm-render-present, .pd-section, .pd-relationship, .pd-acf-link, .pd-image-credit)) {
  display: none !important;
  border: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

@media (max-width: 767px) {
  .pd-facts {
    grid-template-columns: minmax(0, 1fr);
  }
}
