/* ---------------------------------------------------------------------------
   Resources hub. The same Paper Card language as the site menus: an off-white
   field of white cards with hairline borders, Montserrat titles and Manrope
   body copy, grouped by resource type.
--------------------------------------------------------------------------- */

/* Subpage hero: the light triangle band that sits behind the page title. */
.el .section.hero-section.subpage-hero {
  background-color: var(--third-off-white);
  color: var(--white);
  background-image: url("/assets/light-triangle.svg");
  background-position: 0 0;
  background-size: cover;
  padding: 131px 4% 166px;
}

.el .heading-xxlarge.caps {
  font-size: 3.70522rem;
  text-transform: uppercase;
  line-height: 1.1;
}

.el ._50 {
  max-width: 60%;
}

.el .resources-hero-text {
  max-width: 46rem;
  margin: 18px auto 0;
  color: #456260;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  text-align: center;
}

.el .resources-section {
  background-color: #f2fafb;
}

.el .resources-group {
  width: 100%;
  max-width: 90rem;
}

.el .resources-group + .resources-group {
  margin-top: 52px;
}

.el .resources-group-title {
  margin: 0 0 18px;
  color: #004649;
  font-family: "Montserrat", sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.el .resources-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.el .resource-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--off-white);
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 70, 73, 0.035);
  text-decoration: none;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.el .resource-card:hover {
  box-shadow: 0 10px 24px rgba(0, 70, 73, 0.09);
  transform: translateY(-2px);
}

.el .resource-card:focus-visible {
  outline: 3px solid #007e83;
  outline-offset: 3px;
}

.el .resource-card-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e8f4f4;
}

.el .resource-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px 22px;
}

.el .resource-card-type {
  color: #007e83;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.el .resource-card-title {
  margin: 0;
  color: #004649;
  font-family: "Montserrat", sans-serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
  transition: color 180ms ease;
}

.el .resource-card:hover .resource-card-title,
.el .resource-card:focus-visible .resource-card-title {
  color: #007e83;
}

.el .resource-card-text {
  margin: 0;
  color: #456260;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
}

.el .resource-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  color: #456260;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.2;
}

.el .resource-card-cue {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #007e83;
  font-weight: 700;
  transition: color 180ms ease;
}

.el .resource-card:hover .resource-card-cue {
  color: #004649;
}

/* Empty state: shown until the first resource is published. */
.el .resources-empty {
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  padding: 40px 34px 38px;
  background: var(--off-white);
  border-radius: 18px;
  box-shadow: 0 3px 10px rgba(0, 70, 73, 0.035);
  text-align: center;
}

.el .resources-empty-text {
  margin: 0 0 20px;
  color: #456260;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
}

@media screen and (max-width: 991px) {
  .el .section.hero-section.subpage-hero {
    padding-top: 104px;
    overflow: hidden;
  }

  .el .heading-xxlarge.caps {
    font-size: 3.25rem;
  }

  .el ._50 {
    max-width: 100%;
  }

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

@media screen and (max-width: 767px) {
  .el .resources-hero-text {
    font-size: 16px;
  }

  .el .resources-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .el .resources-group + .resources-group {
    margin-top: 40px;
  }
}
