/*fern-site-stylesheet*/@font-face {
    font-family: 'Inter';
    src: url('/_fern-files/synthflow.docs.buildwithfern.com/e06f6b1bc553aaea4e4668023ed0ab0a147129c3107f511bc7d03d361b0ae085/fonts/Inter-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('/_fern-files/synthflow.docs.buildwithfern.com/693b77d4f32ee9b8bfc995589b5fad5e99adf2832738661f5402f9978429a8e3/fonts/Inter-Variable.woff2') format('woff2');
    font-weight: 500 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'SF Pro Display';
    src: url('/_fern-files/synthflow.docs.buildwithfern.com/c68729248264e14ac4d9274e87691bd0d278a50274da1a4d0de605a3a18ca521/fonts/SF-Pro-Display-Semibold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

:root {
  --header-height: 50px;
  --header-height-real: 50px;
  --mobile-header-height-real: 50px;
  --content-width: 640px;
  --sidebar-width: 288px;
  --page-width: 1560px;
  --logo-height: 20px;
  --font-body: 'Inter', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  --font-heading: 'SF Pro Display', 'Inter', 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: #fdfcff;
  --accent-2: #f9f8ff;
  --accent-3: #f3efff;
  --accent-4: #eae2ff;
  --accent-5: #e1d6ff;
  --accent-6: #d4c6ff;
  --accent-7: #c4aeff;
  --accent-8: #af8eff;
  --accent-9: #8639ff;
  --accent-10: #7734e3;
  --accent-11: #742fe0;
  --accent-12: #3a1374;

  --accent-a1: #5500ff03;
  --accent-a2: #2500ff07;
  --accent-a3: #4000ff10;
  --accent-a4: #4700ff1d;
  --accent-a5: #4500ff29;
  --accent-a6: #3f00ff39;
  --accent-a7: #4600ff51;
  --accent-a8: #4b00ff71;
  --accent-a9: #6300ffc6;
  --accent-a10: #5400dccb;
  --accent-a11: #5500d9d0;
  --accent-a12: #2a0069ec;

  --accent-contrast: #fff;
  --accent-surface: #f8f6ffcc;
  --accent-indicator: #8639ff;
  --accent-track: #8639ff;
}

@supports (color: color(display-p3 1 1 1)) {
  @media (color-gamut: p3) {
    .light, :root {
      --accent-1: oklch(99.2% 0.0046 293.6);
      --accent-2: oklch(98.3% 0.0133 293.6);
      --accent-3: oklch(96.1% 0.0306 293.6);
      --accent-4: oklch(93.4% 0.0576 293.6);
      --accent-5: oklch(90.3% 0.0824 293.6);
      --accent-6: oklch(86.3% 0.106 293.6);
      --accent-7: oklch(80.6% 0.1345 293.6);
      --accent-8: oklch(73% 0.1778 293.6);
      --accent-9: oklch(56.6% 0.2661 293.6);
      --accent-10: oklch(52.1% 0.2423 293.6);
      --accent-11: oklch(51.1% 0.2423 293.6);
      --accent-12: oklch(31.6% 0.1502 293.6);

      --accent-a1: color(display-p3 0.349 0.0235 1 / 0.012);
      --accent-a2: color(display-p3 0.1608 0.0235 0.8627 / 0.028);
      --accent-a3: color(display-p3 0.1922 0.0078 0.9412 / 0.063);
      --accent-a4: color(display-p3 0.2471 0.0039 0.9333 / 0.114);
      --accent-a5: color(display-p3 0.2235 0.0039 0.9294 / 0.161);
      --accent-a6: color(display-p3 0.2157 0.0039 0.9333 / 0.224);
      --accent-a7: color(display-p3 0.2157 0.0039 0.9255 / 0.314);
      --accent-a8: color(display-p3 0.2431 0.0039 0.9373 / 0.44);
      --accent-a9: color(display-p3 0.3255 0 0.9529 / 0.757);
      --accent-a10: color(display-p3 0.2784 0 0.8196 / 0.781);
      --accent-a11: color(display-p3 0.2784 0 0.8078 / 0.8);
      --accent-a12: color(display-p3 0.1373 0 0.3843 / 0.918);

      --accent-contrast: #fff;
      --accent-surface: color(display-p3 0.9725 0.9686 1 / 0.8);
      --accent-indicator: oklch(56.6% 0.2661 293.6);
      --accent-track: oklch(56.6% 0.2661 293.6);
    }
  }
}


.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: #1e1a2b;
  --accent-2: #221c34;
  --accent-3: #322054;
  --accent-4: #3d216d;
  --accent-5: #46277b;
  --accent-6: #503089;
  --accent-7: #603da1;
  --accent-8: #794ccb;
  --accent-9: #924dff;
  --accent-10: #863df0;
  --accent-11: #c1a3ff;
  --accent-12: #e5d9ff;

  --accent-a1: #4100fa0e;
  --accent-a2: #5c13ff18;
  --accent-a3: #782afc3d;
  --accent-a4: #7b29ff59;
  --accent-a5: #8236ff69;
  --accent-a6: #8a46ff79;
  --accent-a7: #9155ff94;
  --accent-a8: #955affc4;
  --accent-a9: #924dff;
  --accent-a10: #8d3fffee;
  --accent-a11: #c1a3ff;
  --accent-a12: #e5d9ff;

  --accent-contrast: #fff;
  --accent-surface: #281c4980;
  --accent-indicator: #924dff;
  --accent-track: #924dff;
}

@supports (color: color(display-p3 1 1 1)) {
  @media (color-gamut: p3) {
    .dark {
      --accent-1: oklch(23.1% 0.0337 295.7);
      --accent-2: oklch(24.5% 0.045 295.7);
      --accent-3: oklch(29.6% 0.0908 295.7);
      --accent-4: oklch(33.2% 0.1245 295.7);
      --accent-5: oklch(36.2% 0.1348 295.7);
      --accent-6: oklch(40% 0.1413 295.7);
      --accent-7: oklch(45.4% 0.1559 295.7);
      --accent-8: oklch(53.3% 0.188 295.7);
      --accent-9: oklch(60% 0.2472 295.7);
      --accent-10: oklch(55.7% 0.2472 295.7);
      --accent-11: oklch(78.2% 0.2104 295.7);
      --accent-12: oklch(91.1% 0.0669 295.7);

      --accent-a1: color(display-p3 0.1922 0 0.9843 / 0.05);
      --accent-a2: color(display-p3 0.3412 0.0706 1 / 0.085);
      --accent-a3: color(display-p3 0.4431 0.1804 1 / 0.224);
      --accent-a4: color(display-p3 0.4549 0.1765 1 / 0.331);
      --accent-a5: color(display-p3 0.4902 0.2235 1 / 0.393);
      --accent-a6: color(display-p3 0.5216 0.2902 1 / 0.451);
      --accent-a7: color(display-p3 0.5569 0.3569 1 / 0.554);
      --accent-a8: color(display-p3 0.5765 0.3725 1 / 0.737);
      --accent-a9: color(display-p3 0.5569 0.3255 1 / 0.96);
      --accent-a10: color(display-p3 0.5373 0.2706 1 / 0.893);
      --accent-a11: color(display-p3 0.7529 0.6549 1 / 0.974);
      --accent-a12: color(display-p3 0.902 0.8627 1 / 0.987);

      --accent-contrast: #fff;
      --accent-surface: color(display-p3 0.149 0.1059 0.2667 / 0.5);
      --accent-indicator: oklch(60% 0.2472 295.7);
      --accent-track: oklch(60% 0.2472 295.7);
    }
  }
}


.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(134, 57, 255, 1);
  --background: rgba(255, 255, 255, 1);
  --border: initial;
  --sidebar-background: rgba(245, 244, 245, 1);
  --header-background: rgba(255, 255, 255, 1);
  --card-background: rgba(255, 255, 255, 1);
  --theme-color: #fff;
}

.dark {
  color-scheme: dark;
  --accent: rgba(146, 77, 255, 1);
  --background: rgba(28, 29, 31, 1);
  --border: initial;
  --sidebar-background: rgba(22, 22, 24, 1);
  --header-background: rgba(28, 29, 31, 1);
  --card-background: rgba(24, 25, 27, 1);
  --theme-color: #1c1d1f;
}

/* Refer to docs.yml for colors, typography (Inter body, SF Pro Display headings), and layout */

/* Inter Variable: heading fallback only (not used for body). */
@font-face {
    font-family: "Inter Variable";
    src: url("./fonts/Inter-Variable.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

.fern-header-search-bar {
    background-color: var(--sidebar-background, #f5f4f5) !important;
}

.fern-header-search-bar:hover,
.fern-header-search-bar:focus-visible {
    background-color: var(--sidebar-background, #f5f4f5) !important;
}

/*
 * DOC-107: prose links match body text; underline uses the same color (not accent purple or semibold).
 */
.fern-mdx-link {
    color: var(--text-body) !important;
    font-family: inherit;
    font-weight: inherit !important;
    text-decoration-line: underline;
    text-decoration-color: currentColor;
    text-decoration-thickness: 1px !important;
    text-underline-offset: 0.25em !important;
    transition-property: color, text-decoration-color;
    transition-duration: 0.15s;
    transition-timing-function: ease;
}

.fern-mdx-link:visited {
    color: var(--text-body) !important;
    text-decoration-color: currentColor;
}

/*
 * Override Fern: .fern-mdx-link:hover { text-decoration-thickness: 2px !important; }
 * Higher-specificity selectors so this wins even when Fern CSS loads after styles.css.
 */
:is(.fern-layout-guide, .fern-layout-reference, .fern-layout-overview, .fern-layout-page, .fern-layout-changelog)
    a.fern-mdx-link[href]:hover,
:is(.fern-layout-guide, .fern-layout-reference, .fern-layout-overview, .fern-layout-page, .fern-layout-changelog)
    a.fern-mdx-link[href]:focus-visible,
:is(.fern-layout-guide, .fern-layout-reference, .fern-layout-overview, .fern-layout-page, .fern-layout-changelog)
    a.fern-mdx-link[href]:active,
.fern-page-content a.fern-mdx-link[href]:hover,
.fern-page-content a.fern-mdx-link[href]:focus-visible,
.fern-page-content a.fern-mdx-link[href]:active {
    color: color-mix(in srgb, var(--text-body) 72%, #000000) !important;
    text-decoration: underline 1px currentColor !important;
    text-decoration-thickness: 1px !important;
    text-underline-offset: 0.25em !important;
}

.dark
    :is(.fern-layout-guide, .fern-layout-reference, .fern-layout-overview, .fern-layout-page, .fern-layout-changelog)
    a.fern-mdx-link[href]:hover,
.dark
    :is(.fern-layout-guide, .fern-layout-reference, .fern-layout-overview, .fern-layout-page, .fern-layout-changelog)
    a.fern-mdx-link[href]:focus-visible,
.dark
    :is(.fern-layout-guide, .fern-layout-reference, .fern-layout-overview, .fern-layout-page, .fern-layout-changelog)
    a.fern-mdx-link[href]:active,
.dark .fern-page-content a.fern-mdx-link[href]:hover,
.dark .fern-page-content a.fern-mdx-link[href]:focus-visible,
.dark .fern-page-content a.fern-mdx-link[href]:active {
    color: color-mix(in srgb, var(--text-body) 82%, #ffffff) !important;
    text-decoration: underline 1px currentColor !important;
    text-decoration-thickness: 1px !important;
    text-underline-offset: 0.25em !important;
}

.fern-mdx-link svg.external-link-icon {
    color: currentColor;
    opacity: 0.65;
}

/*
 * DOC typography scale (overrides Fern/Tailwind prose defaults in guide and API content).
 * Headings: SF Pro Display with Inter Variable fallback.
 */
:is(.fern-layout-guide, .fern-layout-reference, .fern-layout-overview, .fern-layout-page, .fern-layout-changelog)
    :is(h1, h2, h3, .fern-page-heading),
.fern-page-content :is(h1, h2, h3, .fern-page-heading) {
    font-family: var(--font-heading), "Inter Variable", system-ui, sans-serif !important;
}

:is(.fern-layout-guide, .fern-layout-reference, .fern-layout-overview, .fern-layout-page, .fern-layout-changelog)
    :is(h1, .fern-page-heading),
.fern-page-content :is(h1, .fern-page-heading) {
    font-size: 32px !important;
    font-weight: 600 !important;
    line-height: 36px !important;
}

:is(.fern-layout-guide, .fern-layout-reference, .fern-layout-overview, .fern-layout-page, .fern-layout-changelog) h2,
.fern-page-content h2 {
    font-size: 24px !important;
    font-weight: 600 !important;
    line-height: 32px !important;
}

:is(.fern-layout-guide, .fern-layout-reference, .fern-layout-overview, .fern-layout-page, .fern-layout-changelog) h3,
.fern-page-content h3 {
    font-size: 20px !important;
    font-weight: 600 !important;
    line-height: 32px !important;
}

/*
 * Accordions (FAQs) and MDX Tabs use body font (Inter), not heading font (SF Pro Display).
 * Tab titles render as h6 inside [role="tablist"] (FernTabs), not .fern-segmented-control.
 */
:is(.fern-layout-guide, .fern-layout-reference, .fern-layout-overview, .fern-layout-page, .fern-layout-changelog)
    :is(
        .fern-accordion,
        .fern-accordion-trigger,
        .fern-accordion-trigger-title,
        .fern-segmented-control,
        .fern-segmented-control .fern-button,
        [role="tablist"] :is(h6, [role="tab"])
    ),
.fern-page-content
    :is(
        .fern-accordion,
        .fern-accordion-trigger,
        .fern-accordion-trigger-title,
        .fern-segmented-control,
        .fern-segmented-control .fern-button,
        [role="tablist"] :is(h6, [role="tab"])
    ) {
    font-family: var(--font-body), system-ui, sans-serif !important;
}

:is(.fern-layout-guide, .fern-layout-reference, .fern-layout-overview, .fern-layout-page, .fern-layout-changelog)
    h2:has(+ .fern-accordion),
:is(.fern-layout-guide, .fern-layout-reference, .fern-layout-overview, .fern-layout-page, .fern-layout-changelog)
    h2:has(+ * .fern-accordion),
.fern-page-content h2:has(+ .fern-accordion),
.fern-page-content h2:has(+ * .fern-accordion) {
    font-family: var(--font-body), system-ui, sans-serif !important;
}

:is(.fern-layout-guide, .fern-layout-reference, .fern-layout-overview, .fern-layout-page, .fern-layout-changelog) :is(p, li),
.fern-page-content :is(p, li) {
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 24px !important;
}

/* Body text that Fern renders outside <p>/<li> (card titles, accordion titles, and
   callouts whose content isn't a paragraph) keeps its own weight but matches the size. */
:is(.fern-layout-guide, .fern-layout-reference, .fern-layout-overview, .fern-layout-page, .fern-layout-changelog)
    :is(.fern-card .text-body, .fern-accordion-trigger-title, .fern-callout .text-sm),
.fern-page-content :is(.fern-card .text-body, .fern-accordion-trigger-title, .fern-callout .text-sm) {
    font-size: 15px !important;
}

/*
 * Fern wraps page titles in <h1 class="fern-page-heading"><p>…</p></h1>.
 * Exclude those <p> from body paragraph styles so the title keeps H1 typography.
 */
.fern-page-heading p,
:is(h1, h2, h3, h4, h5, h6) p {
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
}

/* Vertical rhythm after block copy before a primary action in MDX cards */
.mdx-card-primary-action {
    margin-top: 1rem;
}

/* Classic changelog layout: a Linear-style two-column timeline. The left column
   holds the date/tag label, a central rail draws the timeline, and the right
   column holds the entry content. Widths are driven by CSS variables so the
   whole column stays centered and consistently sized. */
.fern-layout-changelog {
    --changelog-content-width: 550px;
    --changelog-date-width: 120px;
    --changelog-timeline-width: 20px;
    --changelog-column-gap: 24px;
    --changelog-width: calc(
        var(--changelog-date-width)
        + var(--changelog-column-gap)
        + var(--changelog-timeline-width)
        + var(--changelog-column-gap)
        + var(--changelog-content-width)
    );

    --content-width: var(--changelog-width);
    max-width: none;
    margin-inline: auto;
}

.fern-layout-changelog .fern-layout-page {
    position: relative;
    max-width: var(--changelog-width);
    margin-inline: auto;
    width: 100%;
}

.fern-layout-changelog section.fern-changelog-content[data-has-aside="false"] {
    width: 100%;
}

.fern-layout-changelog section.fern-changelog-content[data-has-aside="false"] > .max-w-content-width {
    max-width: var(--changelog-width) !important;
    width: 100%;
    margin-inline: auto;
}

.fern-layout-changelog section.fern-changelog-content[data-has-aside="false"] header {
    margin-bottom: 0.75rem !important;
}

/* Hide top tag filters and header divider */
.fern-layout-changelog section.fern-changelog-content[data-has-aside="false"] header hr,
.fern-layout-changelog section.fern-changelog-content[data-has-aside="false"] header .flex.flex-row.gap-2.overflow-x-auto,
.fern-layout-changelog .fern-layout-page > hr.my-4 {
    display: none !important;
}

/* Changelog index: subscribe copy left, primary button right (top-aligned) */
.fern-layout-changelog .changelog-subscribe-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    column-gap: 2.5rem;
    row-gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
}

.fern-layout-changelog .changelog-subscribe-text {
    flex: 1 1 12rem;
    min-width: 0;
    padding-right: 0.5rem;
}

/* Linear-style timeline entries */
.fern-layout-changelog article.fern-changelog-content {
    position: relative;
    margin-top: 0 !important;
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
    max-width: var(--changelog-width);
    margin-inline: auto;
    width: 100%;
}

/* Hide the category tag badges on changelog entries: the filter pills in the
   aside and the inline tag badges in the entry body. The date label stays. */
.fern-layout-changelog article.fern-changelog-content .filter-row,
.fern-layout-changelog .fern-changelog-tags {
    display: none !important;
}

.fern-layout-changelog article.fern-changelog-content .max-w-content-width {
    max-width: var(--changelog-content-width) !important;
    width: 100%;
    min-width: 0;
}

@media (min-width: 1024px) {

    .fern-layout-changelog section.fern-changelog-content[data-has-aside="false"] > .max-w-content-width {
        display: grid !important;
        grid-template-columns:
            var(--changelog-date-width)
            var(--changelog-timeline-width)
            minmax(0, var(--changelog-content-width));
        column-gap: var(--changelog-column-gap);
        align-items: start;
    }

    .fern-layout-changelog section.fern-changelog-content[data-has-aside="false"] header,
    .fern-layout-changelog section.fern-changelog-content[data-has-aside="false"] .changelog-nav-bar {
        grid-column: 1 / -1;
        width: 100%;
        min-width: 0;
    }

    .fern-layout-changelog article.fern-changelog-content {
        display: grid !important;
        grid-template-columns:
            var(--changelog-date-width)
            var(--changelog-timeline-width)
            minmax(0, var(--changelog-content-width));
        column-gap: var(--changelog-column-gap);
        align-items: start;
    }

    .fern-layout-changelog article.fern-changelog-content aside {
        display: block !important;
        grid-column: 1;
        grid-row: 1;
        position: sticky;
        top: calc(var(--header-height, 50px) + 1rem);
        align-self: start;
        justify-self: start;
        text-align: left;
    }

    .fern-layout-changelog article.fern-changelog-content .max-w-content-width {
        grid-column: 3;
        grid-row: 1;
    }

    .fern-layout-changelog article.fern-changelog-content .eyebrow {
        display: none !important;
    }

    .fern-layout-changelog article.fern-changelog-content::before {
        content: "";
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
        width: 1px;
        height: calc(100% + 2.5rem);
        margin-top: 0.85rem;
        background: var(--grayscale-a4, #d7dade);
    }

    .fern-layout-changelog article.fern-changelog-content:last-of-type::before {
        height: 100%;
    }

    .fern-layout-changelog article.fern-changelog-content::after {
        content: "";
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
        align-self: start;
        width: 9px;
        height: 9px;
        margin-top: 0.35rem;
        border-radius: 999px;
        background: var(--accent-primary, #8639ff);
        box-shadow: 0 0 0 3px var(--background, #ffffff);
        z-index: 1;
    }

    .dark .fern-layout-changelog article.fern-changelog-content::after {
        box-shadow: 0 0 0 3px var(--background, #1c1d1f);
    }

    .fern-layout-changelog .fern-changelog-label {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .fern-layout-changelog .fern-changelog-label a.fern-docs-badge {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
        font-size: 14px;
        font-weight: 500;
        line-height: 20px;
        color: #464b53 !important;
        pointer-events: auto;
    }

    .dark .fern-layout-changelog .fern-changelog-label a.fern-docs-badge {
        color: #85898e !important;
    }

    .fern-layout-changelog .fern-filter-badge {
        border: 1px solid var(--grayscale-a5, #e5e7eb) !important;
        border-radius: 0.5rem !important;
        background: var(--background, #ffffff) !important;
        box-shadow: none !important;
        color: var(--text-body) !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        line-height: 1.25 !important;
        padding: 0.375rem 0.75rem !important;
    }

    .fern-layout-changelog .fern-filter-badge.fern-filter-badge-selected,
    .fern-layout-changelog .fern-filter-badge[data-state="open"] {
        background: #f5f3ff !important;
        border-color: #ddd6fe !important;
        color: #7c3aed !important;
    }

    .dark .fern-layout-changelog .fern-filter-badge {
        background: var(--background, #1c1d1f) !important;
        border-color: var(--grayscale-a6, #3f3f46) !important;
        color: var(--text-body) !important;
    }

    .dark .fern-layout-changelog .fern-filter-badge.fern-filter-badge-selected,
    .dark .fern-layout-changelog .fern-filter-badge[data-state="open"] {
        background: color-mix(in srgb, var(--accent-primary, #924dff) 14%, transparent) !important;
        border-color: color-mix(in srgb, var(--accent-primary, #924dff) 32%, transparent) !important;
        color: #c4b5fd !important;
    }

    .dark .fern-layout-changelog article.fern-changelog-content::before {
        background: #3a3b3f;
    }

}

@media (max-width: 1023px) {

    .fern-layout-changelog article.fern-changelog-content aside {
        display: none !important;
    }

}

.fern-layout-changelog .fern-changelog-date {
    margin-bottom: 0.75rem !important;
}

/* First heading inside an entry: avoid stacking a large h2 margin on top of entry padding */
.fern-layout-changelog .fern-changelog-content h2:first-of-type {
    margin-top: 0 !important;
}

.fern-layout-changelog .fern-changelog-content img {
    display: block;
    max-width: 100%;
    width: 100%;
    height: auto;
    margin-left: 0;
    margin-right: auto;
}

/* Changelog has no sidebar nav and no TOC, so hide both. The right-side TOC is
   replaced by the in-page search navigator, and the left sidebar is empty on
   changelog pages. Leaving them in place reserves side columns and pushes the
   centered content off-center. */
body:has(.fern-layout-changelog) #fern-sidebar,
body:has(.fern-layout-changelog) #fern-sidebar-spacer,
body:has(.fern-layout-changelog) #fern-toc {
    display: none !important;
}

/* Standalone pages (partner guides linked from outside the docs) opt in with a
   `<div className="standalone-page" />` marker in the MDX. They drop the left sidebar
   (guide-layout pages keep the TOC), the footer, and every header element except the
   logo. The header scrolls away with the page, and --header-height shrinks to the
   logo row so content and sticky offsets don't leave room for the hidden tabs. */
body:has(.standalone-page) {
    --header-height: 50px;
}

body:has(.standalone-page) #fern-sidebar,
body:has(.standalone-page) #fern-sidebar-spacer,
body:has(.standalone-page) .fern-header-tabs,
body:has(.standalone-page) .fern-header-logo-container ~ *,
body:has(.standalone-page) .status-badge-container,
body:has(.standalone-page) .fern-layout-footer,
body:has(.standalone-page) article:not(:has(.page-back-link)) .fern-breadcrumb {
    display: none !important;
}

body:has(.standalone-page) #fern-header {
    position: absolute;
    border-bottom: 0;
    background: transparent;
    backdrop-filter: none;
}

/* Replaces the space the hidden footer used to leave below the content. */
body:has(.standalone-page) article {
    padding-bottom: 6rem;
}

/* Reference-layout pages are full width. Pages that hold wide tables but read better
   narrower opt in with a `<div className="narrow-reference-page" />` marker, which
   caps the article at 874px. */
.narrow-reference-page {
    display: none;
}

.fern-layout-reference:has(.narrow-reference-page) > article {
    max-width: min(874px, 100%);
    margin-inline: auto;
}

/* Back link: an <a className="page-back-link"> at the top of the MDX takes the place
   of the section breadcrumb above the title. The breadcrumb keeps its space so the
   heading doesn't move; `top` matches the header's top margin (my-8). */
article:has(.page-back-link) {
    position: relative;
}

article:has(.page-back-link) .fern-breadcrumb {
    visibility: hidden;
}

.page-back-link {
    position: absolute;
    top: 2rem;
    left: 0;
    color: var(--grayscale-a11) !important;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    text-decoration: none !important;
}

.page-back-link::before {
    content: "← ";
}

article .fern-prose a.page-back-link[href]:is(:hover, :focus-visible) {
    color: var(--accent-a11) !important;
    text-decoration: none !important;
}

.step-image {
    margin-block: 1rem;
}

.step-image img {
    width: 100%;
    margin: 0;
}

/* 8x8 guide screenshots have white backgrounds, so a border separates them from the page. */
img[src*="/doc-images/8x8_"] {
    border: 1px solid var(--grayscale-a5, #e5e7eb);
}

/* Image steps: wrap <Steps> in <div className="image-steps"> and give each step a
   `.step-image` block. From a 64rem viewport, image-steps.js adds one pinned panel:
   the steps scroll on the left while the panel on the right shows the active step's
   image and fades the rest. Two columns need room, so use them on `layout: page` pages. */
.image-steps-panel {
    display: none;
}

@media (min-width: 64rem) {

    .image-steps[data-image-steps-init] {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
        column-gap: 3rem;
        align-items: start;
    }

    .image-steps[data-image-steps-init] .fern-step {
        min-height: 40vh;
        opacity: 0.4;
        transition: opacity 200ms ease;
    }

    .image-steps[data-image-steps-init] .fern-step[data-active] {
        opacity: 1;
    }

    .image-steps[data-image-steps-init] .fern-step:last-child {
        min-height: max(40vh, var(--image-steps-panel-height, 0px));
    }

    .image-steps[data-image-steps-init] .fern-step > .step-image {
        display: none;
    }

    .image-steps-panel {
        display: grid;
        position: sticky;
        top: 1.5rem;
    }

    .image-steps-frame {
        grid-area: 1 / 1;
        opacity: 0;
        transition: opacity 250ms ease;
    }

    .image-steps-frame[data-active] {
        opacity: 1;
    }

    .image-steps-frame .step-image {
        margin: 0;
    }

}

.changelog-nav-open body {
    overflow: hidden;
}

.changelog-nav-bar {
    width: 100%;
    margin: 0 0 0.25rem;
}

.changelog-nav-trigger {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    min-width: 0;
    min-height: 3rem;
    padding: 0.875rem 1rem;
    border: 1px solid var(--grayscale-a5, #e5e7eb);
    border-radius: 0.625rem;
    background: var(--background, #ffffff);
    color: var(--grayscale-a10, #6b7280);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 1px 2px color-mix(in srgb, var(--grayscale-a12, #111827) 6%, transparent);
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.changelog-nav-trigger svg {
    width: 1.125rem;
    height: 1.125rem;
    flex: 0 0 auto;
    color: var(--grayscale-a9, #9ca3af);
}

.changelog-nav-trigger-text {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--grayscale-a10, #6b7280);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.changelog-nav-trigger:hover,
.changelog-nav-trigger:focus-visible {
    border-color: var(--grayscale-a7, #d1d5db);
    box-shadow: 0 2px 8px color-mix(in srgb, var(--grayscale-a12, #111827) 8%, transparent);
    outline: none;
}

.changelog-nav-modal[hidden] {
    display: none;
}

.changelog-nav-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483646;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 8vh 1rem 1rem;
}

.changelog-nav-backdrop {
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, var(--grayscale-a12, #111827) 24%, transparent);
}

.changelog-nav-dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(100%, 640px);
    max-height: min(70vh, 560px);
    overflow: hidden;
    border: 1px solid var(--grayscale-a5, #e5e7eb);
    border-radius: 0.75rem;
    background: var(--background, #ffffff);
    color: var(--text-body);
    font-family: var(--font-body);
    box-shadow: 0 24px 80px color-mix(in srgb, var(--grayscale-a12, #111827) 18%, transparent);
}

.changelog-nav-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--grayscale-a4, #e5e7eb);
}

/* The input clears its default outline (below), so surface keyboard focus on
   the wrapping search row with an accent underline instead. */
.changelog-nav-input-wrap:focus-within {
    border-bottom-color: var(--accent-primary, #8639ff);
    box-shadow: inset 0 -1px 0 0 var(--accent-primary, #8639ff);
}

.changelog-nav-input-wrap svg {
    width: 1.125rem;
    height: 1.125rem;
    flex: 0 0 auto;
    color: var(--grayscale-a9, #9ca3af);
}

.changelog-nav-input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--text-body);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.4;
}

.changelog-nav-input::placeholder {
    color: var(--grayscale-a10, #6b7280);
}

.changelog-nav-input:focus {
    outline: none;
}

.changelog-nav-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--grayscale-a4, #e5e7eb);
}

.changelog-nav-tag {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--grayscale-a5, #e5e7eb);
    border-radius: 0.5rem;
    background: var(--background, #ffffff);
    color: var(--text-body);
    padding: 0.375rem 0.75rem;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.25;
    cursor: pointer;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.changelog-nav-tag:hover,
.changelog-nav-tag:focus-visible {
    border-color: var(--grayscale-a6, #d1d5db);
    outline: none;
}

.changelog-nav-tag-active {
    background: #f5f3ff;
    border-color: #ddd6fe;
    color: #7c3aed;
}

.dark .changelog-nav-tag {
    background: var(--background, #1c1d1f);
    border-color: var(--grayscale-a6, #3f3f46);
    color: var(--text-body);
}

.dark .changelog-nav-tag-active {
    background: color-mix(in srgb, var(--accent-primary, #924dff) 14%, transparent);
    border-color: color-mix(in srgb, var(--accent-primary, #924dff) 32%, transparent);
    color: #c4b5fd;
}

.changelog-nav-results {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 0.75rem 0.75rem 1rem;
}

.changelog-nav-label {
    margin: 0 0 0.5rem;
    padding: 0 0.5rem;
    color: #464b53;
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
}

.dark .changelog-nav-label {
    color: #85898e;
}

.changelog-nav-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.changelog-nav-result {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 0;
    border-radius: 0.5rem;
    background: transparent;
    color: var(--text-body);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
}

.changelog-nav-result svg {
    width: 0.875rem;
    height: 0.875rem;
    flex: 0 0 auto;
    color: var(--grayscale-a9, #9ca3af);
}

.changelog-nav-result span {
    flex: 1 1 auto;
    min-width: 0;
}

.changelog-nav-result:hover,
.changelog-nav-result:focus-visible,
.changelog-nav-result-active {
    background: var(--grayscale-a3, #f3f4f6);
    outline: none;
}

.changelog-nav-empty,
.changelog-nav-loading {
    margin: 0.5rem;
    color: var(--grayscale-a10, #6b7280);
    font-size: 14px;
}

@media (max-width: 640px) {

    .changelog-nav-modal {
        padding: 4vh 0.75rem 0.75rem;
    }

    .changelog-nav-dialog {
        max-height: min(80vh, 640px);
    }

}

/* Changelog subscribe modal */
.changelog-subscribe-open body {
    overflow: hidden;
}

.changelog-subscribe-trigger svg {
    width: 0.875rem;
    height: 0.875rem;
}

.changelog-subscribe-modal[hidden] {
    display: none;
}

.changelog-subscribe-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 6vh 1rem 1rem;
}

.changelog-subscribe-backdrop {
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, var(--grayscale-a12, #111827) 24%, transparent);
}

.changelog-subscribe-dialog {
    position: relative;
    width: min(100%, 600px);
    overflow: hidden;
    border: 1px solid var(--grayscale-a5, #e5e7eb);
    border-radius: 0.75rem;
    background: var(--background, #ffffff);
    color: var(--text-body);
    font-family: var(--font-body);
    font-size: 0.875rem;
    box-shadow: 0 24px 80px color-mix(in srgb, var(--grayscale-a12, #111827) 18%, transparent);
}

.changelog-subscribe-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 4rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--grayscale-a4, #e5e7eb);
}

.changelog-subscribe-header h2 {
    margin: 0;
    color: var(--text-body);
    font-size: 1rem !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
}

.changelog-subscribe-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.625rem;
    border: 0;
    border-radius: 0.375rem;
    background: transparent;
    color: var(--grayscale-a10, #6b7280);
    cursor: pointer;
    line-height: 1;
}

.changelog-subscribe-close svg {
    width: 18px;
    height: 18px;
}

.changelog-subscribe-close:hover {
    background: var(--grayscale-a2, #f9fafb);
    color: var(--text-body);
}
.changelog-subscribe-close:focus-visible {
    background: var(--grayscale-a2, #f9fafb);
    color: var(--text-body); outline: none;
}

.changelog-subscribe-tabs {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin: 0 1.5rem;
    border-bottom: 1px solid var(--grayscale-a4, #e5e7eb);
    overflow-x: auto;
}

.changelog-subscribe-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    min-height: 3.5rem;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--grayscale-a10, #6b7280);
    cursor: pointer;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.changelog-subscribe-tab svg {
    width: 1rem;
    height: 1rem;
}

.changelog-subscribe-tab:not(.changelog-subscribe-tab-active):hover {
    color: var(--text-body);
}
.changelog-subscribe-tab:not(.changelog-subscribe-tab-active):focus-visible {
    color: var(--text-body); outline: none;
}

.changelog-subscribe-tab-active {
    color: var(--accent-a11, #8639ff);
    border-bottom-color: currentColor;
}

.changelog-subscribe-panel {
    padding: 1.5rem;
    color: var(--text-body);
    font-size: 0.875rem;
    line-height: 1.6;
}

.changelog-subscribe-panel p {
    margin: 0 0 1rem;
}

.changelog-subscribe-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    border: 1px solid var(--grayscale-a5, #e5e7eb);
    border-radius: 999px;
    background: var(--background, #ffffff);
    color: var(--text-body) !important;
    cursor: pointer;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;
    padding: 0 1.25rem;
}

.changelog-subscribe-action:hover {
    background: var(--grayscale-a3, #f3f4f6);
}
.changelog-subscribe-action:focus-visible {
    background: var(--grayscale-a3, #f3f4f6); outline: none;
}

.changelog-subscribe-copy-row {
    position: relative;
    width: 100%;
}

.changelog-subscribe-copy-input {
    box-sizing: border-box;
    width: 100%;
    min-height: 3.25rem;
    padding: 0.75rem 3rem 0.75rem 1rem;
    border: 1px solid var(--grayscale-a4, #e5e7eb);
    border-radius: 0.5rem;
    background: var(--grayscale-a2, #f9fafb);
    color: var(--text-body) !important;
    font-family: var(--font-code);
    font-size: 0.875rem;
    line-height: 1.4;
    opacity: 1;
    -webkit-text-fill-color: var(--text-body);
}

.changelog-subscribe-copy {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 0.375rem;
    background: transparent;
    color: var(--grayscale-a10, #6b7280);
    cursor: pointer;
    transform: translateY(-50%);
}

.changelog-subscribe-copy:hover,
.changelog-subscribe-copy[data-copied="true"] {
    background: var(--grayscale-a3, #f3f4f6);
    color: var(--text-body);
}
.changelog-subscribe-copy:focus-visible {
    background: var(--grayscale-a3, #f3f4f6);
    color: var(--text-body); outline: none;
}

.changelog-subscribe-copy svg {
    width: 1rem;
    height: 1rem;
}

@media (max-width: 640px) {

    .changelog-subscribe-modal {
        padding-top: 1rem;
    }

    .changelog-subscribe-header,
    .changelog-subscribe-panel {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .changelog-subscribe-header {
        min-height: 3.75rem;
    }

    .changelog-subscribe-close {
        width: 2.25rem;
        height: 2.25rem;
        padding: 0.5625rem;
    }

    .changelog-subscribe-tabs {
        margin: 0 1rem;
        gap: 1rem;
    }

    .changelog-subscribe-tab {
        min-height: 3.25rem;
    }

}

/*
 * Inline code in prose: monospace pill (matches code:not(pre code) pattern from reference docs).
 * Uses Fern --font-code (ui-monospace stack). Overrides .prose :where(code) semibold/accent styling.
 */
.fern-layout-guide code:not(pre code),
.fern-layout-reference code:not(pre code),
.fern-layout-overview code:not(pre code),
.fern-layout-page code:not(pre code),
.fern-layout-changelog code:not(pre code),
.fern-page-content code:not(pre code) {
    box-sizing: border-box;
    padding: 0.1em 0.25em;
    border: 0;
    box-shadow: inset 0 0 0 0.5px var(--grayscale-a4, #e5e7eb);
    border-radius: 0.3em;
    line-height: 1.3;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    background-color: #f9f8f9;
    color: #3c4149 !important;
    font-family: var(--font-code) !important;
    font-feature-settings: normal;
    font-variation-settings: normal;
    font-size: 0.875em !important;
    font-weight: 400 !important;
}

.dark .fern-layout-guide code:not(pre code),
.dark .fern-layout-reference code:not(pre code),
.dark .fern-layout-overview code:not(pre code),
.dark .fern-layout-page code:not(pre code),
.dark .fern-layout-changelog code:not(pre code),
.dark .fern-page-content code:not(pre code) {
    box-shadow: inset 0 0 0 0.5px var(--grayscale-a6, #3f3f46);
    background-color: #1c1c1f;
    color: #d0d6e0 !important;
}

.fern-layout-guide pre code,
.fern-layout-reference pre code,
.fern-layout-overview pre code,
.fern-layout-page pre code,
.fern-layout-changelog pre code,
.fern-page-content pre code {
    padding: 0;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    line-height: inherit;
    background-color: transparent;
    color: inherit !important;
    font-size: inherit;
    font-weight: inherit;
}

/* Shiki token spans in fenced blocks — same body tone as inline code */
.fern-layout-guide pre code span,
.fern-layout-reference pre code span,
.fern-layout-overview pre code span,
.fern-layout-page pre code span,
.fern-layout-changelog pre code span,
.fern-page-content pre code span {
    color: var(--text-body) !important;
}

/* Remove background image from the header */
.fern-header-content {
    background-image: none !important;
}

/* Add spacing to Font Awesome icons inside step components */
.fern-steps .fa-icon {
    margin-right: 3px;
}

/*
 * MDX <Card> icons: match Fern iconSize={6} (6 × 4px = 24px).
 * Scoped to .fern-card only — not nav or steps.
 */
.fern-card .fa-icon {
    font-size: 1.5rem !important;
    width: 1.5rem !important;
    height: 1.5rem !important;
    max-width: 1.5rem !important;
    max-height: 1.5rem !important;
    vertical-align: middle;
}

.fern-card svg.svg-inline--fa {
    width: 1.5rem !important;
    height: 1.5rem !important;
    max-width: 1.5rem !important;
    max-height: 1.5rem !important;
}

/* Integration and telephony card logos from GCS */
.fern-card img {
    width: 1.5rem !important;
    height: 1.5rem !important;
    max-width: 1.5rem !important;
    max-height: 1.5rem !important;
    object-fit: contain;
    border-radius: 0 !important;
    vertical-align: middle;
}

/*
 * Integrations tab sidebar: vendor logos in nav items.
 * Fern renders custom icons as .fern-file-icon (size-5 = 20px).
 */
.fern-sidebar-link .fern-file-icon {
    width: 1rem !important;
    height: 1rem !important;
    max-width: 1rem !important;
    max-height: 1rem !important;
    object-fit: contain;
    border-radius: 0 !important;
}

/* Rounded images in doc body only (not header/chrome); align with DOC-107 layout roots */
.fern-layout-guide img,
.fern-layout-reference img,
.fern-layout-overview img,
.fern-layout-page img,
.fern-layout-changelog img,
.fern-page-content img {
    border-radius: 8px !important;
}

/* Sidebar section headings (Get Started, Learn, etc.) */
.fern-sidebar-heading-content {
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 16px !important;
    color: #464b53 !important;
}

.dark .fern-sidebar-heading-content {
    color: #85898e !important;
}

/* Page TOC: active section uses neutral gray instead of accent purple */
#fern-toc .toc-root a.font-bold {
    color: var(--grayscale-a12) !important;
}

#fern-toc .toc-root a.font-bold:focus-visible {
    background-color: var(--grayscale-a3) !important;
}

/* Status badge next to the logo */
.status-badge-container {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-left: 12px;
    text-decoration: none;
    opacity: 0.8;
}

.status-badge-container:hover {
    opacity: 1;
}
.status-badge-container:focus-visible {
    opacity: 1; outline: none;
}

.status-badge-dot {
    position: relative;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    color: var(--grayscale-a9);
    background-color: currentColor;
}

/* Pulsing halo behind the dot for a real-time feel */
.status-badge-dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background-color: currentColor;
    animation: status-badge-pulse 2.5s ease-out infinite;
}

@keyframes status-badge-pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    70%,
    100% {
        transform: scale(2.75);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {

    .status-badge-dot::after {
        animation: none;
        display: none;
    }

}

.status-badge-dot[data-status="operational"] {
    color: #22c55e;
}

.status-badge-dot[data-status="under_maintenance"] {
    color: #3b82f6;
}

.status-badge-dot[data-status="degraded_performance"] {
    color: #eab308;
}

.status-badge-dot[data-status="partial_outage"] {
    color: #f97316;
}

.status-badge-dot[data-status="full_outage"] {
    color: #ef4444;
}

.status-badge-dot[data-status="incident"] {
    color: #f97316;
}

.status-badge-text {
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
    color: var(--grayscale-a11);
}

@media (max-width: 768px) {

    .status-badge-container {
        display: none;
    }

}

/* Theme switcher menu items - ensure proper visibility on hover */
[role="menu"] [role="menuitem"]:hover,
[role="menu"] [data-radix-collection-item]:hover {
    opacity: 0.8;
}
[role="menu"] [role="menuitem"]:focus-visible,
[role="menu"] [data-radix-collection-item]:focus-visible {
    opacity: 0.8; outline: none;
}

/* Fern bundle loads after custom CSS; repeat link hover fix at file end for cascade safety */
:is(.fern-layout-guide, .fern-layout-reference, .fern-layout-overview, .fern-layout-page, .fern-layout-changelog)
    a.fern-mdx-link[href]:is(:hover, :focus-visible, :active),
.fern-page-content a.fern-mdx-link[href]:is(:hover, :focus-visible, :active) {
    text-decoration: underline 1px currentColor !important;
    text-decoration-thickness: 1px !important;
    text-underline-offset: 0.25em !important;
}

:is(.fern-layout-guide, .fern-layout-reference, .fern-layout-overview, .fern-layout-page, .fern-layout-changelog)
    a.fern-mdx-link[href],
.fern-page-content a.fern-mdx-link[href] {
    text-underline-offset: 0.25em !important;
}

/* Fern bundle loads after custom CSS; repeat accordion/tab body font at file end for cascade safety */
:is(.fern-layout-guide, .fern-layout-reference, .fern-layout-overview, .fern-layout-page, .fern-layout-changelog)
    :is(
        .fern-accordion,
        .fern-accordion-trigger,
        .fern-accordion-trigger-title,
        .fern-segmented-control,
        .fern-segmented-control .fern-button,
        [role="tablist"] :is(h6, [role="tab"])
    ),
.fern-page-content
    :is(
        .fern-accordion,
        .fern-accordion-trigger,
        .fern-accordion-trigger-title,
        .fern-segmented-control,
        .fern-segmented-control .fern-button,
        [role="tablist"] :is(h6, [role="tab"])
    ),
:is(.fern-layout-guide, .fern-layout-reference, .fern-layout-overview, .fern-layout-page, .fern-layout-changelog)
    h2:has(+ .fern-accordion),
:is(.fern-layout-guide, .fern-layout-reference, .fern-layout-overview, .fern-layout-page, .fern-layout-changelog)
    h2:has(+ * .fern-accordion),
.fern-page-content h2:has(+ .fern-accordion),
.fern-page-content h2:has(+ * .fern-accordion) {
    font-family: var(--font-body), system-ui, sans-serif !important;
}