/* WordPress / Elementor adjustments layered over assets/css/site.css. */

/* Imported pages: one full-width container holding one HTML widget. Strip every bit of
   spacing Elementor adds so the original sections sit edge to edge as on the static site. */
.e-con.speedee-wrap,
.e-con.speedee-wrap > .e-con-inner {
	--padding-top: 0;
	--padding-right: 0;
	--padding-bottom: 0;
	--padding-left: 0;
	--margin-top: 0;
	--margin-bottom: 0;
	--gap: 0;
	--row-gap: 0;
	--column-gap: 0;
	--content-width: 100%;
	--width: 100%;
	padding: 0;
	margin: 0;
	max-width: none;
	display: block;
}
.speedee-wrap .elementor-widget-html,
.speedee-wrap .elementor-widget-html > .elementor-widget-container {
	margin: 0;
	padding: 0;
	width: 100%;
}

/* Hello Elementor wraps non-Elementor content (old blog posts) in .site-main / .page-content;
   give it the static site's container width under the new chrome. */
body.speedee:not(.speedee-imported) main.site-main {
	max-width: 1200px;
	margin: 0 auto;
	padding: calc(var(--topbar-h) + 150px) 20px 60px; /* clear the fixed top bar + header */
}

/* Logged-in users: the fixed top bar and header sit below the WordPress admin bar
   (32px desktop, 46px at <=782px, where WP also stops fixing the bar). */
body.admin-bar .topbar { top: 32px; }
body.admin-bar .site-header { top: calc(var(--topbar-h) + 32px); }
@media (max-width: 782px) {
	body.admin-bar .topbar { top: 46px; }
	body.admin-bar .site-header { top: calc(var(--topbar-h) + 46px); }
}
