/* Soft, colorful post tags. Scoped to single posts only. */
body.single-post .article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

body.single-post .article-tags a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin: 0;
    padding: 7px 12px;
    border: 1px solid #f7bfd0;
    border-radius: 5px;
    background: #fff0f5;
    color: #b83f67 !important;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.15;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

body.single-post .article-tags a:nth-child(6n + 2) {
    border-color: #bedaf8;
    background: #eef7ff;
    color: #3975ad !important;
}

body.single-post .article-tags a:nth-child(6n + 3) {
    border-color: #bce8d4;
    background: #edfbf5;
    color: #287b5d !important;
}

body.single-post .article-tags a:nth-child(6n + 4) {
    border-color: #d7c8f5;
    background: #f6f1ff;
    color: #7450aa !important;
}

body.single-post .article-tags a:nth-child(6n + 5) {
    border-color: #f5d3ad;
    background: #fff7eb;
    color: #a86620 !important;
}

body.single-post .article-tags a:nth-child(6n) {
    border-color: #afe4e5;
    background: #ecfbfb;
    color: #237a7c !important;
}

body.single-post .article-tags a:hover,
body.single-post .article-tags a:focus-visible {
    opacity: 1;
    filter: saturate(1.08);
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(54, 65, 83, 0.10);
}

body.night.single-post .article-tags a {
    border-color: rgba(255, 255, 255, 0.13);
    background: rgba(236, 90, 140, 0.14);
    color: #f3a8c1 !important;
}

body.night.single-post .article-tags a:nth-child(6n + 2) {
    background: rgba(79, 149, 217, 0.14);
    color: #9bc9f2 !important;
}

body.night.single-post .article-tags a:nth-child(6n + 3) {
    background: rgba(63, 168, 126, 0.14);
    color: #96dbbd !important;
}

body.night.single-post .article-tags a:nth-child(6n + 4) {
    background: rgba(139, 101, 205, 0.16);
    color: #c8b2ed !important;
}

body.night.single-post .article-tags a:nth-child(6n + 5) {
    background: rgba(209, 139, 57, 0.15);
    color: #efc083 !important;
}

body.night.single-post .article-tags a:nth-child(6n) {
    background: rgba(53, 165, 168, 0.14);
    color: #8fd7d9 !important;
}

@media (prefers-reduced-motion: reduce) {
    body.single-post .article-tags a {
        transition: none;
    }
}
