/* Shared responsive styles for legacy Banzai HTML pages */

.top-nav-toggle {
	display: none;
	background: transparent;
	border: 1px solid #666666;
	color: #ffffff;
	font-size: 22px;
	line-height: 1;
	padding: 0;
	width: 44px;
	height: 36px;
	margin: 0 0 10px 0;
	cursor: pointer;
	border-radius: 4px;
}

.top-nav-toggle .hamburger-lines {
	position: relative;
	display: block;
	width: 20px;
	height: 2px;
	background: #ffffff;
	margin: 0 auto;
}

.top-nav-toggle .hamburger-lines:before,
.top-nav-toggle .hamburger-lines:after {
	content: "";
	position: absolute;
	left: 0;
	width: 20px;
	height: 2px;
	background: #ffffff;
}

.top-nav-toggle .hamburger-lines:before {
	top: -6px;
}

.top-nav-toggle .hamburger-lines:after {
	top: 6px;
}

@media (max-width: 767px) {
	body {
		overflow-x: hidden;
	}

	#header,
	#container {
		width: 100% !important;
		max-width: 100% !important;
	}

	#container {
		position: relative;
	}

	/* Simplify legacy header on small screens */
	.menu_right {
		display: none !important;
	}

	#header > div[style*="width:400"] {
		width: auto !important;
		float: none !important;
		padding-left: 12px;
	}

	.top-nav-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		position: absolute;
		top: -50px;
		right: 12px;
		margin: 0;
	}

	.menu_left {
		display: none;
		float: none;
		width: 100%;
		margin-top: 6px;
	}

	.menu_left.mobile-open {
		display: block;
	}

	.menu_bar {
		width: 100%;
	}

	.menu_bar tr,
	.menu_bar td {
		display: block;
		width: 100% !important;
	}

	.menu_bar td {
		border-right: 0 !important;
		text-align: center;
		padding: 10px 0 !important;
	}

	/* NeuralStack two-column hero collapses to one column */
	.ns-feature-wrap,
	.ns-feature-table,
	.ns-feature-table tr,
	.ns-feature-table td {
		display: block;
		width: 100% !important;
	}

	.ns-feature-wrap {
		margin: 10px 0 18px 0;
		padding: 10px 0 12px 0;
	}

	.ns-feature-cell {
		padding: 0;
	}

	.ns-feature-content,
	.ns-feature-content-right {
		padding: 0 16px !important;
	}

	.ns-phone {
		width: min(272px, 78vw);
		margin: 16px auto 0;
	}

	/* Normalize legacy tables and footer wrapping on mobile */
	table[height],
	table[width] {
		width: 100% !important;
		height: auto !important;
	}

	#footer_text {
		max-width: 100%;
		padding: 0 16px;
		box-sizing: border-box;
		white-space: normal;
		overflow-wrap: anywhere;
		word-break: break-word;
	}

	#footer {
		width: 100% !important;
		height: auto !important;
		margin: 12px 0 0 0 !important;
		box-sizing: border-box;
	}

	#footer_text {
		width: 100% !important;
		height: auto !important;
		margin-top: 8px !important;
		padding: 0 16px 12px 16px;
		box-sizing: border-box;
		line-height: 1.4;
		white-space: normal !important;
		overflow-wrap: anywhere;
		word-break: break-word;
	}
}
