/* Phones only (up to 768px). Loaded last, so it wins over the other stylesheets. Desktop is not affected. */
@media (max-width: 768px) {
	html body .site-header .header-main {
		display: flex !important;
		flex-direction: column !important;
		align-items: stretch !important;
		gap: 10px !important;
	}
	html body #top-menu,
	html body .top-nav {
		position: static !important;
		float: none !important;
		width: 100% !important;
		order: 0 !important;
		margin: 0 !important;
	}
	/* All menu buttons visible: they wrap onto several centred lines, no sideways scrolling */
	html body .top-nav ul {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: wrap !important;
		justify-content: center !important;
		overflow: visible !important;
		gap: 8px !important;
		padding: 4px 0 8px !important;
		margin: 0 !important;
	}
	html body .top-nav li {
		flex: 0 0 auto !important;
	}
	html body .top-nav a.root-item,
	html body .top-nav a.root-item-selected {
		white-space: nowrap !important;
		padding: 9px 16px !important;
		font-size: 14px !important;
	}
	/* Sub-items are not shown on the phone header (they would overlap the page) */
	html body .top-nav li ul {
		display: none !important;
	}
	html body #top-icons,
	html body .header-tools {
		position: static !important;
		float: none !important;
		display: flex !important;
		flex-wrap: wrap !important;
		justify-content: space-between !important;
		align-items: center !important;
		gap: 8px !important;
		width: 100% !important;
	}
	html body .header-search {
		position: static !important;
		float: none !important;
		flex: 1 1 100% !important;
		width: 100% !important;
	}
}

/* Phones: fixed hero height; the picture is scaled to fit inside it, so it stays visible */
@media (max-width: 768px) {
	html body #banner-image,
	html body div#banner #banner-image {
		height: 140px !important;
		min-height: 140px !important;
		max-height: 140px !important;
		background-size: contain !important;
		background-repeat: no-repeat !important;
		background-position: center !important;
	}
}
