/*fern-site-stylesheet*/:root {
  --header-height: 64px;
  --header-height-real: 64px;
  --mobile-header-height-real: 64px;
  --content-width: 880px;
  --sidebar-width: 288px;
  --page-width: 1488px;
  --logo-height: 26px;
  --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: #fffcfc;
  --accent-2: #fff7f8;
  --accent-3: #ffe8eb;
  --accent-4: #ffdadf;
  --accent-5: #ffcbd2;
  --accent-6: #febbc4;
  --accent-7: #f6a7b2;
  --accent-8: #ee8d9c;
  --accent-9: #ff1f6a;
  --accent-10: #f0005f;
  --accent-11: #d80050;
  --accent-12: #6c0327;

  --accent-a1: #ff000003;
  --accent-a2: #ff002008;
  --accent-a3: #ff002217;
  --accent-a4: #ff002325;
  --accent-a5: #ff002334;
  --accent-a6: #fc002244;
  --accent-a7: #e5002058;
  --accent-a8: #d9002272;
  --accent-a9: #ff0055e0;
  --accent-a10: #f0005f;
  --accent-a11: #d80050;
  --accent-a12: #6a0024fc;

  --accent-contrast: #fff;
  --accent-surface: #fff5f6cc;
  --accent-indicator: #ff1f6a;
  --accent-track: #ff1f6a;
}

@supports (color: color(display-p3 1 1 1)) {
  @media (color-gamut: p3) {
    .light, :root {
      --accent-1: oklch(99.4% 0.0039 10.41);
      --accent-2: oklch(98.2% 0.0097 10.41);
      --accent-3: oklch(95.4% 0.0296 10.41);
      --accent-4: oklch(92.6% 0.0493 10.41);
      --accent-5: oklch(89.4% 0.0642 10.41);
      --accent-6: oklch(85.6% 0.0773 10.41);
      --accent-7: oklch(80.8% 0.0936 10.41);
      --accent-8: oklch(75% 0.1184 10.41);
      --accent-9: oklch(64.7% 0.247 10.41);
      --accent-10: oklch(60.7% 0.246 10.41);
      --accent-11: oklch(55.1% 0.244 10.41);
      --accent-12: oklch(34.1% 0.1331 10.41);

      --accent-a1: color(display-p3 0.6745 0.0235 0.0235 / 0.012);
      --accent-a2: color(display-p3 0.8784 0.0196 0.1451 / 0.032);
      --accent-a3: color(display-p3 0.8235 0.0118 0.102 / 0.087);
      --accent-a4: color(display-p3 0.8353 0.0078 0.1176 / 0.142);
      --accent-a5: color(display-p3 0.8431 0.0078 0.1059 / 0.197);
      --accent-a6: color(display-p3 0.8314 0.0039 0.1098 / 0.255);
      --accent-a7: color(display-p3 0.7569 0.0039 0.1098 / 0.334);
      --accent-a8: color(display-p3 0.7255 0.0039 0.102 / 0.428);
      --accent-a9: color(display-p3 0.8902 0 0.2431 / 0.761);
      --accent-a10: color(display-p3 0.8314 0 0.2392 / 0.816);
      --accent-a11: color(display-p3 0.7333 0 0.1882 / 0.836);
      --accent-a12: color(display-p3 0.3412 0 0.0941 / 0.93);

      --accent-contrast: #fff;
      --accent-surface: color(display-p3 0.9961 0.9608 0.9647 / 0.8);
      --accent-indicator: oklch(64.7% 0.247 10.41);
      --accent-track: oklch(64.7% 0.247 10.41);
    }
  }
}


.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: #0c0405;
  --accent-2: #1f1113;
  --accent-3: #3c0f19;
  --accent-4: #54041e;
  --accent-5: #650a26;
  --accent-6: #771932;
  --accent-7: #922842;
  --accent-8: #be3357;
  --accent-9: #ff1f6a;
  --accent-10: #f0005e;
  --accent-11: #ff8da3;
  --accent-12: #ffd0d6;

  --accent-a1: #e1000007;
  --accent-a2: #fc72741a;
  --accent-a3: #fc2f5638;
  --accent-a4: #ff004f50;
  --accent-a5: #fd105762;
  --accent-a6: #ff306574;
  --accent-a7: #fe426f90;
  --accent-a8: #fe4273bd;
  --accent-a9: #ff1f6a;
  --accent-a10: #ff0064f0;
  --accent-a11: #ff8da3;
  --accent-a12: #ffd0d6;

  --accent-contrast: #fff;
  --accent-surface: #381c1e80;
  --accent-indicator: #ff1f6a;
  --accent-track: #ff1f6a;
}

@supports (color: color(display-p3 1 1 1)) {
  @media (color-gamut: p3) {
    .dark {
      --accent-1: oklch(12.3% 0.0168 10.41);
      --accent-2: oklch(19.6% 0.024 10.41);
      --accent-3: oklch(25% 0.071 10.41);
      --accent-4: oklch(29% 0.1104 10.41);
      --accent-5: oklch(33.1% 0.1227 10.41);
      --accent-6: oklch(38.1% 0.1281 10.41);
      --accent-7: oklch(44.9% 0.1416 10.41);
      --accent-8: oklch(54.2% 0.1753 10.41);
      --accent-9: oklch(64.7% 0.247 10.41);
      --accent-10: oklch(60.7% 0.247 10.41);
      --accent-11: oklch(78.7% 0.1967 10.41);
      --accent-12: oklch(90.8% 0.0639 10.41);

      --accent-a1: color(display-p3 0.9608 0 0 / 0.021);
      --accent-a2: color(display-p3 0.9961 0.5333 0.498 / 0.093);
      --accent-a3: color(display-p3 1 0.2627 0.3725 / 0.197);
      --accent-a4: color(display-p3 1 0.1216 0.3529 / 0.282);
      --accent-a5: color(display-p3 1 0.1961 0.3843 / 0.346);
      --accent-a6: color(display-p3 0.9961 0.2784 0.4392 / 0.414);
      --accent-a7: color(display-p3 1 0.3451 0.4824 / 0.515);
      --accent-a8: color(display-p3 1 0.3529 0.4902 / 0.679);
      --accent-a9: color(display-p3 0.9961 0.2588 0.4588 / 0.916);
      --accent-a10: color(display-p3 1 0.2118 0.4353 / 0.86);
      --accent-a11: color(display-p3 1 0.6118 0.6824 / 0.94);
      --accent-a12: color(display-p3 1 0.8471 0.8627 / 0.972);

      --accent-contrast: #fff;
      --accent-surface: color(display-p3 0.2039 0.1098 0.1176 / 0.5);
      --accent-indicator: oklch(64.7% 0.247 10.41);
      --accent-track: oklch(64.7% 0.247 10.41);
    }
  }
}


.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(255, 31, 106, 1);
  --background: rgba(255, 255, 255, 1);
  --border: rgba(231, 231, 236, 1);
  --sidebar-background: rgba(255, 255, 255, 1);
  --header-background: rgba(255, 255, 255, 1);
  --card-background: rgba(250, 250, 251, 1);
  --theme-color: #fff;
}

.dark {
  color-scheme: dark;
  --accent: rgba(255, 31, 106, 1);
  --background: rgba(6, 6, 8, 1);
  --border: rgba(28, 28, 34, 1);
  --sidebar-background: rgba(6, 6, 8, 1);
  --header-background: rgba(6, 6, 8, 1);
  --card-background: rgba(13, 13, 17, 1);
  --theme-color: #060608;
}

/* Code Block Theme Backgrounds */
.light:not(.dark) .fern-code:not(.dark),
.light:not(.dark) .fern-code-block:not(.dark),
.light:not(.dark) .fern-endpoint-request-snippet:not(.dark),
.light:not(.dark) .fern-endpoint-response-snippet:not(.dark),
:root:not(.dark) .fern-code:not(.dark),
:root:not(.dark) .fern-code-block:not(.dark),
:root:not(.dark) .fern-endpoint-request-snippet:not(.dark),
:root:not(.dark) .fern-endpoint-response-snippet:not(.dark) {
  background-color: #ffffff;
}

.dark .fern-code,
.fern-code.dark,
.dark .fern-code-block,
.fern-code-block.dark,
.dark .fern-endpoint-request-snippet,
.fern-endpoint-request-snippet.dark,
.dark .fern-endpoint-response-snippet,
.fern-endpoint-response-snippet.dark {
  background-color: #0d1117;
}

/*
 * developers.evvahub.com — EVVA's look on Fern's chrome.
 *
 * ── WHAT THIS FILE DOES, AND WHAT IT LEAVES TO FERN ────────────────────────────────────────────
 * Colours, plates, borders, code themes, layout and every component come from `docs.yml` and Fern itself. This file
 * only does what configuration cannot: the EVVA navbar controls, the landing's call to action, calmer inline code,
 * tables and cards that read as one system, diagrams that stay legible on both themes, and the phone header.
 * Every selector is a documented, stable Fern class (`.fern-*`, `#fern-*`) or our own `evva-*` class.
 *
 * ── THE SOURCE OF TRUTH IS THE LANDING, NOT AN INVENTION ───────────────────────────────────────
 * The navbar pair is transcribed from `apps/web-main/src/modules/Intro/ui/IntroOutro.module.css` — the closing CTA
 * pair on the cinematic landing. The primary is a MONEY-GREEN pill, not the brand pink: the landing reserves pink
 * for chrome and gives the money accent to the action that earns. The secondary is text with a magenta rule that
 * grows under it — "it must not compete with the pill". Values are copied because a Fern project cannot reach the
 * design system's tokens; if the brand accents move, these literals move with them:
 *   --ds-accent-money  #00e08a    --evva-intro-join-ink  #0a0a0c    --evva-intro-hot  #ff2fb0    accent  #ff1f6a
 *
 * ⚠ SCOPE. Fern uses `.fern-button.minimal` / `.filled.primary` everywhere (Copy page, Ask AI, the Button component),
 * so the navbar rules are scoped to `.fern-header-navbar-links`; the landing's buttons opt in with `.evva-hero-actions`.
 */

:root {
  --evva-money: #00e08a;
  --evva-ink: #0a0a0c;
  --evva-hot: #ff2fb0;
  --evva-pink: #ff1f6a;
  --evva-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --evva-code-ink: #26262c;
  --evva-code-plate: rgba(10, 10, 12, 0.045);
  --evva-code-ring: rgba(10, 10, 12, 0.09);
  --evva-diagram-ink: #0a0a0c;
  --evva-diagram-line: #6b6b76;
  --evva-diagram-note: #fff4f7;
}
.dark {
  --evva-code-ink: #e9e9ee;
  --evva-code-plate: rgba(255, 255, 255, 0.06);
  --evva-code-ring: rgba(255, 255, 255, 0.1);
  --evva-diagram-ink: #f4f4f6;
  --evva-diagram-line: #9a9aa6;
  --evva-diagram-note: #16161c;
}

/* ── NAVBAR: PRIMARY — the money-green pill ("Partner Hub") ──────────────────────────────────── */
.fern-header-navbar-links .fern-button.filled.primary,
.evva-hero-actions .fern-button.filled.primary {
  height: 34px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--evva-money);
  color: var(--evva-ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition:
    transform 200ms var(--evva-ease),
    box-shadow 200ms var(--evva-ease),
    filter 200ms var(--evva-ease);
}
.fern-header-navbar-links .fern-button.filled.primary:hover,
.fern-header-navbar-links .fern-button.filled.primary:focus-visible,
.evva-hero-actions .fern-button.filled.primary:hover,
.evva-hero-actions .fern-button.filled.primary:focus-visible {
  transform: translateY(-1px) scale(1.02);
  filter: brightness(1.06);
  box-shadow: 0 0 28px rgba(0, 224, 138, 0.26);
  background: var(--evva-money);
  outline: none;
}
.fern-header-navbar-links .fern-button.filled.primary:active,
.evva-hero-actions .fern-button.filled.primary:active {
  transform: scale(0.98);
}

/* ── NAVBAR: SECONDARY — text with a magenta rule that grows ("Help centre", "Policies", "Resources") ── */
.fern-header-navbar-links .fern-button.minimal,
.evva-hero-actions .fern-button.minimal {
  position: relative;
  height: 34px;
  padding: 0 4px;
  margin-right: 14px;
  border-radius: 0;
  background: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 200ms var(--evva-ease);
}
/*
 * The rule that grows, transcribed from the landing's `.creator::before`. `scaleX` from a custom property rather than
 * a width transition: transform is composited, so it cannot force layout in a fixed header, and the origin is centred
 * so the line opens from the middle rather than wiping across.
 */
.fern-header-navbar-links .fern-button.minimal::before,
.evva-hero-actions .fern-button.minimal::before {
  content: '';
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 6px;
  height: 1px;
  background: var(--evva-hot);
  transform: scaleX(var(--evva-u, 0));
  transform-origin: 50% 50%;
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}
.fern-header-navbar-links .fern-button.minimal:hover,
.fern-header-navbar-links .fern-button.minimal:focus-visible,
.fern-header-navbar-links .fern-button.minimal[data-state='open'],
.evva-hero-actions .fern-button.minimal:hover,
.evva-hero-actions .fern-button.minimal:focus-visible {
  --evva-u: 1;
  color: var(--evva-hot);
  background: none;
  outline: none;
}

/* ── THE LANDING'S CALL TO ACTION ──────────────────────────────────────────────────────────────── */
/* The navbar pair at hero size, plus one outlined pill between them for the second most common destination. */
.evva-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  margin: 28px 0 12px;
}
.evva-hero-actions .fern-button.filled.primary,
.evva-hero-actions .fern-button.outlined {
  height: 44px;
  padding: 0 22px;
  font-size: 12px;
}
.evva-hero-actions .fern-button.outlined {
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: border-color 200ms var(--evva-ease), color 200ms var(--evva-ease);
}
.evva-hero-actions .fern-button.outlined:hover,
.evva-hero-actions .fern-button.outlined:focus-visible {
  border-color: var(--evva-pink);
  color: var(--evva-pink);
  background: none;
}
.evva-hero-actions .fern-button.minimal {
  height: 44px;
  margin-right: 0;
}

/*
 * ⚠ REDUCED MOTION IS NOT OPTIONAL HERE. Both controls animate on hover, and a visitor who has asked their system for
 * less motion must still get the colour and the rule — the affordance — without the lift and the scale.
 */
@media (prefers-reduced-motion: reduce) {

  .fern-header-navbar-links .fern-button.filled.primary,
  .fern-header-navbar-links .fern-button.minimal,
  .fern-header-navbar-links .fern-button.minimal::before,
  .evva-hero-actions .fern-button,
  .evva-hero-actions .fern-button::before {
    transition: none;
  }
  .fern-header-navbar-links .fern-button.filled.primary:hover,
  .fern-header-navbar-links .fern-button.filled.primary:focus-visible,
  .fern-header-navbar-links .fern-button.filled.primary:active,
  .evva-hero-actions .fern-button.filled.primary:hover,
  .evva-hero-actions .fern-button.filled.primary:focus-visible,
  .evva-hero-actions .fern-button.filled.primary:active {
    transform: none;
  }

}

/* ── ANNOUNCEMENT ─────────────────────────────────────────────────────────────────────────────── */
/* The preview notice is information, not an alarm: the ink plate with the pink only on its link, on both themes. */
#fern-announcement {
  background: var(--evva-ink);
  color: #f4f4f6;
}
.dark #fern-announcement {
  background: #121217;
  border-bottom: 1px solid #1c1c22;
}
#fern-announcement a {
  color: var(--evva-hot);
  text-decoration: none;
  font-weight: 600;
}
#fern-announcement a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
#fern-announcement a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}
#fern-announcement button {
  color: #f4f4f6;
}
/* The dismiss button sits over the text's right edge; keep the message clear of it, on a phone too. */
#fern-announcement > div {
  padding-right: 40px;
  padding-top: 4px;
  padding-bottom: 4px;
}

/* ── TYPE ─────────────────────────────────────────────────────────────────────────────────────── */
/* Large headings a hair tighter, as the product sets them; body copy keeps Fern's measure and leading. */
.fern-prose h1,
.fern-layout-page h1 {
  letter-spacing: -0.02em;
}
.fern-prose h2,
.fern-prose h3 {
  letter-spacing: -0.01em;
}

/*
 * Inline code. These pages are tables of scopes, codes and fields; in the accent colour and bold, every row shouted.
 * Identifiers are ink on a quiet plate; the accent stays with links, so a linked identifier still reads as a link.
 */
.fern-prose :not(pre) > code:not(.code-block) {
  color: var(--evva-code-ink);
  background: var(--evva-code-plate);
  box-shadow: inset 0 0 0 1px var(--evva-code-ring);
  font-weight: 500;
  font-size: 0.875em;
  border-radius: 5px;
  padding: 0.12em 0.36em;
}
.fern-prose a code:not(.code-block),
.fern-prose a > code:not(.code-block) {
  color: inherit;
}

/* ── TABLES ───────────────────────────────────────────────────────────────────────────────────── */
/* A header that reads as a header; rows separated by hairlines only. */
.fern-table th {
  background: var(--card-background, transparent);
  font-weight: 600;
  white-space: nowrap;
}

/* ── CARDS ────────────────────────────────────────────────────────────────────────────────────── */
/* One motion for every linked card: the border takes the accent and the card rises a pixel. */
.fern-card.interactive {
  transition:
    border-color 200ms var(--evva-ease),
    transform 200ms var(--evva-ease),
    box-shadow 200ms var(--evva-ease);
}
.fern-card.interactive:hover {
  border-color: var(--evva-pink);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -12px rgba(255, 31, 106, 0.35);
}
.fern-card.interactive:focus-visible {
  border-color: var(--evva-pink);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -12px rgba(255, 31, 106, 0.35);
}
@media (prefers-reduced-motion: reduce) {

  .fern-card.interactive,
  .fern-card.interactive:hover {
    transition: none;
    transform: none;
  }
.fern-card.interactive:focus-visible {
    transition: none;
    transform: none;
  }

}

/*
 * ── DIAGRAMS ─────────────────────────────────────────────────────────────────────────────────────
 * Fern draws Mermaid in its light theme only. Without these rules the participant names vanish into their boxes in
 * light mode and the arrows, labels and notes vanish into the plate in dark mode. Boxes take the brand accent at low
 * opacity, text takes the theme's ink, lines a neutral grey — one palette for sequence diagrams and flowcharts.
 */
.mermaid-container rect.actor,
.mermaid-container .node rect,
.mermaid-container .node polygon,
.mermaid-container .node path.basic {
  fill: rgba(255, 31, 106, 0.08) !important;
  stroke: var(--evva-pink) !important;
}
.mermaid-container text.actor,
.mermaid-container text.actor > tspan,
.mermaid-container text.messageText,
.mermaid-container text.noteText,
.mermaid-container text.noteText > tspan,
.mermaid-container text.loopText,
.mermaid-container text.loopText > tspan,
.mermaid-container text.labelText,
.mermaid-container text.labelText > tspan {
  fill: var(--evva-diagram-ink) !important;
  stroke: none !important;
}
/* The site's own face instead of Mermaid's Trebuchet; participant names a step heavier than the arrows. */
.mermaid-container svg text,
.mermaid-container svg .nodeLabel,
.mermaid-container svg .edgeLabel {
  font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif !important;
}
.mermaid-container text.actor,
.mermaid-container text.actor > tspan {
  font-weight: 600 !important;
}
.mermaid-container .nodeLabel,
.mermaid-container .nodeLabel p,
.mermaid-container .edgeLabel,
.mermaid-container .edgeLabel p {
  color: var(--evva-diagram-ink) !important;
  fill: var(--evva-diagram-ink) !important;
}
/* Edge labels sit on the page's own plate, so a label crossing a line stays readable. */
.mermaid-container .edgeLabel,
.mermaid-container .edgeLabel p,
.mermaid-container .edgeLabel rect,
.mermaid-container .labelBkg {
  background-color: var(--background, #ffffff) !important;
  fill: var(--background, #ffffff) !important;
}
.mermaid-container line.actor-line,
.mermaid-container line.messageLine0,
.mermaid-container line.messageLine1,
.mermaid-container path.messageLine0,
.mermaid-container path.messageLine1,
.mermaid-container line.loopLine,
.mermaid-container .flowchart-link,
.mermaid-container .edgePath path {
  stroke: var(--evva-diagram-line) !important;
}
.mermaid-container marker path,
.mermaid-container marker polygon,
.mermaid-container .arrowMarkerPath {
  fill: var(--evva-diagram-line) !important;
  stroke: var(--evva-diagram-line) !important;
}
.mermaid-container rect.note {
  fill: var(--evva-diagram-note) !important;
  stroke: rgba(255, 31, 106, 0.6) !important;
}
.mermaid-container rect.labelBox,
.mermaid-container polygon.labelBox {
  fill: rgba(255, 31, 106, 0.08) !important;
  stroke: var(--evva-pink) !important;
}
/* Numbered steps are EVVA badges on both themes. */
.mermaid-container circle {
  fill: var(--evva-pink) !important;
  stroke: var(--evva-pink) !important;
}
.mermaid-container text.sequenceNumber {
  fill: #ffffff !important;
}

/*
 * ── NARROW SCREENS ──────────────────────────────────────────────────────────────────────────────
 * With the search bar in the header, the search control's text does not let it shrink, and on a phone it pushed
 * Fern's menu button past the right edge — the navigation became unreachable. The search control may shrink (its
 * placeholder is truncated) and the menu button may not.
 */
@media (max-width: 1023px) {

  .fern-header-mobile-menu-button {
    flex-shrink: 0;
  }
  div:has(> div > button[aria-label='Search']),
  div:has(> button[aria-label='Search']),
  button[aria-label='Search'] {
    min-width: 0;
    overflow: hidden;
  }

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

  .evva-hero-actions .fern-button.filled.primary,
  .evva-hero-actions .fern-button.outlined {
    flex: 1 1 auto;
    justify-content: center;
  }

}

/* ── THE LOGO LABEL ───────────────────────────────────────────────────────────────────────────── */
/* "EVVA | Developers": the label in the theme's ink behind a hairline, so the pink belongs to the wordmark alone. */
.fern-logo-text {
  color: var(--evva-diagram-ink);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 20px;
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid var(--border, #e7e7ec);
}

/* An identifier in a table's first column stays on one line; the description column takes the wrap. */
.fern-table td:first-child > code {
  white-space: nowrap;
}

/* ── THE LANDING'S MEASURE ────────────────────────────────────────────────────────────────────── */
/* The landing uses Fern's `page` layout (no sidebar, no table of contents). Unbounded, a paragraph ran the full
   width of a wide screen; centred at the width of the header's own content, it reads like the rest of the site. */
.fern-layout-page > article {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
}

/* The phone menu repeats the navbar links: the same money-green pill there, so "Partner Hub" is one object. */
#fern-mobile-menu-portal .fern-button.filled.primary {
  border: 0;
  border-radius: 999px;
  background: var(--evva-money);
  color: var(--evva-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/*
 * ── RESPONSE STATUS TABS (response-tabs.js) ──────────────────────────────────────────────────────
 * The codes of an operation's response examples as a strip of tabs, the active one underlined in the accent. The
 * dropdown it replaces is only hidden while the strip exists (`data-evva-status-tabs="on"`); it stays in the page
 * because the strip drives it. While the script reads or chooses a code, Fern's popup is invisible.
 */
html.evva-status-busy [role='listbox'] {
  opacity: 0 !important;
  pointer-events: none !important;
}
.fern-endpoint-response-selector[data-evva-status-tabs='on'] > button[role='combobox']:has([data-badge-type='status-code']) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}
/* Wraps rather than scrolls: an operation with many statuses (sendMessage has 11) shows every code, on a second row
 * if the panel is narrow — a hidden horizontal scroll left the last tab under the panel's icons. */
.evva-status-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0 2px;
  min-width: 0;
  max-width: 100%;
}
.evva-status-tabs::-webkit-scrollbar {
  display: none;
}
.evva-status-tabs [role='tab'] {
  flex: 0 0 auto;
  padding: 6px 8px 5px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: none;
  color: var(--grayscale-a10, #8a8a94);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: color 150ms var(--evva-ease), border-color 150ms var(--evva-ease);
}
.evva-status-tabs [role='tab']:hover {
  color: var(--evva-code-ink);
}
.evva-status-tabs [role='tab'][aria-selected='true'] {
  color: var(--evva-code-ink);
  border-bottom-color: var(--evva-pink);
}
.evva-status-tabs [role='tab']:focus-visible {
  outline: 2px solid var(--evva-pink);
  outline-offset: -2px;
}
@media (prefers-reduced-motion: reduce) {

  .evva-status-tabs [role='tab'] {
    transition: none;
  }

}
/* The strip and whatever Fern keeps beside it (an example picker) share one row of the panel header. */
div:has(> .evva-status-tabs) {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  gap: 8px;
  min-width: 0;
}
/* Tabs fill the header's height, so the active rule sits on the header's bottom edge, as in a real tab bar. */
.evva-status-tabs [role='tab'] {
  display: inline-flex;
  align-items: center;
}
