/*
 * tag-field.css — many of a long list: a tenant's tags, a hundred or more. Searched and added
 * one at a time; the chosen ones stand under the field as chips that take themselves off.
 *
 * <div class="app-tag-field">
 *   [combobox: Schlagwörter, "Schlagwort suchen", the matches not chosen yet]
 *   <ul class="app-tag-field-chosen" role="list" aria-label="Schlagwörter, gewählt">
 *     <li>
 *       <button class="app-chip" type="button" data-remove aria-label="Wartung entfernen">
 *         <span class="app-chip-label">Wartung</span>
 *         <span class="app-chip-icon" aria-hidden="true">[icon: close]</span>
 *       </button>
 *     </li>
 *   </ul>
 * </div>
 *
 * A pick clears the field for the next. The same chip (AppTagChip) stands in a filter bar for
 * a tag the list is filtered by, and takes the filter off. Where the list is short and fixed
 * (a handful of choices), a checkbox group is the better control.
 */
@layer components {
    .app-tag-field {
        display: flex;
        flex-direction: column;
        gap: var(--app-space-label);
        min-inline-size: 0;
    }

    .app-tag-field-chosen {
        display: flex;
        flex-wrap: wrap;
        gap: var(--app-space-cluster);
    }

    .app-chip[data-remove] .app-chip-icon {
        color: var(--app-color-text-subtle);
    }

    @media (hover: hover) {
        .app-chip[data-remove]:hover:not(:disabled) .app-chip-icon {
            color: var(--app-color-text);
        }
    }
}
