/* Forum-owned visual fixes only. Global light/dark styling belongs to the theme. */

/* Darkmode status badges in forum topic lists */
.ctf-wrap.ctf-forum-dark .ctf-topic-row .ctf-badge{
    display:inline-flex!important;
    align-items:center!important;
    width:auto!important;
    min-width:0!important;
    min-height:0!important;
    margin:0 7px 5px 0!important;
    padding:4px 8px!important;
    border:1px solid #3a4b60!important;
    border-radius:999px!important;
    background:#182433!important;
    color:#dce7f5!important;
    font-size:11px!important;
    font-weight:800!important;
    line-height:1.2!important;
    white-space:nowrap!important;
    box-shadow:none!important;
}

.ctf-wrap.ctf-forum-dark .ctf-topic-row .ctf-badge + .ctf-badge{
    margin-left:0!important;
}

.ctf-wrap.ctf-forum-dark .ctf-topic-row .ctf-badge:hover{
    background:#1d2c3d!important;
    border-color:#4a6078!important;
    color:#f4f8fc!important;
}

/* Empty forum descriptions must not render as a bright horizontal strip. */
.ctf-wrap .ctf-catdesc:empty{
    display:none!important;
}

.ctf-wrap.ctf-forum-dark .ctf-catdesc:not(:empty){
    background:var(--ctfd-surface-2,#151e2a)!important;
    color:var(--ctfd-muted,#a8b3c2)!important;
    border-color:var(--ctfd-border,#2d3948)!important;
}
