/* KIOUT News Importer — стили контента статей (фронтенд) */

/* Текст по всей ширине (justify) */
div[style*="max-width:670px"] {
    text-align: justify;
}

div[style*="max-width:670px"] h2 {
    text-align: left;
}

/* Отступы абзацев */
div[style*="max-width:670px"] p {
    margin: 0 0 12px 0;
    line-height: 1.7;
}

div[style*="max-width:670px"] div {
    margin-bottom: 4px;
}

/* Таблицы */
div[style*="max-width:670px"] table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    text-align: left;
}

div[style*="max-width:670px"] td,
div[style*="max-width:670px"] th {
    padding: 8px;
}

div[style*="max-width:670px"] td *,
div[style*="max-width:670px"] th * {
    color: #333 !important;
}

/* Картинки: текст всегда снизу, оригинальная ширина, отступ */
div[style*="max-width:670px"] img {
    display: block;
    float: none !important;
    max-width: 100%;
    height: auto !important;
    margin: 16px 0;
    clear: both;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    div[style*="max-width:670px"] {
        padding: 0 16px;
        box-sizing: border-box;
    }

    div[style*="max-width:670px"] img {
        width: 100% !important;
    }

    div[style*="max-width:670px"] h2 {
        font-size: 22px;
        line-height: 1.3;
    }
}
