/*
 * Layout fixes (2026 refactor). Loaded after every other theme stylesheet. Each rule fixes
 * something that overlapped or broke; none changes the design at the widths it was made for.
 */

/*
 * Desktop menu: at narrower desktop widths (about 1001-1439px) the menu wrapped onto a second
 * line, the fixed header grew taller and covered the top of the page (search bar, categories,
 * first cards). The menu text now shrinks just enough to stay on one line; at 1440px and wider
 * it is the original 25px.
 */
@media (min-width: 768px) {
	html.small-font .main-nav ul.menu > li > a {
		font-size: min(2.5rem, 1.74vw);
	}

	.main-nav ul.menu {
		white-space: nowrap;
	}
}

/*
 * Home and listing category row ("ביה"ס למנכ"ליות העתיד, דירקטוריות, מנטוריות, מרצות"): its box
 * was 420-535px wide inside a fixed 55px-tall bar, so the four links wrapped onto a second row
 * that ran over the cards below. They now take the width they need on one row.
 */
.services-icons-section-wrapper {
	width: auto !important;
	max-width: 100%;
}

.services-icons-wrapper {
	height: auto !important;
	min-height: 55px;
}

.services-icons-wrapper::after {
	content: "";
	display: table;
	clear: both;
}

/*
 * Pages whose content started underneath the fixed desktop header (122px). With the admin bar
 * showing, signed-in editors never saw it; visitors did.
 * - Search results: the category row and the field/name search bar were hidden.
 * - Category archives: the top 10px of the banner image.
 * The padding also stops #top_wrapper's 48px margin from collapsing into its child's, so the
 * values here are smaller than the overlap they fix.
 */
@media (min-width: 768px) {
	body.search #top_wrapper {
		padding-top: 22px;
	}

	body.archive #top_wrapper {
		padding-top: 12px;
	}
}

/*
 * Newsletter consent ("אני מאשר.ת את מדיניות הפרטיות באתר"). The footer form sets font-size: 0
 * (to close gaps between inline-blocks), and the consent text got its size from a style: option
 * in the Contact Form 7 form. CF7 6.x no longer prints that option, so the text vanished.
 * Size and colour now come from the theme (#aaa: 4.8:1 on the dark footer).
 */
.wpcf7-acceptance .wpcf7-list-item-label {
	font-size: 15px;
	font-weight: 700;
	color: #aaa;
}

.wpcf7-acceptance .wpcf7-list-item-label a {
	color: #aaa;
	text-decoration: underline;
}
