/*fern-site-stylesheet*/:root {
  --header-height: 64px;
  --header-height-real: 64px;
  --mobile-header-height-real: 64px;
  --content-width: 640px;
  --sidebar-width: 288px;
  --page-width: 100vw;
  --logo-height: 22px;
  --font-body: ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  --font-heading: ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  --font-code: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

:root {
  --typography-body-font-family: var(--font-body);
  --typography-heading-font-family: var(--font-heading);
  --typography-code-font-family: var(--font-code);
}


.light, :root {
  --accent-1: #fcfdfe;
  --accent-2: #f6faff;
  --accent-3: #eaf2ff;
  --accent-4: #dbeaff;
  --accent-5: #c9dfff;
  --accent-6: #b5d2ff;
  --accent-7: #9abfff;
  --accent-8: #77a4ff;
  --accent-9: #0000c6;
  --accent-10: #002ddc;
  --accent-11: #1c53e6;
  --accent-12: #122b6a;

  --accent-a1: #0055aa03;
  --accent-a2: #0072ff09;
  --accent-a3: #0062ff15;
  --accent-a4: #006bff24;
  --accent-a5: #0068ff36;
  --accent-a6: #0164ff4a;
  --accent-a7: #005eff65;
  --accent-a8: #0055ff88;
  --accent-a9: #0000c6;
  --accent-a10: #002ddc;
  --accent-a11: #003ee3e3;
  --accent-a12: #001b5fed;

  --accent-contrast: #fff;
  --accent-surface: #f4f9ffcc;
  --accent-indicator: #0000c6;
  --accent-track: #0000c6;
}

@supports (color: color(display-p3 1 1 1)) {
  @media (color-gamut: p3) {
    .light, :root {
      --accent-1: oklch(99.4% 0.002 264.1);
      --accent-2: oklch(98.3% 0.0107 264.1);
      --accent-3: oklch(96.1% 0.0228 264.1);
      --accent-4: oklch(93.5% 0.045 264.1);
      --accent-5: oklch(90.3% 0.068 264.1);
      --accent-6: oklch(86.3% 0.095 264.1);
      --accent-7: oklch(80.7% 0.1156 264.1);
      --accent-8: oklch(73% 0.1507 264.1);
      --accent-9: oklch(37.4% 0.2589 264.1);
      --accent-10: oklch(43.7% 0.2589 264.1);
      --accent-11: oklch(51% 0.23 264.1);
      --accent-12: oklch(31.3% 0.1139 264.1);

      --accent-a1: color(display-p3 0.0235 0.349 0.6745 / 0.012);
      --accent-a2: color(display-p3 0.0196 0.3882 0.8784 / 0.032);
      --accent-a3: color(display-p3 0.0078 0.3569 0.9529 / 0.079);
      --accent-a4: color(display-p3 0.0078 0.3686 0.9412 / 0.13);
      --accent-a5: color(display-p3 0.0078 0.3451 0.9412 / 0.197);
      --accent-a6: color(display-p3 0.0039 0.3255 0.9451 / 0.267);
      --accent-a7: color(display-p3 0.0039 0.3098 0.949 / 0.369);
      --accent-a8: color(display-p3 0.0039 0.2784 0.9451 / 0.499);
      --accent-a9: color(display-p3 0 0 0.7451);
      --accent-a10: color(display-p3 0 0.1216 0.8157 / 0.942);
      --accent-a11: color(display-p3 0 0.1804 0.8431 / 0.828);
      --accent-a12: color(display-p3 0 0.0784 0.3373 / 0.906);

      --accent-contrast: #fff;
      --accent-surface: color(display-p3 0.9569 0.9725 1 / 0.8);
      --accent-indicator: oklch(37.4% 0.2589 264.1);
      --accent-track: oklch(37.4% 0.2589 264.1);
    }
  }
}


.light, :root {
  --grayscale-1: #fdfcfd;
  --grayscale-2: #faf9fb;
  --grayscale-3: #f2eff3;
  --grayscale-4: #eae7ec;
  --grayscale-5: #e3dfe6;
  --grayscale-6: #dbd8e0;
  --grayscale-7: #d0cdd7;
  --grayscale-8: #bcbac7;
  --grayscale-9: #8e8c99;
  --grayscale-10: #84828e;
  --grayscale-11: #65636d;
  --grayscale-12: #211f26;

  --grayscale-a1: #55005503;
  --grayscale-a2: #2b005506;
  --grayscale-a3: #30004010;
  --grayscale-a4: #20003618;
  --grayscale-a5: #20003820;
  --grayscale-a6: #14003527;
  --grayscale-a7: #10003332;
  --grayscale-a8: #08003145;
  --grayscale-a9: #05001d73;
  --grayscale-a10: #0500197d;
  --grayscale-a11: #0400119c;
  --grayscale-a12: #020008e0;

  --grayscale-contrast: #000;
  --grayscale-surface: #ffffffcc;
  --grayscale-indicator: #8e8c99;
  --grayscale-track: #8e8c99;
}

@supports (color: color(display-p3 1 1 1)) {
  @media (color-gamut: p3) {
    .light, :root {
      --grayscale-1: color(display-p3 0.991 0.988 0.992);
      --grayscale-2: color(display-p3 0.98 0.976 0.984);
      --grayscale-3: color(display-p3 0.946 0.938 0.952);
      --grayscale-4: color(display-p3 0.915 0.906 0.925);
      --grayscale-5: color(display-p3 0.886 0.876 0.901);
      --grayscale-6: color(display-p3 0.856 0.846 0.875);
      --grayscale-7: color(display-p3 0.814 0.804 0.84);
      --grayscale-8: color(display-p3 0.735 0.728 0.777);
      --grayscale-9: color(display-p3 0.555 0.549 0.596);
      --grayscale-10: color(display-p3 0.514 0.508 0.552);
      --grayscale-11: color(display-p3 0.395 0.388 0.424);
      --grayscale-12: color(display-p3 0.128 0.122 0.147);

      --grayscale-a1: #55005503;
      --grayscale-a2: #2b005506;
      --grayscale-a3: #30004010;
      --grayscale-a4: #20003618;
      --grayscale-a5: #20003820;
      --grayscale-a6: #14003527;
      --grayscale-a7: #10003332;
      --grayscale-a8: #08003145;
      --grayscale-a9: #05001d73;
      --grayscale-a10: #0500197d;
      --grayscale-a11: #0400119c;
      --grayscale-a12: #020008e0;

      --grayscale-contrast: #000;
      --grayscale-surface: color(display-p3 1 1 1 / 80%);
      --grayscale-indicator: color(display-p3 0.555 0.549 0.596);
      --grayscale-track: color(display-p3 0.555 0.549 0.596);
    }
  }
}


.dark {
  --accent-1: #060c19;
  --accent-2: #0e1627;
  --accent-3: #11234f;
  --accent-4: #152c6b;
  --accent-5: #1b377f;
  --accent-6: #244290;
  --accent-7: #2c4ea5;
  --accent-8: #335bc2;
  --accent-9: #3267ff;
  --accent-10: #2658ef;
  --accent-11: #8cb4ff;
  --accent-12: #d1e2ff;

  --accent-a1: #00b40003;
  --accent-a2: #4ed6f80f;
  --accent-a3: #2874fc3c;
  --accent-a4: #296afd5b;
  --accent-a5: #306ffe71;
  --accent-a6: #3c76fe84;
  --accent-a7: #427aff9b;
  --accent-a8: #4178febc;
  --accent-a9: #3267ff;
  --accent-a10: #285dfeee;
  --accent-a11: #8cb4ff;
  --accent-a12: #d1e2ff;

  --accent-contrast: #fff;
  --accent-surface: #12223480;
  --accent-indicator: #3267ff;
  --accent-track: #3267ff;
}

@supports (color: color(display-p3 1 1 1)) {
  @media (color-gamut: p3) {
    .dark {
      --accent-1: oklch(15.5% 0.0301 265);
      --accent-2: oklch(20.3% 0.0368 265);
      --accent-3: oklch(26.9% 0.0844 265);
      --accent-4: oklch(31.7% 0.1135 265);
      --accent-5: oklch(36.1% 0.1273 265);
      --accent-6: oklch(40.3% 0.1347 265);
      --accent-7: oklch(45% 0.1465 265);
      --accent-8: oklch(50.3% 0.1671 265);
      --accent-9: oklch(57.4% 0.2328 265);
      --accent-10: oklch(53% 0.2328 265);
      --accent-11: oklch(77.7% 0.1502 265);
      --accent-12: oklch(91.1% 0.0521 265);

      --accent-a1: color(display-p3 0 0.9137 0 / 0.009);
      --accent-a2: color(display-p3 0.4549 0.8667 0.9961 / 0.057);
      --accent-a3: color(display-p3 0.2353 0.4824 1 / 0.222);
      --accent-a4: color(display-p3 0.2235 0.4196 1 / 0.34);
      --accent-a5: color(display-p3 0.2627 0.4471 1 / 0.422);
      --accent-a6: color(display-p3 0.302 0.4745 1 / 0.496);
      --accent-a7: color(display-p3 0.3255 0.4902 1 / 0.583);
      --accent-a8: color(display-p3 0.3176 0.4863 1 / 0.705);
      --accent-a9: color(display-p3 0.2588 0.4157 1 / 0.961);
      --accent-a10: color(display-p3 0.2196 0.3765 1 / 0.892);
      --accent-a11: color(display-p3 0.5961 0.7216 1 / 0.974);
      --accent-a12: color(display-p3 0.8431 0.8941 1 / 0.987);

      --accent-contrast: #fff;
      --accent-surface: color(display-p3 0.0863 0.1333 0.1961 / 0.5);
      --accent-indicator: oklch(57.4% 0.2328 265);
      --accent-track: oklch(57.4% 0.2328 265);
    }
  }
}


.dark {
  --grayscale-1: #111113;
  --grayscale-2: #18191b;
  --grayscale-3: #212225;
  --grayscale-4: #272a2d;
  --grayscale-5: #2e3135;
  --grayscale-6: #363a3f;
  --grayscale-7: #43484e;
  --grayscale-8: #5a6169;
  --grayscale-9: #696e77;
  --grayscale-10: #777b84;
  --grayscale-11: #b0b4ba;
  --grayscale-12: #edeef0;

  --grayscale-a1: #00000000;
  --grayscale-a2: #d8f4f609;
  --grayscale-a3: #ddeaf814;
  --grayscale-a4: #d3edf81d;
  --grayscale-a5: #d9edfe25;
  --grayscale-a6: #d6ebfd30;
  --grayscale-a7: #d9edff40;
  --grayscale-a8: #d9edff5d;
  --grayscale-a9: #dfebfd6d;
  --grayscale-a10: #e5edfd7b;
  --grayscale-a11: #f1f7feb5;
  --grayscale-a12: #fcfdffef;

  --grayscale-contrast: #fff;
  --grayscale-surface: rgba(0, 0, 0, 0.05);
  --grayscale-indicator: #696e77;
  --grayscale-track: #696e77;
}

@supports (color: color(display-p3 1 1 1)) {
  @media (color-gamut: p3) {
    .dark {
      --grayscale-1: color(display-p3 0.067 0.067 0.074);
      --grayscale-2: color(display-p3 0.095 0.098 0.105);
      --grayscale-3: color(display-p3 0.13 0.135 0.145);
      --grayscale-4: color(display-p3 0.156 0.163 0.176);
      --grayscale-5: color(display-p3 0.183 0.191 0.206);
      --grayscale-6: color(display-p3 0.215 0.226 0.244);
      --grayscale-7: color(display-p3 0.265 0.28 0.302);
      --grayscale-8: color(display-p3 0.357 0.381 0.409);
      --grayscale-9: color(display-p3 0.415 0.431 0.463);
      --grayscale-10: color(display-p3 0.469 0.483 0.514);
      --grayscale-11: color(display-p3 0.692 0.704 0.728);
      --grayscale-12: color(display-p3 0.93 0.933 0.94);

      --grayscale-a1: #00000000;
      --grayscale-a2: #d8f4f609;
      --grayscale-a3: #ddeaf814;
      --grayscale-a4: #d3edf81d;
      --grayscale-a5: #d9edfe25;
      --grayscale-a6: #d6ebfd30;
      --grayscale-a7: #d9edff40;
      --grayscale-a8: #d9edff5d;
      --grayscale-a9: #dfebfd6d;
      --grayscale-a10: #e5edfd7b;
      --grayscale-a11: #f1f7feb5;
      --grayscale-a12: #fcfdffef;

      --grayscale-contrast: #fff;
      --grayscale-surface: color(display-p3 0 0 0 / 5%);
      --grayscale-indicator: color(display-p3 0.415 0.431 0.463);
      --grayscale-track: color(display-p3 0.415 0.431 0.463);
    }
  }
}

.light, :root {
  color-scheme: light;
  --accent: rgba(0, 0, 198, 1);
  --background: rgba(255, 255, 255, 1);
  --border: rgba(232, 234, 255, 1);
  --sidebar-background: initial;
  --header-background: color-mix(in srgb, var(--background), transparent 30%);
  --card-background: initial;
  --theme-color: #fff;
}

.dark {
  color-scheme: dark;
  --accent: rgba(50, 103, 255, 1);
  --background: rgba(10, 10, 26, 1);
  --border: rgba(42, 42, 61, 1);
  --sidebar-background: initial;
  --header-background: color-mix(in srgb, var(--background), transparent 30%);
  --card-background: initial;
  --theme-color: #0a0a1a;
}

/* =============================================================
   Pyramid AI — Fern Developer Docs Branding
   Tokens from Pyramid AI Design System
   ============================================================= */

/* ── Google Fonts import (Inter + IBM Plex Mono) ────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* ── Brand tokens ────────────────────────────────────────────── */
:root {
  --pyramid-brand: #0000C6;
  --pyramid-brand-mid: #3267FF;
  --pyramid-brand-deep: #0C0873;
  --pyramid-brand-soft: #F0F4FF;
  --pyramid-gradient: linear-gradient(135deg, #0000C6 0%, #0C0873 100%);
  --pyramid-banner-gradient: linear-gradient(90deg, #0000C6 0%, #3267FF 100%);

  --pyramid-ink: #0F0F0F;
  --pyramid-body: #404040;
  --pyramid-muted: #737373;
  --pyramid-disabled: #AEAEAE;
  --pyramid-on-brand: #FFFFFF;

  --pyramid-bg: #FFFFFF;
  --pyramid-bg-tint: #F0F4FF;
  --pyramid-bg-mute: #F2F2F2;

  --pyramid-border: #E8EAFF;
  --pyramid-border-neutral: #DBDBDB;

  --pyramid-success: #65C24F;
  --pyramid-warning: #FC8A21;
  --pyramid-danger: #E92B1E;
  --pyramid-info: #3267FF;

  --pyramid-radius-sm: 6px;
  --pyramid-radius-md: 8px;
  --pyramid-radius-lg: 12px;
  --pyramid-radius-xl: 16px;
  --pyramid-radius-2xl: 24px;
  --pyramid-radius-pill: 9999px;

  --pyramid-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.10);
  --pyramid-shadow-md: 0 4px 12px -2px rgba(112, 144, 176, 0.10), 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --pyramid-shadow-lg: 0 12px 32px -8px rgba(13, 6, 45, 0.18), 0 4px 8px -4px rgba(13, 6, 45, 0.08);
  --pyramid-shadow-focus: 0 0 0 3px rgba(0, 0, 198, 0.18);
}

/* ── Typography override ─────────────────────────────────────── */

/* Apply Inter globally */
body,
.fern-layout,
.fern-sidebar,
.fern-page-content {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* IBM Plex Mono for code */
code,
pre,
.fern-code-block,
kbd {
  font-family: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace !important;
}

/* Headings: Inter Bold, tight tracking */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', -apple-system, sans-serif !important;
  letter-spacing: -0.01em;
}

h1 {
  font-weight: 700 !important;
  letter-spacing: -0.02em;
}

h2 {
  font-weight: 700 !important;
}

h3 {
  font-weight: 600 !important;
}

/* ── Light mode ──────────────────────────────────────────────── */

/* Sidebar */
.fern-sidebar {
  background: var(--pyramid-bg-tint) !important;
  border-right: 1px solid var(--pyramid-border) !important;
}

/* Active sidebar item — brand blue bg */
.fern-sidebar-link[data-state="active"],
.fern-sidebar-link:hover {
  background: rgba(0, 0, 198, 0.08) !important;
  border-radius: var(--pyramid-radius-lg) !important;
}
.fern-sidebar-link:focus-visible {
  background: rgba(0, 0, 198, 0.08) !important;
  border-radius: var(--pyramid-radius-lg) !important; outline: none;
}

.fern-sidebar-link[data-state="active"] {
  color: var(--pyramid-brand) !important;
  font-weight: 600 !important;
}

/* Cards in content area */
.fern-card {
  border: 1px solid var(--pyramid-border) !important;
  border-radius: var(--pyramid-radius-lg) !important;
  box-shadow: var(--pyramid-shadow-md) !important;
  transition: box-shadow 180ms ease-out, transform 180ms ease-out !important;
}

.fern-card:hover {
  box-shadow: var(--pyramid-shadow-lg) !important;
}
.fern-card:focus-visible {
  box-shadow: var(--pyramid-shadow-lg) !important; outline: none;
}

/* Primary buttons / CTAs — pill shape with brand gradient */
.fern-button--primary,
a.fern-button--primary {
  background: var(--pyramid-gradient) !important;
  color: var(--pyramid-on-brand) !important;
  border: none !important;
  border-radius: var(--pyramid-radius-pill) !important;
  font-weight: 500 !important;
  box-shadow: var(--pyramid-shadow-sm) !important;
  transition: opacity 180ms ease-out !important;
}

.fern-button--primary:hover,
a.fern-button--primary:hover {
  opacity: 0.9 !important;
}
.fern-button--primary:focus-visible,
a.fern-button--primary:focus-visible {
  opacity: 0.9 !important; outline: none;
}

/* Secondary buttons */
.fern-button--outlined {
  border: 1px solid var(--pyramid-border) !important;
  border-radius: var(--pyramid-radius-pill) !important;
  color: var(--pyramid-ink) !important;
  font-weight: 500 !important;
}

.fern-button--outlined:hover {
  background: var(--pyramid-bg-tint) !important;
}
.fern-button--outlined:focus-visible {
  background: var(--pyramid-bg-tint) !important; outline: none;
}

/* Links — brand blue */
a:not([class]) {
  color: var(--pyramid-brand) !important;
}

a:not([class]):hover {
  color: var(--pyramid-brand-deep) !important;
}
a:not([class]):focus-visible {
  color: var(--pyramid-brand-deep) !important; outline: none;
}

/* Inline code tokens */
:not(pre) > code {
  background: var(--pyramid-bg-tint) !important;
  border: 1px solid var(--pyramid-border) !important;
  border-radius: 4px !important;
  padding: 2px 6px !important;
  font-size: 13px !important;
  color: var(--pyramid-ink) !important;
}

/* Code blocks */
pre {
  border-radius: var(--pyramid-radius-lg) !important;
  border: 1px solid var(--pyramid-border) !important;
}

/* Tables */
th {
  font-weight: 600 !important;
  font-size: 14px !important;
  color: var(--pyramid-body) !important;
  border-bottom: 2px solid var(--pyramid-border) !important;
}

td {
  border-bottom: 1px solid var(--pyramid-border) !important;
  font-size: 14px !important;
}

/* API method badges — pill shape */
.fern-endpoint-method {
  border-radius: var(--pyramid-radius-pill) !important;
  font-weight: 600 !important;
  font-size: 11px !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}

/* Tabs (Guides / API Reference) */
.fern-tab[data-state="active"] {
  color: var(--pyramid-brand) !important;
  border-bottom-color: var(--pyramid-brand) !important;
  font-weight: 600 !important;
}

/* Navbar filled button (Get API Key) */
.fern-navbar-link--filled {
  background: var(--pyramid-gradient) !important;
  color: var(--pyramid-on-brand) !important;
  border-radius: var(--pyramid-radius-pill) !important;
  font-weight: 500 !important;
  border: none !important;
  box-shadow: var(--pyramid-shadow-sm) !important;
}

.fern-navbar-link--filled:hover {
  opacity: 0.9 !important;
}
.fern-navbar-link--filled:focus-visible {
  opacity: 0.9 !important; outline: none;
}

/* Search bar */
.fern-search-bar {
  border: 1px solid var(--pyramid-border) !important;
  border-radius: var(--pyramid-radius-pill) !important;
  background: #F7FBFF !important;
}

/* Focus ring — brand blue glow */
*:focus-visible {
  outline: none !important;
  box-shadow: var(--pyramid-shadow-focus) !important;
}

/* Callouts / notes / warnings */
.fern-callout {
  border-radius: var(--pyramid-radius-lg) !important;
  border-left: 3px solid var(--pyramid-brand) !important;
}

/* Section headers in sidebar */
.fern-sidebar-heading {
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: var(--pyramid-muted) !important;
}

/* ── Dark mode overrides ─────────────────────────────────────── */

.dark .fern-sidebar {
  background: #0F0F1E !important;
  border-right: 1px solid #2A2A3D !important;
}

.dark .fern-sidebar-link[data-state="active"],
.dark .fern-sidebar-link:hover {
  background: rgba(50, 103, 255, 0.12) !important;
}
.dark .fern-sidebar-link:focus-visible {
  background: rgba(50, 103, 255, 0.12) !important; outline: none;
}

.dark .fern-sidebar-link[data-state="active"] {
  color: var(--pyramid-brand-mid) !important;
}

.dark .fern-card {
  background: #141425 !important;
  border-color: #2A2A3D !important;
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.3) !important;
}

.dark .fern-card:hover {
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.4) !important;
}
.dark .fern-card:focus-visible {
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.4) !important; outline: none;
}

.dark a:not([class]) {
  color: var(--pyramid-brand-mid) !important;
}

.dark a:not([class]):hover {
  color: #4D83FF !important;
}
.dark a:not([class]):focus-visible {
  color: #4D83FF !important; outline: none;
}

.dark :not(pre) > code {
  background: #1A1A2E !important;
  border-color: #2A2A3D !important;
  color: #E0E0E0 !important;
}

.dark pre {
  border-color: #2A2A3D !important;
}

.dark th {
  border-bottom-color: #2A2A3D !important;
  color: #B0B0B0 !important;
}

.dark td {
  border-bottom-color: #1F1F35 !important;
}

.dark .fern-search-bar {
  background: #141425 !important;
  border-color: #2A2A3D !important;
}

.dark .fern-callout {
  border-left-color: var(--pyramid-brand-mid) !important;
}

.dark .fern-tab[data-state="active"] {
  color: var(--pyramid-brand-mid) !important;
  border-bottom-color: var(--pyramid-brand-mid) !important;
}

.dark .fern-sidebar-heading {
  color: #808080 !important;
}

/* ── Smooth transitions ──────────────────────────────────────── */

.fern-sidebar-link,
.fern-card,
.fern-button--primary,
.fern-button--outlined,
.fern-navbar-link--filled,
.fern-tab,
a {
  transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}
