*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: #0f1117; font-family: system-ui, -apple-system, sans-serif; color: #e2e8f0; }
#site-nav { position: sticky; top: 0; z-index: 50; }

/* ── top bar ── */
#top-bar {
  display: flex; align-items: center; gap: 16px;
  padding: 10px 24px;
  background: #0d1117;
  border-bottom: 1px solid #2d3148;
}
#top-bar h1 { margin: 0; font-size: 15px; color: #e2e8f0; font-weight: 600; flex: 1; }
#top-bar .badge { font-size: 11px; color: #7c6af7; border: 1px solid #7c6af720; background: #7c6af710; border-radius: 4px; padding: 2px 7px; }
#top-bar .host  { font-size: 11px; color: #64748b; }
#top-bar a {
  font-size: 12px; color: #7c6af7; text-decoration: none;
  border: 1px solid #7c6af7; border-radius: 4px; padding: 4px 12px; white-space: nowrap;
}
#top-bar a:hover { background: rgba(124,106,247,0.12); }

/* ── tab nav ── */
#tab-nav {
  display: flex; gap: 0;
  background: #0d1117;
  border-bottom: 1px solid #2d3148;
  padding: 0 24px;
  position: sticky; top: 0; z-index: 39;
}
.tab-btn {
  background: none; border: none; color: #64748b; cursor: pointer;
  font-size: 13px; font-weight: 500; padding: 10px 18px;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .15s, border-color .15s;
}
.tab-btn:hover  { color: #e2e8f0; }
.tab-btn.active { color: #7c6af7; border-bottom-color: #7c6af7; }

/* ── tab panels ── */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── getting started guide ── */
#guide {
  max-width: 860px; margin: 0 auto; padding: 40px 24px 60px;
}
#guide h2 { font-size: 22px; font-weight: 700; color: #f1f5f9; margin: 0 0 6px; }
#guide .subtitle { color: #64748b; font-size: 14px; margin: 0 0 36px; }

.step { display: flex; gap: 20px; margin-bottom: 32px; }
.step-num {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  background: #7c6af720; border: 1px solid #7c6af740;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #a78bfa; margin-top: 2px;
}
.step-body h3 { margin: 0 0 8px; font-size: 15px; color: #f1f5f9; font-weight: 600; }
.step-body p  { margin: 0 0 10px; font-size: 13px; color: #94a3b8; line-height: 1.65; }

pre.code-block {
  background: #0d1117; border: 1px solid #2d3148; border-radius: 8px;
  padding: 14px 16px; font-size: 12px; line-height: 1.7;
  color: #e2e8f0; overflow-x: auto; margin: 0 0 10px; white-space: pre;
  position: relative;
}
.hl-method { color: #86efac; }
.hl-url    { color: #93c5fd; }
.hl-key    { color: #fda4af; }
.hl-val    { color: #fcd34d; }
.hl-cmt    { color: #4b5563; }
.hl-token  { color: #a78bfa; }

.info-box {
  background: #0d1117; border: 1px solid #2d3148; border-radius: 8px;
  padding: 14px 16px; font-size: 13px; color: #94a3b8; line-height: 1.65;
  margin: 0 0 10px;
}
.info-box strong { color: #e2e8f0; }
.info-box.warn { border-color: #f59e0b40; background: #f59e0b08; }
.info-box.warn strong { color: #fcd34d; }

.pill {
  display: inline-block; font-size: 11px; font-weight: 600;
  padding: 2px 7px; border-radius: 4px; vertical-align: middle;
}
.pill-post   { background: #854d0e; color: #fde68a; }
.pill-get    { background: #14532d; color: #86efac; }
.pill-patch  { background: #1e3a5f; color: #93c5fd; }
.pill-delete { background: #7f1d1d; color: #fca5a5; }

.divider { border: none; border-top: 1px solid #1e2133; margin: 40px 0; }

.flow-diagram {
  display: flex; align-items: center; gap: 0; flex-wrap: wrap;
  margin: 12px 0;
}
.flow-box {
  background: #1a1d2e; border: 1px solid #2d3148; border-radius: 6px;
  padding: 8px 14px; font-size: 12px; color: #e2e8f0; white-space: nowrap;
}
.flow-arrow { color: #4b5563; padding: 0 8px; font-size: 16px; }

/* ── swagger panel ── */
#swagger-panel { background: #fff; }
.swagger-ui .topbar { display: none; }

/* ── variant helpers (replace former inline styles) ── */
.step-num--warn {
  background: #f59e0b10;
  border-color: #f59e0b40;
  color: #fcd34d;
}
.flow-box--purple { border-color: #7c6af740; }
.flow-box--green  { border-color: #86efac40; color: #86efac; }
.flow-diagram--mt { margin-top: 8px; }
.flow-small       { color: #64748b; }
.token-note       { margin-top: 14px; }
