/*fern-site-stylesheet*/:root {
  --header-height: 64px;
  --header-height-real: 64px;
  --mobile-header-height-real: 64px;
  --content-width: 640px;
  --sidebar-width: 288px;
  --page-width: 1408px;
  --logo-height: 32px;
  --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: #fff8f7;
  --accent-3: #ffebe8;
  --accent-4: #ffdcd4;
  --accent-5: #ffcdc4;
  --accent-6: #febdb2;
  --accent-7: #f6a89c;
  --accent-8: #ed8e7f;
  --accent-9: #d93829;
  --accent-10: #ca2316;
  --accent-11: #d12f21;
  --accent-12: #602119;

  --accent-a1: #ff000003;
  --accent-a2: #ff200008;
  --accent-a3: #ff220017;
  --accent-a4: #ff30012b;
  --accent-a5: #ff27013b;
  --accent-a6: #fc25004d;
  --accent-a7: #e81f0063;
  --accent-a8: #dc1e0080;
  --accent-a9: #d21200d6;
  --accent-a10: #c50e00e9;
  --accent-a11: #ca1000de;
  --accent-a12: #4f0900e6;

  --accent-contrast: #fff;
  --accent-surface: #fff6f5cc;
  --accent-indicator: #d93829;
  --accent-track: #d93829;
}

@supports (color: color(display-p3 1 1 1)) {
  @media (color-gamut: p3) {
    .light, :root {
      --accent-1: oklch(99.4% 0.0032 29.68);
      --accent-2: oklch(98.4% 0.0078 29.68);
      --accent-3: oklch(95.5% 0.0219 29.68);
      --accent-4: oklch(92.7% 0.048 29.68);
      --accent-5: oklch(89.4% 0.0635 29.68);
      --accent-6: oklch(85.4% 0.0774 29.68);
      --accent-7: oklch(80.5% 0.094 29.68);
      --accent-8: oklch(74.3% 0.1185 29.68);
      --accent-9: oklch(58.5% 0.1999 29.68);
      --accent-10: oklch(54.2% 0.2025 29.68);
      --accent-11: oklch(56.2% 0.1999 29.68);
      --accent-12: oklch(34.3% 0.094 29.68);

      --accent-a1: color(display-p3 0.6745 0.0235 0.0235 / 0.012);
      --accent-a2: color(display-p3 0.8784 0.1451 0.0196 / 0.032);
      --accent-a3: color(display-p3 0.8667 0.1451 0.0118 / 0.087);
      --accent-a4: color(display-p3 0.8588 0.1922 0.0039 / 0.165);
      --accent-a5: color(display-p3 0.8627 0.1608 0.0039 / 0.224);
      --accent-a6: color(display-p3 0.8549 0.1647 0.0039 / 0.295);
      --accent-a7: color(display-p3 0.7922 0.1294 0.0039 / 0.377);
      --accent-a8: color(display-p3 0.749 0.1294 0.0039 / 0.487);
      --accent-a9: color(display-p3 0.7294 0.0902 0 / 0.797);
      --accent-a10: color(display-p3 0.6824 0.0745 0 / 0.855);
      --accent-a11: color(display-p3 0.698 0.0784 0 / 0.82);
      --accent-a12: color(display-p3 0.2667 0.0353 0 / 0.887);

      --accent-contrast: #fff;
      --accent-surface: color(display-p3 0.9961 0.9647 0.9608 / 0.8);
      --accent-indicator: oklch(58.5% 0.1999 29.68);
      --accent-track: oklch(58.5% 0.1999 29.68);
    }
  }
}


.light, :root {
  --grayscale-1: #fdfdfc;
  --grayscale-2: #f9f9f8;
  --grayscale-3: #f1f0ef;
  --grayscale-4: #e9e8e6;
  --grayscale-5: #e2e1de;
  --grayscale-6: #dad9d6;
  --grayscale-7: #cfceca;
  --grayscale-8: #bcbbb5;
  --grayscale-9: #8d8d86;
  --grayscale-10: #82827c;
  --grayscale-11: #63635e;
  --grayscale-12: #21201c;

  --grayscale-a1: #55550003;
  --grayscale-a2: #25250007;
  --grayscale-a3: #20100010;
  --grayscale-a4: #1f150019;
  --grayscale-a5: #1f180021;
  --grayscale-a6: #19130029;
  --grayscale-a7: #19140035;
  --grayscale-a8: #1915014a;
  --grayscale-a9: #0f0f0079;
  --grayscale-a10: #0c0c0083;
  --grayscale-a11: #080800a1;
  --grayscale-a12: #060500e3;

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

@supports (color: color(display-p3 1 1 1)) {
  @media (color-gamut: p3) {
    .light, :root {
      --grayscale-1: color(display-p3 0.992 0.992 0.989);
      --grayscale-2: color(display-p3 0.977 0.977 0.973);
      --grayscale-3: color(display-p3 0.943 0.942 0.936);
      --grayscale-4: color(display-p3 0.913 0.912 0.903);
      --grayscale-5: color(display-p3 0.885 0.883 0.873);
      --grayscale-6: color(display-p3 0.854 0.852 0.839);
      --grayscale-7: color(display-p3 0.813 0.81 0.794);
      --grayscale-8: color(display-p3 0.738 0.734 0.713);
      --grayscale-9: color(display-p3 0.553 0.553 0.528);
      --grayscale-10: color(display-p3 0.511 0.511 0.488);
      --grayscale-11: color(display-p3 0.388 0.388 0.37);
      --grayscale-12: color(display-p3 0.129 0.126 0.111);

      --grayscale-a1: #55550003;
      --grayscale-a2: #25250007;
      --grayscale-a3: #20100010;
      --grayscale-a4: #1f150019;
      --grayscale-a5: #1f180021;
      --grayscale-a6: #19130029;
      --grayscale-a7: #19140035;
      --grayscale-a8: #1915014a;
      --grayscale-a9: #0f0f0079;
      --grayscale-a10: #0c0c0083;
      --grayscale-a11: #080800a1;
      --grayscale-a12: #060500e3;

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


.dark {
  --accent-1: #130c0b;
  --accent-2: #1e1412;
  --accent-3: #381612;
  --accent-4: #4d1510;
  --accent-5: #5d1d17;
  --accent-6: #6e2922;
  --accent-7: #863a31;
  --accent-8: #ae4c41;
  --accent-9: #f06a5b;
  --accent-10: #e25e50;
  --accent-11: #ff9080;
  --accent-12: #fcd3cd;

  --accent-a1: #e8000007;
  --accent-a2: #fe632012;
  --accent-a3: #fc3b172e;
  --accent-a4: #fd290e44;
  --accent-a5: #fd3b2355;
  --accent-a6: #fd513c67;
  --accent-a7: #ff665180;
  --accent-a8: #ff6b59aa;
  --accent-a9: #fe7060f0;
  --accent-a10: #fe6858e1;
  --accent-a11: #ff9080;
  --accent-a12: #ffd6cffc;

  --accent-contrast: #fff;
  --accent-surface: #2f1a1380;
  --accent-indicator: #f06a5b;
  --accent-track: #f06a5b;
}

@supports (color: color(display-p3 1 1 1)) {
  @media (color-gamut: p3) {
    .dark {
      --accent-1: oklch(16.4% 0.0119 28.65);
      --accent-2: oklch(20.2% 0.0179 28.65);
      --accent-3: oklch(25% 0.0559 28.65);
      --accent-4: oklch(28.9% 0.0862 28.65);
      --accent-5: oklch(33.1% 0.0961 28.65);
      --accent-6: oklch(38.1% 0.0995 28.65);
      --accent-7: oklch(44.9% 0.1073 28.65);
      --accent-8: oklch(54.1% 0.1306 28.65);
      --accent-9: oklch(68.6% 0.1684 28.65);
      --accent-10: oklch(64.8% 0.1684 28.65);
      --accent-11: oklch(78.4% 0.1533 28.65);
      --accent-12: oklch(90% 0.0461 28.65);

      --accent-a1: color(display-p3 0.9882 0 0 / 0.021);
      --accent-a2: color(display-p3 1 0.4353 0.1333 / 0.062);
      --accent-a3: color(display-p3 0.9961 0.298 0.1412 / 0.162);
      --accent-a4: color(display-p3 1 0.2353 0.102 / 0.24);
      --accent-a5: color(display-p3 1 0.302 0.1843 / 0.302);
      --accent-a6: color(display-p3 1 0.3882 0.2824 / 0.368);
      --accent-a7: color(display-p3 1 0.4588 0.3725 / 0.463);
      --accent-a8: color(display-p3 1 0.4902 0.4039 / 0.616);
      --accent-a9: color(display-p3 1 0.5059 0.4275 / 0.872);
      --accent-a10: color(display-p3 1 0.4784 0.4 / 0.815);
      --accent-a11: color(display-p3 1 0.6235 0.5529 / 0.939);
      --accent-a12: color(display-p3 0.9961 0.8667 0.8392 / 0.959);

      --accent-contrast: #fff;
      --accent-surface: color(display-p3 0.1647 0.102 0.0706 / 0.5);
      --accent-indicator: oklch(68.6% 0.1684 28.65);
      --accent-track: oklch(68.6% 0.1684 28.65);
    }
  }
}


.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(217, 56, 41, 1);
  --background: rgba(255, 255, 255, 1);
  --border: rgba(229, 231, 235, 1);
  --sidebar-background: rgba(249, 250, 251, 1);
  --header-background: rgba(238, 238, 238, 1);
  --card-background: rgba(243, 244, 246, 1);
  --theme-color: #fff;
}

.dark {
  color-scheme: dark;
  --accent: rgba(240, 106, 91, 1);
  --background: rgba(13, 14, 17, 1);
  --border: rgba(31, 41, 55, 1);
  --sidebar-background: rgba(0, 0, 0, 1);
  --header-background: rgba(0, 0, 0, 1);
  --card-background: rgba(31, 41, 55, 1);
  --theme-color: #0d0e11;
}

@keyframes fadeUpIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    0% {
        text-shadow: 0 0 20px transparent;
    }
    50% {
        text-shadow: 0 0 20px var(--jetty-accent-glow);
    }
    100% {
        text-shadow: 0 0 20px transparent;
    }
}

:root {
    --border-radius: 6px;
    --max-width: 1200px;
    --transition: all 0.2s ease;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.hero-section {
    padding: 4rem 2rem;
    text-align: center;
    background: var(--colors-card-background);
    margin: -2rem -2rem 4rem -2rem;
    position: relative;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--colors-text-primary);
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--colors-text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.primary-button, .secondary-button {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.primary-button {
    background: var(--colors-accent-primary);
    color: var(--colors-background);
}

.primary-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
.primary-button:focus-visible {
    opacity: 0.9;
    transform: translateY(-1px);
}

.secondary-button {
    background: var(--colors-background);
    border: 1px solid var(--colors-border);
    color: var(--colors-text-primary);
}

.secondary-button:hover {
    border-color: var(--colors-accent-primary);
    transform: translateY(-1px);
}
.secondary-button:focus-visible {
    border-color: var(--colors-accent-primary);
    transform: translateY(-1px);
}

.github-icon {
    width: 16px;
    height: 16px;
    filter: invert(1);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 4rem auto;
    max-width: var(--max-width);
    padding: 0 2rem;
}

.feature-card {
    padding: 1.5rem;
    background: var(--colors-card-background);
    border: 1px solid var(--colors-border);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.feature-card h3 {
    font-size: 1.125rem;
    margin: 0 0 0.5rem 0;
    color: var(--colors-text-primary);
    font-weight: 600;
}

.feature-card p {
    color: var(--colors-text-secondary);
    line-height: 1.5;
    margin: 0;
    font-size: 0.875rem;
}

.feature-card:hover {
    border-color: var(--colors-accent-primary);
    transform: translateY(-2px);
}
.feature-card:focus-visible {
    border-color: var(--colors-accent-primary);
    transform: translateY(-2px);
}

.code-preview {
    max-width: var(--max-width);
    margin: 4rem auto;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.code-header {
    background: #2d2d2d;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #404040;
}

.code-title {
    font-size: 0.875rem;
    color: #e5e7eb;
    font-weight: 500;
}

pre {
    margin: 0;
    padding: 1.5rem !important;
    font-size: 0.875rem;
    line-height: 1.6;
    overflow-x: auto;
    background: #1e1e1e;
    color: #e5e7eb;
    font-family: 'Fira Code', 'Consolas', monospace;
}

.getting-started {
    max-width: var(--max-width);
    margin: 6rem auto;
    padding: 0 2rem;
    text-align: center;
}

.getting-started h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--colors-text-primary);
    font-weight: 700;
}

.getting-started-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.getting-started-card {
    padding: 1.5rem;
    background: var(--colors-card-background);
    border: 1px solid var(--colors-border);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--colors-text-primary);
    transition: var(--transition);
    text-align: left;
}

.getting-started-card:hover {
    border-color: var(--colors-accent-primary);
    transform: translateY(-2px);
}
.getting-started-card:focus-visible {
    border-color: var(--colors-accent-primary);
    transform: translateY(-2px);
}

.community-section {
    background: var(--colors-card-background);
    padding: 6rem 2rem;
    margin: 4rem -2rem;
    text-align: center;
}

.community-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 3rem;
}

.community-button {
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
}

.community-button.discord {
    background: var(--colors-accent-primary);
    color: var(--colors-background);
}

.community-button.github {
    background: transparent;
    color: var(--colors-text-primary);
    border: 1px solid var(--colors-border);
}

.community-button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}
.community-button:focus-visible {
    transform: translateY(-2px);
    opacity: 0.9;
}

@media (max-width: 1200px) {

    :root {
        --max-width: 90vw;
    }
    
    .hero-section h1 {
        font-size: 4rem;
    }

}

@media (max-width: 768px) {

    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        padding: 0 2rem;
    }
    
    .features-grid,
    .getting-started-grid {
        grid-template-columns: 1fr;
    }
    
    .community-links {
        flex-direction: column;
        align-items: stretch;
    }

}

@media (max-width: 480px) {

    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .getting-started h2 {
        font-size: 2rem;
    }

}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, var(--jetty-accent-wash) 0%, transparent 50%);
    opacity: 0.5;
    z-index: 0;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 0.3;
    }
}

.hero-section > * {
    position: relative;
    z-index: 1;
}

.video-container {
    margin: 3rem auto;
    padding: 2rem;
    background: var(--colors-card-background);
    border-radius: var(--border-radius);
    border: 1px solid var(--colors-border);
    max-width: 640px;
}

.video-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--colors-text-primary);
    margin: 0 0 1.5rem 0;
    text-align: center;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: calc(var(--border-radius) - 2px);
    background: var(--colors-background);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Inline marker that matches the numbered bubbles drawn on annotated screenshots.
   MDX usage: choose **New shipper** <span className="chrt-mark" data-mark="<figure id>:<mark key>">3</span>
   The number is generated from the figure's spec by maintenance/sync_figures.py. */
.chrt-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.3em;
    height: 1.3em;
    padding: 0 0.28em;
    margin: 0 0.15em;
    border-radius: 999px;
    background: var(--jetty-red-150);
    color: #FFFFFF;
    font-size: 0.82em;
    font-weight: 700;
    line-height: 1;
    vertical-align: 0.08em;
    box-shadow: 0 0 0 1.5px #FFFFFF;
}

.dark .chrt-mark {
    background: var(--jetty-red-50);
    color: var(--jetty-black);
    box-shadow: 0 0 0 1.5px var(--jetty-black);
}

.help-screenshot {
    margin-left: auto;
    margin-right: auto;
}

.help-screenshot img {
    display: block;
    width: 100%;
    height: auto;
}

.help-screenshot--wide {
    max-width: 720px;
}

.help-screenshot--medium {
    max-width: 620px;
}

.help-screenshot--modal {
    max-width: 560px;
}

.help-screenshot--compact {
    max-width: 420px;
}

.help-screenshot--members-page {
    max-width: 960px;
}

.help-screenshot--invite-modal {
    max-width: 534px;
}

.help-screenshot--role-menu {
    max-width: 541px;
}

.help-screenshot--pending-invite {
    max-width: 703px;
}

@media (max-width: 768px) {

    .help-screenshot {
        max-width: 100%;
    }

    .video-container {
        margin: 2rem -1rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

}

/* Approved Jetty palette. These component tokens do not replace Fern's global
   neutral surfaces. Blue and violet are the reviewed semantic extensions. */
:root {
    --jetty-red-150: #D93829;
    --jetty-red-50: #F06A5B;
    --jetty-red-100: #B13228;
    --jetty-green-100: #A8AD85;
    --jetty-green-200: #6E8432;
    --jetty-green-300: #5C6B24;
    --jetty-yellow-25: #FFFDCC;
    --jetty-yellow-50: #E7CE7E;
    --jetty-yellow-100: #D7A73A;
    --jetty-yellow-200: #7C6E31;
    --jetty-orange-100: #E26A2C;
    --jetty-blue-50: #7BAFD4;
    --jetty-blue-150: #4487B5;
    --jetty-blue-200: #1E5A85;
    --jetty-violet-50: #C2ADD8;
    --jetty-violet-150: #6B4F86;
    --jetty-white: #F7F7F5;
    --jetty-black: #0F100F;
    --jetty-accent: var(--jetty-red-150);
    --jetty-active-fill: rgb(217 56 41 / 14%);
    --jetty-hover-fill: rgb(217 56 41 / 20%);
    --jetty-accent-glow: rgb(217 56 41 / 20%);
    --jetty-accent-wash: rgb(217 56 41 / 5%);
    --jetty-code-background: #F3F4F6;
    --jetty-code-keyword: var(--jetty-red-150);
    --jetty-code-string: var(--jetty-green-300);
    --jetty-code-function: var(--jetty-violet-150);
    --jetty-code-number: var(--jetty-yellow-200);
    --jetty-code-property: var(--jetty-blue-150);
    --jetty-code-neutral: #3F3F3D;
    --jetty-tip-text: var(--jetty-green-300);
    --jetty-tip-fill: rgb(168 173 133 / 14%);
    --jetty-warning-text: var(--jetty-yellow-200);
    --jetty-warning-fill: rgb(255 253 204 / 80%);
    --jetty-error-text: var(--jetty-red-150);
    --jetty-error-fill: rgb(217 56 41 / 10%);
    --jetty-note-text: var(--jetty-blue-150);
    --jetty-note-fill: rgb(68 135 181 / 10%);
}

.dark {
    --jetty-accent: var(--jetty-red-50);
    --jetty-active-fill: rgb(240 106 91 / 18%);
    --jetty-hover-fill: rgb(240 106 91 / 24%);
    --jetty-accent-glow: rgb(240 106 91 / 20%);
    --jetty-accent-wash: rgb(240 106 91 / 5%);
    --jetty-code-background: #1F2937;
    --jetty-code-keyword: var(--jetty-red-50);
    --jetty-code-string: var(--jetty-green-100);
    --jetty-code-function: var(--jetty-violet-50);
    --jetty-code-number: var(--jetty-yellow-50);
    --jetty-code-property: var(--jetty-blue-50);
    --jetty-code-neutral: var(--jetty-white);
    --jetty-tip-text: var(--jetty-green-100);
    --jetty-tip-fill: rgb(168 173 133 / 12%);
    --jetty-warning-text: var(--jetty-yellow-50);
    --jetty-warning-fill: rgb(231 206 126 / 12%);
    --jetty-error-text: var(--jetty-red-50);
    --jetty-error-fill: rgb(240 106 91 / 14%);
    --jetty-note-text: var(--jetty-blue-50);
    --jetty-note-fill: rgb(123 175 212 / 14%);
}

/* The data attributes are Fern's rendered method contract. Semantic colors
   belong to methods, not generic .blue/.green badges or enum chips. */
.fern-docs-badge[data-badge-type="http-method"][data-http-method="GET"] {
    --jetty-method-fill: var(--jetty-green-200);
    --jetty-method-hover: var(--jetty-green-300);
    --jetty-method-text: var(--jetty-white);
}
.fern-docs-badge[data-badge-type="http-method"][data-http-method="POST"] {
    --jetty-method-fill: var(--jetty-blue-150);
    --jetty-method-hover: var(--jetty-blue-200);
    --jetty-method-text: var(--jetty-white);
}
.fern-docs-badge[data-badge-type="http-method"][data-http-method="PUT"] {
    --jetty-method-fill: var(--jetty-yellow-100);
    --jetty-method-hover: var(--jetty-yellow-50);
    --jetty-method-text: var(--jetty-black);
}
.fern-docs-badge[data-badge-type="http-method"][data-http-method="PATCH"] {
    --jetty-method-fill: var(--jetty-yellow-50);
    --jetty-method-hover: var(--jetty-yellow-100);
    --jetty-method-text: var(--jetty-black);
}
.fern-docs-badge[data-badge-type="http-method"][data-http-method="DELETE"] {
    --jetty-method-fill: var(--jetty-red-150);
    --jetty-method-hover: var(--jetty-red-100);
    --jetty-method-text: var(--jetty-white);
}
.fern-docs-badge[data-badge-type="http-method"]:is([data-http-method="GET"], [data-http-method="POST"], [data-http-method="PUT"], [data-http-method="PATCH"], [data-http-method="DELETE"]) {
    background-color: var(--jetty-method-fill) !important;
    color: var(--jetty-method-text) !important;
    border-color: var(--jetty-method-fill);
}
.fern-docs-badge[data-badge-type="http-method"]:is([data-http-method="GET"], [data-http-method="POST"], [data-http-method="PUT"], [data-http-method="PATCH"], [data-http-method="DELETE"]):not(:disabled):is(:hover, [data-state="open"]),
.fern-sidebar-link:hover .fern-docs-badge[data-badge-type="http-method"]:is([data-http-method="GET"], [data-http-method="POST"], [data-http-method="PUT"], [data-http-method="PATCH"], [data-http-method="DELETE"]) {
    background-color: var(--jetty-method-hover) !important;
    border-color: var(--jetty-method-hover);
}
.fern-sidebar-link:focus-within .fern-docs-badge[data-badge-type="http-method"]:is([data-http-method="GET"], [data-http-method="POST"], [data-http-method="PUT"], [data-http-method="PATCH"], [data-http-method="DELETE"]) {
    background-color: var(--jetty-method-hover) !important;
    border-color: var(--jetty-method-hover);
}

/* Numeric status badges match the approved solid method examples in both
   modes. Translucent semantic fills belong to surrounding callouts. */
.fern-docs-badge[data-badge-type="status-code"][data-status-code^="2"] {
    color: var(--jetty-white) !important;
    background-color: var(--jetty-green-200) !important;
    border-color: var(--jetty-green-200);
}
.fern-docs-badge[data-badge-type="status-code"]:is([data-status-code^="4"], [data-status-code^="5"]) {
    color: var(--jetty-white) !important;
    background-color: var(--jetty-red-150) !important;
    border-color: var(--jetty-red-150);
}
.fern-docs-badge[data-badge-type="status-code"][data-status-code^="2"].interactive:not(:disabled):is(:hover, [data-state="open"]),
.fern-button:not(:disabled):is(:hover, [data-state="open"]) .fern-docs-badge[data-badge-type="status-code"][data-status-code^="2"] {
    background-color: var(--jetty-green-300) !important;
    border-color: var(--jetty-green-300);
}
.fern-docs-badge[data-badge-type="status-code"]:is([data-status-code^="4"], [data-status-code^="5"]).interactive:not(:disabled):is(:hover, [data-state="open"]),
.fern-button:not(:disabled):is(:hover, [data-state="open"]) .fern-docs-badge[data-badge-type="status-code"]:is([data-status-code^="4"], [data-status-code^="5"]) {
    background-color: var(--jetty-red-100) !important;
    border-color: var(--jetty-red-100);
}

.fern-sidebar-link:hover {
    background-color: var(--jetty-hover-fill);
    color: var(--jetty-accent);
}
.fern-sidebar-link:focus-visible {
    background-color: var(--jetty-hover-fill);
    color: var(--jetty-accent);
}
.fern-sidebar-link[data-state="active"] {
    background-color: var(--jetty-active-fill);
    color: var(--jetty-accent);
}
.fern-sidebar-link[data-state="active"]:hover {
    background-color: var(--jetty-hover-fill);
    color: var(--jetty-accent);
}
.fern-sidebar-link[data-state="active"]:focus-visible {
    background-color: var(--jetty-hover-fill);
    color: var(--jetty-accent);
}
.fern-sidebar-link[data-state="active"] svg {
    color: var(--jetty-accent);
}

.fern-callout:is([data-intent="success"], [data-intent="tip"], [data-intent="check"]) {
    color: var(--jetty-tip-text);
    border-color: var(--jetty-green-200);
    background-color: var(--jetty-tip-fill);
}
.dark .fern-callout:is([data-intent="success"], [data-intent="tip"], [data-intent="check"]) {
    border-color: var(--jetty-green-100);
}
.fern-callout[data-intent="warning"] {
    color: var(--jetty-warning-text);
    border-color: var(--jetty-warning-text);
    background-color: var(--jetty-warning-fill);
}
.fern-callout[data-intent="error"] {
    color: var(--jetty-error-text);
    border-color: var(--jetty-error-text);
    background-color: var(--jetty-error-fill);
}
.fern-callout[data-intent="note"] {
    color: var(--jetty-note-text);
    border-color: var(--jetty-note-text);
    background-color: var(--jetty-note-fill);
}
/* Only the leading icon inherits; links retain Fern's accent color. */
.fern-callout:is([data-intent="success"], [data-intent="tip"], [data-intent="check"], [data-intent="warning"], [data-intent="error"], [data-intent="note"]) > div > div:first-child,
.fern-callout:is([data-intent="success"], [data-intent="tip"], [data-intent="check"], [data-intent="warning"], [data-intent="error"], [data-intent="note"]) > div > div:first-child svg {
    color: inherit;
}

/* Fern's important Shiki rules live in @layer components. Override in that
   same observed layer with scoped, more specific selectors; unlayered important
   rules lose to Fern's layered important declarations. */
@layer components {

    /* jetty-code-theme.js only labels existing spans. Scoped !important colors
       beat Shiki's inline light color and Fern's important dark color rules. */
    pre.code-block-root,
    .fern-endpoint-request-snippet,
    .fern-endpoint-response-snippet {
        background-color: var(--jetty-code-background) !important;
        color: var(--jetty-code-neutral);
    }
    pre.code-block-root .code-block-line-content span {
        color: var(--jetty-code-neutral) !important;
    }
    pre.code-block-root .code-block-line-content [data-jetty-token="keyword"] {
        color: var(--jetty-code-keyword) !important;
    }
    pre.code-block-root .code-block-line-content [data-jetty-token="string"] {
        color: var(--jetty-code-string) !important;
    }
    pre.code-block-root .code-block-line-content [data-jetty-token="function"] {
        color: var(--jetty-code-function) !important;
    }
    pre.code-block-root .code-block-line-content [data-jetty-token="number"] {
        color: var(--jetty-code-number) !important;
    }
    pre.code-block-root .code-block-line-content [data-jetty-token="property"] {
        color: var(--jetty-code-property) !important;
    }

}

/* Native header tabs and TOC/sidebar markers from the served Fern contract. */
.fern-header-tabs a[data-state="active"],
.fern-header-tabs a:hover,
.fern-header-tabs a[data-state="active"]:hover {
    color: var(--jetty-accent);
    background-color: transparent !important;
}
.fern-header-tabs a:focus-visible,
.fern-header-tabs a[data-state="active"]:focus-visible {
    color: var(--jetty-accent);
    background-color: transparent !important;
}
.fern-header-tabs a[data-state="active"] svg,
.fern-header-tabs a:hover svg {
    color: var(--jetty-accent);
}
.fern-header-tabs a:focus-within svg {
    color: var(--jetty-accent);
}
.fern-header-tabs a[data-state="active"]::after {
    background-color: var(--jetty-accent);
}
.fern-sidebar-link.nested[data-state="active"] {
    border-color: var(--jetty-accent);
}
.fern-sidebar-link.nested[data-state="active"]::before,
.toc-root::after {
    background-color: var(--jetty-accent);
}
.fern-sidebar-link .expand-indicator[data-state="active"] {
    color: var(--jetty-accent);
    background-color: var(--jetty-active-fill);
}

/* Fern's response selector places its intent label immediately after the
   numeric status badge. Match that observed slot, not global intent utilities. */
.fern-docs-badge[data-badge-type="status-code"][data-status-code^="2"] + .truncate {
    color: var(--jetty-tip-text) !important;
}
.fern-docs-badge[data-badge-type="status-code"]:is([data-status-code^="4"], [data-status-code^="5"]) + .truncate {
    color: var(--jetty-error-text) !important;
}

/* The observed response selector is a Fern button containing a numeric status
   badge. Its chevron inherits the intent foreground; copy buttons are excluded. */
.fern-button:has(.fern-docs-badge[data-badge-type="status-code"][data-status-code^="2"]) .lucide-chevron-down {
    color: var(--jetty-tip-text) !important;
}
.fern-button:has(.fern-docs-badge[data-badge-type="status-code"]:is([data-status-code^="4"], [data-status-code^="5"])) .lucide-chevron-down {
    color: var(--jetty-error-text) !important;
}

/* Native status dropdown options use Radix's data-highlighted state. Keep the
   surrounding highlight calm while the numeric badge uses its solid hover fill. */
[role="option"][data-highlighted]:has(.fern-docs-badge[data-badge-type="status-code"][data-status-code^="2"]) {
    background-color: var(--jetty-tip-fill) !important;
}
[role="option"][data-highlighted]:has(.fern-docs-badge[data-badge-type="status-code"]:is([data-status-code^="4"], [data-status-code^="5"])) {
    background-color: var(--jetty-error-fill) !important;
}
[role="option"][data-highlighted] .fern-docs-badge[data-badge-type="status-code"][data-status-code^="2"] {
    background-color: var(--jetty-green-300) !important;
    border-color: var(--jetty-green-300);
}
[role="option"][data-highlighted] .fern-docs-badge[data-badge-type="status-code"]:is([data-status-code^="4"], [data-status-code^="5"]) {
    background-color: var(--jetty-red-100) !important;
    border-color: var(--jetty-red-100);
}
