/*
 * Header fixes, loaded after theme.css (see includes/header-fixes.php).
 * Plain CSS so the fixes don't need the unscripted Sass build of theme.css.
 */

/*
 * Mobile header: Bootstrap's .navbar is a wrapping flex row, so the top bar (social
 * icons), main bar (logo + hamburger) and menu wrapper shrank to their content. They sat
 * side by side or wrapped unpredictably, and the open menu was only as wide as its
 * longest item. Each gets its own full-width row: 41px top bar + 92px main bar = the
 * 133px header height set in _navbar-basic.scss.
 */
#mobile-basic > .top-bar,
#mobile-basic > .main-bar,
#mobile-basic > .menu-mobile-wrapper {
	flex: 0 0 100%;
}

/*
 * No Bootstrap .navbar padding: it pushed the bars 8px down, past the fixed 133px height.
 * Open menu (100vh panel): stack rows from the top instead of spreading them out.
 */
#mobile-basic {
	padding-block: 0;
	align-content: flex-start;
}

/* Long menus (open submenus) must scroll inside the fixed full-height panel. */
#mobile-basic.toggle {
	overflow-y: auto;
}

/*
 * Social icons in the top bar reuse the footer partial, so they get the footer's icon
 * colour (has-light-color: white on the white top bar). WordPress's global styles make
 * has-*-color !important, so the theme's own rule (primary) needs it too.
 */
.navbar .top-bar .social-media-links i {
	color: var(--bs-primary) !important;
}
