/* ==========================================================================
   TKTTS NEWS ARTICLE (news_page.css)
   Только страница новости: article.page-news.
   Документы (.page-docs), меню и лента этот файл не оформляют.
   ========================================================================== */

.page-news .page-header {
    margin-bottom: 28px;
}

.page-news .post-content {
    color: #334155;
    font-size: 1.08rem;
    line-height: 1.7;
}

.page-news .post-content p {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: inherit !important;
    line-height: inherit;
}

.page-news .post-content li,
.page-news .post-content p span,
.page-news .post-content li span {
    font-size: inherit !important;
}

.page-news .post-content a {
    color: #0056b3;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.page-news .post-content a:hover {
    color: #003d82;
}

/* Отдельная важная строка: воздух и синяя черта, текст обычного цвета и размера */
.page-news .post-content p.news-key {
    margin-top: 1.35rem;
    margin-bottom: 1.35rem;
    padding: 0.1rem 0 0.1rem 14px;
    border-left: 3px solid #0056b3;
    color: inherit;
    background: none;
    font-weight: inherit;
}

.page-news .post-content > p.news-key:first-child {
    margin-top: 0;
}

/* Разделы */
.page-news .post-content h2 {
    margin: 2rem 0 0.9rem;
    padding-left: 14px;
    border-left: 4px solid #0056b3;
    color: #0b1f33;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
}

.page-news .post-content h3 {
    margin: 1.6rem 0 0.7rem;
    padding-left: 12px;
    border-left: 3px solid #94a3b8;
    color: #163b5e;
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.35;
}

/* Заголовок номинации: эмодзи и название одной строкой, без плашки слева */
.page-news .post-content h2.news-topic {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 28px 0 12px;
    padding-left: 0;
    border-left: 0;
    color: #0b1f33;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

/* Списки: маркер, отступ и другой знак на каждом уровне */
.page-news .post-content ul,
.page-news .post-content ol {
    margin: 0.35rem 0 1.15rem;
    padding-left: 1.5rem;
}

.page-news .post-content ul {
    list-style: disc outside !important;
}

.page-news .post-content ol {
    list-style: decimal outside !important;
}

.page-news .post-content ul ul {
    list-style-type: circle !important;
    margin: 0.35rem 0 0.15rem;
}

.page-news .post-content ul ul ul {
    list-style-type: square !important;
}

.page-news .post-content ol ol {
    list-style-type: lower-alpha !important;
}

.page-news .post-content ol ol ol {
    list-style-type: lower-roman !important;
}

.page-news .post-content li {
    margin: 0 0 0.4rem;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.page-news .post-content li::marker {
    color: #0056b3;
    font-weight: 600;
}

.page-news .post-content li li::marker {
    color: #163b5e;
}

.page-news .post-content li li li::marker {
    color: #64748b;
}

.page-news .post-content li strong {
    font-weight: 700;
}

.page-news .post-content li p {
    margin: 0;
}

/* Итоги: 1, 2 и 3 место */
.page-news .post-content .news-places {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0.4rem 0 1.5rem;
}

.page-news .post-content .news-place {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 108px;
    padding: 16px 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: 4px solid #64748b;
    border-radius: 10px;
    text-align: center;
}

.page-news .post-content .news-place--1 {
    background: #f8fafc;
    border-top-color: #0b1f33;
}

.page-news .post-content .news-place--2 {
    border-top-color: #0056b3;
}

.page-news .post-content .news-place--3 {
    border-top-color: #64748b;
}

.page-news .post-content .news-place-rank {
    color: #0b1f33;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.page-news .post-content .news-place-name {
    color: #1e293b;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
}

/* Общие итоги: одна карточка и строки мест */
.page-news .post-content .news-results {
    margin: 30px 0;
    padding: 22px 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: 4px solid #f59e0b;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.page-news .post-content .news-results-title {
    margin-bottom: 14px;
    color: #0b1f33;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.3;
    text-transform: uppercase;
}

.page-news .post-content .news-result {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    color: #1e293b;
    font-size: 1.05rem;
    line-height: 1.4;
}

.page-news .post-content .news-result-medal {
    flex: 0 0 auto;
    font-size: 1.25rem;
    line-height: 1;
}

.page-news .post-content .news-result-rank {
    font-weight: 700;
}

.page-news .post-content .news-result-name {
    font-weight: 700;
}

.page-news .post-content .news-result--1 .news-result-name {
    color: #b45309;
}

.page-news .post-content .news-result--2 .news-result-name {
    color: #475569;
}

.page-news .post-content .news-result--3 .news-result-name {
    color: #9a3412;
}

/* Короткая справка */
.page-news .post-content .news-note {
    margin: 0 0 1.25rem;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #163b5e;
    border-radius: 8px;
    color: #334155;
}

.page-news .post-content .news-note p {
    margin: 0 0 0.45rem;
}

.page-news .post-content .news-note p:last-child {
    margin-bottom: 0;
}

/* Цитата */
.page-news .post-content blockquote {
    margin: 0 0 1.35rem;
    padding: 14px 16px 14px 18px;
    background: #f8fafc;
    border-left: 4px solid #0056b3;
    border-radius: 0 8px 8px 0;
    color: #1e293b;
}

.page-news .post-content blockquote p {
    margin: 0 0 0.45rem;
}

.page-news .post-content blockquote p:last-child {
    margin-bottom: 0;
}

.page-news .post-content blockquote cite {
    display: block;
    margin-top: 8px;
    color: #64748b;
    font-size: 0.9rem;
    font-style: normal;
}

.page-news .post-content blockquote ul,
.page-news .post-content blockquote ol,
.page-news .post-content .news-note ul,
.page-news .post-content .news-note ol {
    margin-bottom: 0;
}

/* Финальная фраза */
.page-news .post-content .news-outro {
    margin: 1.6rem 0 0;
    padding: 16px 18px;
    background: #eef5fc;
    border-radius: 10px;
    color: #0b1f33;
    font-weight: 600;
    line-height: 1.55;
}

/* Картинка в тексте, если для неё есть адрес */
.page-news .post-content figure {
    margin: 0 0 1.35rem;
}

.page-news .post-content figure img,
.page-news .post-content > img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.page-news .post-content figcaption {
    margin-top: 8px;
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.45;
}

/* Таблица */
.page-news .post-content table {
    width: 100%;
    margin: 0 0 1.4rem;
    border-collapse: collapse;
    background: #ffffff;
    font-size: 0.98rem;
    line-height: 1.45;
}

.page-news .post-content th,
.page-news .post-content td {
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: top;
}

.page-news .post-content th {
    background: #f8fafc;
    color: #0b1f33;
    font-weight: 700;
}

.page-news .post-content hr {
    margin: 1.5rem 0;
    border: 0;
    border-top: 1px solid #e2e8f0;
}

/* Теги под текстом */
.page-news .post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
}

.page-news .post-content .tag-link {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eef5fc;
    color: #0b1f33;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
}

.page-news .post-content .tag-link:hover {
    background: #0056b3;
    color: #ffffff;
    text-decoration: none;
}

/* Заголовок галереи на ширине фотографий */
.page-news .gallery-title {
    margin-bottom: 18px;
    padding-left: 14px;
    border-left: 4px solid #0056b3;
    color: #0b1f33;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .page-news .post-content {
        font-size: 1.02rem;
    }

    .page-news .post-content h2,
    .page-news .gallery-title {
        font-size: 1.2rem;
    }

    .page-news .post-content .news-places {
        grid-template-columns: 1fr;
    }

    .page-news .post-content .news-place {
        min-height: 0;
        flex-direction: row;
        justify-content: flex-start;
        gap: 12px;
        text-align: left;
    }

    .page-news .post-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
