/*fern-site-stylesheet*/@font-face {
    font-family: 'Geist';
    src: url('/_fern-files/calendly.docs.buildwithfern.com/1b5ebfb3a01a97343ac96873e6d59a8cb285c66012b6a1ac509cb2765e995ba8/docs/fonts/Geist-Variable.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Calendly Sans';
    src: url('/_fern-files/calendly.docs.buildwithfern.com/8ccaf45e63c8dba7dc42053bf99bc55dc4409dcaa2ec58289fda144e9a30a6e0/docs/fonts/CalendlySans-Variable.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
  --header-height: 64px;
  --header-height-real: 64px;
  --mobile-header-height-real: 64px;
  --content-width: 960px;
  --sidebar-width: 256px;
  --page-width: 100vw;
  --logo-height: 32px;
  --font-body: 'Geist', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  --font-heading: 'Calendly Sans', 'Geist', 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: #fcfdff;
  --accent-2: #f6f9fe;
  --accent-3: #eaf3fe;
  --accent-4: #ddebfe;
  --accent-5: #cce1fc;
  --accent-6: #b9d4f7;
  --accent-7: #a1c3ed;
  --accent-8: #7eabe2;
  --accent-9: #1e5ea7;
  --accent-10: #094f96;
  --accent-11: #2968b2;
  --accent-12: #1a3657;

  --accent-a1: #0055ff03;
  --accent-a2: #0055e309;
  --accent-a3: #006ef315;
  --accent-a4: #0069f822;
  --accent-a5: #0069f033;
  --accent-a6: #0063e246;
  --accent-a7: #005dcf5e;
  --accent-a8: #0059c681;
  --accent-a9: #00499be1;
  --accent-a10: #004992f6;
  --accent-a11: #004ba3d6;
  --accent-a12: #001f44e5;

  --accent-contrast: #fff;
  --accent-surface: #f4f8fecc;
  --accent-indicator: #1e5ea7;
  --accent-track: #1e5ea7;
}

@supports (color: color(display-p3 1 1 1)) {
  @media (color-gamut: p3) {
    .light, :root {
      --accent-1: oklch(99.4% 0.0024 254.6);
      --accent-2: oklch(98.2% 0.0074 254.6);
      --accent-3: oklch(96.1% 0.0171 254.6);
      --accent-4: oklch(93.5% 0.0299 254.6);
      --accent-5: oklch(90.3% 0.0427 254.6);
      --accent-6: oklch(86.2% 0.0573 254.6);
      --accent-7: oklch(80.6% 0.0709 254.6);
      --accent-8: oklch(73% 0.0944 254.6);
      --accent-9: oklch(48.2% 0.1334 254.6);
      --accent-10: oklch(43% 0.1334 254.6);
      --accent-11: oklch(51.5% 0.1334 254.6);
      --accent-12: oklch(32.8% 0.0684 254.6);

      --accent-a1: color(display-p3 0.0235 0.349 1 / 0.012);
      --accent-a2: color(display-p3 0.0196 0.2667 0.8784 / 0.032);
      --accent-a3: color(display-p3 0.0078 0.3725 0.898 / 0.075);
      --accent-a4: color(display-p3 0.0039 0.3608 0.9059 / 0.122);
      --accent-a5: color(display-p3 0.0039 0.3451 0.8745 / 0.185);
      --accent-a6: color(display-p3 0.0039 0.3255 0.8314 / 0.255);
      --accent-a7: color(display-p3 0.0039 0.302 0.749 / 0.342);
      --accent-a8: color(display-p3 0.0039 0.2941 0.7176 / 0.471);
      --accent-a9: color(display-p3 0 0.2157 0.549 / 0.808);
      --accent-a10: color(display-p3 0 0.2 0.502 / 0.867);
      --accent-a11: color(display-p3 0 0.2275 0.5843 / 0.773);
      --accent-a12: color(display-p3 0 0.0902 0.2314 / 0.871);

      --accent-contrast: #fff;
      --accent-surface: color(display-p3 0.9569 0.9725 0.9961 / 0.8);
      --accent-indicator: oklch(48.2% 0.1334 254.6);
      --accent-track: oklch(48.2% 0.1334 254.6);
    }
  }
}


.light, :root {
  --grayscale-1: #fcfcfd;
  --grayscale-2: #f9f9fb;
  --grayscale-3: #f0f0f3;
  --grayscale-4: #e8e8ec;
  --grayscale-5: #e0e1e6;
  --grayscale-6: #d9d9e0;
  --grayscale-7: #cdced6;
  --grayscale-8: #b9bbc6;
  --grayscale-9: #8b8d98;
  --grayscale-10: #80838d;
  --grayscale-11: #60646c;
  --grayscale-12: #1c2024;

  --grayscale-a1: #00005503;
  --grayscale-a2: #00005506;
  --grayscale-a3: #0000330f;
  --grayscale-a4: #00002d17;
  --grayscale-a5: #0009321f;
  --grayscale-a6: #00002f26;
  --grayscale-a7: #00062e32;
  --grayscale-a8: #00083046;
  --grayscale-a9: #00051d74;
  --grayscale-a10: #00071b7f;
  --grayscale-a11: #0007149f;
  --grayscale-a12: #000509e3;

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

@supports (color: color(display-p3 1 1 1)) {
  @media (color-gamut: p3) {
    .light, :root {
      --grayscale-1: color(display-p3 0.988 0.988 0.992);
      --grayscale-2: color(display-p3 0.976 0.976 0.984);
      --grayscale-3: color(display-p3 0.94 0.941 0.953);
      --grayscale-4: color(display-p3 0.908 0.909 0.925);
      --grayscale-5: color(display-p3 0.88 0.881 0.901);
      --grayscale-6: color(display-p3 0.85 0.852 0.876);
      --grayscale-7: color(display-p3 0.805 0.808 0.838);
      --grayscale-8: color(display-p3 0.727 0.733 0.773);
      --grayscale-9: color(display-p3 0.547 0.553 0.592);
      --grayscale-10: color(display-p3 0.503 0.512 0.549);
      --grayscale-11: color(display-p3 0.379 0.392 0.421);
      --grayscale-12: color(display-p3 0.113 0.125 0.14);

      --grayscale-a1: #00005503;
      --grayscale-a2: #00005506;
      --grayscale-a3: #0000330f;
      --grayscale-a4: #00002d17;
      --grayscale-a5: #0009321f;
      --grayscale-a6: #00002f26;
      --grayscale-a7: #00062e32;
      --grayscale-a8: #00083046;
      --grayscale-a9: #00051d74;
      --grayscale-a10: #00071b7f;
      --grayscale-a11: #0007149f;
      --grayscale-a12: #000509e3;

      --grayscale-contrast: #000;
      --grayscale-surface: color(display-p3 1 1 1 / 80%);
      --grayscale-indicator: color(display-p3 0.547 0.553 0.592);
      --grayscale-track: color(display-p3 0.547 0.553 0.592);
    }
  }
}


.dark {
  --accent-1: #050d17;
  --accent-2: #0d1825;
  --accent-3: #0a2746;
  --accent-4: #003262;
  --accent-5: #023e75;
  --accent-6: #124d86;
  --accent-7: #1e5d9d;
  --accent-8: #2570bc;
  --accent-9: #6bb1ff;
  --accent-10: #60a6f3;
  --accent-11: #72b8ff;
  --accent-12: #c9e3ff;

  --accent-a1: #000ef209;
  --accent-a2: #2182f918;
  --accent-a3: #077efc3b;
  --accent-a4: #0078fd59;
  --accent-a5: #0080fd6d;
  --accent-a6: #198dfd7f;
  --accent-a7: #2c95ff97;
  --accent-a8: #2f96ffb8;
  --accent-a9: #6bb1ff;
  --accent-a10: #64adfef3;
  --accent-a11: #72b8ff;
  --accent-a12: #c9e3ff;

  --accent-contrast: #fff;
  --accent-surface: #0f233b80;
  --accent-indicator: #6bb1ff;
  --accent-track: #6bb1ff;
}

@supports (color: color(display-p3 1 1 1)) {
  @media (color-gamut: p3) {
    .dark {
      --accent-1: oklch(15.8% 0.0257 252.4);
      --accent-2: oklch(20.7% 0.0295 252.4);
      --accent-3: oklch(27.1% 0.0669 252.4);
      --accent-4: oklch(31.6% 0.0998 252.4);
      --accent-5: oklch(36.4% 0.1081 252.4);
      --accent-6: oklch(41.5% 0.1123 252.4);
      --accent-7: oklch(47.4% 0.121 252.4);
      --accent-8: oklch(54% 0.1394 252.4);
      --accent-9: oklch(74.7% 0.1339 252.4);
      --accent-10: oklch(71.1% 0.1339 252.4);
      --accent-11: oklch(76.8% 0.1339 252.4);
      --accent-12: oklch(90.7% 0.0506 252.4);

      --accent-a1: color(display-p3 0 0.0549 0.9765 / 0.03);
      --accent-a2: color(display-p3 0.2235 0.5412 0.9961 / 0.088);
      --accent-a3: color(display-p3 0.1647 0.498 1 / 0.221);
      --accent-a4: color(display-p3 0.1137 0.4745 1 / 0.334);
      --accent-a5: color(display-p3 0.1647 0.5098 1 / 0.409);
      --accent-a6: color(display-p3 0.2549 0.5647 1 / 0.48);
      --accent-a7: color(display-p3 0.298 0.5922 1 / 0.571);
      --accent-a8: color(display-p3 0.3137 0.6 1 / 0.696);
      --accent-a9: color(display-p3 0.4941 0.702 1 / 0.975);
      --accent-a10: color(display-p3 0.4745 0.6902 1 / 0.925);
      --accent-a11: color(display-p3 0.5216 0.7333 1 / 0.975);
      --accent-a12: color(display-p3 0.8196 0.898 1 / 0.988);

      --accent-contrast: #fff;
      --accent-surface: color(display-p3 0.0784 0.1333 0.2196 / 0.5);
      --accent-indicator: oklch(74.7% 0.1339 252.4);
      --accent-track: oklch(74.7% 0.1339 252.4);
    }
  }
}


.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(30, 94, 167, 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(107, 177, 255, 1);
  --background: rgba(11, 13, 15, 1);
  --border: initial;
  --sidebar-background: initial;
  --header-background: color-mix(in srgb, var(--background), transparent 30%);
  --card-background: initial;
  --theme-color: #0b0d0f;
}

/* ========================================
   DESIGN TOKENS
   ======================================== */

:root {
  /* Header spacing */
  --header-padding-y: 16px;
  --header-padding-x: clamp(16px, 2.5vw, 32px);

  /* Tabs row spacing */
  --tabs-padding-y: 8px;
  --tabs-padding-x: var(--header-padding-x);

  /* Individual tab item spacing */
  --tab-item-padding-x: 16px;

  /* Sidebar spacing */
  --sidebar-padding-x: 8px;
  --sidebar-padding-top: 0px;
  --sidebar-section-gap: 24px;
  --sidebar-item-padding-y: 8px;
  --sidebar-indent: 12px;

  /* Section header padding (pt-32, pb-8, px-16 from Figma) */
  --sidebar-section-pt: 32px;
  --sidebar-section-pb: 8px;
  --sidebar-section-px: 16px;

  /* Nav item wrapper left/right padding (px-12 from Figma) */
  --sidebar-item-wrapper-px: 12px;

  /* Nav item pill inner padding (pl-12 pr-8 py-8 from Figma) */
  --sidebar-item-pl: 12px;
  --sidebar-item-pr: 8px;
  --sidebar-item-min-h: 40px;

  /* Sidebar colors */
  --sidebar-section-color: #545F69;
  --sidebar-item-color: #0B0D0F;
  --sidebar-item-active-color: #1E5EA7;
  --sidebar-item-active-bg: #D5E8FE;
  --sidebar-active-border-color: #E4E6E9;

  /* Base prose body + heading text — Fern defaults these to #2A2A2A; the brand
     primary text is #0B0D0F. Drives all standard doc/changelog/API-ref text. */
  --color-body: #0B0D0F;
  --color-black: #0B0D0F;
}

/* Layout proportions (page-width 1440 / sidebar-width 256 / content-width 960 /
   content-alignment left) are set natively in docs.yml — no CSS var override needed. */

/* Content-area horizontal padding — Figma uses margin-large (48px); Fern
   defaults the content + reference layout guides to 32px. */
.fern-layout-guide,
.fern-layout-reference {
  padding-left: 48px !important;
  padding-right: 48px !important;
}


/* Header logo/nav row (excludes announcement banner) */
#fern-header-content {
  padding-top: var(--header-padding-y) !important;
  padding-bottom: var(--header-padding-y) !important;
  padding-left: var(--header-padding-x) !important;
  padding-right: var(--header-padding-x) !important;
}

/* Custom header row (components/CustomHeader.tsx) */
.custom-header-content {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 24px);
}

.custom-header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

/* Desktop lockup: Calendly wordmark plus the "Developer" suffix in a single
   link. The 12px gap matches the spacing baked into the combined artwork. */
.custom-header-logo-full {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.custom-header-wordmark-light {
  display: block;
  height: 32px;
  width: auto;
}

.custom-header-wordmark-dark {
  display: none;
  height: 32px;
  width: auto;
}

.custom-header-developer {
  height: 29px;
  width: auto;
  /* Optical alignment against the Calendly wordmark's baseline. */
  transform: translateY(2px);
}

/* Swapped as a pair rather than recolored, so each SVG stays a faithful copy
   of developer-text.svg / developer-text-dark.svg. */
.custom-header-developer-light {
  display: block;
}

.custom-header-developer-dark {
  display: none;
}

.custom-header-logo-icon {
  display: none;
  align-items: center;
}

/* The light mark carries its own blue gradient; the dark one is a white
   outline, so the pair is swapped rather than recolored. */
.custom-header-mark-light {
  display: block;
}

.custom-header-mark-dark {
  display: none;
}

/* Fern.Search brings its own "flex max-w-[640px] flex-row gap-2" wrapper.
   Mobile: grow into the space between logo and actions. Desktop centering is
   handled by the equal-flex rules below. */
.custom-header-search {
  flex: 1 1 auto;
  min-width: 0;
}

.custom-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

/* Desktop: center the search + Ask AI cluster. Equal flex on logo and actions
   allocates the same slack on both sides; the search slot keeps a definite
   640px basis so Fern's wrapper can fill it (no auto-track % cycle).
   min-width: max-content keeps the side slots from shrinking under their
   content and overlapping the search (ECO-2912). When one side's content is
   wider than its equal share, the search shrinks and sits slightly off-center
   instead. */
@media (min-width: 1024px) {

  .custom-header-logo {
    flex: 1 1 0;
    min-width: max-content;
  }

  .custom-header-search {
    flex: 0 1 640px;
    min-width: 0;
  }

  .custom-header-search > * {
    width: 100%;
  }

  .custom-header-actions {
    flex: 1 1 0;
    min-width: max-content;
    margin-left: 0;
    justify-content: flex-end;
  }

}

/* Compact desktop tier: shrink the logo lockup so the search slot keeps a
   usable width. */
@media (min-width: 1024px) and (max-width: 1319.98px) {

  .custom-header-logo-full {
    gap: 10px;
  }

  .custom-header-wordmark-light,
  .custom-header-wordmark-dark {
    height: 26px;
  }

  .custom-header-developer {
    height: 23.5px;
  }

}

/* Collapse Ask AI to its icon to give the search field room. Fern gives the
   button no aria-label, so the label is hidden visually rather than with
   display: none, which would leave the button with no accessible name. */
@media (max-width: 1199.98px) {

  #fern-ask-ai-button .fern-button-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

}

.custom-header-navbar-links {
  display: flex;
  align-items: center;
}

.custom-header-hamburger {
  display: none;
  align-items: center;
}

/* 1023.98px so this never overlaps a min-width: 1024px rule; at exactly 1024px
   the desktop layout wins and the navbar links stay reachable. */
@media (max-width: 1023.98px) {

  .custom-header-logo-full {
    display: none;
  }

  .custom-header-logo-icon {
    display: flex;
  }

  /* Log in / Sign up and Resources move into the hamburger sidebar, which
     renders navbar-links on its own — hide the duplicate header copy. */
  .custom-header-navbar-links {
    display: none;
  }

  .custom-header-hamburger {
    display: flex;
  }

}

/* Tabs row */
.fern-header-tabs {
  padding-top: var(--tabs-padding-y) !important;
  padding-bottom: var(--tabs-padding-y) !important;
  padding-left: var(--tabs-padding-x) !important;
  padding-right: var(--tabs-padding-x) !important;
}

/* Individual tab items */
.fern-header-tabs [role="tab"] {
  padding-left: var(--tab-item-padding-x) !important;
  padding-right: var(--tab-item-padding-x) !important;
}

/* ========================================
   CHANGELOG — hide sidebar and TOC
   ======================================== */

.fern-main:has(.fern-changelog-content) #fern-sidebar,
.fern-main:has(.fern-changelog-content) #fern-toc {
  display: none !important;
}

/* Expand content area to full width when sidebar/TOC are hidden */
.fern-layout-changelog {
  flex: 1 1 auto !important;
  max-width: 100% !important;
}

.fern-layout-changelog .fern-changelog-content,
.fern-layout-changelog .fern-layout-footer {
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 960px !important;
  width: 100% !important;
  --content-width: 960px !important;
}

/* Override the fern-layout-page padding so centering works cleanly */
.fern-layout-changelog .fern-layout-page {
  padding-left: 32px !important;
  padding-right: 32px !important;
  max-width: 100% !important;
}

/* ========================================
   CHANGELOG TIMELINE
   ======================================== */

/* Hide the hr dividers between changelog entries */
.fern-layout-changelog article.fern-layout-page > hr {
  display: none !important;
}

/* Hide the large duplicate date h2 inside fern-prose */
article.fern-changelog-content .fern-prose h2:has(> a.not-prose[href*="/release-notes/"]) {
  display: none !important;
}

/* Style the eyebrow date badge as small uppercase label */
article.fern-changelog-content .fern-changelog-label > a.fern-docs-badge {
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #545F69 !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  text-decoration: none !important;
}

/* Timeline line: vertical bar + bridge to next entry via ::after */
article.fern-changelog-content {
  position: relative !important;
}

/* Line within each entry */
article.fern-changelog-content::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  left: 18.5px !important;
  width: 2px !important;
  background-color: #E4E6E9 !important;
}

/* Bridge line to fill the gap between entries */
article.fern-changelog-content::after {
  content: '' !important;
  position: absolute !important;
  top: 100% !important;
  left: 18.5px !important;
  width: 2px !important;
  height: 97px !important;
  background-color: #E4E6E9 !important;
}

/* Last entry has no next sibling — hide its bridge */
article.fern-changelog-content:last-of-type::after {
  display: none !important;
}

/* Indent each entry to make room for the line + node */
article.fern-changelog-content > .max-w-content-width {
  padding-left: 40px !important;
}

/* Circle node — positioned on the eyebrow (date tag row) */
article.fern-changelog-content > .max-w-content-width > .eyebrow {
  position: relative !important;
}

article.fern-changelog-content > .max-w-content-width > .eyebrow::before {
  content: '' !important;
  position: absolute !important;
  left: -28px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 15px !important;
  height: 15px !important;
  background-color: #1E5EA7 !important;
  border-radius: 50% !important;
  box-sizing: border-box !important;
  /* white gap (3.5px) + light gray outer ring + soft drop shadow */
  box-shadow:
    0 0 0 3.5px #ffffff,
    0 0 0 5.5px #E4E6E9,
    0 4px 10px 5px rgba(0, 0, 0, 0.10) !important;
  z-index: 1 !important;
}

/* ========================================
   SIDEBAR
   ======================================== */

/* Scroll area left/right padding (sidebar container px-8 from Figma) */
#fern-sidebar-scroll-area {
  padding-left: var(--sidebar-padding-x) !important;
  padding-right: var(--sidebar-padding-x) !important;
  padding-top: var(--sidebar-padding-top) !important;
}

/* Section headings (e.g. "Getting started" — non-linked heading divs) */
/* Figma: pt-32, pb-8, px-16 */
.fern-sidebar-heading {
  color: var(--sidebar-section-color) !important;
  font-family: 'Calendly Sans', sans-serif !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  line-height: 20px !important;
  padding-top: var(--sidebar-section-pt) !important;
  padding-bottom: var(--sidebar-section-pb) !important;
  padding-left: var(--sidebar-section-px) !important;
  padding-right: var(--sidebar-section-px) !important;
}

.fern-sidebar-heading .fern-sidebar-heading-content {
  color: var(--sidebar-section-color) !important;
  /* Fern sets w600 on this inner span — Figma: Calendly Sans Medium 500 */
  font-weight: 500 !important;
}

/* Section parent links (Authentication, MCP — top-level sections with landing page, depth 0) */
/* Figma: pt-32, pb-8, px-16 */
a.fern-sidebar-link.fern-sidebar-level-1 {
  padding-top: var(--sidebar-section-pt) !important;
  padding-bottom: var(--sidebar-section-pb) !important;
  padding-left: var(--sidebar-section-px) !important;
  padding-right: var(--sidebar-section-px) !important;
  color: var(--sidebar-section-color) !important;
  font-family: 'Calendly Sans', sans-serif !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  line-height: 20px !important;
}

a.fern-sidebar-link.fern-sidebar-level-1 .fern-sidebar-link-title-inner {
  color: var(--sidebar-section-color) !important;
}

/* All collapsible buttons — default: styled as nav items with pill margins */
button.fern-sidebar-link.fern-sidebar-level-1 {
  color: var(--sidebar-item-color) !important;
  font-family: Geist, sans-serif !important;
  font-weight: 500 !important;
  padding-top: var(--sidebar-item-padding-y) !important;
  padding-bottom: var(--sidebar-item-padding-y) !important;
  padding-left: var(--sidebar-item-pl) !important;
  padding-right: var(--sidebar-item-pr) !important;
  margin-left: var(--sidebar-item-wrapper-px) !important;
  margin-right: var(--sidebar-item-wrapper-px) !important;
  min-height: var(--sidebar-item-min-h) !important;
  border-radius: 8px !important;
  width: calc(100% - calc(var(--sidebar-item-wrapper-px) * 2)) !important;
  box-sizing: border-box !important;
}

button.fern-sidebar-link.fern-sidebar-level-1 .fern-sidebar-link-title-inner {
  color: var(--sidebar-item-color) !important;
}

/* Top-level collapsible section headers (e.g. API Guides on docs tab).
   These live in a li that has NO fern-sidebar-heading sibling.
   Selector: root ul.space-y-6 > li (no heading sibling) > ul.group-level-1 > li > div > button */
ul.fern-sidebar-group.space-y-6 > li:not(:has(> .fern-sidebar-heading)) > ul.fern-sidebar-group-level-1 > li > div > button.fern-sidebar-link.fern-sidebar-level-1 {
  color: var(--sidebar-section-color) !important;
  font-family: 'Calendly Sans', sans-serif !important;
  font-weight: 500 !important;
  padding-top: 12px !important;
  padding-right: 12px !important;
  padding-bottom: 12px !important;
  padding-left: 12px !important;
  margin-top: var(--sidebar-section-pt) !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  min-height: unset !important;
  border-radius: 5px !important;
  width: 100% !important;
}

ul.fern-sidebar-group.space-y-6 > li:not(:has(> .fern-sidebar-heading)) > ul.fern-sidebar-group-level-1 > li > div > button.fern-sidebar-link.fern-sidebar-level-1 .fern-sidebar-link-title-inner {
  color: var(--sidebar-section-color) !important;
}


/* Child nav items (depth 1) — Figma: outer px-12, inner pl-12 pr-8 py-8, min-h-40 */
ul.fern-sidebar-group-level-1 > li > a.fern-sidebar-link.fern-sidebar-level-1 {
  color: var(--sidebar-item-color) !important;
  font-family: Geist, sans-serif !important;
  font-weight: 500 !important;
  padding-top: var(--sidebar-item-padding-y) !important;
  padding-bottom: var(--sidebar-item-padding-y) !important;
  padding-left: var(--sidebar-item-pl) !important;
  padding-right: var(--sidebar-item-pr) !important;
  margin-left: var(--sidebar-item-wrapper-px) !important;
  margin-right: var(--sidebar-item-wrapper-px) !important;
  min-height: var(--sidebar-item-min-h) !important;
  border-radius: 8px !important;
  width: calc(100% - calc(var(--sidebar-item-wrapper-px) * 2)) !important;
  box-sizing: border-box !important;
}

ul.fern-sidebar-group-level-1 > li > a.fern-sidebar-link.fern-sidebar-level-1 .fern-sidebar-link-title-inner {
  color: var(--sidebar-item-color) !important;
}

/* Active child nav item (depth 1) */
ul.fern-sidebar-group-level-1 > li > a.fern-sidebar-link.fern-sidebar-level-1[data-state="active"] {
  background-color: var(--sidebar-item-active-bg) !important;
  border-left: none !important;
  box-shadow: none !important;
}

ul.fern-sidebar-group-level-1 > li > a.fern-sidebar-link.fern-sidebar-level-1[data-state="active"]::before {
  display: none !important;
  background: none !important;
}

ul.fern-sidebar-group-level-1 > li > a.fern-sidebar-link.fern-sidebar-level-1[data-state="active"] .fern-sidebar-link-title-inner {
  color: var(--sidebar-item-active-color) !important;
}

/* Depth-2 items — children of collapsed sections (e.g. API Guides items) */
/* Figma: outer wrapper pl-32, pill pl-12. Group-level-2 has margin-left 26px,
   so item margin-left of 6px + pill pl-12 = 18px from group edge = 44px from sidebar edge */
.fern-sidebar-link.fern-sidebar-level-2.nested {
  color: var(--sidebar-item-color) !important;
  font-family: Geist, sans-serif !important;
  font-weight: 500 !important;
  padding-top: var(--sidebar-item-padding-y) !important;
  padding-bottom: var(--sidebar-item-padding-y) !important;
  padding-left: var(--sidebar-item-pl) !important;
  padding-right: var(--sidebar-item-pr) !important;
  margin-left: 6px !important;
  margin-right: var(--sidebar-item-wrapper-px) !important;
  min-height: var(--sidebar-item-min-h) !important;
  border-radius: 8px !important;
  width: calc(100% - 6px - var(--sidebar-item-wrapper-px)) !important;
  box-sizing: border-box !important;
}

.fern-sidebar-link.fern-sidebar-level-2.nested .fern-sidebar-link-title-inner {
  color: var(--sidebar-item-color) !important;
}

/* Active depth-2 item */
.fern-sidebar-link.fern-sidebar-level-2.nested[data-state="active"] {
  background-color: var(--sidebar-item-active-bg) !important;
  border-left: none !important;
  box-shadow: none !important;
}

.fern-sidebar-link.fern-sidebar-level-2.nested[data-state="active"]::before {
  display: none !important;
  background: none !important;
}

.fern-sidebar-link.fern-sidebar-level-2.nested[data-state="active"] .fern-sidebar-link-title-inner {
  color: var(--sidebar-item-active-color) !important;
}

/* Depth-3 items */
.fern-sidebar-link.fern-sidebar-level-3 {
  color: var(--sidebar-item-color) !important;
  font-family: Geist, sans-serif !important;
  font-weight: 500 !important;
  padding-top: var(--sidebar-item-padding-y) !important;
  padding-bottom: var(--sidebar-item-padding-y) !important;
  padding-left: var(--sidebar-item-pl) !important;
  padding-right: var(--sidebar-item-pr) !important;
  margin-left: var(--sidebar-item-wrapper-px) !important;
  margin-right: var(--sidebar-item-wrapper-px) !important;
  min-height: var(--sidebar-item-min-h) !important;
  border-radius: 8px !important;
  width: calc(100% - calc(var(--sidebar-item-wrapper-px) * 2)) !important;
  box-sizing: border-box !important;
}

.fern-sidebar-link.fern-sidebar-level-3 .fern-sidebar-link-title-inner {
  color: var(--sidebar-item-color) !important;
}

.fern-sidebar-link.fern-sidebar-level-3[data-state="active"] {
  background-color: var(--sidebar-item-active-bg) !important;
  border-left: none !important;
  box-shadow: none !important;
}

.fern-sidebar-link.fern-sidebar-level-3[data-state="active"]::before {
  display: none !important;
  background: none !important;
}

.fern-sidebar-link.fern-sidebar-level-3[data-state="active"] .fern-sidebar-link-title-inner {
  color: var(--sidebar-item-active-color) !important;
}

/* Remove left border on level-1 groups (non-collapsible children) */
.fern-sidebar-group-level-1 {
  border-left: none !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
}

/* Left border line for collapsible section children (level-2 and deeper) */
/* Figma: indicator line at left-26px from sidebar edge (8px container + 18px = 26px) */
.fern-sidebar-group-level-2 {
  border-left: 1px solid var(--sidebar-active-border-color) !important;
  margin-left: 26px !important;
  padding-left: 0 !important;
}

.fern-sidebar-group-level-3 {
  border-left: 1px solid var(--sidebar-active-border-color) !important;
  margin-left: calc(26px + var(--sidebar-indent)) !important;
  padding-left: 0 !important;
}

/* ========================================
   LANDING PAGE
   ======================================== */

/* Landing page background */
:has(.landing-hero) {
  background-color: #fafafa;
}

/* Navbar links (Resources dropdown) — Figma: Calendly Sans Medium 500, 16/22 */
.fern-header-navbar-links .fern-button .fern-button-text,
.fern-header-navbar-links .fern-button {
  font-family: 'Calendly Sans', sans-serif !important;
  font-weight: 500 !important;
  font-size: 16px !important;
}

/* Landing Page Shared Max-Width */
.landing-hero,
.landing-use-cases,
.testimonial-carousel {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

/* Disable anchor links on landing page headings */
.landing-hero h1,
.landing-use-cases h2,
.landing-use-cases h3 {
  pointer-events: none;
}
/* Tab bar — no bottom border */
.fern-header-tabs {
  border-bottom: 0px !important;
  position: relative !important;
}

/* Tab text — Figma: Geist Regular 400, 16/22; active differentiated by color + underline */
#fern-header [data-radix-collection-item] {
  color: #545F69 !important;
  font-weight: 400 !important;
  font-size: 16px !important;
  line-height: 22px !important;
}
#fern-header [data-radix-collection-item][data-state=active] {
  color: #0B0D0F !important;
  font-weight: 400 !important;
}

/* Fern fakes bold on the active tab with a 0.5px -webkit-text-stroke on the
   inner span — design wants plain Medium, differentiated by color + underline */
#fern-header [data-radix-collection-item] span {
  -webkit-text-stroke: 0px !important;
}

/* Active tab pill indicator — width matches tab text, positioned at bottom of tab */
#fern-header [data-radix-collection-item] {
  position: relative !important;
}

#fern-header [data-radix-collection-item]::after {
  content: '' !important;
  display: block !important;
  position: absolute !important;
  bottom: -8px !important;
  /* Center the pill over the text by using the tab's padding */
  left: var(--tab-item-padding-x) !important;
  right: var(--tab-item-padding-x) !important;
  width: auto !important;
  height: 3px !important;
  background-color: #1E5EA7 !important;
  border-radius: 3px 3px 0 0 !important;
  transform: scaleX(0) !important;
  transform-origin: center !important;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease !important;
  opacity: 0 !important;
}

#fern-header [data-radix-collection-item][data-state=active]::after {
  transform: scaleX(1) !important;
  opacity: 1 !important;
}
.fern-sidebar-link[data-state=active] .fern-sidebar-link-title-inner{
  -webkit-text-stroke: 0px !important;
}
/* ========================================
   HERO SECTION
   ======================================== */

.landing-hero {
  background-color: #004796;
  background-image: url("https://calendly-images.s3.us-east-1.amazonaws.com/hero.svg");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 100%;
  padding: 80px 40px 80px 48px;
  text-align: left;
  border-radius: 0;
  margin-bottom: 0;
}

@media (max-width: 1020px) {

  .landing-hero {
    background-image: none;
  }

}
@media (max-width: 1300px) {

  .landing-use-cases {
    padding-left: 48px !important;
    padding-right: 48px !important;
  }

}

.landing-hero-title {
  color: #ffffff;
  font-size: 40px;
  font-weight: 700;
  line-height: 48px;
}

.landing-hero-subtitle {
  color: #ffffff;
  font-size: 24px;
  font-weight: 400;
  line-height: 32px;
  margin: 0 0 24px 0;
}

.landing-hero-button {
  display: inline-block;
  background-color: #ffffff;
  color: #1E5EA7;
  border: 1px solid #1E5EA7;
  padding: 10px 17px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.landing-hero-button:hover {
  background-color: #e6e6e6;
}
.landing-hero-button:focus-visible {
  background-color: #e6e6e6; outline: none;
}

/* ========================================
   USE CASES SECTION
   ======================================== */

.landing-use-cases {
  padding: 56px 0 80px 0;
  margin-bottom: 0;
}

.landing-use-cases-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 24px;
  gap: 0;
}

.landing-use-cases-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 40px;
  color: #0B0D0F;
  margin: 0 0 24px 0;
}

.landing-use-cases-link {
  color: #1E5EA7;
  text-decoration: none;
  font-size: 18px;
  font-weight: 400;
  line-height: 32px;
}

.landing-use-cases-link:hover {
  text-decoration: underline;
}
.landing-use-cases-link:focus-visible {
  text-decoration: underline; outline: none;
}

/* Cards */
.landing-use-cases .fern-card,
.support-connect .fern-card {
  background-color: #ffffff;
  border: 1px solid #dadada;
  border-radius: 4px;
  box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.15);
  padding: 21px;
  min-width: 290px;
}

.landing-card-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
}

.landing-card-icon {
  width: 34px;
  height: auto;
  margin-bottom: 17px;
  margin-inline: 0 !important;
  display: block;
}

.landing-card-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  color: #1E5EA7;
  margin: 0 0 8px 0;
}

.landing-card-description {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #0B0D0F;
  margin: 0 0 16px 0;
  flex-grow: 1;
}

.landing-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  background-color: #1E5EA7;
  color: #ffffff;
  padding: 6px 13px;
  border-radius: 40px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  min-height: 32px;
  transition: background-color 0.2s;
}

.landing-card-link:hover {
  background-color: #164A80;
}
.landing-card-link:focus-visible {
  background-color: #164A80; outline: none;
}

/* ========================================
   OVERVIEW PAGE
   ======================================== */

/* NOTE: do not force a background here. `:has(.overview-hero)` matches every
   ancestor including <html>, and a forced #ffffff there leaks into dark mode
   (the html.dark override can't reach <html> itself). Let the theme background
   apply per mode (white in light, #0B0D0F in dark). */

/* Overview content is capped at 960 and centered, so it sits ~48px from the
   sidebar on normal screens and drifts toward center on large ones. The TOC is
   removed natively via `layout: reference` in getting-started.mdx (no CSS
   `:has()` condition needed). */
.overview-hero,
.overview-feature-cards,
.overview-resources,
.testimonial-carousel {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}


/* Hide Fern's auto-rendered page header (breadcrumb + title + subtitle) on the
   overview — the explicit .overview-hero below reproduces it with exact Figma
   rhythm (eyebrow +48 / h1 +74 / subtitle +122 / cards +192 from content top). */
.fern-main:has(.overview-feature-cards) header:has(.fern-page-heading) {
  display: none !important;
}

/* Figma rhythm: eyebrow at +48 from content-area top; gaps eyebrow→h1 6,
   h1→subtitle 12, subtitle→cards 48 (the cards' own padding-top). */
.overview-hero {
  padding: 48px 0 0 0;
}

.overview-hero-eyebrow {
  font-family: Geist, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #1E5EA7;
  margin: 0 0 6px 0;
  text-transform: none;
}

.overview-hero-title {
  font-family: 'Calendly Sans', sans-serif;
  font-size: 32px;
  font-weight: 500;
  line-height: 36px;
  letter-spacing: -0.32px;
  color: #0B0D0F;
  margin: 0 0 12px 0;
  pointer-events: none;
}

.overview-hero-subtitle {
  font-family: Geist, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  color: #0B0D0F;
  margin: 0;
}

/* Feature cards grid */
.overview-feature-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
  padding-top: 48px; /* Figma: 48px gap from hero subtitle to card grid */
}

.overview-feature-card {
  display: flex;
  flex-direction: column;
  background-color: var(--card-surface, #ffffff);
  border: 1px solid var(--card-border, #E4E6E9);
  border-radius: 16px;
  padding: 32px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.overview-feature-card:hover {
  border-color: #1E5EA7;
  box-shadow: 0 2px 8px rgba(30, 94, 167, 0.08);
}
.overview-feature-card:focus-visible {
  border-color: #1E5EA7;
  box-shadow: 0 2px 8px rgba(30, 94, 167, 0.08); outline: none;
}

/* Card header: pastel avatar + uppercase eyebrow */
.overview-feature-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.overview-feature-card-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.overview-feature-card-avatar img {
  width: 24px;
  height: 24px;
  margin: 0 !important;
  display: block;
}

.avatar-rest-api { background-color: #EAE3FA; }
.avatar-mcp { background-color: #D5E8FE; }
.avatar-embed { background-color: #FEE3C0; }
.avatar-webhooks { background-color: #BAF0EC; }

.overview-feature-card-eyebrow {
  font-family: 'Calendly Sans', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  letter-spacing: 1.12px;
  text-transform: uppercase;
  color: #0B0D0F;
}

.overview-feature-card-title {
  font-size: 22px;
  font-weight: 500;
  line-height: 28px;
  color: #0B0D0F;
  margin: 0 0 8px 0;
  pointer-events: none;
}

.overview-feature-card-description {
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  color: #0B0D0F;
  margin: 0 0 24px 0;
  flex-grow: 1;
}

.overview-feature-card-link {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #1E5EA7;
  text-decoration: none;
  margin-top: auto;
}

/* Resources section */
.overview-resources {
  margin-bottom: 48px;
}

.overview-resources-title {
  font-size: 22px;
  font-weight: 500;
  line-height: 26px;
  color: #0B0D0F;
  margin: 0 0 4px 0;
  pointer-events: none;
}

.overview-resources-subtitle {
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  color: #0B0D0F;
  margin: 0 0 24px 0;
}

.overview-resources-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.overview-resource-card {
  display: flex;
  flex-direction: column;
  background-color: var(--card-surface, #ffffff);
  border: 1px solid var(--card-border, #E4E6E9);
  border-radius: 16px;
  padding: 32px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.overview-resource-card:hover {
  border-color: #1E5EA7;
  box-shadow: 0 2px 8px rgba(30, 94, 167, 0.08);
}
.overview-resource-card:focus-visible {
  border-color: #1E5EA7;
  box-shadow: 0 2px 8px rgba(30, 94, 167, 0.08); outline: none;
}

.overview-resource-card-title {
  font-size: 22px;
  font-weight: 500;
  line-height: 26px;
  color: #0B0D0F;
  margin: 0 0 8px 0;
  pointer-events: none;
}

.overview-resource-card-description {
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  color: #0B0D0F;
  margin: 0 0 24px 0;
  flex-grow: 1;
}

.overview-resource-card-link {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #1E5EA7;
  text-decoration: none;
  margin-top: auto;
}

/* The external cards (community URL, mailto) get Fern's auto external-link arrow
   icon, which (a) duplicates the authored "→" and (b) adds line height that
   misaligns the CTA vs the internal Changelog card. Suppress it so all resource
   cards show a single, aligned "→". Links still open in a new tab on click. */
.overview-resource-card svg {
  display: none !important;
}

/* ========================================
   TESTIMONIAL CAROUSEL (Featured Voices)
   ======================================== */

.testimonial-carousel {
  border: 1px solid var(--card-border, #E4E6E9);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 48px;
  background-color: var(--panel-surface, #F8F9FB);
}

.testimonial-carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.testimonial-carousel-title {
  font-size: 22px;
  font-weight: 500;
  line-height: 26px;
  color: #0B0D0F;
  margin: 0;
  pointer-events: none;
}

.testimonial-carousel-arrows {
  display: flex;
  gap: 2px;
}

.testimonial-carousel-arrow {
  background: none;
  border: none;
  padding: 4px 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-carousel-arrow:hover {
  opacity: 0.5;
}
.testimonial-carousel-arrow:focus-visible {
  opacity: 0.5; outline: none;
}

.testimonial-carousel-logo {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.testimonial-carousel-logo svg {
  max-height: 36px;
  width: auto;
}

.testimonial-carousel-quote {
  font-size: 18px;
  font-weight: 400;
  font-style: italic;
  line-height: 24px;
  color: #0B0D0F;
  margin: 0 0 24px 0;
  text-align: left;
}

.testimonial-carousel-author-name {
  font-family: 'Calendly Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #0B0D0F;
  margin: 0;
  text-align: left;
}

.testimonial-carousel-author-title {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #545F69;
  margin: 0;
  text-align: left;
}

/* ========================================
   SUPPORT PAGE
   ======================================== */

/* Support page background */
:has(.support-hero) {
  background-color: #fafafa;
}

.support-hero,
.support-connect {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

/* Disable anchor links on support page headings */
.support-hero h1,
.support-hero h2,
.support-connect h3 {
  pointer-events: none;
}

.support-hero {
  background-color: #004796;
  background-image: url("https://developer.calendly.com/static/help-background-dee4113689094796e46f1319337a0e07.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  padding: 60px 40px 50px;
  text-align: center;
  border-radius: 0;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.support-hero-title {
  color: #ffffff;
  font-size: 40px;
  font-weight: 700;
  line-height: 48px;
  margin: 0 0 24px 0;
}

.support-hero-subtitle {
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  margin: 0 0 8px 0;
}

.support-hero-text {
  color: #ffffff;
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  margin: 0;
}

.support-hero .support-hero-email .fern-mdx-link{
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 700;
  line-height: 28px !important;
  text-decoration: underline !important;
  margin-top: 16px !important;
}

.support-hero .fern-mdx-link.support-hero-feedback {
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 400;
  line-height: 28px;
  text-decoration: underline;
  margin-top: 16px;
}

/* Connect section */
.support-connect {
  padding: 56px 0 80px 0;
  margin-bottom: 0;
}

.support-connect-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 24px;
  gap: 0;
}

.support-connect-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 40px;
  color: #0B0D0F;
  margin: 0 0 24px 0;
}

.support-connect-link {
  color: #1E5EA7;
  text-decoration: none;
  font-size: 18px;
  font-weight: 400;
  line-height: 32px;
}

.support-connect-link:hover {
  text-decoration: underline;
}
.support-connect-link:focus-visible {
  text-decoration: underline; outline: none;
}

@media (max-width: 1300px) {

  .support-connect {
    padding-left: 48px !important;
    padding-right: 48px !important;
  }

}

/* Header Navbar Button Styles */
.fern-header-navbar-links .fern-button {
  padding: 1.125rem 1rem !important;
}

/* ========================================
   CUSTOM FOOTER STYLES
   ======================================== */

.custom-footer-minimal {
  background-color: #ffffff;
  border-top: 1px solid #E4E6E9;
  padding: 0 32px;
}

.custom-footer-minimal-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  min-height: 56px;
  gap: 24px;
}

.custom-footer-minimal-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.custom-footer-minimal-link {
  font-size: 13px;
  font-weight: 400;
  color: #545F69;
  text-decoration: none;
  white-space: nowrap;
}

.custom-footer-minimal-link:hover {
  color: #0B0D0F;
}
.custom-footer-minimal-link:focus-visible {
  color: #0B0D0F; outline: none;
}

button.custom-footer-minimal-link {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

#onetrust-consent-sdk,
#onetrust-banner-sdk {
  z-index: 2147483646;
}

.custom-footer-minimal-copy {
  font-size: 13px;
  font-weight: 400;
  color: #545F69;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 768px) {

  .custom-footer-minimal {
    padding: 16px 24px;
  }

  .custom-footer-minimal-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-height: unset;
  }

  .custom-footer-minimal-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

}

/* ========================================
   DARK MODE (rebrand 2026)
   ======================================== */

html.dark {
  /* Sidebar */
  --sidebar-section-color: #A4AEB7;
  --sidebar-item-color: #E4E6E9;
  --sidebar-item-active-color: #6BB1FF;
  --sidebar-item-active-bg: #0C2D54;
  --sidebar-active-border-color: #272E33;

  /* Cards / panels */
  --card-surface: #0F1114;
  --card-border: #272E33;
  --panel-surface: #0F1114;

  /* Base prose body + heading text (dark) — Fern defaults to pure #FFFFFF;
     brand primary text in dark is #E4E6E9. */
  --color-body: #E4E6E9;
  --color-black: #E4E6E9;
}

/* Dark mode body/heading text. Fern's Tailwind-typography dark prose renders
   plain content text as #fff; force brand #E4E6E9. The :not([class]) selector
   targets classless standard prose/changelog/reference text and deliberately
   skips the overview's custom-classed elements (eyebrow/title/links), which keep
   their own dark colors set below. Links/code are excluded (not in the list). */
html.dark :is(.fern-prose, .fern-changelog-content, .fern-layout-reference) :is(h1, h2, h3, h4, h5, h6, p, li, td, th):not([class]),
html.dark h1.fern-page-heading {
  color: #E4E6E9 !important;
}

/* Don't force light backgrounds in dark mode */
html.dark :has(.overview-hero),
html.dark :has(.landing-hero),
html.dark :has(.support-hero) {
  background-color: transparent;
}

/* Tabs */
html.dark #fern-header [data-radix-collection-item] {
  color: #A4AEB7 !important;
}
html.dark #fern-header [data-radix-collection-item][data-state=active] {
  color: #E4E6E9 !important;
}
html.dark #fern-header [data-radix-collection-item]::after {
  background-color: #6BB1FF !important;
}

/* Logo — the light artwork uses a blue gradient mark and dark letterforms,
   the dark artwork a white outline mark and white letterforms, so every pair
   is swapped rather than recolored. */
html.dark .custom-header-wordmark-light,
html.dark .custom-header-mark-light,
html.dark .custom-header-developer-light {
  display: none;
}

html.dark .custom-header-wordmark-dark,
html.dark .custom-header-mark-dark,
html.dark .custom-header-developer-dark {
  display: block;
}

/* Overview page text */
html.dark .overview-hero-title,
html.dark .overview-feature-card-eyebrow,
html.dark .overview-feature-card-title,
html.dark .overview-feature-card-description,
html.dark .overview-resources-title,
html.dark .overview-resources-subtitle,
html.dark .overview-resource-card-title,
html.dark .overview-resource-card-description,
html.dark .testimonial-carousel-title,
html.dark .testimonial-carousel-quote,
html.dark .testimonial-carousel-author-name {
  color: #E4E6E9;
}

html.dark .overview-hero-subtitle,
html.dark .testimonial-carousel-author-title {
  color: #A4AEB7;
}

html.dark .overview-hero-eyebrow,
html.dark .overview-feature-card-link,
html.dark .overview-resource-card-link {
  color: #6BB1FF;
}

html.dark .overview-feature-card:hover,
html.dark .overview-resource-card:hover {
  border-color: #6BB1FF;
  box-shadow: 0 2px 8px rgba(107, 177, 255, 0.08);
}
html.dark .overview-feature-card:focus-visible,
html.dark .overview-resource-card:focus-visible {
  border-color: #6BB1FF;
  box-shadow: 0 2px 8px rgba(107, 177, 255, 0.08); outline: none;
}

/* Pastel avatars keep light fills; give icons a dark-on-light look */
html.dark .overview-feature-card-avatar {
  border-color: rgba(255, 255, 255, 0.1);
}

/* Changelog timeline */
html.dark article.fern-changelog-content .fern-changelog-label > a.fern-docs-badge {
  color: #A4AEB7 !important;
}
html.dark article.fern-changelog-content::before,
html.dark article.fern-changelog-content::after {
  background-color: #272E33 !important;
}
html.dark article.fern-changelog-content > .max-w-content-width > .eyebrow::before {
  background-color: #6BB1FF !important;
  box-shadow:
    0 0 0 3.5px #0B0D0F,
    0 0 0 5.5px #272E33,
    0 4px 10px 5px rgba(0, 0, 0, 0.4) !important;
}

/* Footer */
html.dark .custom-footer-minimal {
  background-color: transparent;
  border-top-color: #272E33;
}
html.dark .custom-footer-minimal-link,
html.dark .custom-footer-minimal-copy {
  color: #A4AEB7;
}
html.dark .custom-footer-minimal-link:hover {
  color: #E4E6E9;
}
html.dark .custom-footer-minimal-link:focus-visible {
  color: #E4E6E9; outline: none;
}

/* ========================================
   TYPOGRAPHY SCALE (rebrand 2026)
   Fern defaults render headings extrabold (700-800);
   the new brand spec is Medium 500 across all heading levels.
   ======================================== */

/* headline/large: 32/36, -0.32 */
.fern-prose h1,
h1.fern-page-heading,
#fern-docs h1 {
  font-weight: 500 !important;
  font-size: 32px !important;
  line-height: 36px !important;
  letter-spacing: -0.32px !important;
}

/* headline/small: 24/28, -0.24 */
.fern-prose h2,
#fern-docs h2 {
  font-weight: 500 !important;
  letter-spacing: -0.24px !important;
}

/* title/large: 22/26, ls 0 */
.fern-prose h3,
#fern-docs h3 {
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}

/* title/small: 16/22, ls 0 */
.fern-prose h4,
.fern-prose h5,
.fern-prose h6,
#fern-docs h4,
#fern-docs h5,
#fern-docs h6 {
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}

/* Standard (classless) prose + changelog text get the full brand type scale's
   size + line-height — Fern defaults leave h2/h3 over-sized line-heights and
   body at lh 28. :not([class]) skips the overview's custom-classed headings/
   paragraphs, which set their own sizes. */
.fern-prose h2:not([class]),
.fern-changelog-content h2:not([class]) {
  font-size: 24px !important;
  line-height: 28px !important;
}
.fern-prose h3:not([class]),
.fern-changelog-content h3:not([class]) {
  font-size: 22px !important;
  line-height: 26px !important;
}
.fern-prose p:not([class]),
.fern-prose li:not([class]),
.fern-changelog-content p:not([class]),
.fern-changelog-content li:not([class]) {
  line-height: 22px !important;
}

/* Cards: kill Fern's inherited negative tracking (design: ls 0) */
.overview-feature-card-title,
.overview-resource-card-title,
.overview-resources-title,
.testimonial-carousel-title {
  letter-spacing: 0 !important;
}

/* "On this page" TOC — Fern bolds the active entry (w700); normalize to the
   brand type scale (Geist Medium 500, differentiated by color) */
#fern-toc a {
  font-weight: 400 !important;
}
#fern-toc a[data-state="active"],
#fern-toc a.text-\(color\:--accent-a11\) {
  font-weight: 500 !important;
}

/* Header search bar — Figma: radiusLarge 16px, 42px tall (→ 74px header row
   with 16px top/bottom padding). Fern defaults to 8px radius / 36px tall. */
#fern-search-button {
  border-radius: 16px !important;
  min-height: 42px !important;
}

/* Ask AI sits beside the search bar in a stretch-aligned flex row, but Fern
   gives it an explicit h-9 (36px), which stretch cannot override. Without a
   matching height it aligns to the top of the 42px row and rides ~6px high. */
#fern-ask-ai-button {
  border-radius: 16px !important;
  min-height: 42px !important;
}
