/* The phone header on one row (1.107.2, David 6 Dec 2026: "Yes, one row"; 1.107.3: "Yeah menu
   left please"): the menu button at the far left, then the logo, smaller, in place of the
   centred logo over a grey "Select Page" bar. Phones and tablets only (Divi's mobile menu shows
   up to 980px); a computer keeps its header. Every rule is under body.tlb-hdr1, which
   TLB_BLS_New_Layout::header_on() adds: on new layout pages by default, site-wide once the
   tlb_bls_header_row option says "all". Divi's own menu, toggle and dropdown are the ones that
   run: only their places and sizes change.

   1.107.3: the open menu came out 48px wide on a live page (David's iPhone, and Chromium too).
   Divi's ".et_header_style_centered #main-header div#et-top-navigation{position:relative}" has
   the same weight as the 1.107.2 rule and loads after this file, so the 48px nav box became the
   menu's containing block and "left:0; width:100%" meant 48px. So no rule here leans on which
   ancestor happens to be positioned any more: #et_mobile_nav_menu is made the containing block
   on purpose (!important), it sits at the row's left padding (16px), and the menu is placed
   from it: left -16px, the full viewport wide, just under the row. Everything that decides the
   layout carries !important, because Divi's stylesheet always loads after this one. ASCII only. */
@media (max-width: 980px) {
	body.tlb-hdr1 #main-header {
		padding-top: 0 !important;
		padding-bottom: 0 !important;
	}
	/* The row: full width, 16px each side, the button then the logo. */
	body.tlb-hdr1 #main-header .container.et_menu_container {
		box-sizing: border-box !important;
		width: 100% !important;
		max-width: none !important;
		margin: 0 !important;
		padding: 8px 16px !important;
		display: flex !important;
		flex-wrap: nowrap !important;
		align-items: center !important;
		justify-content: flex-start !important;
		gap: 12px;
		position: relative !important;
	}
	body.tlb-hdr1 #main-header .logo_container {
		position: static !important;
		order: 2;
		display: flex !important;
		align-items: center;
		flex: 0 1 auto;
		min-width: 0;
		width: auto !important;
		height: auto !important;
		text-align: left;
	}
	body.tlb-hdr1 #main-header .logo_container .logo_helper {
		display: none !important;
	}
	body.tlb-hdr1 #main-header .logo_container a {
		display: block;
		line-height: 0;
		max-width: 100%;
	}
	body.tlb-hdr1 #main-header #logo {
		display: block;
		width: auto !important;
		height: 46px !important;
		max-height: 46px !important;
		max-width: 100% !important;
		margin: 0 !important;
		object-fit: contain;
	}
	body.tlb-hdr1 #main-header #et-top-navigation {
		position: static !important;
		order: 1;
		flex: none !important;
		width: auto !important;
		padding: 0 !important;
		margin: 0 !important;
		float: none !important;
	}
	/* The menu's containing block, chosen on purpose (see the note at the top). */
	body.tlb-hdr1 #main-header #et_mobile_nav_menu {
		position: relative !important;
		display: block !important;
		width: 48px !important;
		margin: 0 !important;
		float: none !important;
	}
	body.tlb-hdr1 #main-header .mobile_nav {
		position: static !important;
		display: flex !important;
		align-items: center;
		justify-content: center;
		box-sizing: border-box;
		width: 48px !important;
		height: 48px !important;
		padding: 0 !important;
		border-radius: 8px;
		background: #f1f2f6 !important;
		cursor: pointer;
	}
	body.tlb-hdr1 #main-header .mobile_nav:focus-visible,
	body.tlb-hdr1 #main-header .mobile_nav .mobile_menu_bar_toggle:focus-visible {
		outline: 3px solid #4d77ea;
		outline-offset: 2px;
	}
	/* The words stay for screen readers; the button shows the three-line icon only. */
	body.tlb-hdr1 #main-header .mobile_nav .select_page {
		position: absolute !important;
		width: 1px !important;
		height: 1px !important;
		margin: -1px !important;
		padding: 0 !important;
		overflow: hidden !important;
		clip: rect(0 0 0 0) !important;
		white-space: nowrap !important;
	}
	body.tlb-hdr1 #main-header .mobile_nav .mobile_menu_bar {
		position: static !important;
		display: block;
		top: auto !important;
		right: auto !important;
		padding: 0 !important;
		line-height: 1;
	}
	body.tlb-hdr1 #main-header .mobile_nav .mobile_menu_bar::before {
		position: static !important;
		top: auto !important;
	}
	/* The open menu: from the screen's left edge, the full screen wide, just under the row
	   (the row's 8px bottom padding below the 48px button), and it scrolls if it is longer
	   than the screen. */
	body.tlb-hdr1 #main-header #et_mobile_nav_menu .et_mobile_menu {
		position: absolute !important;
		top: calc(100% + 8px) !important;
		left: -16px !important;
		right: auto !important;
		width: 100vw !important;
		max-width: 100vw !important;
		margin: 0 !important;
		box-sizing: border-box !important;
		max-height: calc(100vh - 120px);
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: contain;
		z-index: 9999;
	}
}
