/* News on the front page.
   Two blocks: the headline row of up to three posts under the slider, and the
   ordinary listing below it. The listing reuses the template's existing
   .article-wrapper styles - only the headline row is new. */

/* ------------------------------------------------------------ headline row

   The template's own list images are 190x96 (cms.min.css: .article-image), and
   .article-wrapper indents them by 20px on the left. The headline row uses the
   same figures so both blocks line up on one left edge.

   Fixed-width columns, not flex: 1 - with a single headline post a flexible
   column would stretch across the full width. Items fill from the left and the
   next one moves to its right as more posts are flagged.
   ------------------------------------------------------------------------ */

.head-news {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;   /* fill from the left, never spread out */
    gap: 14px;
    padding: 18px 11px 22px 20px;  /* matches .article-wrapper */
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    margin-bottom: 4px;
}

.head-news-item {
    width: 190px;      /* same as .article-image */
    flex: 0 0 190px;   /* never grow, never shrink */
}

.head-news-thumb {
    display: block;
    width: 190px;
    height: 96px;      /* same as .article-image */
    overflow: hidden;
    border: 1px solid #541f09;
    box-shadow: inset 0 0 1px 1px #000;
    background: rgba(0, 0, 0, .35);
}

.head-news-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;   /* crop instead of distort */
}

.head-news-thumb-empty {
    display: block;
    width: 100%;
    height: 100%;
    background: rgba(20, 14, 9, .5);
}

.head-news-title {
    display: block;
    margin: 9px 0 6px;
    font-size: 13px;
    line-height: 1.35;
    color: #ffb100;
    word-wrap: break-word;
}

.head-news-title:hover { color: #fff; }

.head-news-meta {
    font-size: 11px;
    color: #855b47;
}

.head-news-meta .comments-link { margin-right: 10px; }

/* --------------------------------------------------------------- listing */

.news-empty {
    padding: 26px 0;
    text-align: center;
    color: #8d8069;
    font-style: italic;
}

.news-more-wrapper {
    padding: 6px 0 24px;
    text-align: center;
}

.news-more {
    display: block;
    padding: 13px 0;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(90, 66, 40, .45);
    border-radius: 3px;
    color: #ffb100;
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
}

.news-more:hover {
    background: rgba(255, 255, 255, .07);
    color: #fff !important;
}

@media (max-width: 700px) {
    .head-news-item { width: 100%; flex: 1 1 100%; }
    .head-news-thumb { width: 100%; }
}
