/**
 * Berlin Landing: Dynamic section spacing.
 * Wrapper .tenant-section-bg-wrapper gets section-spacing-{preset}.
 * Spacing is applied as: (1) wrapper margin = gap between sections, (2) section padding = inner padding (overrides py-*, pt-*, pb-* with !important).
 * Presets: none, compact, default, comfortable, spacious.
 */

/* Wrapper: control gap between sections via margin */
.tenant-site-root.theme-berlin-landing .tenant-section-bg-wrapper.section-spacing-none {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}
.tenant-site-root.theme-berlin-landing .tenant-section-bg-wrapper.section-spacing-compact {
	margin-top: 0.5rem !important;
	margin-bottom: 0.5rem !important;
}
.tenant-site-root.theme-berlin-landing .tenant-section-bg-wrapper.section-spacing-default,
.tenant-site-root.theme-berlin-landing .tenant-section-bg-wrapper:not([class*="section-spacing-"]) {
	margin-top: 1rem !important;
	margin-bottom: 1rem !important;
}
.tenant-site-root.theme-berlin-landing .tenant-section-bg-wrapper.section-spacing-comfortable {
	margin-top: 1.5rem !important;
	margin-bottom: 1.5rem !important;
}
.tenant-site-root.theme-berlin-landing .tenant-section-bg-wrapper.section-spacing-spacious {
	margin-top: 2rem !important;
	margin-bottom: 2rem !important;
}

/* Direct section child: override any py-*, pt-*, pb-* so spacing preset always wins */
.tenant-site-root.theme-berlin-landing .tenant-section-bg-wrapper > [id^="section-"],
.tenant-site-root.theme-berlin-landing .tenant-section-bg-wrapper > section {
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* None: no outer gap, no inner padding; container py-5 becomes effectively container only */
.tenant-site-root.theme-berlin-landing .tenant-section-bg-wrapper.section-spacing-none > [id^="section-"],
.tenant-site-root.theme-berlin-landing .tenant-section-bg-wrapper.section-spacing-none > section {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}
.tenant-site-root.theme-berlin-landing .tenant-section-bg-wrapper.section-spacing-none > [id^="section-"] > .container,
.tenant-site-root.theme-berlin-landing .tenant-section-bg-wrapper.section-spacing-none > section > .container {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

/* Compact: section and inner container py-5 use compact padding (1rem) */
.tenant-site-root.theme-berlin-landing .tenant-section-bg-wrapper.section-spacing-compact > [id^="section-"],
.tenant-site-root.theme-berlin-landing .tenant-section-bg-wrapper.section-spacing-compact > section {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding-top: 1rem !important;
	padding-bottom: 1rem !important;
}
.tenant-site-root.theme-berlin-landing .tenant-section-bg-wrapper.section-spacing-compact > [id^="section-"] > .container,
.tenant-site-root.theme-berlin-landing .tenant-section-bg-wrapper.section-spacing-compact > section > .container {
	padding-top: 1rem !important;
	padding-bottom: 1rem !important;
}

/* Default */
.tenant-site-root.theme-berlin-landing .tenant-section-bg-wrapper.section-spacing-default > [id^="section-"],
.tenant-site-root.theme-berlin-landing .tenant-section-bg-wrapper.section-spacing-default > section,
.tenant-site-root.theme-berlin-landing .tenant-section-bg-wrapper:not([class*="section-spacing-"]) > [id^="section-"],
.tenant-site-root.theme-berlin-landing .tenant-section-bg-wrapper:not([class*="section-spacing-"]) > section {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding-top: 2rem !important;
	padding-bottom: 2rem !important;
}

/* Comfortable */
.tenant-site-root.theme-berlin-landing .tenant-section-bg-wrapper.section-spacing-comfortable > [id^="section-"],
.tenant-site-root.theme-berlin-landing .tenant-section-bg-wrapper.section-spacing-comfortable > section {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding-top: 3rem !important;
	padding-bottom: 3rem !important;
}

/* Spacious */
.tenant-site-root.theme-berlin-landing .tenant-section-bg-wrapper.section-spacing-spacious > [id^="section-"],
.tenant-site-root.theme-berlin-landing .tenant-section-bg-wrapper.section-spacing-spacious > section {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding-top: 4rem !important;
	padding-bottom: 4rem !important;
}
