.hqm-live-search { position: relative; min-width: 0; flex: 1 1 auto; width: 100%; }
.hqm-live-search > input { box-sizing: border-box; width: 100%; max-width: 100%; }
.hqm-live-search__menu {
    position: absolute; top: calc(100% + .4rem); inset-inline: 0; z-index: 100;
    background: #fff; color: #182033; border: 1px solid #d6e0d8; border-radius: 10px;
    box-shadow: 0 10px 28px rgb(24 32 51 / 15%); padding: .35rem; text-align: start;
    max-height: min(70vh, 34rem); overflow-y: auto; overscroll-behavior: contain;
}
.hqm-live-search__menu[hidden] { display: none !important; }
.hqm-live-search__status { font: 400 .8rem/1.4 system-ui, sans-serif; margin: .35rem .5rem; color: #546159; }
.hqm-live-search__item {
    display: flex; align-items: center; gap: .75rem; border-radius: 6px; padding: .5rem;
    color: #183d2b; text-decoration: none; min-width: 0; min-height: 4rem;
}
.hqm-live-search__item:hover, .hqm-live-search__item:focus-visible, .hqm-live-search__item[aria-selected="true"] { background: #eef5ef; outline: 2px solid #2f6f44; outline-offset: -2px; }
.hqm-live-search__picture { display: flex; justify-content: center; flex: 0 0 48px; width: 48px; height: 64px; background: #f4f6f2; border-radius: 3px; }
.hqm-live-search__picture img { width: 48px; height: 64px; object-fit: contain; object-position: center; margin: 0; }
.hqm-live-search__text { display: flex; flex-direction: column; gap: .2rem; min-width: 0; font: 400 .82rem/1.35 system-ui, sans-serif; }
.hqm-live-search__text strong { font: 700 .95rem/1.3 system-ui, sans-serif; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.hqm-live-search__text b { color: #2f6f44; }
.hqm-live-search__category { min-height: 2.75rem; flex-wrap: wrap; background: #f4f7f3; margin-bottom: .2rem; }
.hqm-live-search__category small { color: #546159; font: 400 .75rem/1.3 system-ui, sans-serif; }
.hqm-live-search__category strong { font: 700 .9rem/1.3 system-ui, sans-serif; overflow-wrap: anywhere; }
.hqm-live-search__text > span { color: #546159; overflow-wrap: anywhere; }
.hqm-live-search__menu .hqm-live-search__all { display: block; width: 100%; border: 0; border-top: 1px solid #e2e8e2; border-radius: 0; background: #fff; color: #185349; padding: .7rem .5rem; min-height: 44px; font: 700 .85rem/1.35 system-ui, sans-serif; cursor: pointer; text-align: center; }
.hqm-live-search__all:hover, .hqm-live-search__all:focus-visible { text-decoration: underline; }
@media (max-width: 640px) { .hqm-live-search__menu { max-height: min(60vh, 30rem); } }

/* The shared header dropdown spans the complete search control, including its button. */
.ib-header-search .wp-block-search__inside-wrapper { position: relative; }
.ib-header-search .hqm-live-search { position: static; }

/* Hero artwork keeps its normal clipping until its own search dropdown is open. */
.hqm-hero:has(.hqm-live-search [aria-expanded="true"]),
.hqm-visual-card:has(.hqm-live-search [aria-expanded="true"]) { overflow: visible; z-index: 2; }
