/**
 * File Path: assets/css/front/mbs-front-term-list.css
 * mbs/term-list block (unscoped from .mbs-wrapper)
 * Component of mbs-front.css — extracted Session 94.
 * Enqueued by MBS_Front_Assets with dep: mbs-front.
 */
/* ==========================================================================
   mbs/term-list block — architecturally unscoped from .mbs-wrapper
   (per compat.css §9). Tokens require fallback values. @media nested
   inside the grid rule; hover state nested inside __item.
   ========================================================================== */
.mbs-term-list {
    display: grid;
    grid-template-columns: repeat(var(--mbs-term-cols, 3), 1fr);
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;

    @media (max-width: 640px) {
        grid-template-columns: repeat(min(var(--mbs-term-cols, 3), 2), 1fr);
    }

    @media (max-width: 400px) {
        grid-template-columns: 1fr;
    }
}

.mbs-term-list__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    gap: 4px;

    &:hover {
        background: #fff;
        border-color: var(--mbs-accent, var(--mbs-teal));
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
        color: var(--mbs-accent, var(--mbs-teal));
        text-decoration: none;

        .mbs-term-list__count {
            color: var(--mbs-accent, var(--mbs-teal));
        }
    }
}

.mbs-term-list__name {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.3;
}

.mbs-term-list__count {
    font-size: 0.8rem;
    color: #646970;
}
