/* K2 site themes. Dark is the default; light is set by <html data-theme="light"> (toggle in the header, remembered per browser).
   Pages use only these variables for colors that change between themes. */
:root{
  --bg:#0A0F1C; --bg2:#0C1322; --panel:#0E1626; --ink:#F5F8FC; --ink2:#D4DCE8; --muted:#9FB0C6; --muted2:#7C8BA3;
  --teal:#14B8A6; --cyan:#0EA5E9; --mint:#5EEAD4; --mint2:#2DD4BF; --sky:#38BDF8;
  --line:rgba(255,255,255,.10); --hdr:rgba(10,15,28,.82); --hdr2:rgba(10,15,28,.92); --chip:rgba(10,15,28,.8);
  --shadow:rgba(0,0,0,.45); --footer:#060A14; --acc:20,184,166; --acc2:14,165,233; --overlay:rgba(3,6,12,.72); --glow:1;
  --w02:rgba(255,255,255,.02); --w03:rgba(255,255,255,.03); --w04:rgba(255,255,255,.04); --w05:rgba(255,255,255,.05); --w055:rgba(255,255,255,.055);
  --w06:rgba(255,255,255,.06); --w08:rgba(255,255,255,.08); --w10:rgba(255,255,255,.10); --w12:rgba(255,255,255,.12); --w13:rgba(255,255,255,.13);
  --w14:rgba(255,255,255,.14); --w16:rgba(255,255,255,.16); --w18:rgba(255,255,255,.18); --w20:rgba(255,255,255,.2); --w26:rgba(255,255,255,.26);
  --w30:rgba(255,255,255,.3); --w40:rgba(255,255,255,.4);
  color-scheme:dark;
}
html[data-theme="light"]{
  --bg:#FFFFFF; --bg2:#F4F6F9; --panel:#FFFFFF; --ink:#0F1B2D; --ink2:#2B3A4F; --muted:#4A5568; --muted2:#667085;
  --teal:#0A64C2; --cyan:#0A64C2; --mint:#0A64C2; --mint2:#0A64C2; --sky:#0A4A8F; --acc:10,100,194; --acc2:10,74,143;
  --line:rgba(15,23,42,.12); --hdr:rgba(255,255,255,.86); --hdr2:rgba(255,255,255,.94); --chip:rgba(255,255,255,.92);
  --shadow:rgba(15,23,42,.12); --footer:#0F1B2D; --overlay:rgba(15,23,42,.45); --glow:.35;
  --w02:#FFFFFF; --w03:rgba(15,23,42,.02); --w04:rgba(15,23,42,.03); --w05:#FFFFFF; --w055:#FFFFFF;
  --w06:rgba(15,23,42,.04); --w08:rgba(15,23,42,.06); --w10:rgba(15,23,42,.07); --w12:rgba(15,23,42,.08); --w13:rgba(15,23,42,.08);
  --w14:rgba(15,23,42,.12); --w16:rgba(15,23,42,.12); --w18:rgba(15,23,42,.18); --w20:rgba(15,23,42,.18); --w26:rgba(15,23,42,.22);
  --w30:rgba(15,23,42,.25); --w40:rgba(15,23,42,.35);
  color-scheme:light;
}
html[data-theme="light"] .glow{display:none}

html[data-theme="light"] .th{background:#E8EDF3}
html[data-theme="light"] .th svg .tbg{fill:#E8EDF3}
html[data-theme="light"] .th svg .tglow{opacity:.5}
/* theme toggle */
.theme-t{flex:none;width:40px;height:40px;border-radius:50%;border:1px solid var(--line);background:var(--w06);color:var(--ink);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:background .15s ease,border-color .15s ease;padding:0}
.theme-t:hover{background:var(--w12);border-color:var(--w30)}
.theme-t svg{width:18px;height:18px}
.theme-t .moon{display:none}
html[data-theme="light"] .theme-t .sun{display:none}
html[data-theme="light"] .theme-t .moon{display:block}
.theme-t:focus-visible{outline:2px solid var(--mint);outline-offset:2px}
html[data-theme="light"] .k2l.dark .k2l-err{color:#B91C1C}


/* ---------- light = corporate: flat surfaces, one blue, square-ish corners, no glow ---------- */
html[data-theme="light"] body{-webkit-font-smoothing:antialiased}
html[data-theme="light"] h1,html[data-theme="light"] h2{font-weight:700!important;letter-spacing:-.015em}
html[data-theme="light"] h1 span,html[data-theme="light"] .hero h1 span{background:none!important;-webkit-text-fill-color:#0A64C2;color:#0A64C2!important}
html[data-theme="light"] .btn-p,html[data-theme="light"] a.p{background:#0A64C2!important;color:#fff!important;box-shadow:none!important;border-radius:6px!important}
html[data-theme="light"] .btn-p:hover{background:#0853A2!important;transform:none}
html[data-theme="light"] .btn-g,html[data-theme="light"] a.g{background:#fff;border:1px solid #C5CED9;color:#0F1B2D;border-radius:6px}
html[data-theme="light"] .btn-g:hover{background:#F4F6F9;border-color:#98A4B5}
html[data-theme="light"] .card{background:#fff;border:1px solid #DCE2EA;border-radius:8px;box-shadow:0 1px 2px rgba(16,24,40,.05)}
html[data-theme="light"] .card:hover{transform:none;border-color:#9DB6D3;box-shadow:0 4px 14px rgba(16,24,40,.08)}
html[data-theme="light"] .ey,html[data-theme="light"] .code{background:#E6F0FB;border:1px solid #BBD5F2;color:#0A4A8F;border-radius:4px}
html[data-theme="light"] .tag{background:#F4F6F9;border-color:#DCE2EA;color:#4A5568;border-radius:4px}
html[data-theme="light"] .badge.live{background:#E6F0FB;color:#0A4A8F;border:1px solid #BBD5F2;border-radius:4px}
html[data-theme="light"] .badge.dev{border-radius:4px}
html[data-theme="light"] #annbar{background:#0F1B2D;border-bottom:0}
html[data-theme="light"] .ann-msg{color:#D7DEEA}
html[data-theme="light"] .ann-msg b{color:#8CC2F5}
html[data-theme="light"] .ann-msg a{color:#fff}
html[data-theme="light"] .ann-x{color:#A9B4C4}
html[data-theme="light"] header{box-shadow:0 1px 0 #E4E8EE}
html[data-theme="light"] .dot.on{background:#0A64C2}
html[data-theme="light"] section[style*="#0d7d72"]{background:#0F2742!important}
html[data-theme="light"] .hero-wrap,html[data-theme="light"] .hero{background:linear-gradient(180deg,#F4F7FB,#FFFFFF)!important}
html[data-theme="light"] footer{--ink:#E6ECF5;--ink2:#C9D2DE;--muted:#A9B4C4;--muted2:#8D99AE;--line:rgba(255,255,255,.12);--mint:#8CC2F5;--mint2:#8CC2F5}
html[data-theme="light"] .k2l.dark .k2l-go{background:#0A64C2;color:#fff;border-radius:6px}
html[data-theme="light"] .k2l.dark{border-radius:8px}
html[data-theme="light"] .theme-t{background:#fff;border-color:#C5CED9;color:#0F1B2D}
html[data-theme="light"] section[style*="#0d7d72"]{--ink2:#C9D6E6}
html[data-theme="light"] .pc{background:#fff;border:1px solid #DCE2EA;border-radius:8px;box-shadow:0 1px 2px rgba(16,24,40,.05)}
html[data-theme="light"] .pc:hover{transform:none;border-color:#9DB6D3;box-shadow:0 4px 14px rgba(16,24,40,.08)}
html[data-theme="light"] .md{border-radius:10px;border-color:#DCE2EA;box-shadow:0 20px 60px rgba(16,24,40,.2)}
