/* Related Articles — bottom-of-post card grid
   Matches the visual language of .blog-card on blog.html */

.related-articles {
    border-top: 1px solid #e8e4de;
    padding: 48px 0 56px;
    margin-top: 48px;
}

.related-articles-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

.related-articles-heading {
    font-size: 1.5rem;
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin: 0 0 28px;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 2px solid #e8e4de;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease;
}

.related-card:hover,
.related-card:focus-visible {
    border-color: var(--green-primary);
    outline: none;
}

.related-card-thumb {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f8f7f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.related-card-kicker {
    font-size: 0.75rem;
    font-weight: var(--font-medium);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-tertiary);
}

.related-card-body h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    line-height: 1.4;
}

@media (max-width: 768px) {
    .related-articles-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .related-card {
        flex-direction: row;
    }

    .related-card-thumb {
        width: 120px;
        min-width: 120px;
        aspect-ratio: auto;
    }

    .related-card-body h3 {
        font-size: 0.9rem;
    }
}
