/* ==========================================================
   SAF Brasil: Central de ajuda (/ajuda)
   Topo claro com a busca grande; cartões retos e brancos sobre o cinza da marca, sem sombra,
   com uma linha fina azul ao passar o mouse. Títulos na Saira itálica larga, texto em Inter.
   ========================================================== */

/* ---------- Topo ---------- */
.help-hero { background: #fff; padding: 8.2rem 0 3.6rem; border-bottom: 1px solid var(--saf-hairline-soft); }
.help-hero--compact { padding: 6.8rem 0 2rem; }
.help-hero--article { padding-bottom: 1.6rem; }
.help-eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--saf-ink); margin-bottom: 1rem; }
.help-eyebrow::before { content: ''; width: 22px; height: 3px; background: var(--saf-accent); }
.help-hero__title { font-family: var(--saf-display); font-weight: 800; font-style: italic; font-stretch: 108%; font-size: clamp(2.4rem, 5.4vw, 4.3rem); line-height: 1.04; letter-spacing: -.01em; margin: 0 0 1rem; color: var(--saf-ink); }
.help-hero__lead { font-size: 1.08rem; color: var(--saf-muted); line-height: 1.65; max-width: 600px; margin-bottom: 2rem; }

/* Atalhos do topo: telas que resolvem a dúvida mais comum sem ler um artigo */
.help-shortcuts { background: var(--saf-cloud); padding: 1.2rem 1.2rem .6rem; }
.help-shortcuts__title { margin: 0 0 .4rem; font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--saf-muted); }
.help-shortcuts a { display: flex; align-items: center; gap: .9rem; padding: .8rem 0; color: var(--saf-ink); text-decoration: none; }
.help-shortcuts a + a { border-top: 1px solid var(--saf-hairline-soft); }
.help-shortcuts a > .bi:first-child { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: #fff; font-size: 1rem; }
.help-shortcuts span { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.help-shortcuts strong { font-weight: 600; font-size: .95rem; }
.help-shortcuts small { color: var(--saf-muted); font-size: .82rem; }
.help-shortcuts a > .bi:last-child { color: var(--saf-stone); transition: transform .2s ease, color .2s ease; }
.help-shortcuts a:hover strong { text-decoration: underline; text-decoration-color: var(--saf-accent); text-decoration-thickness: 2px; text-underline-offset: .22em; }
.help-shortcuts a:hover > .bi:last-child { color: var(--saf-accent); transform: translateX(3px); }
.help-shortcuts a:hover > .bi:first-child { background: var(--saf-accent); color: #fff; }

/* ---------- Busca ---------- */
.help-search { position: relative; display: flex; align-items: center; gap: .4rem; background: var(--saf-cloud); border: 1px solid transparent; transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease; }
.help-search:focus-within { background: #fff; border-color: var(--saf-accent); box-shadow: 0 0 0 1px var(--saf-accent); }
.help-search__icon { position: absolute; left: 1.35rem; top: 50%; transform: translateY(-50%); font-size: 1.25rem; color: var(--saf-ink); pointer-events: none; }
.help-search__input { flex: 1; min-width: 0; height: 70px; border: 0; outline: 0; background: transparent; padding: 0 3.6rem 0 3.7rem; font-size: 1.15rem; color: var(--saf-ink); }
.help-search__input:focus-visible { outline: 0; }
.help-search__input::placeholder { color: var(--saf-stone); }
.help-search__input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.help-search__clear { position: absolute; right: .9rem; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--saf-muted); transition: background-color .15s, color .15s; }
.help-search__clear:hover { color: var(--saf-ink); background: var(--saf-hairline-soft); }
.help-search--compact { max-width: 460px; padding-right: 4px; }
.help-search--compact .help-search__input { height: 48px; font-size: .98rem; padding: 0 .6rem 0 2.8rem; }
.help-search--compact .help-search__icon { left: 1rem; font-size: 1rem; }
.help-search--compact .btn { --bs-btn-padding-y: .45rem; flex-shrink: 0; }

.help-hero__terms { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1.2rem; font-size: .88rem; color: var(--saf-muted); }
.help-hero__terms > span { margin-right: .2rem; }
.help-term { display: inline-flex; align-items: center; padding: .3rem .85rem; border-radius: var(--saf-pill); border: 1px solid var(--saf-hairline); background: #fff; color: var(--saf-ink); font-weight: 500; text-decoration: none; transition: border-color .15s, color .15s; }
.help-term:hover { border-color: var(--saf-accent); color: var(--saf-accent-deep); }

/* ---------- Seções ---------- */
.help-section { padding: 4.6rem 0; }
.help-section--soft { background: var(--saf-cloud); }
.help-section--article { padding-top: 2.4rem; }
/* Contato logo abaixo de outra seção cinza (assunto, artigo, resultado da busca) não repete o respiro */
.help-section--soft + .help-section--contact, .help-is-searching .help-section--contact { padding-top: 0; }
.help-section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 1.5rem; margin-bottom: 1.8rem; }
.help-section__meta { margin: 0; color: var(--saf-muted); font-size: .92rem; }
.help-h2 { font-family: var(--saf-display); font-weight: 800; font-style: italic; font-stretch: 108%; font-size: clamp(1.45rem, 2.6vw, 2rem); line-height: 1.04; letter-spacing: -.01em; margin: 0; color: var(--saf-ink); }

.help-icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; font-size: 1.2rem; background: var(--saf-ink); color: var(--saf-accent-light); }
.help-icon--lg { width: 64px; height: 64px; font-size: 1.6rem; }

/* ---------- Cartões de assunto e de relacionados ---------- */
.help-card { display: flex; flex-direction: column; height: 100%; padding: 1.6rem 1.5rem 1.4rem; background: #fff; color: var(--saf-ink); text-decoration: none; transition: box-shadow .2s ease; }
.help-card:hover, .help-card:focus-visible { box-shadow: inset 0 0 0 1px var(--saf-accent); color: var(--saf-ink); }
.help-card .help-icon { margin-bottom: 1.25rem; }
.help-card__title { font-size: 1.08rem; font-weight: 600; line-height: 1.3; margin: 0 0 .45rem; }
.help-card__text { color: var(--saf-muted); font-size: .92rem; line-height: 1.55; margin: 0 0 1.25rem; }
.help-card__meta { margin-top: auto; display: inline-flex; align-items: center; gap: .45rem; font-size: .86rem; font-weight: 600; }
.help-card__meta i { color: var(--saf-accent); transition: transform .2s ease; }
.help-card:hover .help-card__meta i { transform: translateX(3px); }
.help-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.help-card__body .help-card__title, .help-card__body .help-card__text { display: block; }
.help-card--small { padding: 1.3rem 1.3rem 1.2rem; }
.help-card--small .help-card__title { font-size: 1rem; }

/* ---------- Linhas de artigo (busca e assunto) ---------- */
.help-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.help-row { display: flex; align-items: center; gap: 1.2rem; padding: 1.2rem 1.4rem; background: #fff; color: var(--saf-ink); text-decoration: none; transition: box-shadow .2s ease; }
.help-row:hover, .help-row:focus-visible { box-shadow: inset 0 0 0 1px var(--saf-accent); color: var(--saf-ink); }
.help-row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.help-row__cat { display: inline-flex; align-items: center; gap: .4rem; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--saf-muted); }
.help-row__title { font-size: 1.04rem; font-weight: 600; line-height: 1.35; }
.help-row__summary { color: var(--saf-muted); font-size: .92rem; line-height: 1.5; }
.help-row__go { flex-shrink: 0; font-size: 1.1rem; color: var(--saf-accent); transition: transform .2s ease; }
.help-row:hover .help-row__go { transform: translateX(3px); }

.help-empty { background: #fff; text-align: center; padding: 3rem 1.5rem; }
.help-empty__icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1rem; background: var(--saf-cloud); font-size: 1.5rem; }
.help-empty__title { font-size: 1.2rem; font-weight: 600; margin-bottom: .5rem; overflow-wrap: anywhere; }
.help-empty p { color: var(--saf-muted); max-width: 540px; margin: 0 auto 1.4rem; }

/* ---------- Mais procurados ---------- */
.help-popular { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; }
.help-popular li { border-top: 1px solid var(--saf-hairline-soft); }
.help-popular li:nth-last-child(-n+2) { border-bottom: 1px solid var(--saf-hairline-soft); }
.help-popular a { display: flex; align-items: center; gap: 1.1rem; padding: 1.2rem .2rem; color: var(--saf-ink); text-decoration: none; }
.help-popular__num { flex-shrink: 0; width: 2.3rem; font-family: var(--saf-display); font-weight: 800; font-style: italic; font-stretch: 108%; font-size: 1.35rem; line-height: 1; color: var(--saf-accent); }
.help-popular__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.help-popular__body strong { font-weight: 600; line-height: 1.35; }
.help-popular__body small { color: var(--saf-muted); font-size: .84rem; }
.help-popular a > .bi { color: var(--saf-stone); transition: transform .2s ease, color .2s ease; }
.help-popular a:hover strong { text-decoration: underline; text-decoration-color: var(--saf-accent); text-decoration-thickness: 2px; text-underline-offset: .22em; }
.help-popular a:hover > .bi { color: var(--saf-accent); transform: translateX(3px); }

/* ---------- Fale com a equipe ---------- */
.help-contact { display: flex; align-items: center; gap: 1.4rem 2rem; padding: 2.2rem 2.4rem; background: #fff; border-left: 3px solid var(--saf-accent); }
.help-contact__icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--saf-accent); color: #fff; font-size: 1.4rem; }
.help-contact__text { flex: 1; min-width: 0; }
.help-contact__text p { color: var(--saf-muted); margin: .55rem 0 0; max-width: 640px; }
.help-contact .btn { flex-shrink: 0; }

/* ---------- Trilha e cabeçalho do assunto ---------- */
.help-crumbs { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .4rem; font-size: .88rem; color: var(--saf-muted); }
.help-crumbs li { display: inline-flex; align-items: center; gap: .4rem; min-width: 0; }
.help-crumbs li + li::before { content: '\f285'; font-family: bootstrap-icons; font-size: .68rem; color: var(--saf-stone); }
.help-crumbs a { color: var(--saf-ink); font-weight: 500; text-decoration: none; }
.help-crumbs a:hover { text-decoration: underline; text-decoration-color: var(--saf-accent); text-underline-offset: .2em; }
.help-crumbs [aria-current] { display: block; max-width: 48ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.help-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.help-bar .help-crumbs { margin: 0; flex: 1 1 auto; min-width: 0; }
.help-bar .help-search--compact { flex: 0 1 400px; }

.help-cathead { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 1.8rem; }
.help-cathead__title { font-family: var(--saf-display); font-weight: 800; font-style: italic; font-stretch: 108%; font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.04; letter-spacing: -.01em; margin: 0 0 .4rem; }
.help-cathead__lead { margin: 0; color: var(--saf-muted); font-size: 1.02rem; line-height: 1.55; }

/* ---------- Menu lateral ---------- */
.help-nav { background: #fff; padding: 1.3rem 1.1rem 1.2rem; }
.help-nav--sticky { position: sticky; top: 96px; }
.help-nav__title { margin: 0 0 .7rem; padding: 0 .55rem; font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--saf-muted); }
.help-nav__title a { display: inline-flex; align-items: center; gap: .5rem; color: var(--saf-ink); text-decoration: none; }
.help-nav__title a:hover { color: var(--saf-accent-deep); }
.help-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.help-nav ul a { display: flex; align-items: center; gap: .65rem; padding: .55rem .55rem .55rem .7rem; border-left: 2px solid transparent; color: var(--saf-ink); font-size: .92rem; line-height: 1.35; text-decoration: none; transition: background-color .15s, border-color .15s; }
.help-nav ul a:hover { background: var(--saf-cloud); }
.help-nav ul a.is-active { background: var(--saf-cloud); border-left-color: var(--saf-accent); font-weight: 600; }
.help-nav ul a i { color: var(--saf-muted); }
.help-nav ul a.is-active i { color: var(--saf-ink); }
.help-nav ul a span { flex: 1; min-width: 0; }
.help-nav ul a small { color: var(--saf-muted); font-size: .8rem; }
.help-nav__back { display: inline-flex; align-items: center; gap: .45rem; margin: 1rem 0 0 .55rem; font-size: .88rem; font-weight: 500; color: var(--saf-ink); text-decoration: none; }
.help-nav__back:hover { text-decoration: underline; text-decoration-color: var(--saf-accent); text-underline-offset: .2em; }

/* ---------- Artigo ---------- */
.help-article { background: #fff; padding: 2.6rem 2.8rem 2.2rem; }
.help-article__cat { display: inline-flex; align-items: center; gap: .45rem; margin-bottom: 1rem; font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--saf-muted); text-decoration: none; }
.help-article__cat:hover { color: var(--saf-ink); }
.help-article__title { font-family: var(--saf-display); font-weight: 800; font-style: italic; font-stretch: 108%; font-size: clamp(1.8rem, 3.6vw, 2.7rem); line-height: 1.06; letter-spacing: -.01em; margin: 0 0 1rem; }
.help-article__lead { font-size: 1.12rem; line-height: 1.6; color: var(--saf-charcoal); margin: 0 0 1.8rem; padding-bottom: 1.6rem; border-bottom: 1px solid var(--saf-hairline-soft); }

.help-prose { max-width: 720px; font-size: 1.02rem; line-height: 1.75; color: var(--saf-ink); }
.help-prose > :last-child { margin-bottom: 0; }
.help-prose p { margin: 0 0 1.1rem; }
.help-prose strong { font-weight: 600; }
.help-prose a { color: var(--saf-ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--saf-accent); text-decoration-thickness: 2px; text-underline-offset: .22em; }
.help-prose a:hover { color: var(--saf-accent-deep); }
.help-prose ul { margin: 0 0 1.2rem; padding-left: 1.2rem; }
.help-prose ul li { margin-bottom: .5rem; padding-left: .2rem; }
.help-prose ul li::marker { color: var(--saf-accent); }
/* Passos numerados: número na Saira dentro do círculo preto */
.help-prose ol { list-style: none; counter-reset: passo; margin: 0 0 1.4rem; padding: 0; display: grid; gap: .85rem; }
.help-prose ol li { counter-increment: passo; position: relative; min-height: 1.95rem; padding-left: 2.9rem; }
.help-prose ol li::before { content: counter(passo); position: absolute; left: 0; top: .05rem; width: 1.95rem; height: 1.95rem; border-radius: 50%; display: grid; place-items: center; background: var(--saf-ink); color: var(--saf-accent-light); font-family: var(--saf-display); font-weight: 800; font-style: italic; font-size: .86rem; line-height: 1; }
.help-prose code { font-size: .88em; overflow-wrap: anywhere; }

/* Planos dentro do artigo ({{planos}}) */
.help-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; margin: 1.6rem 0 1.8rem; background: var(--saf-hairline-soft); border: 1px solid var(--saf-hairline-soft); }
.help-plan { background: #fff; padding: 1.3rem 1.25rem 1.35rem; }
.help-plan.is-featured { box-shadow: inset 0 3px 0 var(--saf-accent); }
.help-plan__name { display: block; margin-bottom: .55rem; font-family: var(--saf-display); font-weight: 800; font-style: italic; font-stretch: 108%; font-size: 1.15rem; line-height: 1.04; }
.help-plan__price { margin-bottom: 1rem; line-height: 1.2; }
.help-plan__value { font-family: var(--saf-display); font-weight: 800; font-style: italic; font-stretch: 108%; font-size: 1.6rem; }
.help-plan__cycle { margin-left: .2rem; color: var(--saf-muted); font-weight: 500; }
.help-plan__price small { display: block; margin-top: .35rem; color: var(--saf-muted); font-size: .82rem; }
.help-prose .help-plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-size: .9rem; line-height: 1.4; }
.help-prose .help-plan ul li { display: flex; gap: .55rem; margin: 0; padding: 0; }

/* Este artigo ajudou? (só na tela: nada é gravado) */
.help-feedback { margin-top: 2.2rem; padding-top: 1.6rem; border-top: 1px solid var(--saf-hairline-soft); }
.help-feedback__ask { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.help-feedback__ask span { margin-right: .4rem; font-weight: 600; }
.help-feedback__answer { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: 0; }
.help-feedback__answer p { margin: 0; }
.help-feedback__answer i { margin-right: .45rem; color: var(--saf-accent); }

.help-related { margin-top: 2.6rem; }
.help-related .help-h2 { margin-bottom: 1.2rem; font-size: 1.45rem; }

/* ---------- Telas menores ---------- */
@media (max-width: 991.98px) {
    .help-nav--sticky { position: static; }
    .help-bar .help-search--compact { flex-basis: 100%; max-width: none; }
    /* Buscando no celular, os resultados sobem para logo abaixo da caixa de busca */
    .help-is-searching .help-shortcuts { display: none; }
}
@media (max-width: 767.98px) {
    .help-hero { padding: 6.6rem 0 2.6rem; }
    .help-hero--compact { padding: 5.9rem 0 1.6rem; }
    .help-hero__lead { font-size: 1rem; margin-bottom: 1.5rem; }
    .help-search__input { height: 58px; font-size: 1.02rem; padding: 0 3rem 0 3.1rem; }
    .help-search__icon { left: 1.05rem; font-size: 1.1rem; }
    .help-search--compact .help-search__input { height: 46px; padding-left: 2.7rem; }
    .help-section { padding: 3.2rem 0; }
    .help-section--article { padding-top: 1.2rem; }
    .help-popular { grid-template-columns: 1fr; }
    .help-popular li:nth-last-child(2) { border-bottom: 0; }
    .help-row { gap: .9rem; padding: 1.05rem 1.1rem; }
    /* Assuntos em linha no celular: ícone à esquerda, nome e quantidade; a descrição fica para telas maiores */
    .help-card--topic { flex-direction: row; align-items: center; gap: 1rem; padding: 1rem 1.1rem; }
    .help-card--topic .help-icon { width: 42px; height: 42px; margin: 0; font-size: 1.05rem; }
    .help-card--topic .help-card__title { margin-bottom: .1rem; }
    .help-card--topic .help-card__text { display: none; }
    .help-cathead { align-items: flex-start; gap: 1rem; }
    .help-icon--lg { width: 52px; height: 52px; font-size: 1.3rem; }
    .help-crumbs [aria-current] { max-width: 100%; white-space: normal; }
    .help-article { padding: 1.7rem 1.25rem 1.5rem; }
    .help-article__lead { font-size: 1.04rem; margin-bottom: 1.4rem; padding-bottom: 1.3rem; }
    .help-prose { font-size: 1rem; }
    .help-contact { flex-direction: column; align-items: flex-start; padding: 1.8rem 1.4rem; }
    .help-contact .btn { width: 100%; }
}

/* Prints do sistema nos artigos (config/ajuda_prints.php) */
.help-shots { display: grid; gap: 1.6rem; margin: 1.8rem 0 .5rem; }
.help-shot { margin: 0; }
.help-shot__frame { display: block; background: #fff; box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .35), inset 0 0 0 1px var(--saf-hairline-soft); overflow: hidden; transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s; }
.help-shot__frame:hover { transform: translateY(-3px); box-shadow: 0 26px 50px -24px rgba(0, 0, 0, .4), inset 0 0 0 1px var(--saf-accent); }
.help-shot__bar { display: flex; gap: 5px; padding: .5rem .7rem; background: #f3f3f3; border-bottom: 1px solid var(--saf-hairline-soft); }
.help-shot__bar span { width: 8px; height: 8px; border-radius: 50%; background: #d4d4d6; }
.help-shot img { display: block; width: 100%; height: auto; }
.help-shot figcaption { display: flex; align-items: flex-start; gap: .45rem; margin-top: .65rem; font-size: .85rem; color: var(--saf-muted); }
.help-shot figcaption i { color: var(--saf-accent); margin-top: .1rem; }
