/* Keep the resource library useful above the fold: compact intro, filters and card artwork. */
#resources-hero {
  padding-top: 7.5rem;
  padding-bottom: 2.75rem;
}

#resources-hero .inline-flex {
  margin-bottom: 1rem;
  min-height: 1.9rem;
  padding: 0.35rem 0.72rem;
  font-size: 0.75rem;
  line-height: 1.15;
}

#resources-hero h1 {
  max-width: 18ch;
  margin: 0 auto 1rem;
  font-size: clamp(2.35rem, 4vw, 3.65rem);
  line-height: 1.08;
}

#resources-hero p {
  max-width: 58rem;
  margin: 0 auto;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.55;
}

#resources-filter-section {
  padding-top: 0.6rem;
  padding-bottom: 0.65rem;
  background: #fbfcfc;
  border-color: #edf0f1;
}

#resource-filters {
  max-width: 1240px;
  margin: 0 auto;
  gap: 0.38rem;
}

#resource-filters .filter-chip {
  min-height: 1.8rem;
  padding: 0.32rem 0.68rem;
  border: 1px solid transparent;
  border-radius: 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0;
  white-space: nowrap;
}

#resource-filters .filter-chip[aria-pressed="false"] {
  border-color: #e9edef;
  background: #f5f7f7;
  color: #56616c;
}

#resource-filters .filter-chip[aria-pressed="false"]:hover {
  border-color: #d5e6e3;
  background: #edf6f4;
  color: #087d75;
}

#resource-filters .filter-chip[aria-pressed="true"] {
  border-color: #079d97;
  background: #079d97;
  color: #fff;
}

#filter-status {
  margin-top: 0.35rem;
  color: #89929a;
  font-size: 0.72rem;
  line-height: 1.2;
}

#resource-articles {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

#resource-articles > div > .resource-card {
  margin-bottom: 1.5rem;
}

#resource-articles > div > .resource-card > h2 {
  margin-bottom: 0.65rem;
  font-size: 1.1rem;
}

#resource-featured-art > div > div:first-child {
  flex: 0 0 18%;
  width: 18%;
  padding: 1rem;
}

#resource-featured-art > div > div:last-child {
  flex: 1 1 82%;
  width: 82%;
  padding: 1.25rem 1.5rem;
}

#resource-featured-art > div > div:first-child svg {
  width: 3.25rem;
  height: 3.25rem;
}

#resource-featured-art h3 {
  margin-bottom: 0.6rem;
  font-size: 1.55rem;
  line-height: 1.25;
}

#resource-featured-art p {
  margin-bottom: 0.75rem;
}

#resource-articles article.resource-card > a > div:first-child {
  height: 5.25rem;
  min-height: 5.25rem;
  padding: 0.75rem;
}

#resource-articles article.resource-card > a > div:first-child svg {
  width: 2.75rem;
  height: 2.75rem;
}

#resource-articles article.resource-card > a > div:first-child img {
  object-position: center 42%;
}

#resource-articles article.resource-card > a > .resource-cover {
  background: linear-gradient(115deg, #079d97 0%, #0aa99c 54%, #6a9d79 100%);
}

#resource-articles article.resource-card > a > .resource-cover svg {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
}

#resource-articles article.resource-card .resource-category {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.65rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: #d9f5f1;
  color: #087d75;
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.2;
}

#resource-articles article.resource-card > a > div:nth-child(2) {
  padding: 1.15rem 1.25rem 1.25rem;
}

#resource-articles article.resource-card h3 {
  margin-bottom: 0.55rem;
  font-size: 1.1rem;
  line-height: 1.35;
}

#resource-articles article.resource-card p {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

@media (max-width: 767px) {
  #resources-hero {
    padding-top: 7.25rem;
    padding-bottom: 2rem;
  }

  #resources-hero h1 {
    max-width: 15ch;
    font-size: clamp(2.1rem, 9vw, 3rem);
    line-height: 1.08;
  }

  #resources-hero p {
    font-size: 1rem;
  }

  #resources-filter-section {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  #resource-filters {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0.15rem 0.1rem 0.45rem;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  #resource-filters .filter-chip {
    flex: 0 0 auto;
    white-space: nowrap;
    min-height: 1.7rem;
    padding: 0.3rem 0.6rem;
    font-size: 0.74rem;
  }

  #filter-status {
    text-align: left;
    font-size: 0.68rem;
  }

  #resource-articles {
    padding-top: 1.4rem;
    padding-bottom: 2rem;
  }

  #resource-featured-art > div > div:first-child {
    display: none;
  }

  #resource-featured-art > div > div:last-child {
    width: 100%;
    padding: 1.1rem;
  }

  #resource-featured-art h3 {
    font-size: 1.2rem;
  }

  #resource-articles article.resource-card > a > div:first-child {
    height: 3.5rem;
    min-height: 3.5rem;
  }

  #resource-articles article.resource-card > a > div:first-child svg {
    width: 2rem;
    height: 2rem;
  }

  #resource-articles article.resource-card > a > div:nth-child(2) {
    padding: 1rem;
  }
}
