/* Restore the LightSNS 01848 related-post layout in the protected detail pages. */
section.ls-related.ls-related-card:is(.wd-card, .ls-article-card) {
    margin: 20px 0;
    padding: 20px 24px !important;
    background: var(--ls-bg-card, #fff) !important;
    border: 1px solid rgba(0, 0, 0, .06) !important;
    border-radius: var(--ls-border-radius, 12px) !important;
}

.ls-related.ls-related-section {
    margin-top: 8px;
    padding: 0 16px 12px;
    border-top: 1px solid var(--ls-border-light, #f3f4f6);
}

.ls-related.ls-related-inset {
    padding-inline: 20px;
    background: var(--ls-bg-card, #fff);
}

.ls-related .ls-related-title {
    margin-bottom: 12px;
    color: var(--ls-text, #1a1a1a);
    font-size: 15px;
    font-weight: 600;
}

.ls-related-section .ls-related-title {
    margin-bottom: 0;
    padding: 14px 0 10px;
}

.ls-related .ls-related-list {
    display: flex;
    flex-direction: column;
}

.ls-related .ls-related-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid var(--ls-border-light, #f3f4f6);
    color: inherit;
    text-decoration: none;
}

.ls-related .ls-related-item:first-child {
    padding-top: 0;
    border-top: 0;
}

.ls-related .ls-related-item:last-child {
    padding-bottom: 0;
}

.ls-related .ls-related-main {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.ls-related .ls-related-name {
    display: -webkit-box;
    overflow: hidden;
    color: var(--ls-text, #1a1a1a);
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.ls-related .ls-related-item:is(:hover, :focus-visible) .ls-related-name {
    color: var(--ls-primary, #3b82f6);
}

.ls-related .ls-related-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: var(--ls-text-tertiary, var(--ls-text-muted, #9ca3af));
    font-size: 12px;
    line-height: 18px;
}

.ls-related .ls-related-author {
    overflow: hidden;
    min-width: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ls-related .ls-related-stat {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 3px;
}

.ls-related .ls-related-stat i {
    font-size: 13px;
}

.ls-related .ls-related-cover {
    flex: none;
    width: 72px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
}
