/* Типографика лонгрида и список материалов.
   Статьи генерируются из markdown (tools/gen_articles.py): подзаголовки, списки,
   таблицы, код. В style.css этих правил не было — там статьи были короткими блоками. */

.breadcrumbs { font-size: 13px; color: var(--muted, rgba(255,255,255,.55)); margin-bottom: 18px; }
.breadcrumbs a { color: var(--soft, rgba(255,255,255,.75)); text-decoration: none; }
.breadcrumbs a:hover { color: #9d7cff; }

.article-shell { max-width: 940px; margin: 0 auto; }

.article-content h2 { margin: 44px 0 16px; }
.article-content h2:first-child { margin-top: 0; }
.article-content h3 { margin: 28px 0 12px; font-size: 21px; line-height: 1.25; }
.article-content p { margin: 0 0 18px; }
.article-content ul, .article-content ol { margin: 0 0 22px; padding-left: 24px; }
.article-content li { margin-bottom: 10px; }
.article-content strong { color: #fff; }
.article-content a { color: #b3a0ff; text-decoration: none; border-bottom: 1px solid rgba(179,160,255,.45); }
.article-content a:hover { color: #d6ccff; }
.article-content hr { border: 0; height: 1px; background: rgba(255,255,255,.12); margin: 36px 0; }

.article-content blockquote {
  margin: 24px 0; padding: 16px 22px;
  border-left: 3px solid #9d7cff;
  background: rgba(157,124,255,.08);
  border-radius: 0 18px 18px 0;
}
.article-content blockquote p { margin: 0; }

.article-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92em; padding: 2px 6px; border-radius: 6px;
  background: rgba(255,255,255,.08); color: #cfe0ff;
}
.article-content pre {
  margin: 22px 0; padding: 20px; overflow-x: auto;
  border: 1px solid rgba(255,255,255,.12); border-radius: 20px;
  background: rgba(6,9,18,.72);
}
.article-content pre code { background: none; padding: 0; font-size: 15px; line-height: 1.6; }

/* Широкие таблицы скроллятся внутри себя, страница вбок не едет */
.table-wrap { overflow-x: auto; margin: 22px 0; }
.article-content table { width: 100%; border-collapse: collapse; font-size: 16px; }
.article-content th, .article-content td {
  padding: 12px 14px; text-align: left;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.article-content th { color: #fff; font-weight: 700; white-space: nowrap; }

.article-related {
  max-width: 820px; margin: 34px auto 0; padding: 26px 32px;
  border: 1px solid var(--line, rgba(255,255,255,.12)); border-radius: 28px;
  background: rgba(255,255,255,.03);
}
.article-related h2 { font-size: 20px; margin: 0 0 14px; }
.article-related ul { list-style: none; padding: 0; margin: 0; }
.article-related li { margin-bottom: 10px; }
.article-related a { color: var(--soft, rgba(255,255,255,.82)); text-decoration: none; border-bottom: 1px solid rgba(157,124,255,.4); }
.article-related a:hover { color: #b3a0ff; }

/* Страница «Все материалы» */
.materials-list { display: grid; gap: 18px; margin-top: 34px; }
.materials-list .news-card {
  padding: 26px 30px;
  border: 1px solid var(--line, rgba(255,255,255,.12)); border-radius: 28px;
  background: rgba(255,255,255,.035);
}
/* letter-spacing задаём явно: глобальный стиль h2 сильно сжимает буквы,
   на длинных заголовках карточек слова начинали слипаться */
.materials-list h2 { margin: 12px 0 10px; font-size: clamp(21px, 2.4vw, 27px); line-height: 1.3; letter-spacing: -0.01em; }
.materials-list h2 a { color: #fff; text-decoration: none; }
.materials-list h2 a:hover { color: #b3a0ff; }
.materials-list p { color: var(--soft, rgba(255,255,255,.78)); margin: 0 0 14px; line-height: 1.7; }
.materials-list .news-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; font-weight: 800; color: var(--muted, rgba(255,255,255,.6)); }
.materials-list .text-link { color: #b3a0ff; text-decoration: none; font-weight: 700; }

@media (max-width: 680px) {
  .article-related, .materials-list .news-card { padding: 20px; border-radius: 22px; }
}
