:root {

    --color-avocado: #044926;
    --color-blue-tide: #02245f;
    --color-electric-lime: #b9ff38;
    --color-night: #151d25;
    --color-seaglass: #016f73;
    --color-plum: #470878;
    --color-leaf-green: #58df20;
    --color-meadow: #befe99;
    --color-sunbeam: #fffc4e;
    --color-mist: #f4f4f4;
    --color-slate-blue: #4f6d8b;
    --color-evergreen: #007339;
    /* Docs redesign palette for headings and link underlines */
    --color-heading: #1D293D;
    --color-muted: #62748E;
    --color-link: #00576E;
    --color-link-hover: #06838A;
    --color-teal-ink: #014654;
    --color-lime: #BEFE99;
    /* The accent of the design system: lime is for dark surfaces only */
    --color-lime-tint: #EEFBD5;

    --neutral-black: #000000;
    --neutral-gray-darkest: #323b40;
    --neutral-gray-darker: #435057;
    --neutral-gray-dark: #576770;
    --neutral-gray: #71808a;
    --neutral-gray-light: #c2cbd5;
    --neutral-gray-lighter: #e9f0f9;
    --neutral-gray-lightest: #f7faff;
    --neutral-white: #ffffff;

    --state-info: #76e7e7;
    --state-info-dark: #006585;
    --state-success: #85da66;
    --state-success-dark: #3b7044;
    --state-warning: #ffec44;
    --state-warning-dark: #dc6409;
    --state-danger: #dc084b;
    --state-danger-dark: #8f001d;

    --font-headlines: "Urbanist", sans-serif;
    --font-content: "Inter", sans-serif;
    --font-code: Consolas, "liberation mono", Menlo, Courier, monospace;

    --padding-1: 8px;
    --padding-2: 16px;
    --padding-4: 32px;
    --padding-8: 64px;
    
    /* The design system has no height for it, the hamburger button (48px) is
       a large enough touch target in it */
    --topbar-height: 56px;
    /* On very wide screens (4K), the sidebar, its padding, and the gaps
       around the content grow with the viewport width beyond 1920px, up to a
       limit so that the areas don't look disconnected. Nothing changes below. */
    --wide-extra: max(0px, 100vw - 1920px);
    --nav-width: min(260px + var(--wide-extra) * 0.125, 360px);
    --nav-padding: min(8px + var(--wide-extra) * 0.025, 24px);

    --content-width: 800px;
    --toc-min-width: 220px;
    --toc-max-width: 600px;
    --page-gutter: min(48px + var(--wide-extra) * 0.075, 112px);
    /* Between the content and the table of contents (and the edit link) */
    --toc-gap: var(--page-gutter);
    --page-gutter-narrow: 20px;

    --green-50: #e3f2e0;
    --green-100: #dcebd9;
    --green-200: #98D78C;
    --green-300: #55AB45;
    --green-400: #217846;
    --green-500: #007339;
    --green-600: #006532;
    --green-700: #005329;
    --green-800: #004020;
    --green-900: #002e17;
    --green-950: #1a270c;
    --red-50: #f8c5c6;
    --red-100: #f5acae;
    --red-200: #f18b8e;
    --red-300: #ed6a6e;
    --red-400: #e9494d;
    --red-500: #e63035;
    --red-600: #da1a20;
    --red-700: #b3161a;
    --red-800: #8b1114;
    --red-900: #630c0e;
    --red-950: #4c0703;
    --orange-50: #fff4ed;
    --orange-100: #ffe6d5;
    --orange-200: #feccaa;
    --orange-300: #fdac74;
    --orange-400: #fb8a3c;
    --orange-500: #f97316;
    --orange-600: #ea670c;
    --orange-700: #c2570c;
    --orange-800: #9a4a12;
    --orange-900: #7c3d12;
    --orange-950: #432007;
    --blue-50: #f0faff;
    --blue-100: #e0f4fe;
    --blue-200: #bae6fd;
    --blue-300: #7dd1fc;
    --blue-400: #38b7f8;
    --blue-500: #0e9fe9;
    --blue-600: #0284c7;
    --blue-700: #036ba1;
    --blue-800: #075a85;
    --blue-900: #0c4d6e;
    --blue-950: #083349;
    --gray-50: #f8f8f8;
    --gray-100: #f0f0f0;
    --gray-200: #e5e5e5;
    --gray-300: #d1d1d1;
    --gray-400: #b4b4b4;
    --gray-500: #9a9a9a;
    --gray-600: #818181;
    --gray-700: #6a6a6a;
    --gray-800: #5a5a5a;
    --gray-900: #4e4e4e;
    --gray-950: #282828;

    --text-color: #333;
    --CONTENT-BACKGROUND-COLOR: #fafafa;
    --HEADER-BACKGROUND-COLOR: #fafafa;
    --H2-COLOR: #534949;
    --TOC-ENTRY-COLOR: #4a4a4a;
    --CODEBLOCK-BACKGROUND-COLOR: #eeeeee;
    --CODEBLOCK-TEXT-COLOR: rgb(45 49 56);

    --TYPOGRAPHY-BODY-TEXT: 16px;
    --TYPOGRAPHY-BOLD-TEXT: 700;

    --TYPOGRAPHY-H2-SIZE: 32px;
    --TYPOGRAPHY-H3-SIZE: 28px;
    --TYPOGRAPHY-H4-SIZE: 24px;
    --TYPOGRAPHY-H5-SIZE: 20px;
    --TYPOGRAPHY-H6-SIZE: 18px;

    --TYPOGRAPHY-H2-SIZE-SMALL: 24px;
    --TYPOGRAPHY-H3-SIZE-SMALL: 22px;
    --TYPOGRAPHY-H4-SIZE-SMALL: 20px;
    --TYPOGRAPHY-H5-SIZE-SMALL: 18px;
    --TYPOGRAPHY-H6-SIZE-SMALL: 16px;

    --TYPOGRAPHY-H2-HEIGHT: 40px;
    --TYPOGRAPHY-H3-HEIGHT: 30px;
    --TYPOGRAPHY-H4-HEIGHT: 26px;
    --TYPOGRAPHY-H5-HEIGHT: 24px;
    --TYPOGRAPHY-H6-HEIGHT: 22px;
}

/* Fonts */

@font-face {
    font-display: swap;
    font-family: "Inter";
    font-style: normal;
    font-weight: 300;
    src: url("/asset?u=https%3A%2F%2Fdocs.arango.ai%2Ffonts%2Finter-v12-latin-300.woff2") format("woff2");
}

@font-face {
    font-display: swap;
    font-family: "Inter";
    font-style: normal;
    font-weight: 400;
    src: url("/asset?u=https%3A%2F%2Fdocs.arango.ai%2Ffonts%2Finter-v12-latin-regular.woff2") format("woff2");
}

@font-face {
    font-display: swap;
    font-family: "Inter";
    font-style: normal;
    font-weight: 500;
    src: url("/asset?u=https%3A%2F%2Fdocs.arango.ai%2Ffonts%2Finter-v12-latin-500.woff2") format("woff2");
}

@font-face {
    font-display: swap;
    font-family: "Inter";
    font-style: normal;
    font-weight: 600;
    src: url("/asset?u=https%3A%2F%2Fdocs.arango.ai%2Ffonts%2Finter-v12-latin-600.woff2") format("woff2");
}

@font-face {
    font-display: swap;
    font-family: "Urbanist";
    font-style: normal;
    font-weight: 100 900;
    src: url("/asset?u=https%3A%2F%2Fdocs.arango.ai%2Ffonts%2FUrbanist%5Bital%2Cwght%5D.woff2") format("woff2");
}

/* Icons: Lucide v0.468.0 (https://lucide.dev, ISC License), drawn as masks
   in the current text color. Use <i class="icon icon-NAME" aria-hidden="true">
   or set --icon on a pseudo-element that also gets the icon rule below. */

:root {
    --icon-arrow-up: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 7-7 7 7'/%3E%3Cpath d='M12 19V5'/%3E%3C/svg%3E");
    --icon-arrow-up-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E");
    --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
    --icon-chevron-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    --icon-chevron-left: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 18-6-6 6-6'/%3E%3C/svg%3E");
    --icon-chevron-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
    --icon-chevron-up: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m18 15-6-6-6 6'/%3E%3C/svg%3E");
    --icon-chevrons-up-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 15 5 5 5-5'/%3E%3Cpath d='m7 9 5-5 5 5'/%3E%3C/svg%3E");
    --icon-circle-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
    --icon-circle-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m15 9-6 6'/%3E%3Cpath d='m9 9 6 6'/%3E%3C/svg%3E");
    --icon-copy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='14' height='14' x='8' y='8' rx='2' ry='2'/%3E%3Cpath d='M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2'/%3E%3C/svg%3E");
    --icon-github: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4'/%3E%3Cpath d='M9 18c-4.51 2-5-2-7-2'/%3E%3C/svg%3E");
    --icon-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E");
    --icon-link: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E");
    --icon-pencil: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z'/%3E%3Cpath d='m15 5 4 4'/%3E%3C/svg%3E");
    --icon-shield-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z'/%3E%3Cpath d='M12 8v4'/%3E%3Cpath d='M12 16h.01'/%3E%3C/svg%3E");
    --icon-triangle-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3'/%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E");
}

.icon,
.copy-to-clipboard-button::before,
.clipboard-copy::before,
pre > .code-show-more::before,
details > summary::before,
.expand-nav::after {
    content: "";
    display: inline-block;
    flex-shrink: 0;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    background-color: currentColor;
    /* content-box: padding adds space around the icon instead of enlarging it */
    mask: var(--icon) center / contain no-repeat content-box;
    /* Keep icons when printing without background graphics */
    print-color-adjust: exact;
}

/* High contrast mode would replace the background color and hide the icon */
@media (forced-colors: active) {
    .icon,
    .copy-to-clipboard-button::before,
    .clipboard-copy::before,
    pre > .code-show-more::before,
    details > summary::before,
    .expand-nav::after {
        background-color: CanvasText;
        forced-color-adjust: none;
    }
}

.icon-fw {
    width: 1.25em;
}

.icon-arrow-up { --icon: var(--icon-arrow-up); }
.icon-arrow-up-right { --icon: var(--icon-arrow-up-right); }
.icon-check { --icon: var(--icon-check); }
.icon-chevron-left { --icon: var(--icon-chevron-left); }
.icon-chevron-right { --icon: var(--icon-chevron-right); }
.icon-chevrons-up-down { --icon: var(--icon-chevrons-up-down); }
.icon-circle-check { --icon: var(--icon-circle-check); }
.icon-circle-x { --icon: var(--icon-circle-x); }
.icon-github { --icon: var(--icon-github); }
.icon-info { --icon: var(--icon-info); }
.icon-link { --icon: var(--icon-link); }
.icon-pencil { --icon: var(--icon-pencil); }
.icon-shield-alert { --icon: var(--icon-shield-alert); }
.icon-triangle-alert { --icon: var(--icon-triangle-alert); }

/* Base styles */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    margin: 0 !important;
    scroll-padding-top: 8rem;
    background-color: var(--CONTENT-BACKGROUND-COLOR);
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-content);
    padding: 0;
    margin: 0;
    line-height: 1.5rem;
    font-weight: 400;
    font-size: var(--TYPOGRAPHY-BODY-TEXT);
    color: var(--text-color);
}

h1, h2, h3, h4, h5, h6 {
    margin: 0.85rem 0 1rem 0;
    line-height: 20px;
    text-rendering: optimizeLegibility;
}

h1, h2, h3 {
    line-height: 40px;
}

h1 { font-size: 3.25rem; }
h2 { font-size: 2.55rem; }
h3 { font-size: 2.15rem; }
h4 { font-size: 1.8rem; }
h5 { font-size: 1.4rem; }
h6 { font-size: 0.9rem; }

code, pre {
    font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
}

summary {
    display: block;
}

/* Generic tags */



label {
    margin-right: 10px;
    margin-bottom: 0.425rem;
}

label, input, select, textarea {
    font-size: 14px;
    line-height: 20px;
}

label, select, button, input[type="checkbox"], input[type="radio"] {
    cursor: pointer;
}

input[type=date], input[type=datetime], input[type=datetime-local], input[type=email], input[type=month], input[type=number], input[type=password], input[type=search], input[type=tel], input[type=text], input[type=time], input[type=url], input[type=week], textarea, select {
    border: 1px solid;
    border-color: inherit;
    border-radius: 3px;
    background-clip: padding-box;
    margin-bottom: 15px;
    width: 100%;
    font-weight: 400;
}

input[type="checkbox"] {
    -webkit-appearance: none;
    height: 13px;
    width: 13px;
    -webkit-transition: .15s;
    -moz-transition: .15s;
    -o-transition: .15s;
    transition: .15s;
    border-style: solid;
    border-width: 1px;
}

button {
    overflow: visible;
}

select {
    max-width: 100%;
    height: 30px;
    padding: 4px 6px;
    line-height: 30px;
    border: 1px solid var(--color-link);
    border-radius: 40px;
}

button, select {
    text-transform: none;
}

button, input, select, textarea {
    margin: 0;
    font-size: 100%;
    vertical-align: middle;
}

button, input, optgroup, select, textarea {
    color: inherit;
    font: inherit;
    margin: 0;
}


.btn, input[type=submit], input[type=reset], button {
    border: none;
    cursor: pointer;
    letter-spacing: 1px;
    position: relative;
    white-space: initial;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
    font-weight: 300;
    margin-bottom: 15px;
}

button {
    border-radius: 4px;
    font-weight: 700;
    line-height: 16px;
    min-height: 16px;
    font-size: 14px;
    padding: 12px 24px;
    color: white;
    margin-bottom: 28px;
    user-select: none;
}

button.green {
    background-color: var(--color-teal-ink);
}

button.grey {
    background-color: var(--gray-600);
}

ul, ol {
    margin: 1rem 0 20px 25px;
    padding: 0;
}

a {
    font-weight: 500;
    transition: 0.4s;
    color: var(--gray-950);
}

a, a:is(:hover, :focus) {
    text-decoration: none !important;
}

a, a:hover {
    border-bottom: inherit;
}

a:hover {
    text-decoration: underline;
}

/* Focus ring, keyboard only. The :root prefix outranks element-level :focus rules;
   later rules still override it. --focus-ring is re-set on dark surfaces for contrast. */
:root {
    --focus-ring: var(--color-teal-ink);
}

.main-nav {
    --focus-ring: var(--color-lime);
}

:root :focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 3px;
}

:root :focus:not(:focus-visible) {
    outline: none;
}

/* Focused by the skip link (the page title) and back to top (the start of the
   main content), so that tabbing continues from there. Not controls, no ring. */
:root :is(.container-main, .container-main h1):focus-visible {
    outline: none;
}

/* The first focusable element, only visible when focused. A default (primary)
   button of the design system, so that it stands out from whatever it covers,
   like the top bar on narrow screens */
.skip-link,
.skip-link:is(:hover, :visited, :focus) {
    position: fixed;
    /* Centered on the logo of the top bar */
    top: calc((var(--topbar-height) - 36px) / 2);
    left: 8px;
    z-index: 10000;
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    border-bottom: 0;
    background: var(--color-link);
    color: #f8fafc;
    font-size: 14px;
    font-weight: 500;
    transform: translateY(calc(-100% - 16px));
}

/* The hover colors of the design system are translucent (80%), for buttons on
   the page background. Over the logo and sidebar, these are their opaque
   equivalents, as they would look on the page background. */
.skip-link:hover {
    background: #346b76;
}

.skip-link:focus-visible {
    transform: none;
}

/* Over the dark sidebar: the dark variant of the button, lime like the
   current page in the navigation */
@media screen and (min-width: 769px) {
    .skip-link,
    .skip-link:is(:hover, :visited, :focus) {
        /* Centered on the logo of the sidebar (64px row) */
        top: 14px;
        --focus-ring: var(--color-lime);
        background: var(--color-lime);
        color: var(--color-teal-ink);
    }

    .skip-link:hover {
        background: #98cc7f;
    }
}

/* Keep outline out of `transition: all`, which animates the ring's width as it appears. */
a, .btn, input[type=submit], input[type=reset], button, input[type="checkbox"] {
    transition-property: color, background-color, border-color, border-width, opacity, box-shadow;
}


small {
    font-size: 80%;
}

p {
    margin: 1rem 0;
    line-height: 24px;
}

.highlight {
    margin-top: 16px;
}

li {
    margin-bottom: 0;
    line-height: 20px;
}

ul ul, ul ol, ol ul, ol ol {
    margin-top: 0;
    margin-bottom: .5rem;
}

.link,
.link:visited {
    text-decoration: none;
    border-bottom: 2px solid var(--color-link);
}

.link:is(:hover, :focus) {
    border-bottom: 2px solid var(--color-link-hover);
    color: var(--gray-950);
}

.link > * {
    text-decoration: none;
    pointer-events: none;
}

.link > p {
    border-bottom: 2px solid var(--color-link);
    color: var(--gray-950);
}

/* Align bottom with parent <a> and make <code> sit on link underline */
.link code {
    vertical-align: text-bottom;
    line-height: normal;
    position: relative;
    bottom: 1px;
    padding-bottom: 0;
}

/* External links: the arrow is a background in the padding, part of the link
   (and its underline) and unable to wrap to a line of its own */
.link-external {
    padding-right: 1.1em;
    background: no-repeat right 0.15em center / 0.85em url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d293d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E");
    print-color-adjust: exact;
}

.link > i {
    color: var(--gray-950);
    text-decoration: none;
}

hr {
    width: 100%;
    height: 4px;
    padding: 0;
    margin: 1.7em 0;
    overflow: hidden;
    background-color: #e7e7e7;
    border: none;
}

pre {
    background-color: var(--CODEBLOCK-BACKGROUND-COLOR);
    line-height: 1.8rem;
    position: relative;
    padding: 0;
    display: flex;
    min-height: 10px;
    flex-direction: column;
    position: relative;
    color: #202951;
    margin: 0 0 2rem 0;
    transition: 150ms ease-in-out;
    transition-property: border,box-shadow;
    border: 0;
    box-shadow: 0 4px 10px -4px rgb(0 30 43 / 30%);
    border-radius: 24px;
    font-size: 13px;
    white-space: pre-wrap;
    word-break: break-all;
    overflow-wrap: break-word;
}

.hidden {
    display: none;
}

kbd {
    background-color: var(--gray-200);
    border-radius: 3px;
    border: 1px solid var(--gray-500);
    border-bottom-width: 2px;
    color: var(--gray-900);
    display: inline-block;
    line-height: 1;
    padding: 2px 4px;
}

/* end Generic tags */

/* Images */


/* Images keep their natural size, scaled down to fit. No width: auto here, it
   would override the width and height attributes that let browsers reserve
   the space before an image has loaded. */
img {
    opacity: 1;
    transition: opacity 0.5s;
    height: auto !important;
    max-width: 100%;
    max-height: 100%;
    vertical-align: middle;
}

/* Raster images, mostly screenshots, often have a light background up to the
   edge. The border is outside the image size so that it isn't scaled. */
img.img-border {
    box-sizing: content-box;
    max-width: calc(100% - 2px);
    border: 1px solid var(--gray-300);
    border-radius: 8px;
}

/* SVGs without an intrinsic size fill the available width, like without
   width and height attributes */
img.img-fill {
    width: 100%;
}

.inline-img {
    /* The padding comes on top of the size from the width attribute */
    box-sizing: content-box;
    float: right;
    padding: 0 20px;
    margin-bottom: 20px;
}

.inline-icon {
    display: inline-block;
    width: var(--TYPOGRAPHY-BODY-TEXT);
    height: var(--TYPOGRAPHY-BODY-TEXT);
    margin: 0 .1rem;
    position: relative;
    top: .2rem;
}

.inline-icon svg {
    margin: 0;
    width: 100%;
    height: 100%;
}

/* end Images */

/* Tables */

table {
    max-width: 100%;
    border-collapse: collapse;
    font-size: .83333rem;
    margin: 2rem 0;
    border-radius: 0.50em;
    overflow: hidden;
}

table,
table>*>tr>* {
     border: 1px solid var(--gray-300);
     border-width: 1px;
}

thead {
    background-color: var(--gray-200);
}

th, td {
    vertical-align: top;
    text-align: left;
    padding: 0.5rem;
}

th {
    font-weight: 600;
}

tr {
    transition: 0.5s;
}

/* end Tables */

/* Content-specific utility classes */

table.fixed {
    table-layout: fixed;
}

table.fixed code {
    white-space: pre-wrap;
}

.columns-3 {
    -webkit-column-count: 3;
    -moz-column-count: 3;
    -ms-column-count: 3;
    -o-column-count: 3;
    column-count: 3;
    columns: 3;
}

/* end Content-specific utility classes */

/* Cards, shared by the home page and the overviews of sections (which are
   entirely clickable). As many columns as fit, cards are at least 240px wide. */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 16px;
    margin: 24px 0;
}

.card {
    padding: 20px;
    border: 1px solid #d4d4d4;
    border-radius: 6px;
    background: var(--neutral-white);
    color: var(--color-heading);
    transition: box-shadow 0.12s;
}

.card:hover,
.card-link:is(:hover, :focus-visible) > .card {
    box-shadow: 0 6px 18px rgb(15 23 43 / 0.07);
}

.cards > a.card-link {
    display: block;
    border-bottom: 0;
}

.card-link > .card {
    height: 100%;
}

svg a.card-link {
    cursor: pointer;
}

.card-title {
    margin: 0 0 8px;
    font-family: var(--font-content);
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: underline 2px var(--color-link);
    text-underline-offset: 4px;
}

.card-link:is(:hover, :focus-visible) .card-title {
    text-decoration-color: var(--color-link-hover);
}

.card-title:has(.card-icon) {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.card-icon {
    flex: none;
    width: 48px;
}

/* The arrow is a background in the padding of the last line, so that it
   can't wrap to a line of its own */
.card-title-text {
    padding-right: 22px;
    background: no-repeat right 0.2em / 16px 16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d293d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
}

.card-body {
    color: var(--color-muted);
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.45;
}

.card-body > p {
    margin: 0;
}
/* end Cards */

/* Tabs */

.tab-panel .tab-item {
    display: none;
    margin: 1rem;
}

.tab-panel .tab-item.selected {
    display: block;
}

.tab-panel {
    margin: 1rem 0;
    border: 2px solid var(--gray-300);
    border-radius: 7px;
}

.tab-nav {
    border-bottom: 2px solid var(--gray-300);
}

.tab-content {
    overflow: auto;
}

.tab-nav-button {
    margin-bottom: -2px;
    position: relative;
    max-width: 300px;
    background-color: transparent;
    border: 0;
    border-radius: 0;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition-duration: 0s;
    color: var(--color-teal-ink);
    padding: 12px 16px;
}

.tab-nav-button.selected {
    font-weight: 700;
}
.tab-nav-button.selected::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background-color: var(--color-teal-ink)
}

.tab-nav-button > span {
    pointer-events: none;
}

/* Inset, to clear the adjacent buttons */
.tab-nav-button:focus-visible {
    outline-offset: -2px;
}

/* Panels are focusable. The ring is outward: an inset one would be painted over by `pre`. */

/* Tabs end */

/* Steps */

.steps {
    margin: 1.5rem 0;
}

.steps .step {
    position: relative;
    display: flex;
    gap: 1rem;
    padding-bottom: 1.25rem;
}

/* Vertical connector line running through the indicators */
.steps .step::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--gray-300);
}

.steps .step:last-child {
    padding-bottom: .5rem;
}

/* A dot ends the line, centered on it */
.steps .step:last-child::after {
    content: "";
    position: absolute;
    left: 11px;
    bottom: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--neutral-white);
    border: 2px solid var(--gray-300);
}

.steps .step-indicator {
    position: relative;
    z-index: 1;
    flex: 0 0 32px;
}

.steps .step-number,
.steps .step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--neutral-white);
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
    font-family: var(--font-headlines);
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1;
}

.steps .step-icon svg {
    width: 16px;
    height: 16px;
    fill: currentcolor;
}

.steps .step-body {
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 3px;
}

.steps .step-title {
    margin: 0 0 0.5rem;
    font-family: var(--font-headlines);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--neutral-gray-darkest);
}

.steps .step-body > .step-title:first-child {
    padding-top: 2px;
}

.steps .step-content > :first-child {
    margin-top: 0;
}

.steps .step-content > :last-child {
    margin-bottom: 0;
}

/* Steps end */

/* Page layout

   The sidebar is fixed on the left (on narrow screens, the top bar opens it as
   an overlay). The article is a grid: breadcrumbs, page title, the aside with
   the table of contents, the content, previous/next links, and the page footer.
   From 1280px, the aside is a column on the right, otherwise it follows the
   page title. */

body .page-container {
    background: var(--CONTENT-BACKGROUND-COLOR);
}

.container-main {
    margin-left: var(--nav-width);
    padding: 0 var(--page-gutter);
    background-color: var(--CONTENT-BACKGROUND-COLOR);
}

/* Narrow screens: everything below each other in the document order */
article.default {
    display: flex;
    flex-direction: column;
    min-height: 600px;
    max-width: var(--content-width);
}

article.default > * {
    min-width: 0;
}

@media screen and (min-width: 1280px) {
    /* The content grows to its full width first, the aside gets the rest */
    article.default {
        display: grid;
        max-width: calc(var(--content-width) + var(--toc-gap) + var(--toc-max-width));
        grid-template-columns: minmax(0, var(--content-width)) minmax(var(--toc-min-width), 1fr);
        grid-template-areas:
            "crumbs aside"
            "notices aside"
            "header aside"
            "body aside"
            "pager aside";
        /* Without a flexible row, a tall aside would stretch the rows above the content */
        grid-template-rows: auto auto auto 1fr auto;
        column-gap: var(--toc-gap);
        padding-bottom: 48px;
    }

    article.default > .breadcrumbs { grid-area: crumbs; }
    article.default > .article-notices { grid-area: notices; }
    article.default > hgroup { grid-area: header; }
    article.default > .article-aside { grid-area: aside; }
    article.default > .article-body { grid-area: body; min-width: 0; }
    article.default > .pagination { grid-area: pager; }
    /* In the column, for the horizontal position of its fixed content. It has
       no height, so it doesn't add to the row or cover the table of contents. */
    article.default > .article-actions { grid-column: 2; grid-row: 1; align-self: start; }
}

@media screen and (max-width: 768px) {
    body .page-container {
        padding-top: var(--topbar-height);
    }

    .container-main {
        margin-left: 0;
        padding: 0 var(--page-gutter-narrow);
    }

    /* The navigation covers the content, which shouldn't scroll behind it */
    body:has(.main-nav.active) {
        overflow: hidden;
    }
}

/* Top bar, only on narrow screens (the sidebar has the logo otherwise) */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    display: flex;
    align-items: center;
    height: var(--topbar-height);
    padding: 0 16px 0 4px;
    border-bottom: 1px solid var(--gray-300);
    background: var(--HEADER-BACKGROUND-COLOR);
}

.header-block-left {
    display: flex;
    align-items: center;
}

.sidebar-toggle-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 0;
    background: none;
    color: var(--gray-950);
}

.sidebar-toggle-navigation > svg {
    font-size: 1.1rem;
}

.header-logo,
.header-logo:is(:hover, :focus, :visited) {
    display: block;
    border-bottom: 0;
}

/* By width, image heights are always auto */
.header-logo img {
    display: block;
    width: 154px;
}

/* Breadcrumbs */

.breadcrumbs > ol {
    margin: 24px 0 0;
    padding: 0;
}

.breadcrumbs > ol > li {
    padding: 0;
    display: inline;
}

.breadcrumbs > ol {
    font-size: 14px;
    line-height: 20px;
}

.breadcrumbs > ol > li > a {
    font-size: 14px;
    font-weight: 400;
    color: var(--color-muted);
    border-bottom: 1px solid transparent;
    background-color: transparent;
    transition: color 0.1s, border-color 0.1s;
}

.breadcrumbs > ol > li:last-child > a {
    color: var(--color-heading);
}

/* The theme forces text-decoration: none on links, so underline with a border */
.breadcrumbs > ol > li > a:is(:hover, :focus) {
    color: var(--color-heading);
    border-bottom: 1px solid var(--color-heading);
}

.breadcrumbs .breadcrumb-sep {
    font-size: 16px;
    margin: 0 8px;
    vertical-align: -3px;
    color: var(--color-muted);
}



/* Aside: table of contents, and the article actions (edit link, back to top)

   From 1280px, the aside is a column: the table of contents sticks to the
   top, the article actions to the bottom of the viewport. Below, the table of
   contents is a sticky bar with the current section, which opens the entries
   over the content, and the article actions follow the previous/next links.
   The article actions come last in the document order either way. */

/* Browsers keep the scroll position when content above the viewport changes
   size, like when the fonts swap after jumping to a heading, using the first
   element in view as the anchor. The aside spans the whole article but doesn't
   move with the content, so the anchor has to be in the content. */
.article-aside,
.toc {
    overflow-anchor: none;
}

.toc-title,
.toc-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    color: var(--color-heading);
}

/* "On this page" stays on one line, the current section is shortened */
.toc-header {
    white-space: nowrap;
}

.toc-current {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    color: var(--color-muted);
    font-weight: 400;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.toc-body a {
    display: block;
    padding: 4px 12px;
    color: var(--color-muted);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    overflow-wrap: break-word;
    transition: color 0.1s;
}

.toc-body a:hover {
    color: var(--color-heading);
}

/* Inside the scroll container, which would clip a ring outside the entry */
:root .toc-body a:focus-visible {
    outline-offset: -2px;
    border-radius: 4px;
}

/* Faux bold, as a heavier weight is wider and can change the wrapping */
.toc-body .is-active > a {
    color: var(--color-heading);
    text-shadow: 0.35px 0 0 currentColor;
}

.toc-body .level-3 > a { padding-left: 24px; }
.toc-body .level-4 > a { padding-left: 36px; }
.toc-body .level-5 > a { padding-left: 48px; }
.toc-body .level-6 > a { padding-left: 60px; }

/* Plain monospace text in the list, breaking long names only where needed */
.toc-body code {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font-size: 13px;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
    vertical-align: baseline;
}

/* Fades out the end of a scroll container if there is more to scroll to */
.scroll-fade {
    /* Entries focused by keyboard are scrolled clear of the fade */
    scroll-padding-bottom: 48px;
    mask-image: linear-gradient(to bottom, #000 calc(100% - 48px), transparent);
}

.back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 0;
    margin: 0;
    padding: 6px 12px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    background: var(--neutral-white);
    color: var(--color-heading);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: normal;
    transition: opacity 0.2s ease-out, visibility 0.2s, background-color 0.1s;
}

.back-to-top:hover {
    background: var(--gray-100);
}

/* Fades out while the page title is in view */
.back-to-top.hidden {
    display: inline-flex;
    opacity: 0;
    visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .back-to-top {
        transition: none;
    }
}

.article-actions-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

@media screen and (min-width: 1280px) {
    .article-aside {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    /* The table of contents, leaving room for the article actions */
    .aside-sticky {
        position: sticky;
        top: 0;
        display: flex;
        flex-direction: column;
        align-self: stretch;
        /* Leaves room for the edit link and back to top (90px) and a gap */
        max-height: calc(100vh - 118px);
    }

    .toc {
        min-height: 0;
        margin-top: 24px;
        overflow-y: auto;
        scrollbar-width: thin;
    }

    /* Edit link and back to top, always at the same place at the bottom of
       the viewport, whatever follows the article. Without left or right, it
       stays in the column. */
    .article-actions-inner {
        position: fixed;
        bottom: 24px;
    }

    /* Not collapsible in the column: a plain title instead of the summary,
       which would be a focusable button that does nothing */
    .toc-details > summary {
        display: none;
    }

    .toc-body {
        margin-top: 8px;
        /* The single line along the entries, the current one is marked on it */
        border-left: 1px solid var(--gray-300);
    }

    .toc-body a {
        margin-left: -1px;
        border-left: 2px solid transparent;
    }

    .toc-body .is-active > a {
        border-left-color: var(--color-link);
    }

}

@media screen and (max-width: 1279px) {
    /* The sticky bar needs the article as its containing block */
    .article-aside,
    .aside-sticky {
        display: contents;
    }

    /* The summary of the dropdown has the title */
    .toc-title {
        display: none;
    }

    .article-actions {
        margin-top: 16px;
    }

    .toc {
        position: sticky;
        top: 0;
        z-index: 20;
        margin-bottom: 16px;
        padding-top: 8px;
        padding-bottom: 10px;
    }

    /* Hide the (scrolling) content above and below the box */
    .toc::before {
        content: "";
        display: block;
        width: 100%;
        position: absolute;
        top: 0;
        bottom: 32px;
        background: var(--CONTENT-BACKGROUND-COLOR);
    }

    .toc:has(.toc-details[open])::before {
        bottom: 0;
    }

    .toc-details {
        position: relative;
        padding: 0 12px;
        border: 1px solid var(--gray-300);
        border-radius: 8px;
        background: var(--neutral-white);
    }

    .toc-details > summary {
        margin: 0;
        padding: 8px 0;
        font-size: 14px;
    }

    .toc-details > summary::before {
        align-self: center;
        margin: 0;
    }

    /* The ring follows the rounded box, not the summary inside its padding */
    :root .toc-details > summary:focus-visible {
        outline: none;
    }

    .toc-details:has(> summary:focus-visible) {
        outline: 2px solid var(--focus-ring);
        outline-offset: 2px;
    }

    /* The entries open over the content, scrolling inside the box */
    .toc-details > .toc-body {
        position: absolute;
        top: calc(100% + 4px);
        left: -1px;
        right: -1px;
        border: 1px solid var(--gray-300);
        border-radius: 8px;
        background: var(--neutral-white);
        box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    }

    .toc-entries {
        max-height: 60vh;
        overflow-y: auto;
        padding: 8px 0;
    }

    .back-to-top {
        position: fixed;
        right: calc(16px + 45px + 8px);
        bottom: 16px;
        z-index: 99;
        box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    }

    /* Room for the floating back to top button */
    article.default {
        padding-bottom: 72px;
    }

    /* Headings jumped to aren't hidden behind the sticky bar */
    html:has(.toc) {
        scroll-padding-top: calc(2rem + 56px);
    }
}

@media screen and (max-width: 768px) {
    .toc {
        top: var(--topbar-height);
    }

    html:has(.toc) {
        scroll-padding-top: calc(var(--topbar-height) + 72px);
    }
}

/* Article */

/* Not found page: centered in the column of the article on other pages */
article.notfound {
    max-width: var(--content-width);
    min-height: 600px;
    padding: 96px 0 48px;
    text-align: center;
}

article.notfound > h1 {
    margin: 0 0 24px;
    color: var(--color-link);
    font-family: var(--font-headlines);
    font-size: 1.75rem;
    line-height: 1.2;
}

@media screen and (max-width: 768px) {
    article.notfound {
        padding-top: 48px;
    }
}

hgroup > h1, .article-body > :is(h2, h3, h4, h5, h6) {
    color: var(--color-link);
    font-family: var(--font-headlines);
    font-weight: var(--TYPOGRAPHY-BOLD-TEXT);
    overflow-wrap: break-word;
}

/* Page title and lead paragraph like on the home page */
hgroup > h1 {
    margin: 32px 0 12px;
    color: var(--color-link);
    font-size: 2.25rem;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

@media screen and (max-width: 768px) {
    hgroup > h1 {
        margin-top: 24px;
        font-size: 1.75rem;
    }
}

.article-body > h2,
.article-body > h2 > code {
    font-size: var(--TYPOGRAPHY-H2-SIZE);
    margin-top: calc(var(--TYPOGRAPHY-H2-SIZE) + 1rem);
    line-height: var(--TYPOGRAPHY-H2-HEIGHT);
}

@media screen and (max-width: 768px) {
    .article-body > h2,
    .article-body > h2 > code {
        font-size: var(--TYPOGRAPHY-H2-SIZE-SMALL);
    }
}

.article-body > h3,
.article-body > h3 > code {
    font-size: var(--TYPOGRAPHY-H3-SIZE);
    margin-top: calc(var(--TYPOGRAPHY-H3-SIZE) + 1rem);
    line-height: var(--TYPOGRAPHY-H3-HEIGHT);
}
@media screen and (max-width: 768px) {
    .article-body > h3,
    .article-body > h3 > code {
        font-size: var(--TYPOGRAPHY-H3-SIZE-SMALL);
    }
}

.article-body > h4,
.article-body > h4 > code {
    font-size: var(--TYPOGRAPHY-H4-SIZE);
    margin-top: calc(var(--TYPOGRAPHY-H4-SIZE) + 1rem);
    line-height: var(--TYPOGRAPHY-H4-HEIGHT);
}

@media screen and (max-width: 768px) {
    .article-body > h4,
    .article-body > h4 > code {
        font-size: var(--TYPOGRAPHY-H4-SIZE-SMALL);
    }
}

.article-body > h5,
.article-body > h5 > code {
    font-size: var(--TYPOGRAPHY-H5-SIZE);
    margin-top: calc(var(--TYPOGRAPHY-H5-SIZE) + 1rem);
    line-height: var(--TYPOGRAPHY-H5-HEIGHT);
}

@media screen and (max-width: 768px) {
    .article-body > h5,
    .article-body > h5 > code {
        font-size: var(--TYPOGRAPHY-H5-SIZE-SMALL);
    }
}

.article-body > h6,
.article-body > h6 > code {
    font-size: var(--TYPOGRAPHY-H6-SIZE);
    margin-top: calc(var(--TYPOGRAPHY-H6-SIZE) + 1rem);
    line-height: var(--TYPOGRAPHY-H6-HEIGHT);
}

@media screen and (max-width: 768px) {
    .article-body > h6,
    .article-body > h6 > code {
        font-size: var(--TYPOGRAPHY-H6-SIZE-SMALL);
    }
}

/* Plain monospace text in headings: the border and background of inline code
   overlapped the previous line where a heading wraps */
hgroup > h1 > code,
.article-body > :is(h2, h3, h4, h5, h6) > code {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    /* A slightly lighter teal marks it as code without a box */
    color: var(--color-link-hover);
    font-size: 0.9em;
    white-space: normal;
    vertical-align: baseline;
}

/* Marks the heading or element jumped to, held briefly so that it is noticed */
@keyframes target-highlight {
    0%, 40% {
        background-color: var(--color-lime-tint);
    }
    100% {
        background-color: transparent;
    }
}

.docs-target-flash {
    animation: target-highlight 1.2s ease-out;
}

@media (prefers-reduced-motion: reduce) {
    .docs-target-flash {
        animation: none;
    }
}

article ul li {
    margin-left: .75rem;
    line-height: 25px;
}

.lead {
    margin: 0 0 24px;
    color: var(--color-muted);
    font-family: var(--font-content);
    font-size: 1.0625rem;
    font-weight: 400;
    line-height: 1.5;
}

/* Copies the link to the heading. Absolutely positioned after the last word,
   so that it never wraps to a line of its own. */
.header-link {
    position: absolute;
    display: inline-block;
    margin-left: 0.2em;
    /* Its own line box matches the heading's (last) line, see .header-link .icon */
    line-height: inherit;
    font-size: inherit;
    color: var(--color-link-hover);
    opacity: 0;
    transition: opacity 0.15s;
}

:is(h2, h3, h4, h5, h6):hover .header-link,
.header-link.tooltipped {
    opacity: 1;
}

/* Centered on the x-height of the heading */
.header-link .icon {
    font-size: 0.7em;
    vertical-align: middle;
}

.header-link.tooltipped .icon {
    --icon: var(--icon-check);
}

/* Reveal on focus, otherwise the ring would surround an invisible icon */
.header-link:focus-visible {
    opacity: 1;
}

/* Without hover, a faint icon shows that headings can be linked */
@media (hover: none) {
    .header-link {
        opacity: 0.4;
    }
}

.openapi-property-link {
    font-size: 12px;
}

/* Codeblocks */
pre {
    border-radius: 7px;
    background: var(--gray-100);
    box-shadow: none;
    position: relative;
}

code, p code {
    font-size: 14px;
    overflow: auto;
    word-wrap: break-word;
    margin: 0;
    padding: 2px 3px;
    word-break: break-word;
    white-space: pre-wrap;
    border: 1px solid #c6c6c6;
    border-radius: 5px;
    background: var(--gray-100);
    box-shadow: none;
    color: var(--gray-950);
    vertical-align: middle;
}

li > code {
    white-space: pre-wrap;
}

/* Outline buttons in code blocks (copy, show more) */
.copy-to-clipboard-button,
pre > .code-show-more {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 0;
    margin: 0;
    padding: 4px 10px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    background: var(--neutral-white);
    color: var(--color-heading);
    font-family: var(--font-content);
    font-size: 13px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: normal;
    transition-property: opacity, background-color;
    transition-duration: 0.1s;
}

.copy-to-clipboard-button:hover,
pre > .code-show-more:hover {
    background: var(--gray-100);
}

.copy-to-clipboard-button {
    top: 8px;
    right: 8px;
    /* Invisible rather than display:none, which cannot be focused */
    opacity: 0;
}

pre:hover > .copy-to-clipboard-button,
.copy-to-clipboard-button:focus-visible,
.copy-to-clipboard-button.tooltipped {
    opacity: 1;
}

.copy-to-clipboard-button::before {
    --icon: var(--icon-copy);
}

.copy-to-clipboard-button.tooltipped::before {
    --icon: var(--icon-check);
}

.copy-to-clipboard-button::after {
    content: "Copy";
}

.copy-to-clipboard-button.tooltipped::after {
    content: "Copied";
}

pre > code {
    margin: 0;
    border: 0;
    background: transparent;
    word-break: break-word;
    white-space: break-spaces;
    color: var(--CODEBLOCK-TEXT-COLOR);
    font-family: var(--font-code);
    padding: 28px;
    font-size: 1rem;
}

.code-long {
    max-height: calc(15 * 1.8rem);
    /* clip, not hidden: hidden is a scroll container and so gets a useless tab stop */
    overflow: clip;
}

.code-long.expanded {
    max-height: unset;
}

pre > .code-show-more {
    bottom: 8px;
    right: 8px;
}

pre > .code-show-more::before {
    --icon: var(--icon-chevron-down);
}

pre > .code-show-more.expanded::before {
    --icon: var(--icon-chevron-up);
}

pre > .code-show-more::after {
    content: "Show more";
}

pre > .code-show-more.expanded::after {
    content: "Show less";
}
/* end Codeblocks */






ol > li {
    line-height: 1.7rem;
}


/* Hints */

div.box {
    border-radius: 7px;
    margin-bottom: 1rem;
    margin-top: 1rem;
    border: 3px solid black;
}

div.box.info {
    border-color: var(--state-info-dark);
}

div.box.warning,
div.box.security {
    border-color: var(--state-warning-dark);
}

div.box.danger {
    border-color: var(--state-danger);
}

div.box.tip {
    border-color: var(--state-success-dark);
}

div.box-content {
    display: flex;
    align-items: center;
}

div.box.info > .box-content-container > .box-content > i {
    color: var(--state-info-dark);
    font-size: 1.2em;
}

div.box.warning > .box-content-container > .box-content > i,
div.box.security > .box-content-container > .box-content > i {
    color: var(--state-warning-dark);
    font-size: 1.2em;
}

div.box.danger > .box-content-container > .box-content > i {
    color: var(--state-danger);
    font-size: 1.2em;
}

div.box.tip > .box-content-container > .box-content > i {
    color: var(--state-success-dark);
    font-size: 1.2em;
}

div > .box-content-container {
    padding: 0 0 0 12px;
}

.box-text {
    padding: 24px;
}

.box-text > .visually-hidden + * {
    margin-top: 0;
}

.box-text > :last-child {
    margin-bottom: 0;
}

/* Hide text visually but keep it available to screen readers */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Same spacing as the paragraph it used to be, except in front of list item text */
.labels {
    margin: 1rem 0;
}

li > .labels {
    margin: 0.2rem 0;
}

.label {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    border-radius: 0.25rem;
    background: var(--color-lime);
    color: #0d0c0c;
    line-height: 21px;
    font-size: 1em;
    font-weight: bold;
    white-space: nowrap;
}

.endpoint-group {
    display: flex;
    align-items: baseline;
    position: relative;
}
   
.clipboard-copy {
    color: var(--neutral-white);
    background: var(--color-teal-ink);
    border-radius: .25rem;
    margin: 0;
    margin-left: auto;
    padding: .5rem;
    opacity: 0;
}

.clipboard-copy::before {
    --icon: var(--icon-copy);
}

.clipboard-copy.tooltipped::before {
    --icon: var(--icon-check);
}

.clipboard-copy:hover {
    background: var(--color-link);
}

.endpoint-group:hover .clipboard-copy,
.clipboard-copy:focus-visible {
    opacity: 1;
}

/* Without a mouse to hover, the copy buttons are always shown (fully opaque,
   semi-transparent buttons look disabled) */
@media (hover: none) {
    .copy-to-clipboard-button {
        opacity: 1;
    }

    .clipboard-copy {
        opacity: 1;
    }
}

.endpoint-method {
    padding: .1rem .6rem;
    border-radius: .25rem;
    background: var(--neutral-gray);
    color: rgba(255, 255, 255, 0.9);
    font-size: .8rem;
    font-weight: 500;
    margin-right: .5rem;
}

.endpoint-method-head {
    background: var(--color-plum);
}

.endpoint-method-get {
    background: var(--state-info-dark);
}

.endpoint-method-post {
    background: var(--state-success-dark);
}

.endpoint-method-patch {
    background: var(--color-seaglass);
}

.endpoint-method-put {
    background: var(--state-warning-dark);
}

.endpoint-method-delete {
    background: var(--state-danger-dark);
}

.endpoint-url {
    font-family: var(--font-code);
    word-wrap: break-word;
    color: var(--neutral-black);
    min-width: 0;
    margin-right: 1rem;
}

.endpoint-placeholder, .endpoint-param {
    background: var(--neutral-gray-lighter);
    border-radius: .25rem;
}

blockquote {
    margin: 0;
    margin-bottom: 0.85em;
    padding: 0 15px;
    color: #858585;
    border-left: 4px solid #e5e5e5;
}

blockquote p {
    font-size: inherit;
    line-height: inherit;
    font-weight: inherit;
}


/* Details shortcode and OpenAPI properties */

summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 1rem;
}

summary:hover, summary:focus-visible {
    color: var(--color-link);
}

summary::-webkit-details-marker {
    display: none;
}

summary::marker {
    display: none;
}

details > summary::before {
    --icon: var(--icon-chevron-right);
    margin-right: 0.5rem;
    vertical-align: middle;
    font-size: 14px;
    color: var(--color-muted);
    transition: rotate 0.15s ease-out;
}

details[open] > summary::before {
    rotate: 90deg;
}

@media (prefers-reduced-motion: reduce) {
    details > summary::before {
        transition: none;
    }
}

/* */



/* Openapi */
.openapi {
    --border-radius: 2px;
    --layout: row;
    --scroll-bar-width: 8px;
    --nav-item-padding: 7px 16px 7px 10px;
    --resp-area-height: 400px;
    --font-size-mono: 13px;
    --font-size-regular: 14px;
    --dialog-z-index: 1000;
    --focus-shadow: 0 0 0 1px transparent, 0 0 0 3px rgba(6, 131, 138, 0.4);

    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    overflow: clip;
    overflow-clip-margin: 6px;
    letter-spacing: normal;
    color: var(--fg);
    background-color: var(--bg);
    font-family: var(--font-regular);
}

.endpoint {
    text-align: left;
    direction: ltr;
    padding: 8px 0;
    color: var(--fg3);
    font-size: 1rem;
}

.regular-font {
    font-family: var(--font-regular);
}

.bold-text {
    font-weight: bold;
}

.openapi-description {
    margin-top: 1em;
    margin-bottom: 2em;
}

.openapi-table {
    border: 1 solid #edf2f7;
    border-width: 3px;
    margin-top: 1rem;
    margin-left: 0;
}

.openapi-table > li {
    list-style: none;
    margin-top: 1rem;
    margin-bottom: 1rem;
    margin-left: 0;
}

.openapi-property-name {
    color: #3c4257;
    font-size: 14px;
    margin-right: 4px;
    border: 1px solid #c6c6c6;
    border-radius: 5px;
    padding: 3px;
}

.openapi-property-label {
    color: #3c4257;
    font-size: 14px;
    font-weight: bold;
    margin-right: 4px;
}

.openapi-property-type {
    color: #8792a2;
    font-size: 13px;
    /* font-size: var(--font12); */
    /* margin: 0; */
    margin-right: 4px;
}

.openapi-content-type {
    border: 1px solid #d0dadc;
    padding: 3px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 400;
}

.openapi-table-title {
    font-family: var(--font-regular);
    font-size: calc(var(--font-size-small) + 4px);
    font-weight: bold;
    margin-bottom: 8px;
    text-align: left;
    color: var(--H2-COLOR);
}

.openapi-prop > a > .icon-link {
    opacity: 0;
}
.openapi-prop:is(:hover, :focus) > a > .icon-link,
.openapi-prop > a:focus > .icon-link {
    opacity: 1;
}

/* Without hover: no invisible tap target on collapsed properties (it copied a
   link and changed the URL by accident), shown faintly while expanded like the
   heading links. Tapping focuses the summary and sticks :hover, which only
   counts if focused with the keyboard. */
@media (hover: none) {
    details:not([open]) > .openapi-prop > .openapi-property-link {
        pointer-events: none;
    }

    details:not([open]) > .openapi-prop:not(:focus-visible, :has(a:focus-visible)) > a > .icon-link {
        opacity: 0;
    }

    details[open] > .openapi-prop:not(:focus-visible, :has(a:focus-visible)) > a > .icon-link {
        opacity: 0.4;
    }
}

.openapi-prop > code,
.openapi-prop > span {
    pointer-events: none;
}

.openapi-prop-content {
    margin: 10px 0 10px 0;
    padding: 0 10px 0 10px;
    transition: 150ms ease-in-out;
    transition-property: border,box-shadow;
    border: 1px solid #E8EDEB;
    box-shadow: 0 4px 10px -7px rgb(0 30 43 / 30%);
    border-radius: 4px;
}

.openapi-table-row.collapsed > *:nth-child(n+3){
    display: none;
}

.openapi-table-row > code {
    font-size: 13px;
}

.response-codes {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    margin: 0;
}

.response-code {
    border-radius: var(--border-radius);
    font-weight: 600;
    display: inline-block;
    padding: 6px 16px;
    font-size: var(--font-size-small);
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    background-color: transparent;
    transition: background-color 0.2s ease 0s;
    user-select: none;
    cursor: pointer;
    box-shadow: rgb(0 0 0 / 12%) 0 1px 3px, rgb(0 0 0 / 24%) 0 1px 2px;
}

.response-code.clicked {
    background-color: #dddfd9;
}

.no-border {
    margin-right: 0;
    border: 0;
    border-radius: 0;
    padding: 0;
}

/* */

/* Footer */

/* Previous and next page. Both start at zero width and grow equally, but each
   stops at the width of its label, so a short label leaves the rest of the row to
   the other one before its text wraps. The links stack if the row is too narrow for
   two labels side by side. */

nav.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 1rem;
    margin-top: 48px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-300);
}

/* Side by side, sharing the width equally, until both labels would be squeezed
   below 8rem. Only then the links stack. A short label counts with its own
   width, not 8rem, so it doesn't make them stack early. */
nav.pagination > span {
    display: flex;
    flex: 1 1 8rem;
    max-width: max-content;
}

nav.pagination > span:not(:has(a)) {
    display: none;
}

nav.pagination > .next {
    justify-content: flex-end;
    margin-left: auto;
    text-align: right;
}

.nav-prev,
.nav-next {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 0;
}

.nav-prev {
    padding-right: 1rem;
}

.nav-next {
    padding-left: 1rem;
}

.nav.link,
.nav.link > p {
    border-bottom: 0;
}

.nav.link > p {
    margin: 0;
}

/* Centered on the first line of the title */
.nav.link > i {
    margin-top: 4px;
}

.nav.link:hover > p {
    text-decoration: underline !important;
}

/* Edit link, in the article actions */

.edit-page,
.edit-page:is(:visited, :hover, :focus) {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-bottom: 0;
    color: var(--color-muted);
    font-size: 14px;
    font-weight: 500;
    /* Level with the breadcrumbs */
    line-height: 20px;
}

.edit-page:hover {
    color: var(--color-heading);
}

/* Consent preferences */
.cky-btn-revisit-wrapper {
    bottom: 10px !important;
    right: 10px !important;
    top: unset !important;
    left: unset !important;
    z-index: 9997 !important;
}

/* Algolia */
.DocSearch.DocSearch-Container {
    z-index: 9999;
}
.DocSearch.DocSearch-Container input {
    appearance: none;
    background: #0000;
    border: 0;
    color: var(--docsearch-text-color);
    flex: 1;
    font-size: 1.2em;
    height: 100%;
    outline: 0;
    padding: 0 0 0 8px;
    width: 80%;
    margin: 0;
}

.DocSearch.DocSearch-Container input:focus {
    outline: 0;
    box-shadow: none;
}

.notfound-404 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
    color: var(--color-heading);
    font-family: var(--font-headlines);
    font-size: clamp(6rem, 20vw, 10rem);
    font-weight: 700;
    line-height: 1;
}

.notfound-4 {
    margin: 0;
}

/* By width, image heights are always auto */
.notfound-image {
    display: block;
    width: 0.9em;
}

.ag-banner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 20px 0;
    border-radius: 4px;
    margin-bottom: 36px;
    background: linear-gradient(40deg, var(--color-teal-ink) 50%, var(--color-link));
    background-position: center;
    color: var(--gray-50)
}

.ag-banner .title {
    font-size: 1rem;
    font-weight: 600;
    padding-bottom: 4px;
}

.ag-banner .ag-info {
    padding-left: 24px;
    padding-bottom: 4px;
}
.ag-banner a {
    margin-left: 24px;
    font-weight: bold;
    color: white;
}

.ag-banner a:hover{
    color: white;
}
.ag-banner .logo {
    height: 36px !important;
    width: 200px !important;
}

.block {
    display: block;
}

/* Sidebar: logo, search, main navigation, and footer link, like the sidebar of
   the web UI. It replaces the top bar on desktop; on mobile the top bar stays
   and the hamburger opens the sidebar as an overlay. */

.sidebar {
    --sidebar-text: #F8FAFC;
    --sidebar-muted: #90A1B9;
    --sidebar-code: #CAD5E2;
    --sidebar-hover: #06838A;
    --sidebar-lime: #BEFE99;
    --sidebar-ink: #014654;
    --sidebar-line: #ffffff19;
    --sidebar-background: linear-gradient(180deg, #014654 0%, #012D3A 100%);
    --focus-ring: rgb(190 254 153 / 0.64);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--nav-width);
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 var(--nav-padding) 8px;
    background: var(--sidebar-background);
    color: var(--sidebar-text);
    font-size: 14px;
    z-index: 9999;
    transition: transform 0.2s ease-in-out;
}

.sidebar-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex: none;
    height: 64px;
    padding-top: 16px;
}

.sidebar-logo,
.sidebar-logo:is(:hover, :focus, :visited) {
    border-bottom: 0;
    display: block;
    /* For the alt text */
    color: var(--sidebar-text);
}

/* By width, image heights are always auto (32px high) */
.sidebar-logo img {
    display: block;
    width: 123px;
}

.sidebar-collapse,
.sidebar-expand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-height: 0;
    margin: 2px 0 0;
    padding: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--sidebar-text, #F8FAFC);
    letter-spacing: normal;
    transition: none;
}

.sidebar-collapse:hover {
    background: var(--sidebar-hover);
}

/* Search (DocSearch renders its button into .docsearch) */
.sidebar .docsearch {
    flex: none;
    /* Reserve the button's height so the nav doesn't shift once it renders */
    min-height: 40px;
}

.sidebar .DocSearch-Button {
    width: 100%;
    letter-spacing: normal;
    font-weight: 400;
    height: 40px;
    margin: 0;
    padding: 0 8px 0 10px;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
    box-shadow: none;
}

.sidebar .DocSearch-Button:is(:hover, :focus) {
    background: rgba(255, 255, 255, 0.09);
    box-shadow: none;
}

/* DocSearch removes the outline on focus */
.sidebar .DocSearch-Button:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

/* Match the placeholder colour; DocSearch's own .DocSearch-Button rules
   would otherwise make the icon near-black (and change it on hover) */
.sidebar .DocSearch-Button .DocSearch-Search-Icon,
.sidebar .DocSearch-Button:is(:hover, :focus, :active) .DocSearch-Search-Icon {
    width: 16px;
    height: 16px;
    color: var(--sidebar-muted);
}

.sidebar .DocSearch-Button:is(:hover, :focus, :active) .DocSearch-Button-Placeholder {
    color: var(--sidebar-muted);
}

.sidebar .DocSearch-Button-Placeholder {
    display: block;
    padding-left: 8px;
    font-size: 0.9375rem;
    color: var(--sidebar-muted);
}

.sidebar .DocSearch-Button-Keys {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    padding: 3px 7px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.2);
}

.sidebar .DocSearch-Button-Key {
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    top: 0;
    border: 0;
    background: none;
    box-shadow: none;
    color: var(--sidebar-lime);
    font-family: var(--font-content), -apple-system, system-ui, sans-serif;
    font-size: 0.875rem;
    line-height: 1.2;
}

/* The ⌘ glyph sits small next to the letter at the same size */
.sidebar .DocSearch-Button-Key:first-child {
    font-size: 1rem;
}

/* Navigation */

.main-nav {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    /* Room for the scrollbar, so that it doesn't cover the entries */
    scrollbar-gutter: stable;
    /* Also clear of the scrollbar when it grows on hover */
    padding-right: 5px;
    scrollbar-width: thin;
    scrollbar-color: rgb(248 250 252 / 0.5) transparent;
    user-select: none;
}

.main-nav-ol,
.nav-ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Nested entries, with a guide line like the sub-menus of the web UI */
.nav-ol {
    margin-left: 14px;
    padding: 2px 0 2px 9px;
    border-left: 1px solid var(--sidebar-line);
}

.nav-section-header {
    display: flex;
    border-radius: 8px;
}

.link-nav,
.link-nav:is(:hover, :visited, :focus) {
    display: block;
    flex: 1;
    min-width: 0;
    padding: 6px 8px;
    border-radius: 8px;
    border-bottom: 0;
    color: var(--sidebar-text);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    text-wrap-style: balance;
    /* Instant like in the web UI */
    transition: none;
}

/* Nested entries are a little lower (28px) */
.nav-ol .link-nav,
.nav-ol .link-nav:is(:hover, :visited, :focus) {
    padding-top: 4px;
    padding-bottom: 4px;
}

.nav-section-header > .link-nav {
    border-radius: 8px 0 0 8px;
}

.expand-nav {
    flex: none;
    width: 32px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border-radius: 0 8px 8px 0;
    background: transparent;
    color: inherit;
    transition: none;
}

.expand-nav::after {
    --icon: var(--icon-chevron-right);
    display: block;
    margin: auto;
    font-size: 16px;
    transition: rotate 0.15s;
}

.nav-section.expanded > .nav-section-header > .expand-nav::after,
.nav-section.expanded > .nav-section-sticky > .nav-section-header > .expand-nav::after {
    rotate: 90deg;
}

@media (prefers-reduced-motion: reduce) {
    .expand-nav::after {
        transition: none;
    }
}

/* Collapsed sections hide their entries, the ArangoDB section shows the
   entries of the selected version */
.nav-section:not(.expanded) > .nav-ol,
.nav-section:not(.expanded) .version-selector,
.nav-section > .nav-ol[data-version]:not(.selected-version) {
    display: none;
}

/* A row highlights as a whole on hover */
.nav-section-header:hover,
.nav-leaf > .link-nav:hover {
    background-color: var(--sidebar-hover);
}

/* Current page: lime row, a section's chevron joins it */
.nav-section-header:has(> .link-nav-active),
.nav-leaf > .link-nav-active,
.nav-leaf > .link-nav-active:hover {
    background-color: var(--sidebar-lime);
}

.link-nav-active,
.link-nav-active:is(:hover, :visited, :focus),
.nav-section-header:has(> .link-nav-active) > .expand-nav {
    color: var(--sidebar-ink);
    font-weight: 500;
}

/* Sections containing the current page (or the closest one for pages without an entry) */
.nav-section:is(:has(.link-nav-active), .nav-section-current) > .nav-section-header > .link-nav:not(.link-nav-active),
.nav-section:is(:has(.link-nav-active), .nav-section-current) > .nav-section-sticky > .nav-section-header > .link-nav:not(.link-nav-active) {
    color: var(--sidebar-lime);
}

.link-nav:focus-visible,
.expand-nav:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: -2px;
}

/* The lime ring would vanish on the lime row of the current page, so it is
   inverted to the row's dark teal text color there, with lime on both sides
   (at the edge, it would blend into the teal sidebar) */
.link-nav-active:focus-visible,
.nav-section-header:has(> .link-nav-active) > .expand-nav:focus-visible {
    outline-color: var(--sidebar-ink);
    outline-offset: -4px;
}

/* Code is in a lighter color, except on the highlighted rows */
.main-nav code {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--sidebar-code);
    font-size: 13px;
}

:is(.nav-section-header:hover, .link-nav:hover, .link-nav-active) code {
    color: inherit;
}

/* Non-clickable group labels */
.nav-group-label {
    display: flex;
    align-items: center;
    min-height: 32px;
    margin-top: 8px;
    padding: 0;
    color: rgb(248 250 252 / 0.7);
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    list-style: none;
}

/*
.nav-group-label {
    margin: .9rem 0 .15rem;
    padding: 0 .4rem;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--gray-500);
    list-style: none;
}
*/

.nav-ol > .nav-group-label:first-child {
    margin-top: 0;
}

/* Loading placeholder, like the Skeleton of the web UI: muted bars that pulse.
   Only the list's opacity is animated, a single compositor-only animation */
.main-nav-ol.shimmer {
    animation: 2s cubic-bezier(0.4, 0, 0.6, 1) 0.5s infinite shimmer;
}

.main-nav-ol.shimmer > .nav-section > .link-nav {
    height: 16px;
    margin: 8px;
    padding: 0;
    border-radius: 6px;
    background: var(--sidebar-line);
}

.main-nav-ol.shimmer > .nav-section:nth-child(3n+1) > .link-nav { width: 70%; }
.main-nav-ol.shimmer > .nav-section:nth-child(3n+2) > .link-nav { width: 55%; }
.main-nav-ol.shimmer > .nav-section:nth-child(3n) > .link-nav { width: 85%; }

/* No animation if the sidebar is slid out or motion is unwanted */
body.sidebar-collapsed .main-nav-ol.shimmer {
    animation: none;
}

@media (prefers-reduced-motion: reduce) {
    .main-nav-ol.shimmer {
        animation: none;
    }
}

@keyframes shimmer {
    50% {
        opacity: 0.5;
    }
}

/* The ArangoDB section and the version selector stick to the top together.
   The background covers the entries scrolling behind it and is sized and
   shifted to the sidebar's box by theme.js to match the gradient behind it
   (background-attachment: fixed goes out of sync on mobile). It sticks 1px
   higher with 1px more background, so that no entry can shine through above
   it when its edge and the scroll container's round to different device
   pixels (zoomed in or with fractional device pixel ratios). */
.nav-section-sticky {
    position: sticky;
    top: -1px;
    z-index: 2;
    padding-top: 1px;
    padding-bottom: 4px;
    background: var(--sidebar-background) no-repeat;
    background-size: 100% var(--sidebar-height, 100vh);
    background-position: 0 calc(-1 * var(--sticky-offset, 0px));
}

/* Version selector, like the database selector of the web UI */
.version-selector {
    position: relative;
    margin: 4px 0 0 23px;
}

/* Continues the guide line of the entries below */
.version-selector::before {
    content: "";
    position: absolute;
    top: -4px;
    bottom: -4px;
    left: -9px;
    border-left: 1px solid var(--sidebar-line);
}

.version-selector-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-height: 0;
    height: 36px;
    margin: 0;
    padding: 0 8px 0 12px;
    border: 1px solid rgb(248 250 252 / 0.15);
    border-radius: 8px;
    background: rgb(248 250 252 / 0.05);
    color: var(--sidebar-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: normal;
    transition: none;
}

.version-selector-button:hover {
    background: rgb(248 250 252 / 0.1);
}

.version-selector-button[aria-expanded="true"] {
    outline: 3px solid var(--focus-ring);
    outline-offset: 0;
}

.version-selector-button .icon {
    color: var(--sidebar-muted);
}

.version-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 3;
    margin: 0;
    padding: 6px;
    list-style: none;
    border: 1px solid var(--sidebar-line);
    border-radius: 10px;
    background: var(--sidebar-ink);
    box-shadow: 0 8px 24px rgb(0 0 0 / 0.45);
}

.version-menu > li {
    margin: 0;
    line-height: 20px;
}

.version-menu-item,
.version-menu-item:is(:hover, :visited, :focus) {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 32px;
    padding: 6px 28px 6px 8px;
    border-bottom: 0;
    border-radius: 8px;
    color: var(--sidebar-text);
    font-weight: 400;
    transition: none;
}

.version-menu-item:hover,
.version-menu-item:focus-visible {
    background: var(--sidebar-hover);
}

.version-menu-item[aria-current] {
    background: var(--sidebar-lime);
    color: var(--sidebar-ink);
    font-weight: 500;
}

.version-alias {
    opacity: 0.75;
}

.version-menu-item .icon {
    position: absolute;
    right: 8px;
    display: none;
}

.version-menu-item[aria-current] .icon {
    display: inline-block;
}

.sidebar-footer,
.sidebar-footer:is(:hover, :visited, :focus) {
    flex: none;
    display: flex;
    align-items: center;
    gap: 6px;
    /* Aligned with the text of the navigation entries, below a separator like in the web UI */
    margin: 0 calc(-1 * var(--nav-padding));
    padding: 12px calc(0.75rem + var(--nav-padding)) 0;
    border-top: 1px solid #ffffff19;
    font-weight: 600;
    color: var(--sidebar-lime);
}

.sidebar-footer:hover {
    text-decoration: underline;
}

/* Collapsed sidebar (desktop): slide it out and give the content the full width */
.sidebar-expand {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    /* Below the sidebar so that its slide-out animation reveals the button */
    z-index: 9998;
    background: #014654;
}

.sidebar-expand:hover {
    background: var(--sidebar-hover, #06838A);
}

@media screen and (min-width: 769px) {
    .header {
        display: none;
    }

    html {
        scroll-padding-top: 2rem;
    }

    .container-main {
        transition: margin-left 0.2s ease-in-out, padding-left 0.2s ease-in-out;
    }

    /* Hidden once it has slid out, so that its entries can't be focused,
       but shown at once to slide in */
    .sidebar {
        transition: transform 0.2s ease-in-out, visibility 0s;
    }

    body.sidebar-collapsed .sidebar {
        transform: translateX(-100%);
        visibility: hidden;
        transition: transform 0.2s ease-in-out, visibility 0s 0.2s;
    }

    /* Room for the expand button */
    body.sidebar-collapsed .container-main {
        margin-left: 0;
        padding-left: max(64px, var(--page-gutter));
    }

    /* Hidden only once the sliding-in sidebar covers it */
    .sidebar-expand {
        display: flex;
        visibility: hidden;
        transition: visibility 0s 0.2s;
    }

    body.sidebar-collapsed .sidebar-expand {
        visibility: visible;
        transition-delay: 0s;
    }
}

@media screen and (max-width: 768px) {
    .sidebar {
        display: none;
        top: var(--topbar-height);
        width: 100%;
        /* The logo row with its spacing is in the top bar instead */
        padding-top: 8px;
    }

    .sidebar:has(.main-nav.active) {
        display: flex;
    }

    .sidebar .main-nav {
        display: block;
    }

    /* The top bar already shows the logo on mobile */
    .sidebar-top {
        display: none;
    }
}

.none {
    display: none;
}

.svg-figure,
.diagram-figure {
    margin: 2rem 0;
    text-align: center;
}

.svg-figure figcaption,
.diagram-figure figcaption {
    font-size: 0.9em;
    color: var(--gray-700);
    margin-top: 0.5rem;
    text-wrap: balance;
    font-style: italic;
}

.diagram-figure img {
    max-width: 100%;
    height: auto;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

/* SVGs inlined with the embed-svg shortcode keep their width and height
   attributes as natural size but shrink to fit narrower columns */
.svg-figure > svg {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

[data-zoomable] {
    cursor: zoom-in;
    user-select: none;
    -webkit-user-select: none;
}

[data-zoomable]:focus-visible {
    outline: 2px solid var(--color-link);
    outline-offset: 2px;
}

.image-zoom-hint {
    position: absolute;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0.3rem 0.6rem;
    transform: translateX(-100%);
    border: none;
    border-radius: 0.375rem;
    background: rgba(17, 24, 39, 0.75);
    color: #fff;
    font-size: 0.8rem;
    line-height: 1;
    cursor: zoom-in;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
}

.image-zoom-hint svg,
.image-viewer-toolbar svg {
    flex-shrink: 0;
}

.image-zoom-hint svg {
    width: 14px;
    height: 14px;
}

.image-zoom-hint.visible {
    opacity: 1;
    pointer-events: auto;
}

@media (hover: none) {
    .image-zoom-hint {
        display: none;
    }
}

/* Only without hover, see ZOOM_BADGE_QUERY */
.image-zoom-badge {
    position: absolute;
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    margin: 0;
    padding: 0;
    transform: translateX(-100%);
    border: none;
    border-radius: 0.375rem;
    background: rgba(17, 24, 39, 0.6);
    color: #fff;
    -webkit-tap-highlight-color: transparent;
}

@media (hover: none) {
    .image-zoom-badge {
        display: flex;
    }
}

.image-zoom-badge[hidden] {
    display: none;
}

.image-zoom-badge:active {
    background: rgba(17, 24, 39, 0.85);
}

.image-zoom-badge svg {
    width: 18px;
    height: 18px;
    margin: 0;
}

body.image-viewer-open {
    overflow: hidden;
}

.image-viewer {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(17, 24, 39, 0.92);
    outline: none;
}

.image-viewer[hidden] {
    display: none;
}

.image-viewer-stage {
    position: absolute;
    inset: 0;
    overflow: hidden;
    touch-action: none;
    cursor: zoom-out;
}

.image-viewer-content {
    position: absolute;
    top: 0;
    left: 0;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.image-viewer.dragging .image-viewer-content,
.image-viewer.dragging .image-viewer-stage {
    cursor: grabbing;
}

.image-viewer-toolbar {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem;
    border-radius: 0.5rem;
    background: rgba(0, 0, 0, 0.55);
}

.image-viewer-toolbar button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0.375rem;
    background: transparent;
    color: #fff;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* Touch screens keep :hover on the last tapped button, which looks stuck */
@media (hover: hover) {
    .image-viewer-toolbar button:hover:not(:disabled) {
        background: rgba(255, 255, 255, 0.18);
    }
}

.image-viewer-toolbar button:active:not(:disabled) {
    background: rgba(255, 255, 255, 0.28);
}

.image-viewer-toolbar button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -2px;
}

.image-viewer-toolbar button:disabled {
    opacity: 0.35;
    cursor: default;
}

.image-viewer-zoom {
    min-width: 3.25rem;
    color: #fff;
    font-size: 0.85rem;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

/* Centered with insets and auto margins rather than left: 50% and a
   transform, which would limit the shrink-to-fit width to half the viewport
   and wrap the text early on narrow screens */
.image-viewer-caption {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    width: fit-content;
    max-width: 48rem;
    margin: 0 auto;
    padding: 0.4rem 0.8rem;
    border-radius: 0.375rem;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.9rem;
    text-align: center;
}

.image-viewer-caption[hidden] {
    display: none;
}

@media screen and (max-width: 768px) {
    .image-viewer-caption {
        left: 0.5rem;
        right: 0.5rem;
        bottom: 0.5rem;
        padding: 0.35rem 0.6rem;
        font-size: 0.85rem;
    }
}

/* Keep in sync with edgeLabelBackground in theme.js so that edge labels only
   mask the lines behind them instead of showing as boxes. */
pre.mermaid {
    margin: 0;
    padding: 15px 0 0 5px;
    background: #f3f4f6;
}

.image-viewer-content.mermaid-diagram {
    background: #f3f4f6;
}

/* Undo the pre and .label styles, mermaid measures its labels without them */
.mermaid-diagram {
    word-break: normal;
    overflow-wrap: break-word;
}

.mermaid-diagram .label {
    font-weight: normal;
}
