/* Sephardic U Search 1.0.0 */
.sus, .suh, .susr, .sus-overlay {
	--su-dark: #001317;
	--su-gold: #fecd8b;
	--su-gold-line: #b69967;
	--su-gold-ink: #7a5c28;
	--su-ink: #001317;
	--su-muted: #44575b;
	--su-hover: #fff4e0;
	--su-font: "Rubik Font", Rubik, system-ui, sans-serif;
	--su-font-btn: Montserrat, "Rubik Font", system-ui, sans-serif;
	box-sizing: border-box;
}
.sus *, .suh *, .susr *, .sus-overlay * { box-sizing: border-box; }
.sus-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------------- Search box ---------------- */
.sus { position: relative; font-family: var(--su-font); }
.sus-form { position: relative; display: flex; align-items: center; margin: 0; }
.sus .sus-input {
	width: 100%; height: 40px; margin: 0; padding: 0 70px 0 14px;
	font: 400 16px/1 var(--su-font); color: #fff;
	background: transparent; border: 1.6px solid var(--su-gold); border-radius: 10px;
	box-shadow: none; outline: none; -webkit-appearance: none; appearance: none;
	transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.sus .sus-input::placeholder { color: var(--su-gold); opacity: .9; }
.sus .sus-input::-webkit-search-cancel-button, .sus .sus-input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
/* Replaces the theme's white focus ring with a soft gold one. */
.sus .sus-input:focus, .sus .sus-input:focus-visible {
	outline: none; border-color: var(--su-gold);
	box-shadow: 0 0 0 3px rgba(254, 205, 139, .32);
	background-color: rgba(255, 255, 255, .04);
}
.sus button.sus-clear, .sus button.sus-submit, .sus button.sus-toggle {
	display: inline-flex; align-items: center; justify-content: center;
	margin: 0; padding: 0; border: 0; background: transparent; color: var(--su-gold);
	cursor: pointer; border-radius: 8px; line-height: 0; box-shadow: none; min-height: 0;
}
.sus button.sus-clear { position: absolute; right: 38px; width: 30px; height: 30px; opacity: .8; }
.sus button.sus-submit { position: absolute; right: 4px; width: 34px; height: 34px; }
.sus button.sus-clear:hover, .sus button.sus-submit:hover, .sus button.sus-clear:focus, .sus button.sus-submit:focus { background: rgba(254, 205, 139, .14); color: var(--su-gold); border: 0; }
.sus button.sus-clear[hidden] { display: none; }
.sus button:focus-visible, .sus-overlay button:focus-visible, .suh a:focus-visible, .susr button:focus-visible, .susr a:focus-visible {
	outline: 2px solid var(--su-gold); outline-offset: 2px; box-shadow: none;
}
.sus button.sus-toggle { display: none; width: 44px; height: 44px; color: #fff; }
.sus-toggle svg { width: 24px; height: 24px; }
.sus button.sus-toggle:hover, .sus button.sus-toggle:focus { background: rgba(255, 255, 255, .08); color: var(--su-gold); border: 0; }
.sus--icon .sus-form { display: none; }
.sus--icon button.sus-toggle { display: inline-flex; }

/* Light version, for use on white or gold content areas. */
.sus--light .sus-input { color: var(--su-ink); background: #fff; border-color: var(--su-gold-line); }
.sus--light .sus-input::placeholder { color: #6d7d80; }
.sus--light .sus-input:focus, .sus--light .sus-input:focus-visible { background: #fff; border-color: var(--su-gold-line); box-shadow: 0 0 0 3px rgba(182, 153, 103, .28); }
.sus--light button.sus-submit, .sus--light button.sus-clear, .sus--light button.sus-submit:hover, .sus--light button.sus-clear:hover { color: var(--su-gold-ink); }
.sus--light button.sus-toggle { color: var(--su-ink); }

/* ---------------- Results dropdown ---------------- */
.sus-panel {
	position: absolute; z-index: 10050; top: calc(100% + 10px); right: 0;
	width: min(460px, calc(100vw - 24px)); max-height: min(72vh, 640px); overflow-y: auto; overscroll-behavior: contain;
	padding: 6px; background: #fff; color: var(--su-ink); text-align: left;
	border-radius: 14px; box-shadow: 0 18px 50px rgba(0, 19, 23, .28), 0 2px 6px rgba(0, 19, 23, .12);
	animation: sus-drop .14s ease-out;
}
.sus-panel[hidden] { display: none; }
@keyframes sus-drop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.sus-group + .sus-group { margin-top: 2px; border-top: 1px solid #f1ebe0; }
.sus-gh { padding: 10px 10px 4px; font: 700 11.5px/1.2 var(--su-font-btn); letter-spacing: .08em; text-transform: uppercase; color: var(--su-gold-ink); }
.sus-note { padding: 8px 10px 0; font-size: 12.5px; color: var(--su-muted); font-style: italic; }
.sus-opt {
	display: flex; gap: 12px; align-items: center; padding: 7px 10px; border-radius: 10px;
	color: var(--su-ink); text-decoration: none !important; outline: none;
}
.sus-opt[aria-selected="true"] { background: var(--su-hover); }
.sus-thumb { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 8px; overflow: hidden; background: #f3eee5; }
.sus-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; border-radius: 0; }
.sus-ph { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; background: var(--su-dark); color: var(--su-gold); font: 700 13px/1 var(--su-font-btn); }
.sus-ph--synagogue { background: #2a3d3f; }
.sus-ph--figure { background: #4b3a1c; }
.sus-ph--almanac { background: #3b2f45; }
.sus-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sus-title { font: 600 15px/1.3 var(--su-font); color: var(--su-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sus-sub { font-size: 13px; line-height: 1.35; color: var(--su-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sus-panel mark, .susr mark { background: rgba(254, 205, 139, .6); color: inherit; border-radius: 3px; padding: 0 1px; }
.sus-opt--top { padding: 10px; margin: 2px 0 4px; background: #fffaf1; border: 1px solid #f3e2c2; }
.sus-opt--top[aria-selected="true"] { background: var(--su-hover); }
.sus-opt--top .sus-thumb { flex-basis: 56px; width: 56px; height: 56px; }
.sus-opt--top .sus-title { font-size: 16.5px; }
.sus-opt--top .sus-sub { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sus-lang { display: inline-block; vertical-align: 2px; margin-left: 4px; padding: 1px 4px; font: 700 10px/1.2 var(--su-font-btn); color: var(--su-gold-ink); border: 1px solid var(--su-gold-line); border-radius: 4px; }
.sus-all { display: block; margin-top: 4px; padding: 11px 10px; border-top: 1px solid #f1ebe0; font: 600 14px/1.2 var(--su-font); color: var(--su-ink) !important; text-decoration: none !important; border-radius: 0 0 10px 10px; }
.sus-all span { color: var(--su-muted); font-weight: 400; }
.sus-all:hover, .sus-all:focus-visible { background: var(--su-hover); }
.sus-msg { padding: 16px 14px; font-size: 14.5px; line-height: 1.5; color: #33464a; }

/* ---------------- Full-screen search (tablet & mobile) ---------------- */
html.sus-lock, html.sus-lock body { overflow: hidden !important; }
.sus-overlay { position: fixed; inset: 0; z-index: 100000; background: var(--su-dark); opacity: 0; transition: opacity .16s ease; display: flex; flex-direction: column; }
.sus-overlay[hidden] { display: none; }
.sus-overlay.is-in { opacity: 1; }
.sus--overlay { display: flex; flex-direction: column; height: 100%; }
.sus-obar { display: flex; gap: 8px; align-items: center; padding: max(14px, env(safe-area-inset-top)) 14px 12px; }
.sus-obar .sus-form { flex: 1; }
.sus-overlay .sus-input { height: 46px; font-size: 17px; }
.sus-overlay button.sus-oclose:hover, .sus-overlay button.sus-oclose:focus { background: rgba(254, 205, 139, .14); color: var(--su-gold); border: 0; }
.sus-overlay button.sus-oclose { flex: 0 0 auto; height: 44px; padding: 0 10px; border: 0; background: transparent; color: var(--su-gold); font: 600 15px/1 var(--su-font-btn); cursor: pointer; border-radius: 8px; }
.sus-overlay .sus-panel { position: static; width: auto; max-height: none; flex: 0 1 auto; align-self: stretch; margin: 0 10px max(10px, env(safe-area-inset-bottom)); animation: none; box-shadow: none; }
.sus-overlay .sus-panel:empty { background: transparent; }
.sus-overlay .sus-opt { padding: 9px 10px; }

/* ---------------- Header ---------------- */
.suh { width: 100%; height: 80px; background: var(--su-dark); font-family: var(--su-font); }
.suh-inner { width: min(1125px, 95%); height: 100%; margin: 0 auto; display: flex; align-items: center; gap: 28px; }
.suh-logo { flex: 0 0 auto; display: flex; align-items: center; line-height: 0; border-radius: 50%; }
.suh-logo img { width: 60px; height: 60px; object-fit: contain; }
.suh-logo-text { color: #fff; font: 800 20px/1 var(--su-font); line-height: 1; }
.suh-nav { flex: 1 1 auto; min-width: 0; }
.suh-nav ul { display: flex; gap: 26px; margin: 0; padding: 0; list-style: none; }
.suh-nav li { margin: 0; padding: 0; }
.suh-link {
	position: relative; display: inline-block; padding: 6px 0;
	font: 700 18px/1.3 var(--su-font); text-transform: uppercase; color: #fff !important; text-decoration: none !important; white-space: nowrap;
}
.suh-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--su-gold); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.suh-link:hover, .suh-link:focus-visible { color: var(--su-gold) !important; }
.suh-link:hover::after, .suh-link[aria-current="page"]::after { transform: scaleX(1); }
.suh-actions { flex: 0 0 auto; margin-left: auto; display: flex; align-items: center; gap: 16px; }
.suh-search { width: 240px; }
.suh-donate {
	display: inline-flex; align-items: center; height: 40px; padding: 0 16px;
	font: 700 16px/1 var(--su-font-btn); text-transform: uppercase; color: var(--su-ink) !important; text-decoration: none !important;
	background: var(--su-gold); border: .8px solid var(--su-gold-line); border-radius: 12px; transition: background-color .15s, transform .15s;
}
.suh-donate:hover, .suh-donate:focus-visible { background: #ffdba8; transform: translateY(-1px); }

/* Menu button: bars slide in on load, nudge on hover, become an X while the menu is open. */
.suh-burger { position: relative; display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; padding: 0 7px; border-radius: 8px; cursor: pointer; text-decoration: none !important; }
.suh-burger span { display: block; height: 3px; width: 100%; background: #fff; border-radius: 3px; transform-origin: right center; transition: transform .22s ease, width .22s ease, background-color .15s, opacity .15s; animation: suh-bar .55s cubic-bezier(.2, .8, .2, 1) .25s both; }
.suh-burger span:nth-child(2) { animation-delay: .34s; }
.suh-burger span:nth-child(3) { animation-delay: .43s; }
@keyframes suh-bar { 0% { transform: scaleX(0); } 70% { transform: scaleX(1.08); } 100% { transform: scaleX(1); } }
.suh-burger:hover span, .suh-burger:focus-visible span { background: var(--su-gold); }
.suh-burger:hover span:nth-child(2) { width: 70%; }
.suh-burger:hover span:nth-child(3) { width: 85%; }
.suh-burger.is-open span { animation: none; transform-origin: center; width: 100%; }
.suh-burger.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.suh-burger.is-open span:nth-child(2) { opacity: 0; }
.suh-burger.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 1180px) and (min-width: 1025px) {
	.suh-inner { gap: 20px; }
	.suh-nav ul { gap: 18px; }
	.suh-link { font-size: 16px; }
	.suh-search { width: 190px; }
}
/* Tablet & mobile (matches Elementor's 1024px breakpoint): logo, search icon, menu button. */
@media (max-width: 1024px) {
	.sus--auto .sus-form, .sus--auto .sus-panel { display: none !important; }
	.sus--auto button.sus-toggle { display: inline-flex; }
	.suh-nav, .suh-donate { display: none; }
	.suh-search { width: auto; }
	.suh-actions { gap: 6px; }
	.suh-logo img { width: 54px; height: 54px; }
}

/* ---------------- "See all results" page ---------------- */
.susr { max-width: 900px; margin: 0 auto; padding: clamp(18px, 4vw, 32px); background: #fff; border-radius: 20px; color: var(--su-ink); font-family: var(--su-font); }
.susr-form { display: flex; gap: 10px; margin: 0 0 14px; }
.susr .susr-input {
	flex: 1; min-width: 0; height: 52px; margin: 0; padding: 0 16px; font: 400 18px/1 var(--su-font); color: var(--su-ink);
	background: #fff; border: 1.6px solid var(--su-gold-line); border-radius: 12px; box-shadow: none; outline: none;
}
.susr .susr-input:focus, .susr .susr-input:focus-visible { border-color: var(--su-gold-line); box-shadow: 0 0 0 3px rgba(182, 153, 103, .28); outline: none; }
.susr button.susr-submit { display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 20px; border: .8px solid var(--su-gold-line); border-radius: 12px; background: var(--su-gold); color: var(--su-ink); font: 700 15px/1 var(--su-font-btn); text-transform: uppercase; cursor: pointer; }
.susr button.susr-submit:hover, .susr button.susr-submit:focus { background: #ffdba8; color: var(--su-ink); border-color: var(--su-gold-line); }
.susr-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.susr-filters[hidden] { display: none; }
.susr .susr-filters button { margin: 0; white-space: nowrap; padding: 7px 13px; border: 1px solid #dcc9a3; border-radius: 999px; background: #fff; color: var(--su-ink); font: 600 13.5px/1 var(--su-font); cursor: pointer; }
.susr .susr-filters button span { color: var(--su-muted); font-weight: 400; margin-left: 3px; }
.susr .susr-filters button:hover, .susr .susr-filters button:focus { background: var(--su-hover); color: var(--su-ink); border-color: var(--su-gold-line); }
.susr .susr-filters button[aria-pressed="true"] { background: var(--su-dark); border-color: var(--su-dark); color: var(--su-gold); }
.susr .susr-filters button[aria-pressed="true"] span { color: #c9d3d4; }
.susr-status { margin: 10px 2px; font-size: 14px; color: var(--su-muted); }
.susr-list { display: flex; flex-direction: column; }
.susr-item { display: flex; gap: 16px; padding: 14px 10px; border-bottom: 1px solid #f0e8d9; color: var(--su-ink) !important; text-decoration: none !important; border-radius: 10px; }
.susr-item:hover, .susr-item:focus-visible { background: #fffaf1; }
.susr-item--top { background: #fffaf1; border: 1px solid #f3e2c2; margin-bottom: 6px; }
.susr-thumb { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: #f3eee5; }
.susr-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; }
.susr-thumb .sus-ph svg { width: 28px; height: 28px; }
.susr-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.susr-type { font: 700 11.5px/1.2 var(--su-font-btn); letter-spacing: .07em; text-transform: uppercase; color: var(--su-gold-ink); }
.susr-title { font: 600 18px/1.3 var(--su-font); }
.susr-sub { font-size: 13.5px; color: var(--su-muted); }
.susr-desc { font-size: 14.5px; line-height: 1.5; color: #33464a; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.susr button.susr-more { display: block; margin: 18px auto 0; padding: 11px 22px; border: 1.2px solid var(--su-gold-line); border-radius: 12px; background: #fff; color: var(--su-ink); font: 600 15px/1 var(--su-font); cursor: pointer; }
.susr button.susr-more[hidden] { display: none; }
.susr button.susr-more:hover, .susr button.susr-more:focus { background: var(--su-hover); color: var(--su-ink); border-color: var(--su-gold-line); }
@media (max-width: 600px) {
	.susr-submit span { display: none; }
	.susr-thumb { flex-basis: 52px; width: 52px; height: 52px; }
	.susr-title { font-size: 16.5px; }
}

@media (prefers-reduced-motion: reduce) {
	.sus-panel, .suh-burger span { animation: none !important; }
	.suh-burger span { transition: none; }
	.sus-overlay { transition: none; }
}
