.server-taxonomy-trigger {
    appearance: none;
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    overflow-wrap: anywhere;
    text-decoration: underline dotted;
    text-underline-offset: 0.2em;
    cursor: pointer;
}

.server-taxonomy-trigger:focus-visible,
.server-taxonomy-popover:focus-visible {
    outline: 2px solid var(--color-link-hover);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

.server-taxonomy-popover[hidden] {
    display: none;
}

.server-taxonomy-popover {
    position: fixed;
    z-index: 1100;
    box-sizing: border-box;
    width: max-content;
    max-width: min(18rem, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    overflow: auto;
    overscroll-behavior: contain;
    margin: 0;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg-surface);
    color: var(--color-text-primary);
    box-shadow: var(--shadow-lg);
    font-size: 0.82rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.server-taxonomy-popover__heading {
    margin: 0 0 0.4rem;
    color: var(--color-text-muted);
    font-size: 0.75rem;
    font-weight: 600;
}

.server-taxonomy-popover__values {
    margin: 0;
    padding: 0;
    list-style: none;
}

.server-taxonomy-popover__values li + li {
    margin-top: 0.2rem;
}
