/* ============================================================================
   assets/css/search-suggest.css

   The suggestion dropdown under the search drawer's input. Loaded site-wide
   from _top_assets.cfm, after site.css.

   The form gets position: relative here so the box can hang from the input
   it belongs to; site.css gives that form flex and nothing positional, so
   this changes nothing visible about the drawer itself.
   ========================================================================= */

.search-drawer form {
    position: relative;
}

.search-suggest {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 1100;
    width: 380px;
    max-width: 92vw;
    overflow: hidden;
    background-color: #ffffff;
    border: 1px solid rgb(75, 48, 29);
    border-radius: 4px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
}

/* [hidden] must beat nothing here - the box has no display of its own - but
   the guard costs one line and has bitten before. */
.search-suggest[hidden] {
    display: none !important;
}

.search-suggest a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    color: #333333;
}

.search-suggest a:hover,
.search-suggest a.is-active {
    background-color: rgba(75, 48, 29, 0.85);
    color: #ffffff;
}

.search-suggest img,
.search-suggest-noimg {
    flex: 0 0 auto;
    width: 35px;
    height: 35px;
    object-fit: cover;
    border-radius: 3px;
    background-color: #f7f5f1;
}

.search-suggest-name {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 14px;
    line-height: 20px;
}
