/* News list: BEM/rem. Source: the old Bitrix news.list component.
   Lengths are in rem, 1rem = 16px; comments keep the original px values. */

.news-list-page {
    /* The old page ended with an external clearfix line after the article:
       measured at 18.1875px at 1440. */
    padding-bottom: 1.13671875rem;
}

.news-list {
    width: 100%;
    padding: 1.125rem 0 2.625rem; /* 18px 0 42px */
}

.news-list__columns {
    display: flex;
    align-items: flex-start;
}

.news-list__column {
    flex: 0 0 18.75rem; /* 300px content + 2 x 10px padding = 320px */
    padding: 0 0.625rem; /* 10px */
    overflow: hidden;
}

.news-list__item {
    width: 100%;
    margin-top: 2.5rem; /* 40px */
    overflow-wrap: anywhere;
}

.news-list__item:first-child {
    margin-top: 0;
}

.news-list__date {
    margin: 1.125rem 0; /* 18px */
    color: #26272a;
    font-size: 0.875rem; /* 14px */
    text-transform: lowercase;
}

.news-list__title,
.news-list__title a {
    color: #26272a;
    font-size: 0.875rem; /* 14px */
    text-decoration: none;
    text-transform: uppercase;
}

.news-list__title a:hover {
    text-decoration: underline;
}

.news-list__preview {
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    color: #565656;
    font-size: .8125rem; /* 13px */
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.news-list__preview p {
    margin: 0 0 .5rem;
}

.news-list__preview p:last-child {
    margin-bottom: 0;
}

.news-list__preview ul,
.news-list__preview ol {
    margin: .5rem 0;
    padding-left: 1.25rem;
}

.news-list__preview li {
    margin: .125rem 0;
}

.news-list__preview table {
    width: 100%;
    margin: .5rem 0;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: .75rem;
}

.news-list__preview th,
.news-list__preview td {
    padding: .25rem .375rem;
    border: 1px solid #d9dee4;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.news-list__image {
    width: 100%;
    height: 6.0625rem; /* 97px */
    overflow: hidden;
}

.news-list__image img {
    /* Fill the 97px band and crop around the center; the old top-left
       clipping cut the subject off. */
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.news-list__pagination {
    margin: 0.5rem 0 0; /* 8px */
    text-align: center;
}

.news-list__more {
    display: inline-block;
    min-width: 8rem; /* 128px */
    margin: 0 0.25rem; /* 4px */
    padding: 0.375rem 1rem; /* 6px 16px */
    border: 2px solid #004f9f;
    border-radius: 1.25rem; /* 20px */
    color: #004f9f;
    background: #fff;
    font-size: 0.875rem; /* 14px */
    line-height: 1.4;
    text-decoration: none;
}

.news-list__more:hover {
    color: #fff;
    background: #004f9f;
}

@media (max-width: 60rem) { /* 960px */
    /* The old fixed 180px card height is intentionally gone: it clipped and
       overlapped long excerpts between 681 and 960px. Cards size to content. */
    .news-list__column {
        flex: 0 0 33.333%;
        box-sizing: border-box;
        padding: 0 0.625rem; /* 10px */
    }
}

@media (max-width: 42.5rem) { /* 680px */
    .news-list__columns {
        flex-direction: column;
    }

    .news-list__column {
        flex: 0 0 auto;
        width: 100%;
        box-sizing: border-box;
        padding: 0 1rem; /* 16px */
    }
}
