/*
 * The site header between the desktop and the mobile menu: one line from 1449px down to
 * 1025px. Below 1025px Elementor's tablet breakpoint (1024px) hides the desktop menu and
 * the buttons and shows the mobile menu; nothing here applies there.
 *
 * The header is the Elementor theme-builder template #336 ("header" location), not
 * header.php. Its layout is edited in Elementor and stored in the database; these rules
 * are in the theme so they deploy as a file. They target the template's element IDs:
 *   5971d56  the header row        2322c94 / 4acb0eb  the desktop menu
 *   fbd2e6e  the logo               8e224b9 / f0de721  the search field
 *   592aebb  the two buttons ("התחברות", "הרשמת בעלי מקצוע")
 * If the template is rebuilt with new IDs, these rules stop applying (the header returns
 * to Elementor's own layout); nothing breaks.
 *
 * Logo, menu and buttons keep their content width and never wrap; the search field takes
 * what is left, between a floor and its width at 1450px. Gaps, menu padding and font size
 * step down in two ranges. Each selector starts with "body" to outrank Elementor's inline
 * rules for the same elements, which print after this file.
 */

@media (min-width: 1025px) and (max-width: 1449px) {
	body .elementor-location-header .elementor-element.elementor-element-5971d56 {
		--column-gap: 12px;
	}

	/* The logo: may shrink, not below 120px (its size near 1025px before this file). */
	body .elementor-location-header .elementor-element.elementor-element-fbd2e6e {
		min-width: 120px;
	}

	/* The menu: one line, at its content width. */
	body .elementor-location-header .elementor-element.elementor-element-2322c94 {
		flex: 0 0 auto;
		width: auto;
	}
	body .elementor-location-header .elementor-element.elementor-element-4acb0eb nav.elementor-nav-menu--main > .elementor-nav-menu {
		flex-wrap: nowrap;
	}
	body .elementor-location-header .elementor-element.elementor-element-4acb0eb nav.elementor-nav-menu--main .elementor-item {
		padding-inline: 12px;
		font-size: 15px;
		white-space: nowrap;
	}

	/* The search field: takes the remaining width, from 140px up to its 1450px width. */
	body .elementor-location-header .elementor-element.elementor-element-8e224b9 {
		flex: 1 1 auto;
		width: auto;
		min-width: 140px;
		max-width: 231px;
	}
	body .elementor-location-header .elementor-element.elementor-element-f0de721 {
		flex: 1 1 auto;
		width: 100%;
		min-width: 0;
	}

	/* The buttons: at their content width, each label on one line. */
	body .elementor-location-header .elementor-element.elementor-element-592aebb {
		flex: 0 0 auto;
		width: auto;
		--column-gap: 12px;
		--gap: 12px 12px;
	}
	body .elementor-location-header .elementor-element.elementor-element-592aebb .elementor-button {
		padding-inline: 18px;
		white-space: nowrap;
	}
}

@media (min-width: 1025px) and (max-width: 1200px) {
	body .elementor-location-header .elementor-element.elementor-element-5971d56 {
		--column-gap: 8px;
	}
	body .elementor-location-header .elementor-element.elementor-element-4acb0eb nav.elementor-nav-menu--main .elementor-item {
		padding-inline: 7px;
		font-size: 14px;
	}
	body .elementor-location-header .elementor-element.elementor-element-592aebb {
		--column-gap: 8px;
		--gap: 8px 8px;
	}
	body .elementor-location-header .elementor-element.elementor-element-592aebb .elementor-button {
		padding-inline: 11px;
		font-size: 14px;
	}
}
