/* Eight palette colors from themeSettings.json. Light is the fallback; dark follows the OS. */
:root[data-theme="origineel"]{color-scheme:light;--background-color:#f6f2fa;--surface-color:#e9e1f0;--text-color:#3e344c;--heading-color:#211832;--muted-color:#6b587c;--border-color:#887199;--accent-color-1:#a51e69;--accent-color-2:#805000;}
@media(prefers-color-scheme:dark){:root[data-theme="origineel"]{color-scheme:dark;--background-color:#10112b;--surface-color:#252440;--text-color:#c9c1da;--heading-color:#ffffff;--muted-color:#aaa1c3;--border-color:#655587;--accent-color-1:#ff70bb;--accent-color-2:#ffcf7a;}}
:root[data-theme="origineel"] :is(.home-currently,.film-hero){--background-color:#10112b;--surface-color:#252440;--text-color:#c9c1da;--heading-color:#ffffff;--muted-color:#aaa1c3;--border-color:#655587;--accent-color-1:#ff70bb;--accent-color-2:#ffcf7a;}
:root[data-theme="bos"]{color-scheme:light;--background-color:#f3f5eb;--surface-color:#e1e8d8;--text-color:#344b38;--heading-color:#1e3426;--muted-color:#556b50;--border-color:#7b9070;--accent-color-1:#29643e;--accent-color-2:#705400;}
@media(prefers-color-scheme:dark){:root[data-theme="bos"]{color-scheme:dark;--background-color:#101e1a;--surface-color:#20382e;--text-color:#cad8c8;--heading-color:#f0f5e9;--muted-color:#a1b79f;--border-color:#557960;--accent-color-1:#9edba7;--accent-color-2:#f1ce82;}}
:root[data-theme="bos"] :is(.home-currently,.film-hero){--background-color:#101e1a;--surface-color:#20382e;--text-color:#cad8c8;--heading-color:#f0f5e9;--muted-color:#a1b79f;--border-color:#557960;--accent-color-1:#9edba7;--accent-color-2:#f1ce82;}
:root[data-theme="eiffel"]{color-scheme:light;--background-color:#2e2c37;--surface-color:#18171c;--text-color:#ffffff;--heading-color:#ff0073;--muted-color:#ffffff;--border-color:#2300ad;--accent-color-1:#5200ff;--accent-color-2:#ffbd37;}
@media(prefers-color-scheme:dark){:root[data-theme="eiffel"]{color-scheme:dark;--background-color:#2e2c37;--surface-color:#18171c;--text-color:#ffffff;--heading-color:#ff0073;--muted-color:#ffffff;--border-color:#2300ad;--accent-color-1:#5200ff;--accent-color-2:#ffbd37;}}
:root[data-theme="eiffel"] :is(.home-currently,.film-hero){--background-color:#2e2c37;--surface-color:#18171c;--text-color:#ffffff;--heading-color:#ff0073;--muted-color:#ffffff;--border-color:#2300ad;--accent-color-1:#5200ff;--accent-color-2:#ffbd37;}
:root {
 /* Compatibility aliases for the existing Ghost base and content cards. */
 --color-background:var(--background-color);
 --color-darkmode:var(--background-color);
 --color-title:var(--heading-color);
 --color-content:var(--text-color);
 --color-date:var(--muted-color);
 --color-tag:var(--accent-color-1);
 --color-secondary-text:var(--muted-color);
 --ghost-accent-color:var(--accent-color-1);
 --film-line:var(--border-color);
 --film-muted:var(--muted-color);
}
/* The legacy dark-mode class also supplies structural component styling. */
html,body {color-scheme:inherit;}
html {color-scheme:light;}
@media(prefers-color-scheme:dark) {html {color-scheme:dark;}}
::selection {color:var(--background-color);background:var(--accent-color-1);}
::-moz-selection {color:var(--background-color);background:var(--accent-color-1);}
html.dark-mode .gh-content code {color:var(--heading-color);background:var(--surface-color);}
.error-template .alx-error-404 {background:var(--background-color);}
@media(prefers-color-scheme:light) {
 html.dark-mode img {opacity:1;}
 html.dark-mode .gh-content :is(pre,kbd) {background:var(--surface-color);}
 html.dark-mode .gh-content table:not(.gist table) th {background:var(--surface-color);color:var(--heading-color);}
 html.dark-mode .gh-content table:not(.gist table) :is(th,td) {border-color:var(--border-color);}
 .kg-bookmark-card {color:var(--text-color);}
}
