/* Blog category tabs: the CMS category values are set in article.html. */
.blog-categories {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    margin-bottom: 3rem;
    justify-content: center;
}

.blog-categories [role="tab"] {
    appearance: none;
    border: .1rem solid var(--color-prime, #36b340);
    border-radius: .4rem;
    background: #fff;
    color: #287b2e;
    padding: .8rem 1.4rem;
    font: inherit;
    line-height: 1.6;
    cursor: pointer;
}

.blog-categories [role="tab"][aria-selected="true"] {
    background: var(--color-prime, #36b340);
    color: #fff;
}

.blog-categories [role="tab"]:hover {
    background: #eaf7eb;
    color: #287b2e;
}

.blog-categories [role="tab"]:focus-visible {
    outline: .2rem solid #205c25;
    outline-offset: .3rem;
}

.blog-panel[hidden] {
    display: none !important;
}

.blog-panel .CMS-ARTICLE-CATEGORY-NAME {
    display: table;
    margin-top: 1rem;
    padding: .2rem .7rem;
    border-radius: .3rem;
    background: #eaf7eb;
    color: #287b2e;
    font-size: 1rem;
}

.blog-panel .CMS-ARTICLE-CATEGORY-NAME:empty {
    display: none;
}

@media (max-width:767px) {
    .blog-categories {
        gap: .6rem;
        margin-bottom: 2rem;
    }

    .blog-categories [role="tab"] {
        flex: 1 1 calc(50% - .6rem);
        padding: .8rem .5rem;
    }
}