/* Site Builder — layout elements, HF slots, off-canvas, mega menu */
.nexus-layout-placeholder {
	opacity: 0.65;
	font-style: italic;
	padding: 0.75rem 0;
}
.nexus-hf-slot-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
	padding: 0.65rem 0;
}
.nexus-hf-slot-bar .nexus-hf-slot {
	display: flex;
	align-items: center;
}
.nexus-hf-slot-bar .nexus-hf-menu {
	flex: 1 1 auto;
}
.nexus-mega-builder-panel {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	z-index: 100;
	background: var(--nexus-surface, #fff);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
	padding: 1.25rem;
	max-width: 100%;
}
.nexus-mega-menu {
	position: relative;
}
.nexus-offcanvas {
	border: none;
	padding: 0;
	max-width: min(420px, 92vw);
	width: 100%;
	margin: 0 0 0 auto;
	height: 100%;
	max-height: 100vh;
}
.nexus-offcanvas::backdrop {
	background: rgba(0, 0, 0, 0.45);
}
.nexus-offcanvas__inner {
	padding: 1.25rem;
	overflow: auto;
	max-height: calc(100vh - 3rem);
}
.nexus-offcanvas__close {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	border: none;
	background: transparent;
	font-size: 1.5rem;
	cursor: pointer;
	line-height: 1;
}
.nexus-form-builder__step[hidden] {
	display: none !important;
}
.nexus-form-builder__nav {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}
.nexus-layout-builder-link-list {
	list-style: none;
	margin: 0.5rem 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}
.nexus-layout-builder-links {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--nexus-border, rgba(148, 163, 184, 0.35));
}

body.nexus-dark-mode .nexus-offcanvas__close {
	color: var(--nexus-body-text);
}

body.nexus-dark-mode .nexus-mega-builder-panel {
	border: 1px solid var(--nexus-border);
	box-shadow: var(--nexus-shadow-lg);
}

body.nexus-dark-mode .nexus-layout-builder-links {
	border-top-color: var(--nexus-border);
}

body.nexus-dark-mode .nexus-layout-placeholder {
	color: var(--nexus-body-text-muted);
}
