/* ============================================================
   OPTIMUS — CENTRAL DE AJUDA
   Carrega depois do Optimus.css e usa os mesmos tokens --o-*.
   ============================================================ */

.oa {
  width: min(880px, 100%);
  margin-inline: auto;
  padding: clamp(28px, 6vw, 64px) 16px clamp(48px, 8vw, 96px);
  color: var(--o-text);
  font-family: var(--opt-ff-body);
}

/* o reset do site capitaliza tudo com *: texto de política tem que sair como foi escrito */
.oa, .oa * { text-transform: none; }

/* ── topo: título e busca ── */
.oa-topo { text-align: center; }
.oa-titulo {
  margin: 0;
  font-family: var(--opt-ff-title);
  font-size: clamp(38px, 7vw, 62px);
  font-weight: 400;
  letter-spacing: .02em;
  line-height: 1.05;
  color: var(--o-title);
}
.oa-sub { margin: 10px auto 0; max-width: 560px; color: var(--o-muted); font-size: clamp(14px, 2.2vw, 16px); line-height: 1.55; }

.oa-busca { position: relative; margin: clamp(22px, 4vw, 34px) auto 0; max-width: 640px; }
.oa-busca svg {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; pointer-events: none;
  fill: none; stroke: var(--o-muted); stroke-width: 2; stroke-linecap: round;
}
.oa-busca input {
  width: 100%; height: 56px; padding: 0 18px 0 50px; box-sizing: border-box;
  background: var(--o-surface-2); color: var(--o-text);
  border: 1px solid var(--o-accent); border-radius: var(--opt-r);
  font: inherit; font-size: 16px; outline: none;
  transition: box-shadow .15s;
}
.oa-busca input::placeholder { color: var(--o-muted); }
.oa-busca input:focus { box-shadow: 0 0 0 3px var(--o-line); }
.oa-busca input::-webkit-search-cancel-button { cursor: pointer; }

/* ── abas ── */
.oa-abas { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.oa-aba {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  background: var(--o-surface-2); color: var(--o-text);
  border: 1px solid var(--o-line); border-radius: 999px;
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.oa-aba svg { width: 17px; height: 17px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.oa-aba:hover { border-color: var(--o-accent); }
.oa-aba[aria-selected="true"] { background: var(--o-accent); color: var(--o-on-accent); border-color: var(--o-accent); }
.oa-aba:focus-visible, .oa-item summary:focus-visible { outline: 2px solid var(--o-accent); outline-offset: 2px; }

/* ── conteúdo ── */
.oa-corpo { margin-top: clamp(24px, 4vw, 36px); }
.oa-secao-titulo { margin: 0 0 14px; font-size: 19px; font-weight: 700; color: var(--o-title); }
.oa-contagem { margin: 0 0 14px; color: var(--o-muted); font-size: 14px; }
.oa-lista { display: flex; flex-direction: column; gap: 10px; }
.oa-item { background: var(--o-surface-2); border: 1px solid var(--o-line); border-radius: var(--opt-r-sm); }
.oa-item summary { display: flex; align-items: center; gap: 12px; padding: 15px 16px; font-size: 15.5px; line-height: 1.35; font-weight: 700; color: var(--o-title); cursor: pointer; list-style: none; }
.oa-item-tit { flex: 1; min-width: 0; }
.oa-item summary svg.oa-item-ic { width: 20px; height: 20px; color: var(--o-accent); stroke-linejoin: round; transform: none; }
.oa-item summary::-webkit-details-marker { display: none; }
.oa-item summary svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; transition: transform .15s; }
.oa-item[open] summary svg:last-child { transform: rotate(180deg); }
.oa-item-texto { padding: 0 16px 16px; color: var(--o-text); font-size: 15px; line-height: 1.65; white-space: pre-line; }
.oa-acao {
  display: inline-flex; align-items: center; min-height: 40px; margin: 0 16px 16px; padding: 0 14px;
  background: var(--o-accent); color: var(--o-on-accent); border-radius: 10px;
  font-size: 14px; font-weight: 700; text-decoration: none;
}
.oa-acao:hover { filter: brightness(1.08); }
.oa-origem { display: block; margin-bottom: 4px; color: var(--o-muted); font-size: 12px; font-weight: 600; }
.oa-item mark { background: var(--o-accent); color: var(--o-on-accent); border-radius: 3px; padding: 0 2px; }

.oa-vazio {
  padding: clamp(32px, 6vw, 54px) 20px; text-align: center;
  background: var(--o-surface-2); border: 1px dashed var(--o-line); border-radius: var(--opt-r);
}
.oa-vazio b { display: block; color: var(--o-title); font-size: 17px; }
.oa-vazio p { margin: 8px auto 0; max-width: 460px; color: var(--o-muted); font-size: 14.5px; line-height: 1.55; }

@media (max-width: 560px) {
  .oa-abas { display: grid; grid-template-columns: 1fr; }
  .oa-aba { justify-content: center; }
}
