/*
 * Mylistingo header adjustments — SITE-WIDE (front page, articles, categories,
 * search, archives). Layout only: no colours, so JNews's light and dark schemes
 * both keep their own styling.
 *
 * Centring the main navigation.
 *
 * .jeg_nav_row is already a flex row. JNews gives the left (logo) and centre
 * (menu) columns `flex: 0 0 auto` while the right-hand tool group carries
 * .jeg_nav_grow (`flex: 1 1 0`), so all the slack collects on the right and the
 * menu sits hard against the logo. Giving the LEFT column the same `flex: 1 1 0`
 * as the right makes the two outer columns claim equal shares, which leaves the
 * shrink-to-fit centre column on the row's true centre line — whatever the logo
 * and tool group happen to measure.
 *
 * Deliberately no `display: flex` on the columns themselves. JNews floats the
 * menu's <li>s, and a float-only child gives a flex parent zero height, which
 * collapses the whole menu. Changing only the flex ratios leaves JNews's own
 * float layout — and its dropdown submenus — completely untouched.
 */

@media (min-width: 1100px) {

	.jeg_header .jeg_nav_row > .jeg_nav_left,
	.jeg_header_sticky .jeg_nav_row > .jeg_nav_left {
		flex: 1 1 0;
		min-width: 0;
	}

	.jeg_header .jeg_nav_row > .jeg_nav_center,
	.jeg_header_sticky .jeg_nav_row > .jeg_nav_center {
		flex: 0 1 auto;
	}

	/* Right column already has .jeg_nav_grow (flex: 1 1 0); restated so the pair
	   stays balanced even if that class is ever dropped from the header builder. */
	.jeg_header .jeg_nav_row > .jeg_nav_right,
	.jeg_header_sticky .jeg_nav_row > .jeg_nav_right {
		flex: 1 1 0;
		min-width: 0;
	}
}

/*
 * Pre-existing JNews bug, fixed while we are in here: below roughly 1300px the
 * "Saved Posts" button wraps onto two lines and spills out of the header bar.
 * It affects every page, not just the front page.
 */
.jeg_header .jeg_button_saved,
.jeg_header .jeg_button_saved a,
.jeg_header_sticky .jeg_button_saved,
.jeg_header_sticky .jeg_button_saved a {
	white-space: nowrap;
}
