/*
 * Публичный CSS-модуль.
 *
 * Модуль: article.
 *
 * Содержимое:
 * - публичная detail-страница статьи;
 * - заголовок, автор и метаданные;
 * - обложка;
 * - layout статьи и блок share.
 *
 * Стили editorial body остаются в site-core.css до переноса
 * в site-content.css:
 * - .article-content*;
 * - .article-quote*;
 * - .article-key-point*;
 * - .article-takeaways*;
 * - .tag-cloud*;
 * - .related-section*;
 * - изображения и таблицы BODYSYNTAX.
 */
/* ============================================================
   Оболочка detail-страницы
   ============================================================ */
.article-page {
    padding: 70px 0 80px;
}
.article-header {
    max-width: 880px;
    margin: 0 auto 40px;
}
.article-title {
    margin: 10px 0 16px;
    color: var(--ink);
    font: 700 clamp(1.45rem, 2.35vw, 2.25rem)/1.05 var(--display);
    letter-spacing: -.03em;
}
.article-summary {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: 23px;
    line-height: 1.45;
}
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
    color: var(--muted);
    font: 11px/1.4 var(--ui);
    letter-spacing: .06em;
    text-transform: uppercase;
}
.article-meta .meta__separator {
    width: 3px;
    height: 3px;
    align-self: center;
    border-radius: 50%;
    background: var(--line-strong);
}
/* ============================================================
   Автор
   ============================================================ */
.article-author {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 8px;
}
.article-author--top {
    margin-bottom: 14px;
}
.article-author__link {
    display: flex;
    align-items: center;
    gap: 14px;
    color: inherit;
    text-decoration: none;
}
.article-author__avatar {
    display: block;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--soft);
    object-fit: cover;
}
.article-author__avatar--fallback {
    display: grid;
    place-items: center;
    color: var(--ink);
    font-weight: 700;
}
.article-author__body {
    min-width: 0;
}
.article-author__name {
    color: var(--ink);
    font: 700 18px/1.2 var(--ui);
}
.article-author__job {
    color: var(--muted);
    font: 12px/1.3 var(--ui);
}
/* ============================================================
   Обложка
   ============================================================ */
.article-cover {
    max-width: 1120px;
    margin: 0 auto 54px;
}
.article-cover img {
    width: 100%;
    max-height: 680px;
    object-fit: cover;
}
.article-cover figcaption {
    margin-top: 6px;
}
.article-cover figcaption .image-caption {
    display: block;
    margin-top: 6px;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.4;
}
.article-cover figcaption .image-credit {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.3;
}
/* ============================================================
   Layout и share
   ============================================================ */
.article-layout {
    display: grid;
    grid-template-columns: 170px minmax(0, var(--reading));
    justify-content: center;
    gap: 42px;
}
.article-aside {
    padding-top: 9px;
    font: 11px/1.3 var(--ui);
    letter-spacing: .08em;
    text-transform: uppercase;
}
.article-aside__label {
    margin-bottom: 10px;
    color: var(--muted);
}
.share-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.share-links a {
    text-decoration: none;
}
.share-links--article {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
.share-links--article a,
.share-links--article .share-copy {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    color: var(--ink);
    font: 700 12px/1 var(--ui);
    letter-spacing: .08em;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, color .16s ease;
}
.share-links--article a:hover,
.share-links--article .share-copy:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--white);
}
.share-links--article .share-copy {
    width: 100%;
}
/* ============================================================
   Адаптивность article shell
   ============================================================ */
@media (max-width: 900px) {
    .article-page {
        padding: 54px 0 66px;
    }
    .article-header {
        margin-bottom: 32px;
    }
    .article-cover {
        margin-bottom: 38px;
    }
    .article-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .article-aside {
        display: flex;
        align-items: center;
        gap: 14px;
        padding-top: 0;
    }
    .article-aside__label {
        margin: 0;
    }
    .share-links--article {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        flex: 1;
        gap: 8px;
    }
    .share-links--article a,
    .share-links--article .share-copy {
        min-height: 38px;
        padding: 0 8px;
        font-size: 10px;
    }
}
@media (max-width: 640px) {
    .article-page {
        padding: 38px 0 50px;
    }
    .article-header {
        margin-bottom: 26px;
    }
    .article-title {
        margin: 8px 0 12px;
        font-size: 31px;
        line-height: 1.06;
    }
    .article-summary {
        font-size: 18px;
        line-height: 1.5;
    }
    .article-meta {
        gap: 8px;
        margin-top: 12px;
        font-size: 10px;
    }
    .article-author__avatar {
        width: 42px;
        height: 42px;
    }
    .article-author__name {
        font-size: 16px;
    }
    .article-cover {
        margin-bottom: 30px;
    }
    .article-cover figcaption .image-caption {
        font-size: 14px;
    }
    .article-aside {
        display: block;
    }
    .article-aside__label {
        margin-bottom: 9px;
    }
    .share-links--article {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .share-links--article a,
    .share-links--article .share-copy {
        min-height: 38px;
        font-size: 10px;
    }
}
/* ============================================================
   Публичный контент: related materials на мобильных устройствах
   ============================================================ */
@media (max-width: 760px) {
    .related-section {
        margin-top: 46px;
    }
    .related-section .story-grid--three {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .related-section .story-card {
        min-width: 0;
    }
    .related-section .story-card__body {
        min-width: 0;
    }
    .related-section .story-card__title,
    .related-section .story-card__title a,
    .related-section .story-card__summary,
    .related-section .story-card__meta {
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}
/* ============================================================
   Related materials на мобильных устройствах
   ============================================================ */
@media (max-width: 760px) {
    .article-content .related-section {
        margin-top: 46px;
    }
    .article-content .related-section .story-grid--three {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .article-content .related-section .story-card,
    .article-content .related-section .story-card__body {
        min-width: 0;
    }
    .article-content .related-section .story-card__title,
    .article-content .related-section .story-card__title a,
    .article-content .related-section .story-card__summary,
    .article-content .related-section .story-card__meta {
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}