/* News pages (/news/, /news/<slug>/). Mobile first; logical properties only (the site also runs RTL);
   every design token has a fallback so the page works before/without the shared tokens. */

.news-feed {
  padding: 16px;
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.news-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding-block-end: 14px;
  border-block-end: 1px solid var(--border-strong, #e5e7eb);
}

.news-card:last-child {
  padding-block-end: 0;
  border-block-end: 0;
}

.news-card__media {
  display: block;
  overflow: hidden;
  border-radius: var(--radius, 8px);
  background: var(--surface-muted, #f3f4f6);
  aspect-ratio: 16 / 9;
}

.news-card__media img {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

.news-card__body {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.page-shell .news-card__title {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
  hyphens: manual;
}

.news-card__title a {
  color: var(--text, #111827);
  text-decoration: none;
}

.news-card__title a:hover {
  color: var(--accent-deep, #be122c);
  text-decoration: underline;
}

.news-card__title a:focus-visible,
.page-shell .news-card__excerpt {
  color: var(--muted, #4b5563);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.page-shell .news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0;
  color: var(--muted, #6b7280);
  font-size: 13px;
}

.news-meta__lang {
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--surface-muted, #f3f4f6);
}

.news-pager {
  margin-block-start: 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}

.news-pager__side--end {
  display: flex;
  justify-content: flex-end;
}

.news-pager__status {
  color: var(--muted, #6b7280);
  font-size: 14px;
  white-space: nowrap;
}

.news-pager .btn {
  min-height: 40px;
  padding-inline: 12px;
  white-space: normal;
  text-align: center;
}

.news-empty {
  display: grid;
  gap: 8px;
  justify-items: start;
}

/* One post. */
.news-article {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.news-alert {
  margin: 0;
}

.page-shell .news-note {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-strong, #e5e7eb);
  background: var(--surface-soft, #f9fafb);
  font-size: 14px;
}

.news-article__head {
  display: grid;
  gap: 6px;
}

.page-shell .news-article__head h1 {
  margin: 0;
  font-size: clamp(26px, 6vw, 40px);
  overflow-wrap: anywhere;
  hyphens: manual;
}

.news-article__media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius, 8px);
  background: var(--surface-muted, #f3f4f6);
}

.news-article__media img {
  display: block;
  inline-size: 100%;
  block-size: auto;
  max-block-size: 70vh;
  object-fit: contain;
}

.news-article__text {
  max-inline-size: 42rem;
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.page-shell .news-article__text p {
  color: var(--text, #1f2937);
  line-height: 1.6;
}

.page-shell .news-article__text p + p {
  margin-block-start: 12px;
}

.news-article__text a {
  color: var(--accent-deep, #be122c);
}

@media (min-width: 720px) {
  .news-feed {
    padding: 20px;
  }

  .news-card--with-media {
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: start;
    gap: 16px;
  }
}
