/* =========================================================
   POST TAGS
   ========================================================= */

.post-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

/* Tag icon */
.post-tags__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #e00000;
}

.post-tags__icon svg {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
}

/* Container for Ghost-generated tag links */
.post-tags__list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Individual Ghost tag */
.post-tags__list a {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.65rem;
    background: #f1f2f3;
    border-radius: 20rem;

    color: #e00000;
    font-size: 0.889rem;
    line-height: 1.25;
    font-weight: 400;

    text-decoration: none;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

/* Hover */
.post-tags__list a:hover {
    background: #171b2f;
    color: #ffffff;
}

/* Keyboard accessibility */
.post-tags__list a:focus-visible {
    background: #171b2f;
    color: #ffffff;
    outline: 2px solid #e00000;
    outline-offset: 0.125rem;
}

/* Mobile */
@media (max-width: 43.75rem) {

    .post-tags {
        gap: 0.4rem;
        padding: 0.625rem 0;
    }

    .post-tags__list {
        gap: 0.4rem;
    }

    .post-tags__list a {
        padding: 0.275rem 0.55rem;
        font-size: 0.8125rem;
    }

    .post-tags__icon svg {
        width: 0.875rem;
        height: 0.875rem;
    }
}