:root {
  --body-color: rgb(94, 94, 94);
  --heading-color: rgb(27, 27, 27);
  --muted-text: rgb(89, 89, 89);
  --brand-green: #006400;
  --page-width: 1160px;
  --footer-width: 1112px;
  --body-font: "Quicksand", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html,
body { margin: 0; min-height: 100%; }

body {
  color: #000000;
  background: #ffffff;
  font-family: var(--body-font);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img,
svg { display: block; }

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 8px;
  left: 8px;
  padding: 8px 14px;
  color: #ffffff;
  background: var(--brand-green);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.join-section,
.site-footer { background: #ffffff; }

.join-section { padding: 56px 0; }

.join-container {
  width: min(calc(100% - 48px), var(--page-width));
  margin: 0 auto;
}

.join-content {
  width: min(100%, 725.328125px);
  margin: 0 auto;
}

.join-content h1 {
  position: relative;
  width: fit-content;
  margin: 0 0 24px;
  padding-bottom: 18px;
  color: var(--heading-color);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.25;
  text-align: start;
}

.join-content h1::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 54px;
  height: 4px;
  border-radius: 999px;
  background: #185127;
}

.join-copy {
  width: 100%;
  color: var(--body-color);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  text-align: start;
}

.join-copy p { margin: 0; }

.join-use-case {
  display: block;
  width: 100%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: normal;
}

.join-use-case[data-join-text-pending] { display: none; }

.site-footer {
  min-height: 164.796875px;
  padding: 56px 24px;
}

.footer-container {
  width: min(100%, var(--footer-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.copyright {
  margin: 0;
  color: var(--muted-text);
  font-size: 16px;
  line-height: 1.8;
}

.powered-by {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: var(--muted-text);
  line-height: 1.8;
}

.powered-by span { margin: 0 0 4px; }

.powered-by img {
  width: 131px;
  height: 20px;
  object-fit: contain;
}

@media (max-width: 767px) {
  .join-section { padding: 40px 0; }

  .join-content h1 {
    max-width: 100%;
    font-size: clamp(1.0625rem, 3vw + 0.5rem, 1.25rem);
    line-height: 1.35;
    overflow-wrap: break-word;
  }

  .join-copy {
    font-size: clamp(1rem, 2.5vw + 0.5rem, 1.0625rem);
  }

  .join-use-case { white-space: pre-wrap; }

  .site-footer {
    min-height: 214.390625px;
    padding: 40px 24px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .powered-by { align-items: center; }
  .powered-by span { margin-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

html[lang="ar"] .join-page main,
html[lang="ar"] .join-page main * {
  font-family: "Tajawal", "Quicksand", sans-serif !important;
}
