/* Documentation pages: a sidebar with every guide, a page header, an "On this page" outline beside the rendered
   markdown, and typography for everything the markdown produces (headings, tables, code, notes, images). Rules are
   scoped under .Docs so they cannot change the rest of the site; the libraries and blog pages (.Page, pages.css)
   share the tokens, and a blog post reuses .Docs-content for its text. */

.Docs,
.Page {
    --docs-text: hsl(245, 30%, 92%);
    --docs-muted: hsl(245, 18%, 70%);
    --docs-accent: var(--color-palette-secondary);
    --docs-line: hsla(245, 40%, 70%, 0.14);
    --docs-line-strong: hsla(245, 40%, 70%, 0.24);
    --docs-surface: hsla(245, 40%, 70%, 0.05);
    --docs-surface-strong: hsla(245, 40%, 70%, 0.09);
    --docs-code-bg: #120f2b;
    --docs-radius: 14px;
    --docs-mono: ui-monospace, "Cascadia Code", SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;

    color: var(--docs-text);
}

.Docs {
    padding-top: 1.5rem;
    padding-bottom: var(--section-padding);
    color: var(--docs-text);
}

/* .Main hides horizontal overflow, which makes it a scroll container and stops the outline from sticking; clip
   trims the same overflow without that side effect. */
.Main:has(.Docs) {
    overflow-x: clip;
}

/* Shell: the docs sidebar beside the page; the outline joins on wide screens. */

.Docs-container {
    max-width: calc(1480px - var(--site-padding) * 2);
}

.Docs-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
}

@media only screen and (min-width: 1024px) {
    .Docs-shell {
        grid-template-columns: 236px minmax(0, 1fr);
        gap: 3rem;
    }
}

.Docs-main {
    min-width: 0;
}

/* Sidebar */

.Docs-sidebar {
    position: relative;
    z-index: 2;
}

@media only screen and (min-width: 1024px) {
    .Docs-sidebar {
        position: sticky;
        top: 7rem;
        align-self: start;
        max-height: calc(100vh - 8rem);
        overflow-y: auto;
        padding: 0 0.75rem 1.5rem 0;
        scrollbar-width: thin;
        scrollbar-color: var(--docs-line-strong) transparent;
    }
}

.Docs-sidebarToggle {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.8rem 1rem;
    color: var(--docs-text);
    font: 500 0.92rem/1.4 var(--font1), system-ui, sans-serif;
    text-align: left;
    background: var(--docs-surface);
    border: 1px solid var(--docs-line-strong);
    border-radius: 14px;
    cursor: pointer;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.Docs-sidebarToggleLabel {
    color: var(--docs-muted);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.Docs-sidebarToggleCurrent {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.Docs-chevron {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    overflow: visible;
    color: var(--docs-muted);
    transition: transform 0.2s var(--ease-out-quad);
}

.Docs-sidebar.is-open .Docs-chevron {
    transform: rotate(180deg);
}

.Docs-nav {
    display: none;
}

.Docs-sidebar.is-open .Docs-nav {
    display: block;
    margin-top: 0.5rem;
    padding: 1rem;
    background: hsla(245, 45%, 10%, 0.92);
    border: 1px solid var(--docs-line-strong);
    border-radius: 14px;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

@media only screen and (min-width: 1024px) {
    .Docs-sidebarToggle {
        display: none;
    }

    .Docs-nav,
    .Docs-sidebar.is-open .Docs-nav {
        display: block;
        margin: 0;
        padding: 0;
        background: none;
        border: 0;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
}

.Docs-navGroup + .Docs-navGroup {
    margin-top: 1.5rem;
}

.Docs-navTitle {
    margin: 0 0 0.5rem;
    padding-left: 0.75rem;
    color: var(--docs-text);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.Docs-navList {
    margin: 0;
    padding: 0;
    list-style: none;
}

.Docs-navLink {
    position: relative;
    display: block;
    padding: 0.42rem 0.75rem;
    color: var(--docs-muted);
    font-size: 0.9rem;
    line-height: 1.4;
    text-decoration: none;
    border-radius: 9px;
    transition: color 0.15s var(--ease-out-quad), background-color 0.15s var(--ease-out-quad);
}

.Docs-navLink:hover {
    color: var(--docs-text);
    background: var(--docs-surface);
}

.Docs-navLink.is-active {
    color: #fff;
    font-weight: 500;
    background: linear-gradient(90deg, hsla(264, 48%, 64%, 0.22), hsla(264, 48%, 64%, 0.04));
}

.Docs-navLink.is-active::before {
    content: "";
    position: absolute;
    top: 0.45rem;
    bottom: 0.45rem;
    left: 0;
    width: 3px;
    background: linear-gradient(180deg, #9a77cf, #ec4177);
    border-radius: 3px;
}

.Docs-navLink--more {
    color: var(--docs-accent);
    font-size: 0.85rem;
}

/* The API reference's sections, listed under it while you are in it. */
.Docs-navSub {
    margin: 0.2rem 0 0.4rem 0.9rem;
    padding: 0 0 0 0.5rem;
    list-style: none;
    border-left: 1px solid var(--docs-line);
}

.Docs-navSub .Docs-navLink {
    padding-top: 0.32rem;
    padding-bottom: 0.32rem;
    font-size: 0.85rem;
}

.Docs-navLink:focus-visible,
.Docs-sidebarToggle:focus-visible,
.Docs-pagerLink:focus-visible {
    outline: 2px solid var(--docs-accent);
    outline-offset: 2px;
}

.Docs-navCard {
    margin-top: 1.75rem;
    padding: 1rem;
    background: var(--docs-surface);
    border: 1px solid var(--docs-line);
    border-radius: 14px;
}

.Docs-navCardTitle {
    margin: 0 0 0.3rem;
    color: var(--docs-text);
    font-size: 0.85rem;
    font-weight: 600;
}

.Docs-postman {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    background: #ff6c37;
    border-radius: 8px;
    transition: background-color 0.15s var(--ease-out-quad);
}

.Docs-postman:hover {
    background: #ff8a5c;
}

.Docs-postman:focus-visible {
    outline: 2px solid var(--docs-accent);
    outline-offset: 2px;
}

.Docs-navCardText {
    margin: 0 0 0.75rem;
    color: var(--docs-muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

/* Page header */

.Docs-header {
    position: relative;
    isolation: isolate;
    margin-bottom: 2.25rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--docs-line);
}

.Docs-header::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -80px;
    left: -60px;
    width: min(600px, 90%);
    height: 240px;
    background:
        radial-gradient(closest-side at 30% 50%, rgba(154, 119, 207, 0.28), transparent),
        radial-gradient(closest-side at 75% 45%, rgba(236, 65, 119, 0.16), transparent);
    filter: blur(28px);
    pointer-events: none;
}

.Docs-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.6rem;
    color: var(--docs-accent);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.Docs-crumbs a {
    color: inherit;
    text-decoration: none;
}

.Docs-crumbs a:hover {
    color: var(--docs-text);
}

.Docs-crumbs span[aria-hidden] {
    color: var(--docs-muted);
    opacity: 0.6;
}

.Docs-title {
    margin: 0;
    font-size: clamp(2rem, 4.5vw, 2.75rem);
    line-height: 1.15;
    background: var(--text-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.Docs-lede {
    max-width: 42rem;
    margin: 0.75rem 0 0;
    color: var(--docs-muted);
    font-size: 1.08rem;
    line-height: 1.6;
}

/* Above the pages that are not translated, in every language but English. */
.Docs-languageNotice {
    margin: -1rem 0 1.5rem;
    color: var(--docs-muted);
    font-size: 0.85rem;
    font-style: italic;
}

/* Body: content with the outline on the right */

.Docs-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
}

@media only screen and (min-width: 1280px) {
    .Docs-body {
        grid-template-columns: minmax(0, 1fr) 200px;
    }
}

.Docs-toc {
    display: none;
}

@media only screen and (min-width: 1280px) {
    .Docs-toc {
        display: block;
        position: sticky;
        top: 7rem;
        align-self: start;
        max-height: calc(100vh - 9rem);
        overflow-x: hidden;
        overflow-y: auto;
        padding-right: 0.5rem;
        scrollbar-width: thin;
        scrollbar-color: var(--docs-line-strong) transparent;
    }
}

.Docs-tocTitle {
    margin: 0 0 0.75rem;
    color: var(--docs-text);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.Docs-tocList {
    margin: 0;
    padding: 0;
    list-style: none;
    border-left: 1px solid var(--docs-line);
}

.Docs-tocList a {
    display: block;
    margin-left: -1px;
    padding: 0.3rem 0 0.3rem 0.9rem;
    color: var(--docs-muted);
    font-size: 0.82rem;
    line-height: 1.45;
    text-decoration: none;
    overflow-wrap: anywhere;
    border-left: 2px solid transparent;
    transition: color 0.15s var(--ease-out-quad), border-color 0.15s var(--ease-out-quad);
}

.Docs-tocList a.is-sub {
    padding-left: 1.7rem;
    font-size: 0.78rem;
}

.Docs-tocList a:hover {
    color: var(--docs-text);
}

.Docs-tocList a.is-active {
    color: var(--docs-text);
    border-left-color: var(--docs-accent);
}

/* Previous / next */

.Docs-pager {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 52rem;
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--docs-line);
}

.Docs-pagerLink {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 1.25rem;
    text-decoration: none;
    background: var(--docs-surface);
    border: 1px solid var(--docs-line-strong);
    border-radius: 14px;
    transition: border-color 0.15s var(--ease-out-quad), background-color 0.15s var(--ease-out-quad), transform 0.15s var(--ease-out-quad);
}

.Docs-pagerLink:hover {
    background: var(--docs-surface-strong);
    border-color: hsla(264, 48%, 64%, 0.6);
    transform: translateY(-2px);
}

.Docs-pagerLink--next {
    grid-column: -2;
    text-align: right;
}

.Docs-pagerLabel {
    color: var(--docs-muted);
    font-size: 0.78rem;
}

.Docs-pagerTitle {
    color: #fff;
    font-weight: 600;
}

/* Content */

.Docs-content {
    max-width: 52rem;
    min-width: 0;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.75;
}

.Docs-content > :first-child {
    margin-top: 0;
}

/* The page header already names the page; the markdown's own title would repeat it. */
.Docs-content > h1:first-child {
    display: none;
}

.Docs-content > h1:first-child + * {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.Docs-content h1,
.Docs-content h2,
.Docs-content h3,
.Docs-content h4,
.Docs-content h5,
.Docs-content h6 {
    position: relative;
    color: #fff;
    font-family: var(--font1);
    font-weight: 600;
    line-height: 1.3;
    scroll-margin-top: 7rem;
}

.Docs-content h1 {
    margin: 0 0 1rem;
    font-size: clamp(1.6rem, 3.5vw, 2.1rem);
    overflow-wrap: anywhere;
}

.Docs-content h2 {
    margin: 3rem 0 1rem;
    padding-top: 2rem;
    font-size: clamp(1.35rem, 3vw, 1.6rem);
    border-top: 1px solid var(--docs-line);
}

.Docs-content h3 {
    margin: 2.25rem 0 0.75rem;
    font-size: 1.25rem;
}

.Docs-content h4 {
    margin: 2rem 0 0.75rem;
    font-size: 1.08rem;
    color: var(--docs-text);
}

.Docs-content h5,
.Docs-content h6 {
    margin: 1.5rem 0 0.5rem;
    color: var(--docs-accent);
    font-size: 0.95rem;
}

/* An empty heading in the markdown only adds a gap. */
.Docs-content h5:empty,
.Docs-content h6:empty {
    display: none;
}

.Docs-anchor {
    margin-left: 0.5rem;
    color: var(--docs-accent);
    font-weight: 400;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.15s var(--ease-out-quad);
}

.Docs-content :is(h2, h3, h4):hover .Docs-anchor,
.Docs-anchor:focus-visible {
    opacity: 0.8;
}

.Docs-content p {
    margin: 0 0 1.1rem;
}

.Docs-content a {
    color: var(--docs-accent);
    text-decoration: underline;
    text-decoration-color: hsla(264, 48%, 64%, 0.4);
    text-underline-offset: 3px;
}

.Docs-content a:hover {
    text-decoration-color: currentColor;
}

.Docs-content strong {
    color: #fff;
    font-weight: 600;
}

.Docs-content ul,
.Docs-content ol {
    margin: 0 0 1.1rem;
    padding-left: 1.4rem;
}

.Docs-content li {
    margin: 0.3rem 0;
    padding-left: 0.25rem;
}

.Docs-content li::marker {
    color: var(--docs-accent);
}

.Docs-content hr {
    margin: 2.5rem 0;
    border: 0;
    border-top: 1px solid var(--docs-line);
}

.Docs-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.25rem 0 1.5rem;
    border: 1px solid var(--docs-line-strong);
    border-radius: var(--docs-radius);
    box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.8);
}

/* Notes: markdown "> Note: ..." becomes a callout. */
.Docs-content blockquote {
    position: relative;
    margin: 1.5rem 0;
    padding: 0.9rem 1.1rem 0.9rem 3rem;
    color: var(--docs-text);
    font-style: normal;
    background: hsla(264, 48%, 64%, 0.1);
    border: 1px solid hsla(264, 48%, 64%, 0.28);
    border-radius: 12px;
}

.Docs-content blockquote::before {
    content: "i";
    position: absolute;
    top: 1.05rem;
    left: 1.05rem;
    display: grid;
    place-items: center;
    width: 1.25rem;
    height: 1.25rem;
    color: var(--color-palette-primary);
    font-family: Georgia, serif;
    font-size: 0.8rem;
    font-style: italic;
    font-weight: 700;
    line-height: 1;
    background: var(--docs-accent);
    border-radius: 50%;
}

.Docs-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Inline code */
.Docs-content :not(pre) > code {
    padding: 0.12em 0.4em;
    color: hsl(264, 80%, 86%);
    font-family: var(--docs-mono);
    font-size: 0.86em;
    background: hsla(264, 48%, 64%, 0.14);
    border: 1px solid hsla(264, 48%, 64%, 0.2);
    border-radius: 6px;
    overflow-wrap: anywhere;
}

/* Code blocks */
.Docs-code {
    position: relative;
    margin: 1rem 0 1.5rem;
    background: var(--docs-code-bg);
    border: 1px solid var(--docs-line-strong);
    border-radius: var(--docs-radius);
    box-shadow: 0 18px 36px -24px rgba(0, 0, 0, 0.9);
    overflow: hidden;
}

.Docs-codeBar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.45rem 0.6rem 0.45rem 1rem;
    background: hsla(245, 40%, 70%, 0.06);
    border-bottom: 1px solid var(--docs-line);
}

.Docs-codeLang {
    color: var(--docs-muted);
    font-family: var(--docs-mono);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: lowercase;
}

.Docs-copy {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.65rem;
    color: var(--docs-muted);
    font: 500 0.75rem/1.4 var(--font1), system-ui, sans-serif;
    background: transparent;
    border: 1px solid var(--docs-line-strong);
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.15s var(--ease-out-quad), border-color 0.15s var(--ease-out-quad);
}

.Docs-copy:hover {
    color: var(--docs-text);
    border-color: var(--docs-accent);
}

.Docs-copy.is-copied {
    color: var(--color-palette-success);
    border-color: var(--color-palette-success);
}

.Docs-content pre {
    margin: 0;
    padding: 1rem 1.15rem;
    overflow-x: auto;
    text-align: left;
    background: transparent;
    scrollbar-color: var(--docs-line-strong) transparent;
}

.Docs-content pre code,
.Docs-content pre code.hljs {
    display: block;
    padding: 0;
    color: #d6d9e8;
    font-family: var(--docs-mono);
    font-size: 0.86rem;
    line-height: 1.65;
    background: transparent;
}

/* Tables */
.Docs-table {
    margin: 1rem 0 1.75rem;
    overflow-x: auto;
    background: var(--docs-surface);
    border: 1px solid var(--docs-line-strong);
    border-radius: var(--docs-radius);
}

.Docs-content table {
    width: 100%;
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
    border: 0;
    border-collapse: collapse;
    border-radius: 0;
    background: none;
    backdrop-filter: none;
}

.Docs-content th {
    padding: 0.75rem 1rem;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
    background: var(--docs-surface-strong);
    border-bottom: 1px solid var(--docs-line-strong);
}

.Docs-content td {
    padding: 0.75rem 1rem;
    vertical-align: top;
    border-top: 1px solid var(--docs-line);
}

.Docs-content tbody tr:first-child td {
    border-top: 0;
}

.Docs-content tbody tr {
    transition: background-color 0.12s var(--ease-out-quad);
}

.Docs-content tbody tr:hover {
    background: hsla(245, 40%, 70%, 0.05);
}

/* The first column names a property, method or parameter: show it as code. */
.Docs-content td:first-child {
    min-width: 12rem;
    color: hsl(264, 80%, 88%);
    font-family: var(--docs-mono);
    font-size: 0.84rem;
    overflow-wrap: anywhere;
}


/* Changelog: one release per step on a timeline, each change tagged with its kind. */

.Changelog {
    max-width: 52rem;
    min-width: 0;
}

.Changelog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 2.25rem;
}

.Changelog-filter {
    padding: 0.4rem 0.95rem;
    color: var(--docs-muted);
    font: 500 0.85rem/1.4 var(--font1), system-ui, sans-serif;
    background: var(--docs-surface);
    border: 1px solid var(--docs-line-strong);
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.15s var(--ease-out-quad), background-color 0.15s var(--ease-out-quad), border-color 0.15s var(--ease-out-quad);
}

.Changelog-filter:hover {
    color: var(--docs-text);
    border-color: hsla(264, 48%, 64%, 0.5);
}

.Changelog-filter.is-active {
    color: #fff;
    background: linear-gradient(137deg, #9a77cf 24%, #a13670 88%);
    border-color: transparent;
}

.Changelog-filter:focus-visible,
.Changelog-version:focus-visible {
    outline: 2px solid var(--docs-accent);
    outline-offset: 2px;
}

.Changelog-list {
    position: relative;
    margin: 0;
    padding: 0 0 0 2rem;
    list-style: none;
}

/* The timeline line */
.Changelog-list::before {
    content: "";
    position: absolute;
    top: 0.6rem;
    bottom: 0;
    left: 0.4rem;
    width: 2px;
    background: linear-gradient(180deg, hsla(264, 48%, 64%, 0.6), var(--docs-line) 30%, transparent);
}

.Changelog-release {
    position: relative;
    padding-bottom: 3rem;
    scroll-margin-top: 7rem;
}

.Changelog-marker {
    position: absolute;
    top: 0.35rem;
    left: calc(-2rem + 0.4rem - 6px);
    width: 14px;
    height: 14px;
    background: var(--color-palette-primary);
    border: 2px solid var(--docs-accent);
    border-radius: 50%;
}

.Changelog-release.is-upcoming .Changelog-marker {
    background: linear-gradient(137deg, #9a77cf, #ec4177);
    border-color: transparent;
    box-shadow: 0 0 0 5px hsla(264, 48%, 64%, 0.2);
}

.Changelog-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.Changelog-version {
    padding: 0.15rem 0.6rem;
    color: hsl(264, 80%, 88%);
    font-family: var(--docs-mono);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    background: hsla(264, 48%, 64%, 0.14);
    border: 1px solid hsla(264, 48%, 64%, 0.3);
    border-radius: 8px;
}

.Changelog-date {
    color: var(--docs-muted);
    font-size: 0.85rem;
}

.Changelog-status {
    padding: 0.2rem 0.65rem;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: linear-gradient(137deg, #9a77cf 24%, #a13670 88%);
    border-radius: 999px;
}

.Changelog-title {
    margin: 0.75rem 0 0.35rem;
    color: #fff;
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    line-height: 1.3;
}

.Changelog-summary {
    margin: 0 0 1.25rem;
    color: var(--docs-muted);
    line-height: 1.6;
}

.Changelog-changes {
    margin: 0;
    padding: 0.4rem 0;
    list-style: none;
    background: var(--docs-surface);
    border: 1px solid var(--docs-line-strong);
    border-radius: var(--docs-radius);
}

.Changelog-change {
    display: flex;
    align-items: baseline;
    gap: 0.9rem;
    padding: 0.7rem 1.1rem;
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.6;
}

.Changelog-change + .Changelog-change {
    border-top: 1px solid var(--docs-line);
}

.Changelog-kind {
    --tint: 264, 48%, 64%;
    flex-shrink: 0;
    width: 5.6rem;
    padding: 0.1rem 0;
    color: hsl(var(--tint));
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
    background: hsla(var(--tint), 0.12);
    border: 1px solid hsla(var(--tint), 0.32);
    border-radius: 999px;
}

.Changelog-kind[data-kind="new"] { --tint: 150, 60%, 62%; }
.Changelog-kind[data-kind="improved"] { --tint: 210, 75%, 68%; }
.Changelog-kind[data-kind="fixed"] { --tint: 26, 100%, 68%; }
.Changelog-kind[data-kind="security"] { --tint: 341, 82%, 66%; }

.Changelog-docs {
    margin-left: 0.35rem;
    color: var(--docs-accent);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.Changelog-docs:hover {
    color: #fff;
}

@media only screen and (max-width: 559px) {
    .Changelog-change {
        flex-direction: column;
        gap: 0.4rem;
    }
}

/* atom-one-dark.css draws every highlighted block as a card of its own; inside these code boxes that is a second
   frame, so the box alone frames the code. */
:is(.Docs, .Page) .hljs {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

/* Code examples in several languages: one framed block with language tabs. Used by the API reference and by guides
   whose markdown puts the same example in several languages one after another. */

.Code {
    margin: 0 0 1.5rem;
    overflow: hidden;
    background: var(--docs-code-bg);
    border: 1px solid var(--docs-line-strong);
    border-radius: var(--docs-radius);
    box-shadow: 0 18px 36px -24px rgba(0, 0, 0, 0.9);
}

.Code-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0 0.6rem 0 0.4rem;
    background: hsla(245, 40%, 70%, 0.06);
    border-bottom: 1px solid var(--docs-line);
}

.Code-tabs {
    display: flex;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.Code-tabs::-webkit-scrollbar {
    display: none;
}

.Code-tab {
    position: relative;
    flex-shrink: 0;
    padding: 0.6rem 0.75rem;
    color: var(--docs-muted);
    font: 500 0.78rem/1.4 var(--font1), system-ui, sans-serif;
    background: none;
    border: 0;
    cursor: pointer;
    transition: color 0.15s var(--ease-out-quad);
}

.Code-tab:hover {
    color: var(--docs-text);
}

.Code-tab.is-active {
    color: #fff;
}

.Code-tab.is-active::after {
    content: "";
    position: absolute;
    right: 0.75rem;
    bottom: -1px;
    left: 0.75rem;
    height: 2px;
    background: linear-gradient(90deg, #9a77cf, #ec4177);
    border-radius: 2px;
}

.Code-tab:focus-visible {
    outline: 2px solid var(--docs-accent);
    outline-offset: -2px;
}

.Code-panel pre,
.Docs-content .Code-panel pre {
    margin: 0;
    padding: 1rem 1.15rem;
    overflow-x: auto;
    text-align: left;
    background: transparent;
    border: 0;
    scrollbar-color: var(--docs-line-strong) transparent;
}

.Code-panel pre code,
.Code-panel pre code.hljs {
    display: block;
    padding: 0;
    color: #d6d9e8;
    font-family: var(--docs-mono);
    font-size: 0.82rem;
    line-height: 1.65;
    white-space: pre;
    background: transparent;
}

/* API reference */

.Api-overview {
    max-width: 52rem;
}

.Api-base {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.Api-baseLabel {
    color: var(--docs-muted);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.Docs-content .Api-sections {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
    gap: 0.75rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}

.Docs-content .Api-sections li {
    margin: 0;
    padding: 0;
}

.Docs-content .Api-sectionLink {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    height: 100%;
    padding: 1rem 1.1rem;
    text-decoration: none;
    background: var(--docs-surface);
    border: 1px solid var(--docs-line);
    border-radius: 14px;
    transition: border-color 0.15s var(--ease-out-quad), background-color 0.15s var(--ease-out-quad);
}

.Docs-content .Api-sectionLink:hover {
    background: var(--docs-surface-strong);
    border-color: hsla(264, 48%, 64%, 0.5);
}

.Api-sectionTitle {
    color: #fff;
    font-weight: 600;
}

.Api-sectionText {
    flex: 1;
    color: var(--docs-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

.Api-sectionCount {
    color: var(--docs-accent);
    font-size: 0.78rem;
}

.Api-guide {
    margin: -1rem 0 1.75rem;
    color: var(--docs-muted);
    font-size: 0.92rem;
}

.Api-guide a {
    color: var(--docs-accent);
    text-decoration: none;
}

.Api-guide a:hover {
    color: #fff;
}

/* The endpoints of a section, one per line, at the top of the page. */
.Api-index ul {
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--docs-line);
}

.Api-index a {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr);
    align-items: center;
    gap: 0.25rem 0.75rem;
    padding: 0.55rem 0.5rem;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid var(--docs-line);
    transition: background-color 0.12s var(--ease-out-quad);
}

@media only screen and (min-width: 768px) {
    .Api-index a {
        grid-template-columns: 4.5rem minmax(0, 1fr) auto;
    }
}

.Api-index a:hover {
    background: var(--docs-surface);
}

.Api-indexPath {
    min-width: 0;
    overflow: hidden;
    color: var(--docs-text);
    font-family: var(--docs-mono);
    font-size: 0.82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.Api-indexTitle {
    grid-column: 2;
    color: var(--docs-muted);
    font-size: 0.85rem;
}

@media only screen and (min-width: 768px) {
    .Api-indexTitle {
        grid-column: auto;
        text-align: right;
    }
}

.Api-method {
    --tint: 264, 48%, 64%;
    display: inline-block;
    min-width: 3.9rem;
    padding: 0.12rem 0.4rem;
    color: hsl(var(--tint));
    font-family: var(--docs-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: center;
    background: hsla(var(--tint), 0.12);
    border: 1px solid hsla(var(--tint), 0.32);
    border-radius: 6px;
}

.Api-method[data-method="GET"] { --tint: 150, 60%, 62%; }
.Api-method[data-method="POST"] { --tint: 210, 75%, 68%; }
.Api-method[data-method="PUT"] { --tint: 26, 100%, 68%; }
.Api-method[data-method="PATCH"] { --tint: 48, 90%, 62%; }
.Api-method[data-method="DELETE"] { --tint: 341, 82%, 66%; }

/* One endpoint: its description on the left, the request and response beside it on wide screens. */
.Api-endpoint {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem 2.5rem;
    padding: 3rem 0;
    border-bottom: 1px solid var(--docs-line);
    scroll-margin-top: 6rem;
}

@media only screen and (min-width: 1200px) {
    .Api-endpoint {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    }

    .Api-code {
        position: sticky;
        top: 7rem;
        align-self: start;
    }
}

.Api-doc {
    min-width: 0;
    font-weight: 300;
    line-height: 1.7;
}

.Api-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin: 0 0 0.75rem;
    font-size: clamp(1.3rem, 2.5vw, 1.5rem);
    line-height: 1.3;
}

.Api-title a {
    color: #fff;
    text-decoration: none;
}

.Api-title a:hover {
    color: hsl(264, 80%, 88%);
}

.Api-tag {
    padding: 0.15rem 0.55rem;
    color: var(--docs-muted);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    border: 1px solid var(--docs-line-strong);
    border-radius: 999px;
}

.Api-route {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

.Api-route code {
    min-width: 0;
    color: var(--docs-text);
    font-family: var(--docs-mono);
    font-size: 0.88rem;
    overflow-wrap: anywhere;
}

.Api-text p {
    margin: 0 0 0.9rem;
}

.Api-text ul {
    margin: 0 0 0.9rem;
    padding-left: 1.2rem;
}

.Api-text li::marker {
    color: var(--docs-accent);
}

.Api-note {
    margin: 0 0 1rem;
    color: var(--color-palette-success);
    font-size: 0.88rem;
}

.Api-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.6rem;
    margin: 2rem 0 0.25rem;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.Api-contentType {
    color: var(--docs-muted);
    font-family: var(--docs-mono);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

/* Parameters and body fields: rows divided by lines, no boxes. */
.Api-fields {
    margin: 0;
}

.Api-field {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--docs-line);
}

.Api-field dt {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.6rem;
}

.Api-fieldName {
    color: hsl(264, 80%, 88%);
    font-family: var(--docs-mono);
    font-size: 0.86rem;
    font-weight: 600;
}

.Api-fieldType,
.Api-fieldIn {
    color: var(--docs-muted);
    font-family: var(--docs-mono);
    font-size: 0.75rem;
}

.Api-fieldIn::before {
    content: "in ";
}

.Api-required {
    color: hsl(26, 100%, 70%);
    font-size: 0.72rem;
    font-weight: 600;
}

.Api-field dd {
    margin: 0.3rem 0 0;
    color: var(--docs-text);
    font-size: 0.9rem;
}

.Api-field dd p {
    margin: 0 0 0.4rem;
}

.Api-field dd p:last-child {
    margin-bottom: 0;
}

.Api-responses {
    margin: 0;
    padding: 0;
    list-style: none;
}

.Api-responses li {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.6rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--docs-line);
}

.Api-status {
    --tint: 245, 18%, 70%;
    flex-shrink: 0;
    color: hsl(var(--tint));
    font-family: var(--docs-mono);
    font-size: 0.8rem;
    font-weight: 700;
}

.Api-status[data-status="2"] { --tint: 150, 60%, 62%; }
.Api-status[data-status="4"] { --tint: 26, 100%, 68%; }
.Api-status[data-status="5"] { --tint: 341, 82%, 66%; }

.Api-code {
    min-width: 0;
}

.Api-codeLabel {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.5rem;
    color: var(--docs-muted);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.Api-code .Code-panel pre {
    max-height: 26rem;
}
