/* ===== ЛЕНТА НОВОСТЕЙ =====
   Переиспользуемый блок: главная, одиночная новость, страницы рубрик.
   Вынесен из homepage.css, потому что тот грузится только на главной.

   Формат текст-первый — сознательно: у 92 из 137 записей сайта битые
   изображения, лента на картинках развалилась бы. */

.news-feed {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    padding: 20px 18px;
}

.news-feed-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
}

.news-feed-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding-left: 14px;
    border-left: 4px solid #2a7a2a;
}

.news-feed-title a { color: #1a1a1a; text-decoration: none; }
.news-feed-title a:hover { color: #2a7a2a; }

.news-feed-all {
    font-size: 13px;
    font-weight: 600;
    color: #2a7a2a;
    text-decoration: none;
    white-space: nowrap;
}

.news-feed-all:hover { text-decoration: underline; }

/* --- метка даты: моноширинная и приглушённая --- */

.news-date {
    display: inline-block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    color: #8a9099;
    font-variant-numeric: tabular-nums;
}

/* --- первая новость: картинка + дата + заголовок --- */

.news-lead {
    display: block;
    text-decoration: none;
    padding-bottom: 16px;
}

.news-lead-image {
    display: block;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
    /* градиент виден и когда картинки нет, и когда файл битый */
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

.news-lead-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-lead-title {
    display: block;
    margin-top: 4px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
    color: #1a1a1a;
}

.news-lead:hover .news-lead-title { color: #2a7a2a; }

/* --- остальные новости: дата + заголовок --- */

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

.news-item {
    padding: 11px 0;
    border-top: 1px solid #eee;
}

.news-item .news-date { margin-right: 8px; }

.news-item-title {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.55;
    color: #1a1a1a;
    text-decoration: none;
}

.news-item-title:hover { color: #2a7a2a; }

/* --- дата в самой новости (у вечнозелёных статей скрыта намеренно) --- */

.news-single-date {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 14px;
    color: #8a9099;
    margin: 0 0 18px;
}
