/*
 * Header fit (needed once "Language" was added after "Contact").
 *
 * The 9 menu items + centred logo only fit on wide screens (the original header already ran off
 * the screen below ~1450px). So:
 * - >= 1400px: desktop header, menu spacing shrinks fluidly (50px, the original, from ~1740px up).
 * - < 1400px:  the mobile header (logo + hamburger) is used, like on tablets.
 * The matching JS breakpoint is set in qaboos_header_breakpoint_script() (bootstrap.php).
 */
html #header [data-device="desktop"] .menu-container {
	--menu-items-spacing: clamp(16px, calc(10vw - 124px), 50px);
}

@media (min-width: 1000px) and (max-width: 1399.98px) {
	#header [data-device="desktop"],
	#offcanvas [data-device="desktop"] {
		display: none;
	}

	#header [data-device="mobile"] {
		display: block;
	}

	#offcanvas .ct-panel-content[data-device="mobile"] {
		display: flex;
	}

	/* Blocksy's tablet values (from its dynamic CSS for max-width 999.98px). */
	html [data-header*="type-1"] .ct-header [data-row*="middle"] {
		--height: 70px;
	}

	html [data-header*="type-1"] #offcanvas {
		--side-panel-width: 65vw;
	}

	html [data-header*="type-1"] {
		--header-height: 70px;
	}
}
