/* Search suggester dropdown — shared across all site themes.
   Loaded after the per-site theme stylesheet so it can rely on the site's
   font stack and brand red for the hover state. */

/* Per-site theme CSS sets `float: right` on the input but never positions
   the form, so an absolute-positioned dropdown would escape to the viewport
   (default.css's old `.search-form { position: relative }` was unreachable
   because no theme actually loads default.css). Anchor here. */
.search-form {
    position: relative;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    right: 0;
    /* Constrain to roughly the search-input width — the input has no explicit
       width rule, but 320px lines up well with the typical rendered size and
       avoids the dropdown spanning the full header. */
    width: 320px;
    max-width: 90vw;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #e0e0e0;
    border: 1px solid #b82b2b;
    border-top: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    max-height: 60vh;
    overflow-y: auto;
}

.search-suggestions li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    font-family: 'Roboto', sans-serif;
    color: #1a1a1a;
    cursor: pointer;
    transition: background-color 0.08s ease, color 0.08s ease;
}

.search-suggestions li:last-child {
    border-bottom: none;
}

.search-suggestions li:hover {
    background-color: #b82b2b;
    color: #fff;
}

.search-suggestions .suggest-name {
    font-size: 13px;
    font-weight: 500;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-suggestions .suggest-platform {
    font-size: 11px;
    font-weight: 300;
    flex: 0 0 auto;
    color: rgba(0, 0, 0, 0.55);
    white-space: nowrap;
}

.search-suggestions li:hover .suggest-platform {
    color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 600px) {
    .search-suggestions {
        width: 90vw;
    }
    .search-suggestions li {
        padding: 9px 12px;
    }
}
