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

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


.light, :root {
  --accent-1: #fdfdff;
  --accent-2: #f6f8ff;
  --accent-3: #edf1ff;
  --accent-4: #e0e8ff;
  --accent-5: #d3dcff;
  --accent-6: #c2ceff;
  --accent-7: #acb9ff;
  --accent-8: #8d9bff;
  --accent-9: #482cf0;
  --accent-10: #3e07de;
  --accent-11: #4d41ed;
  --accent-12: #242273;

  --accent-a1: #0000ff02;
  --accent-a2: #0039ff09;
  --accent-a3: #0039ff12;
  --accent-a4: #0042ff1f;
  --accent-a5: #0035ff2c;
  --accent-a6: #0033ff3d;
  --accent-a7: #0028ff53;
  --accent-a8: #0020ff72;
  --accent-a9: #2200edd3;
  --accent-a10: #3900ddf8;
  --accent-a11: #1000e7be;
  --accent-a12: #02005edd;

  --accent-contrast: #fff;
  --accent-surface: #f4f6ffcc;
  --accent-indicator: #482cf0;
  --accent-track: #482cf0;
}

@supports (color: color(display-p3 1 1 1)) {
  @media (color-gamut: p3) {
    .light, :root {
      --accent-1: oklch(99.4% 0.0032 276.3);
      --accent-2: oklch(98.2% 0.0125 276.3);
      --accent-3: oklch(96.1% 0.0245 276.3);
      --accent-4: oklch(93.5% 0.0491 276.3);
      --accent-5: oklch(90.4% 0.0735 276.3);
      --accent-6: oklch(86.4% 0.0991 276.3);
      --accent-7: oklch(80.8% 0.1243 276.3);
      --accent-8: oklch(72.9% 0.165 276.3);
      --accent-9: oklch(48.5% 0.2666 276.3);
      --accent-10: oklch(43.4% 0.2666 276.3);
      --accent-11: oklch(51% 0.2444 276.3);
      --accent-12: oklch(31.4% 0.1342 276.3);

      --accent-a1: color(display-p3 0.0196 0.0196 1 / 0.008);
      --accent-a2: color(display-p3 0.0235 0.2392 0.8941 / 0.036);
      --accent-a3: color(display-p3 0.0078 0.1843 0.9451 / 0.067);
      --accent-a4: color(display-p3 0.0039 0.2392 0.9373 / 0.118);
      --accent-a5: color(display-p3 0.0039 0.1686 0.9294 / 0.165);
      --accent-a6: color(display-p3 0.0039 0.1725 0.9333 / 0.232);
      --accent-a7: color(display-p3 0.0039 0.1373 0.9412 / 0.318);
      --accent-a8: color(display-p3 0.0039 0.102 0.9373 / 0.436);
      --accent-a9: color(display-p3 0.1098 0 0.8863 / 0.824);
      --accent-a10: color(display-p3 0.1804 0 0.8275 / 0.953);
      --accent-a11: color(display-p3 0.0549 0 0.8588 / 0.746);
      --accent-a12: color(display-p3 0.0078 0 0.349 / 0.867);

      --accent-contrast: #fff;
      --accent-surface: color(display-p3 0.9608 0.9725 1 / 0.8);
      --accent-indicator: oklch(48.5% 0.2666 276.3);
      --accent-track: oklch(48.5% 0.2666 276.3);
    }
  }
}


.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: #110f1c;
  --accent-2: #171526;
  --accent-3: #261e4a;
  --accent-4: #322369;
  --accent-5: #3c2c78;
  --accent-6: #463786;
  --accent-7: #53439b;
  --accent-8: #6451b8;
  --accent-9: #a396ff;
  --accent-10: #988bf3;
  --accent-11: #b2a6ff;
  --accent-12: #e0deff;

  --accent-a1: #1200f90a;
  --accent-a2: #5a42fa15;
  --accent-a3: #6b49fc3c;
  --accent-a4: #6c43ff5d;
  --accent-a5: #754ffd6e;
  --accent-a6: #7d5efd7d;
  --accent-a7: #8468ff93;
  --accent-a8: #886cfeb3;
  --accent-a9: #a396ff;
  --accent-a10: #9e91fef3;
  --accent-a11: #b2a6ff;
  --accent-a12: #e0deff;

  --accent-contrast: #fff;
  --accent-surface: #1d193980;
  --accent-indicator: #a396ff;
  --accent-track: #a396ff;
}

@supports (color: color(display-p3 1 1 1)) {
  @media (color-gamut: p3) {
    .dark {
      --accent-1: oklch(17.9% 0.0248 287.8);
      --accent-2: oklch(20.6% 0.0334 287.8);
      --accent-3: oklch(27.2% 0.0781 287.8);
      --accent-4: oklch(31.8% 0.1159 287.8);
      --accent-5: oklch(35.8% 0.1243 287.8);
      --accent-6: oklch(39.8% 0.1271 287.8);
      --accent-7: oklch(44.8% 0.1366 287.8);
      --accent-8: oklch(50.7% 0.1572 287.8);
      --accent-9: oklch(72.8% 0.1496 287.8);
      --accent-10: oklch(69.2% 0.1496 287.8);
      --accent-11: oklch(77.6% 0.1496 287.8);
      --accent-12: oklch(91.4% 0.0478 287.8);

      --accent-a1: color(display-p3 0.0667 0 1 / 0.034);
      --accent-a2: color(display-p3 0.3725 0.2706 0.9922 / 0.077);
      --accent-a3: color(display-p3 0.4235 0.298 1 / 0.221);
      --accent-a4: color(display-p3 0.4196 0.2824 1 / 0.348);
      --accent-a5: color(display-p3 0.4588 0.3333 1 / 0.412);
      --accent-a6: color(display-p3 0.498 0.3961 1 / 0.467);
      --accent-a7: color(display-p3 0.5098 0.4235 1 / 0.556);
      --accent-a8: color(display-p3 0.5294 0.4431 1 / 0.674);
      --accent-a9: color(display-p3 0.651 0.6039 0.9961 / 0.971);
      --accent-a10: color(display-p3 0.6353 0.5882 0.9961 / 0.92);
      --accent-a11: color(display-p3 0.7098 0.6667 1 / 0.975);
      --accent-a12: color(display-p3 0.8902 0.8824 1 / 0.988);

      --accent-contrast: #fff;
      --accent-surface: color(display-p3 0.102 0.0941 0.2118 / 0.5);
      --accent-indicator: oklch(72.8% 0.1496 287.8);
      --accent-track: oklch(72.8% 0.1496 287.8);
    }
  }
}


.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(72, 44, 240, 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(163, 150, 255, 1);
  --background: rgba(17, 17, 19, 1);
  --border: initial;
  --sidebar-background: initial;
  --header-background: color-mix(in srgb, var(--background), transparent 30%);
  --card-background: initial;
  --theme-color: #111113;
}

/* Bubble Tabs Theme */
:root [data-tabs-theme="bubble"] #fern-header [data-radix-collection-item]::after {
  display: none;
}

:root [data-tabs-theme="bubble"] #fern-header [data-radix-collection-item] {
  position: relative;
  isolation: isolate;
  transition: color 0.15s ease-in-out;
}

:root [data-tabs-theme="bubble"] #fern-header [data-radix-collection-item]::before {
  content: "";
  position: absolute;
  inset: 6px 0;
  border-radius: 9999px;
  z-index: -1;
  transition: background-color 0.15s ease-in-out;
}

:root [data-tabs-theme="bubble"] #fern-header [data-radix-collection-item][data-state="active"] {
  color: var(--accent-a11);
}

:root [data-tabs-theme="bubble"] #fern-header [data-radix-collection-item][data-state="active"]::before {
  background-color: var(--accent-a3);
}

:root [data-tabs-theme="bubble"] #fern-header [data-radix-collection-item][data-state="active"] > span {
  -webkit-text-stroke: 0.5px currentcolor;
}

:root [data-tabs-theme="bubble"] #fern-header [data-radix-collection-item][data-state="inactive"]:hover::before {
  background-color: var(--grayscale-a3);
}
:root [data-tabs-theme="bubble"] #fern-header [data-radix-collection-item][data-state="inactive"]:focus-visible::before {
  background-color: var(--grayscale-a3);
}

.dark [data-tabs-theme="bubble"] #fern-header [data-radix-collection-item][data-state="active"] {
  color: var(--accent-a11);
}

.dark [data-tabs-theme="bubble"] #fern-header [data-radix-collection-item][data-state="active"]::before {
  background-color: var(--accent-a3);
}

.dark [data-tabs-theme="bubble"] #fern-header [data-radix-collection-item][data-state="inactive"]:hover::before {
  background-color: var(--grayscale-a3);
}
.dark [data-tabs-theme="bubble"] #fern-header [data-radix-collection-item][data-state="inactive"]:focus-visible::before {
  background-color: var(--grayscale-a3);
}

/* Bubble theme: reset parent bg on active+focus-visible to avoid stacked alpha with the ::before pill */
:root [data-tabs-theme="bubble"] #fern-header [data-radix-collection-item][data-state="active"]:focus-visible {
  background: transparent;
}

.fern-header-logo-container a span {
  color: #111827;
  font-weight: 600;
  margin-left: 8px;
}

.dark .fern-header-logo-container a span {
  color: #e5e7eb;
}

.fern-version-selector .fern-selection-item-title {
  font-size: 1rem;
}

:root {
  --docs-light-background: #FFFFFF;
}

.docs-image-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
  justify-content: center;
}

.docs-image-row figure {
  margin: 0;
  flex: 1;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

figcaption {
  text-align: center;
  font-size: 0.85em;
  color: #6b7280;
  margin-top: 6px;
}

.dark figcaption {
  color: #9ca3af;
}

.docs-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.light-image-canvas {
  background: var(--docs-light-background);
  padding: 12px;
  border-radius: 8px;
}

.packet-diagram {
  background: var(--docs-light-background);
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 12px;
  margin: 16px 0;
}

/* Alert table badges */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 0.78em;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1.5px solid transparent;
}

.badge-error {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
}
.dark .badge-error {
  background: #450a0a;
  color: #fca5a5;
  border-color: #7f1d1d;
}

.badge-warning {
  background: #fef3c7;
  color: #92400e;
  border-color: #fcd34d;
}
.dark .badge-warning {
  background: #1c1400;
  color: #fcd34d;
  border-color: #78350f;
}

.badge-notice {
  background: #dbeafe;
  color: #1e40af;
  border-color: #93c5fd;
}
.dark .badge-notice {
  background: #0c1a3a;
  color: #93c5fd;
  border-color: #1e3a8a;
}

.badge-shutdown {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
}
.dark .badge-shutdown {
  background: #450a0a;
  color: #fca5a5;
  border-color: #7f1d1d;
}

.badge-restart {
  background: #fef3c7;
  color: #92400e;
  border-color: #fcd34d;
}
.dark .badge-restart {
  background: #1c1400;
  color: #fcd34d;
  border-color: #78350f;
}

.badge-no-action {
  background: #f3f4f6;
  color: #4b5563;
  border-color: #d1d5db;
}
.dark .badge-no-action {
  background: #1f2937;
  color: #9ca3af;
  border-color: #374151;
}
