/* all4sales · ajuda · estilo do site. Tokens vêm de tokens.css (.a4s). */
.a4s, .a4s *, .a4s *::before, .a4s *::after { box-sizing: border-box; }
.a4s { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: var(--fs-body); line-height: 1.55; -webkit-font-smoothing: antialiased; }
.a4s h1, .a4s h2, .a4s h3, .a4s h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.a4s h1 { font-size: clamp(1.75rem, 3vw, 2.375rem); }
.a4s h2 { font-size: 1.375rem; }
.a4s h3 { font-size: 1.0625rem; font-weight: 600; }
.a4s p { margin: 0; }
.a4s a { color: var(--ink); text-decoration: none; }
.a4s ul, .a4s ol { margin: 0; padding: 0; }
.a4s img, .a4s svg { max-width: 100%; display: block; }
.a4s button { font: inherit; color: inherit; cursor: pointer; }
.a4s :focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; border-radius: 4px; }
.a4s .muted { color: var(--slate); }
.a4s .cap { font-size: var(--fs-cap); letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.a4s .num { font-variant-numeric: tabular-nums; }
.a4s .lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--slate); max-width: 62ch; }
.a4s .row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.a4s .sec-head { margin-bottom: 18px; display: grid; gap: 4px; }
.pular { position: absolute; left: -999px; top: 8px; background: var(--lime); padding: 8px 12px; border-radius: var(--r-ctl); z-index: 99; }
.pular:focus { left: 8px; }

/* topo */
.topo { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 20px; height: 60px; padding: 0 20px; background: var(--ink); color: var(--white); }
.menu-btn { display: none; width: 36px; height: 36px; border: 0; background: transparent; padding: 8px; flex-direction: column; justify-content: space-between; }
.menu-btn span { display: block; height: 2px; background: var(--white); border-radius: 2px; }
.marca { display: inline-flex; align-items: center; gap: 10px; }
.marca img { height: 26px; width: auto; }
.marca-sufixo { font-family: var(--f-display); font-weight: 600; font-size: .9375rem; color: var(--lime); padding-left: 10px; border-left: 1px solid rgba(255,255,255,.22); line-height: 1; }
.busca { position: relative; max-width: 520px; width: 100%; flex: 1; margin-right: auto; }
.busca input { width: 100%; height: 38px; padding: 0 14px 0 38px; border-radius: var(--r-ctl); border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.1); color: var(--white); font-size: var(--fs-ui); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 12px center; }
.busca input::placeholder { color: rgba(255,255,255,.6); }
.busca input:focus { background-color: rgba(255,255,255,.16); border-color: var(--lime); outline: none; }
.busca-resultados { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--white); color: var(--ink); border-radius: 12px; box-shadow: var(--shadow-float); padding: 6px; max-height: 60vh; overflow: auto; z-index: 30; }
.busca-resultados a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 8px; }
.busca-resultados a:hover, .busca-resultados a.ativo { background: var(--paper); }
.busca-resultados strong { font-weight: 600; }
.busca-resultados .resumo, .busca-resultados .cap { font-size: var(--fs-ui); color: var(--slate); }
.busca-resultados .cap { font-size: var(--fs-cap); }
.busca-resultados .vazio { padding: 12px; color: var(--slate); font-size: var(--fs-ui); }
.busca-resultados mark { background: var(--lime-soft); color: inherit; border-radius: 2px; }
.btn-app { height: 36px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: var(--r-ctl); background: var(--lime); color: var(--ink); font-weight: 600; font-size: var(--fs-ui); white-space: nowrap; }
.btn-app:hover { background: var(--lime-2); }

/* corpo */
.corpo { display: grid; grid-template-columns: 272px minmax(0, 1fr); min-height: calc(100vh - 60px); }
.lateral { position: sticky; top: 60px; align-self: start; height: calc(100vh - 60px); overflow: auto; padding: 20px 14px 32px; border-right: 1px solid var(--mist); background: var(--white); font-size: var(--fs-ui); }
.nav-secao summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 7px 10px; border-radius: 8px; font-weight: 600; cursor: pointer; }
.nav-secao summary::-webkit-details-marker { display: none; }
.nav-secao summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid var(--slate); border-bottom: 1.5px solid var(--slate); transform: rotate(-45deg); transition: transform var(--t-fast); margin-right: 4px; }
.nav-secao[open] summary::after { transform: rotate(45deg); }
.nav-secao summary a { flex: 1; }
.nav-secao summary:hover { background: var(--paper); }
.nav-secao ul { padding: 2px 0 8px; }
.nav-secao li a { display: block; padding: 6px 10px 6px 22px; border-radius: 8px; color: var(--slate); position: relative; }
.nav-secao li a:hover { color: var(--ink); background: var(--paper); }
.nav-secao li a[aria-current="page"] { color: var(--ink); font-weight: 600; background: var(--lime-soft); }
.nav-secao li a[aria-current="page"]::before { content: ""; position: absolute; left: 10px; top: 50%; width: 4px; height: 14px; margin-top: -7px; border-radius: 2px; background: var(--lime); }
.nav-secao li a.em-breve { color: var(--slate-2); }
.nav-secao li a.em-breve::after { content: "em breve"; font-size: 10px; margin-left: 6px; color: var(--slate-2); }
.nav-paginas { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--mist); }
.nav-paginas a { display: block; padding: 7px 10px; border-radius: 8px; font-weight: 600; }
.nav-paginas a:hover { background: var(--paper); }
.nav-paginas a[aria-current="page"] { background: var(--lime-soft); }
.principal { padding: 28px clamp(20px, 4vw, 56px) 64px; max-width: 1040px; width: 100%; }
.trilha { font-size: var(--fs-ui); color: var(--slate); margin-bottom: 22px; display: flex; flex-wrap: wrap; gap: 6px; }
.trilha a:hover { text-decoration: underline; }

/* artigo */
.artigo-cabeca { display: grid; gap: 10px; margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px solid var(--mist); }
.artigo-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: var(--fs-ui); }
.plano { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: var(--r-pill); font-size: var(--fs-cap); font-weight: 600; letter-spacing: .02em; background: var(--lime-soft); color: var(--ink); }
.plano-full { background: var(--ink); color: var(--white); }
.plano-start { background: var(--mist); }
.artigo-grade { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 40px; align-items: start; }
.artigo.pagina .artigo-grade { grid-template-columns: 1fr; }
.artigo-corpo { max-width: 70ch; font-size: 1.0625rem; }
.artigo-corpo > * + * { margin-top: 1em; }
.artigo-corpo h2 { margin-top: 2.2em; padding-top: .2em; }
.artigo-corpo h3 { margin-top: 1.6em; }
.artigo-corpo h2 + *, .artigo-corpo h3 + * { margin-top: .6em; }
.artigo-corpo ul { padding-left: 1.25em; list-style: disc; }
.artigo-corpo ul li + li, .artigo-corpo ol li + li { margin-top: .4em; }
.artigo-corpo ol { list-style: none; counter-reset: passo; }
.artigo-corpo ol > li { position: relative; padding-left: 40px; counter-increment: passo; }
.artigo-corpo ol > li::before { content: counter(passo); position: absolute; left: 0; top: .1em; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--lime); font-family: var(--f-display); font-weight: 700; font-size: .8125rem; display: grid; place-items: center; }
.artigo-corpo ol > li + li { margin-top: .9em; }
.artigo-corpo ol ul { margin-top: .4em; }
.artigo-corpo a { color: var(--info); text-decoration: underline; text-decoration-color: rgba(23,92,211,.35); text-underline-offset: 2px; }
.artigo-corpo a:hover { text-decoration-color: currentColor; }
.artigo-corpo strong { font-weight: 600; }
.artigo-corpo .link-breve { border-bottom: 1px dotted var(--slate-2); cursor: help; }
.artigo-corpo kbd, .artigo-corpo code { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; font-size: .875em; }
.artigo-corpo :not(pre) > code { background: var(--mist); padding: 1px 6px; border-radius: 5px; }
.artigo-corpo kbd { background: var(--white); border: 1px solid var(--mist); border-bottom-width: 2px; padding: 1px 6px; border-radius: 5px; }
.artigo-corpo hr { border: 0; border-top: 1px solid var(--mist); margin: 2em 0; }
.aviso { padding: 14px 16px 14px 18px; border-radius: 12px; background: var(--white); border: 1px solid var(--mist); border-left: 4px solid var(--slate); font-size: 1rem; }
.aviso > * + * { margin-top: .5em; }
.aviso.atencao { border-left-color: var(--warn); background: #FFF8EE; }
.aviso.dica { border-left-color: var(--lime); background: var(--lime-soft); }
.aviso.plano { border-left-color: var(--ink); }
.aviso strong:first-child { font-weight: 600; }
.code { position: relative; }
.code pre { margin: 0; background: var(--ink); color: #E8EEF2; border-radius: 12px; padding: 16px 18px; overflow: auto; font-size: .875rem; line-height: 1.6; }
.code pre code { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; font-size: inherit; }
.code .copiar { position: absolute; top: 8px; right: 8px; height: 28px; padding: 0 10px; border: 0; border-radius: 6px; background: rgba(255,255,255,.12); color: var(--white); font-size: var(--fs-cap); font-weight: 600; opacity: 0; transition: opacity var(--t-fast); }
.code:hover .copiar, .code .copiar:focus-visible, .code .copiar.feito { opacity: 1; }
.code .copiar.feito { background: var(--lime); color: var(--ink); }
.print { margin: 1.4em 0; }
.print img { border-radius: 12px; border: 1px solid var(--mist); box-shadow: var(--shadow-card); }
.print figcaption { font-size: var(--fs-ui); color: var(--slate); margin-top: 8px; }
.print-vazio { aspect-ratio: 16 / 9; border-radius: 12px; border: 1.5px dashed var(--slate-2); background: repeating-linear-gradient(-45deg, transparent 0 12px, rgba(20,45,64,.03) 12px 24px); display: grid; place-items: center; color: var(--slate); font-size: var(--fs-ui); font-weight: 600; }
.tabela { overflow: auto; border: 1px solid var(--mist); border-radius: 12px; background: var(--white); }
.tabela table { width: 100%; border-collapse: collapse; font-size: var(--fs-ui); }
.tabela th, .tabela td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--mist); vertical-align: top; }
.tabela th { font-weight: 600; background: var(--paper); font-size: var(--fs-cap); letter-spacing: .04em; text-transform: uppercase; color: var(--slate); }
.tabela tr:last-child td { border-bottom: 0; }
.nesta-pagina { position: sticky; top: 84px; font-size: var(--fs-ui); border-left: 1px solid var(--mist); padding-left: 16px; }
.nesta-pagina .cap { color: var(--slate); margin-bottom: 8px; }
.nesta-pagina li + li { margin-top: 6px; }
.nesta-pagina a { color: var(--slate); }
.nesta-pagina a:hover { color: var(--ink); }
.artigo-pe { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--mist); display: grid; gap: 22px; }
.util { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: var(--fs-ui); }
.util p { font-weight: 600; margin-right: 4px; }
.btn-ghost { height: 32px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: var(--r-ctl); border: 1px solid var(--mist); background: var(--white); font-weight: 600; font-size: var(--fs-ui); }
.btn-ghost:hover { border-color: var(--ink); }
.vizinhos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vizinhos a { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--mist); border-radius: 12px; background: var(--white); font-weight: 600; font-size: var(--fs-ui); }
.vizinhos a:hover { border-color: var(--ink); }
.vizinhos .cap { color: var(--slate); font-weight: 600; }
.vizinhos .prox { text-align: right; }

/* listas e capas */
.secao-cabeca { display: grid; gap: 10px; margin-bottom: 24px; }
.lista-artigos { display: grid; gap: 10px; list-style: none; }
.item-artigo a { display: grid; grid-template-columns: auto auto 1fr; gap: 4px 10px; align-items: center; padding: 14px 16px; background: var(--white); border: 1px solid var(--mist); border-radius: 12px; transition: border-color var(--t-fast), transform var(--t-fast); }
.item-artigo a:hover { border-color: var(--ink); transform: translateY(-1px); }
.item-artigo strong { font-weight: 600; }
.item-artigo .resumo { grid-column: 1 / -1; color: var(--slate); font-size: var(--fs-ui); }
.item-artigo.em-breve a { background: transparent; }
.item-artigo.em-breve strong { color: var(--slate); }
.tag-breve { font-size: var(--fs-cap); color: var(--slate-2); font-weight: 600; }
.lista-artigos.compacta { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* início */
.inicio .principal { max-width: 1100px; }
.hero { padding: 24px 0 40px; display: grid; gap: 18px; justify-items: start; }
.hero h1 { font-size: clamp(1.875rem, 3.4vw, 2.75rem); }
.busca-grande { max-width: 640px; }
.busca-grande input { height: 50px; background-color: var(--white); color: var(--ink); border-color: var(--mist); font-size: 1rem; box-shadow: var(--shadow-card); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%2360717D' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E"); padding-left: 44px; }
.busca-grande input::placeholder { color: var(--slate-2); }
.busca-grande input:focus { background-color: var(--white); }
.comece-aqui, .secoes, .atalhos { padding: 22px 0; }
.grade-secoes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.card-secao { display: grid; gap: 6px; padding: 18px; background: var(--white); border: 1px solid var(--mist); border-radius: 14px; transition: border-color var(--t-fast), transform var(--t-fast); }
.card-secao:hover { border-color: var(--ink); transform: translateY(-2px); }
.card-secao strong { font-family: var(--f-display); font-weight: 600; font-size: 1.0625rem; }
.card-secao .resumo { color: var(--slate); font-size: var(--fs-ui); }
.grade-atalhos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.grade-atalhos a { display: grid; gap: 4px; padding: 16px 18px; border-radius: 14px; background: var(--ink); color: var(--white); }
.grade-atalhos a strong { font-weight: 600; }
.grade-atalhos .resumo { color: var(--slate-2); font-size: var(--fs-ui); }
.grade-atalhos a:hover { background: var(--ink-2); }

/* acompanhamento */
.acompanhamento .lotes { list-style: none; }
.acompanhamento .lotes li { background: var(--white); border: 1px solid var(--mist); border-radius: var(--r-pill); padding: 4px 12px; font-size: var(--fs-ui); }
.tabela tr.grupo th { background: var(--ink); color: var(--white); text-transform: none; letter-spacing: 0; font-size: var(--fs-ui); }
.status { display: inline-block; white-space: nowrap; padding: 2px 8px; border-radius: var(--r-pill); font-size: var(--fs-cap); font-weight: 600; background: var(--mist); }
.status.publicado { background: var(--lime-soft); color: var(--ok); }

/* rodapé */
.rodape { border-top: 1px solid var(--mist); padding: 20px; font-size: var(--fs-ui); color: var(--slate); text-align: center; }
.rodape a { text-decoration: underline; }

/* celular */
@media (max-width: 960px) {
  .artigo-grade { grid-template-columns: 1fr; }
  .nesta-pagina { display: none; }
  .lista-artigos.compacta, .grade-atalhos { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .topo { gap: 12px; padding: 0 12px; }
  .menu-btn { display: flex; }
  .marca-sufixo { display: none; }
  .btn-app { display: none; }
  .busca { max-width: none; }
  .corpo { grid-template-columns: 1fr; }
  .lateral { position: fixed; left: 0; top: 60px; width: min(320px, 86vw); transform: translateX(-100%); transition: transform var(--t-base) var(--ease); box-shadow: var(--shadow-float); z-index: 15; }
  .a4s.menu-aberto .lateral { transform: none; }
  .principal { padding: 20px 16px 48px; }
  .vizinhos { grid-template-columns: 1fr; }
  .vizinhos .prox { text-align: left; }
  .artigo-corpo { font-size: 1rem; }
}
