/*
 * Token classes for the Go highlighting in godoc/highlight.go and
 * godoc/highlight_decl.go, and nothing else.
 *
 * The page's layout, typography and colours are the instance's — ecore's chrome
 * and the site stylesheet — so this file only has to agree with the scanner. It
 * carries a dark variant because a token colour is the one thing the site
 * stylesheet cannot override per theme without knowing these class names.
 */

.godoc .kw  { color: #d73a49; font-weight: 500; } /* keywords */
.godoc .str { color: #032f62; }                   /* string and rune literals */
.godoc .com { color: #6a737d; font-style: italic; } /* comments */
.godoc .num { color: #005cc5; }                   /* numeric literals */
.godoc .bi  { color: #6f42c1; }                   /* predeclared identifiers */

.source-code .kw  { color: #d73a49; font-weight: 500; }
.source-code .str { color: #032f62; }
.source-code .com { color: #6a737d; font-style: italic; }
.source-code .num { color: #005cc5; }
.source-code .bi  { color: #6f42c1; }

@media (prefers-color-scheme: dark) {
    .godoc .kw,  .source-code .kw  { color: #ff7b72; }
    .godoc .str, .source-code .str { color: #a5d6ff; }
    .godoc .com, .source-code .com { color: #8b949e; }
    .godoc .num, .source-code .num { color: #79c0ff; }
    .godoc .bi,  .source-code .bi  { color: #d2a8ff; }
}
