/* Sunpal News / Journal — listing + pagination */

.sunpal-news {
  padding-bottom: clamp(56px, 8vw, 96px);
}

.sunpal-news-header {
  max-width: 720px;
  margin-bottom: clamp(36px, 6vw, 56px);
}

.sunpal-news-lede {
  display: block;
  max-width: 54ch;
  margin-top: 14px;
  color: var(--muted, #64696d);
  font-size: 17px;
  font-weight: 550;
  line-height: 1.55;
}

.sunpal-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.sunpal-news-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line, #dedfdf);
  border-radius: 16px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.sunpal-news-card:hover {
  border-color: rgba(22, 139, 61, .35);
  box-shadow: 0 16px 40px rgba(9, 11, 13, .06);
  transform: translateY(-2px);
}

.sunpal-news-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(145deg, #eef3ef 0%, #f7f8f7 55%, #e8ece9 100%);
}

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

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

.sunpal-news-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 20px 20px 22px;
}

.sunpal-news-card__date {
  color: var(--muted, #64696d);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}

.sunpal-news-card__title {
  margin: 0;
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 720;
  letter-spacing: -.02em;
  line-height: 1.25;
}

.sunpal-news-card__title a {
  color: var(--ink, #090b0d);
  text-decoration: none;
}

.sunpal-news-card__title a:hover {
  color: var(--green, #168b3d);
}

.sunpal-news-card__excerpt {
  flex: 1;
  color: var(--muted, #64696d);
  font-size: 14.5px;
  font-weight: 550;
  line-height: 1.55;
}

.sunpal-news-card__excerpt p {
  margin: 0;
  color: inherit;
}

.sunpal-news-card__excerpt .more-link {
  display: none;
}

.sunpal-news-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: var(--green, #168b3d);
  font-size: 13px;
  font-weight: 780;
  letter-spacing: .01em;
  text-decoration: none;
}

.sunpal-news-card__more:hover {
  text-decoration: underline;
}

.sunpal-news-empty {
  color: var(--muted, #64696d);
  font-size: 16px;
}

/* Pagination — was unstyled "1 2 3 Next" plain text */
.sunpal-news .navigation.pagination,
.sunpal-news nav.navigation.pagination {
  display: flex;
  justify-content: center;
  margin: clamp(40px, 7vw, 64px) 0 0;
}

.sunpal-news .navigation.pagination .nav-links,
.sunpal-news nav.navigation.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.sunpal-news .navigation.pagination .page-numbers,
.sunpal-news nav.navigation.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line, #dedfdf);
  border-radius: 999px;
  background: #fff;
  color: var(--ink, #090b0d);
  font-size: 14px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.sunpal-news .navigation.pagination a.page-numbers:hover {
  border-color: var(--green, #168b3d);
  color: var(--green, #168b3d);
  transform: translateY(-1px);
}

.sunpal-news .navigation.pagination .page-numbers.current {
  border-color: var(--green, #168b3d);
  background: var(--green, #168b3d);
  color: #fff;
}

.sunpal-news .navigation.pagination .page-numbers.dots {
  border: 0;
  background: transparent;
  min-width: 28px;
  padding: 0;
  color: var(--muted, #64696d);
}

.sunpal-news .navigation.pagination .prev.page-numbers,
.sunpal-news .navigation.pagination .next.page-numbers {
  min-width: auto;
  padding: 0 18px;
}

@media (max-width: 900px) {
  .sunpal-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 560px) {
  .sunpal-post-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .sunpal-news-card__body {
    padding: 18px;
  }

  .sunpal-news .navigation.pagination .page-numbers {
    min-width: 40px;
    min-height: 40px;
  }
}

/* Single article */
.sunpal-news-single .sunpal-news-header p a {
  color: var(--green, #168b3d);
  text-decoration: none;
  font-weight: 780;
}

.sunpal-news-single .sunpal-news-header p a:hover {
  text-decoration: underline;
}

.sunpal-news-featured {
  margin: 0 0 clamp(28px, 5vw, 40px);
  overflow: hidden;
  border-radius: 16px;
}

.sunpal-news-featured img,
.sunpal-news-single .sunpal-featured {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.sunpal-news-entry {
  font-size: 17px;
  line-height: 1.7;
  color: #1a1e21;
}

.sunpal-news-entry > *:first-child {
  margin-top: 0;
}

.sunpal-news-entry h2,
.sunpal-news-entry h3 {
  margin: 1.6em 0 .55em;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.sunpal-news-entry p,
.sunpal-news-entry ul,
.sunpal-news-entry ol {
  margin: 0 0 1.1em;
}

.sunpal-news-entry a {
  color: var(--green, #168b3d);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sunpal-news-back {
  margin-top: clamp(36px, 6vw, 56px);
  padding-top: 22px;
  border-top: 1px solid var(--line, #dedfdf);
}

.sunpal-news-back a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink, #090b0d);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.sunpal-news-back a:hover {
  color: var(--green, #168b3d);
}
