/* <x-related-content> — content-hub blocks (SP-102) */
.related-content {
    margin: 32px 0;
}

.related-content__heading {
    margin-bottom: 16px;
}

.related-content__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.related-content__item {
    display: flex;
    flex-direction: column;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.related-content__visual img {
    display: block;
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.related-content__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
}

.related-content__type {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #8a8a8a;
}

.related-content__title {
    font-weight: 600;
    color: inherit;
    text-decoration: none;
}

a.related-content__title:hover,
a.related-content__title:focus {
    text-decoration: underline;
}

@media (max-width: 576px) {
    .related-content__list {
        grid-template-columns: 1fr;
    }

    .related-content__visual img {
        height: 160px;
    }
}
