:root {
    --text: #1f2328;
    --muted: #59636e;
    --background: #ffffff;
    --panel: #f6f8fa;
    --border: #d1d9e0;
    --link: #0969da;
    --code: #eff2f5;
}

@media (prefers-color-scheme: dark) {
    :root {
        --text: #e6edf3;
        --muted: #9198a1;
        --background: #0d1117;
        --panel: #151b23;
        --border: #3d444d;
        --link: #4493f8;
        --code: #212830;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--background);
    font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
}

a {
    color: var(--link);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

code,
pre {
    font: 14px/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

code {
    background: var(--code);
    border-radius: 4px;
    padding: 0.1em 0.3em;
}

pre {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px 16px;
    overflow-x: auto;
}

pre code {
    background: none;
    padding: 0;
}

header {
    position: sticky;
    top: 0;
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 10px 16px;
    background: var(--panel);
    border-bottom: 1px solid var(--border);
    z-index: 1;
}

header .home {
    font-weight: 600;
    color: var(--text);
}

.search {
    position: relative;
    flex: 1;
    max-width: 480px;
}

#search {
    width: 100%;
    padding: 6px 10px;
    font: inherit;
    color: var(--text);
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 6px;
}

#results {
    position: absolute;
    left: 0;
    right: 0;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 6px;
    max-height: 70vh;
    overflow-y: auto;
}

#results:empty {
    display: none;
}

#results li {
    padding: 4px 10px;
}

#results li span {
    color: var(--muted);
    font-size: 14px;
}

main {
    max-width: 960px;
    margin: 0 auto;
    padding: 16px;
}

h1 {
    font-size: 28px;
    margin: 16px 0 8px;
}

h2 {
    font-size: 20px;
    margin: 0 0 8px;
}

h3 {
    font-size: 16px;
    margin: 16px 0 4px;
}

.kind {
    color: var(--muted);
    font-weight: normal;
}

.source {
    float: right;
    font-size: 14px;
    font-weight: normal;
}

.item {
    border-top: 1px solid var(--border);
    padding: 16px 0;
}

.signature {
    margin: 0 0 8px;
}

dl.members dt {
    margin-top: 8px;
}

dl.members dd {
    margin-left: 24px;
}

dl.members dd p {
    margin: 4px 0;
}

.contents {
    columns: 2 220px;
    padding-left: 20px;
}

.lines {
    padding: 0;
}

.lines span {
    display: block;
}

.lines span:target {
    background: var(--code);
}

.lines a {
    display: inline-block;
    width: 4em;
    padding-right: 1em;
    text-align: right;
    color: var(--muted);
    user-select: none;
}
