.news-toolbar {
    max-width: 72rem;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-search {
    padding: 0.7rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.9rem;
}

.news-categories {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.news-category {
    padding: 0.4rem 1rem;
    border: 1px solid #d1d5db;
    background: transparent;
    border-radius: 999px;
    font-size: 0.78rem;
    cursor: pointer;
}

.news-category.active,
.news-category:hover {
    background: #1f2937;
    color: #fff;
    border-color: #1f2937;
}

.news-list-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 72rem;
    margin: 0 auto;
    padding: 1rem 1.5rem 5rem;
}

.news-list-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #f9fafb;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.news-list-card:hover {
    transform: translateY(-4px);
}

/* The link fills the whole card and has no default link styling */
.news-list-card > a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.news-list-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.news-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.news-list-category {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9ca3af;
    margin: 1.25rem 1.25rem 0.5rem;
}

.news-list-headline {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: #1f2937;
    margin: 0 1.25rem 0.5rem;
}

.news-list-date {
    display: block;
    font-size: 0.75rem;
    color: #9ca3af;
    margin: 0 1.25rem 1.25rem;
}

@media (min-width: 768px) {
    .news-toolbar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .news-search {
        max-width: 20rem;
    }
    .news-list-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.news-article {
    max-width: 48rem;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 5rem;
}

/* Article image: natural proportions, nothing cropped */
.news-article-image {
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.news-article-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.news-article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.news-article-meta .news-list-category,
.news-article-meta .news-list-date {
    margin: 0;
}

.news-article-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 400;
    color: #1f2937;
    line-height: 1.25;
    margin: 0 0 1.5rem;
}

.news-article-body {
    font-size: 1rem;
    line-height: 1.75;
    color: #374151;
}

.news-article-body p {
    margin: 0 0 1.25rem;
}

.news-link {
    display: inline-block;
    margin-top: 2.5rem;
    font-size: 0.85rem;
    color: #1f2937;
    text-decoration: none;
    border-bottom: 1px solid #1f2937;
    padding-bottom: 2px;
}

.news-link:hover {
    opacity: 0.7;
}