/* sjd-utils — ficha editorial */

.sjd-infoeditorial {
    --sjd-ie-label-color: #6b7280;
    --sjd-ie-value-color: #111827;
    --sjd-ie-border-color: #e5e7eb;
    --sjd-ie-font-size: 0.875rem;
    --sjd-ie-line-height: 1.6;
    --sjd-ie-label-width: 140px;

    font-size: var(--sjd-ie-font-size);
    line-height: var(--sjd-ie-line-height);
    color: var(--sjd-ie-value-color);
}

.sjd-infoeditorial__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Desktop: dos columnas */
.sjd-infoeditorial__row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--sjd-ie-border-color);
}

.sjd-infoeditorial__row:last-child {
    border-bottom: none;
}

.sjd-infoeditorial__label {
    display: block !important;
    flex: 0 0 var(--sjd-ie-label-width) !important;
    max-width: var(--sjd-ie-label-width);
    font-weight: 500;
    color: var(--sjd-ie-label-color);
}

.sjd-infoeditorial__value {
    display: block !important;
    flex: 1 1 0 !important;
    min-width: 0;
    margin: 0 !important; /* reset margen por defecto del navegador en <dd> */
}

/* Móvil: una columna */
@media (max-width: 540px) {
    .sjd-infoeditorial__row {
        flex-direction: column !important;
        gap: 0.1rem;
        padding: 0.6rem 0;
    }

    .sjd-infoeditorial__label {
        flex: none !important;
        max-width: none;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        color: var(--sjd-ie-label-color);
    }

    .sjd-infoeditorial__value {
        flex: none !important;
    }
}
