textarea{ min-height: 200px;}
table tr td{ white-space: nowrap;}
.deleted{ opacity: 0.65;}
.card.category{ margin-bottom: 1em;}
.list-group .list-group{ min-height: 1em;margin-top: 1em;}
.category .subcategories{ margin-left: 20px !important;}
.category > .list-group-item{ z-index: 1000;}
.category .subcategories .list-group-item:first-child{ border-radius: 0;}
.timestamp{ border-bottom: 1px dotted var(--bs-gray);cursor: help;}
.fixed-bottom-right{ position: fixed;inset-inline-end: 0;bottom: 0;width: 270px;}
.fade-enter-active, .fade-leave-active{ transition: opacity .3s;}.fade-enter, .fade-leave-to{ opacity: 0;}
.mask{ display: none;position: fixed;top: 0;inset-inline-end: 0;bottom: 0;inset-inline-start: 0;background: rgba(50, 50, 50, .2);opacity: 0;transition: opacity .2s ease;z-index: 1020;}.mask.show{ opacity: 1;}
.form-check{ user-select: none;}
.sortable-chosen{ background: var(--bs-light);}
.badge{margin: 3.5px 0;font-size: 10px;}
.thread-badges .badge{font-size: 10px;}
.list-group-item .badge.rounded-pill{width: 20px; height: 20px;padding: 4.5px 0 0 0;}
.timestamp{border-bottom-width: 0;}
.breadcrumb{padding-inline-end: 0;margin-bottom: 0;}
.fixed-bottom-right .card-header{background-color: #475f7b !important;}
.fixed-bottom-right .btn-primary{background-color: #fff !important;color: #000 !important;}
.btn-secondary{color: #fff !important;border:1px solid black !important;}
/* Thread reply row: flex toolbar (not .btn-group) so toggles match default .btn height like New reply / Quick reply */
.forum-thread-toolbar .dropdown {
    flex: 0 0 auto;
}
.forum-thread-actions .btn, .forum-top-actions .btn{
    margin-bottom:10px;
    line-height: 1.1rem !important;
}

.shadow-sm {
    box-shadow:0 4px 14px rgba(184, 169, 201, 0.12),0 2px 6px rgba(224, 195, 252, 0.1),inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}
.no-shadow {
    box-shadow: none !important;
}

/* Post text: normal line gap; editor-only empty blocks use a small gap (not full <p> margin) */
.forum-post-body {
    line-height: 1.5;
}

.forum-post-body p:empty,
.forum-post-body p:has(> br:only-child) {
    margin: 0.35em 0;
    padding: 0;
    line-height: 0.5;
    min-height: 0;
}

.forum-post-body br {
    line-height: 0;
    display: block;
    margin: 0;
}


.forum-custom-style .card-body img{
    width: 100%;
}

.page-link{margin-inline-end: 5px;}

.nk-list-meta > div {
    padding-right: 1.5rem;
    position: relative;
}
.nk-list-meta > div::after {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 4px;
    height: 4px;
    background-color: #0a1425;
    border-radius: 50%;
    transform: translateY(-50%);
    content: "";
    opacity: 0.3;
}
.nk-list-meta > div:last-child {
    padding-right: 0;
}
.nk-list-meta > div:last-child::after {
    display: none;
}
.threads .card-blog[data-thread-row].border-primary {
    border: 1px solid var(--bs-primary) !important;
}

/* Category grid: flow items up into gaps beside taller cards (no JS masonry) */
/*.forum-category-item .card{
    min-height: 400px;
}*/
.forum-category-item--full .card {
    min-height: 0;
}
.forum-category-masonry {
    --forum-category-masonry-gap: 2rem;
}
@media (min-width: 1200px) {
    .forum-category-masonry {
        display: block !important;
        column-count: 2;
        column-gap: var(--bs-gutter-x, 1.5rem);
    }
    .forum-category-masonry > .forum-category-item {
        display: inline-block;
        width: 100%;
        max-width: 100%;
        break-inside: avoid;
        -webkit-column-break-inside: avoid;
        page-break-inside: avoid;
        margin-bottom: var(--forum-category-masonry-gap);
    }
}
