.docs-layout {
  display: flex;
  min-height: calc(100vh - 70px);
}

.docs-sidebar {
  width: 260px;
  min-width: 260px;
  background: var(--stoa-white);
  border-right: 1px solid var(--stoa-light-tan);
  padding: 2rem 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.docs-sidebar-inner {
  padding: 0 1.5rem;
}

.docs-sidebar-title {
  font-family: 'Castoro', Georgia, serif;
  font-size: 1.1rem;
  color: var(--stoa-dark);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--stoa-light-tan);
}

.docs-sidebar-title a {
  color: var(--stoa-dark);
  text-decoration: none;
}

.docs-sidebar-title a:hover {
  color: var(--stoa-yellow);
}

.docs-nav-group {
  margin-bottom: 1.25rem;
}

.docs-nav-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--stoa-dark-tan);
  margin-bottom: 0.5rem;
  padding-left: 0.75rem;
}

.docs-nav-link {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: var(--stoa-text-body);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: all 0.15s ease;
  line-height: 1.4;
}

.docs-nav-link:hover {
  color: var(--stoa-yellow);
  background: rgba(166, 120, 24, 0.06);
}

.docs-nav-link.active {
  color: var(--stoa-yellow-dark);
  background: rgba(166, 120, 24, 0.1);
  font-weight: 600;
}

.docs-content {
  flex: 1;
  min-width: 0;
  padding: 2.5rem 3rem 4rem;
  max-width: 900px;
}

.docs-content h1 {
  font-family: 'Castoro', Georgia, serif;
  font-size: 2.25rem;
  color: var(--stoa-dark);
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.docs-content h2 {
  font-family: 'Castoro', Georgia, serif;
  font-size: 1.6rem;
  color: var(--stoa-dark);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--stoa-light-tan);
}

.docs-content h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--stoa-dark);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.docs-content p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--stoa-text-body);
  margin-bottom: 1rem;
}

.docs-content ul, .docs-content ol {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--stoa-text-body);
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.docs-content li {
  margin-bottom: 0.35rem;
}

.docs-lead {
  font-size: 1.1rem;
  color: var(--stoa-text-body);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.docs-callout {
  background: rgba(166, 120, 24, 0.06);
  border-left: 3px solid var(--stoa-yellow);
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.docs-callout code {
  background: rgba(166, 120, 24, 0.12);
  color: var(--stoa-yellow-dark);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.85em;
  font-family: 'JetBrains Mono', 'Fira Code', 'Source Code Pro', monospace;
}

.docs-callout-info {
  background: rgba(59, 130, 246, 0.06);
  border-left-color: #3b82f6;
}

.docs-callout-warn {
  background: rgba(245, 158, 11, 0.06);
  border-left-color: #f59e0b;
}

.docs-base-url {
  background: var(--stoa-dark);
  color: #e5e7eb;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.docs-base-url code {
  color: #a3e635;
  background: none;
  padding: 0;
}

.docs-inline-code {
  background: rgba(166, 120, 24, 0.08);
  color: var(--stoa-yellow-dark);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.85em;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.docs-code-block {
  position: relative;
  margin-bottom: 1.5rem;
}

.docs-code-block pre {
  background: #1e1e2e;
  color: #cdd6f4;
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  font-family: 'JetBrains Mono', 'Fira Code', 'Source Code Pro', monospace;
  font-size: 0.82rem;
  line-height: 1.65;
  overflow-x: auto;
  margin: 0;
  border: 1px solid rgba(255,255,255,0.06);
}

.docs-code-block pre code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: inherit;
}

.docs-copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: #94a3b8;
  padding: 0.3rem 0.6rem;
  border-radius: 5px;
  font-size: 0.72rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.15s ease;
  z-index: 2;
}

.docs-copy-btn:hover {
  background: rgba(255,255,255,0.2);
  color: #e2e8f0;
}

.docs-copy-btn.copied {
  background: rgba(163, 230, 53, 0.2);
  color: #a3e635;
  border-color: rgba(163, 230, 53, 0.3);
}

.docs-lang-tabs {
  display: flex;
  gap: 0;
  background: #1e1e2e;
  border-radius: 8px 8px 0 0;
  border: 1px solid rgba(255,255,255,0.06);
  border-bottom: none;
  overflow: hidden;
}

.docs-lang-tab {
  padding: 0.5rem 1.1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: #94a3b8;
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
}

.docs-lang-tab:hover {
  color: #cbd5e1;
  background: rgba(255,255,255,0.04);
}

.docs-lang-tab.active {
  color: #a3e635;
  border-bottom-color: #a3e635;
  background: rgba(255,255,255,0.06);
}

.docs-tabbed-code .docs-code-block pre {
  border-radius: 0 0 8px 8px;
  border-top: none;
}

.docs-tabbed-code .tab-pane {
  display: none;
}

.docs-tabbed-code .tab-pane.active {
  display: block;
}

.docs-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.docs-card {
  background: var(--stoa-white);
  border: 1px solid var(--stoa-light-tan);
  border-radius: 10px;
  padding: 1.5rem;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.docs-card:hover {
  border-color: var(--stoa-yellow);
  box-shadow: 0 4px 16px rgba(166, 120, 24, 0.1);
  transform: translateY(-2px);
  color: inherit;
  text-decoration: none;
}

.docs-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(166, 120, 24, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--stoa-yellow);
  font-size: 1.2rem;
}

.docs-card-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--stoa-dark);
  margin-bottom: 0.4rem;
}

.docs-card-desc {
  font-size: 0.85rem;
  color: var(--stoa-text-muted);
  line-height: 1.5;
  margin: 0;
}

.docs-hero {
  padding: 2.5rem 0 2rem;
  margin-bottom: 1.5rem;
}

.docs-hero-badge {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--stoa-yellow-dark);
  background: rgba(166, 120, 24, 0.1);
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.docs-table th {
  background: rgba(166, 120, 24, 0.06);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--stoa-dark);
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 2px solid var(--stoa-light-tan);
}

.docs-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--stoa-light-tan);
  color: var(--stoa-text-body);
  vertical-align: top;
}

.docs-table tr:last-child td {
  border-bottom: none;
}

.docs-badge {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.docs-badge-post {
  background: rgba(34, 197, 94, 0.15);
  color: #16a34a;
}

.docs-badge-get {
  background: rgba(59, 130, 246, 0.15);
  color: #2563eb;
}

.docs-badge-beta {
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
}

.docs-badge-required {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
}

.docs-badge-optional {
  background: rgba(107, 114, 128, 0.12);
  color: #6b7280;
}

.docs-response-annotation {
  font-size: 0.82rem;
  color: var(--stoa-text-muted);
  border-left: 2px solid var(--stoa-light-tan);
  padding-left: 1rem;
  margin: 0.5rem 0 0.75rem;
}

.docs-field-table {
  width: 100%;
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
}

.docs-field-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(229, 224, 213, 0.5);
  vertical-align: top;
}

.docs-field-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: var(--stoa-yellow-dark);
  white-space: nowrap;
}

.docs-field-type {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--stoa-text-muted);
}

.docs-next-links {
  display: flex;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--stoa-light-tan);
}

.docs-next-link {
  flex: 1;
  display: block;
  padding: 1rem 1.25rem;
  border: 1px solid var(--stoa-light-tan);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.docs-next-link:hover {
  border-color: var(--stoa-yellow);
  text-decoration: none;
  background: rgba(166, 120, 24, 0.03);
}

.docs-next-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--stoa-text-muted);
  margin-bottom: 0.25rem;
}

.docs-next-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--stoa-dark);
}

.docs-mobile-toggle {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--stoa-yellow);
  color: white;
  border: none;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1000;
  cursor: pointer;
}

@media (max-width: 991.98px) {
  .docs-sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    z-index: 999;
    transition: left 0.25s ease;
    box-shadow: none;
  }

  .docs-sidebar.open {
    left: 0;
    box-shadow: 4px 0 24px rgba(0,0,0,0.1);
  }

  .docs-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 998;
  }

  .docs-sidebar-overlay.open {
    display: block;
  }

  .docs-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .docs-content {
    padding: 1.5rem 1.25rem 3rem;
  }

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

  .docs-next-links {
    flex-direction: column;
  }
}

.docs-stoa-footer {
  margin-top: 0;
}
