/*
 * Literal shared copy of the Resources page header.
 * Every primary module page uses the same DOM structure and these exact rules;
 * only the eyebrow, title, description and four data values change.
 */
.module-page-head {
  padding: 72px 0 40px !important;
  border: 0 !important;
}

.module-page-head > .wrap {
  width: min(1180px, calc(100% - 64px));
  max-width: none !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

.module-page-head .page-eyebrow {
  margin: 0 0 14px !important;
  color: var(--ink-mute) !important;
  font-family: "JetBrains Mono", monospace !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  letter-spacing: .12em !important;
  line-height: 1.5 !important;
  text-transform: uppercase !important;
}

.module-page-head .page-eyebrow strong {
  color: var(--accent) !important;
  font: inherit !important;
  font-weight: 600 !important;
}

.module-page-head .page-title {
  max-width: 1140px !important;
  margin: 0 0 18px !important;
  color: var(--ink) !important;
  font-family: "PingFang SC", "Noto Sans SC", sans-serif !important;
  font-size: 56px !important;
  font-style: normal !important;
  font-weight: 900 !important;
  letter-spacing: -.045em !important;
  line-height: 1.08 !important;
}

.module-page-head .page-title .em {
  color: var(--accent) !important;
  font: inherit !important;
  font-style: normal !important;
}

.module-page-head .page-desc {
  max-width: 660px !important;
  margin: 0 !important;
  color: var(--ink-soft) !important;
  font-size: 17px !important;
  line-height: 1.55 !important;
}

.module-page-head .stats-strip {
  width: 100% !important;
  max-width: none !important;
  margin: 36px 0 0 !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  overflow: hidden !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  background: var(--paper) !important;
}

.module-page-head .stat-cell {
  min-width: 0 !important;
  padding: 18px 22px !important;
  border-right: 1px dashed var(--line-soft) !important;
}

.module-page-head .stat-cell:last-child {
  border-right: 0 !important;
}

.module-page-head .stat-num {
  color: var(--ink) !important;
  font-family: "PingFang SC", "Noto Sans SC", sans-serif !important;
  font-size: 32px !important;
  font-style: normal !important;
  font-weight: 800 !important;
  letter-spacing: -.035em !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.module-page-head .stat-num .plus {
  color: var(--accent) !important;
  font: inherit !important;
}

.module-page-head .stat-label {
  margin-top: 6px !important;
  color: var(--ink-mute) !important;
  font-family: "PingFang SC", "Noto Sans SC", sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: .01em !important;
  line-height: 1.5 !important;
  text-transform: none !important;
}

@media (max-width: 700px) {
  .module-page-head .stats-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .module-page-head .stat-cell:nth-child(2n) {
    border-right: 0 !important;
  }

  .module-page-head .stat-cell:nth-child(-n + 2) {
    border-bottom: 1px dashed var(--line-soft) !important;
  }
}

@media (max-width: 640px) {
  .module-page-head {
    padding: 62px 0 40px !important;
  }

  .module-page-head > .wrap {
    width: min(1180px, calc(100% - 32px));
  }

  .module-page-head .page-title {
    font-size: 34px !important;
  }

  .module-page-head .page-desc {
    font-size: 15px !important;
  }

  .module-page-head .stats-strip {
    margin-top: 28px !important;
  }

  .module-page-head .stat-num {
    font-size: 28px !important;
  }
}

/* Primary index pages move directly from their introduction into the card grid. */
.primary-index .module-page-head {
  padding-bottom: 20px !important;
  position: relative;
  overflow: hidden;
}

.primary-index .module-page-head::after {
  content: attr(data-watermark);
  position: absolute;
  top: 68px;
  right: -20px;
  z-index: 0;
  color: var(--ink);
  font-family: "Fraunces", serif;
  font-size: clamp(72px, 8.5vw, 122px);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -.06em;
  line-height: .86;
  opacity: .045;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.primary-index .module-page-head > .wrap {
  position: relative;
  z-index: 1;
}

.primary-index .primary-content {
  padding-top: 24px !important;
  border-top: 0 !important;
}

@media (max-width: 640px) {
  .primary-index .module-page-head {
    padding-bottom: 16px !important;
  }

  .primary-index .primary-content {
    padding-top: 20px !important;
  }

  .primary-index .module-page-head::after {
    top: 96px;
    right: -28px;
    font-size: 58px;
    opacity: .035;
  }
}
