/* Only WordPress category archives; do not affect the project or chapter reader. */
body.category .tdip-project-archive-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    width: max-content;
    max-width: 100%;
    margin: 0 0 9px 8px;
    padding: 3px 10px;
    border: 1px solid #e4dce9;
    border-radius: 999px;
    background: linear-gradient(110deg, #f8f5fa 0%, #f4f7f4 100%);
    color: #665374;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.8;
    letter-spacing: 0;
    white-space: nowrap;
    box-shadow: none;
    text-decoration: none;
    direction: rtl;
}
body.category .entry-meta .tdip-project-archive-badge,
body.category .blog-entry-meta .tdip-project-archive-badge,
body.category .post-meta .tdip-project-archive-badge {
    margin: 0 0 0 9px;
}
/* Server-side post_class fallback if JavaScript is disabled. */
body.category .tdip-project-chapter:not(.tdip-project-badge-added)::before {
    content: 'پروژهٔ تعاملی';
    display: table;
    width: max-content;
    margin: 0 0 9px;
    padding: 3px 10px;
    border: 1px solid #e4dce9;
    border-radius: 999px;
    background: #f8f5fa;
    color: #665374;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.8;
    direction: rtl;
}
@media (max-width: 640px) {
    body.category .tdip-project-archive-badge {
        padding: 2px 8px;
        font-size: 10.5px;
    }
}
