.resources-page {
  background: #eef2f4;
}

.resource-content {
  width: 100%;
  padding: 28px clamp(16px, 3vw, 48px) 36px;
}

.resource-heading {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.resource-heading h1 {
  margin: 0;
  text-align: center;
  color: #082447;
  font-size: clamp(22px, 2.3rem, 32px);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.resource-back {
  justify-self: start;
  color: #082447;
  font-weight: 600;
  white-space: nowrap;
}

.resource-back:hover,
.resource-back:focus {
  color: #14559a;
}

.resource-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
  white-space: nowrap;
  border-radius: 4px;
  padding: 11px 17px;
  background: #0b3d6e;
  color: #fff;
  font-weight: 600;
  line-height: 1.2;
}

.resource-download:hover,
.resource-download:focus {
  background: #14559a;
  color: #fff;
}

.resource-viewer {
  display: block;
  width: 100%;
  height: max(640px, calc(100dvh - 210px));
  border: 1px solid #ccd6df;
  background: #fff;
}

.resource-viewer p {
  padding: 24px;
}

@media (max-width: 600px) {
  .resource-content {
    padding: 22px 12px 20px;
  }

  .resource-heading {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .resource-heading h1 {
    grid-row: 2;
    grid-column: 1 / -1;
  }

  .resource-viewer {
    height: 75dvh;
    min-height: 500px;
  }
}