/* Documentação da API (06/11), no manual de marca: noite, roxo e ouro; Big Shoulders, Schibsted e Plex Mono. */
.pg-api { background: var(--bg); color: var(--ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.api { max-width: 1200px; margin: 0 auto; padding: 24px 16px 64px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; }
.api-lado { position: sticky; top: 80px; align-self: start; max-height: calc(100vh - 96px); overflow: auto; padding-right: 8px; font-size: 14px; }
.api-lado ul { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 2px; }
.api-lado a { display: flex; align-items: center; min-height: 32px; padding: 4px 8px; border-radius: 8px; color: var(--ink-2); text-decoration: none; }
.api-lado a:hover { background: var(--surface-2); color: var(--ink); }
.api-lado .qtd { margin-left: auto; font: 500 12px/1 var(--mono); color: var(--muted); }
.lado-tit { margin: 12px 8px 6px; font: 700 12px/1.2 var(--texto); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.busca input { width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 12px; background: var(--surface); color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line); font: 500 15px/1.2 var(--texto); }
.busca input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--roxo); }
.api-corpo { min-width: 0; }
.kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font: 700 13px/1.2 var(--texto); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.kicker i { width: 10px; height: 10px; border-radius: 50%; background: var(--ouro); flex: none; }
.api-corpo h1 { margin: 0 0 12px; font: 900 clamp(44px, 9vw, 76px)/.92 var(--display); text-transform: uppercase; }
.api-corpo h1 em { font-style: normal; color: var(--roxo-ink); }
.api-lead { max-width: 64ch; margin: 0 0 20px; font-size: 18px; line-height: 1.5; color: var(--ink-2); }
.api-resumo { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 0 0 32px; }
.api-resumo > div { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
.api-resumo b { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.api-resumo code { font: 500 13px/1.3 var(--mono); word-break: break-all; }
.guia, .area { scroll-margin-top: 80px; margin: 0 0 40px; }
.guia h2, .area h2 { margin: 0 0 12px; font: 900 34px/1 var(--display); text-transform: uppercase; }
.guia p, .guia li { line-height: 1.6; max-width: 72ch; }
.guia ul, .guia ol { padding-left: 20px; display: grid; gap: 6px; }
.api-passos { counter-reset: p; list-style: none; padding: 0 !important; }
.api-passos > li { counter-increment: p; position: relative; padding-left: 44px; }
.api-passos > li::before { content: counter(p); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--roxo); color: #fff;
  display: grid; place-items: center; font: 700 14px/1 var(--texto); }
code { font-family: var(--mono); font-size: .92em; }
:not(pre) > code { padding: 1px 5px; border-radius: 6px; background: var(--surface-2); }
.cod { position: relative; margin: 10px 0; padding: 14px 16px; border-radius: var(--r-md); background: #140b33; color: #f1ecff; overflow-x: auto;
  font: 500 13px/1.55 var(--mono); white-space: pre; }
.cod code { background: none; padding: 0; }
.copiar { position: absolute; top: 8px; right: 8px; min-height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .12);
  color: #f1ecff; font: 600 12px/1 var(--texto); cursor: pointer; }
.copiar:hover { background: rgba(255, 255, 255, .2); }
.tab-rola { overflow-x: auto; margin: 10px 0; }
.api-campos { width: 100%; border-collapse: collapse; font-size: 14px; }
.api-campos th, .api-campos td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.api-campos th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.api-campos .extra { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.obrig { font: 600 11px/1 var(--texto); color: var(--erro); }
.cartoes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.cartao { padding: 16px; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.cartao h3 { margin: 0 0 8px; font: 800 22px/1 var(--display); text-transform: uppercase; }
.cartao ol { padding-left: 18px; display: grid; gap: 6px; font-size: 15px; }
.nota { font-size: 13px; color: var(--muted); }
.api-op { scroll-margin-top: 80px; margin: 0 0 18px; padding: 18px; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.api-op h3 { margin: 0 0 6px; font-size: 19px; }
.api-op h3 a { color: inherit; text-decoration: none; }
.api-op h3 a:hover { color: var(--roxo-ink); }
.rota { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 8px; }
.rota code { font: 500 14px/1.3 var(--mono); word-break: break-all; }
.metodo { display: inline-flex; min-width: 62px; justify-content: center; padding: 4px 8px; border-radius: 8px; font: 700 12px/1 var(--mono); color: #fff; }
.m-get { background: #1b7f52; } .m-post { background: #6a1be0; } .m-put { background: #9a5b00; } .m-patch { background: #9a5b00; } .m-delete { background: #b42318; }
.selos { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.selo { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); font-size: 12px; color: var(--ink-2); }
.selo-perigo { background: var(--erro-soft); color: var(--erro); font-weight: 700; }
.resp { font-size: 14px; color: var(--ink-2); }
.nada { font-size: 14px; color: var(--muted); }
.abas { display: flex; gap: 4px; margin: 12px 0 0; }
.abas button { min-height: 36px; padding: 0 12px; border: 0; border-radius: 10px 10px 0 0; background: var(--surface-2); color: var(--ink-2); font: 600 13px/1 var(--texto); cursor: pointer; }
.abas button[aria-selected="true"] { background: #140b33; color: #f1ecff; }
.exemplos .cod { margin-top: 0; border-top-left-radius: 0; }
.exemplos .cod:not(.ativo) { display: none; }
.sem-resultado { padding: 20px; border-radius: var(--r-md); background: var(--surface); }
a { color: var(--roxo-ink); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--lilas); outline-offset: 2px; }
@media (max-width: 900px) {
  .api { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .api-lado { position: static; max-height: none; overflow: visible; }
  .api-lado ul { display: flex; flex-wrap: wrap; gap: 4px; }
  .api-lado a { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
}
/* Os blocos de código rolam dentro do cartão, sem esticar a página no celular. */
.guia li, .cartao, .api-op, .cartoes > *, .api-resumo > div { min-width: 0; }
.cod { max-width: 100%; }
:not(pre) > code { overflow-wrap: anywhere; }
.guia li { display: list-item; }
.api-passos > li { display: block; }
.guia li b, .cartao li b { display: inline; }
@media (max-width: 900px) {
  .api-lado .qtd { display: none; }
  .api-lado ul { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
  .api-lado a { white-space: nowrap; }
}
.cod { padding-right: 84px; }
.api-lado li { display: block; }
.api-campos td:first-child code { white-space: nowrap; overflow-wrap: normal; }
@media (max-width: 600px) { .api-campos { min-width: 540px; } }
