/* Molecule: tag-input — input wrapper with auto-suggest dropdown */

.tag-input-wrap {
    display: inline-flex;
    align-items: center;
    position: relative;
}

.tag-suggest {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.2rem;
    background: var(--bn-colour-bg);
    border: 1px solid var(--bn-colour-border);
    border-radius: var(--bn-radius-sm);
    box-shadow: 0 2px 8px var(--bn-colour-shadow);
    z-index: 50;
    max-height: 8rem;
    overflow-y: auto;
    min-width: 6rem;
    width: max-content;
}

.tag-suggest-item {
    padding: 0.25rem 0.5rem;
    font-family: var(--bn-font-mono);
    font-size: 0.72rem;
    cursor: pointer;
    color: var(--bn-colour-text);
    white-space: nowrap;
}

.tag-suggest-item:hover,
.tag-suggest-item.active {
    background: var(--bn-colour-quote-bg);
    color: var(--bn-colour-accent);
}
