/* Site search: suggestions under the search boxes, and the results page. Loaded by mu-plugins/site-search.php. */
.jo-suggest { position: absolute; top: 100%; left: 0; right: 0; z-index: 999; min-width: 280px; margin-top: 4px; padding: 6px; background: #fff; border: 1px solid #ecdcc4; border-radius: 12px; box-shadow: 0 12px 32px rgba(31, 27, 22, .18); text-align: start; }
.jo-suggest[hidden] { display: none; }
.jo-suggest a { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; align-items: baseline; padding: 8px 10px; border-radius: 8px; color: #1f1b16 !important; text-decoration: none !important; font-size: .92rem; line-height: 1.35; text-transform: none; letter-spacing: normal; }
.jo-suggest a:hover, .jo-suggest a.on { background: #faf3e8; }
.jo-suggest-kind { grid-row: span 2; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #94562a; white-space: nowrap; }
.jo-suggest-title { font-weight: 600; }
.jo-suggest-date { grid-column: 2; font-size: .78rem; color: #6B6A63; }
.jo-suggest a.jo-suggest-all { display: block; margin-top: 4px; border-top: 1px solid #f0e6d6; border-radius: 0 0 8px 8px; font-size: .84rem; font-weight: 600; color: #94562a !important; }
#topbar .jo-suggest { width: 340px; left: auto; right: 0; }
body.rtl #topbar .jo-suggest { right: auto; left: 0; }

/* results page */
.jo-sr { max-width: 820px; margin: 0 auto; padding: 28px 0 40px; }
.jo-sr-title { margin: 0 0 14px; font-family: Lora, Georgia, serif; font-size: 2rem; color: #1f1b16; }
.jo-sr form.searchform { position: relative; display: flex; gap: 8px; max-width: 620px; margin: 0 0 18px; }
.jo-sr form.searchform .fa-search { display: none; }
.jo-sr form.searchform .searchtext { flex: 1; padding: 12px 18px; border: 1.5px solid #e2cfb4; border-radius: 999px; font-size: 1.05rem; background: #fff; }
.jo-sr form.searchform .searchtext:focus { outline: 0; border-color: #b87333; box-shadow: 0 0 0 3px rgba(184, 115, 51, .18); }
.jo-sr form.searchform .submit { padding: 12px 22px; border: 0; border-radius: 999px; background: #94562a; color: #fff; font-weight: 600; cursor: pointer; }
.jo-sr-count { margin: 0 0 16px; color: #6B6A63; font-size: .92rem; }
.jo-sr-list { list-style: none; margin: 0; padding: 0; }
.jo-sr-item { margin: 0 0 12px; padding: 14px 18px; background: #fff; border: 1px solid #ecdcc4; border-radius: 12px; }
.jo-sr-kind { display: block; margin-bottom: 2px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #94562a; }
.jo-sr-link { font-family: Lora, Georgia, serif; font-size: 1.18rem; font-weight: 600; color: #1f1b16; text-decoration: none; }
.jo-sr-link:hover { color: #94562a; text-decoration: underline; }
.jo-sr-date { display: block; margin-top: 3px; font-size: .86rem; color: #3f7a55; font-weight: 600; }
.jo-sr-snippet { margin: 6px 0 0; font-size: .93rem; line-height: 1.55; color: #4a453d; }
.jo-sr-mean { font-size: 1.05rem; }
.jo-sr-tips { color: #6B6A63; }

/* Header search: a real search box, always visible (the theme draws it as a collapsed icon that only opens on
   click). It widens over the menu when focused, so the menu never moves. */
#header .js-search .widget_search { position: relative; width: 230px; height: 42px; margin: 0 0 0 10px; }
#header .js-search form.jo-search,
#header .js-search form.jo-search.expand {
	position: absolute !important; top: 0; right: 0; bottom: auto; left: auto; z-index: 50;
	display: flex; align-items: center; width: 230px; height: 42px; box-sizing: border-box; padding: 0 14px 0 40px;
	background: #faf6f0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394562a' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m15.5 15.5 5 5'/%3E%3C/svg%3E") no-repeat 14px 50% / 18px 18px;
	border: 1.5px solid #e2cfb4; border-radius: 999px; transition: width .2s ease, border-color .2s, box-shadow .2s, background-color .2s;
}
#header .js-search form.jo-search:hover { border-color: #c9a27a; }
#header .js-search form.jo-search:focus-within { width: 340px; background-color: #fff; border-color: #b87333; box-shadow: 0 0 0 3px rgba(184, 115, 51, .18), 0 8px 24px rgba(31, 27, 22, .12); }
#header .js-search form.jo-search i.fa-search,
#header .js-search form.jo-search .js-search-placeholder,
#header .js-search form.jo-search .submit { display: none !important; }
#header .js-search form.jo-search .searchtext,
#header .js-search form.jo-search.expand .searchtext {
	position: static !important; clip: auto !important; clip-path: none !important; overflow: visible;
	flex: 1; width: 100%; height: 100%; min-width: 0; margin: 0; padding: 0; border: 0; outline: 0; background: transparent !important; box-shadow: none;
	font: 500 14px/1 "Open Sans", sans-serif; text-transform: none; letter-spacing: normal; color: #1f1b16 !important;
}
#header .js-search form.jo-search .searchtext::placeholder { color: #8a7a68; opacity: 1; }
#header .js-search form.jo-search .searchtext::-webkit-search-cancel-button { cursor: pointer; }
#header .js-search .jo-suggest { left: 0; right: 0; width: auto; min-width: 0; }
body.rtl #header .js-search form.jo-search { right: auto; left: 0; padding: 0 40px 0 14px; background-position: right 14px center; }
body.rtl #header .js-search .widget_search { margin: 0 10px 0 0; }

/* computers with a narrower window: a little smaller */
@media only screen and (min-width: 970px) and (max-width: 1199px) {
	#header .js-search .widget_search,
	#header .js-search form.jo-search { width: 170px; }
	#header .js-search form.jo-search:focus-within { width: 300px; }
}
/* phones and tablets: a full-width box under the logo and menu button */
@media only screen and (max-width: 969px) {
	#header .menu-side-box { width: 100%; min-width: 0; padding: 4px 0 10px; justify-content: center; }
	#header .js-search .widget_search { width: 100%; max-width: 560px; margin: 0 auto; }
	#header .js-search form.jo-search,
	#header .js-search form.jo-search:focus-within { width: 100%; }
}

/* Top bar search (black bar): the same box, in a dark version */
#topbar .widget_search { position: relative; width: 200px; height: 30px; vertical-align: middle; }
#topbar.js-search form.jo-search,
#topbar.js-search form.jo-search.expand {
	position: absolute !important; top: 0; right: 0; bottom: auto; left: auto; z-index: 60;
	display: flex; align-items: center; width: 200px; height: 30px; box-sizing: border-box; padding: 0 12px 0 32px;
	background: rgba(255, 255, 255, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2c94c' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m15.5 15.5 5 5'/%3E%3C/svg%3E") no-repeat 12px 50% / 14px 14px;
	border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; transition: width .2s ease, border-color .2s, background-color .2s;
}
#topbar.js-search form.jo-search:hover { border-color: rgba(255, 255, 255, .5); }
#topbar.js-search form.jo-search:focus-within { width: 320px; background-color: rgba(255, 255, 255, .18); border-color: #f2c94c; }
#topbar.js-search form.jo-search i.fa-search,
#topbar.js-search form.jo-search .js-search-placeholder,
#topbar.js-search form.jo-search .submit { display: none !important; }
#topbar.js-search form.jo-search .searchtext,
#topbar.js-search form.jo-search.expand .searchtext {
	position: static !important; clip: auto !important; clip-path: none !important; overflow: visible;
	flex: 1; width: 100%; height: 100%; min-width: 0; margin: 0; padding: 0; border: 0; outline: 0; background: transparent !important; box-shadow: none;
	font: inherit; font-size: 1em; line-height: 1; text-transform: none; letter-spacing: normal; color: #fff !important;
}
#topbar.js-search form.jo-search .searchtext::placeholder { color: rgba(255, 255, 255, .7); opacity: 1; }
#topbar .jo-suggest { top: calc(100% + 4px); }
body.rtl #topbar.js-search form.jo-search { right: auto; left: 0; padding: 0 32px 0 12px; background-position: right 12px center; }
