/* Related Articles — image left, title right (article detail page) */

.ra-section {
    padding: 1.5rem 0 2.25rem;
    background: #fff;
    border-top: 1px solid #e5e7eb;
}

.ra-head {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin: 0 0 1rem;
    padding-bottom: .55rem;
    border-bottom: 1px solid #e5e7eb;
}

.ra-head__title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
    white-space: nowrap;
}

.ra-head::after {
    content: '';
    flex: 1 1 auto;
    height: 1px;
    background: #e5e7eb;
    min-width: .5rem;
}

.ra-head__more {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .35rem .85rem;
    border: 1px solid #dc2626;
    border-radius: 999px;
    color: #dc2626;
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.2;
}

.ra-head__more:hover {
    background: #fef2f2;
}

.ra-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 1.5rem;
}

.ra-item {
    border-bottom: 1px solid #e5e7eb;
}

.ra-item__link {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: .7rem;
    align-items: start;
    padding: .85rem 0;
    color: inherit;
}

.ra-item__media {
    display: block;
    overflow: hidden;
    border-radius: 4px;
    background: #e5e7eb;
    aspect-ratio: 4 / 3;
}

.ra-item__media img,
.ra-item__media picture,
.ra-item__media picture img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
}

.ra-item__media > div {
    width: 100%;
    height: 100%;
    aspect-ratio: auto !important;
}

.ra-item__title {
    margin: 0;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.4;
    color: #111827;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ra-item__link:hover .ra-item__title {
    color: #b91c1c;
}

@media (min-width: 640px) {
    .ra-item__link {
        grid-template-columns: 120px 1fr;
        gap: .85rem;
    }

    .ra-item__title {
        font-size: .95rem;
    }
}

@media (min-width: 768px) {
    .ra-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ra-item:nth-last-child(-n+2) {
        border-bottom: 0;
    }
}

@media (max-width: 479px) {
    .ra-section {
        padding: 1.1rem 0 1.75rem;
    }

    .ra-head {
        gap: .5rem;
        margin-bottom: .65rem;
    }

    .ra-head__title {
        font-size: 1rem;
    }

    .ra-head__more {
        padding: .3rem .7rem;
        font-size: .72rem;
    }

    .ra-item__link {
        grid-template-columns: 88px 1fr;
        gap: .55rem;
        padding: .7rem 0;
    }

    .ra-item__title {
        font-size: .84rem;
        -webkit-line-clamp: 3;
    }
}
