/* Dark mode. Applied when <html data-theme="dark">; set before paint by the inline head script, switched by theme.js. Screen only: printing stays light. */
.theme-btn{background:none;border:0;cursor:pointer;font:16px/1 'Helvetica Neue',Helvetica,Arial,sans-serif;color:#555;padding:0 2px;margin-left:2px}
.theme-btn:hover{color:#000}
@media screen{
html[data-theme=dark]{color-scheme:dark}
html[data-theme=dark] body{background:#121212!important;color:#d8d8d8}
html[data-theme=dark] :is(p,li,td,th,span,div,ol,ul,figcaption,em,i,label,a,small){color:#c4c4c4!important}
html[data-theme=dark] :is(.cv-date,.caption,.meta,.cv-sub,figcaption,.g-n){color:#9c9c9c!important}
html[data-theme=dark] :is(header,footer,nav,section,article,aside){background-color:transparent!important}
html[data-theme=dark] nav a:hover,html[data-theme=dark] nav a.active,html[data-theme=dark] .theme-btn:hover{color:#fff!important}
html[data-theme=dark] .theme-btn{color:#ccc}
html[data-theme=dark] :is(.g-n,footer,footer *){color:#8a8a8a!important}
html[data-theme=dark] :is(header,footer,details,hr,td,th,table,img){border-color:#2c2c2c!important}
html[data-theme=dark] .cv-section>h2{border-color:#bbb!important}
html[data-theme=dark] img.logo{filter:invert(1)}
html[data-theme=dark] .slideshow{background:#1c1c1c!important}
html[data-theme=dark] .ss-dots .dot{background:#555!important}
html[data-theme=dark] .ss-dots .dot.active{background:#ddd!important}
html[data-theme=dark] :is([style*="background:#fff"],[style*="background: #fff"],[style*="background:#f5f5f5"],[style*="background: #f5f5f5"],[style*="background:#eee"],[style*="background: #eee"]){background:#1c1c1c!important}
html[data-theme=dark] [style*="color"]:not([style*="background:#0"],[style*="background: #0"],[style*="background:#1"]){color:#c4c4c4!important}
html[data-theme=dark] main a:not(.plain){text-decoration-color:#555}
html[data-theme=dark] :is(h1,h2,h3,h4,h5,summary,.site-name,.page-title,b,strong){color:#ececec!important}
html[data-theme=dark] :is(footer,footer *){color:#8a8a8a!important}
}
