/* News & terms page shared headers */
.news-page-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.news-page-title,
.terms-page-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  color: var(--neutral--900);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 16px 0 0;
}

.news-page-eyebrow {
  display: inline-block;
  border: 1px solid var(--neutral--900);
  border-radius: var(--radius--rounded);
  color: var(--neutral--900);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.news-intro {
  font-size: 16px;
  color: var(--neutral--500);
  line-height: 1.7;
  margin-top: 20px;
  text-align: center;
}

.terms-heading {
  margin-bottom: 0;
}

/* Article grid */
.news-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 5% 80px;
}

/* Article card */
.news-article {
  display: flex;
  flex-direction: column;
  background: var(--main--white);
  border: 1px solid var(--neutral--200);
  border-radius: var(--radius--20);
  padding: 28px 28px 24px;
  box-shadow: 0 4px 24px -4px var(--main--shadow-s);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.news-article::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary--dark), var(--secondary--dark));
  opacity: 0.85;
}

.news-article:hover {
  transform: translateY(-4px);
  border-color: var(--primary--base);
  box-shadow: 0 16px 40px -8px #3a55a529;
}

.news-article-header {
  margin-bottom: 16px;
}

.news-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--primary--dark);
  background: var(--primary--light);
  padding: 6px 12px;
  border-radius: var(--radius--rounded);
  margin: 0 0 14px;
}

.news-date::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary--dark);
  flex-shrink: 0;
}

.news-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 500;
  color: var(--neutral--900);
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin: 0;
}

.news-summary {
  font-size: 14px;
  color: var(--neutral--500);
  line-height: 1.65;
  margin: 0 0 12px;
}

.news-summary:last-of-type {
  margin-bottom: 0;
}

.news-article-body {
  flex: 1;
  margin-bottom: 20px;
}

.news-article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--neutral--200);
}

.news-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius--rounded);
  background: var(--neutral--900);
  color: var(--main--white);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.news-read-more::after {
  content: '→';
  font-size: 14px;
  transition: transform 0.2s ease;
}

.news-read-more:hover {
  background: var(--primary--dark);
  text-decoration: none;
}

.news-read-more:hover::after {
  transform: translateX(3px);
}

.news-attribution {
  font-size: 11px;
  color: var(--neutral--400);
  font-style: italic;
  margin: 0;
}

/* Placeholder / coming-soon card */
.news-article--placeholder {
  border-style: dashed;
  border-color: var(--neutral--300);
  background: var(--neutral--100);
  box-shadow: none;
}

.news-article--placeholder::before {
  background: linear-gradient(90deg, var(--neutral--300), var(--neutral--400));
  opacity: 0.5;
}

.news-article--placeholder:hover {
  transform: none;
  border-color: var(--neutral--400);
  box-shadow: none;
}

.news-article--placeholder .news-title {
  color: var(--neutral--500);
}

.news-article--placeholder .news-read-more {
  background: var(--neutral--400);
  pointer-events: none;
  cursor: default;
}

@media (max-width: 900px) {
  .news-section {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-bottom: 60px;
  }

  .news-article {
    padding: 24px 22px 20px;
  }
}

@media (max-width: 479px) {
  .news-article-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-read-more {
    width: 100%;
    justify-content: center;
  }
}

/* Terms page reuses article layout */
.terms-section {
  grid-template-columns: 1fr;
  max-width: 820px;
  gap: 16px;
}

.terms-section .news-article::before {
  display: none;
}

.terms-section .news-article {
  padding: 20px 24px;
}

.terms-section .news-article:hover {
  transform: none;
  box-shadow: 0 4px 24px -4px var(--main--shadow-s);
}

.terms-section .news-summary {
  font-size: 14px;
  line-height: 1.7;
}
