/* Live search suggestions dropdown (assets/search-suggest.js). Desktop only. */

.hr-suggest {
    --hr-primary: var(--e-global-color-primary, #006566);
    --hr-secondary: var(--e-global-color-secondary, #083062);
    --hr-muted: #5F6B6B;
    --hr-surface: var(--e-global-color-e0680c1, #E8F5F0);
    --hr-border: rgba(8, 48, 98, .12);

    position: fixed;
    z-index: 100000;
    box-sizing: border-box;
    overflow-y: auto;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--hr-border);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(8, 48, 98, .16);
    font-size: 15px;
    line-height: 1.35;
    text-align: left;
}

.hr-suggest[hidden] {
    display: none;
}

.hr-suggest__group + .hr-suggest__group {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--hr-border);
}

.hr-suggest__heading {
    margin: 0;
    padding: 6px 10px 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--hr-muted);
}

.hr-suggest .hr-suggest__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    color: var(--hr-secondary);
    text-decoration: none;
}

.hr-suggest .hr-suggest__item:hover,
.hr-suggest .hr-suggest__item.is-active {
    background: var(--hr-surface);
    color: var(--hr-secondary);
}

.hr-suggest__avatar {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.hr-suggest__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.hr-suggest__title {
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hr-suggest__meta {
    font-size: 13px;
    color: var(--hr-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hr-suggest__empty {
    margin: 0;
    padding: 10px;
    color: var(--hr-muted);
}

.hr-suggest .hr-suggest__all {
    display: block;
    margin-top: 6px;
    padding: 10px;
    border-top: 1px solid var(--hr-border);
    border-radius: 0 0 6px 6px;
    font-weight: 600;
    color: var(--hr-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .hr-suggest {
        display: none;
    }
}
