@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&family=Space+Mono:wght@400;700&display=swap");
/* Theme tokens: light */
:root
{
    color-scheme: light;
    --site-bg: #fff;
    --site-surface: #f6f8fa;
    --site-surface-muted: #f3f4f6;
    --site-border: #d0d7de;
    --site-text: #24292f;
    --site-muted: #57606a;
    --site-heading: #111827;
    --site-menu-link: #4b5563;
    --site-menu-secondary: #667281;
    --site-accent: #0969da;
    --site-accent-strong: #0956b1;
    --site-code: #d63333;
    --site-code-bg: #f6f8fa;
    --site-selection: rgba(9, 105, 218, 0.16);
    --site-header-bg: rgba(255, 255, 255, 0.86);
    --bs-body-font-family: "Manrope", "Segoe UI Variable", "Segoe UI", sans-serif;
    --bs-font-sans-serif: var(--bs-body-font-family);
    --bs-font-monospace: "JetBrains Mono", "Cascadia Code", monospace;
    --bs-body-bg: var(--site-bg);
    --bs-body-color: var(--site-text);
    --bs-emphasis-color: var(--site-heading);
    --bs-secondary-color: var(--site-muted);
    --bs-secondary-bg: var(--site-surface);
    --bs-tertiary-bg: var(--site-surface-muted);
    --bs-border-color: var(--site-border);
    --bs-border-color-translucent: rgba(36, 41, 47, 0.08);
    --bs-link-color: var(--site-accent);
    --bs-link-hover-color: var(--site-accent-strong);
    --bs-code-color: var(--site-code);
}

/* Theme tokens: dark */
[data-bs-theme="dark"]
{
    color-scheme: dark;
    --site-bg: #0d1117;
    --site-surface: #161b22;
    --site-surface-muted: #11161d;
    --site-border: #383f47;
    --site-text: #c9d1d9;
    --site-muted: #8b949e;
    --site-heading: #f0f6fc;
    --site-menu-link: #b9c4cf;
    --site-menu-secondary: #a7b3bf;
    --site-accent: #65a8ff;
    --site-accent-strong: #88bcff;
    --site-code: #e58383;
    --site-code-bg: #161b22;
    --site-selection: rgba(88, 166, 255, 0.22);
    --site-header-bg: rgba(13, 17, 23, 0.82);
    --bs-body-bg: var(--site-bg);
    --bs-body-color: var(--site-text);
    --bs-emphasis-color: var(--site-heading);
    --bs-secondary-color: var(--site-muted);
    --bs-secondary-bg: var(--site-surface);
    --bs-tertiary-bg: var(--site-surface-muted);
    --bs-border-color: var(--site-border);
    --bs-border-color-translucent: rgba(240, 246, 252, 0.08);
    --bs-link-color: var(--site-accent);
    --bs-link-hover-color: var(--site-accent-strong);
    --bs-code-color: var(--site-code);
}

/* Logos */
.logo-dark-theme,
[data-bs-theme="light"] .logo-dark-theme
{
    display: none;
}

[data-bs-theme="dark"] .logo-light-theme
{
    display: none;
}

[data-bs-theme="dark"] .logo-dark-theme,
[data-bs-theme="light"] .logo-light-theme
{
    display: inline-block;
}

/* Reserve scrollbar space so short pages do not shift the layout. */
html
{
    overflow-y: scroll;
}

@supports (scrollbar-gutter: stable)
{
    html
    {
        overflow-y: auto;
        scrollbar-gutter: stable both-edges;
    }
}

/* Base */
*
{
    opacity: 1;
}

body
{
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
}

::selection
{
    background: var(--site-selection);
}

a
{
    color: var(--bs-link-color);
    text-decoration: none;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
    transition: color 160ms ease, text-decoration-color 160ms ease;
}

a:hover,
a:focus
{
    color: var(--bs-link-hover-color);
    text-decoration: none;
}

/* Site chrome */
body > header,
body > header.bg-body
{
    background-color: var(--site-bg) !important;
}

body > header
{
    height: auto;
}

@media (min-width: 768px)
{
    body > header
    {
        height: 80px;
    }
}

@media (max-width: 767.98px)
{
    body > header,
    body[data-layout="landing"] > header,
    body[data-layout="_landing"] > header
    {
        height: auto !important;
    }
    body > header .container-xxl.flex-nowrap
    {
        flex-wrap: wrap !important;
        align-items: flex-start;
    }
    body > header .navbar-collapse
    {
        flex-basis: 100%;
        width: 100%;
    }
    body > header #navbar
    {
        width: 100%;
    }
    body > header .navbar-nav
    {
        width: 100%;
    }
}

body > header.border-bottom
{
    border-bottom: 1px dashed var(--site-border) !important;
}

body > footer.border-top
{
    border-top: 1px dashed var(--site-border) !important;
}

/* Navbar */
.navbar-brand
{
    color: var(--site-heading);
    font-family: "Space Mono", monospace;
    font-weight: 700;
    font-size: 1.5rem !important;
}

.navbar-brand:hover,
.navbar-brand:focus
{
    color: var(--site-heading);
    text-decoration: none;
}

.navbar .navbar-nav .nav-link
{
    color: var(--site-menu-link);
}

.navbar .navbar-nav .nav-link.active,
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link:focus
{
    color: var(--site-heading);
    text-decoration: none;
}

.navbar .navbar-nav .nav-link.active
{
    font-weight: 700;
}

@media (min-width: 768px)
{
    .navbar-brand
    {
        margin-right: 1.9rem;
    }
    .navbar .navbar-nav
    {
        column-gap: 0.9rem;
    }
    .navbar #navbar form.search
    {
        margin-left: 0.6rem;
    }
}

/* Shared nav text */
.navbar #navbar form > i.bi,
.toc form.filter > i.bi,
.toc > .no-result,
.breadcrumb,
.affix,
.text-secondary
{
    color: var(--site-muted) !important;
}

form.filter
{
    margin: 0.5rem;
}

/* Side navigation: breadcrumb, TOC, affix, next/prev */
.affix h5
{
    color: var(--site-text);
    text-transform: none;
    letter-spacing: 0;
    font-size: 15px;
    font-weight: 600;
    border-width: 0 !important;
    padding: 1em 0 0 0;
}

.next-article > div > span
{
    opacity: 1;
    font-size: 14px;
}

.prev span,
.next span
{
    color: var(--site-text);
    font-weight: 400;
}

.navbar #navbar form > input,
.toc form.filter > input
{
    background-color: var(--site-surface);
    border-color: var(--site-border);
    color: var(--site-text);
}

.navbar #navbar form > input:focus,
.toc form.filter > input:focus
{
    border-color: var(--site-accent);
    /*box-shadow: 0 0 0 0.25rem color-mix(in srgb, var(--site-accent) 14%, transparent);*/
}

.toc li > a,
.affix li > a
{
    color: var(--site-menu-link);
}

.affix ul li
{
    margin: 0.6em 0;
}

nav#affix li > a.link-body-emphasis,
nav#affix li > a.link-secondary,
.affix li > a.link-body-emphasis,
.affix li > a.link-secondary,
.affix li.active > a
{
    color: var(--site-menu-link) !important;
}

.toc li.active > a
{
    color: var(--site-heading) !important;
    font-weight: 600;
    text-decoration: none;
}

.toc li > a:hover,
.toc li > a:focus,
.affix li > a:hover,
.affix li > a:focus
{
    color: var(--site-heading) !important;
    text-decoration: none;
}

nav#affix li > a.link-body-emphasis:hover,
nav#affix li > a.link-body-emphasis:focus,
nav#affix li > a.link-secondary:hover,
nav#affix li > a.link-secondary:focus,
.affix li > a.link-body-emphasis:hover,
.affix li > a.link-body-emphasis:focus,
.affix li > a.link-secondary:hover,
.affix li > a.link-secondary:focus
{
    color: var(--site-heading) !important;
}

.affix li.active > a
{
    text-decoration: none;
}

.breadcrumb a:hover,
.breadcrumb a:focus,
.affix li > a:hover,
.affix li > a:focus
{
    text-decoration: none !important;
}

nav#affix li > a.link-secondary,
.affix li > a.link-secondary
{
    display: inline-block;
    padding-left: 1rem;
}

/* Article typography */
article
{
    font-size: 1rem;
    line-height: 1.75;
}

article h1,
article h2,
article h3,
article h4,
article h5,
article h6
{
    color: var(--site-heading);
    letter-spacing: -0.035em;
    line-height: 1.14;
}

article h1
{
    font-size: clamp(2.25rem, 5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.06em;
}

body[data-layout="landing"] article h1,
body[data-layout="_landing"] article h1
{
    font-family: "Space Mono", monospace;
    font-size: clamp(3rem, 5.25vw, 3.65rem);
    font-weight: 700;
    margin-bottom: 0.1rem;
}

body[data-layout="landing"] article h1 + p,
body[data-layout="_landing"] article h1 + p
{
    font-family: "Space Mono", monospace;
    font-weight: 400;
    font-size: clamp(1rem, 1.75vw, 1.2166rem);
    letter-spacing: 0.02em;
}

article h2,
body[data-yaml-mime="ManagedReference"] article h2.section,
body[data-yaml-mime="ApiPage"] article h2.section
{
    margin: 2.5rem 0 0.75rem 0;
    font-size: clamp(1.7rem, 2.6vw, 2rem);
    font-weight: 760;
}

article h3,
body[data-yaml-mime="ManagedReference"] article h3[data-uid],
body[data-yaml-mime="ApiPage"] article h3[data-uid]
{
    margin: 1.75rem 0 0.75rem 0;
    font-size: clamp(1.33rem, 2vw, 1.45rem);
    font-weight: 720;
}

article h4,
body[data-yaml-mime="ManagedReference"] article h4.section,
body[data-yaml-mime="ApiPage"] article h4.section
{
    margin-top: 1.25rem;
    font-size: clamp(1.18rem, 1.7vw, 1.24rem);
    font-weight: 700;
}

article p,
article li,
article dd
{
    color: var(--site-text);
}

article strong,
article th,
article dt
{
    color: var(--site-heading);
}

/* Glossary terms */
.glossary-term
{
    position: relative;
    display: inline-flex;
    align-items: center;
    color: var(--site-heading);
    cursor: help;
    text-decoration: none;
    vertical-align: baseline;
}

.glossary-term:hover,
.glossary-term:focus,
.glossary-term:focus-visible
{
    z-index: 40;
}

.glossary-term:focus
{
    outline: none;
}

.glossary-term__label
{
    text-decoration-line: underline;
    text-decoration-style: dotted;
    text-decoration-color: color-mix(in srgb, var(--site-accent) 65%, transparent);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

.glossary-term:hover .glossary-term__label,
.glossary-term:focus-visible .glossary-term__label
{
    color: var(--site-accent);
    text-decoration-color: var(--site-accent);
}

.glossary-term__tooltip
{
    position: absolute;
    left: 0;
    top: calc(100% + 0.6rem);
    z-index: 30;
    display: block;
    width: min(30rem, calc(100vw - 2rem));
    padding: 0.85rem 0.95rem;
    border: 1px solid var(--site-border);
    border-radius: calc(var(--bs-border-radius) * 2);
    background: var(--site-surface);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
    color: var(--site-text);
    opacity: 0;
    pointer-events: none;
    transform: translateY(0.2rem);
    transition: opacity 140ms ease, transform 140ms ease;
    white-space: normal;
}

[data-bs-theme="dark"] .glossary-term__tooltip
{
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

.glossary-term__title
{
    display: block;
    margin-bottom: 0.35rem;
    color: var(--site-heading);
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.glossary-term__body
{
    display: block;
    font-size: 0.92rem;
    line-height: 1.6;
}

.glossary-term__body p
{
    margin: 0;
}

.glossary-term:hover .glossary-term__tooltip,
.glossary-term:focus-visible .glossary-term__tooltip
{
    opacity: 1;
    transform: translateY(0);
}

/* Inline code and code blocks */
article :not(pre) > code,
article td > code,
article li > code,
article dt > code,
article dd > code
{
    background: var(--site-surface);
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: calc(var(--bs-border-radius) - 4px);
    color: var(--bs-code-color);
    font-family: var(--bs-font-monospace);
    padding: 0.06em 0.28em;
}

pre
{
    background: var(--site-code-bg) !important;
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: calc(var(--bs-border-radius) * 2);
}

pre > code,
pre > code.hljs,
pre code.hljs
{
    background: transparent !important;
    border: 0 !important;
    border-radius: 0;
}

pre.mermaid
{
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: auto;
}

pre.mermaid svg
{
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

pre.mermaid svg text,
pre.mermaid svg tspan,
pre.mermaid svg foreignObject,
pre.mermaid svg foreignObject *
{
    font-family: var(--bs-body-font-family) !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
}

/* Media */
article img:not([src*="shields.io"]):not(.index-logo),
article figure
{
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: calc(var(--bs-border-radius) * 2);
    background: var(--site-surface);
}

.index-logo
{
    margin-bottom: 1rem;
}

.index-logo-dark-theme,
[data-bs-theme="light"] .index-logo-dark-theme
{
    display: none;
}

[data-bs-theme="dark"] .index-logo-light-theme
{
    display: none;
}

[data-bs-theme="dark"] .index-logo-dark-theme,
[data-bs-theme="light"] .index-logo-light-theme
{
    display: inline-block;
}

article figure
{
    overflow: hidden;
}

article figure img
{
    border: 0;
    border-radius: calc((var(--bs-border-radius) * 2) - var(--bs-border-width));
    display: block;
}

/* Callouts and content borders */
blockquote
{
    border-left-color: var(--site-accent);
}

.alert
{
    border-color: var(--site-border);
}

.alert-info
{
    border-color: color-mix(in srgb, var(--site-accent) 40%, var(--site-border));
}

[data-bs-theme="dark"] .alert-warning
{
    border-color: #9e6a03;
}

[data-bs-theme="dark"] .alert-danger
{
    border-color: #da3633;
}

article table,
article th,
article td,
body[data-yaml-mime="ManagedReference"] article h1[data-uid],
body[data-yaml-mime="ApiPage"] article h1[data-uid],
body[data-yaml-mime="ManagedReference"] article h3[data-uid],
body[data-yaml-mime="ApiPage"] article h3[data-uid]
{
    border-color: var(--site-border);
}

/* Footer */
body > footer .container-xxl .flex-fill
{
    color: var(--site-text);
    font-size: 14px;
    font-weight: 400;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

body > footer > .container-xxl
{
    display: flex;
    align-items: center;
    min-height: 100%;
}

body > footer .flex-fill > *
{
    margin: 0;
}

/* Footer links and external-link icon */
footer a
{
    color: var(--bs-link-color);
}

footer a:hover,
footer a:focus
{
    color: var(--bs-link-hover-color);
}

a.external[href]:after,
footer a[target="_blank"]:after
{
    font-family: bootstrap-icons;
    content: "\f1c5";
    font-size: 0.6rem;
    margin: 0 0.5em;
    display: inline-block;
}

.form-control
{
    font-size: 0.9rem;
}

/* Tables */
article .table-responsive
{
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: calc(var(--bs-border-radius) * 2);
    overflow: hidden;
    font-size: 14px;
    margin-bottom: 1rem;
}

article .table-responsive:has(.glossary-term:hover),
article .table-responsive:has(.glossary-term:focus),
article .table-responsive:has(.glossary-term:focus-visible)
{
    overflow: visible;
}

article .table-responsive > .table
{
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
    --bs-table-bg: var(--site-code-bg);
}

article .table > :not(caption) > * > *
{
    background-color: var(--site-code-bg);
    border-right: var(--bs-border-width) solid var(--bs-border-color);
    border-bottom: var(--bs-border-width) solid var(--bs-border-color);
    border-top: 0;
    border-left: 0;
    padding: 1em;
}

article .table > :not(caption) > * > *:last-child
{
    border-right: 0;
}

article .table > tbody > tr:last-child > *
{
    border-bottom: 0;
}

/* Late DocFX-specific overrides */
.hljs-comment
{
    font-style: normal !important;
}

#nextArticle
{
    margin-top: 1rem;
    padding-top: 0;
    border-top: 0 !important;
}

/* Sticky side rails */
.toc-offcanvas,
.affix
{
    position: sticky !important;
    top: 105px !important;
    align-self: flex-start;
    max-height: calc(100vh - 105px) !important;
}

/* Branding */
#logo
{
    display: none;
}

/* Landing page width */
@media (min-width: 992px)
{
    body[data-layout="landing"] > main > .content,
    body[data-layout="_landing"] > main > .content
    {
        max-width: 67%;
        margin-right: auto;
    }
}
