/* News & Dev Notes — homepage carousel additions + /news.html feed.
   Data: js/news-feed.js (the /wrap changelog + the #announcements mirror). */

/* ── Homepage cards (extends .news-card in styles.css) ───────────────── */
a.news-card { display: block; color: inherit; text-decoration: none; }
a.news-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.news-card--status { cursor: default; min-height: 120px; display: flex; align-items: center; }
.news-card--status:hover { transform: none; box-shadow: none; }
.news-card--status a { color: var(--gold); }

.news-card--event { border-color: rgba(200, 162, 78, 0.45); }
.news-card--event .news-card__image-icon { color: rgba(224, 192, 106, 0.45); }

.news-card__status {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-light);
}
.news-card__status.is-live { color: #0d0d1a; background: var(--gold); border-color: var(--gold); }

.news-card__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── /news.html ──────────────────────────────────────────────────────── */
.nf-event {
  border: 1px solid rgba(200, 162, 78, 0.45);
  background: linear-gradient(135deg, rgba(58, 26, 62, 0.55) 0%, rgba(18, 8, 24, 0.55) 100%);
  border-radius: 12px;
  padding: 24px 28px;
  margin: 0 0 48px;
  scroll-margin-top: calc(var(--nav-height) + 16px);
}
.nf-event__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.nf-event__tag {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold);
}
.nf-event__status {
  font-size: 0.72rem; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--border-light); color: var(--text);
}
.nf-event__status.is-live { color: #0d0d1a; background: var(--gold); border-color: var(--gold); }
.article .nf-event h2 { margin: 0 0 6px; }
.nf-event__dates { font-weight: 600; color: var(--text-muted); margin-bottom: 12px; }
.article .nf-event p { margin-bottom: 16px; }
/* an event's expandable details (site_events.details) */
.nf-event__more { margin: -4px 0 18px; }
.nf-event__more > summary { cursor: pointer; font-weight: 600; font-size: 0.9rem; color: var(--gold); }
.nf-event__more > summary:hover { color: var(--gold-light); }
.nf-event__more[open] > summary { margin-bottom: 10px; }
.article .nf-event .nf-event__more p { margin-bottom: 12px; color: var(--text-muted); }
.nf-status--events { margin: 0 0 48px; }

.nf-item {
  padding: 8px 0 32px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: calc(var(--nav-height) + 16px);
}
.nf-item:last-child { border-bottom: none; }
.nf-item:target { animation: nf-flash 2s var(--ease-out); }
@keyframes nf-flash { from { background: rgba(200, 162, 78, 0.08); } to { background: transparent; } }

.nf-item__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-top: 40px; }
.nf-item:first-child .nf-item__meta { margin-top: 0; }
.nf-item__date {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim);
}
.nf-item__kind { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.nf-item__version {
  font-size: 0.75rem; color: var(--gold); border: 1px solid var(--gold-dark); border-radius: 999px; padding: 0.1rem 0.55rem;
}
.article .nf-item h2 { margin: 8px 0 12px; }
.article .nf-item h2 a { color: inherit; text-decoration: none; }
.article .nf-item h2 a:hover { color: var(--gold-light); }

.article ul.nf-entries { margin: 8px 0 16px; }
.article ul.nf-entries li { display: flex; gap: 12px; align-items: flex-start; padding-left: 0; line-height: 1.65; color: var(--text-muted); }
.article ul.nf-entries li::before { display: none; }
.nf-tag {
  flex-shrink: 0; min-width: 6.5rem; margin-top: 3px; text-align: center;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid var(--border-light); border-radius: 999px; padding: 0.12rem 0.5rem; color: var(--text-muted);
}
.nf-tag--feature        { color: var(--gold);           border-color: var(--gold-dark); }
.nf-tag--improvement    { color: var(--accent-blue);    border-color: var(--accent-blue); }
.nf-tag--fix            { color: var(--accent-emerald); border-color: var(--accent-emerald); }
.nf-tag--content        { color: #b46be0;               border-color: var(--accent-purple); }
.nf-tag--infrastructure { color: var(--text-muted); }

.nf-links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 0.9rem; }
.nf-links a { color: var(--gold); }

.nf-status { color: var(--text-muted); }
.nf-status a { color: var(--gold); }

.nf-archive { margin-top: 64px; border-top: 1px solid var(--border); padding-top: 24px; }
.nf-archive > summary {
  cursor: pointer; font-family: var(--font-heading, var(--font-display)); font-size: 1.1rem; color: var(--text-muted);
}
.nf-archive > summary:hover { color: var(--gold-light); }
.nf-archive__note { font-size: 0.9rem; color: var(--text-dim); margin-top: 12px; }

@media (max-width: 640px) {
  .nf-event { padding: 20px 18px; }
  .article ul.nf-entries li { flex-direction: column; gap: 4px; }
  .nf-tag { min-width: 0; }
}
