/* ==========================================================================
   Community, contact, join, help
   ========================================================================== */

/* Community ------------------------------------------------------------------ */
.community-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(32px, 5.5vw, 96px); }
.community-copy .body-l { max-width: 40ch; margin-top: clamp(18px, 2vw, 28px); }
.community-rules { max-width: 44ch; margin-top: 14px; color: var(--stone); font-size: var(--fs-small); }
.community-rules a { color: var(--bone); }
.community-copy .actions { margin-top: clamp(26px, 3vw, 40px); }
.community-visual { aspect-ratio: 16 / 9; }


@media (max-width: 900px) {
  .community-layout { grid-template-columns: minmax(0, 1fr); }
}

/* Contact -------------------------------------------------------------------- */
.contact-routes { border-top: 1px solid var(--line-strong); }

.contact-route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(210px, .5fr);
  align-items: center;
  gap: 12px clamp(20px, 4vw, 64px);
  padding: clamp(22px, 2.4vw, 32px) 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.contact-route h3 { font-size: 1.25rem; }
.contact-route p { max-width: 56ch; color: var(--stone); font-size: var(--fs-body); line-height: 1.6; }
.contact-route p a { color: var(--bone); }
.contact-route > .link-arrow { justify-self: end; }
.contact-route:target { border-radius: var(--radius-sm); outline: 1px solid var(--line-strong); padding-inline: clamp(12px, 1.6vw, 24px); }

@media (max-width: 960px) {
  .contact-route { grid-template-columns: minmax(0, 1fr); align-items: start; justify-items: start; }
  .contact-route > .link-arrow { justify-self: start; }
}



/* Join ----------------------------------------------------------------------- */
.join-path {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: clamp(24px, 6vw, 112px);
  padding-block: clamp(40px, 5.5vw, 88px);
  border-top: 1px solid var(--line);
  scroll-margin-top: var(--header-h);
}

.join-paths { padding-top: 0; }
.join-path:first-child { border-top: 1px solid var(--line-strong); }
.join-path-copy > p:first-child { max-width: 52ch; color: var(--bone-2); font-size: var(--fs-body-l); line-height: 1.62; }
.join-path-copy .actions { gap: 16px 28px; margin-top: clamp(26px, 3vw, 40px); }

.network-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px clamp(32px, 6vw, 112px); }
.network-split > div { display: flex; flex-direction: column; align-items: flex-start; }
.network-split h2 { font-size: clamp(1.625rem, 2.4vw, 2.125rem); }
.network-split p { max-width: min(44ch, 100%); margin-top: 18px; color: var(--stone); font-size: var(--fs-body-l); line-height: 1.6; }
.network-split .text-button { margin-top: clamp(22px, 2.6vw, 36px); }


@media (max-width: 860px) {
  .join-path,
  .network-split { grid-template-columns: minmax(0, 1fr); }
}

/* Help ----------------------------------------------------------------------- */
.help-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; gap: clamp(32px, 6vw, 112px); }
.help-tools { position: sticky; top: calc(var(--header-h) + 40px); }
.help-tools h2 { font-size: clamp(1.625rem, 2.4vw, 2.125rem); }
.help-tools > p:not(.help-status) { max-width: 36ch; margin-top: 16px; color: var(--stone); }
.help-controls { display: grid; gap: 16px; margin-top: clamp(24px, 2.6vw, 36px); }
.help-control-field { display: grid; gap: 9px; }
.help-control-field label { color: var(--stone); font-size: .875rem; font-weight: 500; }

.help-reset {
  justify-self: start;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  background: none;
  color: var(--bone);
  font-size: .875rem;
  font-weight: 500;
}

.help-status { margin-top: 18px; color: var(--stone); font-size: .9375rem; }

.help-list { border-top: 1px solid var(--line-strong); }
.help-item { border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }

.help-item summary {
  position: relative;
  display: block;
  padding: clamp(18px, 2vw, 24px) 56px clamp(17px, 1.9vw, 22px) 0;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  font-weight: 600;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

.help-item summary::-webkit-details-marker { display: none; }

.help-item summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 6px;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  background: currentColor;
  -webkit-mask: var(--icon-plus) center / contain no-repeat;
  mask: var(--icon-plus) center / contain no-repeat;
  transition: transform .5s var(--ease);
}

.help-item[open] summary::after { transform: rotate(45deg); }
.help-item summary:focus-visible { outline-offset: -2px; }

.help-answer { max-width: 64ch; padding: 0 0 clamp(24px, 2.8vw, 36px); color: var(--bone-2); font-size: var(--fs-body-l); line-height: 1.66; }
.help-answer > * + * { margin-top: 1em; }
.help-answer ol { padding-left: 1.3em; }
.help-answer li + li { margin-top: .5em; }
.help-answer a { color: var(--bone); }
.help-answer a:hover { text-decoration-thickness: 2px; }

.help-empty { margin-top: 24px; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); color: var(--stone); font-size: var(--fs-body-l); }
.help-empty a { color: var(--bone); }

@media (max-width: 900px) {
  .help-layout { grid-template-columns: minmax(0, 1fr); }
  .help-tools { position: static; }
}
