/*fern-site-stylesheet*/@font-face {
    font-family: 'Manrope';
    src: url('/_fern-files/immix-v3.docs.buildwithfern.com/5ae62fba7155c2ffe94b9f9d107727a30d6bc67401c82f34114100ba95c4bc93/fonts/Manrope-Variable.woff2') format('woff2');
    font-weight: 400 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Manrope';
    src: url('/_fern-files/immix-v3.docs.buildwithfern.com/5ae62fba7155c2ffe94b9f9d107727a30d6bc67401c82f34114100ba95c4bc93/fonts/Manrope-Variable.woff2') format('woff2');
    font-weight: 400 600;
    font-style: normal;
    font-display: swap;
}

:root {
  --header-height: 64px;
  --header-height-real: 64px;
  --mobile-header-height-real: 64px;
  --content-width: 640px;
  --sidebar-width: 288px;
  --page-width: 100vw;
  --logo-height: 20px;
  --font-body: 'Manrope', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  --font-heading: 'Manrope', 'Manrope', 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: #fdfdfe;
  --accent-2: #f6f9ff;
  --accent-3: #ecf2fe;
  --accent-4: #deeaff;
  --accent-5: #cde0ff;
  --accent-6: #b9d3ff;
  --accent-7: #a2c0f9;
  --accent-8: #81a7f0;
  --accent-9: #184fc8;
  --accent-10: #073eb6;
  --accent-11: #2c5ec8;
  --accent-12: #182f5c;

  --accent-a1: #00008002;
  --accent-a2: #0055ff09;
  --accent-a3: #0051f213;
  --accent-a4: #005dff21;
  --accent-a5: #0061ff32;
  --accent-a6: #005fff46;
  --accent-a7: #0053ef5d;
  --accent-a8: #004de17e;
  --accent-a9: #003dc2e7;
  --accent-a10: #0039b4f8;
  --accent-a11: #003dbdd3;
  --accent-a12: #00194be7;

  --accent-contrast: #fff;
  --accent-surface: #f4f8ffcc;
  --accent-indicator: #184fc8;
  --accent-track: #184fc8;
}

@supports (color: color(display-p3 1 1 1)) {
  @media (color-gamut: p3) {
    .light, :root {
      --accent-1: oklch(99.4% 0.0015 262.8);
      --accent-2: oklch(98.3% 0.0081 262.8);
      --accent-3: oklch(96.1% 0.0174 262.8);
      --accent-4: oklch(93.5% 0.0342 262.8);
      --accent-5: oklch(90.3% 0.0517 262.8);
      --accent-6: oklch(86.3% 0.0722 262.8);
      --accent-7: oklch(80.7% 0.0878 262.8);
      --accent-8: oklch(73% 0.1145 262.8);
      --accent-9: oklch(47.4% 0.1967 262.8);
      --accent-10: oklch(42.2% 0.1967 262.8);
      --accent-11: oklch(51% 0.1747 262.8);
      --accent-12: oklch(31.3% 0.0865 262.8);

      --accent-a1: color(display-p3 0.0196 0.0196 0.5098 / 0.008);
      --accent-a2: color(display-p3 0.0196 0.2667 0.8784 / 0.032);
      --accent-a3: color(display-p3 0.0078 0.2824 0.8902 / 0.071);
      --accent-a4: color(display-p3 0.0039 0.3255 0.9373 / 0.122);
      --accent-a5: color(display-p3 0.0039 0.3098 0.9373 / 0.181);
      --accent-a6: color(display-p3 0.0039 0.3098 0.9412 / 0.255);
      --accent-a7: color(display-p3 0.0039 0.2667 0.8745 / 0.342);
      --accent-a8: color(display-p3 0.0039 0.2471 0.8235 / 0.463);
      --accent-a9: color(display-p3 0 0.1765 0.7098 / 0.844);
      --accent-a10: color(display-p3 0 0.1529 0.651 / 0.899);
      --accent-a11: color(display-p3 0 0.1804 0.6863 / 0.777);
      --accent-a12: color(display-p3 0 0.0745 0.2667 / 0.887);

      --accent-contrast: #fff;
      --accent-surface: color(display-p3 0.9608 0.9725 1 / 0.8);
      --accent-indicator: oklch(47.4% 0.1967 262.8);
      --accent-track: oklch(47.4% 0.1967 262.8);
    }
  }
}


.light, :root {
  --grayscale-1: #fdfcfd;
  --grayscale-2: #faf9fb;
  --grayscale-3: #f2eff3;
  --grayscale-4: #eae7ec;
  --grayscale-5: #e3dfe6;
  --grayscale-6: #dbd8e0;
  --grayscale-7: #d0cdd7;
  --grayscale-8: #bcbac7;
  --grayscale-9: #8e8c99;
  --grayscale-10: #84828e;
  --grayscale-11: #65636d;
  --grayscale-12: #211f26;

  --grayscale-a1: #55005503;
  --grayscale-a2: #2b005506;
  --grayscale-a3: #30004010;
  --grayscale-a4: #20003618;
  --grayscale-a5: #20003820;
  --grayscale-a6: #14003527;
  --grayscale-a7: #10003332;
  --grayscale-a8: #08003145;
  --grayscale-a9: #05001d73;
  --grayscale-a10: #0500197d;
  --grayscale-a11: #0400119c;
  --grayscale-a12: #020008e0;

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

@supports (color: color(display-p3 1 1 1)) {
  @media (color-gamut: p3) {
    .light, :root {
      --grayscale-1: color(display-p3 0.991 0.988 0.992);
      --grayscale-2: color(display-p3 0.98 0.976 0.984);
      --grayscale-3: color(display-p3 0.946 0.938 0.952);
      --grayscale-4: color(display-p3 0.915 0.906 0.925);
      --grayscale-5: color(display-p3 0.886 0.876 0.901);
      --grayscale-6: color(display-p3 0.856 0.846 0.875);
      --grayscale-7: color(display-p3 0.814 0.804 0.84);
      --grayscale-8: color(display-p3 0.735 0.728 0.777);
      --grayscale-9: color(display-p3 0.555 0.549 0.596);
      --grayscale-10: color(display-p3 0.514 0.508 0.552);
      --grayscale-11: color(display-p3 0.395 0.388 0.424);
      --grayscale-12: color(display-p3 0.128 0.122 0.147);

      --grayscale-a1: #55005503;
      --grayscale-a2: #2b005506;
      --grayscale-a3: #30004010;
      --grayscale-a4: #20003618;
      --grayscale-a5: #20003820;
      --grayscale-a6: #14003527;
      --grayscale-a7: #10003332;
      --grayscale-a8: #08003145;
      --grayscale-a9: #05001d73;
      --grayscale-a10: #0500197d;
      --grayscale-a11: #0400119c;
      --grayscale-a12: #020008e0;

      --grayscale-contrast: #000;
      --grayscale-surface: color(display-p3 1 1 1 / 80%);
      --grayscale-indicator: color(display-p3 0.555 0.549 0.596);
      --grayscale-track: color(display-p3 0.555 0.549 0.596);
    }
  }
}


.dark {
  --accent-1: #000;
  --accent-2: #0c111d;
  --accent-3: #16223e;
  --accent-4: #1b2e59;
  --accent-5: #253b6c;
  --accent-6: #31487d;
  --accent-7: #3e5893;
  --accent-8: #4b6ab0;
  --accent-9: #6a93ed;
  --accent-10: #5f87e0;
  --accent-11: #91b3fa;
  --accent-12: #d3e1fd;

  --accent-a1: #00000000;
  --accent-a2: #6a96ff1d;
  --accent-a3: #5b8cff3e;
  --accent-a4: #4e84ff59;
  --accent-a5: #588cff6c;
  --accent-a6: #6493ff7d;
  --accent-a7: #6c99ff93;
  --accent-a8: #6d9affb0;
  --accent-a9: #729effed;
  --accent-a10: #6c9affe0;
  --accent-a11: #94b7fffa;
  --accent-a12: #d5e3fffd;

  --accent-contrast: #fff;
  --accent-surface: #18223a80;
  --accent-indicator: #6a93ed;
  --accent-track: #6a93ed;
}

@supports (color: color(display-p3 1 1 1)) {
  @media (color-gamut: p3) {
    .dark {
      --accent-1: oklch(0% 0.0212 264.4);
      --accent-2: oklch(18% 0.0245 264.4);
      --accent-3: oklch(25.8% 0.0559 264.4);
      --accent-4: oklch(30.9% 0.0819 264.4);
      --accent-5: oklch(36% 0.0892 264.4);
      --accent-6: oklch(41.2% 0.093 264.4);
      --accent-7: oklch(46.9% 0.1003 264.4);
      --accent-8: oklch(53.4% 0.1155 264.4);
      --accent-9: oklch(67.4% 0.1414 264.4);
      --accent-10: oklch(63.5% 0.1414 264.4);
      --accent-11: oklch(77% 0.1093 264.4);
      --accent-12: oklch(90.8% 0.0406 264.4);

      --accent-a1: color(display-p3 0 0 0 / 0);
      --accent-a2: color(display-p3 0.4667 0.6078 1 / 0.11);
      --accent-a3: color(display-p3 0.4157 0.5686 1 / 0.236);
      --accent-a4: color(display-p3 0.3608 0.5255 1 / 0.338);
      --accent-a5: color(display-p3 0.4 0.5529 1 / 0.412);
      --accent-a6: color(display-p3 0.4471 0.5882 1 / 0.475);
      --accent-a7: color(display-p3 0.4706 0.6078 1 / 0.561);
      --accent-a8: color(display-p3 0.4784 0.6157 1 / 0.671);
      --accent-a9: color(display-p3 0.502 0.6353 1 / 0.902);
      --accent-a10: color(display-p3 0.4784 0.6157 1 / 0.855);
      --accent-a11: color(display-p3 0.6235 0.7294 1 / 0.957);
      --accent-a12: color(display-p3 0.8549 0.898 1 / 0.981);

      --accent-contrast: #fff;
      --accent-surface: color(display-p3 0.102 0.1333 0.2196 / 0.5);
      --accent-indicator: oklch(67.4% 0.1414 264.4);
      --accent-track: oklch(67.4% 0.1414 264.4);
    }
  }
}


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

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

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

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

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

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

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

/* The portal's styling rules Fern has no setting for (fern/docs.yml `css`). They name Fern's
   own classes, so a Fern upgrade can move them: check a topic page on the preview when the CLI's
   version changes. */

/* A market-data topic page (scripts/channel_pages.py) stacks its frames in Fern's reference aside,
   which is sticky with no height limit: frames taller than the window were cut off until the page
   ended. Capped, the column scrolls on its own. */
.fern-layout-reference-aside:has(.immix-frame) {
  max-height: calc(100vh - 150px);
  overflow-y: auto;
}

/* A frame is marked sent or received the way Fern marks a socket's messages: ↑ green, ↓ blue. */
.immix-frame .fern-code-block-title::before {
  display: inline-flex;
  flex: none;
  align-items: center;
  align-self: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  margin-left: 0.375rem;
  margin-right: 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.immix-frame--sent .fern-code-block-title::before {
  content: "↑";
  color: rgb(22, 163, 74);
  background: rgba(22, 163, 74, 0.16);
}
.immix-frame--received .fern-code-block-title::before {
  content: "↓";
  color: rgb(59, 130, 246);
  background: rgba(59, 130, 246, 0.16);
}

/* Code in a table reads as code, as it does in prose: Fern gives table code the text's own colour
   and weight. */
.fern-table code {
  color: var(--accent-11);
  font-weight: 600;
}

/* A table fits its column: a long unbroken token (a topic string, a symbol) wraps rather than
   pushing the table under the page's right-hand column. */
.fern-table td {
  overflow-wrap: anywhere;
}
