/* Mobile sidebar close button & overlay — isolated from styles.css */

#pb_aside .pb-aside-close {
	display: none;
	position: absolute;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(15, 23, 42, 0.06);
	color: #475569;
	font-size: 1.1rem;
	cursor: pointer;
	align-items: center;
	justify-content: center;
	z-index: 2;
	transition: background 0.15s, color 0.15s;
}

#pb_aside .pb-aside-close:hover {
	background: rgba(0, 166, 255, 0.12);
	color: #00A6FF;
}

#pb_sidebar_overlay {
	display: none;
	position: fixed;
	inset: 0;
	top: var(--header-height, 64px);
	background: rgba(15, 23, 42, 0.45);
	z-index: 998;
	opacity: 0;
	transition: opacity 0.2s ease;
}

body.pb-sidebar-open #pb_sidebar_overlay {
	display: block;
	opacity: 1;
}

@media (max-width: 991px) {
	#pb_aside .pb-aside-close {
		display: inline-flex;
	}

	#pb_aside {
		padding-top: 48px;
	}
}

@media (min-width: 992px) {
	body.pb-sidebar-open #pb_sidebar_overlay {
		display: none;
	}
}

.pb-theme-dark #pb_aside .pb-aside-close {
	background: rgba(255, 255, 255, 0.08);
	color: #cbd5e1;
}

.pb-theme-dark #pb_aside .pb-aside-close:hover {
	background: rgba(0, 166, 255, 0.2);
	color: #00d6c2;
}
