/* Applicant help stays separate from introduction decisions. */
body.member-page #member-help {
  margin: 0 0 20px;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  word-break: keep-all;
  overflow-wrap: anywhere;
}

body.member-page #member-help[hidden] { display: none; }
body.member-page #navigation[hidden] { display: none; }

body.member-page #member-help .member-help-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 24px;
  margin: 0 0 8px;
}

body.member-page #member-help .member-help-links > :is(a, button) {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 1 auto;
  min-width: 48px;
  min-height: 48px;
  max-width: 100%;
  margin: 0;
  padding: 10px 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  text-align: start;
  text-decoration: underline;
  text-underline-offset: 4px;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: anywhere;
  touch-action: manipulation;
}

body.member-page #member-help > p {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
}

body.member-page > footer > p:last-child { margin-bottom: 0; }

body.member-page #thanks-dialog {
  width: calc(100vw - 40px);
  max-width: 480px;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  scroll-padding-block: 24px;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

body.member-page #thanks-dialog h2 {
  margin-bottom: 18px;
  font-size: 23px;
  line-height: 1.5;
}

body.member-page #thanks-dialog > p {
  font-size: 16px;
  line-height: 1.85;
}

body.member-page #thanks-dialog > .eyebrow { font-size: 13px; }
body.member-page #thanks-dialog > .subtle { font-size: 14px; }

body.member-page #thanks-dialog .actions {
  align-items: center;
  gap: 8px 12px;
  margin-top: 24px;
}

body.member-page #thanks-dialog .actions > * {
  flex: 0 1 auto;
  min-height: 48px;
  max-width: 100%;
  font-size: 15px;
}

body.member-page #thanks-dialog .actions .button.primary {
  border-color: #dadde0;
  background: #fff;
  color: var(--green);
}

body.member-page #thanks-dialog #member-thanks-close {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

@media (hover: hover) {
  body.member-page #member-help .member-help-links > :is(a, button):hover {
    background: transparent;
    color: var(--green);
  }
  body.member-page #thanks-dialog .actions .button.primary:hover {
    background: #e9eef3;
  }
  body.member-page #thanks-dialog #member-thanks-close:hover {
    background: #e9eef3;
  }
}

@media (max-width: 759px) {
  body.member-page #member-help { text-align: start; }
  body.member-page #member-help .member-help-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 12px;
  }
  body.member-page #thanks-dialog {
    width: 100%;
    max-width: 480px;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    margin: auto auto 0;
    padding: 24px max(20px, env(safe-area-inset-right, 0px)) max(28px, env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
    border: 0;
    border-radius: 16px 16px 0 0;
    scroll-padding-block: 24px;
  }
  body.member-page #thanks-dialog .actions {
    flex-direction: column;
    align-items: flex-start;
  }
}
