/* ---------- Central de Ajuda ---------- */

/* Rolagem suave só quando a página tem a navegação da ajuda */
html:has(.help-nav) { scroll-behavior: smooth; }

/* Navegação rápida (chips-âncora) */
.help-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.help-anchor {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-full);
  background: #fff;
  color: var(--text);
  padding: 7px 15px;
  font-size: 13.5px;
  font-weight: 600;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.help-anchor:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-tonal);
  text-decoration: none;
}
.help-anchor svg { width: 15px; height: 15px; }
.help-anchor__num {
  width: 18px; height: 18px; flex: none;
  border-radius: var(--r-full);
  background: var(--surface-2);
  color: var(--text-2);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
}
.help-anchor--primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.help-anchor--primary:hover { background: var(--primary-hover); color: #fff; }

/* Seções do guia */
.help-section { scroll-margin-top: 24px; }
.help-section + .help-section { margin-top: 18px; }
.help-section__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.help-section__head h2 { margin: 0; }

.help-steps {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.help-steps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
}
.help-steps li svg {
  width: 17px; height: 17px; flex: none;
  margin-top: 2px;
  color: var(--green);
}
.help-steps code {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 7px;
  font-size: 12.5px;
}

.help-tip { margin-bottom: 16px; }

/* Prints em moldura de navegador */
.help-shot { margin-top: 4px; }
.help-shot img { max-width: 100%; height: auto; display: block; }

/* FAQ */
.help-faq { display: flex; flex-direction: column; gap: 8px; }
.help-faq details {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
}
.help-faq details[open] { background: #fff; border-color: var(--border-strong); }
.help-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 13px 16px;
  font-weight: 650;
  font-size: 14.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}
.help-faq summary::-webkit-details-marker { display: none; }
.help-faq summary::before {
  content: "+";
  width: 20px; height: 20px; flex: none;
  border-radius: var(--r-full);
  background: var(--primary-tonal);
  color: var(--primary);
  display: grid; place-items: center;
  font-weight: 700;
}
.help-faq details[open] summary::before { content: "–"; }
.help-faq details p {
  margin: 0;
  padding: 0 16px 14px 44px;
  color: var(--text-2);
  font-size: 14px;
}

/* Card de contato do suporte */
.help-support-card { scroll-margin-top: 24px; }

/* Thread do atendimento */
.help-thread {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 4px 0 8px;
}
.help-msg { display: flex; flex-direction: column; max-width: 78%; }
.help-msg--mine { align-self: flex-end; align-items: flex-end; }
.help-msg--support { align-self: flex-start; align-items: flex-start; }
.help-msg__author {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: 3px;
}
.help-msg__author svg { width: 13px; height: 13px; color: var(--primary); }
.help-msg__bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.help-msg--mine .help-msg__bubble {
  background: var(--primary-tonal);
  color: #174a9c;
  border-bottom-right-radius: 6px;
}
.help-msg--support .help-msg__bubble {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 6px;
}
.help-msg__time { font-size: 11px; color: var(--text-3); margin-top: 3px; }

/* Form de resposta */
.help-reply {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.help-reply__actions { display: flex; justify-content: flex-end; }

@media (max-width: 640px) {
  .help-msg { max-width: 92%; }
}
