/* =====================================================================
 * components/chip.css — small pill "chip" + the wrapping chip grid.
 *
 * A presentation-only primitive: a rounded, non-interactive label used
 * for coverage lists (e.g. the province / state coverage grids on the
 * country pages). Consolidated from the byte-identical
 * .indonesia-chip(s) / .malaysia-chip(s) rules that previously lived in
 * each country page's CSS.
 *
 * Chips are non-interactive (no anchor, no role="button"); the :hover
 * state is a subtle tonal affordance only, and `cursor: default` is set
 * explicitly so the browser does not inherit a pointer cursor from any
 * parent context. Background uses --color-surface-elevated (not
 * --color-ice-mist) so chips keep contrast when the surrounding section
 * is itself ice-mist.
 *
 * No hex literals — tokens + color-mix only.
 * ===================================================================== */

.chip-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: var(--space-2) var(--space-4);
    background-color: var(--color-surface-elevated);
    color: var(--color-primary);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    border-radius: var(--radius-pill);
    line-height: 1.2;
    cursor: default;
    transition: background-color 150ms ease,
                border-color 150ms ease;
}

/* Subtle tonal change on hover — brand accent token mixed at ~14% into
 * the chip surface. A quiet affordance, not a saturated button-look. */
.chip:hover {
    background-color: color-mix(in srgb,
        var(--color-accent) 14%,
        var(--color-surface-elevated));
}

/* Motion-sensitive users get the tint instantly (no fade). */
@media (prefers-reduced-motion: reduce) {
    .chip { transition: none; }
}
