/* ==========================================================================
   НейроНьюс — стили страниц архива новостей (news.css)
   Работает поверх tokens из style.css. Без !important (см. AGENTS.md).
   ========================================================================== */

.news-article {
  max-width: 760px;
  padding-top: 48px;
  padding-bottom: 64px;
}

.news-breadcrumb {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-faint);
  margin-bottom: 28px;
}

.news-breadcrumb a {
  color: var(--ink-muted);
  text-decoration: none;
}

.news-breadcrumb a:hover { color: var(--accent); }

.news-head { margin-bottom: 32px; }

.news-slot-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  margin-bottom: 18px;
}

.news-head h1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4.5vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.news-meta {
  font-size: 14px;
  color: var(--ink-muted);
}

.news-author a {
  color: var(--ink-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-strong);
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.news-author a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.news-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--paper-surface);
  border: 1px solid var(--line);
  color: var(--ink-muted);
}

a.news-tag {
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

a.news-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--paper-hover, rgba(0, 0, 0, 0.04));
}

.news-topic-links {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.5;
}

.news-topic-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.news-topic-links a:hover {
  text-decoration: underline;
}

.news-analysis-block {
  margin: 18px 0;
  padding: 16px 20px;
  background: var(--paper);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
}

.news-analysis-block h3 {
  font-size: 13px;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  margin-bottom: 8px;
}

.news-analysis-block p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
}

.news-context {
  margin-top: 32px;
  padding: 24px;
  background: var(--paper-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.news-context h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
  color: var(--ink);
}

.news-context p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 12px;
}

.news-context p:last-child {
  margin-bottom: 0;
}

.news-source-dossier {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.news-source-dossier h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink);
}

.news-source-dossier p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-muted);
  margin-bottom: 0;
}

.news-provenance {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 24px;
  padding: 14px 18px;
  background: var(--paper-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-muted);
}

.news-provenance-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.news-provenance-text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.news-provenance-text a:hover {
  color: var(--ink);
}

@media (prefers-color-scheme: dark) {
  .news-provenance-text a {
    color: #618eff;
  }
}

/* ==========================================================================
   Редакционная политика (/editorial/)
   ========================================================================== */

.editorial-page {
  max-width: 760px;
  padding-top: 48px;
  padding-bottom: 64px;
}

.editorial-head {
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}

.editorial-head h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.editorial-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-muted);
}

.editorial-section {
  margin-bottom: 40px;
}

.editorial-section h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.editorial-section p,
.editorial-section ul {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 16px;
}

.editorial-section ul {
  padding-left: 22px;
}

.editorial-section li {
  margin-bottom: 10px;
}

.editorial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 20px;
}

@media (min-width: 640px) {
  .editorial-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.editorial-step {
  padding: 20px;
  background: var(--paper-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.editorial-step h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}

.editorial-step p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-muted);
  margin-bottom: 0;
}

.editorial-card {
  padding: 20px;
  background: var(--paper-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  margin-top: 16px;
}

.editorial-card p {
  margin-bottom: 12px;
}

.editorial-card ul {
  margin-bottom: 0;
}

.news-body {
  font-size: 17px;
  line-height: 1.7;
}

.news-body p { margin-bottom: 18px; }

.news-body ul {
  margin: 0 0 18px 0;
  padding-left: 22px;
}

.news-body li { margin-bottom: 10px; }

.news-body b,
.news-body strong { font-weight: 700; }

.news-body a { color: var(--accent); }

.news-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.news-foot a {
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.news-source { color: var(--ink-muted); }
.news-source:hover { color: var(--accent); }

.news-tg { color: var(--accent); }

.news-cta {
  margin-top: 48px;
  padding: 32px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.news-cta h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
}

.news-cta p {
  color: var(--ink-muted);
  margin-bottom: 20px;
}

/* ----- Навигация между выпусками (S-0020) ----- */

.news-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 16px;
  margin-top: 40px;
}

.news-nav a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  text-decoration: none;
  transition: border-color 0.2s var(--ease-spring), transform 0.2s var(--ease-spring);
}

.news-nav a:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.news-nav-prev {
  text-align: left;
}

.news-nav-next {
  text-align: right;
}

.news-nav-archive {
  text-align: center;
  justify-content: center;
  min-width: 130px;
}

.news-nav-dir {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.news-nav-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  transition: color 0.15s ease;
}

.news-nav a:hover .news-nav-title,
.news-nav a:hover .news-nav-dir {
  color: var(--accent);
}

.news-nav-empty {
  visibility: hidden;
}

/* ----- Читайте также / Перекрёстные ссылки (S-0020) ----- */

.news-related {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.news-related-heading {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px;
}

.news-related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.news-related-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  text-decoration: none;
  transition: border-color 0.2s var(--ease-spring), transform 0.2s var(--ease-spring);
}

.news-related-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.news-related-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.news-related-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  transition: color 0.15s ease;
}

.news-related-card:hover .news-related-title {
  color: var(--accent);
}

.news-related-excerpt {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-muted);
  margin-top: 2px;
}

/* ----- Архив ----- */

.news-archive {
  max-width: 860px;
  padding-top: 48px;
  padding-bottom: 64px;
}

.news-archive-head { margin-bottom: 40px; }

.news-archive-head h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  margin-bottom: 12px;
}

.archive-group { margin-bottom: 36px; }

.archive-date {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}

.archive-item {
  display: block;
  padding: 14px 0;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.archive-item:last-child { border-bottom: none; }

.archive-item:hover .archive-title { color: var(--accent); }

.archive-item-top {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
}

.archive-slot {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  white-space: nowrap;
}

.archive-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  transition: color 0.2s var(--ease-spring);
}

.archive-excerpt {
  font-size: 14px;
  color: var(--ink-muted);
  margin-top: 4px;
}

.archive-topics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 20px 0 32px 0;
  padding: 14px 18px;
  background: var(--paper-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.archive-topics-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 4px;
}

.archive-topic-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.archive-topic-chip:hover,
.archive-topic-chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

@media (max-width: 640px) {
  .news-article,
  .news-archive {
    padding-top: 32px;
    padding-bottom: 48px;
  }

  .news-cta { padding: 24px; }

  .news-nav {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .news-nav-next {
    text-align: left;
  }

  .news-related-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
