/* ============================================================
   DAWNFALL — News page
   ============================================================ */

/* ── Articles list ──────────────────────────────────────────── */

.news-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
  padding: 56px 0;
}

/* ── Article card ───────────────────────────────────────────── */

.news-article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: border-color var(--dur-normal);
  animation: fadeUp 0.5s ease both;
}

.news-article:hover { border-color: var(--border-brand); }

/* ── Article header (always visible / clickable) ────────────── */

.news-article-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.news-article-header::-webkit-details-marker { display: none; }

.news-article-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.news-article-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}

.news-article-byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--text);
}

.news-article-author { font-weight: 600; color: var(--text-muted); }

.news-article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.news-article-tag {
  padding: 2px 8px;
  border-radius: var(--card-radius);
  font-size: 11px;
  font-weight: 600;
  background: var(--surface-raised);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.news-article-chevron {
  flex-shrink: 0;
  color: var(--text);
  transition: transform var(--dur-fast);
}

.news-article[open] .news-article-chevron {
  transform: rotate(180deg);
}

/* ── Cover image ────────────────────────────────────────────── */

.news-article-cover {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border);
}

/* ── Article body (collapsible content) ─────────────────────── */

.news-article-body {
  padding: 0 24px 24px;
}

/* ── Markdown rendered content ──────────────────────────────── */

.news-content {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-muted);
}

.news-content p       { margin: 0 0 12px; }
.news-content p:last-child { margin-bottom: 0; }
.news-content strong  { font-weight: 700; color: var(--text); }
.news-content em      { font-style: italic; }
.news-content s       { text-decoration: line-through; }
.news-content a       { color: var(--brand-2); text-decoration: underline; }
.news-content a:hover { opacity: 0.8; }

.news-content ul,
.news-content ol {
  margin: 0 0 12px 20px;
  padding: 0;
}
.news-content li { margin-bottom: 4px; }

/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 600px) {
  .news-article-header { padding: 16px 18px; }
  .news-article-body   { padding: 0 18px 20px; }
  .news-article-title  { font-size: 15px; }
}

@media (max-width: 480px) {
  .news-article-header { padding: 14px; gap: 10px; }
  .news-article-body   { padding: 0 14px 16px; }
  .news-article-title  { font-size: 14px; }
}
