.docs-page .site-header {
  background: var(--navy);
}
.docs-page .site-nav [aria-current="page"] {
  color: var(--mint);
}
.docs-hero {
  padding: 104px 0 24px;
  background: var(--navy);
  color: white;
}
.docs-hero h1 {
  margin: 12px 0;
  font-size: clamp(28px, 3vw, 34px);
  letter-spacing: -0.04em;
}
.docs-hero p {
  color: #bdcde0;
  line-height: 1.8;
}
.docs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 24px;
  font-size: 14px;
  color: #92c2ff;
}
.docs-actions a:hover {
  color: white;
}
.docs-layout {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding-top: 36px;
}
.docs-sidebar {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 124px);
  overflow-y: auto;
  font-size: 13px;
  padding-right: 12px;
}
.docs-switch {
  display: grid;
  gap: 6px;
  margin-bottom: 24px;
}
.docs-switch a {
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
}
.docs-switch [aria-current="page"] {
  background: #e7f0ff;
  color: #1261d6;
}
.docs-search {
  display: block;
  color: var(--muted);
}
.docs-search input {
  width: 100%;
  padding: 10px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  color: var(--ink);
  background: white;
}
.docs-page :focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
#search-status {
  min-height: 16px;
  color: var(--muted);
}
.docs-toc summary {
  padding: 8px 0;
  cursor: pointer;
  font-weight: 600;
}
.docs-toc nav {
  display: grid;
  gap: 2px;
}
.docs-toc a {
  padding: 7px 8px;
  color: var(--muted);
  line-height: 1.6;
  border-left: 2px solid transparent;
}
.docs-toc a:hover {
  border-color: var(--blue);
  color: #1261d6;
  background: white;
}
.docs-content {
  min-width: 0;
  padding: 0 0 32px;
  font-size: 15px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.docs-content section {
  scroll-margin-top: 100px;
  padding: 0 0 24px;
}
.docs-content section + section {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.docs-content h2 {
  font-size: 24px;
  line-height: 1.5;
  margin: 12px 0 20px;
}
.docs-content h3 {
  font-size: 18px;
  margin: 28px 0 12px;
  scroll-margin-top: 100px;
}
.docs-content .endpoint { display: flex; align-items: baseline; gap: 12px; font-size: 14px; line-height: 1.9; margin-top: 32px; }
.docs-content .endpoint a { min-width: 0; color: var(--ink); text-decoration: none; }
.docs-content .endpoint code { background: none; padding: 0; font-size: 1em; }
.http-method { flex-shrink: 0; font: 700 11px ui-monospace, monospace; color: #1261d6; background: #e4efff; padding: 5px 7px; border-radius: 4px; }
.http-method[data-method="POST"] { color: #087650; background: #dff5eb; }
.docs-content p {
  margin: 0 0 16px;
}
.docs-content a {
  color: #1261d6;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.docs-content li {
  margin: 5px 0;
}
.docs-content blockquote {
  margin: 0 0 22px;
  padding: 14px 18px;
  border-left: 3px solid var(--blue);
  background: #eaf2fe;
  color: #425a76;
  font-size: 14px;
}
.docs-content code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.88em;
  background: #eaf0f7;
  border-radius: 4px;
  padding: 2px 5px;
}
.code-block {
  margin: 20px 0;
  border-radius: 10px;
  overflow: hidden;
  background: #0b1e34;
  color: #dfebfa;
}
.code-language {
  display: block;
  padding: 7px 16px;
  font:
    12px ui-monospace,
    monospace;
  border-bottom: 1px solid #22354d;
  color: #8fa6c0;
}
.code-block pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  line-height: 1.75;
  tab-size: 4;
}
.code-block code {
  font-size: 13px;
  background: transparent;
  padding: 0;
  color: inherit;
}
.table-scroll {
  overflow-x: auto;
  margin: 20px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.docs-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.8;
}
.docs-content th,
.docs-content td {
  text-align: left;
  padding: 12px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  min-width: 88px;
}
.docs-content th {
  background: #edf3fa;
  white-space: nowrap;
}
.docs-content tr:last-child td {
  border-bottom: 0;
}
.docs-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.docs-page [hidden] {
  display: none !important;
}
@media (max-width: 800px) {
  .docs-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .docs-sidebar {
    position: static;
    max-height: none;
    padding: 0;
  }
  .docs-switch {
    display: flex;
    margin-bottom: 18px;
  }
  .docs-toc nav {
    max-height: 210px;
    overflow: auto;
  }
  .docs-content {
    font-size: 14px;
  }
  .docs-content h2 {
    font-size: 21px;
  }
  .docs-footer {
    flex-direction: column;
  }
}
@media print {
  .site-header,
  .docs-sidebar,
  .docs-actions,
  .docs-footer {
    display: none;
  }
  .docs-hero {
    padding: 0;
    background: white;
    color: black;
  }
  .docs-layout {
    display: block;
    width: 100%;
  }
  .docs-content section[hidden] {
    display: block !important;
  }
  .code-block pre {
    white-space: pre-wrap;
  }
}
