/* Suggestions dropdown for the header search boxes (assets/script/header-search.js) */
form.site-search { position: relative; }

.hs-box {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 1100;
    background: #fff;
    border: 1px solid #e3e7ef;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
    overflow: hidden;
    max-height: min(70vh, 460px);
    overflow-y: auto;
}

.hs-box[hidden] { display: none; }

.hs-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: #1a1a1a;
    text-decoration: none;
    border-bottom: 1px solid #f0f2f6;
}

.hs-item:hover,
.hs-item.is-active { background: hsl(200, 100%, 96%); }

.hs-img {
    width: 46px;
    height: 46px;
    flex: none;
    object-fit: contain;
    background: #fff;
    border: 1px solid #e6eaf1;
    border-radius: 8px;
    padding: 2px;
}

.hs-text { display: flex; flex-direction: column; min-width: 0; }

.hs-name {
    font-size: 0.93rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hs-name mark {
    background: none;
    color: hsl(200, 100%, 30%);
    font-weight: 800;
}

.hs-sub { font-size: 0.8rem; color: #6b7280; }
.hs-sub.is-out { color: #b42318; }

.hs-all {
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: hsl(200, 100%, 28%);
    border-bottom: 0;
    background: #f8fafc;
}

.hs-all.is-active,
.hs-all:hover { background: hsl(200, 100%, 94%); }

@media (max-width: 991px) {
    .hs-box { max-height: 55vh; }
}
