/* RX Theme v9.1.7.6 - related articles with left image, RX fallback, excerpt, and previous/next navigation */
.rx-related-list-wrap {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 24px;
    margin: 34px 0 24px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
}

.rx-related-heading-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 14px;
    margin-bottom: 0;
}

.rx-related-heading-row h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.15;
}

.rx-related-heading-row span {
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
}

.rx-related-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rx-related-list-item {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 18px;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid #edf2f7;
}

.rx-related-list-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.rx-related-thumb {
    display: block;
    width: 160px;
    min-height: 108px;
    border-radius: 14px;
    overflow: hidden;
    background: #f1f5f9;
    text-decoration: none;
}

.rx-related-thumb img {
    display: block;
    width: 160px;
    height: 108px;
    object-fit: cover;
}

.rx-related-thumb-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 108px;
    background: linear-gradient(135deg, #e0f2fe, #ccfbf1);
    color: #0f766e;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: .08em;
}

.rx-related-body {
    min-width: 0;
}

.rx-related-title {
    color: #111827;
    display: inline-block;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.35;
    text-decoration: none;
}

.rx-related-title:hover {
    text-decoration: underline;
}

.rx-related-excerpt {
    color: #334155;
    font-size: 15.5px;
    line-height: 1.72;
    margin: 8px 0 0;
}

.rx-related-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    color: #64748b;
    font-size: 14px;
    margin-top: 9px;
}

.rx-related-meta a {
    color: #0f766e;
    font-weight: 700;
    text-decoration: none;
}

.rx-related-meta a:hover {
    text-decoration: underline;
}

.rx-post-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 26px 0 30px;
}

.rx-post-nav-card {
    display: block;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 18px;
    min-height: 112px;
    text-decoration: none;
}

.rx-post-nav-card span {
    color: #64748b;
    display: block;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.rx-post-nav-card strong {
    color: #111827;
    display: block;
    font-size: 18px;
    line-height: 1.35;
}

.rx-post-nav-next {
    text-align: right;
}

body.rx-dark-mode .rx-related-list-wrap,
body.rx-dark-mode .rx-post-nav-card {
    background: #111827;
    border-color: #243244;
}

body.rx-dark-mode .rx-related-title,
body.rx-dark-mode .rx-post-nav-card strong {
    color: #ffffff;
}

body.rx-dark-mode .rx-related-excerpt {
    color: #cbd5e1;
}

body.rx-dark-mode .rx-related-list-item {
    border-color: #243244;
}

body.rx-dark-mode .rx-related-thumb {
    background: #1f2937;
}

@media (max-width: 700px) {
    .rx-related-list-wrap {
        padding: 18px;
    }

    .rx-related-heading-row,
    .rx-post-nav {
        display: block;
    }

    .rx-related-heading-row span {
        display: block;
        margin-top: 6px;
    }

    .rx-post-nav-card + .rx-post-nav-card {
        margin-top: 14px;
    }

    .rx-related-list-item {
        grid-template-columns: 104px minmax(0, 1fr);
        gap: 13px;
        padding: 16px 0;
    }

    .rx-related-thumb,
    .rx-related-thumb img,
    .rx-related-thumb-fallback {
        width: 104px;
        height: 78px;
        min-height: 78px;
    }

    .rx-related-thumb-fallback {
        font-size: 24px;
    }

    .rx-related-title {
        font-size: 17px;
    }

    .rx-related-excerpt {
        font-size: 14px;
        line-height: 1.55;
        margin-top: 6px;
    }

    .rx-post-nav-next {
        text-align: left;
    }
}
