:root {
    --fg: #1d1d1f;
    --muted: #5f6368;
    --line: #e3e3e6;
    --bg: #fff;
    --soft: #f5f6f8;
    --accent: #df1b12;
}
@media (prefers-color-scheme: dark) {
    :root {
        --fg: #ececee;
        --muted: #a0a3a8;
        --line: #33353a;
        --bg: #16171a;
        --soft: #1f2125;
    }
}
header.site-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 10px 24px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    color: var(--fg);
    font:
        15px / 1.4 system-ui,
        sans-serif;
    position: relative;
    z-index: 1000;
}
header.site-header .brand {
    font-weight: 700;
    color: var(--fg);
    text-decoration: none;
}
header.site-header nav {
    display: flex;
    gap: 18px;
    flex: 1;
}
header.site-header nav a {
    color: var(--muted);
    text-decoration: none;
}
header.site-header nav a.active {
    color: var(--fg);
    font-weight: 600;
    box-shadow: inset 0 -2px var(--accent);
}
header.site-header select.version-picker {
    font: inherit;
    padding: 4px 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--soft);
    color: var(--fg);
}
.older-version-notice {
    background: #fff4e5;
    color: #6b3b00;
    padding: 8px 24px;
    font:
        14px system-ui,
        sans-serif;
    border-bottom: 1px solid #f3d9b1;
}
.older-version-notice a {
    color: inherit;
    font-weight: 600;
}
body:not(:has(.tsd-page-toolbar)) {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font:
        16px / 1.6 system-ui,
        sans-serif;
}
.layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    max-width: 1200px;
    margin: 0 auto;
}
aside {
    border-right: 1px solid var(--line);
    padding: 16px 12px;
    font-size: 14px;
    position: sticky;
    top: 0;
    align-self: start;
    max-height: 100vh;
    overflow: auto;
}
aside ul {
    list-style: none;
    margin: 0;
    padding-left: 12px;
}
aside > ul {
    padding-left: 0;
}
aside li {
    margin: 2px 0;
}
aside span {
    display: block;
    margin-top: 10px;
    font-weight: 600;
}
aside a {
    color: var(--muted);
    text-decoration: none;
}
aside a.active {
    color: var(--accent);
    font-weight: 600;
}
main {
    padding: 8px 40px 64px;
    min-width: 0;
}
main a {
    color: #0b63c5;
}
main pre {
    background: var(--soft);
    padding: 12px 16px;
    border-radius: 8px;
    overflow: auto;
    font-size: 14px;
}
main code {
    font-size: 0.92em;
}
main table {
    border-collapse: collapse;
}
main td,
main th {
    border: 1px solid var(--line);
    padding: 6px 10px;
    text-align: left;
    vertical-align: top;
}
main blockquote {
    margin: 16px 0;
    padding: 8px 16px;
    border-left: 4px solid var(--accent);
    background: var(--soft);
}
main img {
    max-width: 100%;
}
main.landing {
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px;
}
.latest-badge {
    background: var(--accent);
    color: #fff;
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 12px;
}
@media (max-width: 760px) {
    .layout {
        grid-template-columns: 1fr;
    }
    aside {
        position: static;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        max-height: none;
    }
    main {
        padding: 8px 16px 48px;
    }
    header.site-header {
        flex-wrap: wrap;
        padding: 10px 16px;
    }
}
figure.d2 {
    margin: 16px 0;
    overflow-x: auto;
}
figure.d2 > svg {
    max-width: 100%;
    height: auto;
}
