/* Theme for github.com/SamHennessy/hlivedocs/src/gild syntax highlighting
 * output. gild itself only emits `class="gild-<capture>"` on token spans and
 * a base `class="gild"` on the root element — all color comes from here.
 * Reuses this site's existing custom properties (see main.css :root) where
 * they fit; falls back to a small dark-theme palette otherwise.
 */

.gild {
    color: var(--text-primary);
}

.gild-keyword {
    color: var(--secondary);
}

.gild-string,
.gild-string-special {
    color: #a3e635;
}

.gild-comment {
    color: var(--text-muted);
    font-style: italic;
}

.gild-number,
.gild-boolean,
.gild-constant,
.gild-constant-builtin {
    color: var(--accent);
}

.gild-function,
.gild-function-builtin,
.gild-function-call {
    color: #60a5fa;
}

.gild-type,
.gild-type-builtin {
    color: #f59e0b;
}

.gild-variable-builtin {
    color: var(--primary);
}

.gild-property {
    color: var(--text-secondary);
}

.gild-punctuation-bracket,
.gild-punctuation-delimiter,
.gild-punctuation-special,
.gild-operator {
    color: var(--text-secondary);
}
