/* Align Python docs palette with C++ doxygen-awesome theme */

/* Light mode — match C++ doxygen-awesome light defaults */
:root {
    --primary: 207 79% 43%;          /* #1779c4 — C++ primary */
    --accent: 207 79% 43%;
    --ring: 207 79% 43%;
}

/* Dark mode — match C++ page-background #1C1D1F, sidebar #252628,
   foreground #d2dbde, primary #1982d2 */
.dark {
    --background: 220 5% 12%;       /* #1C1D1F */
    --foreground: 195 18% 84%;      /* #d2dbde */
    --card: 220 4% 15%;             /* #252628 */
    --card-foreground: 195 18% 84%;
    --muted: 220 4% 15%;            /* #252628 */
    --muted-foreground: 200 10% 55%;/* #859399 */
    --accent: 207 75% 46%;          /* #1982d2 */
    --accent-foreground: 195 18% 84%;
    --primary: 210 40% 98%;
    --border: 220 3% 22%;           /* #38393b */
    --input: 220 3% 22%;
    --ring: 207 75% 46%;
    --popover: 220 4% 15%;
    --popover-foreground: 200 15% 65%;
}

/* Dark mode toggle icon — match C++ doxygen-awesome:
   sun #FCBF00, moon #FE9700 */
button[title="Toggle color scheme"] svg:first-of-type {
    color: #FCBF00;
}
button[title="Toggle color scheme"] svg:last-of-type {
    color: #FE9700;
}

/* Code blocks — theme sets .highlight background to transparent,
   letting the blue-tinted muted color wash out syntax colors.
   Restore an opaque background matching C++ docs. */
.highlight {
    background: #f5f5f5 !important;
}
.dark .highlight {
    background: #282c34 !important;
}

