/* Reuse Dashboard's shell, country picker, source disclosure and progress bar. */
html[data-theme="dark"] body.news-page {
  --dashboard-rd-accent: var(--accent);
}

.news-page .news-heading {
  grid-template-columns: minmax(0, 1fr);
}

.news-page .news-toolbar {
  grid-template-columns: minmax(0, 1fr) !important;
  width: min(100%, 520px);
  padding-bottom: 0 !important;
}

.news-source {
  margin-top: 16px;
  color: var(--redesign-header-accent);
  font-size: 13px;
  line-height: 1.5;
}

.news-page .news-results {
  position: relative;
  margin-top: clamp(32px, 3.5vw, 56px);
  min-height: 240px;
}

.news-page .news-results > .loading-panel {
  position: absolute;
  inset: 0 0 auto;
  margin: 0;
}

.news-article {
  display: grid;
  grid-template-columns: 220px minmax(0, 920px);
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--redesign-header-rule);
}

.news-article:first-child { padding-top: 0; }
.news-article:last-child { border-bottom: 0; }
.news-article > * { min-width: 0; }

.news-meta {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 6px;
  padding-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.news-meta a { color: var(--redesign-header-accent); }
.news-article h2 {
  margin: 0;
  font-size: clamp(21px, 1.8vw, 28px);
  font-weight: 680;
  line-height: 1.25;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}

.news-article h2 a { color: var(--redesign-header-ink); }
.news-article p {
  margin: 12px 0 16px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.news-read-source, .news-retry {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--redesign-header-accent);
  font-size: 14px;
  font-weight: 620;
  white-space: nowrap;
}

.news-page .news-retry {
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.news-page .news-retry:hover { background: transparent; }
.news-page a:hover, .news-retry:hover { text-decoration: underline; text-underline-offset: 4px; }
.news-page .news-status p { margin: 0 0 12px; color: var(--muted); }
.news-page .news-translation-note { font-size: 13px; }
.news-page .news-shell { padding-bottom: 32px; }

@media (max-width: 760px) {
  .news-article { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 24px 0; }
  .news-meta { flex-direction: row; flex-wrap: wrap; gap: 4px 16px; padding: 0; }
  .news-article p { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .news-page .progress-fill { transition: none; }
}
