/* News section (/news, /es/news). Loaded after docs.css: the sidebar, article
   and pager come from there; this adds the list, the chips and the release
   sections. Uses only the custom properties declared in styles.css. */

.news-v {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--indigo-light);
}
.news-kicker {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.news-kicker a { color: var(--text-muted); }
.news-kicker a:hover { color: #fff; }

/* ─── Sidebar: version + date per row ───────────────────────── */
.news-nav a { display: flex; justify-content: space-between; gap: 10px; }
.news-nav-v { font-family: var(--font-mono); }
.news-nav-d { font-size: 12px; color: var(--text-faint); white-space: nowrap; }
.news-nav a.news-rss {
  margin-top: 4px;
  border-left-color: transparent;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--teal);
}

/* ─── List page ─────────────────────────────────────────────── */
.news-head h1 { margin: 0 0 6px; color: var(--text); font-size: 34px; line-height: 1.2; }
.news-head p { margin: 0 0 20px; max-width: 70ch; color: var(--text-dim); }

.news-hero {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin-bottom: 26px;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.14), rgba(61, 214, 200, 0.05)), var(--bg-1);
  color: var(--text-dim);
  text-decoration: none;
  transition: border-color 0.12s;
}
.news-hero:hover { border-color: var(--indigo); }
.news-hero:not(:has(img)) { grid-template-columns: minmax(0, 1fr); }
.news-hero-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.news-hero h2 { margin: 0 0 8px; color: var(--text); font-size: 22px; line-height: 1.3; }
.news-hero p { margin: 0 0 10px; line-height: 1.55; }
.news-more { color: var(--indigo-light); font-weight: 600; font-size: 14px; }

.news-list { list-style: none; margin: 0; padding: 0; }
.news-line {
  margin: 14px 0 4px;
  padding-left: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}
.news-row {
  display: grid;
  grid-template-columns: 52px 92px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: baseline;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
}
.news-row:hover { background: var(--bg-1); color: var(--text); }
.news-row time { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.news-row-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-has-note { margin-right: 6px; color: var(--teal); font-size: 10px; vertical-align: 1px; }

.news-chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; }
.news-chip {
  padding: 1px 7px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill);
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}
.news-chip b { color: var(--text); font-weight: 600; }
.news-chip-added b { color: var(--teal); }
.news-chip-fixed b { color: var(--indigo-light); }
.news-chip-upgrading { border-color: rgba(245, 180, 80, 0.45); }
.news-chip-upgrading b,
.news-chip-security b { color: #f5b450; }

/* ─── Release page ──────────────────────────────────────────── */
.news-article h1 { margin-bottom: 18px; }
.news-note-img { margin: 0 0 22px; }
.news-note-img img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.news-cl-title {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}
.news-intro { color: var(--text); }
.news-sec { margin-top: 26px; }
.news-sec h3 {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.news-sec ul { padding-left: 20px; }
.news-sec li { margin: 6px 0; }
.news-sec li strong { color: var(--text); }
/* Upgrading is what can break an install: it stands out. */
.news-sec-upgrading {
  padding: 14px 18px 6px;
  border: 1px solid rgba(245, 180, 80, 0.35);
  border-left: 3px solid #f5b450;
  border-radius: var(--radius-sm);
  background: rgba(245, 180, 80, 0.06);
}
.news-sec-upgrading h3 { color: #f5b450; }

@media (max-width: 860px) {
  .news-hero { grid-template-columns: minmax(0, 1fr); }
  .news-row { grid-template-columns: 48px minmax(0, 1fr); gap: 4px 10px; }
  .news-row time { grid-column: 2; grid-row: 1; justify-self: end; }
  .news-row-title { grid-column: 1 / -1; white-space: normal; }
  .news-row .news-chips { grid-column: 1 / -1; }
  /* The version list is long; on phones the page starts with the content. */
  .news-nav { order: 2; }
}
