/* The look of the manual (idunn's zinc colours, the rose accent, Inter
   and JetBrains Mono) for the Doxygen reference. It comes after
   doxygen-awesome.css and changes only its variables. */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

html {
    --primary-color: #e11d48;
    --primary-dark-color: #be123c;
    --primary-light-color: #fb7185;
    --on-primary-color: #ffffff;
    --link-color: #e11d48;

    --page-background-color: #ffffff;
    --page-foreground-color: #09090b;
    --page-secondary-foreground-color: #71717a;
    --separator-color: #e4e4e7;
    --side-nav-background: #f6f6f7;
    --code-background: #f4f4f5;
    --fragment-background: #f4f4f5;
    --tablehead-background: #f4f4f5;
    --menu-selected-background: #e9e9ec;

    --border-radius-small: 6px;
    --border-radius-medium: 6px;
    --border-radius-large: 10px;

    --font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-family-monospace: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
    --page-font-size: 15px;
    --code-font-size: 13.5px;
}

@media (prefers-color-scheme: dark) {
    html:not(.light-mode) {
        --primary-color: #f43f5e;
        --primary-dark-color: #fda4af;
        --primary-light-color: #be123c;
        --link-color: #f43f5e;
        --page-background-color: #09090b;
        --page-foreground-color: #fafafa;
        --page-secondary-foreground-color: #a1a1aa;
        --separator-color: rgba(255, 255, 255, 0.1);
        --side-nav-background: #0b0b0d;
        --code-background: #18181b;
        --fragment-background: #18181b;
        --tablehead-background: #18181b;
        --menu-selected-background: #1f1f23;
    }
}

html.dark-mode {
    --primary-color: #f43f5e;
    --primary-dark-color: #fda4af;
    --primary-light-color: #be123c;
    --link-color: #f43f5e;
    --page-background-color: #09090b;
    --page-foreground-color: #fafafa;
    --page-secondary-foreground-color: #a1a1aa;
    --separator-color: rgba(255, 255, 255, 0.1);
    --side-nav-background: #0b0b0d;
    --code-background: #18181b;
    --fragment-background: #18181b;
    --tablehead-background: #18181b;
    --menu-selected-background: #1f1f23;
}

#ginnos-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0 0 6px -3px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-color);
    text-decoration: none;
}

/* The side bar theme gives the top area a fixed height. The link back to
   the manual makes the content of that area taller. */
html {
    --top-height: 146px;
}
