/* ---- Inline <code> in prose: use Mintlify's native vars so it looks
       identical to the original (rgb(var(--gray-100)/.5) on light,
       rgb(255 255 255/.05) on dark). The vars --gray-100 / --gray-600 are
       defined inline on <html>. Only ensure ::before/::after are blank. */
.prose :not(pre) > code::before,
.prose :not(pre) > code::after,
.mdx-content :not(pre) > code::before,
.mdx-content :not(pre) > code::after {
  content: none !important;
}

/* ---- <pre> code blocks (match Mintlify light-codeblock styling) ---- */
.prose pre,
.mdx-content pre,
.tab-panel pre,
[data-component-part="tab-content"] pre {
  background-color: #ffffff !important;
  color: rgb(36, 41, 46);
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 1rem !important;
  padding: 1.1rem 3.25rem 1.1rem 1.25rem !important;
  overflow-x: auto !important;
  font-size: 0.9375rem !important;
  line-height: 1.65 !important;
  margin: 1.25rem 0 1.5rem !important;
  position: relative !important;
  font-family: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Monaco, Consolas, monospace !important;
}
html.dark .prose pre,
html.dark .mdx-content pre,
html.dark .tab-panel pre,
html.dark [data-component-part="tab-content"] pre {
  background-color: #0d1117 !important;
  color: #c9d1d9;
  border-color: rgba(255, 255, 255, 0.1) !important;
}
.prose pre > code,
.mdx-content pre > code {
  background-color: transparent !important;
  color: inherit !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  font-size: inherit !important;
  font-weight: normal !important;
  font-family: inherit !important;
}
.prose pre > code::before,
.prose pre > code::after,
.mdx-content pre > code::before,
.mdx-content pre > code::after {
  content: none !important;
}

/* Copy button on every <pre> */
.pre-copy-btn {
  position: absolute;
  top: 0.625rem;
  right: 0.625rem;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  background: transparent;
  border: 0;
  color: rgba(107, 114, 128, 0.85);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
  z-index: 2;
}
.pre-copy-btn:hover {
  background-color: rgba(0, 0, 0, 0.06);
  color: rgb(55, 65, 81);
}
html.dark .pre-copy-btn { color: rgba(255, 255, 255, 0.45); }
html.dark .pre-copy-btn:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
}
.pre-copy-btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pre-copy-btn[data-copied="true"] { color: rgb(22, 163, 74); }
html.dark .pre-copy-btn[data-copied="true"] { color: rgb(74, 222, 128); }

/* highlight.js — keep our pre wrapper, only color the tokens */
.prose pre code.hljs,
.mdx-content pre code.hljs {
  background: transparent !important;
  padding: 0 !important;
}

/* ---- Copy-page button inside each section header ---- */
.mintlify-page { position: relative; }
.page-header { position: relative; }
.copy-page-btn {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgb(55, 65, 81);
  background: rgb(255, 255, 255);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.75rem;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
  z-index: 5;
}
.copy-page-btn:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.18);
}
html.dark .copy-page-btn {
  color: rgb(209, 213, 219);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}
html.dark .copy-page-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}
.copy-page-btn svg { width: 16px; height: 16px; }
.copy-page-btn[data-copied="true"] .copy-page-label::after { content: "ied!"; }
