/* =========================================================
   Статьи: список и страница статьи (собираются tools/build_articles.py).
   Страница статьи стоит на каркасе главы (chapter.css): та же колонка 820px,
   заголовок, полоса прогресса; здесь — отличия публицистики от прозы.
   ========================================================= */
.article__lead { color: var(--gray-300); font-size: calc(18px * var(--fs-s, 1)); line-height: 28px; max-width: 64ch; }
.article__tags { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: calc(13px * var(--fs-s, 1)); line-height: 18px; color: var(--gray-500); }
.article__tag { white-space: nowrap; }
.article__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 4px; }
.article__share .icon { width: 18px; height: 18px; }
.article__share-note { font-size: calc(13px * var(--fs-s, 1)); line-height: 18px; color: var(--gray-500); }
.article__share-note:empty { display: none; }
.article__cover { margin: 24px 0 0; }
.article__cover img { display: block; width: 100%; height: auto; border-radius: var(--radius-m); background: var(--gray-1500); }
/* оглавление: только у длинных статей (четыре раздела и больше) */
.article__toc { margin: 24px 0 0; padding: 16px 20px; border-radius: var(--radius-m); background: var(--gray-1500); }
.article__toc-title { font-size: calc(12px * var(--fs-s, 1)); line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-500); }
.article__toc ol { margin: 8px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.article__toc a { color: var(--gray-300); font-size: calc(15px * var(--fs-s, 1)); line-height: 22px; }
.article__toc a:hover { color: var(--link-hover); }
/* текст: без красной строки, с подзаголовками, списками, цитатами, картинками */
.article .chapter__text p { text-indent: 0; margin-top: 16px; font-size: calc(17px * var(--fs-s, 1)); line-height: 29px; }
.article .chapter__text h2 { margin: 36px 0 4px; }
.article .chapter__text h3 { margin: 26px 0 2px; font-size: 19px; line-height: 26px; font-weight: 600; color: var(--text-light); }
.article .chapter__text h2 + p, .article .chapter__text h3 + p { margin-top: 8px; }
.article .chapter__text ul, .article .chapter__text ol { margin: 14px 0 0; padding-left: 24px; color: var(--gray-200); font-size: calc(17px * var(--fs-s, 1)); line-height: 29px; }
.article .chapter__text li { margin-top: 6px; }
.article .chapter__text li::marker { color: var(--gray-500); }
.article .chapter__text blockquote { margin: 20px 0 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--primary); }
.article .chapter__text blockquote p { margin: 0; color: var(--gray-300); font-style: italic; }
.article .chapter__text a { color: var(--blue-600); text-decoration: underline; text-decoration-color: var(--link-line); text-underline-offset: 3px; }
.article .chapter__text a:hover { color: var(--link-hover); text-decoration-color: currentColor; }
.article .chapter__text code { padding: 1px 6px; border-radius: 6px; background: var(--gray-1500); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
.article .chapter__text hr { margin: 28px auto; width: 64px; border: 0; border-top: 1px solid var(--gray-1000); }
.article .chapter__text figure { margin: 24px 0 0; }
.article .chapter__text figure img { display: block; width: 100%; height: auto; border-radius: var(--radius-m); background: var(--gray-1500); }
.article .chapter__text figcaption { margin-top: 8px; font-size: calc(13px * var(--fs-s, 1)); line-height: 18px; color: var(--gray-500); text-align: center; }
.article .chapter__text > :first-child { margin-top: 0; }
/* «Читать дальше» внутри колонки статьи */
.article__more { margin-top: 4px; }
.article__more .article-card { background: var(--gray-1500); box-shadow: none; }
.article__feed a { font-size: calc(13px * var(--fs-s, 1)); line-height: 18px; color: var(--gray-500); text-decoration: underline; text-decoration-color: var(--link-line); text-underline-offset: 3px; }
.article__feed a:hover { color: var(--link-hover); }
@media (max-width: 767.98px) {
  .article__lead { font-size: 16px; line-height: 25px; }
  .article .chapter__text p, .article .chapter__text ul, .article .chapter__text ol { font-size: 16px; line-height: 26px; }
  .article .chapter__text h3 { font-size: 18px; line-height: 24px; }
  .article__actions .article__share { width: 100%; justify-content: center; }
  .article__more { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1100.98px) { .article__more { grid-template-columns: minmax(0, 1fr); } }
