/* Expand JetBrains Mono to include box-drawing glyphs (U+2500-257F). */
@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono&text=%E2%94%8C%E2%94%80%E2%94%AC%E2%94%90%E2%94%82%E2%94%86%E2%95%9E%E2%95%90%E2%95%AA%E2%95%A1%E2%94%94%E2%94%B4%E2%94%98&display=swap");

:root, [data-md-color-scheme=default] {
    --md-accent-fg-color: #0075ff;
    --md-accent-fg-color--transparent: #1175ff1F;
    --md-accent-bg-color: #fff;

    --md-primary-fg-color: #000;
    --md-primary-bg-color: #fff;

    --hljs-comment: #787a87;
    --hljs-keyword: #df41fb;
    --hljs-string: #00ae58;
    --hljs-attr: #abb2bf;
    --hljs-type: #879300;
    --hljs-number: #e16900;
    --hljs-title: #0058d5;
    --hljs-built_in: #06afb8;
}

:root, [data-md-color-scheme=slate] {
    --md-accent-fg-color: #df41fb;
    --md-accent-fg-color--transparent: #df41fb1a;
    --md-accent-bg-color: #fff;

    --md-primary-fg-color: #fff;
    --md-primary-bg-color: #fff;

    --hljs-comment: #5c6370;
    --hljs-keyword: #df41fb;
    --hljs-string: #2fb170;
    --hljs-attr: #abb2bf;
    --hljs-type: #E4B962;
    --hljs-number: #d0864a;
    --hljs-title: #5488e8;
    --hljs-built_in: #2AAFB0;
}

.md-footer-meta {
    background-color: transparent;
}

.hljs-comment, .hljs-quote {
    color: var(--hljs-comment);
    font-weight: 500;
}

.hljs-formula, .hljs-keyword, .hljs-literal {
    color: var(--hljs-keyword);
}

.hljs-addition, .hljs-attribute, .hljs-string, .hljs-regexp, .hljs-string {
    color: var(--hljs-string);
}

.hljs-attr {
    color: var(--hljs-attr);
}

.hljs-type, .hljs-meta {
    color: var(--hljs-type);
}

.hljs-number, .hljs-selector-attr, .hljs-selector-class, .hljs-selector-pseudo, .hljs-template-variable, .hljs-variable {
    color: var(--hljs-number);
}

.hljs-bullet, .hljs-link, .hljs-selector-id, .hljs-symbol, .hljs-title, .hljs-class .hljs-title, .hljs-title.class_ {
    color: var(--hljs-title);
}

.hljs-built_in, .hljs-deletion, .hljs-name, .hljs-section, .hljs-selector-tag, .hljs-subst {
    color: var(--hljs-built_in);
}

.hljs-emphasis {
    font-style: italic
}

.hljs-strong {
    font-weight: 700
}

.hljs-link {
    text-decoration: underline
}

.hljs-sql-text {
    color: var(--md-code-fg-color);
}

.md-grid {
    max-width: 67rem;
}

/* The benchmark table, printed by benchmarks/plot.py: per size a summary row whose checkbox shows
   one row per run, without JavaScript. The table itself keeps no class, so the theme's table
   styles still apply; these rules repeat the theme's selectors under the wrapper to win. */
.md-typeset .benchmark-table table:not([class]) th:not([align]),
.md-typeset .benchmark-table table:not([class]) td:not([align]) {
    text-align: right;
    padding-left: 0.75em;
    padding-right: 0.75em;
}

.md-typeset .benchmark-table table:not([class]) th {
    min-width: 0;
}

.md-typeset .benchmark-table table:not([class]) td {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* The chevron at the cell's left edge, so that all of them line up; the size stays right-aligned. */
.md-typeset .benchmark-table label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8em;
    cursor: pointer;
}

/* The checkbox, drawn as a chevron: pointing right when closed, down when open. */
.md-typeset .benchmark-table input[type="checkbox"] {
    appearance: none;
    width: 0.45em;
    height: 0.45em;
    margin: 0 0.15em;
    border-right: 0.12em solid currentColor;
    border-bottom: 0.12em solid currentColor;
    transform: rotate(-45deg);
    transition: transform 0.15s;
    cursor: pointer;
}

.md-typeset .benchmark-table input[type="checkbox"]:checked {
    transform: rotate(45deg);
}

.md-typeset .benchmark-table input[type="checkbox"]:focus-visible {
    outline: 0.1em solid var(--md-accent-fg-color);
    outline-offset: 0.25em;
}

.md-typeset .benchmark-table table:not([class]) tr.run {
    display: none;
}

.md-typeset .benchmark-table table:not([class]) tbody:has(input:checked) tr.run {
    display: table-row;
}

.md-typeset .benchmark-table table:not([class]) tr.run td {
    padding-top: 0.15em;
    padding-bottom: 0.15em;
    border-top: none;
    font-size: 0.9em;
    color: var(--md-default-fg-color--light);
}

.md-typeset .benchmark-table table:not([class]) tr.run:last-child td {
    padding-bottom: 0.6em;
}
