/* Central de ajuda: topo com busca, três atalhos, índice lateral e perguntas. */

.help-head { padding-bottom: calc(var(--sp-7) + 44px); }
.help-search { max-width: 620px; height: 58px; margin-top: var(--sp-5); background: #fff; border-color: #fff; box-shadow: 0 16px 34px -16px rgba(6, 16, 44, .6); }
.help-search input { font-size: 1.02rem; }

/* Atalhos: sobem sobre a faixa escura */
.topic-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); margin-top: -44px; position: relative; z-index: 1; }
.topic-card {
  display: grid; grid-template-columns: auto 1fr; gap: var(--sp-2) var(--sp-4); align-items: center;
  padding: var(--sp-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.topic-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--forest); }
.topic-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--sage-soft); color: var(--forest); flex-shrink: 0; }
.topic-icon svg { width: 24px; height: 24px; }
.topic-icon--sm { width: 36px; height: 36px; border-radius: 11px; }
.topic-icon--sm svg { width: 19px; height: 19px; }
.topic-text strong { display: block; color: var(--forest-deep); font-weight: 800; line-height: 1.25; }
.topic-text span { font-size: var(--step--1); color: var(--muted); }
.topic-count { grid-column: 2; font-size: 0.78rem; font-weight: 700; color: var(--forest); }

/* Índice + perguntas */
.help-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: var(--sp-7); align-items: start; padding-block: var(--sp-7) var(--sp-6); }
.help-side { position: sticky; top: calc(var(--nav-h) + var(--sp-4)); }
.help-side-title { font-size: 0.74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 var(--sp-3); }
.help-side ul { list-style: none; padding: 0; margin: 0 0 var(--sp-5); display: grid; gap: 2px; }
.help-side li a { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); min-height: 44px; padding: var(--sp-2) var(--sp-3); border-radius: var(--radius); border-left: 3px solid transparent; color: var(--ink-soft); font-weight: 600; font-size: 0.95rem; }
.help-side li a span { font-size: 0.78rem; font-weight: 700; color: var(--muted); background: var(--cream-deep); padding: 0.1em 0.6em; border-radius: 99px; }
.help-side li a:hover { background: var(--sage-soft); color: var(--forest); }
.help-side li a[aria-current="true"] { background: var(--sage-soft); border-left-color: var(--forest); color: var(--forest); }
.help-side-contact { padding: var(--sp-4); border-radius: var(--radius-lg); background: var(--cream-deep); display: grid; gap: var(--sp-2); justify-items: start; }
.help-side-contact strong { color: var(--forest-deep); }
.help-side-contact p { margin: 0; font-size: var(--step--1); color: var(--muted); }

.help-main .faq-group { margin-bottom: var(--sp-7); scroll-margin-top: calc(var(--nav-h) + var(--sp-4)); }
.help-main .faq-group-title { display: flex; align-items: center; gap: var(--sp-3); font-size: var(--step-2); font-weight: 800; letter-spacing: -0.02em; text-transform: none; color: var(--forest-deep); margin-bottom: var(--sp-4); }
.help-main .faq-q { font-size: 1.05rem; min-height: 60px; }
.help-main .faq-a { max-width: none; }
.help-main .faq:has(.faq-q[aria-expanded="true"]) { border-color: var(--forest); box-shadow: var(--shadow-sm); }
.faq-icon { width: 30px; height: 30px; border-radius: 50%; background: var(--sage-soft); color: var(--forest); display: grid; place-items: center; font-size: 1.2rem; font-weight: 500; }
.help-status { font-size: var(--step--1); font-weight: 600; color: var(--forest); margin-bottom: var(--sp-4); }
.help-empty { text-align: center; padding: var(--sp-7) var(--sp-5); border: 1.5px dashed var(--border-firm); border-radius: var(--radius-lg); }
.help-empty h2 { font-size: var(--step-2); margin-bottom: var(--sp-2); }
.help-empty p { color: var(--muted); margin-bottom: var(--sp-4); }

/* Fecho */
.help-contact {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-5);
  padding: var(--sp-6) var(--sp-7); margin-bottom: var(--sp-8); border-radius: var(--radius-xl); color: #D3DCF2;
  background: radial-gradient(120% 160% at 100% 0%, #3A6BEE 0%, var(--forest) 40%, var(--forest-deep) 100%);
}
.help-contact h2 { color: #fff; margin-bottom: var(--sp-2); }
.help-contact p { margin: 0; }

@media (max-width: 960px) {
  .topic-cards { grid-template-columns: 1fr; margin-top: -32px; }
  .help-head { padding-bottom: calc(var(--sp-6) + 32px); }
  .help-layout { grid-template-columns: 1fr; gap: var(--sp-5); padding-top: var(--sp-6); }
  .help-side { display: none; }   /* no celular os três atalhos acima já fazem esse papel */
  .help-contact { padding: var(--sp-5); }
  .help-contact .btn { width: 100%; }
}
