/* Раздел «Новости»: публичные страницы /news и /news/<slug>. Подключается после main-styles.css и logo.css;
   main-styles.css не меняется. Правила для темы neo лежат в theme-neo.css (html[data-theme="neo"]). */

.news-page {
    max-width: 860px;
    margin: 0 auto;
}
.news-page h1 {
    margin-bottom: 20px;
}
.news-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.news-card {
    border: 1px solid #e3e6f0;
    border-radius: 12px;
    background: #ffffff;
    padding: 18px 20px;
    overflow-wrap: anywhere;
}
.news-card h2 {
    margin: 0 0 6px;
    font-size: 1.25rem;
    line-height: 1.3;
}
.news-card h2 a {
    color: #4c51bf;
    text-decoration: none;
}
.news-card h2 a:hover {
    text-decoration: underline;
}
.news-card a {
    color: #4c51bf;
}
.news-card p {
    margin: 8px 0 0;
}
.news-card-cover,
.news-cover {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 0 12px;
    border-radius: 10px;
    object-fit: cover;
}
.news-meta {
    color: #5b6275;
    font-size: 0.9rem;
}
.news-article h1 {
    margin-bottom: 8px;
    overflow-wrap: anywhere;
}
.news-body {
    margin-top: 16px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}
.news-body p,
.news-body ul,
.news-body ol,
.news-body blockquote {
    margin: 0 0 14px;
}
.news-body h2 {
    margin: 22px 0 10px;
    font-size: 1.35rem;
}
.news-body h3 {
    margin: 18px 0 8px;
    font-size: 1.15rem;
}
.news-body ul,
.news-body ol {
    padding-left: 24px;
}
.news-body blockquote {
    padding: 8px 14px;
    border-left: 4px solid #667eea;
    background: #f4f5fb;
    border-radius: 0 8px 8px 0;
}
.news-body a {
    color: #4c51bf;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.news-back {
    display: inline-block;
    margin-top: 18px;
    color: #4c51bf;
}
.news-more {
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid #e3e6f0;
}
.news-more h2 {
    font-size: 1.15rem;
    margin: 0 0 10px;
}
.news-more ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.news-more time {
    color: #5b6275;
    font-size: 0.85rem;
    margin-left: 6px;
}
.news-empty {
    color: #5b6275;
}
.news-pager {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}
.news-pager a,
.news-pager .is-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid #d5d9ea;
    background: #ffffff;
    color: #4c51bf;
    text-decoration: none;
}
.news-pager .is-current {
    background: #667eea;
    border-color: #667eea;
    color: #ffffff;
}
.news-page a:focus-visible,
.news-pager a:focus-visible {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}
@media (max-width: 600px) {
    .news-card {
        padding: 14px;
    }
    .news-card h2 {
        font-size: 1.1rem;
    }
    .news-page h1 {
        font-size: 1.6rem;
    }
}
