/**
 * WordPress layout fixes – admin bar offset & footer gap removal.
 */

/* ── WordPress admin bar: remove html margin gap ── */
html.admin-bar {
	margin-top: 0 !important;
}

.admin-bar #wpadminbar {
	position: fixed;
}

.admin-bar header,
.admin-bar header.clone,
.admin-bar header.smaller,
.admin-bar header.scroll-down {
	top: 32px;
}

@media screen and (max-width: 782px) {
	.admin-bar header,
	.admin-bar header.clone,
	.admin-bar header.smaller,
	.admin-bar header.scroll-down {
		top: 46px;
	}
}

/* ── Remove default document gaps ── */
html,
body {
	margin: 0 !important;
	padding: 0 !important;
}

/* Single scroll container: html only (prevents double scrollbar with Lenis) */
html {
	overflow-x: hidden;
	overflow-y: auto;
}

body {
	overflow-x: hidden !important;
	overflow-y: hidden !important;
}

/* ── Footer: flush to bottom, no white band below subfooter ── */
footer.section-dark {
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
}

footer .subfooter.llf-subfooter-bar {
	background-color: var(--bg-dark-1, #101010);
	margin-bottom: 0 !important;
}

/* Theme notification bar – hidden to prevent extra bottom scroll/white strip */
#de_notif {
	display: none !important;
}

/* Fixed UI elements must not affect document flow height */
.float-text,
.scrollbar-v,
#de-loader,
#extra-wrap {
	pointer-events: auto;
}

/* Lenis smooth scroll – keep one scrollbar on html */
html.lenis {
	height: auto;
}

html.lenis.lenis-smooth {
	scroll-behavior: auto !important;
}

html.lenis.lenis-stopped {
	overflow: hidden;
}
