/* news.list/list — tile layout */
.nl-tile-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.nl-tile-item {
    display: flex;
    flex-direction: column;
}

.nl-tile-item__pic {
    display: block;
    width: 100%;
    aspect-ratio: 3/2;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-decoration: none;
}

.nl-tile-item__body {
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nl-tile-item__info {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: #666;
}

.nl-tile-item__title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.nl-tile-item__title a {
    text-decoration: none;
    color: inherit;
}

.nl-tile-item__title a:hover {
    text-decoration: underline;
}

.nl-tile-item__text {
    font-size: 0.9rem;
    color: #444;
}

/* news.list/list — line layout */
.nl-line-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nl-line-item {
    display: flex;
    gap: 20px;
    background: #fff;
    padding: 16px;
    border-radius: 4px;
}

.nl-line-item__media {
    flex: 0 0 260px;
    max-width: 260px;
}

.nl-line-item__pic-link {
    display: block;
}

.nl-line-item__pic {
    width: 100%;
    height: auto;
    display: block;
}

.nl-line-item__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nl-line-item__info {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: #666;
}

.nl-line-item__title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.nl-line-item__title a {
    text-decoration: none;
    color: inherit;
}

.nl-line-item__title a:hover {
    text-decoration: underline;
}

.nl-line-item__text {
    font-size: 0.9rem;
    color: #444;
}

@media (max-width: 640px) {
    .nl-line-item {
        flex-direction: column;
    }

    .nl-line-item__media {
        flex: none;
        max-width: 100%;
    }
}

/* items_not_found */
.nl-not-found {
    padding: 24px;
    text-align: center;
    color: #666;
}
