.api-docs-body {
  background: #f7faff;
  color: #18324a;
}

.api-docs-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid #d8e7f4;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.api-docs-topbar-inner {
  min-height: 70px;
  padding: 10px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.api-docs-divider {
  width: 1px;
  height: 28px;
  background: #d8e7f4;
}

.api-docs-product {
  font-weight: 750;
  font-size: 18px;
}

.api-docs-actions {
  margin-left: auto;
  display: flex;
  gap: 20px;
  color: #60758a;
  font-size: 14px;
  font-weight: 650;
}

.api-docs-actions a:hover { color: #4e8df7; }

.api-docs-shell {
  display: grid;
  grid-template-columns: 275px minmax(0, 1fr);
  min-height: calc(100vh - 70px);
}

.api-docs-sidebar {
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  overflow: auto;
  padding: 26px 22px 50px 28px;
  border-right: 1px solid #d8e7f4;
  background: #fff;
}

.api-docs-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #46647e;
  background: #edf6ff;
  font-size: 12px;
  font-weight: 700;
}

.api-docs-status span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f0a04b;
}

.api-nav-section { margin-bottom: 24px; }

.api-nav-heading {
  margin: 0 10px 7px;
  color: #8496a7;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.api-nav-section a {
  display: block;
  padding: 8px 10px;
  border-radius: 9px;
  color: #526b82;
  font-size: 14px;
  font-weight: 580;
}

.api-nav-section a:hover,
.api-nav-section a[aria-current="page"] {
  color: #245fbd;
  background: #edf5ff;
}

.api-docs-main {
  width: min(100%, 1040px);
  padding: 34px clamp(28px, 6vw, 86px) 70px;
}

.api-docs-banner {
  margin-bottom: 32px;
  padding: 14px 17px;
  border: 1px solid #f1d19b;
  border-radius: 12px;
  background: #fff8e9;
  color: #684e25;
  font-size: 14px;
  line-height: 1.55;
}

.api-docs-article { max-width: 820px; }

.api-docs-article h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.api-docs-article h2 {
  margin: 54px 0 16px;
  padding-top: 8px;
  font-size: 27px;
  letter-spacing: -0.02em;
}

.api-docs-article h3 { margin: 34px 0 12px; font-size: 20px; }
.api-docs-article h4 { margin: 26px 0 10px; font-size: 16px; }

.api-docs-article p,
.api-docs-article li {
  color: #405d76;
  font-size: 16px;
  line-height: 1.75;
}

.api-docs-article > p:first-of-type {
  color: #526f87;
  font-size: 19px;
  line-height: 1.65;
}

.api-docs-article a { color: #276bd2; text-decoration: underline; text-underline-offset: 3px; }
.api-docs-article strong { color: #18324a; }
.api-docs-article ul, .api-docs-article ol { padding-left: 24px; }

.api-docs-article code {
  padding: 2px 5px;
  border-radius: 5px;
  background: #edf3f9;
  color: #244968;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.88em;
}

.api-docs-article pre {
  position: relative;
  overflow: auto;
  margin: 20px 0 28px;
  padding: 22px 20px;
  border: 1px solid #243f5c;
  border-radius: 14px;
  background: #10283d;
  box-shadow: 0 18px 40px rgba(37, 70, 100, 0.13);
}

.api-docs-article pre code {
  padding: 0;
  background: transparent;
  color: #e8f3ff;
  font-size: 13px;
  line-height: 1.65;
}

.api-copy-button {
  position: absolute;
  top: 9px;
  right: 9px;
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 7px;
  background: rgba(255,255,255,.08);
  color: #d8eaff;
  cursor: pointer;
  font: 600 11px Inter, sans-serif;
}

.api-docs-article table {
  width: 100%;
  margin: 18px 0 30px;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #d8e7f4;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  font-size: 14px;
}

.api-docs-article th,
.api-docs-article td {
  padding: 12px 14px;
  border-bottom: 1px solid #e5eef6;
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
}

.api-docs-article th { background: #f0f6fc; color: #294e6e; font-weight: 750; }
.api-docs-article tr:last-child td { border-bottom: 0; }
.api-docs-article blockquote {
  margin: 22px 0;
  padding: 2px 0 2px 18px;
  border-left: 4px solid #76d8be;
}
.api-docs-article blockquote p { color: #365c55; }

.api-docs-pager {
  max-width: 820px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 68px;
  padding-top: 24px;
  border-top: 1px solid #d8e7f4;
}

.api-docs-pager a {
  padding: 14px 16px;
  border: 1px solid #d8e7f4;
  border-radius: 12px;
  background: #fff;
  color: #245fbd;
  font-weight: 700;
}
.api-docs-pager a span { display: block; margin-bottom: 3px; color: #8496a7; font-size: 11px; text-transform: uppercase; }
.api-docs-pager .api-docs-next { text-align: right; }

@media (max-width: 900px) {
  .api-docs-shell { grid-template-columns: 1fr; }
  .api-docs-sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid #d8e7f4; }
  .api-docs-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
  .api-docs-status { grid-column: 1 / -1; justify-self: start; }
  .api-docs-main { padding: 28px 24px 60px; }
}

@media (max-width: 620px) {
  .api-docs-topbar-inner { padding: 10px 16px; }
  .api-docs-divider, .api-docs-actions a:not(:first-child) { display: none; }
  .api-docs-sidebar { grid-template-columns: 1fr; padding: 22px 16px; }
  .api-docs-article table { display: block; overflow-x: auto; }
  .api-docs-pager { grid-template-columns: 1fr; }
}
