/* News archive cards and continuation controls. */
.gw-blog-hub .gw-news-feed__grid {
  --gw-news-gap: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-flow: row;
  align-items: start;
  gap: var(--gw-news-gap);
}

.gw-news-feed__grid > .gw-blog-card {
  height: auto;
  border-color: #e1e6ed;
  box-shadow: 0 4px 12px rgba(23, 36, 58, 0.055);
}

.gw-news-feed__grid .gw-blog-card__image {
  aspect-ratio: auto;
}

.gw-news-feed__grid .gw-blog-card__image img {
  height: auto;
}

.gw-news-feed__grid .gw-blog-card__body {
  padding: clamp(17px, 1.65vw, 24px);
}

.gw-news-feed__grid .gw-blog-card__meta {
  color: #66758a;
  letter-spacing: 0.025em;
  overflow-wrap: anywhere;
}

.gw-blog-hub .gw-news-feed__grid .gw-blog-card h3 {
  margin-block: 11px 9px;
  font-size: clamp(21px, 1.55vw, 24px);
  font-weight: 500;
}

.gw-blog-hub .gw-news-feed__grid .gw-blog-card__body > p {
  /* Real article introductions provide the rhythm, including future stories. */
  display: block;
  margin-block-end: 16px;
  overflow-wrap: anywhere;
  -webkit-line-clamp: unset;
}

[dir="rtl"] .gw-news-feed__grid .gw-blog-read-more span {
  rotate: 180deg;
}

.gw-news-feed__continuation {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-block-start: clamp(24px, 3vw, 40px);
  text-align: center;
}

.gw-news-feed__continuation[hidden],
.gw-news-feed__continuation [hidden] {
  display: none;
}

.gw-news-feed__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-inline-size: 100%;
  min-block-size: 44px;
  padding: 9px 19px;
  border: 1px solid var(--gw-blog-line);
  border-radius: 8px;
  background: var(--gw-blog-card);
  color: var(--gw-blog-accent-dark);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.gw-news-feed__more:hover,
.gw-news-feed__more:focus-visible {
  border-color: var(--gw-blog-accent-dark);
  color: var(--gw-blog-accent-dark);
}

.gw-news-feed__more:focus-visible {
  outline: 2px solid var(--gw-blog-accent-dark);
  outline-offset: 3px;
}

.gw-news-feed__status {
  margin: 0;
  color: var(--gw-blog-muted);
  font-size: 14px;
  line-height: 1.55;
}

@media (min-width: 768px) {
  .gw-blog-hub .gw-news-feed__grid {
    --gw-news-gap: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gw-blog-hub .gw-news-feed__grid.is-masonry {
    /* Explicit shortest-column placement reserves the vertical gap per card. */
    grid-auto-rows: 1px;
    gap: 0 24px;
  }
}

@media (min-width: 1024px) {
  .gw-blog-hub .gw-news-feed__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1400px) {
  .gw-blog-hub .gw-news-feed__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .gw-news-feed__grid.is-masonry > [data-news-card] {
    grid-area: auto !important; /* Reset desktop placement during a viewport resize. */
  }

  .gw-blog-hub .gw-news-feed__grid .gw-blog-card__body > p {
    display: -webkit-box;
    -webkit-line-clamp: 4;
  }
}
