/* newsfeed — single-column list of news items.
 *
 * Each .newsfeed-item is a card with title → cover → date → text →
 * Read-more button stacked vertically. The cover image is a click
 * target (a-tag with background-image) at a 16/7 aspect ratio. */

.section-newsfeed {
  background: var(--color-bg);
  padding: var(--space-xl) var(--space-md);
}

.section-newsfeed .section-inner {
  max-width: 760px;
  margin: 0 auto;
}

.section-newsfeed .newsfeed-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

/* Loading / empty state. */
.section-newsfeed .newsfeed-list > .collection-loading,
.section-newsfeed .newsfeed-list > .collection-empty {
  margin: 0;
  padding: var(--space-lg);
  text-align: center;
  color: var(--color-muted);
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
}

/* --- Item card --- */

.section-newsfeed .newsfeed-item {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.section-newsfeed .newsfeed-item-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--font-xl);
  line-height: 1.15;
  color: var(--color-heading);
  text-transform: none;
  letter-spacing: 0;
}

.section-newsfeed .newsfeed-item-title a {
  color: inherit;
  text-decoration: none;
}
.section-newsfeed .newsfeed-item-title a:hover { text-decoration: underline; }

.section-newsfeed .newsfeed-item-cover {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  background-color: var(--color-border);
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  overflow: hidden;
}

.section-newsfeed .newsfeed-item-date {
  margin: 0;
  font-size: var(--font-xs);
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.section-newsfeed .newsfeed-item-body {
  margin: 0;
  color: var(--color-text);
  font-size: var(--font-md);
  line-height: 1.6;
  white-space: pre-line;
  word-break: break-word;
}

.section-newsfeed .newsfeed-item-readmore-inline {
  color: var(--color-accent);
  font-weight: 600;
  white-space: nowrap;
}

.section-newsfeed .newsfeed-item-cta {
  align-self: flex-start;
  margin-top: var(--space-xs);
}

/* --- Tighter spacing on small screens. */
@media (max-width: 720px) {
  .section-newsfeed {
    padding: var(--space-lg) var(--space-md);
  }
  .section-newsfeed .newsfeed-item {
    padding: var(--space-md);
  }
  .section-newsfeed .newsfeed-item-title {
    font-size: var(--font-lg);
  }
}

@media (max-width: 480px) {
  .section-newsfeed .newsfeed-item-cta {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
}
