.whitepaper {
  border-top: 1px solid var(--border);
}

.whitepaper-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px 24px;
  margin-bottom: 22px;
}

.whitepaper-heading h2 {
  margin: 0;
}

.whitepaper-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.whitepaper-preview {
  display: block;
  overflow: hidden;
  border: 1px solid #4c1b25;
  border-radius: 7px;
  background: #101114;
  cursor: zoom-in;
}

.whitepaper-preview:hover {
  border-color: var(--red);
}

.whitepaper-preview img {
  width: 100%;
  height: auto;
}

/* Keep every navigation tab reachable on tablets as well as phones. */
@media (max-width: 1100px) {
  .header .nav-wrap {
    justify-content: space-between;
  }

  .header .nav-buy {
    display: none;
  }

  .header .menu-toggle {
    display: block;
    background: none;
    border: 1px solid #663044;
    border-radius: 4px;
    padding: 7px 12px;
    font-weight: 700;
    font-size: 14px;
    min-height: 44px;
  }

  .header nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
    margin: 0;
    padding: 10px 22px;
    background: #0d080e;
    border-bottom: 1px solid #632034;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .header nav.open {
    display: flex;
  }

  .header nav a {
    padding: 11px 0;
  }
}

@media (max-width: 720px) {
  .whitepaper-heading {
    gap: 16px;
    margin-bottom: 18px;
  }

  .whitepaper-heading h2 {
    font-size: clamp(28px, 8vw, 36px);
  }

  .whitepaper-actions {
    width: 100%;
  }

  .whitepaper-actions .button {
    flex: 1;
    font-size: 16px;
    padding: 11px 12px;
    min-height: 44px;
  }
}
