/* No external font import: this file is bundled app-wide via _app.js, so a
   Google Fonts @import would render-block every route. The docs use the fonts
   already shipped by the app plus system fallbacks. */

body.api-docs-route {
  --background: 260 18% 7%;
  --foreground: 240 5% 90%;
  --card: 260 14% 10%;
  --card-foreground: 240 5% 90%;
  --popover: 260 14% 10%;
  --popover-foreground: 240 5% 90%;
  --primary: 270 100% 73%;
  --primary-foreground: 260 18% 7%;
  --secondary: 165 58% 61%;
  --secondary-foreground: 260 18% 7%;
  --muted: 260 12% 14%;
  --muted-foreground: 240 6% 66%;
  --accent: 260 12% 16%;
  --accent-foreground: 240 5% 90%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 210 40% 98%;
  --border: 260 10% 18%;
  --input: 260 10% 18%;
  --ring: 270 100% 73%;
  --radius: 0.5rem;
  --sidebar-background: 260 16% 9%;
  --sidebar-foreground: 240 5% 70%;
  --sidebar-primary: 270 100% 73%;
  --sidebar-primary-foreground: 0 0% 100%;
  --sidebar-accent: 260 12% 14%;
  --sidebar-accent-foreground: 240 5% 90%;
  --sidebar-border: 260 10% 16%;
  --sidebar-ring: 270 100% 73%;
  --code-bg: 260 14% 10%;
  --code-border: 260 10% 18%;
  --code-text: 165 58% 61%;
  --gradient-primary: linear-gradient(135deg, hsl(270, 100%, 73%), hsl(165, 58%, 61%));
  --gradient-cta: linear-gradient(90deg, hsl(270, 100%, 73%), hsl(165, 58%, 61%));
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Inter', 'Poppins', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Deep-linked headings should not hide under the fixed mobile top bar. */
body.api-docs-route .doc-prose h2,
body.api-docs-route .doc-prose h3 {
  scroll-margin-top: 4.5rem;
}

body.api-docs-route code,
body.api-docs-route pre,
body.api-docs-route kbd,
body.api-docs-route .font-mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono',
    monospace;
}

body.api-docs-route .api-docs-theme {
  min-height: 100vh;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
}

body.api-docs-route .doc-prose {
  color: hsl(var(--foreground));
  line-height: 1.625;
}

body.api-docs-route .doc-prose h1 {
  margin: 0 0 0.5rem;
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

body.api-docs-route .doc-prose h2 {
  margin: 2.5rem 0 1rem;
  border-top: 1px solid hsl(var(--border));
  padding-top: 1.5rem;
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

body.api-docs-route .doc-prose h2:first-child {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}

body.api-docs-route .doc-prose h3 {
  margin: 2rem 0 0.75rem;
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 600;
}

body.api-docs-route .doc-prose h4 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 600;
}

body.api-docs-route .doc-prose p {
  margin: 0 0 1rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.75rem;
}

body.api-docs-route .doc-prose ul,
body.api-docs-route .doc-prose ol {
  margin: 0 0 1rem 1rem;
}

body.api-docs-route .doc-prose ul {
  list-style: none;
  padding-left: 0;
}

body.api-docs-route .doc-prose ol {
  list-style: decimal;
  padding-left: 1rem;
}

body.api-docs-route .doc-prose ul li,
body.api-docs-route .doc-prose ol li {
  color: hsl(var(--muted-foreground));
  line-height: 1.75rem;
}

body.api-docs-route .doc-prose ul li {
  position: relative;
  padding-left: 1rem;
}

body.api-docs-route .doc-prose ol li {
  padding-left: 0.25rem;
}

body.api-docs-route .doc-prose li + li {
  margin-top: 0.375rem;
}

body.api-docs-route .doc-prose ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: hsl(var(--primary));
}

body.api-docs-route .doc-prose ol li::marker {
  color: hsl(var(--primary));
  font-weight: 500;
}

body.api-docs-route .doc-prose code:not(pre code) {
  border: 1px solid hsl(var(--code-border));
  border-radius: 0.25rem;
  background: hsl(var(--code-bg));
  padding: 0.125rem 0.375rem;
  font-size: 0.875rem;
  color: hsl(var(--code-text));
}

body.api-docs-route .doc-prose pre {
  margin: 0 0 1rem;
  overflow-x: auto;
  border: 1px solid hsl(var(--code-border));
  border-radius: 0.5rem;
  background: hsl(var(--code-bg));
  padding: 1rem;
}

body.api-docs-route .doc-prose pre code {
  background: transparent;
  padding: 0;
  font-size: 0.875rem;
  color: hsl(var(--code-text));
}

body.api-docs-route .doc-prose table {
  width: 100%;
  margin: 0 0 1.5rem;
  border-collapse: collapse;
  font-size: 0.875rem;
}

body.api-docs-route .doc-prose thead {
  border-bottom: 1px solid hsl(var(--border));
}

body.api-docs-route .doc-prose th {
  padding: 0.625rem 0.75rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: hsl(var(--foreground));
}

body.api-docs-route .doc-prose td {
  border-bottom: 1px solid hsl(var(--border) / 0.5);
  padding: 0.625rem 0.75rem;
  color: hsl(var(--muted-foreground));
}

body.api-docs-route .doc-prose tr:last-child td {
  border-bottom: 0;
}

body.api-docs-route .doc-prose strong {
  font-weight: 500;
  color: hsl(var(--foreground));
}

body.api-docs-route .doc-prose a:not(.no-underline) {
  color: hsl(var(--primary));
}

body.api-docs-route .doc-prose a:not(.no-underline):hover {
  text-decoration: underline;
}

body.api-docs-route .doc-prose blockquote {
  margin: 1rem 0;
  border-left: 2px solid hsl(var(--primary));
  padding-left: 1rem;
  font-style: italic;
  color: hsl(var(--muted-foreground));
}

body.api-docs-route .sidebar-link {
  display: block;
  border-radius: 0.375rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  color: hsl(var(--sidebar-foreground));
  transition: background-color 150ms ease, color 150ms ease;
}

body.api-docs-route .sidebar-link:hover {
  background: hsl(var(--sidebar-accent));
  color: hsl(var(--sidebar-accent-foreground));
}

body.api-docs-route .sidebar-link-active {
  background: hsl(var(--sidebar-accent));
  color: hsl(var(--sidebar-primary));
  font-weight: 500;
}

body.api-docs-route .sidebar-section-title {
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

/* Endpoint reference list (Mintlify-style method pills) */
body.api-docs-route .doc-endpoint-list {
  margin: 0 0 1.5rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.625rem;
  overflow: hidden;
}

body.api-docs-route .doc-endpoint-row {
  padding: 0.75rem 1rem;
  border-top: 1px solid hsl(var(--border) / 0.6);
}

body.api-docs-route .doc-endpoint-row:first-child {
  border-top: 0;
}

body.api-docs-route .doc-endpoint-head {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
}

body.api-docs-route .doc-endpoint-path {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  word-break: break-all;
}

body.api-docs-route .doc-endpoint-body {
  margin-top: 0.375rem;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

body.api-docs-route .doc-endpoint-purpose {
  font-size: 0.875rem;
  color: hsl(var(--foreground));
}

body.api-docs-route .doc-endpoint-notes {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.4;
}

body.api-docs-route .doc-method {
  display: inline-block;
  min-width: 3.25rem;
  text-align: center;
  border-radius: 0.3125rem;
  padding: 0.125rem 0.5rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.4;
}

body.api-docs-route .doc-method-get {
  background: hsl(165 58% 61% / 0.15);
  color: hsl(165 58% 61%);
}

body.api-docs-route .doc-method-post {
  background: hsl(270 100% 73% / 0.15);
  color: hsl(270 100% 78%);
}

body.api-docs-route .doc-method-patch {
  background: hsl(38 92% 60% / 0.15);
  color: hsl(38 92% 62%);
}

body.api-docs-route .doc-method-put {
  background: hsl(210 90% 62% / 0.15);
  color: hsl(210 90% 66%);
}

body.api-docs-route .doc-method-delete {
  background: hsl(0 84% 60% / 0.15);
  color: hsl(0 84% 66%);
}

body.api-docs-route .doc-toc-title {
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

body.api-docs-route .doc-toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid hsl(var(--border));
}

body.api-docs-route .doc-toc-list li {
  margin: 0;
}

body.api-docs-route .doc-toc-link {
  display: block;
  margin-left: -1px;
  border-left: 1px solid transparent;
  padding: 0.25rem 0 0.25rem 0.875rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: hsl(var(--muted-foreground));
  transition: color 150ms ease, border-color 150ms ease;
}

body.api-docs-route .doc-toc-link-sub {
  padding-left: 1.625rem;
  font-size: 0.78125rem;
}

body.api-docs-route .doc-toc-link:hover {
  color: hsl(var(--foreground));
}

body.api-docs-route .doc-toc-link-active {
  border-left-color: hsl(var(--primary));
  color: hsl(var(--primary));
  font-weight: 500;
}

body.api-docs-route .custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}

body.api-docs-route .custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

body.api-docs-route .custom-scrollbar::-webkit-scrollbar-thumb {
  background: hsl(var(--border));
  border-radius: 3px;
}

body.api-docs-route .custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--muted-foreground));
}

body.api-docs-route .custom-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: hsl(var(--border)) transparent;
}
