/* Resources hub. Built on the homepage.css tokens; loaded after homepage.css. */

.rs-hero {
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(3.5rem, 6vw, 5.5rem);
}

.rs-hero h1 {
  max-width: 56rem;
  margin-bottom: 1.5rem;
  color: var(--color-white);
  font-size: clamp(2.25rem, 1.5rem + 3vw, 4rem);
  line-height: 1.05;
}

.rs-hero__sub {
  max-width: 38rem;
  margin: 0 0 2.25rem;
  color: var(--color-on-dark-muted);
  font-size: var(--text-md);
  line-height: 1.6;
}

.rs-group__head {
  max-width: var(--container-reading);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.rs-group__head h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(2rem, 1.3rem + 2.3vw, 3.4rem);
  line-height: 1.12;
}

.rs-group__head p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--text-md);
}

.rs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.rs-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-media);
  background: var(--color-surface);
  color: var(--color-text);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.rs-card:hover,
.rs-card:focus-visible {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.rs-card__eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.rs-card__title {
  margin: 0;
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  line-height: 1.25;
  color: var(--color-dark);
}

.rs-card__dek {
  flex: 1;
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-text-muted);
}

.rs-card__more {
  margin-top: 0.4rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-brand);
}

.rs-feature {
  max-width: var(--container-reading);
}

.rs-feature h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 1.3rem + 2.3vw, 3.4rem);
  line-height: 1.12;
}

.rs-feature p {
  color: var(--color-text-muted);
  font-size: var(--text-md);
}

.rs-feature__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
  margin-top: 1.75rem;
}

.rs-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 72rem) {
  .rs-grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 64rem) {
  .rs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 40rem) {
  .rs-grid,
  .rs-grid--four {
    grid-template-columns: 1fr;
  }
}

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

.rs-news__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.rs-news__copy h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 1.3rem + 2.3vw, 3.4rem);
  line-height: 1.12;
}

.rs-news__copy p:not(.eyebrow) {
  max-width: 34rem;
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--text-md);
}

.rs-news__form iframe {
  display: block;
  width: 100%;
}

.rs-news__legal {
  margin: 0.75rem 0 0;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.rs-news__legal a {
  color: inherit;
  text-decoration: underline;
}

@media (max-width: 56rem) {
  .rs-news__inner {
    grid-template-columns: 1fr;
  }
}


.rs-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 40rem) {
  .rs-grid--two {
    grid-template-columns: 1fr;
  }
}
