/* Quorvus light theme (18 Nov 2026). Dark is the default; html[data-theme="light"] switches.
   Loaded after site.css and blog.css. Brand gold #C9A84C stays for fills; text gold is deepened for contrast. */
html[data-theme="light"]{--ink:#F6F7F9;--ink2:#ECF0F5;--ink3:#FFFFFF;--text:#2A3B52;--white:#0A1628;--steel:#506B88;--line:rgba(10,22,40,.13);--gold:#A9852B;--teal:#0E7490;color-scheme:light}
html[data-theme="light"] body{background:var(--ink);color:var(--text)}
html[data-theme="light"] :is(h1,h2,h3,h4,.stat b,footer h4,.prose blockquote,.cm .c b,.cm .ctext,.why b,.tvf-val,.seg b,.pdlg h2,.shelf-body h3,.bb-t b,.vision .vline){color:#0A1628}
html[data-theme="light"] .grad>span,html[data-theme="light"] .grad{background-image:linear-gradient(100deg,#B8912F 10%,#C9A84C 40%,#0E7490 92%)}
html[data-theme="light"] .w.grad{background:none}
html[data-theme="light"] .vision .vline .grad{background-image:linear-gradient(100deg,#A9852B,#0E7490)}
/* buttons keep the brand gold fill */
html[data-theme="light"] .btn.primary{background:#C9A84C;color:#0A1628}
html[data-theme="light"] .btn.ghost{color:#0A1628;border-color:rgba(10,22,40,.22)}
/* nav, logo, menu */
html[data-theme="light"] .nav.stuck{background:rgba(246,247,249,.86)}
html[data-theme="light"] .brand img,html[data-theme="light"] .emblem image,html[data-theme="light"] footer img[src*="q_logo"]{filter:brightness(0) saturate(100%) invert(7%) sepia(31%) saturate(2400%) hue-rotate(198deg) brightness(95%)}
html[data-theme="light"] .burger{color:#0A1628}
@media (max-width:900px){html[data-theme="light"] .links{background:rgba(246,247,249,.98)}}
/* preloader + hero */
html[data-theme="light"] #pre .r{stroke:#0A1628}
html[data-theme="light"] .hero p.sub{color:#3A4E66}
html[data-theme="light"] .emblem .ring{stroke:#0A1628}
html[data-theme="light"] .emblem text{fill:#0A1628}
html[data-theme="light"] .emblem{filter:drop-shadow(0 30px 60px rgba(8,145,178,.18))}
html[data-theme="light"] .tl-cap{color:#3A4E66}
html[data-theme="light"] .fit{color:#506B88}
/* panels that were dark glass */
html[data-theme="light"] :is(.vision,.founding){background:radial-gradient(ellipse at 50% 0%,rgba(8,145,178,.10),transparent 65%),#FFFFFF}
html[data-theme="light"] .founding p{color:#2A3B52}
html[data-theme="light"] :is(.founding p b,.card.cta-card h3){color:#8C6D1F}
html[data-theme="light"] :is(.tvf-bar,.tl-track,.seg){background:rgba(10,22,40,.05)}
/* forms */
html[data-theme="light"] .sub-row input{background:#FFFFFF;color:#0A1628;border-color:rgba(10,22,40,.2)}
html[data-theme="light"] dialog.pdlg{background:radial-gradient(ellipse at 50% 0%,rgba(8,145,178,.10),transparent 60%),#FFFFFF;color:#2A3B52;box-shadow:0 30px 80px rgba(10,22,40,.25)}
html[data-theme="light"] :is(.pdlg-lead,.pdlg-wait){color:#506B88}
html[data-theme="light"] .pdlg-x{background:rgba(10,22,40,.06);color:#0A1628}
html[data-theme="light"] .pf label{color:#2A3B52}
html[data-theme="light"] :is(.pf input,.pf textarea){background:#FFFFFF;color:#0A1628;border-color:rgba(10,22,40,.2)}
/* social icons */
html[data-theme="light"] :is(footer .fsoc a,.band .bsoc a){color:#0A1628}
/* bookshelf + book box */
html[data-theme="light"] .shelf-item{background:#FFFFFF}
html[data-theme="light"] :is(.shelf-buy,.bb-btn){color:#8C6D1F}
html[data-theme="light"] :is(.shelf-buy:hover,.shelf-buy:active,.shelf .shelf-buy.is-pressed,.bb-btn:active){color:#0A1628;background:#C9A84C}
html[data-theme="light"] .shelf-nav{background:rgba(255,255,255,.92);color:#8C6D1F}
html[data-theme="light"] .shelf-wrap::before{background:linear-gradient(90deg,var(--ink),rgba(246,247,249,0))}
html[data-theme="light"] .shelf-wrap::after{background:linear-gradient(-90deg,var(--ink),rgba(246,247,249,0))}
html[data-theme="light"] .bb-t{color:#3A4E66}
html[data-theme="light"] .err{color:#B3261E}
/* scrollbar (desktop) */
@media (hover:hover) and (pointer:fine){
html[data-theme="light"]{scrollbar-color:#C9A84C #ECF0F5}
html[data-theme="light"] ::-webkit-scrollbar-track{background:#ECF0F5}
html[data-theme="light"] ::-webkit-scrollbar-thumb{border-color:#ECF0F5}
}
/* the toggle (both themes) */
.theme-tg{order:3;flex:none;width:40px;height:40px;border-radius:50%;border:1px solid var(--line);background:transparent;color:var(--white);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:border-color .3s,color .3s,transform .3s;-webkit-tap-highlight-color:transparent}
.theme-tg:hover{border-color:#C9A84C;color:#C9A84C}
.theme-tg:focus-visible{outline:2px solid var(--teal);outline-offset:3px}
.theme-tg svg{width:18px;height:18px}
.theme-tg .sun{display:none}
html[data-theme="light"] .theme-tg .sun{display:block}
html[data-theme="light"] .theme-tg .moon{display:none}
.nav .burger{order:4}
html{transition:background-color .3s}
/* nav: links stay right-aligned beside the toggle (both themes) */
@media (min-width:901px){.nav .links{margin-left:auto}.nav .theme-tg{margin-left:-4px}}
