/*
 * MemorMe Pocket phone app: the Help screen (help.js, words in help-content.js).
 * A short intro, then the questions as cards that open in place. Theme tokens from base.css, sizes in rem.
 */
.help {
  max-width: 36rem;
  margin: 0 auto;
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  line-height: 1.55;
}
.help h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--gold);
  margin: 0 0 0.75rem;
}
.help p {
  margin: 0;
}
.help strong {
  font-weight: 700;
}

/* ---------------------------------------------------------------- intro */
.help-intro {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.help-intro h3 {
  font-size: 1.375rem;
  margin-bottom: 0.125rem;
}
.help-intro p {
  font-size: 1.0625rem;
}
.help-intro p:nth-of-type(2) {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 0.25rem solid var(--accent);
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
}

/* ---------------------------------------------------------------- questions */
.faq {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  overflow: hidden;
}
.faq-item[open] {
  border-color: var(--accent);
}
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3.5rem;
  padding: 0.75rem 1rem;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
  border-radius: 0.875rem;
}
.faq-chev {
  flex: none;
  width: 0.625rem;
  height: 0.625rem;
  margin-right: 0.25rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-0.125rem) rotate(45deg);
  transition: transform 0.15s ease;
}
.faq-item[open] .faq-chev {
  transform: translateY(0.125rem) rotate(-135deg);
  border-color: var(--accent);
}
.faq-answer {
  padding: 0 1rem 1.125rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-answer button {
  margin-top: 0.25rem;
}
.help-sub {
  font-size: 1rem;
  margin: 0.375rem 0 -0.25rem;
  color: var(--text);
}
.help-list {
  margin: 0;
  padding-left: 1.375rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.help-list li::marker {
  color: var(--gold);
}
.help-steps li::marker {
  font-weight: 700;
}
.help-note {
  color: var(--muted);
}

/* ---------------------------------------------------------------- something not working */
.help-stuck {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-bottom: 0.5rem;
}
.help-stuck h3 {
  margin: 0;
}
.help-stuck p {
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .faq-chev {
    transition: none;
  }
}
