/* חוק הוגן · הפס העליון בטלפון (2.0.71). לוגו מימין, שדה חיפוש במרכז, כפתור תפריט משמאל.
   בגלילה שם האתר מתקפל והחיפוש מתרחב. למחיקה: שתי השורות של fairlaw-tb בקובץ functions.php. */
.tb-search { display: none; }

@media (max-width: 860px) {
	html.tb-ready .site-head .wrap, html.tb-ready .site-head .head-actions { flex-direction: row; }
	html.tb-ready .site-head .wrap { gap: 10px; }
	html.tb-ready .head-search-btn, html.tb-ready .head-ask { display: none !important; }

	.site-head .brand { flex: 0 0 auto; transition: gap .3s ease; }
	.site-head .brand-name { display: block; max-width: 120px; overflow: hidden; white-space: nowrap; transition: max-width .3s ease, opacity .2s ease; }
	html.tb-compact:not(.fm-open) .site-head .brand { gap: 0; }
	html.tb-compact:not(.fm-open) .site-head .brand-name { max-width: 0; opacity: 0; }

	html.tb-ready .tb-search {
		display: flex; align-items: center; gap: 8px;
		flex: 1 1 0; min-width: 0; height: 44px; margin: 0; padding: 0 10px;
		font: inherit; font-size: 16px; line-height: 1; color: var(--soft); text-align: start;
		background: #ECE9E1; border: 1px solid #C9C4B8; border-radius: var(--r-btn, 6px);
		box-shadow: inset 0 1px 3px rgba(27, 36, 48, .16);
		cursor: pointer; -webkit-tap-highlight-color: transparent;
		transition: opacity .15s ease-out;
	}
	.tb-search svg { flex: 0 0 auto; color: var(--navy); }
	.tb-search span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
	.tb-search:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
	html.fm-open .tb-search { opacity: 0; pointer-events: none; }

	html.tb-ready .site-head .menu-toggle {
		flex: 0 0 auto; width: 46px; height: 46px; min-width: 46px; padding: 0;
		background: #FBFAF7; border: 1px solid #D5D0C5; border-radius: var(--r-btn, 6px);
		box-shadow: 0 1px 0 #fff inset, 0 1px 2px rgba(27, 36, 48, .14), 0 2px 5px rgba(27, 36, 48, .07);
	}
	html.tb-ready .site-head .menu-toggle:active { transform: translateY(1px); box-shadow: inset 0 1px 3px rgba(27, 36, 48, .18); }

	.site-head { transition: border-color .2s ease; }
	html.tb-compact .site-head, html.fm-open .site-head { border-bottom-color: rgba(27, 36, 48, .16); }

	html.fm-open .fm-search { animation: tb-drop .3s cubic-bezier(.3, .7, .1, 1) both; }
	.fm-search input:focus { outline: 0; border-color: #8A5F00; box-shadow: inset 0 1px 3px rgba(27, 36, 48, .16), 0 0 0 2px var(--saffron, #E0A526); }

	@keyframes tb-drop { from { opacity: .3; transform: translateY(-44px) scaleX(.62); } to { opacity: 1; transform: none; } }
}

@media (max-width: 860px) and (prefers-reduced-motion: reduce) {
	.site-head .brand, .site-head .brand-name, .tb-search { transition: none; }
	html.fm-open .fm-search { animation: none; }
}


/* 2.0.77 tightening: logo, search and menu button share one height; smaller ask heading on phones; privacy line under the ask form */
@media (max-width: 860px) {
	html.tb-ready .site-head .menu-toggle { width: 44px; height: 44px; min-width: 44px; }
	.site-head .brand-mark { width: 44px; height: 44px; }
}
@media (max-width: 640px) {
	.ask .wrap { padding-top: 28px; }
	.ask h2 { font-size: 26px; }
}
.ask .ask-privacy { flex: 1 0 100%; margin: 2px 0 0; font-size: 15px; line-height: 1.5; color: var(--soft); }
.ask .ask-privacy a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
