/* The Help page (youlink.ai/help), which the app's start screen opens. Made for a phone first: large type, one question per row, and each
   answer opens in place with no script (details and summary). Colours and the bar at the top come from site.css. */

.help { padding-block: clamp(1.25rem, 5vw, 2.5rem) 2.5rem; font-size: 1.1875rem; line-height: 1.6; }
.help h1 { margin-bottom: 0.75rem; font-size: clamp(2.2rem, 9vw, 3rem); }
.help .lede { margin: 0 0 1.75rem; font-size: clamp(1.15rem, 4.6vw, 1.3rem); }

.faq { display: grid; gap: 0.75rem; }
.faq details { border: 1px solid var(--rule); border-radius: 1rem; background: var(--surface); }
.faq details[open] { border-color: var(--rule-strong); }

/* The question: the whole row is the button, at least 3.5rem tall so it is easy to tap. */
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  padding: 0.95rem 1.15rem;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.012em;
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: 0 0 auto;
  width: 0.65rem;
  height: 0.65rem;
  margin-right: 0.2rem;
  border-right: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: translateY(-0.2rem) rotate(45deg);
}
.faq details[open] > summary::after { transform: translateY(0.15rem) rotate(-135deg); }
.faq summary:hover { color: var(--link); }
.faq summary:focus-visible { outline-offset: -3px; border-radius: 1rem; }
@media (prefers-reduced-motion: no-preference) {
  .faq summary::after { transition: transform 200ms ease-out; }
}

/* The answer. */
.answer { padding: 0 1.15rem 1.15rem; }
.answer p { margin: 0 0 0.9rem; }
.answer ol, .answer ul { margin: 0 0 0.9rem; padding-left: 1.4rem; }
.answer li + li { margin-top: 0.45rem; }
.answer > :last-child { margin-bottom: 0; }
.answer strong { color: var(--ink); font-weight: 650; }
.answer .button { margin-top: 0.25rem; }
.invite-code { font-size: 0.95em; letter-spacing: 0.02em; white-space: nowrap; }

.help-foot { margin: 2rem 0 0; color: var(--ink-soft); }
