/* Site layout touches on every front-end page, loaded by mu-plugins/site-layout.php. */

/* a narrower sidebar: 74% content, 26% sidebar on desktop (the theme's default is 2/3 and 1/3) */
@media only screen and (min-width: 970px) {
	.main-content-grid > #content.has-sidebar.layout-wide-right,
	.main-content-grid > #content.has-sidebar.layout-wide-left { width: 74%; }
	.main-content-grid > #sidebar-primary.layout-wide-right,
	.main-content-grid > #sidebar-primary.layout-wide-left { width: 26%; }
}

/* sidebar headings: copper bar with white text (instead of black), staying copper on hover */
.sidebar .widget-title,
.sidebar .widget:hover .widget-title {
	background: #94562a !important;
	border-color: #94562a !important;
	color: #fff !important;
	border-radius: 6px;
	padding: 9px 12px;
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .12em;
}
.sidebar .widget-title span,
.sidebar .widget:hover .widget-title span { background: none !important; color: inherit !important; }

/* the top bar (Hebrew date, top menu, social icons, search) centred as one group on tablets and computers;
   phones keep their own top bar rules (Code Snippets #24) */
@media only screen and (min-width: 768px) {
	#topbar .topbar-inner {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: center;
		gap: 4px 28px;
		width: 100%;
	}
	#topbar .topbar-part {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: center;
		gap: 4px 20px;
		width: auto;
		padding: 0;
		text-align: center;
	}
	#topbar .topbar-part > .widget { margin: 0; }
}
/* computers: the top menu, language buttons and search stay on one line */
@media only screen and (min-width: 970px) {
	#topbar #topbar-right { flex-wrap: nowrap; }
	#topbar #topbar-right > .widget { flex: none; }
}

/* Nothing may make the page wider than the screen (on phones that shrinks the whole site when zoomed out).
   clip, not hidden, so the sticky header keeps working. */
html, body { max-width: 100%; overflow-x: hidden; }
@supports (overflow-x: clip) { html, body { overflow-x: clip; } }
