@import url("index.css");

/* ======================================================
   Docs Page — Layout
   ====================================================== */

/* Make the header sticky so it stays above the scrolling sidebar */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.docs-layout {
  display: grid;
  grid-template-columns: 264px 1fr 224px;
  align-items: start;
  min-height: calc(100vh - 83px);
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* ======================================================
   Sidebar
   ====================================================== */

.docs-sidebar {
  position: sticky;
  top: 83px;
  height: calc(100vh - 83px);
  overflow-y: auto;
  border-right: 1px solid rgba(150, 96, 219, 0.14);
  background: #1d1130;
  padding: 20px 0 40px;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(150, 96, 219, 0.25) transparent;
}

.docs-sidebar::-webkit-scrollbar {
  width: 3px;
}
.docs-sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.docs-sidebar::-webkit-scrollbar-thumb {
  background: rgba(150, 96, 219, 0.25);
  border-radius: 2px;
}

/* Search bar */

.docs-search {
  padding: 0 14px 18px;
  border-bottom: 1px solid rgba(150, 96, 219, 0.1);
  margin-bottom: 10px;
}

.docs-search__wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.docs-search__icon {
  position: absolute;
  left: 10px;
  width: 14px;
  height: 14px;
  stroke: #6b6077;
  flex-shrink: 0;
  pointer-events: none;
}

.docs-search__input {
  width: 100%;
  height: 34px;
  background: rgba(150, 96, 219, 0.06);
  border: 1px solid rgba(150, 96, 219, 0.16);
  border-radius: 8px;
  padding: 0 36px 0 32px;
  box-sizing: border-box;
  font-size: 13px;
  color: #fff;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.docs-search__input::placeholder {
  color: #5a5168;
}

.docs-search__input:focus {
  border-color: rgba(150, 96, 219, 0.45);
  background: rgba(150, 96, 219, 0.09);
}

.docs-search__kbd {
  position: absolute;
  right: 8px;
  font-size: 10px;
  font-weight: 500;
  color: #5a5168;
  background: rgba(150, 96, 219, 0.08);
  border: 1px solid rgba(150, 96, 219, 0.15);
  border-radius: 4px;
  padding: 2px 5px;
  pointer-events: none;
}

/* Nav Sections */

.docs-nav__section {
  margin-bottom: 2px;
}

/* Split header: linked title on left, chevron toggle on right */

.docs-nav__section-header {
  display: flex;
  align-items: center;
  margin-top: 8px;
}

.docs-nav__section-title {
  flex: 1;
  padding: 7px 4px 7px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: #8a7e9e;
  transition: color 0.2s;
}

.docs-nav__section-title:hover {
  color: #d8d0e4;
}

.docs-nav__section-title.is-active {
  color: #c59df0;
}

.docs-nav__section-toggle {
  flex-shrink: 0;
  padding: 7px 14px 7px 4px;
  color: #8a7e9e;
  transition: color 0.2s;
}

.docs-nav__section-toggle:hover {
  color: #d8d0e4;
}

.docs-nav__section-toggle svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  display: block;
  transition: transform 0.25s ease;
}

.docs-nav__section.is-collapsed .docs-nav__section-toggle svg {
  transform: rotate(-90deg);
}

.docs-nav__section-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 7px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: #8a7e9e;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
  margin-top: 8px;
}

.docs-nav__section-btn:hover {
  color: #afa5bd;
}

.docs-nav__section-btn svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.docs-nav__section.is-collapsed .docs-nav__section-btn svg {
  transform: rotate(-90deg);
}

/* Collapsible links wrapper */

.docs-nav__section-links {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.3s ease, opacity 0.25s ease;
  opacity: 1;
}

.docs-nav__section.is-collapsed .docs-nav__section-links {
  grid-template-rows: 0fr;
  opacity: 0;
  pointer-events: none;
}

.docs-nav__section-links-inner {
  overflow: hidden;
  padding-bottom: 4px;
}

.docs-nav__link {
  display: block;
  padding: 5px 14px 5px 22px;
  font-size: 13.5px;
  font-weight: 400;
  color: #a89cba;
  transition: color 0.18s, background 0.18s;
  border-left: 2px solid transparent;
  margin: 0 0 0 0;
  position: relative;
  left: 0;
}

.docs-nav__link:hover {
  color: #d0c8db;
  background: rgba(150, 96, 219, 0.06);
}

.docs-nav__link.is-active {
  color: #c59df0;
  border-left-color: #9660db;
  background: rgba(150, 96, 219, 0.09);
  font-weight: 500;
}

.docs-nav__link--indent {
  padding-left: 28px;
  font-size: 12.5px;
}

/* ======================================================
   Main Content Area
   ====================================================== */

.docs-main {
  padding: 44px 64px 80px;
  min-width: 0;
  box-sizing: border-box;
}

.docs-content {
  max-width: 740px;
}

/* Mobile sidebar toggle (hidden on desktop) */
.docs-mobile-nav-btn {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #afa5bd;
  padding: 6px 12px;
  background: rgba(150, 96, 219, 0.07);
  border: 1px solid rgba(150, 96, 219, 0.18);
  border-radius: 7px;
  cursor: pointer;
  margin-bottom: 32px;
  transition: background 0.2s;
}

.docs-mobile-nav-btn:hover {
  background: rgba(150, 96, 219, 0.12);
}

.docs-mobile-nav-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

/* Breadcrumb */

.docs-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 28px;
  font-size: 13px;
  color: #5a5168;
}

.docs-breadcrumb__sep {
  color: #3d3350;
}

.docs-breadcrumb__current {
  color: #9660db;
  font-weight: 500;
}

/* Page title */

.docs-page-title {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.2;
  background: linear-gradient(180deg, #ffffff 40%, #9660db 160%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.docs-page-subtitle {
  font-size: 17px;
  color: #afa5bd;
  line-height: 1.75;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(150, 96, 219, 0.12);
}

/* Headings within content */

.docs-content h2 {
  font-size: 21px;
  font-weight: 600;
  margin: 44px 0 14px;
  padding-top: 4px;
  scroll-margin-top: 100px;
  background: linear-gradient(180deg, #ffffff 30%, #c09ae0 160%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.docs-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 28px 0 10px;
  color: #d0c8db;
  scroll-margin-top: 100px;
  -webkit-text-fill-color: #d0c8db;
}

.docs-content h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 24px 0 8px;
  color: #c59df0;
  -webkit-text-fill-color: #c59df0;
}

/* Paragraphs */

.docs-content p {
  color: #afa5bd;
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 15px;
}

/* Lists */

.docs-content > ul,
.docs-content > ol,
.docs-tab-panel > ul,
.docs-tab-panel > ol {
  margin: 8px 0 16px;
  padding-left: 20px;
}

.docs-content > ul > li,
.docs-content > ol > li,
.docs-tab-panel > ul > li,
.docs-tab-panel > ol > li {
  font-size: 15px;
  line-height: 1.8;
  color: #afa5bd;
  margin-bottom: 6px;
}

/* Inline links */

.docs-content a:not(.docs-feature-card) {
  color: #9660db;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(150, 96, 219, 0.4);
  transition: text-decoration-color 0.2s;
}

.docs-content a:not(.docs-feature-card):hover {
  text-decoration-color: #9660db;
}

/* ======================================================
   Callout Box
   ====================================================== */

.docs-callout {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 10px;
  margin: 24px 0;
  background: rgba(150, 96, 219, 0.07);
  border: 1px solid rgba(150, 96, 219, 0.2);
  box-sizing: border-box;
}

.docs-callout--note {
  background: rgba(68, 51, 136, 0.1);
  border-color: rgba(68, 51, 136, 0.3);
}

.docs-callout__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

.docs-callout__icon svg {
  width: 20px;
  height: 20px;
  stroke: #9660db;
  display: block;
}

.docs-callout--note .docs-callout__icon svg {
  stroke: #8888cc;
}

.docs-callout p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}

.docs-callout--ai {
  background: linear-gradient(135deg, rgba(150, 96, 219, 0.08), rgba(96, 165, 219, 0.08));
  border-color: rgba(150, 96, 219, 0.25);
  flex-direction: column;
  gap: 10px;
}

.docs-callout--ai .docs-callout__header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.docs-callout--ai .docs-callout__header svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: #c59df0;
}

.docs-callout--ai .docs-callout__header strong {
  font-size: 13px;
  color: #c59df0;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.docs-callout--ai .docs-callout__prompt {
  font-size: 13px;
  line-height: 1.7;
  color: #afa5bd;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  padding: 14px 16px;
  font-family: inherit;
  white-space: pre-wrap;
}

/* ======================================================
   Code Block
   ====================================================== */

.docs-code-block {
  background: #100c1c;
  border: 1px solid rgba(150, 96, 219, 0.18);
  border-radius: 10px;
  overflow: hidden;
  margin: 24px 0;
}

.docs-code-block__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 16px;
  border-bottom: 1px solid rgba(150, 96, 219, 0.12);
  background: rgba(150, 96, 219, 0.05);
}

.docs-code-block__label {
  font-size: 12px;
  font-weight: 600;
  color: #6b6077;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.3px;
}

.docs-code-block__copy {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: #6b6077;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0;
}

.docs-code-block__copy:hover {
  color: #9660db;
}

.docs-code-block pre {
  padding: 20px 22px;
  margin: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(150, 96, 219, 0.2) transparent;
}

/* Section header banner — a tinted rounded bar around just the
   heading of each major section in a long docs tab (Runtime API).
   The section content flows unboxed below it. */
.docs-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 40px 0 18px;
  padding: 13px 20px;
  background: linear-gradient(135deg, rgba(150, 96, 219, 0.14), rgba(96, 165, 219, 0.07));
  border: 1px solid rgba(150, 96, 219, 0.22);
  border-radius: 10px;
}
.docs-content .docs-section-head h3 {
  margin: 0;
  font-size: 16.5px;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}

/* main.css puts overflow:hidden on #root, which turns it into a
   non-scrolling scroll container and silently disables position:sticky
   for the sidebar and the "On this page" pane. clip crops the same
   overflow without creating a scroll context, so sticky works again. */
body[data-docs-page] #root {
  overflow: clip;
}

/* Inline code in prose (paragraphs, lists, headings) — the code-block,
   details, and API-table contexts below override this. */
.docs-content code {
  font-family: 'Fira Code', 'Cascadia Code', 'Courier New', monospace;
  font-size: 13px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(150, 96, 219, 0.12);
  color: #c59df0;
}

.docs-code-block code {
  font-family: 'Fira Code', 'Cascadia Code', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.75;
  color: #d4c8e8;
  background: none;
  padding: 0;
}

.token-comment { color: #5a5168; font-style: italic; }
.token-keyword  { color: #c792ea; }
.token-string   { color: #c3e88d; }
.token-number   { color: #f78c6c; }
.token-function { color: #82aaff; }
.token-operator { color: #89ddff; }

/* ======================================================
   Feature / Link Cards Grid
   ====================================================== */

.docs-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 24px 0;
}

.docs-feature-card {
  background: rgba(27, 16, 41, 0.5);
  border: 1px solid rgba(150, 96, 219, 0.12);
  border-radius: 10px;
  padding: 20px 22px;
  box-sizing: border-box;
  transition: border-color 0.2s, background 0.2s;
  display: block;
}

.docs-feature-card:hover {
  border-color: rgba(150, 96, 219, 0.3);
  background: rgba(34, 22, 50, 0.6);
}

.docs-feature-card h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 7px;
  color: #d0c8db;
  -webkit-text-fill-color: #d0c8db;
}

.docs-feature-card--link h4 {
  color: #9660db;
  -webkit-text-fill-color: #9660db;
}

.docs-feature-card p {
  font-size: 13px;
  margin: 0;
  line-height: 1.6;
}

/* ======================================================
   Numbered Steps
   ====================================================== */

.docs-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 24px 0;
  counter-reset: docs-step;
}

.docs-step {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  align-items: flex-start;
}

.docs-step__number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(150, 96, 219, 0.6);
  background: rgba(150, 96, 219, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #9660db;
  flex-shrink: 0;
  -webkit-text-fill-color: #9660db;
}

.docs-step__content h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 5px;
  padding-top: 5px;
  color: #d0c8db;
  -webkit-text-fill-color: #d0c8db;
}

.docs-step__content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}

/* ======================================================
   Collapsible details sections
   ====================================================== */

.docs-details-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  margin-bottom: 16px;
  margin-left: auto;
  float: right;
  font-size: 12px;
  font-weight: 600;
  color: #9660db;
  background: rgba(150, 96, 219, 0.08);
  border: 1px solid rgba(150, 96, 219, 0.2);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.docs-details-toggle:hover {
  background: rgba(150, 96, 219, 0.14);
  border-color: rgba(150, 96, 219, 0.35);
}

.docs-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 8px;
}

.docs-badge--coming-soon {
  background: rgba(150, 96, 219, 0.15);
  color: #9660db;
  border: 1px solid rgba(150, 96, 219, 0.25);
}

.docs-details {
  border: 1px solid rgba(150, 96, 219, 0.15);
  border-radius: 10px;
  margin-bottom: 12px;
  background: rgba(150, 96, 219, 0.03);
  transition: background 0.2s;
}

.docs-details[open] {
  background: rgba(150, 96, 219, 0.05);
}

.docs-details__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.docs-details__summary::-webkit-details-marker { display: none; }

.docs-details__summary h3,
.docs-details__summary h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #e0d6eb;
  letter-spacing: 0.01em;
}

.docs-details__summary svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  stroke: #5a5168;
  transition: transform 0.25s ease;
}

.docs-details[open] > .docs-details__summary svg {
  transform: rotate(180deg);
}

.docs-details__content {
  padding: 0 18px 16px;
}

.docs-details__content p {
  font-size: 14px;
  line-height: 1.75;
  color: #afa5bd;
  margin: 0 0 12px;
}

.docs-details__content p:last-child {
  margin-bottom: 0;
}

.docs-details__content h4 {
  font-size: 13px;
  font-weight: 600;
  color: #c59df0;
  margin: 16px 0 6px;
}

.docs-details__content h4:first-child {
  margin-top: 0;
}

.docs-details__content ul {
  margin: 8px 0 12px;
  padding-left: 20px;
}

.docs-details__content li {
  font-size: 14px;
  line-height: 1.75;
  color: #afa5bd;
  margin-bottom: 4px;
}

.docs-details__content code {
  font-size: 13px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(150, 96, 219, 0.12);
  color: #c59df0;
}

/* ======================================================
   Table
   ====================================================== */

.docs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.6;
}

.docs-table th,
.docs-table td {
  padding: 11px 16px;
  text-align: left;
  border: 1px solid rgba(150, 96, 219, 0.15);
}

.docs-table thead th {
  background: rgba(150, 96, 219, 0.1);
  color: #c59df0;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.docs-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.015);
}

.docs-table tbody td {
  color: #afa5bd;
}

/* ======================================================
   Pagination (prev / next page)
   ====================================================== */

.docs-pagination {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 60px;
  padding-top: 32px;
  border-top: 1px solid rgba(150, 96, 219, 0.12);
}

.docs-pagination__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  border: 1px solid rgba(150, 96, 219, 0.12);
  border-radius: 10px;
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
}

.docs-pagination__item:hover {
  border-color: rgba(150, 96, 219, 0.3);
  background: rgba(150, 96, 219, 0.04);
}

.docs-pagination__item--next {
  text-align: right;
}

.docs-pagination__label {
  font-size: 11px;
  color: #5a5168;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.docs-pagination__title {
  font-size: 14px;
  font-weight: 600;
  color: #9660db;
  -webkit-text-fill-color: #9660db;
}

/* ======================================================
   Right Table of Contents
   ====================================================== */

.docs-toc {
  padding: 44px 20px 44px 24px;
  position: sticky;
  top: 83px;
  height: fit-content;
  max-height: calc(100vh - 83px);
  overflow-y: auto;
  box-sizing: border-box;
  border-left: 1px solid rgba(150, 96, 219, 0.1);
}

.docs-toc__title {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #8a7e9e;
  margin-bottom: 14px;
}

.docs-toc__list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.docs-toc__link {
  display: block;
  font-size: 12.5px;
  font-weight: 400;
  color: #a89cba;
  line-height: 1.55;
  padding: 4px 0 4px 12px;
  border-left: 2px solid transparent;
  transition: color 0.18s, border-color 0.18s;
}

.docs-toc__link:hover {
  color: #d8d0e4;
}

.docs-toc__link.is-active {
  color: #c59df0;
  border-left-color: #9660db;
  font-weight: 500;
}

.docs-toc__list .docs-toc__list {
  gap: 0;
}

.docs-toc__list .docs-toc__list .docs-toc__link {
  padding-left: 24px;
  font-size: 12px;
  color: #978bab;
}

.docs-toc__list .docs-toc__list .docs-toc__link:hover {
  color: #d8d0e4;
}

.docs-toc__list .docs-toc__list .docs-toc__link.is-active {
  color: #c59df0;
}

/* ======================================================
   Mobile Sidebar Overlay
   ====================================================== */

.docs-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 7, 20, 0.7);
  z-index: 9;
  backdrop-filter: blur(2px);
}

.docs-sidebar-overlay.is-visible {
  display: block;
}

/* ======================================================
   Footer tweaks for docs page
   ====================================================== */

.docs-footer-wrap {
  border-top: 1px solid rgba(150, 96, 219, 0.12);
}

/* ======================================================
   API Reference
   ====================================================== */

.docs-api-endpoint {
  border: 1px solid rgba(150, 96, 219, 0.15);
  border-radius: 10px;
  margin-bottom: 16px;
  background: rgba(150, 96, 219, 0.03);
  overflow: hidden;
}

/* When opened, drop the outer frame so nested tables / code blocks */
/* don't read as boxes-inside-a-box. Keep a subtle tint on the summary */
/* row so the header is still distinguishable from the content below. */
.docs-api-endpoint[open] {
  background: transparent;
  border-color: transparent;
}

.docs-api-endpoint[open] > summary {
  background: rgba(150, 96, 219, 0.05);
  border-radius: 8px;
}

.docs-api-endpoint[open] .docs-api-body {
  border-top: none;
  padding-top: 12px;
}

.docs-api-endpoint > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
}

.docs-api-endpoint > summary::-webkit-details-marker { display: none; }

.docs-api-endpoint > summary .docs-api-chevron {
  margin-left: auto;
  width: 16px;
  height: 16px;
  color: #5a5168;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.docs-api-endpoint[open] > summary .docs-api-chevron {
  transform: rotate(180deg);
}

.docs-api-method {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Fira Code', 'Cascadia Code', monospace;
  letter-spacing: 0.04em;
  border-radius: 4px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.docs-api-method--get {
  background: rgba(76, 175, 80, 0.15);
  color: #66bb6a;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.docs-api-method--post {
  background: rgba(66, 165, 245, 0.15);
  color: #64b5f6;
  border: 1px solid rgba(66, 165, 245, 0.3);
}

.docs-api-method--put {
  background: rgba(255, 183, 77, 0.15);
  color: #ffb74d;
  border: 1px solid rgba(255, 183, 77, 0.3);
}

.docs-api-method--patch {
  background: rgba(150, 96, 219, 0.15);
  color: #b388ff;
  border: 1px solid rgba(150, 96, 219, 0.3);
}

.docs-api-method--delete {
  background: rgba(239, 83, 80, 0.15);
  color: #ef5350;
  border: 1px solid rgba(239, 83, 80, 0.3);
}

.docs-api-path {
  font-family: 'Fira Code', 'Cascadia Code', monospace;
  font-size: 13px;
  font-weight: 500;
  color: #d0c8db;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.docs-api-path-param {
  color: #ffb74d;
}

.docs-api-summary {
  font-size: 13px;
  color: #7a6f8a;
  margin-left: auto;
  padding-right: 8px;
  white-space: nowrap;
}

.docs-api-body {
  padding: 0 20px 20px;
  border-top: 1px solid rgba(150, 96, 219, 0.1);
}

.docs-api-body p {
  font-size: 14px;
  color: #afa5bd;
  line-height: 1.65;
  margin: 16px 0 0;
}

.docs-api-section-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7a6f8a;
  margin: 20px 0 10px;
}

.docs-api-body .docs-table {
  font-size: 13px;
}

.docs-api-body .docs-table code {
  font-size: 12px;
  background: rgba(150, 96, 219, 0.1);
  padding: 1px 5px;
  border-radius: 3px;
  color: #c59df0;
}

.docs-api-body .docs-code-block {
  margin: 12px 0;
}

.docs-api-required {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: #ef5350;
  letter-spacing: 0.05em;
}

.docs-api-optional {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: #5a5168;
  letter-spacing: 0.05em;
}

/* ======================================================
   Responsive
   ====================================================== */

@media (max-width: 1160px) {
  .docs-layout {
    grid-template-columns: 248px 1fr;
  }
  .docs-toc {
    display: none;
  }
  .docs-main {
    padding: 44px 48px 80px;
  }
}

@media (max-width: 768px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: fixed;
    top: 64px;
    left: 0;
    height: calc(100vh - 64px);
    z-index: 10;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    width: 280px;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
  }

  .docs-sidebar.is-open {
    transform: translateX(0);
  }

  .docs-mobile-nav-btn {
    display: flex;
  }

  .docs-main {
    padding: 32px 20px 60px;
  }

  .docs-feature-grid {
    grid-template-columns: 1fr;
  }

  .docs-pagination {
    grid-template-columns: 1fr;
  }

  .docs-page-title {
    font-size: 26px;
  }

  .docs-page-subtitle {
    font-size: 15px;
  }
}
