/* News listing and homepage teaser. One neutral surface, dark-mode safe. */

.news-list { display: flex; flex-direction: column; }

.news-card {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 22px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.news-card:hover h2,
.news-card:hover h3 { color: var(--teal-dark); }

.news-cover {
  margin: 0;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  background: var(--soft);
}

.news-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-cover-fallback {
  width: 100%;
  height: 100%;
  background-color: var(--soft);
  background-image:
    linear-gradient(180deg, rgba(30, 124, 115, .16), rgba(30, 124, 115, .04)),
    repeating-linear-gradient(135deg, rgba(85, 87, 90, .22) 0 1px, transparent 1px 14px);
}

html[data-theme="dark"] .news-cover-fallback {
  background-color: #3a3b3d;
  background-image:
    linear-gradient(180deg, rgba(158, 229, 221, .14), rgba(158, 229, 221, .03)),
    repeating-linear-gradient(135deg, rgba(244, 243, 239, .16) 0 1px, transparent 1px 14px);
}

.news-card time {
  display: block;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal-dark);
}

.news-card h2,
.news-card h3 {
  font-family: Manrope, "DM Sans", sans-serif;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 560;
  letter-spacing: -.02em;
  margin: 6px 0 8px;
}

.news-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.news-teaser-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.news-teaser .news-card {
  grid-template-columns: 1fr;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 0 16px;
  overflow: hidden;
  background: var(--card);
  height: 100%;
}

html[data-theme="dark"] .news-teaser .news-card { background: #3a3b3d; }

.news-teaser .news-cover { border-radius: 0; aspect-ratio: 16 / 9; }
.news-teaser .news-card div { padding: 14px 16px 0; }

.news-page .lede { max-width: 40rem; color: var(--muted); font-size: 18px; line-height: 1.5; }

@media (max-width: 900px) {
  .news-teaser-list { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .news-card { grid-template-columns: 1fr; gap: 12px; }
}
