/* v60: mobile header, personal welcome, and newsletter containment. */

/* Thank-you destinations: one clear invitation to participate and current Mission imagery. */
.thank-you-card .join-destination,
.thank-you-card .mission-wide-destination {
  grid-column: auto;
  min-height: 330px;
}

.thank-you-card .join-destination {
  background: #123c5b;
}

.thank-you-card .join-image {
  background: #173f5d url('/join-wellsprings-current-2026.webp') center 58% / cover no-repeat;
}

.thank-you-card .join-destination .card-kicker {
  color: #f4b868;
}

.thank-you-card .join-destination .card-link {
  border-top: 1px solid rgba(255, 255, 255, .22);
}

.thank-you-card .mission-wide-destination {
  background: #173f30;
}

.thank-you-card .mission-image {
  min-height: 155px;
  background: #d9c18d url('/mission-current-approved-2026.webp') center 52% / cover no-repeat;
}

.thank-you-card .mission-wide-destination .destination-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.thank-you-card .mission-wide-destination .card-kicker {
  grid-column: auto;
}

.thank-you-card .mission-wide-destination strong {
  font-size: 24px;
}

.thank-you-card .mission-wide-destination .card-link {
  margin-top: auto;
  padding-top: 21px;
  white-space: normal;
}

@media (max-width: 560px) {
  html,
  body,
  main {
    max-width: 100%;
    overflow-x: clip;
  }

  /* Keep the wordmark visually anchored while the actions finish at the right edge. */
  .site-header {
    box-sizing: border-box;
    flex-wrap: wrap !important;
    align-items: center !important;
    row-gap: 12px !important;
    width: 100%;
    padding: 18px 20px !important;
  }

  .site-header .brand {
    flex: 0 1 auto;
    min-width: 0;
  }

  .site-header .mission-brand-image {
    display: block;
    width: min(220px, 64vw) !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .site-header .desktop-nav {
    display: flex !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    justify-content: flex-end !important;
    gap: 16px !important;
    font-size: 11px !important;
  }

  .site-header .desktop-nav .nav-cta {
    margin-left: 2px;
    padding: 9px 14px !important;
    font-size: 10px !important;
  }

  /* Center the human introduction, then let the message read naturally below it. */
  .founder-welcome-v48 {
    grid-template-columns: 1fr !important;
    width: calc(100% - 22px) !important;
    margin: 28px auto 38px !important;
    padding: 24px 20px 28px !important;
    gap: 22px !important;
  }

  .founder-welcome-photo-v48 {
    justify-self: center !important;
    width: clamp(118px, 35vw, 148px) !important;
  }

  .founder-welcome-copy-v48 {
    width: 100%;
    min-width: 0;
  }

  .founder-welcome-copy-v48 > .eyebrow,
  .founder-welcome-theme-v50 {
    text-align: center !important;
  }

  .founder-welcome-copy-v48 > .eyebrow {
    margin-bottom: 9px !important;
  }

  .founder-welcome-theme-v50 {
    margin-bottom: 16px !important;
  }

  .founder-welcome-copy-v48 h2,
  .founder-welcome-copy-v48 > p:not(.eyebrow):not(.founder-welcome-theme-v50) {
    text-align: left !important;
  }

  .founder-welcome-copy-v48 h2 {
    margin-bottom: 17px !important;
    font-size: clamp(2.55rem, 13vw, 3.25rem) !important;
    line-height: .96 !important;
  }

  .founder-signoff-v48 {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: min(100%, 250px) !important;
    margin: 18px auto 10px !important;
    gap: 8px !important;
    text-align: center !important;
  }

  .founder-signoff-v48 > img {
    width: min(185px, 70vw) !important;
    max-width: 185px !important;
    padding: 4px 0 !important;
  }

  .founder-signoff-v48 > p {
    width: 100% !important;
    padding: 10px 0 0 !important;
    border-top: 1px solid rgba(23, 63, 74, .2) !important;
    border-left: 0 !important;
    text-align: center !important;
  }

  /* Remove the negative mobile inset and keep the cross-site form inside its frame. */
  .final-engagement {
    padding-inline: 18px !important;
  }

  .follow-engagement-stack,
  .engagement-follow,
  .engagement-form {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .engagement-follow {
    padding-inline: 9px !important;
    overflow: hidden;
  }

  .engagement-form {
    margin-inline: 0 !important;
    overflow: hidden !important;
  }

  .engagement-form iframe {
    box-sizing: border-box !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
  }
}

@media (min-width: 561px) and (max-width: 760px) {
  .site-header {
    flex-wrap: nowrap !important;
    gap: 22px !important;
  }

  .site-header .mission-brand-image {
    width: clamp(210px, 39vw, 250px) !important;
  }

  .site-header .desktop-nav {
    flex: 1 1 auto !important;
    width: auto !important;
    margin-left: auto !important;
    justify-content: flex-end !important;
    gap: clamp(11px, 2vw, 18px) !important;
  }
}
