.qnews-related-news-section {
    width: 100%;
    max-width: 988px;
    padding-top: 48px;
}

.qnews-related-news-section__heading {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qnews-related-news-section__title {
    margin: 0;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 13px;
    line-height: 19.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
    color: #5b6472;
    white-space: nowrap;
}

.qnews-related-news-section__line {
    flex: 1;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
}

.qnews-related-news-list {
    margin-top: 16px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.qnews-related-news-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 12px 16px;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.qnews-related-news-item:last-child {
    border-bottom: 0;
}

.qnews-related-news-item__kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 116px;
    padding: 2px 8px;
    border-radius: 6px;
    background: #e7ebf1;
    color: #5b6472;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 10px;
    line-height: 15px;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    white-space: nowrap;
}

.qnews-related-news-item__title {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 14px;
    line-height: 20px;
    color: #12161d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qnews-related-news-item__date {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 11px;
    line-height: 16.5px;
    color: #5b6472;
    white-space: nowrap;
}

.qnews-related-news-item:hover .qnews-related-news-item__title,
.qnews-related-news-item:focus-visible .qnews-related-news-item__title {
    color: #2e66e8;
}

.qnews-related-news-list__empty,
.qnews-related-news-empty {
    padding: 14px 16px;
    font-size: 13px;
    line-height: 18px;
    color: #5b6472;
    font-family: 'Inter', -apple-system, sans-serif;
}

@media (max-width: 767.98px) {
    .qnews-related-news-section {
        max-width: 361.152px;
    }

    .qnews-related-news-item {
        grid-template-columns: auto 1fr auto;
        gap: 10px;
        padding: 12px 16px;
    }

    .qnews-related-news-item__kicker {
        min-width: auto;
    }

    .qnews-related-news-item__title {
        font-size: 14px;
    }
}

html[data-theme='dark'] .qnews-related-news-section__title {
    color: #aab3c3;
}

html[data-theme='dark'] .qnews-related-news-section__line {
    background: rgba(255, 255, 255, 0.12);
}

html[data-theme='dark'] .qnews-related-news-list {
    background: #141a24;
    border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme='dark'] .qnews-related-news-item {
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

html[data-theme='dark'] .qnews-related-news-item__kicker {
    background: #253043;
    color: #aab3c3;
}

html[data-theme='dark'] .qnews-related-news-item__title {
    color: #e4e9f2;
}

html[data-theme='dark'] .qnews-related-news-item__date,
html[data-theme='dark'] .qnews-related-news-list__empty,
html[data-theme='dark'] .qnews-related-news-empty {
    color: #aab3c3;
}
