/* toggle button */
.theme-btn{width:60px;height:60px;padding:0;border:none;border-radius:50%;background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.06);display:flex;align-items:center;justify-content:center;cursor:pointer;flex:none;transition:transform .2s}
.theme-btn:hover{transform:rotate(-12deg) scale(1.06)}
.theme-btn svg{display:block}
@media (max-width:820px){.theme-btn{width:52px;height:52px}}
html[data-theme="dark"] .theme-btn{background:#1E1E1E;box-shadow:0 2px 14px rgba(0,0,0,.55)}
/* shared classes */
html[data-theme="dark"] .site-nav{background:#1E1E1E;box-shadow:0 2px 14px rgba(0,0,0,.55)}
html[data-theme="dark"] .site-nav a{color:#9A958D}
html[data-theme="dark"] .site-nav a[aria-current="page"],html[data-theme="dark"] .site-nav .logo,html[data-theme="dark"] .home .site-nav a{color:#EDE9E1}
html[data-theme="dark"] .pill:not(.outline),html[data-theme="dark"] .circle{background:#EDE9E1;color:#141414}
html[data-theme="dark"] .pill.outline{color:#EDE9E1;border-color:#EDE9E1}
/* avatar glow */
html[data-theme="dark"] #ld-me,html[data-theme="dark"] #abMe,html[data-theme="dark"] #me{filter:drop-shadow(0 0 10px rgba(255,220,120,.85)) drop-shadow(0 0 40px rgba(255,214,102,.55)) drop-shadow(0 0 90px rgba(255,200,40,.35));transition:filter .4s}
/* designaari dark mode */
html[data-theme="dark"] body{background:#121212;color:#EDE9E1}
html[data-theme="dark"] a:not(#wk-proj, #wk-proj *){color:#EDE9E1}
html[data-theme="dark"] nav[style]{background:#1E1E1E !important;color:#EDE9E1 !important;box-shadow:0 2px 14px rgba(0,0,0,.55) !important}
html[data-theme="dark"] nav[style] a{color:#EDE9E1 !important}
html[data-theme="dark"] nav[style] a[style*="color: #6A6A6A"],html[data-theme="dark"] nav[style] a[style*="color: rgb(106, 106, 106)"]{color:#9A958D !important}
html[data-theme="dark"] [style*="background: #FFFFFF"]:not(#wk-proj, #wk-proj *),html[data-theme="dark"] [style*="background: rgb(255, 255, 255)"]:not(#wk-proj, #wk-proj *),html[data-theme="dark"] [style*="background: #FFC828"]:not(#wk-proj, #wk-proj *),html[data-theme="dark"] [style*="background: rgb(255, 200, 40)"]:not(#wk-proj, #wk-proj *),html[data-theme="dark"] [style*="background: #F4F1EA"]:not(#wk-proj, #wk-proj *),html[data-theme="dark"] [style*="background: rgb(244, 241, 234)"]:not(#wk-proj, #wk-proj *),html[data-theme="dark"] [style*="background: #F6F4EF"]:not(#wk-proj, #wk-proj *),html[data-theme="dark"] [style*="background: rgb(246, 244, 239)"]:not(#wk-proj, #wk-proj *),html[data-theme="dark"] [style*="background: #F7F5F1"]:not(#wk-proj, #wk-proj *),html[data-theme="dark"] [style*="background: rgb(247, 245, 241)"]:not(#wk-proj, #wk-proj *),html[data-theme="dark"] [style*="background: #F2EBDD"]:not(#wk-proj, #wk-proj *),html[data-theme="dark"] [style*="background: rgb(242, 235, 221)"]:not(#wk-proj, #wk-proj *),html[data-theme="dark"] [style*="background: #FFE3E4"]:not(#wk-proj, #wk-proj *),html[data-theme="dark"] [style*="background: rgb(255, 227, 228)"]:not(#wk-proj, #wk-proj *),html[data-theme="dark"] [style*="background: #D6E2FF"]:not(#wk-proj, #wk-proj *),html[data-theme="dark"] [style*="background: rgb(214, 226, 255)"]:not(#wk-proj, #wk-proj *),html[data-theme="dark"] [style*="background: #E9EEF7"]:not(#wk-proj, #wk-proj *),html[data-theme="dark"] [style*="background: rgb(233, 238, 247)"]:not(#wk-proj, #wk-proj *),html[data-theme="dark"] [style*="background: #F6EFE2"]:not(#wk-proj, #wk-proj *),html[data-theme="dark"] [style*="background: rgb(246, 239, 226)"]:not(#wk-proj, #wk-proj *),html[data-theme="dark"] [style*="background: #F2F1EE"]:not(#wk-proj, #wk-proj *),html[data-theme="dark"] [style*="background: rgb(242, 241, 238)"]:not(#wk-proj, #wk-proj *),html[data-theme="dark"] [style*="background: #DDD8CE"]:not(#wk-proj, #wk-proj *),html[data-theme="dark"] [style*="background: rgb(221, 216, 206)"]:not(#wk-proj, #wk-proj *),html[data-theme="dark"] [style*="background: #F3E9D6"]:not(#wk-proj, #wk-proj *),html[data-theme="dark"] [style*="background: rgb(243, 233, 214)"]:not(#wk-proj, #wk-proj *),html[data-theme="dark"] [style*="background: #2EC4B6"]:not(#wk-proj, #wk-proj *),html[data-theme="dark"] [style*="background: rgb(46, 196, 182)"]:not(#wk-proj, #wk-proj *),html[data-theme="dark"] [style*="background: #FF5DA2"]:not(#wk-proj, #wk-proj *),html[data-theme="dark"] [style*="background: rgb(255, 93, 162)"]:not(#wk-proj, #wk-proj *),html[data-theme="dark"] [style*="background: #DDF6F3"]:not(#wk-proj, #wk-proj *),html[data-theme="dark"] [style*="background: rgb(221, 246, 243)"]:not(#wk-proj, #wk-proj *){color:#141414}
html[data-theme="dark"] [style*="; color: #141414"]:not([style*="background: #"]):not([style*="background: rgb"]):not(#wk-proj, #wk-proj *),html[data-theme="dark"] [style*="; color: rgb(20, 20, 20)"]:not([style*="background: #"]):not([style*="background: rgb"]):not(#wk-proj, #wk-proj *),html[data-theme="dark"] [style^="color: #141414"]:not(#wk-proj, #wk-proj *),html[data-theme="dark"] [style^="color: rgb(20, 20, 20)"]:not(#wk-proj, #wk-proj *){color:#EDE9E1 !important}
html[data-theme="dark"] [style*="color: #4A4A4A"]:not(#wk-proj, #wk-proj *),html[data-theme="dark"] [style*="color: rgb(74, 74, 74)"]:not(#wk-proj, #wk-proj *),html[data-theme="dark"] [style*="color: #5E5A57"]:not(#wk-proj, #wk-proj *),html[data-theme="dark"] [style*="color: rgb(94, 90, 87)"]:not(#wk-proj, #wk-proj *){color:#B8B2A8 !important}
html[data-theme="dark"] [style*="color: #6A6A6A"]:not(#wk-proj, #wk-proj *),html[data-theme="dark"] [style*="color: rgb(106, 106, 106)"]:not(#wk-proj, #wk-proj *),html[data-theme="dark"] [style*="color: #7A7A7A"]:not(#wk-proj, #wk-proj *),html[data-theme="dark"] [style*="color: rgb(122, 122, 122)"]:not(#wk-proj, #wk-proj *),html[data-theme="dark"] [style*="color: #8A8A8A"]:not(#wk-proj, #wk-proj *),html[data-theme="dark"] [style*="color: rgb(138, 138, 138)"]:not(#wk-proj, #wk-proj *){color:#9A958D !important}
html[data-theme="dark"] [style*="color: #3A3A3A"]:not(#wk-proj, #wk-proj *),html[data-theme="dark"] [style*="color: rgb(58, 58, 58)"]:not(#wk-proj, #wk-proj *),html[data-theme="dark"] [style*="color: #9A9A9A"]:not(#wk-proj, #wk-proj *),html[data-theme="dark"] [style*="color: rgb(154, 154, 154)"]:not(#wk-proj, #wk-proj *){color:#B8B2A8 !important}
html[data-theme="dark"] [style*="border-bottom: 2px solid #141414"]:not(#wk-proj, #wk-proj *),html[data-theme="dark"] [style*="border-bottom: 2px solid rgb(20, 20, 20)"]:not(#wk-proj, #wk-proj *),html[data-theme="dark"] [style*="border-top: 2px solid #141414"]:not(#wk-proj, #wk-proj *),html[data-theme="dark"] [style*="border-top: 2px solid rgb(20, 20, 20)"]:not(#wk-proj, #wk-proj *){border-color:#4A4A4A !important}
html[data-theme="dark"] a[style*="background: #141414"]:not(#wk-proj, #wk-proj *),html[data-theme="dark"] a[style*="background: rgb(20, 20, 20)"]:not(#wk-proj, #wk-proj *){background:#EDE9E1 !important;color:#141414 !important}
html[data-theme="dark"] [style*="background: #F1EEE8"]:not(#wk-proj, #wk-proj *),html[data-theme="dark"] [style*="background: rgb(241, 238, 232)"]:not(#wk-proj, #wk-proj *){background:#1E1E1E !important}
html[data-theme="dark"] section[style*="background-color: #FFFFFF"]:not(#wk-proj, #wk-proj *),html[data-theme="dark"] section[style*="background-color: rgb(255, 255, 255)"]:not(#wk-proj, #wk-proj *),html[data-theme="dark"] section[style*="background-color: #F4F1EA"]:not(#wk-proj, #wk-proj *),html[data-theme="dark"] section[style*="background-color: rgb(244, 241, 234)"]:not(#wk-proj, #wk-proj *),html[data-theme="dark"] section[style*="background-color: #F6F6F1"]:not(#wk-proj, #wk-proj *),html[data-theme="dark"] section[style*="background-color: rgb(246, 246, 241)"]:not(#wk-proj, #wk-proj *){background-color:#121212 !important;background-image:radial-gradient(#2C2C2C 1.4px,transparent 1.6px) !important;color:#EDE9E1}
html[data-theme="dark"] footer{background:#0A0A0A !important;border-top:1px solid #2A2A2A}
html[data-theme="dark"] a[style*="border: 2px solid #141414"]:not(#wk-proj, #wk-proj *),html[data-theme="dark"] a[style*="border: 2px solid rgb(20, 20, 20)"]:not(#wk-proj, #wk-proj *){border-color:#EDE9E1 !important}
/* contrast helper classes (set by theme.js) */
html[data-theme="dark"] .dk-on-dark{color:#EDE9E1 !important}
html[data-theme="dark"] .dk-on-light{color:#141414 !important}
/* buttons beat the generic link colour */
html[data-theme="dark"] .pill:not(.outline),html[data-theme="dark"] .circle{background:#EDE9E1 !important;color:#141414 !important}
html[data-theme="dark"] .pill.outline{color:#EDE9E1 !important;border-color:#EDE9E1 !important}
/* big light sections go dark */
html[data-theme="dark"] section[style*="background-color:#fff"],html[data-theme="dark"] section[style*="background:#F4F1EA"],html[data-theme="dark"] .gridwrap,html[data-theme="dark"] .lab{background-color:#121212 !important;background-image:radial-gradient(#2C2C2C 1.4px,transparent 1.6px) !important;background-size:16px 16px !important}
html[data-theme="dark"] .labbar{background:#1E1E1E}
/* work page */
html[data-theme="dark"] .switch-bar{background:rgba(30,30,30,.92);box-shadow:0 6px 24px rgba(0,0,0,.4)}
html[data-theme="dark"] .card{background:#1E1E1E}
html[data-theme="dark"] .card{border-radius:0 !important;background:#EDE9E1;padding:6px;overflow:visible;clip-path:polygon(12px 0,calc(100% - 12px) 0,calc(100% - 12px) 6px,calc(100% - 6px) 6px,calc(100% - 6px) 12px,100% 12px,100% calc(100% - 12px),calc(100% - 6px) calc(100% - 12px),calc(100% - 6px) calc(100% - 6px),calc(100% - 12px) calc(100% - 6px),calc(100% - 12px) 100%,12px 100%,12px calc(100% - 6px),6px calc(100% - 6px),6px calc(100% - 12px),0 calc(100% - 12px),0 12px,6px 12px,6px 6px,12px 6px)}
html[data-theme="dark"] .card img{border-radius:0;clip-path:polygon(8px 0,calc(100% - 8px) 0,calc(100% - 8px) 4px,calc(100% - 4px) 4px,calc(100% - 4px) 8px,100% 8px,100% calc(100% - 8px),calc(100% - 4px) calc(100% - 8px),calc(100% - 4px) calc(100% - 4px),calc(100% - 8px) calc(100% - 4px),calc(100% - 8px) 100%,8px 100%,8px calc(100% - 4px),4px calc(100% - 4px),4px calc(100% - 8px),0 calc(100% - 8px),0 8px,4px 8px,4px 4px,8px 4px)}
html[data-theme="dark"] .rack .rail{background:#6A6A6A;box-shadow:0 3px 0 #3A3A3A}
html[data-theme="dark"] .rack .floor{background:#6A6A6A}
html[data-theme="dark"] .seg[aria-pressed="true"]{color:#EDE9E1}
/* 1s fade while switching theme */
html.theme-fade,html.theme-fade *,html.theme-fade *::before,html.theme-fade *::after{transition:background-color 1s ease,color 1s ease,border-color 1s ease,box-shadow 1s ease,filter 1s ease,fill 1s ease !important}
html.theme-measure,html.theme-measure *,html.theme-measure *::before,html.theme-measure *::after{transition:none !important}
