/**
 * Mobile bottom navigation — adopted from mts_technologist
 * (technologist-homepage.css + bottom-nav.php)
 */

body.th-home-with-bottom-nav nav.th-home-bottom-nav {
	display: none !important;
	visibility: hidden !important;
	pointer-events: none !important;
	position: fixed !important;
	bottom: 0 !important;
	left: 0 !important;
	right: 0 !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	z-index: 99999 !important;
}

@media screen and (min-width: 1025px) {
	body.th-home-with-bottom-nav nav.th-home-bottom-nav {
		height: 0 !important;
		overflow: hidden !important;
	}

	body.th-home-with-bottom-nav {
		padding-bottom: 0 !important;
	}
}

@media screen and (max-width: 1024px) {
	body.th-home-with-bottom-nav {
		padding-bottom: 88px !important;
	}

	body.th-home-with-bottom-nav nav.th-home-bottom-nav {
		display: block !important;
		visibility: visible !important;
		pointer-events: auto !important;
		background: rgba(255, 255, 255, 0.72) !important;
		-webkit-backdrop-filter: blur(20px) saturate(180%);
		backdrop-filter: blur(20px) saturate(180%);
		box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.65), 0 -12px 40px rgba(15, 23, 42, 0.1) !important;
		border-top: 1px solid rgba(255, 255, 255, 0.55) !important;
		font-family: 'Urbanist', system-ui, -apple-system, sans-serif !important;
	}

	body.th-home-with-bottom-nav .th-home-bottom-nav__inner {
		display: flex !important;
		flex-direction: row !important;
		justify-content: space-evenly !important;
		align-items: flex-end !important;
		width: 100% !important;
		max-width: 520px !important;
		margin: 0 auto !important;
		padding: 10px 10px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
		box-sizing: border-box !important;
		float: none !important;
	}

	body.th-home-with-bottom-nav a.th-home-bottom-nav__item,
	body.th-home-with-bottom-nav a.th-home-bottom-nav__item:link,
	body.th-home-with-bottom-nav a.th-home-bottom-nav__item:visited,
	body.th-home-with-bottom-nav a.th-home-bottom-nav__item:hover,
	body.th-home-with-bottom-nav a.th-home-bottom-nav__item:active {
		display: flex !important;
		flex-direction: column !important;
		align-items: center !important;
		justify-content: flex-start !important;
		flex: 1 1 0 !important;
		min-width: 0 !important;
		width: auto !important;
		max-width: none !important;
		padding: 0 4px !important;
		margin: 0 !important;
		float: none !important;
		clear: none !important;
		text-decoration: none !important;
		text-align: center !important;
		background: transparent !important;
		border: none !important;
		box-shadow: none !important;
		color: #64748b !important;
		-webkit-tap-highlight-color: transparent;
	}

	body.th-home-with-bottom-nav .th-home-bottom-nav__icon {
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		width: 48px !important;
		height: 48px !important;
		min-width: 48px !important;
		min-height: 48px !important;
		margin: 0 auto 6px !important;
		padding: 0 !important;
		border-radius: 12px !important;
		background-color: var(--th-nav-icon-bg, rgba(99, 102, 241, 0.18)) !important;
		color: var(--th-nav-icon-color, #6366f1) !important;
		box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06) !important;
		transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
	}

	body.th-home-with-bottom-nav .th-home-bottom-nav__icon .fa {
		display: block !important;
		font-family: FontAwesome !important;
		font-size: 20px !important;
		line-height: 1 !important;
		width: 1em !important;
		height: 1em !important;
		margin: 0 !important;
		padding: 0 !important;
		color: inherit !important;
		background: transparent !important;
		border: none !important;
		border-radius: 0 !important;
		float: none !important;
		text-rendering: auto !important;
		-webkit-font-smoothing: antialiased !important;
	}

	body.th-home-with-bottom-nav .th-home-bottom-nav__label {
		display: block !important;
		width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
		font-family: 'Urbanist', system-ui, -apple-system, sans-serif !important;
		font-size: 12px !important;
		font-weight: 600 !important;
		line-height: 1.15 !important;
		letter-spacing: 0.2px !important;
		color: #64748b !important;
		text-align: center !important;
		white-space: nowrap !important;
		overflow: hidden !important;
		text-overflow: ellipsis !important;
		float: none !important;
	}

	body.th-home-with-bottom-nav a.th-home-bottom-nav__item.is-active .th-home-bottom-nav__icon,
	body.th-home-with-bottom-nav a.th-home-bottom-nav__item:hover .th-home-bottom-nav__icon {
		transform: translateY(-3px) !important;
		box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12) !important;
	}

	body.th-home-with-bottom-nav a.th-home-bottom-nav__item.is-active .th-home-bottom-nav__label {
		font-weight: 700 !important;
	}
}
