/* ── Sidebar shell ────────────────────────────────────────────────────── */

.body-right {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
    align-self: flex-start;
    position: sticky;
    top: 20px;
}

/* ── Section wrapper ─────────────────────────────────────────────────── */

.sb-section {
    background: white;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid #efefef;
}

.sb-heading {
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px;
    color: #999 !important;
    margin: 0 0 14px !important;
    padding: 0 0 12px !important;
    border-bottom: 1px solid #f0f0f0;
    text-align: left !important;
}

/* ── Related posts ───────────────────────────────────────────────────── */

.sb-related-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.15s;
}

.sb-related-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sb-related-item:hover { opacity: 0.75; }

.sb-related-thumb {
    flex-shrink: 0;
    width: 72px;
    height: 54px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
}

.sb-related-thumb img {
    width: 72px !important;
    height: 54px !important;
    min-width: unset !important;
    object-fit: cover;
    display: block;
    border-radius: 0;
    margin: 0 !important;
}

.sb-related-info {
    flex: 1;
    min-width: 0;
}

.sb-related-date {
    display: block;
    font-size: 11px;
    color: #aaa;
    margin-bottom: 4px;
    font-weight: 500;
}

.sb-related-title {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    line-height: 1.45 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-transform: none !important;
}

.sb-empty {
    font-size: 13px !important;
    color: #aaa !important;
    margin: 0 !important;
    text-transform: none !important;
}

/* ── Tag cloud ───────────────────────────────────────────────────────── */

.sb-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.sb-tag {
    display: inline-block;
    padding: 5px 12px;
    background: #f5f5f7;
    border: 1px solid #e8e8e8;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: #444 !important;
    text-decoration: none;
    text-transform: none !important;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    line-height: 1.4;
}

.sb-tag:hover {
    background: var(--pridim);
    color: white !important;
    border-color: var(--pridim);
}

/* ── Categories ──────────────────────────────────────────────────────── */

.sb-cat-list {
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
}

.sb-cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px solid #f5f5f5;
    list-style: none !important;
    margin: 0 !important;
}

.sb-cat-item:last-child { border-bottom: none; }

.sb-cat-item a {
    font-size: 13px !important;
    font-weight: 500;
    color: #333 !important;
    text-decoration: none;
    text-transform: none !important;
    transition: color 0.15s;
}

.sb-cat-item a:hover { color: var(--pridim) !important; }

.sb-cat-count {
    font-size: 11px;
    font-weight: 600;
    color: #aaa;
    background: #f5f5f7;
    border-radius: 20px;
    padding: 2px 8px;
    line-height: 1.4;
}

/* ── Mobile: sidebar hidden, tags shown inline ───────────────────────── */

@media screen and (max-width: 988px) {
    .body-right {
        display: none !important;
    }
}
