/* Latest News — post pages only (after .article-foot, before ← All posts) */

.article-wrap .latest-news,
.latest-news {
  width: 100%;
  max-width: 100%;
  margin: 2.5rem 0 1.5rem;
  padding: 0;
  box-sizing: border-box;
}

.latest-news[hidden] {
  display: none !important;
}

.article-wrap h2.latest-news-heading,
.latest-news-heading {
  font-family: 'Geist Mono', monospace;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted, #888);
  margin: 0 0 1rem;
  line-height: 1.3;
}

.latest-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.article-wrap a.latest-news-card,
.latest-news-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text, #e8e8e4);
  background: var(--bg, #0c0c0b);
  border: 1px solid var(--border, #2a2a28);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.article-wrap a.latest-news-card:hover,
.latest-news-card:hover {
  border-color: var(--accent2, #00d4ff);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--text, #e8e8e4);
}

.latest-news-thumb {
  aspect-ratio: 3 / 2;
  width: 100%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--surface2, #1a1a18) 0%, #1e2a1e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border, #2a2a28);
  overflow: hidden;
}

.latest-news-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.latest-news-thumb-emoji {
  font-size: 28px;
  line-height: 1;
}

.article-wrap .latest-news-title,
.latest-news-title {
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.2px;
  line-height: 1.35;
  margin: 0;
  padding: 10px 12px 12px;
  color: var(--text, #e8e8e4);
}

@media (max-width: 700px) {
  .latest-news-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .article-wrap .latest-news-title,
  .latest-news-title {
    font-size: 15px;
    padding: 12px 14px 14px;
  }

  .latest-news-thumb-emoji {
    font-size: 36px;
  }
}
