/*
 * Section Spacing tab: applied by inc/section-spacing.php.
 * Each value arrives as a custom property on the section (--sec-pt: 40px).
 * --sec-kp / --sec-km are the phone multipliers for padding / margin:
 * 1 on desktop, the section's --sec-mp / --sec-mm under 768px.
 * !important so an explicit editor setting beats older section CSS.
 */
.sec-space { --sec-kp: 1; --sec-km: 1; }

.sec-pt { padding-top:    calc(var(--sec-pt) * var(--sec-kp)) !important; }
.sec-pb { padding-bottom: calc(var(--sec-pb) * var(--sec-kp)) !important; }
.sec-mt { margin-top:     calc(var(--sec-mt) * var(--sec-km)) !important; }
.sec-mb { margin-bottom:  calc(var(--sec-mb) * var(--sec-km)) !important; }

/* Negative margins: keep the overlapping section painted above its neighbour. */
.sec-overlap { position: relative; z-index: 2; }

@media (max-width: 767.98px) {
	.sec-space { --sec-kp: var(--sec-mp, 1); --sec-km: var(--sec-mm, 1); }
}
