/* ----------------------------------------------------------- */


/* ALL CATEGORIES */


/* ----------------------------------------------------------- */

.tas_allcategories {
    --line: #e9ecef;
    --muted: #6c757d;
    --soft: #f4f5f7;
}

.tas_allcategories .crumbs {
    margin: 0 0 20px;
}

/* The slash between the steps takes less room than the 20px of UIkit */
.tas_allcategories .crumbs>:nth-child(n+2):not(.uk-first-column)::before {
    margin: 0 10px;
}

.tas_allcategories .intro {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 28px 32px;
    background: rgba(var(--primary-color-rgb), 0.07);
    border-radius: 12px;
}

.tas_allcategories .title {
    margin: 0 0 6px;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    color: #2b2b2b;
}

.tas_allcategories .lead {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--muted);
}

.tas_allcategories .totals {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tas_allcategories .totals li {
    margin-left: 12px;
    padding: 10px 20px;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
    color: var(--muted);
    background: #ffffff;
    border-radius: 10px;
}

.tas_allcategories .totals strong {
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-color-hover);
}

.tas_allcategories .none {
    padding: 40px 0;
    text-align: center;
    color: var(--muted);
}

.tas_allcategories .card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgb(0 0 0 / 5%);
    transition: border-color 0.2s ease-out, box-shadow 0.2s ease-out, transform 0.2s ease-out;
}

.tas_allcategories .card:hover {
    border-color: rgba(var(--primary-color-rgb), 0.55);
    box-shadow: 0 8px 22px rgb(0 0 0 / 9%);
    transform: translateY(-3px);
}

.tas_allcategories .main {
    display: flex;
    align-items: center;
    padding: 18px;
}

.tas_allcategories .main img {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    margin-right: 14px;
    object-fit: cover;
    background: var(--soft);
    border-radius: 12px;
}

.tas_allcategories .text {
    flex: 1;
    min-width: 0;
}

/* A long name takes a second line before it is cut */
.tas_allcategories .text strong {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: #333;
    overflow-wrap: break-word;
}

.tas_allcategories .main:hover strong {
    color: var(--primary-color-hover);
}

.tas_allcategories .text small {
    display: block;
    margin-top: 3px;
    font-size: 12.5px;
    color: var(--muted);
}

.tas_allcategories .main>i {
    flex-shrink: 0;
    margin-left: 8px;
    font-size: 18px;
    color: #b6bcc3;
    transition: color 0.2s ease-out, transform 0.2s ease-out;
}

.tas_allcategories .main:hover>i {
    color: var(--primary-color);
    transform: translateX(3px);
}

/* The sub categories, each a link of its own */
.tas_allcategories .subs {
    display: flex;
    flex-wrap: wrap;
    padding: 12px 18px 8px;
    border-top: 1px solid var(--line);
}

.tas_allcategories .subs a {
    margin: 0 6px 6px 0;
    padding: 3px 6px 3px 12px;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.6;
    color: #555;
    background: var(--soft);
    border-radius: 100px;
    transition: color 0.2s ease-out, background-color 0.2s ease-out;
}

.tas_allcategories .subs a:hover {
    color: var(--primary-color-hover);
    background: rgba(var(--primary-color-rgb), 0.12);
}

.tas_allcategories .subs span {
    display: inline-block;
    min-width: 20px;
    margin-left: 4px;
    padding: 0 6px;
    font-size: 11px;
    text-align: center;
    color: var(--muted);
    background: #ffffff;
    border-radius: 100px;
}

@media (max-width: 640px) {
    .tas_allcategories .intro {
        padding: 20px;
    }
    .tas_allcategories .title {
        font-size: 1.35rem;
    }
    .tas_allcategories .totals {
        width: 100%;
        margin-top: 16px;
    }
    .tas_allcategories .totals li {
        flex: 1;
        margin-left: 0;
    }
    .tas_allcategories .totals li+li {
        margin-left: 12px;
    }
}
