.resource-section-nav {
  display: flex;
  max-width: 1200px;
  margin: 24px auto 0;
  padding: 0 24px;
  border-bottom: 1px solid #cfd6dd;
}

.resource-section-nav a {
  min-width: 112px;
  padding: 12px 18px;
  border-bottom: 3px solid transparent;
  color: #59636e;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
}

.resource-section-nav a.active {
  border-color: #1f73a9;
  color: #15191d;
}

.resource-detail-page {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 36px 0 72px;
}

.resource-back-link {
  display: inline-flex;
  margin-bottom: 20px;
  color: #4e5965;
  text-decoration: none;
  font-size: 14px;
}

.resource-back-link::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-bottom: 1px solid currentColor;
  border-left: 1px solid currentColor;
  transform: rotate(45deg);
}

.resource-detail-hero {
  padding: 34px 36px 30px;
  border-top: 2px solid #171a1d;
  border-bottom: 1px solid #d9dde2;
  background: #f5f7f9;
}

.resource-detail-summary {
  width: 100%;
}

.resource-detail-heading {
  display: flex;
  align-items: center;
  gap: 22px;
}

.resource-file-badge {
  position: relative;
  display: inline-flex;
  flex: 0 0 76px;
  width: 76px;
  height: 82px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 4px;
  background: #176fa6;
  color: #fff;
}

.resource-file-badge::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-width: 0 18px 18px 0;
  border-style: solid;
  border-color: transparent #dce8ef transparent transparent;
}

.resource-file-badge small {
  margin-bottom: 5px;
  font-size: 10px;
  font-weight: 700;
  opacity: 0.78;
}

.resource-file-badge strong {
  max-width: 62px;
  font-size: 17px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.resource-detail-title {
  min-width: 0;
}

.resource-detail-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: #1f73a9;
  font-size: 13px;
  font-weight: 800;
}

.resource-detail-summary h1 {
  max-width: 860px;
  margin: 0;
  color: #111;
  font-size: 32px;
  line-height: 1.3;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.resource-detail-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: center;
  gap: 32px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid #d5dade;
}

.resource-detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  margin: 0;
}

.resource-detail-meta div {
  min-width: 0;
  padding: 0 20px;
  border-left: 1px solid #d7dce1;
}

.resource-detail-meta div:first-child {
  padding-left: 0;
  border-left: 0;
}

.resource-detail-meta dt {
  margin-bottom: 7px;
  color: #717981;
  font-size: 12px;
}

.resource-detail-meta dd {
  min-width: 0;
  margin: 0;
  color: #20252a;
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.resource-detail-action {
  display: flex;
  align-items: center;
  margin: 0;
}

.resource-primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  padding: 12px 22px;
  border: 0;
  border-radius: 4px;
  box-sizing: border-box;
  background: #111;
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.resource-primary-action:hover {
  background: #2f3439;
}

.resource-primary-action.is-disabled {
  background: #8a9198;
  cursor: not-allowed;
}

.resource-detail-body {
  margin-top: 48px;
  padding: 0 4px;
}

.resource-detail-body h2 {
  margin: 0 0 20px;
  color: #111;
  font-size: 23px;
  letter-spacing: 0;
}

.resource-description {
  color: #3f474f;
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.resource-detail-navigation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  margin-top: 44px;
  border-top: 1px solid #d5dade;
  border-bottom: 1px solid #d5dade;
}

.resource-navigation-item {
  display: block;
  min-width: 0;
  padding: 20px 0;
  color: #22282e;
  text-decoration: none;
}

.resource-navigation-item.is-next {
  text-align: right;
}

.resource-navigation-item span {
  display: block;
  margin-bottom: 6px;
  color: #6b747d;
  font-size: 12px;
}

.resource-navigation-item strong {
  display: block;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resource-navigation-item:hover strong {
  color: #176fa6;
}

.resource-list-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  min-height: 40px;
  padding: 9px 18px;
  border: 1px solid #737a81;
  border-radius: 4px;
  box-sizing: border-box;
  color: #20252a;
  font-size: 14px;
  text-decoration: none;
}

.resource-list-button:hover {
  border-color: #171a1d;
  background: #171a1d;
  color: #fff;
}

.download-popup {
  max-height: 92vh;
  overflow-y: auto;
}

.download-popup input,
.download-popup select,
.download-popup textarea {
  border-radius: 4px;
  box-sizing: border-box;
}

.download-popup input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0 7px 0 0;
  flex: 0 0 18px;
}

.download-popup .pop_div > div {
  flex: 1;
  min-width: 0;
}

.consent-row {
  display: flex !important;
  align-items: flex-start;
  margin: 9px 0;
  font-size: 13px;
  line-height: 1.45;
}

.form-message {
  padding: 38px 24px;
  text-align: center;
  line-height: 1.7;
}

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 900px) {
  .resource-detail-controls {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .resource-detail-summary h1 {
    font-size: 29px;
  }

  .resource-detail-action {
    width: min(100%, 360px);
  }
}

@media (max-width: 767px) {
  .resource-section-nav {
    margin-top: 16px;
    padding: 0 16px;
  }

  .resource-section-nav a {
    flex: 1;
    min-width: 0;
  }

  .resource-detail-page {
    width: calc(100% - 32px);
    padding: 32px 0 56px;
  }

  .resource-detail-heading {
    align-items: flex-start;
    gap: 16px;
  }

  .resource-file-badge {
    flex-basis: 62px;
    width: 62px;
    height: 68px;
  }

  .resource-file-badge strong {
    max-width: 50px;
    font-size: 14px;
  }

  .resource-detail-summary h1 {
    font-size: 24px;
  }

  .resource-detail-hero {
    padding: 26px 20px 24px;
  }

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

  .resource-detail-action {
    width: 100%;
  }

  .resource-detail-body {
    margin-top: 36px;
  }

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

  .resource-detail-meta div,
  .resource-detail-meta div:first-child {
    padding: 0 12px;
    border: 0;
    border-left: 1px solid #d7dce1;
  }

  .resource-detail-meta div:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .resource-detail-navigation {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
  }

  .resource-navigation-item {
    grid-row: 1;
  }

  .resource-navigation-item.is-previous {
    grid-column: 1;
    padding-right: 12px;
  }

  .resource-navigation-item.is-next {
    grid-column: 2;
    padding-left: 12px;
  }

  .resource-navigation-spacer:first-child {
    grid-column: 1;
  }

  .resource-navigation-spacer:last-child {
    grid-column: 2;
  }

  .resource-navigation-item strong {
    display: none;
  }

  .resource-navigation-item span {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
  }

  .resource-list-button {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    margin: 0 0 18px;
  }
}
