/*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: 30px;
  --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: #fbfdff;
  --accent-2: #f5f9ff;
  --accent-3: #e9f3ff;
  --accent-4: #daecff;
  --accent-5: #c8e2ff;
  --accent-6: #b3d4ff;
  --accent-7: #99c3ff;
  --accent-8: #72aafc;
  --accent-9: #006fee;
  --accent-10: #0060de;
  --accent-11: #0069e8;
  --accent-12: #083168;

  --accent-a1: #0080ff04;
  --accent-a2: #0066ff0a;
  --accent-a3: #0074ff16;
  --accent-a4: #007dff25;
  --accent-a5: #0079ff37;
  --accent-a6: #006fff4c;
  --accent-a7: #0069ff66;
  --accent-a8: #0066fa8d;
  --accent-a9: #006fee;
  --accent-a10: #0060de;
  --accent-a11: #0069e8;
  --accent-a12: #002a63f7;

  --accent-contrast: #fff;
  --accent-surface: #f3f8ffcc;
  --accent-indicator: #006fee;
  --accent-track: #006fee;
}

@supports (color: color(display-p3 1 1 1)) {
  @media (color-gamut: p3) {
    .light, :root {
      --accent-1: oklch(99.3% 0.0033 257.9);
      --accent-2: oklch(98.2% 0.0103 257.9);
      --accent-3: oklch(96% 0.0215 257.9);
      --accent-4: oklch(93.7% 0.0405 257.9);
      --accent-5: oklch(90.5% 0.059 257.9);
      --accent-6: oklch(86.4% 0.0767 257.9);
      --accent-7: oklch(80.9% 0.098 257.9);
      --accent-8: oklch(73.4% 0.1332 257.9);
      --accent-9: oklch(56.7% 0.2095 257.9);
      --accent-10: oklch(52.2% 0.2095 257.9);
      --accent-11: oklch(54.9% 0.2095 257.9);
      --accent-12: oklch(32.2% 0.1067 257.9);

      --accent-a1: color(display-p3 0.0235 0.5137 1 / 0.016);
      --accent-a2: color(display-p3 0.0235 0.349 0.8941 / 0.036);
      --accent-a3: color(display-p3 0.0078 0.4078 0.9529 / 0.079);
      --accent-a4: color(display-p3 0.0078 0.4157 0.9451 / 0.134);
      --accent-a5: color(display-p3 0.0078 0.4039 0.9412 / 0.197);
      --accent-a6: color(display-p3 0.0039 0.3725 0.9451 / 0.275);
      --accent-a7: color(display-p3 0.0039 0.3451 0.949 / 0.365);
      --accent-a8: color(display-p3 0 0.3333 0.9333 / 0.506);
      --accent-a9: color(display-p3 0 0.298 0.8784 / 0.816);
      --accent-a10: color(display-p3 0 0.251 0.8078 / 0.844);
      --accent-a11: color(display-p3 0 0.2784 0.851 / 0.828);
      --accent-a12: color(display-p3 0 0.1137 0.3373 / 0.918);

      --accent-contrast: #fff;
      --accent-surface: color(display-p3 0.9569 0.9725 1 / 0.8);
      --accent-indicator: oklch(56.7% 0.2095 257.9);
      --accent-track: oklch(56.7% 0.2095 257.9);
    }
  }
}


.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: #000;
  --accent-2: #08111f;
  --accent-3: #082247;
  --accent-4: #082e63;
  --accent-5: #0e3a77;
  --accent-6: #174688;
  --accent-7: #1f539d;
  --accent-8: #2461b8;
  --accent-9: #006fee;
  --accent-10: #0060de;
  --accent-11: #7fb8ff;
  --accent-12: #cfe3ff;

  --accent-a1: #00000000;
  --accent-a2: #428cff1f;
  --accent-a3: #1d7bff47;
  --accent-a4: #1577ff63;
  --accent-a5: #1e7dff77;
  --accent-a6: #2c84ff88;
  --accent-a7: #3387ff9d;
  --accent-a8: #3287ffb8;
  --accent-a9: #0077ffee;
  --accent-a10: #006effde;
  --accent-a11: #7fb8ff;
  --accent-a12: #cfe3ff;

  --accent-contrast: #fff;
  --accent-surface: #10223e80;
  --accent-indicator: #006fee;
  --accent-track: #006fee;
}

@supports (color: color(display-p3 1 1 1)) {
  @media (color-gamut: p3) {
    .dark {
      --accent-1: oklch(0% 0.0271 257.9);
      --accent-2: oklch(17.7% 0.033 257.9);
      --accent-3: oklch(25.7% 0.0759 257.9);
      --accent-4: oklch(31.1% 0.1022 257.9);
      --accent-5: oklch(35.7% 0.1145 257.9);
      --accent-6: oklch(40.2% 0.1211 257.9);
      --accent-7: oklch(45% 0.1317 257.9);
      --accent-8: oklch(50.3% 0.1504 257.9);
      --accent-9: oklch(56.7% 0.2095 257.9);
      --accent-10: oklch(52.2% 0.2095 257.9);
      --accent-11: oklch(77.7% 0.1352 257.9);
      --accent-12: oklch(91.1% 0.0469 257.9);

      --accent-a1: color(display-p3 0 0 0 / 0);
      --accent-a2: color(display-p3 0.3333 0.5686 1 / 0.118);
      --accent-a3: color(display-p3 0.2235 0.4863 1 / 0.267);
      --accent-a4: color(display-p3 0.2118 0.4745 1 / 0.373);
      --accent-a5: color(display-p3 0.2353 0.498 1 / 0.451);
      --accent-a6: color(display-p3 0.2784 0.5294 1 / 0.514);
      --accent-a7: color(display-p3 0.298 0.5412 1 / 0.597);
      --accent-a8: color(display-p3 0.298 0.5412 1 / 0.699);
      --accent-a9: color(display-p3 0.2039 0.4745 1 / 0.902);
      --accent-a10: color(display-p3 0.1882 0.4392 1 / 0.84);
      --accent-a11: color(display-p3 0.5569 0.7294 1 / 0.977);
      --accent-a12: color(display-p3 0.8353 0.898 1 / 0.989);

      --accent-contrast: #fff;
      --accent-surface: color(display-p3 0.0784 0.1333 0.2353 / 0.5);
      --accent-indicator: oklch(56.7% 0.2095 257.9);
      --accent-track: oklch(56.7% 0.2095 257.9);
    }
  }
}


.dark {
  --grayscale-1: #121113;
  --grayscale-2: #1a191b;
  --grayscale-3: #232225;
  --grayscale-4: #2b292d;
  --grayscale-5: #323035;
  --grayscale-6: #3c393f;
  --grayscale-7: #49474e;
  --grayscale-8: #625f69;
  --grayscale-9: #6f6d78;
  --grayscale-10: #7c7a85;
  --grayscale-11: #b5b2bc;
  --grayscale-12: #eeeef0;

  --grayscale-a1: #00000000;
  --grayscale-a2: #f5f4f609;
  --grayscale-a3: #ebeaf814;
  --grayscale-a4: #eee5f81d;
  --grayscale-a5: #efe6fe25;
  --grayscale-a6: #f1e6fd30;
  --grayscale-a7: #eee9ff40;
  --grayscale-a8: #eee7ff5d;
  --grayscale-a9: #eae6fd6e;
  --grayscale-a10: #ece9fd7c;
  --grayscale-a11: #f5f1ffb7;
  --grayscale-a12: #fdfdffef;

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

@supports (color: color(display-p3 1 1 1)) {
  @media (color-gamut: p3) {
    .dark {
      --grayscale-1: color(display-p3 0.07 0.067 0.074);
      --grayscale-2: color(display-p3 0.101 0.098 0.105);
      --grayscale-3: color(display-p3 0.138 0.134 0.144);
      --grayscale-4: color(display-p3 0.167 0.161 0.175);
      --grayscale-5: color(display-p3 0.196 0.189 0.206);
      --grayscale-6: color(display-p3 0.232 0.225 0.245);
      --grayscale-7: color(display-p3 0.286 0.277 0.302);
      --grayscale-8: color(display-p3 0.383 0.373 0.408);
      --grayscale-9: color(display-p3 0.434 0.428 0.467);
      --grayscale-10: color(display-p3 0.487 0.48 0.519);
      --grayscale-11: color(display-p3 0.707 0.7 0.735);
      --grayscale-12: color(display-p3 0.933 0.933 0.94);

      --grayscale-a1: #00000000;
      --grayscale-a2: #f5f4f609;
      --grayscale-a3: #ebeaf814;
      --grayscale-a4: #eee5f81d;
      --grayscale-a5: #efe6fe25;
      --grayscale-a6: #f1e6fd30;
      --grayscale-a7: #eee9ff40;
      --grayscale-a8: #eee7ff5d;
      --grayscale-a9: #eae6fd6e;
      --grayscale-a10: #ece9fd7c;
      --grayscale-a11: #f5f1ffb7;
      --grayscale-a12: #fdfdffef;

      --grayscale-contrast: #fff;
      --grayscale-surface: color(display-p3 0 0 0 / 5%);
      --grayscale-indicator: color(display-p3 0.434 0.428 0.467);
      --grayscale-track: color(display-p3 0.434 0.428 0.467);
    }
  }
}

.light, :root {
  color-scheme: light;
  --accent: rgba(0, 111, 238, 1);
  --background: rgba(255, 255, 255, 1);
  --border: initial;
  --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(0, 111, 238, 1);
  --background: rgba(0, 0, 0, 1);
  --border: initial;
  --sidebar-background: initial;
  --header-background: color-mix(in srgb, var(--background), transparent 30%);
  --card-background: initial;
  --theme-color: #000;
}

/* Override Fern's default button styles */
.fern-button,
.fern-mdx-link {
  border-radius: 8px !important;
}

.group.cursor-pointer.fern-button.filled.normal.primary {
  background: var(--fern-color-accent-primary);
  color: var(--fern-color-text-on-primary);
  border-radius: 8px !important;
  padding: 16px 32px;
  font-weight: 600;
  border: none;
  transition: all 0.3s ease;
}

.group.cursor-pointer.fern-button.filled.normal.primary:hover {
  background: var(--fern-color-accent-primary-darker);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(99, 102, 241, 0.4);
}
.group.cursor-pointer.fern-button.filled.normal.primary:focus-visible {
  background: var(--fern-color-accent-primary-darker);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(99, 102, 241, 0.4); outline: none;
}
