/**
 * Mobile/tablet page-title banner parity with Divi Theme Builder section_0_tb_body.
 * Native reference: dda-divi-child assets/css/custom.css (TB / wire page-title heroes guard).
 *
 * Desktop wire/archive padding is unchanged (clamp rules in per-wire CSS).
 * Mobile only: same padding-top / padding-bottom as native TB title sections.
 */

/* Image heroes (wire archives + news single detail). */
@media only screen and (max-width: 980px) {
	#page-container .dda-custom-hero.et_pb_section.et_section_regular,
	#page-container .dda-news-detail-hero.et_pb_section {
		padding-top: 136px !important;
		padding-bottom: 0 !important;
		min-height: 0 !important;
	}

	#page-container .dda-custom-hero .et_pb_row,
	#page-container .dda-custom-hero .et_pb_row_dda_wire {
		padding-top: 0 !important;
		padding-bottom: 0 !important;
	}

	#page-container .dda-custom-hero .et_pb_column,
	#page-container .dda-custom-hero .et_pb_column_dda_wire {
		padding-left: clamp(1rem, 4vw, 1.5rem) !important;
		padding-right: clamp(1rem, 4vw, 1.5rem) !important;
	}
}

@media only screen and (max-width: 767px) {
	/* Native TB title sections in .et-l--body only. */
	#page-container .et-l--body .et_pb_section.et_pb_section_0_tb_body:not(.dda-custom-hero),
	#page-container .dda-news-detail-hero.et_pb_section {
		padding-top: 100px !important;
		padding-bottom: 10px !important;
	}

	/* Wire/custom heroes in main#primary — need full tablet offset on phones. */
	#page-container .dda-custom-hero.et_pb_section.et_pb_section_0_tb_body.et_section_regular,
	#page-container main#primary .dda-custom-hero.et_pb_section.et_section_regular,
	#main-content .dda-custom-hero.et_pb_section.et_section_regular {
		padding-top: 136px !important;
		padding-bottom: 10px !important;
	}
}

/* Standard-head wire archives (no ACF hero image): match TB offset above H1 + breadcrumbs. */
@media only screen and (max-width: 980px) {
	#page-container main.dda-news-wire:not(.dda-news-wire--archive-hero),
	#page-container main.dda-meetings-wire:not(.dda-meetings-wire--archive-hero),
	#page-container main.dda-resources-wire:not(.dda-resources-wire--archive-hero),
	#page-container main.dda-events-rss:not(.dda-events-rss--archive-hero) {
		padding-top: 150px !important;
	}
}

@media only screen and (max-width: 767px) {
	#page-container main.dda-news-wire:not(.dda-news-wire--archive-hero),
	#page-container main.dda-meetings-wire:not(.dda-meetings-wire--archive-hero),
	#page-container main.dda-resources-wire:not(.dda-resources-wire--archive-hero),
	#page-container main.dda-events-rss:not(.dda-events-rss--archive-hero) {
		padding-top: 100px !important;
	}
}
