/* ==========================================================
   NEWS.CSS — /news/ listing and article pages
   ========================================================== */

/* Shorter hero for listing + article pages */
.page-hero--compact {
  min-height: 52vh;
}

.page-hero--article .page-hero__title {
  font-size: clamp(30px, 4.5vw, 56px);
  max-width: 960px;
}

.page-hero__eyebrow a {
  color: inherit;
  text-decoration: none;
}

.page-hero__eyebrow a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .page-hero--compact {
    min-height: 45vh;
  }
}

/* ── Card grid ── */
.news-list {
  background: var(--surface-base);
}

.news-list--more {
  background: var(--surface-elevated);
}

.news-list__heading {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: var(--weight-extrabold);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-xl);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: var(--space-2xl) var(--space-xl);
}

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

.news-card__media {
  display: block;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-card);
}

.news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card:hover .news-card__media img {
  transform: scale(1.03);
}

.news-card__body {
  padding-top: var(--space-md);
}

.news-card__date {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--pink-mid);
  margin-bottom: var(--space-xs);
}

.news-card__title {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-sm);
}

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

.news-card__title a:hover {
  color: var(--pink-deep);
}

.news-card__title a:focus-visible {
  outline: 2px solid var(--pink-mid);
  outline-offset: 2px;
}

.news-card__excerpt {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--text-secondary);
}

@media (prefers-reduced-motion: reduce) {
  .news-card__media img {
    transition: none;
  }
}

/* ── Pagination ── */
.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
}

.news-pagination__link {
  font-weight: var(--weight-bold);
  color: var(--pink-deep);
  text-decoration: none;
}

.news-pagination__link:hover {
  text-decoration: underline;
}

.news-pagination__status {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ── Article body (builds on .legal-content__inner typography) ── */
.news-article__featured {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 70vh;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-2xl);
}

.news-article__content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.news-article__content .alignright {
  float: right;
  margin: 0 0 var(--space-md) var(--space-lg);
}

.news-article__content .alignleft {
  float: left;
  margin: 0 var(--space-lg) var(--space-md) 0;
}

.news-article__content .aligncenter {
  display: block;
  margin: var(--space-lg) auto;
}

.news-article__content .wp-caption {
  max-width: 100%;
}

.news-article__content .wp-caption-text {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

.news-article__content::after {
  content: '';
  display: block;
  clear: both;
}

@media (max-width: 600px) {
  .news-article__content .alignright,
  .news-article__content .alignleft {
    float: none;
    display: block;
    margin: 0 auto var(--space-md);
  }
}

.news-article__back {
  margin-top: var(--space-2xl);
  font-weight: var(--weight-bold);
}
