/* Trade API docs page (/docs). The hp-* rules are a subset of the theme's home-sections.css and the apid-* rules a copy of its api-docs.css - keep them in step. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #f4f4f4; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.top { position: sticky; top: 0; z-index: 10; background: #1a1f24; color: #fff; box-shadow: 0 6px 20px rgba(17,20,24,.18); font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
.top .container { display: flex; align-items: center; gap: 14px; height: 66px; }
.top img { height: 34px; width: auto; display: block; }
.top b { font-weight: 800; font-size: 17px; }
.top nav { margin-left: auto; display: flex; gap: 18px; font-size: 14px; font-weight: 600; }
.top nav a { color: rgba(255,255,255,.8); text-decoration: none; }
.top nav a:hover { color: #fff; }
.apid-nav { top: 90px; }
.foot { padding: 28px 0 40px; color: #5f6672; font: 13px/1.6 "Poppins", system-ui, sans-serif; border-top: 1px solid #e7e9ee; }
.foot a { color: #1a1f24; font-weight: 600; }
@media (max-width: 600px) { .top nav a.hide-sm { display: none; } .container { padding-left: 16px; padding-right: 16px; } }
.hp {
  --hp-ink: #1a1f24;
  --hp-muted: #5f6672;
  --hp-brand: #FD1067;
  --hp-brand-soft: #fff0f5;
  --hp-line: #e7e9ee;
  --hp-soft: #f6f7f9;
  --hp-grey: #f4f4f4; /* the theme's page background */
  --hp-radius: 20px;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--hp-ink);
}
.hp-eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--hp-brand);
}
.hp-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 36px; }
.hp-actions--left { justify-content: flex-start; }
.hp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  border: 2px solid var(--hp-ink);
  background: var(--hp-ink);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.hp-btn:hover { transform: translateY(-1px); }
.hp-btn--brand { background: var(--hp-brand); border-color: var(--hp-brand); }
.hp-btn--ghost { background: transparent; color: var(--hp-ink); }
.apid-hero { padding: clamp(40px, 6vw, 72px) 0; color: #fff; background:
  radial-gradient(circle at 85% 20%, rgba(253,16,103,.22), rgba(253,16,103,0) 42%),
  linear-gradient(150deg, #1a1f24 0%, #2b2f36 100%); }
.apid-hero__title { margin: 0; max-width: 760px; font-size: clamp(34px, 4.6vw, 56px); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; }
.apid-hero__sub { max-width: 680px; margin-top: 16px; font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.8); }
.apid-hero__sub p { margin: 0; }
.apid-hero .hp-actions { margin-top: 26px; }
.apid-hero .hp-btn--ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.apid-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 40px 0 0; padding: 0; list-style: none; }
.apid-steps li { display: flex; gap: 14px; padding: 18px; border-radius: 18px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.apid-steps li > span { flex: 0 0 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--hp-brand); font-weight: 800; }
.apid-steps strong { font-size: 15.5px; }
.apid-steps p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.5; color: rgba(255,255,255,.72); }

.apid-body { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; padding-top: 40px; padding-bottom: 80px; }
.apid-nav { position: sticky; top: 90px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; font-size: 14px; }
.apid-nav h4 { margin: 18px 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--hp-muted); }
.apid-nav h4:first-child { margin-top: 0; }
.apid-nav a { display: flex; gap: 8px; align-items: baseline; padding: 5px 8px; border-radius: 8px; color: var(--hp-ink); text-decoration: none; }
.apid-nav a:hover { background: var(--hp-soft); }
.apid-main { min-width: 0; }
.apid-loading { color: var(--hp-muted); }
.apid-intro { font-size: 15.5px; line-height: 1.65; }
.apid-intro h2, .apid-tag h2 { margin: 0 0 10px; font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.apid-intro p, .apid-tag p { margin: 0 0 12px; }
.apid-intro ol, .apid-intro ul { margin: 0 0 14px; padding-left: 22px; }
.apid-main code { padding: 1px 6px; border-radius: 6px; background: var(--hp-soft); font-size: .9em; }
.apid-base { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 18px; padding: 12px 14px; border-radius: 12px; background: var(--hp-soft); font-size: 14px; }
.apid-tag { margin-top: 48px; padding-top: 8px; scroll-margin-top: 90px; }
.apid-tag > p { color: var(--hp-muted); font-size: 15px; line-height: 1.6; }
.apid-op { margin-top: 18px; border: 1px solid #e8e9ec; border-radius: 18px; overflow: hidden; scroll-margin-top: 90px; background: #fff; }
.apid-op__head { display: flex; gap: 10px; align-items: center; padding: 16px 18px; border-bottom: 1px solid #eef0f2; }
.apid-op__head h3 { margin: 0 0 0 auto; font-size: 15px; font-weight: 700; color: var(--hp-muted); }
.apid-method { flex: 0 0 auto; min-width: 58px; padding: 3px 8px; border-radius: 7px; font: 800 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; text-align: center; color: #fff; }
.apid-method--get { background: #0f766e; } .apid-method--post { background: var(--hp-brand); } .apid-method--delete { background: #b42318; }
.apid-path { font: 600 15px ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }
.apid-op__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.apid-op__doc { padding: 18px; font-size: 14.5px; line-height: 1.6; }
.apid-op__doc > p { margin: 0 0 12px; }
.apid-op__code { padding: 18px; background: #16191d; color: #e8eaed; min-width: 0; }
.apid-op__code h5 { margin: 0 0 8px; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: #9aa0a6; }
.apid-op__code pre { margin: 0 0 18px; padding: 0; overflow-x: auto; font: 12.5px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre; }
.apid-op__code pre:last-child { margin-bottom: 0; }
.apid-h { margin: 16px 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--hp-muted); }
.apid-fields { list-style: none; margin: 0; padding: 0; }
.apid-fields li { padding: 9px 0; border-top: 1px solid #f0f1f3; }
.apid-fields li:first-child { border-top: 0; }
.apid-fields .apid-fields { margin: 6px 0 0 14px; padding-left: 12px; border-left: 2px solid #f0f1f3; }
.apid-f__name { font: 700 13.5px ui-monospace, SFMono-Regular, Menlo, monospace; }
.apid-f__type { margin-left: 6px; font-size: 12.5px; color: var(--hp-muted); }
.apid-f__req { margin-left: 6px; font-size: 11px; font-weight: 800; color: var(--hp-brand); text-transform: uppercase; letter-spacing: .04em; }
.apid-f__desc { margin: 3px 0 0; font-size: 13.5px; color: #3c4149; }
.apid-f__enum { margin: 3px 0 0; font-size: 12.5px; color: var(--hp-muted); }
.apid-codes { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.apid-codes li { padding: 4px 0; }
.apid-codes b { display: inline-block; min-width: 38px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
@media (max-width: 989px) {
  .apid-body { grid-template-columns: 1fr; }
  .apid-nav { display: none; }
  .apid-op__body { grid-template-columns: 1fr; }
}
@media (max-width: 749px) { .apid-steps { grid-template-columns: 1fr; } }
