/**
 * /resources — hub page. Layered on blogs.css so the mast and the collection
 * cards share the journal listing's hero glow and featured-card surface.
 */

.rs-mast__rail {
  grid-template-columns: minmax(0, 1fr);
  padding-bottom: 72px;
}

.rs-hub .rs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
  padding-top: 72px;
}

.rs-hub .rs-card.bl-feature__rail {
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  height: 100%;
  min-width: 0;
  padding: 28px 26px 24px;
}

.rs-hub .bl-feature__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rs-hub .bl-feature__title {
  font-size: clamp(24px, 2.1vw, 32px);
}

.rs-hub .bl-feature__excerpt {
  font-size: 15.5px;
  line-height: 1.6;
}

.rs-hub .bl-more {
  align-self: flex-start;
  margin-top: auto;
}

.rs-card {
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.rs-card:hover {
  border-color: #d9dee5;
  box-shadow: 0 24px 46px -34px rgba(11, 13, 18, 0.42);
  transform: translateY(-3px);
}

.rs-card:hover .bl-more i {
  transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
  .rs-card {
    transition: none !important;
  }

  .rs-card:hover {
    transform: none !important;
  }
}

@media (max-width: 991px) {
  .rs-hub .rs-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  .rs-mast__rail {
    padding-bottom: 48px;
  }

  .rs-hub .rs-grid {
    padding-top: 48px;
  }
}
