/* wp-content/plugins/ceca-widgets/widgets/tracked-heading/tracked-heading.css */
/* Tracked Heading (Figma 257:3111 / 214:2586): 30/40 Bold section heading.
   scroll-margin-top keeps anchor jumps clear of the sticky header. */

.ceca-th {
	margin: 40px 0 10px;
	font-size: 30px;
	line-height: 40px;
	font-weight: 700;
	color: #000;
	scroll-margin-top: 145px;
}

/* The gap above a section heading must be EXACTLY the heading's own top
   margin (40px default, adjustable via the widget's Margin control). The
   theme gives every paragraph ~14px bottom margin, which would silently
   add to it — strip it from the last paragraph of a text block only when
   a tracked heading follows. */
.elementor-widget-text-editor:has(+ .elementor-widget-ceca-tracked-heading) p:last-child {
	margin-bottom: 0;
}

/* Mobile keeps the design's 30/40 (Figma 2372:12026 — was 25/32). */
@media (max-width: 767px) {
	.ceca-th {
		scroll-margin-top: 95px;
	}
}
