/* Header search autocomplete. Loaded site-wide, so no list-page CSS variables. */

.oscia-search-ready {
    position: relative;
}

/* Anchored to the right edge (the search sits at the right of the header) and
   grows leftward, so a narrow input still gets a readable dropdown. */
.oscia-search-suggestions {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: max(100%, 320px);
    max-width: calc(100vw - 32px);
    max-height: 360px;
    overflow-y: auto;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .15);
    text-align: left;
    z-index: 9999;
}

.oscia-search-suggestions[hidden] {
    display: none;
}

.oscia-search-suggestions [role="option"] {
    padding: 8px 14px;
    font-size: 14px;
    line-height: 1.3;
    color: #334155;
    cursor: pointer;
}

.oscia-search-suggestions [role="option"]:hover,
.oscia-search-suggestions [role="option"].is-active {
    background: #e6f2f1;
    color: #007066;
}

.oscia-search-suggestions .oscia-search-view-all {
    margin-top: 4px;
    border-top: 1px solid #e2e8f0;
    font-weight: 700;
    color: #007066;
}
