/* ==========================================================================
   developer.css — Developers page only: quick-start steps, credential flow,
   code samples with language tabs, endpoint reference table.
   ========================================================================== */

/* ===== QUICK-START STEPS ===== */
.steps-list{
  list-style:none;
  margin:0; padding:0;
  position:relative;
}
.steps-list::before{
  content:"";
  position:absolute;
  left:19px; top:8px; bottom:8px;
  width:1px;
  background:var(--hairline);
}
.step{
  position:relative;
  display:grid;
  grid-template-columns:40px 1fr;
  gap:20px;
  padding:20px 0;
}
.step .n{
  position:relative;
  z-index:1;
  width:40px; height:40px;
  border-radius:50%;
  background:var(--surface);
  border:1px solid var(--hairline);
  display:grid; place-items:center;
  font-family:'IBM Plex Mono',monospace;
  font-size:13px;
  color:var(--signal);
}
.step h3{ font-size:16.5px; font-weight:600; margin-bottom:6px; }
.step p{ margin:0; color:var(--text-muted); font-size:14.5px; max-width:560px; }

/* ===== CREDENTIAL FLOW ===== */
.credential-flow{
  display:flex;
  align-items:stretch;
  gap:14px;
  flex-wrap:wrap;
}
.credential-node{
  flex:1;
  min-width:180px;
  border:1px solid var(--hairline);
  background:var(--surface);
  border-radius:12px;
  padding:20px;
}
.credential-node .k{
  font-family:'IBM Plex Mono',monospace;
  font-size:10.5px;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:var(--text-dim);
}
.credential-node h4{ font-size:15.5px; font-weight:600; margin:8px 0 6px; }
.credential-node p{ margin:0; font-size:13px; color:var(--text-muted); }
.credential-arrow{
  display:flex; align-items:center; justify-content:center;
  color:var(--signal);
  font-family:'IBM Plex Mono',monospace;
  font-size:18px;
  min-width:24px;
}

/* ===== CODE PANELS ===== */
.code-tabs{
  border:1px solid var(--code-border);
  border-radius:14px;
  overflow:hidden;
  background:var(--code-bg);
  margin:20px 0 0;
  box-shadow:0 1px 2px rgba(16,24,40,0.04), 0 14px 28px -10px rgba(16,24,40,0.16);
}
.code-tabs-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 14px;
  border-bottom:1px solid var(--code-border);
  background:rgba(255,255,255,0.015);
}
.code-tab-group{ display:flex; gap:4px; }
.code-tab-btn{
  background:none;
  border:none;
  cursor:pointer;
  color:var(--text-dim);
  font-family:'IBM Plex Mono',monospace;
  font-size:12px;
  padding:6px 12px;
  border-radius:7px;
  transition:background .15s ease, color .15s ease;
}
.code-tab-btn.active{ background:var(--surface-2); color:var(--signal); }
.code-copy-btn{
  background:none;
  border:1px solid var(--code-border);
  color:var(--text-dim);
  font-family:'Inter',sans-serif;
  font-size:11.5px;
  font-weight:600;
  padding:6px 12px;
  border-radius:7px;
  cursor:pointer;
  transition:color .15s ease, border-color .15s ease;
}
.code-copy-btn:hover{ color:var(--signal); border-color:var(--signal); }
.code-copy-btn.copied{ color:var(--signal); border-color:var(--signal); }

.code-panel{ display:none; }
.code-panel.active{ display:block; }
.code-panel pre{
  margin:0;
  padding:18px 20px;
  overflow-x:auto;
  font-family:'IBM Plex Mono',monospace;
  font-size:13px;
  line-height:1.7;
  color:var(--text-muted);
}
.code-panel code{ font-family:inherit; }

/* minimal manual token colouring, applied via spans in the markup */
.tok-kw{ color:#8FA6D8; }      /* keywords: POST, const, function, $ */
.tok-str{ color:var(--gold); } /* strings / endpoint paths */
.tok-key{ color:var(--signal); }/* JSON keys, header names */
.tok-num{ color:#C792EA; }     /* numeric / status values */
.tok-com{ color:var(--text-dim); font-style:italic; } /* comments */

/* ===== SIMPLE CODE BLOCK (no language tabs — used for response examples) ===== */
.code-simple{
  border:1px solid var(--code-border);
  border-radius:14px;
  overflow:hidden;
  background:var(--code-bg);
  margin:14px 0 0;
  box-shadow:0 1px 2px rgba(16,24,40,0.04), 0 14px 28px -10px rgba(16,24,40,0.16);
}
.code-simple-head{
  padding:10px 14px;
  border-bottom:1px solid var(--code-border);
  font-family:'IBM Plex Mono',monospace;
  font-size:11px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--text-dim);
}
.code-simple pre{
  margin:0;
  padding:18px 20px;
  overflow-x:auto;
  font-family:'IBM Plex Mono',monospace;
  font-size:13px;
  line-height:1.7;
  color:var(--text-muted);
}

/* ===== ENDPOINT REFERENCE TABLE ===== */
.endpoint-table{
  background:var(--surface);
  border:1px solid var(--hairline);
  border-radius:16px;
  overflow-x:auto;
}
.endpoint-table table{ width:100%; border-collapse:collapse; font-size:13.5px; }
.endpoint-table th{
  text-align:left;
  padding:14px 20px;
  color:var(--text-dim);
  font-weight:400;
  font-size:11px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  border-bottom:1px solid var(--hairline);
  white-space:nowrap;
}
.endpoint-table td{
  padding:14px 20px;
  border-bottom:1px solid var(--hairline);
  color:var(--text-muted);
}
.endpoint-table tr:last-child td{ border-bottom:none; }
.endpoint-table .path{ font-family:'IBM Plex Mono',monospace; color:var(--text); font-size:13px; }
.method{
  display:inline-block;
  font-family:'IBM Plex Mono',monospace;
  font-size:11px;
  font-weight:600;
  padding:3px 9px;
  border-radius:6px;
}
.method.get{ background:var(--signal-soft); color:var(--signal); }
.method.post{ background:var(--gold-soft); color:var(--gold); }

.dev-note{
  margin-top:14px; padding:14px 16px;
  border-left:2px solid var(--signal);
  background:var(--signal-soft);
  font-size:13.5px;
  color:#B7F3E1;
  border-radius:0 8px 8px 0;
}
.dev-note.warn{ border-left-color:var(--gold); background:var(--gold-soft); color:#E4C77E; }