/* TrueDetect AI - User Guide DARK theme (Soft Touch dark, same palette as the tool).
   Active only when <html data-theme="dark">. Screen only: print / PDF stays light.
   Roll back: remove the <link> to this file. Light mode is not touched. */
html[data-theme="dark"]{color-scheme:dark}
@media screen{
html[data-theme="dark"]{
 --bg:#1e2330;--card:#1e2330;--ink:#e6eaf2;--ink2:#c9d0de;--muted:#9aa4ba;--line:#2e3547;--soft:#1e2330;--blue:#7ea3ff;
 --st-hi:#2a3143;--st-lo:#141822;
 --st-up:8px 8px 18px #141822,-8px -8px 18px #2a3143;--st-up-s:4px 4px 9px #141822,-4px -4px 9px #2a3143;
 --st-in:inset 3px 3px 7px #141822,inset -3px -3px 7px #2a3143;--st-in-s:inset 2px 2px 5px #141822,inset -2px -2px 5px #2a3143}
html[data-theme="dark"] body{background:#1e2330 !important;color:#c9d0de}
html[data-theme="dark"] a{color:#7ea3ff}
html[data-theme="dark"] ::selection{background:rgba(126,163,255,.35);color:#fff}

/* icons */
html[data-theme="dark"] svg.i{color:#7ea3ff}
html[data-theme="dark"] svg.i.sep{color:#8b95ab}
html[data-theme="dark"] .ic svg{color:#7ea3ff}
html[data-theme="dark"] .sh .ic svg,html[data-theme="dark"] .grid .ic svg,html[data-theme="dark"] nav a.on .ic svg{color:#fff}
html[data-theme="dark"] .pdf svg.i,html[data-theme="dark"] .go svg.i,html[data-theme="dark"] #totop svg.i{color:#fff}
html[data-theme="dark"] .pn small svg.i{color:#7ea3ff}

/* header */
html[data-theme="dark"] #prog{box-shadow:0 0 8px rgba(126,163,255,.55)}
html[data-theme="dark"] header{background:rgba(30,35,48,.92) !important;border-bottom:none !important;box-shadow:0 6px 16px rgba(10,12,18,.55) !important;color:#e6eaf2}
html[data-theme="dark"] .brand,html[data-theme="dark"] .brand b{color:#e6eaf2}
html[data-theme="dark"] .brand span{color:#7ea3ff}
html[data-theme="dark"] .seg{background:#1e2330;box-shadow:var(--st-in-s)}
html[data-theme="dark"] .seg img{box-shadow:0 0 0 1.5px rgba(255,255,255,.75),2px 2px 5px #141822}
html[data-theme="dark"] .seg a.on{border-color:#7ea3ff;box-shadow:0 0 0 3px rgba(126,163,255,.22)}
html[data-theme="dark"] .pdf{box-shadow:5px 5px 12px #141822,-5px -5px 12px #2a3143 !important}
html[data-theme="dark"] .pdf:hover{box-shadow:6px 6px 14px #141822,-6px -6px 14px #2a3143 !important}

/* left menu */
html[data-theme="dark"] nav{background:#1e2330;border-right:none;box-shadow:8px 0 18px -12px rgba(0,0,0,.8)}
html[data-theme="dark"] nav::-webkit-scrollbar-thumb{background:#3a4257}
html[data-theme="dark"] .search input{background:#1a1f2b;border:none;box-shadow:var(--st-in-s);color:#e6eaf2}
html[data-theme="dark"] .search input::placeholder{color:#6f7a91}
html[data-theme="dark"] .search input:focus{background:#1a1f2b;box-shadow:var(--st-in-s),0 0 0 3px rgba(126,163,255,.25)}
html[data-theme="dark"] .search:before{background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%239aa4ba%22 stroke-width=%222.2%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2211%22 cy=%2211%22 r=%228%22/%3E%3Cpath d=%22m21 21-4.3-4.3%22/%3E%3C/svg%3E") !important}
html[data-theme="dark"] nav .grp{color:#9aa4ba}
html[data-theme="dark"] nav a{color:#c9d0de}
html[data-theme="dark"] nav a .ic{background:#1e2330;box-shadow:var(--st-up-s)}
html[data-theme="dark"] nav a .n{color:#7d879c}
html[data-theme="dark"] nav a:hover{background:#1e2330;box-shadow:var(--st-in-s);color:#e6eaf2}
html[data-theme="dark"] nav a.on{background:#1e2330;box-shadow:var(--st-in-s);color:#7ea3ff}
html[data-theme="dark"] nav a.on .ic{box-shadow:3px 3px 7px #141822,-3px -3px 7px #2a3143}

/* hero */
html[data-theme="dark"] .hero{color:#e6eaf2;background:radial-gradient(900px 360px at 88% -12%,rgba(14,165,233,.16),transparent 60%),radial-gradient(760px 340px at 0% 112%,rgba(99,102,241,.18),transparent 60%),#1e2330;
 box-shadow:10px 10px 26px #141822,-10px -10px 26px #2a3143}
html[data-theme="dark"] .hero:after{background-image:linear-gradient(rgba(230,234,242,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(230,234,242,.045) 1px,transparent 1px)}
html[data-theme="dark"] .hero .logos i{background:rgba(230,234,242,.2)}
html[data-theme="dark"] .hero img.kdl{filter:brightness(0) invert(1) !important;opacity:.92}
html[data-theme="dark"] .hero h1{color:#e6eaf2}
html[data-theme="dark"] .hero h1 em{background:linear-gradient(135deg,#8b8ff8,#7ea3ff 50%,#38bdf8);-webkit-background-clip:text;background-clip:text;color:transparent}
html[data-theme="dark"] .hero p.co{color:#e6eaf2}
html[data-theme="dark"] .hero p,html[data-theme="dark"] .hero p.hreq{color:#9aa4ba !important}
html[data-theme="dark"] .chips span{background:#1e2330;box-shadow:var(--st-up-s);color:#e6eaf2}
html[data-theme="dark"] .hero .go{box-shadow:6px 6px 14px #141822,-6px -6px 14px #2a3143}

/* chapter grid */
html[data-theme="dark"] .grid a{background:#1e2330;box-shadow:var(--st-up);color:#e6eaf2}
html[data-theme="dark"] .grid a:hover{box-shadow:10px 10px 22px #141822,-10px -10px 22px #2a3143}
html[data-theme="dark"] .grid .ic,html[data-theme="dark"] .sh .ic{box-shadow:5px 5px 12px #141822,-5px -5px 12px #2a3143}
html[data-theme="dark"] .grid small{color:#9aa4ba}

/* sections + cards */
html[data-theme="dark"] .sh .k{color:#7ea3ff}
html[data-theme="dark"] h1{color:#e6eaf2}
html[data-theme="dark"] .lead{color:#9aa4ba}
html[data-theme="dark"] .card{background:#1e2330;box-shadow:var(--st-up);color:#c9d0de}
html[data-theme="dark"] .card h2{color:#e6eaf2}
html[data-theme="dark"] .card h2:not(:first-child){border-top:1px dashed #343c50}
html[data-theme="dark"] .card p,html[data-theme="dark"] .card b,html[data-theme="dark"] .card strong{color:inherit}
html[data-theme="dark"] .num{box-shadow:3px 3px 7px #141822,-3px -3px 7px #2a3143}

/* screenshots: keep the picture bright, frame goes dark */
html[data-theme="dark"] figure.shot{background:#1a1f2b;box-shadow:8px 8px 18px #141822,-8px -8px 18px #2a3143}
html[data-theme="dark"] figure.shot:before{background-color:#262c3b;border-bottom:1px solid #313a4e}
html[data-theme="dark"] figcaption{background:#262c3b;border-top:1px solid #313a4e;color:#9aa4ba}
html[data-theme="dark"] figcaption:before{background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%237ea3ff%22 stroke-width=%222.2%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2211%22 cy=%2211%22 r=%228%22/%3E%3Cpath d=%22m21 21-4.35-4.35%22/%3E%3Cpath d=%22M11 8v6%22/%3E%3Cpath d=%22M8 11h6%22/%3E%3C/svg%3E") !important}

/* lists */
html[data-theme="dark"] ol.steps li{color:#c9d0de}
html[data-theme="dark"] ol.steps li:before{background:#1e2330;color:#7ea3ff;box-shadow:var(--st-up-s)}
html[data-theme="dark"] ol.steps li:after{background:linear-gradient(#343c50,#2a3143)}
html[data-theme="dark"] ul li{color:#c9d0de}

/* tables */
html[data-theme="dark"] table{background:#222838;box-shadow:var(--st-up-s)}
html[data-theme="dark"] th{background:#262c3b;color:#9aa4ba}
html[data-theme="dark"] th,html[data-theme="dark"] td{border-bottom:1px solid #2e3547;color:#c9d0de}
html[data-theme="dark"] th{color:#9aa4ba}
html[data-theme="dark"] tbody tr:nth-child(even) td,html[data-theme="dark"] tr:nth-child(even) td{background:rgba(255,255,255,.025)}
html[data-theme="dark"] td:first-child{color:#e6eaf2}

/* tip / warning boxes */
html[data-theme="dark"] .tip{background:linear-gradient(135deg,rgba(14,165,233,.12),rgba(99,102,241,.10)),#1e2330;color:#bcd3f5;box-shadow:var(--st-in-s)}
html[data-theme="dark"] .warn{background:linear-gradient(135deg,rgba(245,158,11,.14),rgba(251,191,36,.06)),#1e2330;color:#f3d29b;box-shadow:var(--st-in-s)}
html[data-theme="dark"] .tip:before,html[data-theme="dark"] .warn:before{background-color:#1e2330 !important;box-shadow:var(--st-up-s)}
html[data-theme="dark"] .tip:before{background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%237ea3ff%22 stroke-width=%222.2%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%2210%22/%3E%3Cpath d=%22M12 16v-4%22/%3E%3Cpath d=%22M12 8h.01%22/%3E%3C/svg%3E") !important}
html[data-theme="dark"] .tip svg.i{color:#7ea3ff}
html[data-theme="dark"] .warn svg.i{color:#fbbf24}

/* small inline bits */
html[data-theme="dark"] kbd{background:#1a1f2b;box-shadow:var(--st-in-s);color:#e6eaf2}
html[data-theme="dark"] .btn{color:#fff;box-shadow:0 3px 8px rgba(0,0,0,.45)}

/* prev / next + footer */
html[data-theme="dark"] .pn a{background:#1e2330;box-shadow:var(--st-up-s)}
html[data-theme="dark"] .pn a:hover{box-shadow:var(--st-in-s)}
html[data-theme="dark"] .pn small{color:#9aa4ba}
html[data-theme="dark"] .pn b{color:#e6eaf2}
html[data-theme="dark"] #totop{box-shadow:5px 5px 12px #141822,-5px -5px 12px #2a3143}
html[data-theme="dark"] footer{border-top:1px solid #2e3547;color:#9aa4ba}
html[data-theme="dark"] #zoom{background:rgba(0,0,0,.86)}
}
