/* Documentation section: sidebar reference layout on top of the guide look. */
.docs-hero {
    padding: 55px 7% 40px;
    background: var(--paper);
    border-bottom: 1px solid var(--line)
}

.docs-hero h1 {
    font-size: clamp(36px, 4vw, 54px);
    letter-spacing: -2px;
    line-height: 1.05;
    margin: 18px 0 14px
}

.docs-hero .lead {
    max-width: 640px;
    color: #5a6373;
    font-size: 17px;
    line-height: 1.75
}

.docs-hero .home-actions {
    margin: 26px 0 0
}

.docs-hero .button:not(.secondary) {
    background: var(--blue)
}

.docs-hero .button.secondary {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line)
}

.docs-path {
    padding: 48px 7% 20px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px
}

.docs-path article {
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 24px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 10px
}

.docs-path article:hover {
    box-shadow: 0 10px 24px #16213b12
}

.docs-path h2 {
    font-size: 18px;
    margin: 0;
    letter-spacing: -.3px
}

.docs-path p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.75;
    flex: 1
}

.docs-path a {
    font-size: 12px;
    color: var(--blue);
    font-weight: 600
}

.docs-toc {
    padding: 30px 7% 80px
}

.docs-toc h2 {
    font-size: 24px;
    letter-spacing: -.6px;
    margin: 0 0 22px
}

.docs-toc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 36px
}

.docs-toc-section h3 {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #7a8292;
    margin: 0 0 12px
}

.docs-toc-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px
}

.docs-toc-section a {
    display: block;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 14px 16px;
    transition: border-color .15s, box-shadow .15s
}

.docs-toc-section a:hover {
    border-color: var(--blue);
    box-shadow: 0 6px 16px #365cf512
}

.docs-toc-section strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px
}

.docs-toc-section span {
    display: block;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.65
}

.docs-shell {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 48px;
    padding: 36px 5% 90px;
    align-items: start
}

.docs-sidebar {
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding-right: 8px
}

.docs-sidebar .docs-all {
    display: inline-block;
    font-size: 12px;
    color: var(--blue);
    font-weight: 600;
    margin-bottom: 14px
}

.docs-nav-panel {
    margin: 0
}

.docs-nav-summary {
    display: none;
    cursor: pointer;
    list-style: none;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 12px 14px;
    background: var(--paper);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink)
}

.docs-nav-summary::-webkit-details-marker {
    display: none
}

.docs-nav-summary::after {
    content: "▾";
    float: right;
    color: var(--muted)
}

.docs-nav-panel[open] .docs-nav-summary::after {
    content: "▴"
}

.docs-sidebar nav {
    display: grid;
    gap: 18px
}

.docs-nav-section h3 {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #7a8292;
    margin: 0 0 6px;
    padding-left: 2px
}

.docs-nav-tree,
.docs-nav-children {
    list-style: none;
    margin: 0;
    padding: 0
}

.docs-nav-tree {
    display: grid;
    gap: 1px
}

.docs-nav-parent {
    margin: 0 0 6px
}

.docs-nav-parent > a {
    display: block;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 650;
    color: var(--ink);
    line-height: 1.35
}

.docs-nav-children {
    margin: 1px 0 4px 9px;
    padding-left: 12px;
    border-left: 1px solid #d5dae3;
    display: grid;
    gap: 0
}

.docs-nav-children a {
    position: relative;
    display: block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12.5px;
    color: #5a6576;
    line-height: 1.4
}

.docs-nav-children a::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 50%;
    width: 9px;
    border-top: 1px solid #d5dae3
}

.docs-sidebar a:hover {
    background: var(--paper);
    color: var(--ink)
}

.docs-sidebar a[aria-current="page"] {
    background: #eef2ff;
    color: var(--blue);
    font-weight: 600
}

.docs-nav-children a[aria-current="page"] {
    background: #eef2ff
}

.docs-article {
    min-width: 0;
    max-width: 820px
}

.docs-breadcrumb {
    font-size: 11px;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: #8b93a3;
    margin-bottom: 10px
}

.docs-article h1 {
    font-size: clamp(32px, 3.4vw, 44px);
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin: 0 0 14px
}

.docs-article .lead {
    font-size: 17px;
    line-height: 1.75;
    color: #5a6373;
    margin: 0 0 28px
}

.docs-article h2 {
    font-size: 23px;
    letter-spacing: -.5px;
    margin: 40px 0 12px;
    padding-top: 8px;
    border-top: 1px solid var(--line)
}

.docs-article h3 {
    font-size: 16px;
    margin: 26px 0 8px
}

.docs-article p {
    font-size: 14px;
    line-height: 1.85;
    color: #546073
}

.docs-article ul,
.docs-article ol {
    font-size: 14px;
    line-height: 1.85;
    color: #546073;
    padding-left: 1.35rem
}

.docs-article li {
    margin: 6px 0
}

.docs-article a {
    color: var(--blue)
}

.docs-article a:hover {
    text-decoration: underline
}

.docs-article strong {
    color: var(--ink)
}

.docs-article code {
    font: 12.5px/1.5 ui-monospace, monospace;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: 1px 5px
}

.docs-article pre {
    background: #141824;
    color: #dfe4f2;
    border-radius: 6px;
    padding: 18px 20px;
    overflow: auto;
    font: 12.5px/1.7 ui-monospace, monospace;
    margin: 16px 0
}

.docs-article pre code {
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
    font-size: inherit
}

.docs-article table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
    font-size: 13px
}

.docs-article th,
.docs-article td {
    text-align: left;
    vertical-align: top;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line)
}

.docs-article th {
    font-size: 11px;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: #7a8292;
    background: var(--paper)
}

.docs-article td {
    color: #546073;
    line-height: 1.7
}

.docs-article td code {
    white-space: nowrap
}

.docs-note {
    margin: 20px 0;
    padding: 16px 18px;
    border: 1px solid #d7e0ff;
    background: #f3f6ff;
    border-radius: 6px
}

.docs-note strong {
    display: block;
    font-size: 12px;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: #365cf5;
    margin-bottom: 6px
}

.docs-note p {
    margin: 0;
    font-size: 13px;
    color: #3f4c66
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0
}

.docs-grid article {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 16px
}

.docs-grid h3 {
    margin: 0 0 6px;
    font-size: 14px
}

.docs-grid p {
    margin: 0;
    font-size: 12.5px;
    color: var(--muted)
}

.docs-pager {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 50px;
    padding-top: 24px;
    border-top: 1px solid var(--line)
}

.docs-pager a {
    display: block;
    max-width: 48%;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 14px 16px
}

.docs-pager a:hover {
    border-color: var(--blue)
}

.docs-pager span {
    display: block;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #8b93a3;
    margin-bottom: 6px
}

.docs-pager strong {
    font-size: 14px
}

.docs-pager .next {
    text-align: right;
    margin-left: auto
}

.docs-footer-note {
    margin-top: 36px;
    font-size: 12px;
    color: var(--muted)
}

.docs-footer-note a {
    color: var(--blue)
}

@media(max-width:1000px) {
    .docs-path {
        grid-template-columns: 1fr
    }

    .docs-toc-grid {
        grid-template-columns: 1fr
    }

    .docs-shell {
        grid-template-columns: 1fr;
        gap: 28px
    }

    .docs-sidebar {
        position: static;
        max-height: none;
        padding: 0
    }

    .docs-nav-summary {
        display: block
    }

    .docs-nav-panel:not([open]) > nav {
        display: none
    }

    .docs-sidebar nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 14px 4px 8px;
        gap: 16px
    }
}

@media(max-width:700px) {
    .docs-hero {
        padding: 36px 5% 28px
    }

    .docs-hero h1 {
        font-size: 36px;
        letter-spacing: -1.4px
    }

    .docs-path {
        padding: 28px 5% 10px
    }

    .docs-toc {
        padding: 18px 5% 50px
    }

    .docs-shell {
        padding: 24px 5% 60px
    }

    .docs-sidebar nav {
        grid-template-columns: 1fr;
        max-height: 55vh;
        overflow: auto
    }

    .docs-article h2 {
        font-size: 20px
    }

    .docs-grid {
        grid-template-columns: 1fr
    }

    .docs-pager {
        flex-direction: column
    }

    .docs-pager a {
        max-width: none
    }

    .docs-pager .next {
        text-align: left;
        margin-left: 0
    }

    .docs-article table {
        display: block;
        overflow-x: auto
    }
}

@media(prefers-reduced-motion:reduce) {

    .docs-path article,
    .docs-toc-section a,
    .docs-pager a {
        transition: none
    }
}
.docs-subpages {
    margin: 0 0 28px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper)
}

.docs-subpages-title {
    margin: 0 0 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #7a8292
}

.docs-subpages ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px
}

.docs-subpages a {
    display: block;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 12px 14px;
    background: #fff
}

.docs-subpages a:hover {
    border-color: var(--blue)
}

.docs-subpages strong {
    display: block;
    font-size: 13.5px;
    margin-bottom: 4px
}

.docs-subpages span {
    display: block;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.6
}

.docs-toc-children {
    list-style: none;
    margin: 8px 0 18px;
    padding-left: 14px;
    display: grid;
    gap: 8px;
    border-left: 1px solid var(--line)
}

.docs-toc-children a {
    padding: 10px 14px
}

.docs-toc-section li {
    margin: 0
}

@media(max-width:700px) {
    .docs-subpages ul {
        grid-template-columns: 1fr
    }
}

/* Syntax highlighting tokens (dark code blocks). */
.tok-comment {
    color: #7d8aa5;
    font-style: italic
}

.tok-string {
    color: #9fd48a
}

.tok-key {
    color: #8fb8ff
}

.tok-number {
    color: #f0b37e
}

.tok-keyword {
    color: #c792ea
}

.tok-type {
    color: #ffd479
}

.tok-api {
    color: #82d8ff
}

@media(prefers-reduced-motion:reduce) {
    .docs-nav-panel {
        transition: none
    }
}

/* Landing hero media and screenshot gallery. */
.docs-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
    gap: 40px;
    align-items: center
}

.docs-hero-media {
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 18px 40px #16213b1a;
    background: #fff
}

.docs-hero-media img {
    display: block;
    width: 100%;
    height: auto
}

.docs-hero-media figcaption,
.docs-gallery figcaption {
    padding: 10px 14px;
    font-size: 12px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    background: #fff
}

.docs-gallery {
    padding: 8px 7% 8px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px
}

.docs-gallery figure {
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow .15s, border-color .15s
}

.docs-gallery figure:hover {
    border-color: var(--blue);
    box-shadow: 0 10px 26px #16213b14
}

.docs-gallery img {
    display: block;
    width: 100%;
    height: auto
}

/* In-article figures. */
.docs-article figure.docs-figure,
.docs-figure {
    margin: 22px 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: #fff
}

.docs-figure img {
    display: block;
    width: 100%;
    height: auto
}

.docs-figure figcaption {
    padding: 10px 14px;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--muted);
    border-top: 1px solid var(--line)
}

@media(max-width:1000px) {
    .docs-hero-grid {
        grid-template-columns: 1fr
    }

    .docs-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

@media(max-width:700px) {
    .docs-hero-grid {
        gap: 24px
    }

    .docs-gallery {
        grid-template-columns: 1fr;
        padding: 4px 5% 4px
    }
}

.docs-gallery-inline {
    padding: 0;
    margin: 22px 0 8px
}

.docs-gallery-inline figcaption {
    text-align: center
}
