/* Floating mobile tab bar — site-wide (rendered via wp_footer on every
   page, not just the custom front page), so these rules stay self-
   contained instead of depending on the .mf-home scope. */

.mf-mobile-tabbar {
	display: none;
}

@media (max-width: 780px) {
	.mf-mobile-tabbar {
		display: flex;
		justify-content: space-between;
		position: fixed;
		/* env() keeps the bar clear of the home-indicator gesture area on
		   notched phones instead of colliding with it. */
		inset-block-end: calc(10px + env(safe-area-inset-bottom, 0px));
		inset-inline: 16px;
		border-radius: 999px;
		background: rgba(255, 255, 255, .96);
		box-shadow: 0 8px 28px rgba(5, 8, 16, .1);
		padding: 7px;
		z-index: 40;
		font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	}

	.mf-mobile-tabbar a {
		display: flex;
		align-items: center;
		gap: 8px;
		padding-block: 10px;
		padding-inline: 12px;
		border-radius: 999px;
		font-size: 12px;
		font-weight: 600;
		color: #1A2120;
		text-decoration: none;
	}

	.mf-mobile-tabbar a span {
		display: none;
	}

	.mf-mobile-tabbar a[aria-current="page"] {
		background: #050810;
		color: #fff;
		padding-inline: 16px;
	}

	.mf-mobile-tabbar a[aria-current="page"] span {
		display: block;
	}

	.mf-mobile-tabbar .mf-icon {
		inline-size: 22px;
		block-size: 22px;
		flex-shrink: 0;
	}
}
