/* always-on: theme toggle button, blog featured layout. Dark mode = original dark design (pw-light.css disabled) plus the fixes below. */
.pwh-theme{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:12px;border:1px solid currentColor;background:transparent;color:#14122b;cursor:pointer;padding:0}
.pwh-theme svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.pwh-theme .pwh-sun{display:none}
.pwh-theme:focus-visible{outline:3px solid #5a3df0;outline-offset:2px}
html[data-pw-theme=dark] .pwh-theme{color:#fff}html[data-pw-theme=dark] .pwh-theme .pwh-sun{display:block}html[data-pw-theme=dark] .pwh-theme .pwh-moon{display:none}
.pwb-feat{grid-template-columns:1fr;align-items:start}.pwb-feat .pwb-cover{height:auto}.pwb-feat .pwb-cover img{height:auto;min-height:0;aspect-ratio:16/9;object-fit:cover}
html{color-scheme:light}html[data-pw-theme=dark]{color-scheme:dark}
/* ---- dark mode content layer ---- */
html[data-pw-theme=dark] body,html[data-pw-theme=dark] #page,html[data-pw-theme=dark] .site-content,html[data-pw-theme=dark] body.pw-blogpage .site-content{background:#0e1020!important}
html[data-pw-theme=dark]{--pw-ink:#f2f1ff;--pw-ink2:#e5e4fa;--pw-text:#d3d2e6;--pw-muted:#b4b6d2;--pw-line:#2b2e4d;--pw-bg:#131630}
html[data-pw-theme=dark] .ph{--tx:#d3d2e6;--mu:#b4b6d2;--ln:#2b2e4d;--bg:#131630}
html[data-pw-theme=dark] .ph :is(.ph-marq,.ph-intro,.ph-play,.ph-faq,.ph-ss,.ph-stds,.ph-blog,.ph-ctwrap,.ph-ctw){background:#0e1020}
html[data-pw-theme=dark] .ph :is(.ph-svc,.ph-ss-alt){background:#131630}
html[data-pw-theme=dark] .ph :is(.ph-ty,.ph-bc,.ph-post,.ph-fi,.ph-ctf,.ph-std,.ph-sv,.ph-btn-o){background:#181b38;border-color:#2b2e4d;color:#d3d2e6!important}
html[data-pw-theme=dark] .ph :is(.ph-marq,.ph-intro,.ph-play,.ph-faq,.ph-ss,.ph-stds,.ph-blog,.ph-svc,.ph-ctw) :is(h1,h2,h3,h4,summary,b,strong){color:#f2f1ff}
html[data-pw-theme=dark] .ph :is(.ph-ss,.ph-faq,.ph-stds,.ph-svc,.ph-play,.ph-intro,.ph-blog,.ph-ctw) :is(p,li,span,small,.ph-fa){color:#d3d2e6}
html[data-pw-theme=dark] .ph .ph-eye{color:#c4b8ff;background:rgba(196,184,255,.12)}
html[data-pw-theme=dark] .ph .ph-ss-main .ph-eye,html[data-pw-theme=dark] .ph .ph-ss-side a:not(.ph-btn){color:#a9d4ff}
html[data-pw-theme=dark] .ph .wpcf7 :is(input,select,textarea){background:#0e1020;color:#f2f1ff;border-color:#8a8db3}
html[data-pw-theme=dark] .ph .wpcf7 label,html[data-pw-theme=dark] .ph .wpcf7 ::placeholder{color:#c9c9e2}
html[data-pw-theme=dark] .ph-ss-side .ph-ss-links a{color:#a9d4ff}
/* blog + article */
html[data-pw-theme=dark] .pwb :is(.pwb-feat,.pwb-card,.pwb-widget,.pwb-side>*,.pwb-toc,.pwb-toc-m,.pwb-share,.pwb-author,.pwb-related a){background:#181b38;border-color:#2b2e4d}
html[data-pw-theme=dark] .pwb :is(h1,h2,h3,h4,.pwb-feat h2 a,.pwb-card h3 a,.pwb-toc a){color:#f2f1ff}
html[data-pw-theme=dark] .pwb :is(p,li,span,small,.pwb-meta,blockquote,td,th){color:#d3d2e6}
html[data-pw-theme=dark] .pwb a:not(.pw-btn):not(.pwb-chips a):not(.pwb-chip){color:#a9d4ff}
html[data-pw-theme=dark] .pwb .pwb-chip{color:#c4b8ff;background:rgba(196,184,255,.14)}
html[data-pw-theme=dark] .pwb .pwb-chips a{background:transparent;color:#e6e9ff;border-color:rgba(255,255,255,.35)}
html[data-pw-theme=dark] .pwb-flag{color:#ffb78f;background:rgba(255,140,80,.14)}
html[data-pw-theme=dark] .pw-aff,html[data-pw-theme=dark] .pwb-content blockquote{background:#181b38;border-color:#2b2e4d}
html[data-pw-theme=dark] .pwb-content :is(p,li,h2,h3){color:#d3d2e6}html[data-pw-theme=dark] .pwb-content :is(h2,h3,strong){color:#f2f1ff}
html[data-pw-theme=dark] .pwb-content a{color:#a9d4ff}
