/* ============================================
 * Community News — scoped styles
 * Uses vc-shell design tokens (var(--muted), var(--cloud), etc.)
 * Mirrors the visual tone of contests.css — grid of cards + article detail.
 * ============================================ */

.news-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  margin-top: 24px;
}

.news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line, #e7e1d6);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(20, 20, 20, .08);
  border-color: var(--co-yellow-deep, #d4a500);
}

.news-card-img {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-color: #f3efe6;
}
.news-card-img-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  color: #cbbda0;
}

.news-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.news-card-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}
.news-chip {
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
  font-size: 11px;
  color: var(--co-yellow-deep, #b48605);
  background: #fff7df;
  padding: 3px 10px;
  border-radius: 999px;
}
.news-date {
  color: var(--muted, #8c8377);
}

.news-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  line-height: 1.18;
  margin: 0;
  letter-spacing: -0.25px;
}
.news-card p {
  color: var(--muted, #8c8377);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--line, #e7e1d6);
  font-size: 13px;
  color: var(--muted);
}
.news-read {
  transition: transform .18s ease;
}
.news-card:hover .news-read {
  transform: translateX(3px);
}

/* ===== ARTICLE DETAIL ===== */
.news-article {
  padding: 40px 0 20px;
}
.news-loading {
  text-align: center;
  padding: 80px 0;
  color: var(--muted);
}
.news-loading i { font-size: 24px; display: block; margin-bottom: 10px; }

.news-head {
  max-width: 780px;
  margin: 0 auto 30px;
  text-align: left;
}
.news-head h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.8px;
  margin: 10px 0 14px;
}
.news-head .lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
  margin: 0 0 18px;
}
.news-meta-line {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.news-meta-line span i {
  margin-right: 6px;
  opacity: .75;
}

.news-hero {
  max-width: 960px;
  margin: 0 auto 34px;
  border-radius: 14px;
  overflow: hidden;
}
.news-hero img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: cover;
}

.news-body {
  max-width: 720px;
  margin: 0 auto;
  font-size: 17.5px;
  line-height: 1.75;
  color: #2b2720;
}
.news-body p {
  margin: 0 0 1.2em;
}

.news-foot {
  max-width: 720px;
  margin: 40px auto 10px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
