/*
 * Flairs and profile chips shown next to a user's name (fragments/user-name.html and
 * js/user-badges.js render the same markup).
 *
 * Three visually distinct kinds so "awarded" and "claimed" can never be confused:
 *   .nk-badge--staff  reserved for Admin/Moderator: solid dark pill with a gold edge. No award
 *                     flair and no user-controlled value can reuse this look.
 *   .nk-badge--award  awarded flair: tinted pill in the flair's own colour (--nk-badge-color).
 *   .nk-badge--chip   self-declared profile chip: neutral, dashed outline.
 */
.nk-badges {
    display: inline-flex;
    flex-wrap: wrap;
    gap: .25rem;
    vertical-align: middle;
    margin-left: .35rem;
}

.nk-badge {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .05rem .45rem;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    cursor: default;
}

.nk-badge i {
    font-size: .62rem;
}

.nk-badge--staff {
    background: #1f2937;
    color: #ffffff;
    border: 1px solid #fbbf24;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.nk-badge--staff i {
    color: #fbbf24;
}

.nk-badge--award {
    --nk-badge-color: #6c757d;
    /* text is pulled toward the surrounding text colour so it stays readable on light and dark pages */
    color: color-mix(in srgb, var(--nk-badge-color) 65%, currentColor);
    background: color-mix(in srgb, var(--nk-badge-color) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--nk-badge-color) 45%, transparent);
}

.nk-badge--chip {
    color: inherit;
    opacity: .8;
    background: transparent;
    border: 1px dashed currentColor;
    font-weight: 500;
}
