/* Central de ajuda: coleções, lista de artigos e corpo dos tutoriais (conteúdo vindo do Intercom). */

/* ---------- Início e coleções ---------- */
.help-hero .lede { max-width: 48ch; }
.help-hero-sm { text-align: left; padding-block: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 3vw, 2rem); }
.help-hero-sm .lede { margin-inline: 0; }
.help-hero-sm .blog-search { margin-inline: 0; }
.help-hero-sm h1 { font-size: var(--step-2); }
.help-sub { font-size: var(--step-1); margin: 2.25rem 0 1rem; }
.help-count { margin-bottom: 1.25rem; color: var(--muted); }
.help-count a { color: var(--blue-bright); }

.help-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.help-card {
  --lit: 0;
  display: grid; align-content: start; gap: .55rem; padding: 1.5rem 1.4rem 1.3rem; border-radius: var(--radius); text-decoration: none; color: inherit;
  background: linear-gradient(155deg, rgb(255 255 255 / calc(.07 + var(--lit) * .06)), rgb(255 255 255 / calc(.025 + var(--lit) * .03)));
  border: 1px solid rgb(255 255 255 / calc(.12 + var(--lit) * .2));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / calc(.12 + var(--lit) * .12)), 0 18px 40px -26px rgb(0 20 80 / calc(.5 + var(--lit) * .4)), 0 0 calc(var(--lit) * 30px) -12px rgb(91 148 255 / calc(var(--lit) * .55));
  transition: --lit 1s cubic-bezier(.5, 0, .35, 1);
}
.help-card:hover, .help-card:focus-visible { --lit: 1; transition-duration: .6s; }
.help-card .ico { display: grid; place-items: center; width: 3.1rem; height: 3.1rem; border-radius: 14px; color: var(--blue-bright); background: rgb(0 95 250 / .18); border: 1px solid rgb(91 148 255 / .3); }
.help-card h2, .help-card h3 { font-size: var(--step-1); line-height: 1.25; color: #fff; margin-top: .35rem; }
.help-card p { color: var(--muted); font-size: var(--step--1); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.help-card .n { margin-top: .3rem; font-size: .8rem; font-weight: 600; color: var(--blue-bright); }
.help-grid-sub .help-card { padding: 1.1rem 1.2rem; }
.help-grid-sub .help-card .ico { width: 2.5rem; height: 2.5rem; border-radius: 12px; }
.help-grid-sub .help-card .ico svg { width: 22px; height: 22px; }

.help-articles { list-style: none; margin: 0; padding: .5rem; border-radius: var(--radius); }
.help-articles li + li { border-top: 1px solid rgb(255 255 255 / .08); }
.help-articles a { display: grid; gap: .2rem .75rem; padding: 1rem 1.1rem; border-radius: 12px; text-decoration: none; color: #fff; transition: background-color .35s var(--ease); }
.help-articles a:hover, .help-articles a:focus-visible { background: rgb(0 95 250 / .16); }
.help-articles .t { font-weight: 500; }
.help-articles .in { font-size: .78rem; color: var(--blue-bright); }
.help-articles .d { color: var(--muted); font-size: var(--step--1); line-height: 1.5; }

.help-support { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; margin-top: clamp(2.5rem, 6vw, 4rem); padding: clamp(1.25rem, 3vw, 2rem); border-radius: 20px; }
.help-support h2 { font-size: var(--step-1); }
.help-support p { margin: .4rem 0 0; color: var(--muted); }

/* ---------- Artigo ---------- */
.help-art .art-head h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.7rem); }
.help-lede { margin-top: .9rem; font-size: var(--step-1); color: #c6d3ea; max-width: 52ch; line-height: 1.5; }
.help-art .art-side .help-search { margin: 0 0 1.25rem; width: 100%; }
.help-sibs ol { max-height: 22rem; overflow: auto; }
.help-sibs a.active { color: #fff; background: rgb(0 95 250 / .25); }

.help-pager { display: grid; gap: 1rem; margin-top: 3rem; }
@media (min-width: 40rem) { .help-pager { grid-template-columns: 1fr 1fr; } .help-pager .next { grid-column: 2; text-align: right; } }
.help-pager a { display: grid; gap: .25rem; padding: 1rem 1.2rem; border-radius: 14px; color: #fff; text-decoration: none; line-height: 1.4; }
.help-pager small { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--blue-bright); }
.help-pager a:hover { border-color: rgb(140 180 255 / .6); }

/* Conteúdo importado (classes do Intercom) */
.help-body { max-width: 46rem; }
.help-body .intercom-interblocks-paragraph { margin: 0; }
.help-body .intercom-interblocks-paragraph p { margin: 0; }
.help-body .intercom-interblocks-subheading h2, .help-body .intercom-interblocks-heading h1 { font-size: var(--step-2); margin-top: 2.5rem; }
.help-body .intercom-interblocks-subheading h3 { font-size: var(--step-1); margin-top: 1.75rem; }
.help-body .intercom-interblocks-horizontal-rule hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.help-body .intercom-interblocks-unordered-nested-list ul, .help-body .intercom-interblocks-ordered-nested-list ol { margin: .5rem 0; }
.help-body li > .intercom-interblocks-paragraph + .intercom-interblocks-paragraph { margin-top: .5rem; }
.help-body .intercom-interblocks-image, .help-body .intercom-container, .help-body .intercom-lightbox { margin: 1.5rem 0; }
.help-body .intercom-interblocks-image a { display: block; }
.help-body img { display: block; max-width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.help-body .intercom-interblocks-align-center { text-align: center; }
.help-body .intercom-interblocks-align-center img { margin-inline: auto; }
.help-body .intercom-interblocks-code-block pre, .help-body pre { overflow: auto; padding: 1rem 1.2rem; border-radius: 12px; background: rgb(0 0 0 / .4); border: 1px solid var(--line); font-size: .9rem; line-height: 1.6; }
.help-body code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; background: rgb(255 255 255 / .08); padding: .1em .35em; border-radius: 6px; }
.help-body pre code { background: none; padding: 0; }
.help-body .intercom-interblocks-table-container, .help-body .intercom-interblocks-table { overflow-x: auto; }
.help-body table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.help-body th, .help-body td { padding: .6rem .8rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.help-body th { background: rgb(255 255 255 / .06); color: #fff; }
.help-body iframe, .help-body video { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 12px; }
.help-body .intercom-interblocks-video, .help-body .intercom-interblocks-embed { margin: 1.5rem 0; }

/* Destaques (callouts) */
/* caixas de vidro, as mesmas da home (.glass em style.css): aqui só o espaçamento */
.help-body .intercom-interblocks-callout { margin: 1.6rem 0; padding: 1.15rem 1.35rem; border-radius: var(--radius, 16px); }
.help-body .intercom-interblocks-callout > * + * { margin-top: .6rem; }
.help-body .intercom-interblocks-callout ol, .help-body .intercom-interblocks-callout ul { margin: 0; }

/* Botões do Intercom viram botões do tema */
.help-body .intercom-interblocks-button a { display: inline-block; padding: .65rem 1.3rem; border-radius: 999px; background: var(--yellow); color: #1a1200; font-weight: 600; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  .help-card, .help-articles a { transition: none; }
}

.help-card { min-width: 0; }
.help-card h2, .help-card h3, .help-articles .t { overflow-wrap: break-word; hyphens: manual; }

/* ---------- Links do texto: sublinhado fino e discreto, sem cortar no meio ---------- */
.help-body a:not(.btn) {
  color: var(--blue-bright); overflow-wrap: break-word; box-decoration-break: clone; -webkit-box-decoration-break: clone;
  text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: rgb(91 148 255 / .4);
  transition: color .3s var(--ease), text-decoration-color .3s var(--ease);
}
.help-body a:not(.btn):hover, .help-body a:not(.btn):focus-visible { color: #fff; text-decoration-color: var(--blue-bright); }
.help-body hr, .help-body .intercom-interblocks-horizontal-rule hr { border: 0; border-top: 1px solid rgb(255 255 255 / .12); margin: 1.6rem 0; }
.help-body .intercom-interblocks-callout hr { margin: 1rem 0; }

/* ---------- Tópicos em Roboto e títulos que "acendem" ---------- */
.help-body h2, .help-body h3, .help-body h4, .help-body .intercom-interblocks-subheading,
.help-art .art-toc a, .help-art .art-toc h2 { font-family: "Roboto", system-ui, "Segoe UI", sans-serif; }
.help-body h2, .help-body h3, .help-body h4 {
  --lit: 0; position: relative; font-weight: 600; letter-spacing: -.005em; line-height: 1.25;
  color: rgb(255 255 255 / calc(.66 + var(--lit) * .34));
  text-shadow: 0 0 calc(var(--lit) * 22px) rgb(91 148 255 / calc(var(--lit) * .55));
  transition: --lit 1.1s cubic-bezier(.5, 0, .35, 1);
}
.help-body h2 { font-weight: 700; padding-left: 1rem; }
.help-body h3 { padding-left: .85rem; }
.help-body h2::before, .help-body h3::before {
  content: ""; position: absolute; left: 0; top: .12em; bottom: .12em; width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, var(--blue-bright), var(--yellow));
  opacity: calc(.18 + var(--lit) * .82); transform: scaleY(calc(.45 + var(--lit) * .55)); transform-origin: 50% 0;
}
.help-body h2.is-lit, .help-body h3.is-lit, .help-body h2:target, .help-body h3:target, .help-body h2:hover, .help-body h3:hover { --lit: 1; transition-duration: .6s; }
/* título que também é link: herda o brilho do título e perde o azul/sublinhado grosso */
.help-body h2 a:not(.btn), .help-body h3 a:not(.btn), .help-body h4 a:not(.btn) { color: inherit; text-decoration: none; }
.help-body h2 a:not(.btn):hover, .help-body h3 a:not(.btn):hover { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; text-decoration-color: rgb(91 148 255 / .6); }
.help-body h2 b, .help-body h2 strong, .help-body h3 b, .help-body h3 strong { font-weight: inherit; color: inherit; }
@media (prefers-reduced-motion: reduce) { .help-body h2, .help-body h3, .help-body h4 { transition: none; } }

/* Caixas de destaque: vidro da home com uma leve tinta e uma borda lateral fina por tipo (aviso, perigo, dica, informação) */
.help-body .intercom-interblocks-callout {
  --tint: 255 255 255; --tint-a: 0;
  background:
    linear-gradient(rgb(var(--tint) / calc(var(--tint-a) + var(--lit) * .04)), rgb(var(--tint) / calc(var(--tint-a) * .4))),
    linear-gradient(150deg, rgb(255 255 255 / calc(.11 + var(--lit) * .09)), rgb(255 255 255 / calc(.04 + var(--lit) * .04)) 65%);
  border-left: 3px solid rgb(var(--tint) / .75);
}
.help-body .ib-warn   { --tint: 254 180 22;  --tint-a: .13; }
.help-body .ib-danger { --tint: 255 107 111; --tint-a: .13; }
.help-body .ib-tip    { --tint: 46 229 157;  --tint-a: .11; }
.help-body .ib-info   { --tint: 91 148 255;  --tint-a: .14; }
.help-body .ib-note   { --tint: 160 178 208; --tint-a: .06; }

/* Artigos relacionados (fim do artigo): lista simples de links */
.help-body .help-related { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / .12); }
.help-body .help-related-title { font-family: "Roboto", system-ui, sans-serif; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: #9fb4d8; margin-bottom: .75rem; }
.help-body .help-related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.help-body .help-related li { margin: 0; }
.help-body .help-related a { display: block; padding: .5rem .75rem; border-radius: 10px; text-decoration: none; color: #d3deef; transition: background-color .35s var(--ease), color .35s var(--ease); }
.help-body .help-related a:hover, .help-body .help-related a:focus-visible { background: rgb(0 95 250 / .18); color: #fff; }
