/**
 * The header and footer menus.
 *
 * The rules are the ones the export carried on each menu item, moved off the
 * individual elements and onto a class, so that any number of items look the
 * same. Tilda's own `.tn-atom { width: inherit; height: inherit !important }`
 * would stretch every item to the list's box, which is why the items are not
 * `.tn-atom` and the wrapper's height is overridden here.
 */

#allrecords .mcity-menu .tn-atom__html {
	width: auto;
	height: auto !important;
}

#allrecords .mcity-menu__list {
	display: flex;
	align-items: center;
	gap: 30px;
	white-space: nowrap;
}

#allrecords .mcity-menu__link {
	color: #424242;
	font-family: "Gilroy", Arial, sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.55;
	text-decoration: none;
	transition: color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

#allrecords .mcity-menu__link:hover {
	color: #ff805b;
}

/*
 * The footer column is a stack, not a row. The export spaced its rows 30px
 * apart with a 25px row, so the gap is the 5px left over; on the phone the
 * step is 25 and the rows touch.
 */
#allrecords .mcity-menu--footer .mcity-menu__list {
	flex-direction: column;
	align-items: stretch;
	gap: 5px;
	white-space: normal;
}

#allrecords .mcity-menu--footer .mcity-menu__link {
	display: flex;
	align-items: center;
	height: 25px;
	color: #cecece;
	font-size: 16px;
	font-weight: 500;
}

#allrecords .mcity-menu--footer .mcity-menu__link:hover {
	color: #ff805b;
}

@media screen and (max-width: 479px) {
	#allrecords .mcity-menu--footer .mcity-menu__list {
		gap: 0;
	}

	#allrecords .mcity-menu--footer .mcity-menu__link {
		font-size: 12px;
	}
}

/*
 * The phone. The header menu becomes the panel the burger drops down: every
 * item a bordered pill, 280x32, exactly as the export drew them.
 */
@media screen and (max-width: 479px) {
	#allrecords .mcity-menu--header .mcity-menu__list {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
		white-space: normal;
	}

	#allrecords .mcity-menu--header .mcity-menu__link {
		display: flex;
		align-items: center;
		justify-content: center;
		height: 32px;
		box-sizing: border-box;
		border: 1px solid #424242;
		border-radius: 30px;
		font-size: 12px;
	}
}
