/* ---------------------------------------------------------
   Central de Ajuda — Mediar Conversas
   Depende de ../style.css para tokens, header e footer.
--------------------------------------------------------- */

.help-hero {
  background: var(--paper-soft);
  border-bottom: 1px solid var(--line);
  padding: 56px 0 40px;
}
.help-hero h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 10px; }
.help-hero p { color: var(--ink-soft); font-size: 17px; max-width: 640px; margin: 0 0 24px; }

.help-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  max-width: 480px;
}
.help-search svg { width: 18px; height: 18px; color: var(--ink-faint); flex-shrink: 0; }
.help-search input {
  border: none;
  outline: none;
  font-family: var(--display);
  font-size: 15px;
  color: var(--ink);
  width: 100%;
  background: transparent;
}
.help-search input::placeholder { color: var(--ink-faint); }

.help-crumbs {
  font-size: 13px;
  color: var(--ink-faint);
  margin-bottom: 16px;
}
.help-crumbs a { color: var(--teal-600); text-decoration: none; }
.help-crumbs a:hover { text-decoration: underline; }

.help-body {
  padding: 48px 0 80px;
}
.help-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}
.help-nav-toggle {
  display: none;
  width: 100%;
  align-items: center;
  gap: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  margin-bottom: 16px;
}
.help-nav-toggle svg { width: 18px; height: 18px; color: var(--teal-600); flex: none; }

@media (max-width: 860px) {
  .help-layout { grid-template-columns: 1fr; gap: 32px; }
  .help-nav-toggle { display: flex; }
  .help-nav {
    position: static;
    display: none;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 8px;
  }
  .help-nav.open { display: block; }
}

/* Categoria cards no índice */
.help-cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}
@media (max-width: 860px) {
  .help-cats { grid-template-columns: 1fr; }
}
.help-cat-card {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.help-cat-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15, 25, 35, 0.08); border-color: var(--teal-400); }
.help-cat-card .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--teal-50);
  color: var(--teal-600);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.help-cat-card .icon svg { width: 22px; height: 22px; }
.help-cat-card h3 { font-size: 17px; margin-bottom: 6px; }
.help-cat-card p { font-size: 14px; color: var(--ink-soft); margin: 0 0 10px; }
.help-cat-card .count { font-size: 13px; color: var(--teal-600); font-weight: 700; }

/* Resultados de busca */
.help-results {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 8px;
}
.help-result {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.help-result:hover { border-color: var(--teal-400); box-shadow: 0 10px 22px rgba(15, 25, 35, 0.06); }
.help-result a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  text-decoration: none;
}
.help-result-title { font-size: 16px; font-weight: 700; color: var(--ink); }
.help-result-cat { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--teal-600); }
.help-result-excerpt { font-size: 14px; color: var(--ink-soft); line-height: 1.5; margin-top: 2px; }

/* Sidebar de navegação (categoria + artigo) */
.help-nav { position: sticky; top: 24px; }
.help-nav-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); margin-bottom: 12px; }
.help-nav-group + .help-nav-group { margin-top: 20px; }
.help-nav-group-title { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.help-nav ul { display: flex; flex-direction: column; gap: 2px; }
.help-nav a {
  display: block;
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 7px 10px;
  border-radius: 8px;
  line-height: 1.4;
}
.help-nav a:hover { background: var(--paper-soft); color: var(--ink); }
.help-nav a.active { background: var(--teal-50); color: var(--teal-600); font-weight: 700; }
.help-nav .sub-list { padding-left: 14px; margin-top: 2px; }

/* Conteúdo do artigo */
.help-article h1 { font-size: clamp(24px, 3.2vw, 32px); margin-bottom: 20px; }
.help-article h2 { font-size: 22px; margin: 36px 0 14px; }
.help-article h3 { font-size: 18px; margin: 28px 0 10px; }
.help-article p { color: var(--ink-soft); font-size: 16px; line-height: 1.7; margin: 0 0 16px; }
.help-article ul, .help-article ol { margin: 0 0 16px; padding-left: 22px; list-style: revert; }
.help-article li { color: var(--ink-soft); font-size: 16px; line-height: 1.7; margin-bottom: 6px; }
.help-article a { color: var(--teal-600); text-decoration: underline; text-decoration-color: var(--teal-400); }
.help-article strong { color: var(--ink); }
.help-article img {
  border-radius: 12px;
  border: 1px solid var(--line);
  margin: 20px 0;
}
.help-article code {
  background: var(--paper-soft);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.9em;
}
.help-article blockquote {
  border-left: 3px solid var(--teal-400);
  padding: 4px 16px;
  color: var(--ink-soft);
  background: var(--paper-soft);
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
}
.help-article table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; }
.help-article th, .help-article td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.help-article th { background: var(--paper-soft); }

.help-article-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.help-article-nav a {
  font-size: 14px;
  font-weight: 700;
  color: var(--teal-600);
  text-decoration: none;
}
.help-article-nav a:hover { text-decoration: underline; }

.help-cta {
  margin-top: 40px;
  padding: 24px;
  background: var(--paper-soft);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.help-cta p { margin: 0; font-size: 15px; color: var(--ink); font-weight: 600; }

.help-empty { padding: 40px 0; color: var(--ink-faint); text-align: center; display: none; }
