/**
 * enitan hope · G-02a Search suggestions (canvas SearchSuggest; inc/search.php, assets/js/search.js).
 * Desktop: a 760px panel under the header search, with a dimmed layer over the page below the
 * header. Mobile: live results inside the G-02b overlay (its base styles are in shell.css; the
 * rows, chips and thumbnails reuse the eh-sov__ classes). Tokens only.
 */

.eh-sg__empty[hidden], .eh-sg__res[hidden], .eh-sg__bar[hidden], .eh-sg[hidden], .eh-sg-scrim[hidden] { display: none !important; }

/* ---------- Desktop panel ---------- */
.eh-hsearch--sg { position: relative; }
.eh-sg--d {
	position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%); z-index: 60;
	width: 760px; max-width: calc(100vw - 40px); box-sizing: border-box;
	display: flex; flex-direction: column;
	background: var(--wp--preset--color--white); color: var(--wp--preset--color--ink);
	border: var(--wp--custom--eh--border); box-shadow: 0 24px 56px rgba(26, 26, 26, .18);
	font-family: var(--wp--preset--font-family--sans); text-align: left;
}
.eh-sg__scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.eh-sg--d .eh-sg__empty { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding: 28px 32px 24px; }
.eh-sg--d .eh-sg__res { padding: 28px 32px 24px; }
.eh-sg--d .eh-sg__grid { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 40px; align-items: start; }
.eh-sg--d .eh-sg__grid:has(> .eh-sg__left:empty) { grid-template-columns: minmax(0, 1fr); }
.eh-sg__left:empty { display: none; }
.eh-sg-scrim { position: fixed; left: 0; right: 0; top: 0; bottom: 0; z-index: 49; background: rgba(26, 26, 26, .32); } /* header is z-index 50 */

/* Footer line: "Press Enter to see all results" + link. */
.eh-sg__bar--d { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 4px 32px 18px; border-top: var(--wp--custom--eh--border); }
.eh-sg__hint { font-size: var(--wp--preset--font-size--meta); color: var(--wp--preset--color--stone); }
.eh-sg__all, .eh-sg__all:visited {
	padding: 14px 0 3px; border-bottom: var(--wp--custom--eh--border-strong);
	font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
	color: var(--wp--preset--color--ink); text-decoration: none;
	transition: border-color var(--wp--custom--eh--motion), box-shadow var(--wp--custom--eh--motion);
}
@media (hover: hover) and (pointer: fine) { .eh-sg__all:hover { border-bottom-color: var(--wp--preset--color--yellow); box-shadow: 0 1px 0 var(--wp--preset--color--yellow); } }
.eh-sg__all:active { color: var(--wp--preset--color--stone); }
.eh-sg a:focus-visible { outline: var(--wp--custom--eh--focus); outline-offset: 2px; }

/* ---------- Results (both) ---------- */
.eh-sov .eh-sg__empty, .eh-sov .eh-sg__res, .eh-sov .eh-sg__grid { display: flex; flex-direction: column; gap: 28px; }
.eh-sg__left { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.eh-sg__sec { min-width: 0; }
.eh-sg__sec > .eh-sov__h { margin-bottom: 8px; }
.eh-sg__ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.eh-sg__ul li { margin: 0; }
.eh-sg__term, .eh-sg__term:visited {
	display: flex; align-items: center; gap: 12px; min-height: var(--wp--custom--eh--tap);
	font-size: 15px; color: var(--wp--preset--color--ink); text-decoration: none;
}
.eh-sg__term svg { flex: none; color: var(--wp--preset--color--stone); }
.eh-sg__t {
	min-width: 0;
	text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 5px;
	transition: text-decoration-color var(--wp--custom--eh--motion);
}
@media (hover: hover) and (pointer: fine) { .eh-sg__term:hover .eh-sg__t { text-decoration-color: var(--wp--preset--color--yellow); } }
.eh-sg__term:active .eh-sg__t { color: var(--wp--preset--color--stone); }
.eh-sg__res b, .eh-sg__none b { font-weight: 600; }
.eh-sg__tag { margin-left: auto; padding-left: 12px; font-size: 12px; color: var(--wp--preset--color--stone); white-space: nowrap; }
.eh-sg__price { margin-left: auto; padding-left: 12px; font-size: var(--wp--preset--font-size--small); font-weight: 500; white-space: nowrap; }
.eh-sg__card { color: var(--wp--preset--color--ink); }
.eh-sg__none { display: flex; flex-direction: column; gap: 16px; }
.eh-sg__none p { margin: 0; }
.eh-sg__none-t { font-size: 15px; }

/* ---------- Mobile overlay: button bar at the bottom ---------- */
.eh-sg__bar--m { flex: none; padding: 12px 20px 20px; border-top: var(--wp--custom--eh--border); background: var(--wp--preset--color--white); }

@media (prefers-reduced-motion: reduce) { .eh-sg *, .eh-sov .eh-sg__res * { transition: none !important; } }
