/* ============================================================
   CATEGORY PILL BLOCK
   For taxonomy: connect_category
   Placement: Above Member Benefit block
   ============================================================ */

/* --- Block container --- */
.ce-block--categories {
    background: #fff;
    border: 3px solid var(--entry-color);
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);

    padding: 1.5rem 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Pill list wrapper --- */
.ce-categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    margin-top: 0.5rem;
}

/* --- Individual pill --- */
.ce-category-pill {
    display: inline-flex;
    align-items: center;

    padding: 0.35rem 0.9rem;
    border-radius: 999px;

    background: color-mix(in srgb, var(--entry-color) 15%, white);
    border: 2px solid var(--entry-color);

    font-size: 16px;
    font-weight: 600;

    /* TEXT COLOUR MATCHES BORDER */
    color: var(--entry-color);

    white-space: nowrap;
    user-select: none;
    text-decoration: none;
}

/* --- Disabled (no click yet) --- */
.ce-category-pill.disabled {
    display: inline-flex;
    align-items: center;

    padding: 0.35rem 0.9rem;
    border-radius: 999px;

    background: color-mix(in srgb, var(--entry-color) 15%, white);
    border: 2px solid var(--entry-color);

    font-size: 16px;
    font-weight: 600;

    /* TEXT COLOUR MATCHES BORDER */
    color: var(--entry-color);

    white-space: nowrap;
    user-select: none;
    text-decoration: none;
}

.ce-pill-count {
    background: #fff;
    color: #333;
    border-radius: 12px;
    padding: 2px 6px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(0,0,0,0.15);
    margin-left: 6px;
    line-height: 1;
}

/* --- Mobile layout: vertical stacking --- */
@media (max-width: 600px) {
    .ce-categories-list {
        flex-direction: column;
        align-items: flex-start;
    }
}
