/* Overwriting rust theme because I can't add a theme without rebundling everything else. */
.rust {
    --bg: hsl(263, 30%, 7%);
    --fg: hsl(255, 30%, 87%);

    --sidebar-bg: hsl(263, 24%, 12%);
    --sidebar-fg: hsl(260, 30%, 88%);
    --sidebar-non-existant: hsl(265, 12%, 46%);
    --sidebar-active: #f2b86c;
    --sidebar-spacer: hsl(265, 17%, 22%);

    --scrollbar: var(--sidebar-fg);

    --icons: #a390c8;
    --icons-hover: #e7dfff;

    --links: #f7c376;

    --inline-code-color: #c9a564;

    --theme-popup-bg: #171328;
    --theme-popup-border: #4f446c;
    --theme-hover: #241d36;

    --quote-bg: hsl(264, 22%, 16%);
    --quote-border: hsl(265, 22%, 24%);

    --warning-border: #ff8d52;

    --table-border-color: hsl(265, 18%, 17%);
    --table-header-bg: hsl(266, 18%, 23%);
    --table-alternate-bg: hsl(264, 18%, 10%);

    --searchbar-border-color: #756891;
    --searchbar-bg: #261d35;
    --searchbar-fg: #f3eeff;
    --searchbar-shadow-color: #7cf2b0;
    --searchresults-header-fg: #d9cef5;
    --searchresults-border-color: #7a6ca0;
    --searchresults-li-bg: #1d172d;
    --search-mark-bg: #78efaa;

    --color-scheme: dark;

    /* Same as `--icons` */
    --copy-button-filter: invert(62%) sepia(11%) saturate(480%) hue-rotate(216deg) brightness(96%) contrast(87%);
    /* Same as `--sidebar-active` */
    --copy-button-filter-hover: invert(74%) sepia(45%) saturate(390%) hue-rotate(344deg) brightness(106%) contrast(100%);

    --footnote-highlight: #5d7ef4;

    --overlay-bg: rgba(18, 12, 29, 0.54);

    --blockquote-note-color: #88a7ff;
    --blockquote-tip-color: #7cf1b3;
    --blockquote-important-color: #d1b7ff;
    --blockquote-warning-color: #ffbf6a;
    --blockquote-caution-color: #ff6e7c;

    --sidebar-header-border-color: #f7c376;

    /* Additional custom */
    --content-max-width: 60%;
}
