/* ================================================================= */
/*  /docs — documentação no padrão sidebar + conteúdo + rail          */
/*  Base: app.css + brutalist.css (preto absoluto, cantos retos)      */
/* ================================================================= */

.docs-body {
  background: #000;
}

.docs-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 26px;
  height: 64px;
  padding: 0 26px;
  border-bottom: 1.5px solid #1c1c1c;
  background: #000;
}

.docs-menu {
  display: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1.5px solid #2b2b2b;
  background: #000;
  color: #fff;
  font-size: 13px;
  line-height: 1;
}

.docs-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: #fff;
  text-decoration: none;
}

.docs-brand:hover {
  color: #fff;
}

.docs-brand-word {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.docs-brand-word span {
  color: var(--neon);
}

.docs-brand-tag {
  padding: 2px 6px;
  border: 1px solid #2b2b2b;
  color: #8f8f8f;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.docs-tabs {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 100%;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.docs-tabs::-webkit-scrollbar {
  display: none;
}

.docs-tabs a {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  color: #8a8a8a;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.docs-tabs a:hover {
  color: #fff;
}

.docs-tabs a.active {
  color: #fff;
}

.docs-tabs a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1.5px;
  height: 2px;
  background: var(--neon);
}

.docs-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.docs-version {
  padding: 2px 6px;
  border: 1px solid #2b2b2b;
  color: #8f8f8f;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.docs-topbar .btn {
  height: 32px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
}

/* --- estrutura de tres colunas ------------------------------------ */

.docs-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 318px;
  align-items: start;
  max-width: 1500px;
  margin: 0 auto;
}

.docs-nav {
  position: sticky;
  top: 64px;
  align-self: start;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  padding: 26px 0 46px;
  border-right: 1.5px solid #171717;
}

.docs-nav-group + .docs-nav-group {
  margin-top: 26px;
}

.docs-nav-group h2 {
  margin: 0 0 8px 20px;
  color: #6f6f6f;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.docs-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 18px;
  border-left: 2px solid transparent;
  color: #9d9d9d;
  font-size: 12.5px;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.docs-link:hover {
  background: #070707;
  color: #fff;
}

.docs-link.active {
  border-left-color: var(--neon);
  background: #0a0a0a;
  color: #fff;
}

.docs-verb {
  flex: 0 0 auto;
  padding: 1px 5px;
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.docs-verb.post {
  background: var(--orange);
  color: #000;
}

.docs-verb.get {
  background: #dcdcdc;
  color: #000;
}

/* --- coluna de conteudo ------------------------------------------- */

.docs-main {
  min-width: 0;
  padding: 36px 44px 90px;
}

.docs-section {
  max-width: 760px;
  padding-bottom: 42px;
  margin-bottom: 42px;
  border-bottom: 1.5px solid #151515;
  scroll-margin-top: 88px;
}

.docs-section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.docs-eyebrow {
  display: inline-block;
  color: var(--neon);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.docs-section h1 {
  margin: 10px 0 14px;
  font-size: clamp(30px, 3vw, 38px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.docs-section h2 {
  margin: 36px 0 12px;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.docs-section h3 {
  margin: 0 0 4px;
  font-size: 13px;
  letter-spacing: -0.01em;
}

.docs-lead {
  margin: 0;
  max-width: 62ch;
  color: #b4b4b4;
  font-size: 14px;
  line-height: 1.75;
}

.docs-section p {
  color: #a8a8a8;
  font-size: 13px;
  line-height: 1.7;
}

.docs-section a {
  color: #fff;
}

.docs-section a:hover {
  color: var(--neon);
}

.docs-section code {
  padding: 1px 5px;
  border: 1px solid #2a2a2a;
  background: #050505;
  color: #e4e4e4;
  font-family: var(--mono);
  font-size: 11.5px;
}

.docs-section pre code {
  padding: 0;
  border: 0;
  background: none;
  font-size: inherit;
  color: inherit;
}

/* fluxo */

.docs-flow {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 8px 0 4px;
  padding: 18px 0;
}

.flow-node {
  padding: 9px 16px;
  border: 1.5px solid #2b2b2b;
  background: #050505;
  color: #d8d8d8;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.flow-node--accent {
  border-color: var(--neon);
  color: var(--neon);
}

.flow-line {
  position: relative;
  flex: 1;
  height: 1.5px;
  background: #242424;
}

.flow-line::after {
  content: "";
  position: absolute;
  top: -3px;
  right: 0;
  width: 6px;
  height: 6px;
  border-top: 1.5px solid #4a4a4a;
  border-right: 1.5px solid #4a4a4a;
  transform: rotate(45deg);
}

/* passos numerados */

.docs-steps {
  margin: 14px 0 24px;
  padding: 0;
  list-style: none;
  counter-reset: docs-step;
}

.docs-steps li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 14px;
  padding: 15px 0;
  border-top: 1px solid #1a1a1a;
}

.docs-steps li:last-child {
  border-bottom: 1px solid #1a1a1a;
}

.docs-steps li::before {
  counter-increment: docs-step;
  content: counter(docs-step);
  padding-top: 1px;
  color: var(--neon);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}

.docs-steps p {
  margin: 0;
}

.docs-bullets {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.docs-bullets li {
  position: relative;
  padding-left: 18px;
  color: #a8a8a8;
  font-size: 13px;
  line-height: 1.7;
}

.docs-bullets li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--neon);
}

.docs-bullets strong {
  color: #fff;
}

/* bloco de codigo */

.docs-code {
  margin-top: 20px;
  border: 1.5px solid #232323;
  background: #050505;
}

.docs-code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 9px 7px 14px;
  border-bottom: 1.5px solid #1a1a1a;
  background: #080808;
}

.docs-code-label {
  color: #7f7f7f;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.docs-code-tabs {
  display: flex;
  gap: 4px;
}

.docs-code-tabs button {
  border: 0;
  background: none;
  padding: 5px 9px;
  color: #8a8a8a;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.docs-code-tabs button:hover {
  color: #fff;
}

.docs-code-tabs button.active {
  background: #fff;
  color: #000;
}

.docs-code-body {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  color: #d6d6d6;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.75;
  tab-size: 2;
}

.docs-copy {
  border: 1px solid #2b2b2b;
  background: #000;
  padding: 4px 8px;
  color: #9d9d9d;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.docs-copy:hover {
  border-color: #fff;
  color: #fff;
}

.docs-copy--inline {
  justify-self: start;
}

/* endpoint e tabelas */

.docs-endpoint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 7px 12px 7px 8px;
  border: 1.5px solid #232323;
  background: #050505;
}

.docs-endpoint code {
  border: 0;
  background: none;
  padding: 0;
  color: #fff;
  font-size: 12px;
}

.docs-table {
  width: 100%;
  margin-top: 18px;
  border-collapse: collapse;
  border: 1.5px solid #232323;
  font-size: 12.5px;
}

.docs-table th {
  padding: 9px 12px;
  border-bottom: 1.5px solid #2b2b2b;
  background: #080808;
  color: #7f7f7f;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: left;
  text-transform: uppercase;
}

.docs-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #171717;
  color: #a8a8a8;
  vertical-align: top;
}

.docs-table tr:last-child td {
  border-bottom: 0;
}

.docs-table td:first-child {
  color: #fff;
  white-space: nowrap;
}

.docs-table code {
  font-size: 11px;
}

.docs-empty {
  color: #6f6f6f !important;
}

/* --- API Tester --------------------------------------------------- */

.tester {
  margin-top: 22px;
  border: 1.5px solid #262626;
  background: #050505;
}

.tester-bar {
  display: flex;
  align-items: stretch;
  min-height: 46px;
  border-bottom: 1.5px solid #262626;
}

.tester-method {
  display: grid;
  place-items: center;
  width: 88px;
  border-right: 1.5px solid #1e1e1e;
  background: #0b0b0b;
  color: var(--neon);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.tester-path {
  display: flex;
  flex: 1;
  align-items: center;
  min-width: 0;
  padding: 0 14px;
  overflow: hidden;
  color: #dcdcdc;
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tester-run {
  flex: 0 0 auto;
  min-width: 116px;
  padding: 0 22px;
  border: 0;
  border-left: 1.5px solid #262626;
  background: #fff;
  color: #000;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.tester-run:hover {
  background: var(--neon);
  color: var(--neon-ink);
}

.tester-run:disabled {
  cursor: progress;
  opacity: 0.6;
}

.tester-tabs {
  display: flex;
  gap: 2px;
  padding: 0 12px;
  border-bottom: 1.5px solid #1a1a1a;
}

.tester-tab {
  margin-bottom: -1.5px;
  padding: 10px 9px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: #8a8a8a;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.tester-tab:hover {
  color: #fff;
}

.tester-tab.active {
  border-bottom-color: var(--neon);
  color: #fff;
}

.tester-panel {
  padding: 16px;
}

.tester-field + .tester-field {
  margin-top: 12px;
}

.tester-field label {
  display: block;
  margin-bottom: 6px;
  color: #8a8a8a;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.docs-input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #262626;
  border-radius: 0;
  background: #000;
  color: #fff;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  transition: border-color 0.15s ease;
}

.docs-input:focus {
  outline: none;
  border-color: var(--neon);
}

textarea.docs-input {
  resize: vertical;
  min-height: 84px;
}

.tester-hint {
  margin: 7px 0 0;
  color: #7f7f7f;
  font-size: 11px;
}

.tester-hint a {
  color: #b4b4b4;
}

.tester-foot {
  position: relative;
  border-top: 1.5px solid #1a1a1a;
  background: #030303;
}

.tester-request {
  margin: 0;
  padding: 12px 76px 12px 16px;
  overflow-x: auto;
  color: #8f8f8f;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}

.tester-foot .docs-copy {
  position: absolute;
  top: 9px;
  right: 9px;
}

.tester-response {
  border-top: 1.5px solid #1a1a1a;
}

.tester-response-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 16px;
  border-bottom: 1px solid #141414;
  color: #7f7f7f;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tester-status {
  color: #6f6f6f;
  letter-spacing: 0.06em;
  text-transform: none;
}

.tester-status.ok {
  color: #8fdc8f;
}

.tester-status.error {
  color: #ff8f8f;
}

.tester-output {
  margin: 0;
  max-height: 380px;
  overflow: auto;
  padding: 14px 16px 16px;
  color: #c9c9c9;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.tester-output.is-error {
  color: #ff9d9d;
}

/* --- rail lateral ------------------------------------------------- */

.docs-rail {
  position: sticky;
  top: 64px;
  align-self: start;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  padding: 28px 22px 60px;
  border-left: 1.5px solid #171717;
}

.rail-card {
  border: 1.5px solid #262626;
  background: #050505;
}

.rail-card + .rail-card {
  margin-top: 14px;
}

.rail-card-head {
  padding: 9px 13px;
  border-bottom: 1.5px solid #1e1e1e;
  color: #7f7f7f;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.rail-card-body {
  display: grid;
  gap: 8px;
  padding: 12px 13px;
}

.rail-card-body code {
  color: #dcdcdc;
  font-family: var(--mono);
  font-size: 11px;
  word-break: break-all;
}

.rail-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 12px 13px;
  list-style: none;
}

.rail-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #a0a0a0;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.5;
}

.rail-key {
  color: #7f7f7f;
}

.rail-text {
  margin: 0;
  color: #9d9d9d;
  font-size: 11.5px;
  line-height: 1.6;
}

.rail-cta {
  color: #fff;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}

.rail-cta:hover {
  color: var(--neon);
}

/* --- responsivo --------------------------------------------------- */

@media (max-width: 1180px) {
  .docs-shell {
    grid-template-columns: 232px minmax(0, 1fr);
  }

  .docs-rail {
    display: none;
  }
}

@media (max-width: 900px) {
  .docs-topbar {
    gap: 14px;
    padding: 0 16px;
  }

  .docs-menu {
    display: grid;
  }

  .docs-brand-tag,
  .docs-version,
  .docs-tabs {
    display: none;
  }

  .docs-shell {
    display: block;
  }

  .docs-nav {
    position: fixed;
    top: 64px;
    bottom: 0;
    left: 0;
    z-index: 45;
    width: 264px;
    max-height: none;
    padding-top: 22px;
    border-right: 1.5px solid #262626;
    background: #000;
    transform: translateX(-102%);
    transition: transform 0.2s ease;
  }

  .docs-nav.open {
    transform: none;
  }

  .docs-main {
    padding: 26px 18px 70px;
  }

  .docs-section {
    padding-bottom: 32px;
    margin-bottom: 32px;
  }

  .docs-flow {
    flex-wrap: wrap;
    gap: 8px;
  }

  .flow-line {
    flex: 0 0 26px;
  }

  .tester-method {
    width: 70px;
  }

  .docs-table {
    display: block;
    overflow-x: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .docs-nav,
  .docs-link,
  .docs-copy,
  .tester-run {
    transition: none;
  }
}

/* --- SDKs: logo + título ------------------------------------------ */

.sdk-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 6px;
}

.sdk-head > div {
  min-width: 0;
}

.sdk-head h1 {
  margin: 0 0 10px;
}

.sdk-head .docs-lead {
  margin: 0;
}

.sdk-mark {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: #cfcfcf;
}

.sdk-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.sdk-mark--lg {
  width: 46px;
  height: 46px;
  margin-top: 5px;
  padding: 10px;
  border: 1.5px solid #262626;
  background: #050505;
}

.sdk-mark--node {
  color: #5fa04e;
}

.sdk-mark--python {
  color: #4b8bbe;
}

.sdk-mark--php {
  color: #8892bf;
}

/* --- rail: atalho do API Tester ---------------------------------- */

.rail-card--tester .rail-card-head {
  color: var(--neon);
  border-bottom-color: #332e26;
}
