/*
 * Spectral Docs — CSS Variables
 * Single dark theme, all variants point to the same palette
 */

/* Globals */
:root {
    --sidebar-target-width: 300px;
    --sidebar-width: min(var(--sidebar-target-width), 80vw);
    --sidebar-resize-indicator-width: 8px;
    --sidebar-resize-indicator-space: 2px;
    --page-padding: 0px;
    --content-max-width: 820px;
    --menu-bar-height: 0px;
    --mono-font: "Source Code Pro", Consolas, "Ubuntu Mono", Menlo, "DejaVu Sans Mono", monospace, monospace;
    --code-font-size: 13px;
    --searchbar-margin-block-start: 5px;
}

/* Single dark theme — applied to all variants */
.ayu, .coal, .light, .navy, .rust,
html:not(.js) {
    /* Background & foreground */
    --bg: #1e1e1e;
    --fg: #d4d4d4;

    /* Text hierarchy */
    --heading-color: #e5e5e5;
    --text-secondary: #ccc;
    --text-muted: #999;

    /* Code */
    --code-bg: #2d2d2d;
    --inline-code-color: #ce9178;

    /* Links & accents */
    --links: #ce9178;
    --sidebar-active: #ce9178;
    --sidebar-header-border-color: #ce9178;
    --footnote-highlight: #ce9178;
    --quote-border: #ce9178;

    /* Sidebar */
    --sidebar-bg: #252525;
    --sidebar-fg: #bbb;
    --sidebar-non-existant: #666;
    --sidebar-spacer: #333;

    /* Borders */
    --border-color: #333;
    --border-strong: #444;
    --searchbar-border-color: #404040;

    /* Surfaces */
    --theme-hover: #2a2a2a;
    --surface-raised: #262626;
    --surface-inset: #232323;
    --quote-bg: #252525;

    /* Icons */
    --scrollbar: #555;
    --icons: #888;
    --icons-hover: #ccc;

    /* Tables (aliases for clarity) */
    --table-border-color: var(--border-color);
    --table-header-bg: var(--theme-hover);
    --table-alternate-bg: var(--surface-inset);

    /* Search */
    --searchbar-bg: var(--surface-raised);
    --searchbar-fg: var(--fg);
    --searchbar-shadow-color: transparent;
    --searchresults-header-fg: var(--icons);
    --searchresults-border-color: var(--border-color);
    --searchresults-li-bg: var(--surface-raised);
    --search-mark-bg: #4a3a2a;

    /* Theme popup */
    --theme-popup-bg: var(--sidebar-bg);
    --theme-popup-border: var(--border-strong);

    /* Warnings & alerts */
    --warning-border: #e5a04a;
    --blockquote-note-color: #ce9178;
    --blockquote-tip-color: #4ade80;
    --blockquote-important-color: #c586c0;
    --blockquote-warning-color: #e5a04a;
    --blockquote-caution-color: #d16969;

    /* Misc */
    --color-scheme: dark;
    --overlay-bg: rgba(0, 0, 0, 0.5);
    --copy-button-filter: invert(60%) sepia(0%) saturate(0%) brightness(80%);
    --copy-button-filter-hover: invert(70%) sepia(20%) saturate(500%) hue-rotate(180deg) brightness(90%);
}
