/* circuit.css supplies the shell (topbar, .wrap, .empty-state,
   .btn-ghost). Below is news-list/news-detail specific. */

.news-back { margin: 24px 0 8px; }

.news-list { display: flex; flex-direction: column; gap: 10px; margin: 22px 0 24px; }
.news-row {
  display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 14px;
  border: 1px solid var(--line); background: linear-gradient(175deg, var(--surface) 0%, var(--card-gradient-end) 100%);
  color: inherit; transition: border-color 0.15s ease, transform 0.15s ease;
}
.news-row:hover { border-color: var(--accent-line); transform: translateY(-1px); }
.news-row-img {
  width: 72px; height: 52px; border-radius: 10px; flex-shrink: 0; overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--line);
}
.news-row-img img { width: 100%; height: 100%; object-fit: cover; }
.news-row-body { flex: 1; min-width: 0; }
.news-row-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-tertiary); flex-wrap: wrap; }
.news-cat-chip {
  font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 100px;
  background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent);
}
/* Tag filter on the listing, and the tag chips on an article (links there). */
.news-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.news-tag-link {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text-secondary); font-size: 13px; font-weight: 600;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.news-tag-link:hover { border-color: var(--accent-line); color: var(--text-primary); }
.news-tag-link.active { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
a.news-cat-chip:hover { background: var(--accent); color: #04150c; }
.news-kind { text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }
.news-row-title { font-size: 15px; font-weight: 800; margin-top: 4px; }
/* Lead story: the cover across the full card width, a bigger title and an excerpt. */
.news-row.featured { flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; border-color: var(--accent-line); box-shadow: 0 0 30px -14px var(--accent); }
.news-row.featured .news-row-img { width: 100%; height: auto; aspect-ratio: 21 / 9; border: 0; border-radius: 0; }
.news-row.featured .news-row-body { padding: 18px 22px 22px; }
.news-row.featured:not(:has(.news-row-img)) .news-row-body { padding-top: 22px; }
.news-row.featured .news-row-title { font-size: 24px; letter-spacing: -0.01em; line-height: 1.2; margin-top: 8px; }
.news-row-excerpt { margin: 10px 0 0; font-size: 14px; line-height: 1.6; color: var(--text-secondary); }

.news-pagination { display: flex; justify-content: space-between; margin-bottom: 40px; }

.news-article-wrap { max-width: 760px; }
.news-article h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.01em; margin-top: 10px; }
.news-article-cover {
  margin-top: 18px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line);
}
.news-article-cover img { width: 100%; display: block; }
.news-article-body { font-size: 15.5px; line-height: 1.7; color: var(--text-secondary); margin-top: 22px; }
.news-article-body p { margin-bottom: 1em; }

.news-article-video {
  display: block; width: 100%; margin-top: 24px;
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: #000;
}

/* Gallery images the body did not place inline: the shared swipeable
   slideshow (slideshow.css), full article width instead of the car page's
   560px column. */
.news-article .car-slideshow { max-width: none; margin: 24px 0 0; border-radius: var(--radius-lg); border-color: var(--line); }
.news-article .car-slide { aspect-ratio: 16 / 10; }

/* [[foto N]] in the body: the Nth gallery image, full width between paragraphs. */
.news-inline-fig { margin: 26px 0; }
.news-inline-fig a { display: block; }
.news-inline-fig img { width: 100%; display: block; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.news-inline-fig figcaption { margin-top: 8px; font-size: 12.5px; color: var(--text-tertiary); text-align: center; }

.news-section { margin: 40px 0; }
.news-section-head { margin-bottom: 14px; }
.news-section-head h2 { font-size: 18px; font-weight: 800; }
