/*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: 20px;
  --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: #f5f9fe;
  --accent-3: #eaf3fe;
  --accent-4: #dcecff;
  --accent-5: #cce2fc;
  --accent-6: #bad5f6;
  --accent-7: #a1c3ed;
  --accent-8: #7eace4;
  --accent-9: #4a90e2;
  --accent-10: #4284d0;
  --accent-11: #2d73c2;
  --accent-12: #193556;

  --accent-a1: #0080ff04;
  --accent-a2: #0066e60a;
  --accent-a3: #006ef315;
  --accent-a4: #0075ff23;
  --accent-a5: #006ef033;
  --accent-a6: #0064de45;
  --accent-a7: #005dcf5e;
  --accent-a8: #005bca81;
  --accent-a9: #0063d6b5;
  --accent-a10: #0059c0bd;
  --accent-a11: #0055b5d2;
  --accent-a12: #001f44e6;

  --accent-contrast: #fff;
  --accent-surface: #f3f8fecc;
  --accent-indicator: #4a90e2;
  --accent-track: #4a90e2;
}

@supports (color: color(display-p3 1 1 1)) {
  @media (color-gamut: p3) {
    .light, :root {
      --accent-1: oklch(99.3% 0.0028 253.9);
      --accent-2: oklch(98.1% 0.0075 253.9);
      --accent-3: oklch(96% 0.0175 253.9);
      --accent-4: oklch(93.6% 0.0309 253.9);
      --accent-5: oklch(90.4% 0.0432 253.9);
      --accent-6: oklch(86.3% 0.0549 253.9);
      --accent-7: oklch(80.8% 0.0703 253.9);
      --accent-8: oklch(73.3% 0.0963 253.9);
      --accent-9: oklch(64.6% 0.1423 253.9);
      --accent-10: oklch(60.6% 0.1351 253.9);
      --accent-11: oklch(55.3% 0.1414 253.9);
      --accent-12: oklch(32.6% 0.0685 253.9);

      --accent-a1: color(display-p3 0.0235 0.5137 1 / 0.016);
      --accent-a2: color(display-p3 0.0235 0.349 0.7843 / 0.036);
      --accent-a3: color(display-p3 0.0078 0.3725 0.898 / 0.075);
      --accent-a4: color(display-p3 0.0078 0.3804 0.9412 / 0.126);
      --accent-a5: color(display-p3 0.0039 0.3647 0.8941 / 0.185);
      --accent-a6: color(display-p3 0.0039 0.3294 0.8157 / 0.251);
      --accent-a7: color(display-p3 0.0039 0.302 0.749 / 0.342);
      --accent-a8: color(display-p3 0.0039 0.298 0.7333 / 0.467);
      --accent-a9: color(display-p3 0 0.3059 0.7843 / 0.64);
      --accent-a10: color(display-p3 0 0.2745 0.6941 / 0.675);
      --accent-a11: color(display-p3 0 0.2549 0.6471 / 0.75);
      --accent-a12: color(display-p3 0 0.0902 0.2275 / 0.875);

      --accent-contrast: #fff;
      --accent-surface: color(display-p3 0.9569 0.9725 0.9922 / 0.8);
      --accent-indicator: oklch(64.6% 0.1423 253.9);
      --accent-track: oklch(64.6% 0.1423 253.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: #101821;
  --accent-2: #121b26;
  --accent-3: #132943;
  --accent-4: #0f335b;
  --accent-5: #173f6c;
  --accent-6: #234d7d;
  --accent-7: #2f5c92;
  --accent-8: #386faf;
  --accent-9: #4a90e2;
  --accent-10: #3d83d4;
  --accent-11: #82b8f9;
  --accent-12: #cee3fc;

  --accent-a1: #004bea05;
  --accent-a2: #0074ee0b;
  --accent-a3: #0f82ff2b;
  --accent-a4: #027dff46;
  --accent-a5: #1d89fd5a;
  --accent-a6: #3896fd6d;
  --accent-a7: #479cfe85;
  --accent-a8: #4c9fffa5;
  --accent-a9: #51a1fedf;
  --accent-a10: #469dffcf;
  --accent-a11: #85bbfef9;
  --accent-a12: #d0e6fffc;

  --accent-contrast: #fff;
  --accent-surface: #111f2f80;
  --accent-indicator: #4a90e2;
  --accent-track: #4a90e2;
}

@supports (color: color(display-p3 1 1 1)) {
  @media (color-gamut: p3) {
    .dark {
      --accent-1: oklch(20.4% 0.0213 253.9);
      --accent-2: oklch(21.8% 0.0247 253.9);
      --accent-3: oklch(27.6% 0.0562 253.9);
      --accent-4: oklch(31.9% 0.0825 253.9);
      --accent-5: oklch(36.5% 0.0898 253.9);
      --accent-6: oklch(41.4% 0.0936 253.9);
      --accent-7: oklch(47.1% 0.101 253.9);
      --accent-8: oklch(53.5% 0.1163 253.9);
      --accent-9: oklch(64.6% 0.1423 253.9);
      --accent-10: oklch(60.6% 0.1423 253.9);
      --accent-11: oklch(76.9% 0.1101 253.9);
      --accent-12: oklch(90.8% 0.0409 253.9);

      --accent-a1: color(display-p3 0 0.3098 0.9843 / 0.018);
      --accent-a2: color(display-p3 0 0.4863 0.9961 / 0.04);
      --accent-a3: color(display-p3 0.1529 0.502 1 / 0.163);
      --accent-a4: color(display-p3 0.1451 0.4902 0.9961 / 0.265);
      --accent-a5: color(display-p3 0.2353 0.5412 1 / 0.34);
      --accent-a6: color(display-p3 0.3216 0.5961 0.9961 / 0.41);
      --accent-a7: color(display-p3 0.3725 0.6235 1 / 0.503);
      --accent-a8: color(display-p3 0.3882 0.6353 1 / 0.626);
      --accent-a9: color(display-p3 0.4118 0.6392 1 / 0.846);
      --accent-a10: color(display-p3 0.3686 0.6196 1 / 0.785);
      --accent-a11: color(display-p3 0.5804 0.749 1 / 0.952);
      --accent-a12: color(display-p3 0.8431 0.902 1 / 0.978);

      --accent-contrast: #fff;
      --accent-surface: color(display-p3 0.0745 0.1176 0.1804 / 0.5);
      --accent-indicator: oklch(64.6% 0.1423 253.9);
      --accent-track: oklch(64.6% 0.1423 253.9);
    }
  }
}


.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(74, 144, 226, 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(74, 144, 226, 1);
  --background: rgba(20, 23, 29, 1);
  --border: initial;
  --sidebar-background: initial;
  --header-background: color-mix(in srgb, var(--background), transparent 30%);
  --card-background: initial;
  --theme-color: #14171d;
}

/* Landing page full-width styling - targets only page with .landing-page-wrapper */

/* Force all parent containers of h1 to center using flexbox */
body:has(.landing-page-wrapper) *:has(> h1) {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 100% !important;
}

/* Center the h1 itself */
body:has(.landing-page-wrapper) h1 {
  text-align: center !important;
  display: block !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Center any child elements inside h1 */
body:has(.landing-page-wrapper) h1 * {
  text-align: center !important;
  display: inline !important;
}

body:has(.landing-page-wrapper) .landing-page-wrapper > p:first-of-type {
  text-align: center !important;
  display: block !important;
  width: 100% !important;
  max-width: 800px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Center all h2 section headings on landing page */
body:has(.landing-page-wrapper) h2 {
  text-align: center !important;
}

/* Make main content full width on landing page */
body:has(.landing-page-wrapper) main,
body:has(.landing-page-wrapper) article {
  max-width: 100% !important;
  width: 100% !important;
}

/* Content containers should be full width but exclude portals and dropdowns */
body:has(.landing-page-wrapper) > div:not([class*="header"]):not([class*="nav"]):not([class*="portal"]):not([data-radix-portal]):not([data-radix-popper-content-wrapper]),
body:has(.landing-page-wrapper) > main,
body:has(.landing-page-wrapper) > article {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 2rem !important;
}

/* Hide sidebars on landing page only */
body:has(.landing-page-wrapper) aside:not(header aside),
body:has(.landing-page-wrapper) nav:not(header nav):not(header *) {
  display: none !important;
}

/* Fix dropdown menus on landing page - they should not be affected by full-width styling */
body:has(.landing-page-wrapper) [role="menu"],
body:has(.landing-page-wrapper) [role="dialog"],
body:has(.landing-page-wrapper) [data-radix-popper-content-wrapper] {
  max-width: max-content !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Hide page title "Home" in top left corner on landing page */
body:has(.landing-page-wrapper) header h1:not(.landing-page-wrapper h1),
body:has(.landing-page-wrapper) [class*="breadcrumb"],
body:has(.landing-page-wrapper) [class*="page-title"]:not(.landing-page-wrapper *) {
  display: none !important;
}

/* Constrain landing page content width on large screens for better readability */
body:has(.landing-page-wrapper) .landing-page-wrapper {
  max-width: 1400px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Ensure card grids don't stretch too wide on large monitors */
body:has(.landing-page-wrapper) [class*="card-grid"],
body:has(.landing-page-wrapper) [class*="Cards"] {
  max-width: 1400px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Mobile: scale down landing page title so long words like "Documentation" don't break mid-word */
@media (max-width: 640px) {

  body:has(.landing-page-wrapper) h1 {
    font-size: 2rem !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    hyphens: none !important;
  }

}

/* Mobile (<lg breakpoint): keep the burger menu button visible */
@media (max-width: 1023px) {

  /* Constrain the NaviPartner logo so it does not eat the header */
  #fern-header a[href="/"] img,
  #fern-header [class*="logo"] img,
  header a[href="/"] img,
  header [class*="logo"] img {
    max-width: 110px !important;
    height: auto !important;
    object-fit: contain;
  }

  /* Hide social icons on mobile to free up space for the burger menu */
  .np-social-icons {
    display: none !important;
  }

  /* Ensure the mobile burger menu button is visible and not clipped */
  .fern-header-mobile-menu-button {
    display: inline-flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    position: relative !important;
    z-index: 10 !important;
    margin-left: 0.25rem !important;
  }

}

/* Changelog: small, faded release version shown next to the product heading (for technical readers) */
.changelog-version {
  font-size: 0.62em !important;
  font-weight: 400 !important;
  font-style: italic !important;
  opacity: 0.5 !important;
  margin-left: 0.35em;
  white-space: nowrap;
}
