/* =====================================================
   PORTAL REDE — Central de Ajuda
   ===================================================== */

.help-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--ink-soft); transition: border-color .15s var(--ease), color .15s var(--ease);
}
.help-btn:hover, .help-btn.on { border-color: var(--pine); color: var(--pine); }

/* Hero da central */
.help-hero {
  background: var(--pine-deep); color: #fff; border-radius: var(--radius);
  padding: 34px 32px; margin-bottom: 22px; position: relative; overflow: hidden;
}
.help-hero h1 { color: #fff; font-size: 28px; letter-spacing: -0.02em; }
.help-hero p { color: rgba(255,255,255,.78); font-size: 15px; margin-top: 6px; max-width: 620px; }
.help-search { margin-top: 18px; max-width: 460px; position: relative; }
.help-search input {
  width: 100%; padding: 12px 14px 12px 40px; border-radius: var(--radius-sm);
  border: none; font: inherit; font-size: 15px; background: rgba(255,255,255,.95); color: var(--ink);
}
.help-search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-faint); }

/* Grade de tópicos */
.help-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.help-card {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  text-decoration: none; color: var(--ink); transition: border-color .15s var(--ease), transform .15s var(--ease);
}
.help-card:hover { border-color: var(--pine); transform: translateY(-2px); text-decoration: none; }
.help-card__ico {
  width: 42px; height: 42px; border-radius: var(--radius-sm); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; background: var(--pine-soft); color: var(--pine);
}
.help-card h3 { font-size: 15.5px; margin-bottom: 3px; }
.help-card p { font-size: 12.5px; color: var(--ink-faint); line-height: 1.45; }

/* Layout do tópico: índice lateral + conteúdo */
.help-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 26px; align-items: start; }
@media (max-width: 900px) { .help-layout { grid-template-columns: 1fr; } .help-toc { position: static !important; } }

.help-toc {
  position: sticky; top: 76px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); padding: 10px; max-height: calc(100vh - 96px); overflow-y: auto;
}
.help-toc a {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 500; color: var(--ink-soft); text-decoration: none;
}
.help-toc a:hover { background: var(--paper); color: var(--ink); text-decoration: none; }
.help-toc a.on { background: var(--pine-soft); color: var(--pine); font-weight: 600; }
.help-toc a svg { color: currentColor; }

/* Conteúdo do artigo */
.help-article { max-width: 820px; }
.help-article > .help-intro { font-size: 15.5px; color: var(--ink-soft); line-height: 1.65; margin-bottom: 8px; }
.help-section { padding: 22px 0; border-top: 1px solid var(--line); }
.help-section:first-of-type { border-top: none; }
.help-section h2 { font-size: 19px; margin-bottom: 8px; }
.help-section > p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.65; margin-bottom: 12px; }
.help-steps { counter-reset: step; display: flex; flex-direction: column; gap: 10px; margin: 6px 0 4px; }
.help-step {
  display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.55;
}
.help-step::before {
  counter-increment: step; content: counter(step);
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--pine); color: #fff; font-size: 12.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.help-tip {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px 14px;
  background: var(--lime-soft); border-radius: var(--radius-sm); font-size: 13.5px; line-height: 1.55;
}
.help-tip strong { color: var(--pine-deep); }

.help-shot {
  margin: 16px 0 4px; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden;
}
.help-shot img { width: 100%; display: block; }
.help-shot figcaption { font-size: 12.5px; color: var(--ink-faint); padding: 8px 12px; background: var(--paper); }

.help-prevnext { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }

/* "?" contextual ao lado do título da página */
.page-help-q {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; margin-left: 9px; vertical-align: middle;
  border-radius: 50%; color: var(--ink-faint); border: 1px solid var(--line-strong);
  transition: color .15s var(--ease), border-color .15s var(--ease), background-color .15s var(--ease);
}
.page-help-q:hover { color: var(--pine); border-color: var(--pine); background: var(--pine-soft); }
