.resources-main {
  min-height: calc(100vh - 210px);
  padding-top: 84px;
  background: #fff;
}

.resources-hero {
  position: relative;
  overflow: hidden;
  padding: 58px 0 62px;
  background: linear-gradient(135deg, #063f91 0%, #0769c3 58%, #1194d8 100%);
  color: #fff;
}

.resources-hero::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
  mask-image: linear-gradient(to bottom, #000, transparent 92%);
}

.resources-hero .shell {
  position: relative;
}

.resources-eyebrow {
  margin: 0 0 14px;
  color: #bfe1ff;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
}

.resources-hero h1 {
  max-width: 800px;
  margin: 0 0 16px;
  font-size: var(--type-h1);
}

.resources-hero .shell > p:last-child {
  max-width: 760px;
  margin: 0;
  color: #d9eaff;
  font-size: 1.05rem;
  line-height: 1.65;
}

.resource-library {
  padding: 68px 0 78px;
  background: #f4f8fe;
}

.resource-heading {
  max-width: 830px;
  margin-bottom: 34px;
}

.resource-heading .resources-eyebrow {
  color: var(--blue);
}

.resource-heading h2 {
  margin: 0 0 14px;
}

.resource-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.resource-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 30px;
  border: 1px solid #dce5f0;
  border-radius: 18px;
  background: #fff;
}

.resource-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.resource-card-number {
  color: var(--blue);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .13em;
}

.resource-card-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.resource-version {
  padding: 6px 10px;
  border-radius: 999px;
  background: #eaf4ff;
  color: #075ca9;
  font-size: .72rem;
  font-weight: 800;
}

.resource-download-count {
  color: #496780;
  font-size: .75rem;
  font-weight: 800;
}

.resource-card h3 {
  margin: 28px 0 12px;
}

.resource-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.resource-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #e4eaf2;
}

.resource-meta p,
.resource-detail,
.resource-checksum {
  margin: 0;
  color: #315271;
  font-size: .86rem;
  line-height: 1.55;
}

.resource-meta strong,
.resource-detail strong,
.resource-checksum strong {
  display: block;
  margin-bottom: 4px;
  color: #102b46;
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.resource-detail {
  margin-top: 18px;
}

.resource-checksum {
  margin-top: 18px;
}

.resource-checksum code {
  display: block;
  overflow-wrap: anywhere;
  color: #38536c;
  font-family: Consolas, "Courier New", monospace;
  font-size: .72rem;
}

.resource-download {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  justify-content: center;
  gap: 8px;
  margin-top: 26px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: .85rem;
  font-weight: 800;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}

.resource-download:hover,
.resource-download:focus-visible {
  background: #064e9b;
  color: #fff;
  transform: translateY(-1px);
}

.resource-empty {
  grid-column: 1 / -1;
  text-align: center;
}

.resource-empty h3 {
  margin-top: 16px;
}

.resource-noscript {
  margin: 18px 0 0;
  color: #8b2e1e;
  font-weight: 700;
}

@media (max-width: 900px) {
  .resources-main {
    padding-top: 84px;
  }
}

@media (max-width: 600px) {
  .resources-main {
    padding-top: 74px;
  }

  .resources-hero {
    padding: 44px 0 48px;
  }

  .resource-library {
    padding: 50px 0 60px;
  }

  .resource-grid {
    grid-template-columns: 1fr;
  }

  .resource-card {
    padding: 24px;
  }

  .resource-card-top {
    align-items: flex-start;
  }

  .resource-card-badges {
    max-width: 70%;
  }

  .resource-meta {
    grid-template-columns: 1fr;
  }
}
