/* ==========================================================================
   Conteúdo Relacionado — Frontend
   Nenhuma cor de texto ou fundo é imposta: herda tudo do tema.
   ========================================================================== */

.crb-related-articles {
    margin-top: 40px;
    margin-bottom: 40px;
}

.crb-related-articles,
.crb-related-articles * {
    box-sizing: border-box;
}

/* Título da seção — herda fonte e cor do tema */
.crb-related-heading {
    font-size: .8em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    opacity: .55;
    margin: 0 0 12px;
}

/* Lista vertical */
.crb-related-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Item — linha horizontal: thumb + título */
.crb-related-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    border: 1px solid currentColor;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;          /* herda cor do tema */
    opacity: .9;
    transition: opacity .15s ease;
}

.crb-related-item:hover,
.crb-related-item:focus-visible {
    opacity: 1;
    text-decoration: none;
}

.crb-related-item:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* Thumbnail */
.crb-related-thumb {
    flex-shrink: 0;
    width: var(--crb-thumb-size, 56px);
    height: var(--crb-thumb-size, 56px);
    border-radius: 6px;
    overflow: hidden;
    background: currentColor;
    opacity: 1;
}

.crb-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Título */
.crb-related-title {
    font-size: .95em;
    line-height: 1.45;
    color: inherit;
    /* Clamp em 3 linhas */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
