/* ============================================================
   MASAR TECH — THEME SWITCH (dark default, opt-in light).
   Light styles apply only under html[data-theme="light"].
   Brand identity unchanged: cyan + amber; navy becomes ink.
   ============================================================ */

/* ---- toggle button icon states (dark default shows sun) ---- */
.theme-toggle .ico-to-dark{display:none}
.theme-toggle .ico-to-light{display:inline}
html[data-theme="light"] .theme-toggle .ico-to-light{display:none}
html[data-theme="light"] .theme-toggle .ico-to-dark{display:inline}
.theme-toggle{font-size:1rem!important}

/* ---- logo swap (white logo on dark, navy logo on light) ---- */
html:not([data-theme="light"]) img[data-tl="light"]{display:none!important}
html[data-theme="light"] img[data-tl="dark"]{display:none!important}

/* ============================ LIGHT TOKENS ============================ */
:root[data-theme="light"]{
  --bg-deep:#F3F6FC; --bg-panel:#FFFFFF; --surface:#EEF3FB; --surface-2:#E3EAF6;
  --text:#0B1426; --muted:#334155; --text-dim:#4A5872;
  --line:rgba(11,20,38,0.12); --line-bright:rgba(0,170,210,0.50);
  --sh-md:0 14px 36px rgba(11,20,38,.12);
  --sh-glow:0 0 26px rgba(0,222,253,.22);
  --sh-cta:0 8px 26px rgba(255,178,62,.40);
}
html[data-theme="light"] body{background:var(--bg-deep);color:var(--text)}
html[data-theme="light"] p,html[data-theme="light"] li,html[data-theme="light"] .lead{font-weight:500}

/* ambient atmosphere: subtle dark grid + soft cyan glow */
html[data-theme="light"] body::before{
  background:
    radial-gradient(900px 520px at 82% -5%,rgba(0,222,253,.10),transparent 60%),
    linear-gradient(rgba(11,20,38,.045) 1px,transparent 1px),
    linear-gradient(90deg,rgba(11,20,38,.045) 1px,transparent 1px)!important;
  background-size:auto,46px 46px,46px 46px!important;
}
html[data-theme="light"] body::after{opacity:.4!important}

/* header / navigation */
html[data-theme="light"] header.scrolled{background:rgba(255,255,255,.86)!important;
  border-bottom:1px solid var(--line)!important;box-shadow:0 8px 28px -16px rgba(11,20,38,.30)!important}
html[data-theme="light"] .icon-btn{color:var(--text);border-color:var(--line)}
html[data-theme="light"] .icon-btn:hover{color:var(--accent)}
html[data-theme="light"] .mega,html[data-theme="light"] .drop{background:rgba(255,255,255,.98)!important;
  box-shadow:0 30px 60px -22px rgba(11,20,38,.30)!important;border-color:var(--line)!important}
html[data-theme="light"] .mega,html[data-theme="light"] .drop{color:var(--text)!important}
html[data-theme="light"] .mega h4,html[data-theme="light"] .mega h5,html[data-theme="light"] .mitem h5,html[data-theme="light"] .eco-tile h4,html[data-theme="light"] .mega-featured h5,html[data-theme="light"] .drop a,html[data-theme="light"] .mega-foot a{color:var(--text)!important}
html[data-theme="light"] .nav-overlay{background:rgba(11,20,38,.35)!important}

/* search overlay */
html[data-theme="light"] .search-overlay{background:rgba(243,246,252,.95)!important}
html[data-theme="light"] .search-box{background:rgba(255,255,255,.99)!important;border-color:rgba(0,170,210,.4)!important;box-shadow:0 30px 80px -30px rgba(11,20,38,.4)!important}
html[data-theme="light"] .search-input{color:var(--text)!important}
html[data-theme="light"] .search-input-wrap{border-bottom-color:var(--line)!important}
html[data-theme="light"] .search-results a{color:var(--text)!important}

/* buttons */
html[data-theme="light"]{--accent-ink:#0B6E9C}
html[data-theme="light"] .eyebrow,html[data-theme="light"] .prole,html[data-theme="light"] .pcard .prole,html[data-theme="light"] .pl-tag,html[data-theme="light"] .pleco-card .pl-tag,html[data-theme="light"] .plan .plan-tag,html[data-theme="light"] .card .clink,html[data-theme="light"] .ind-card .clink,html[data-theme="light"] .ind-card .ico,html[data-theme="light"] .eco-link,html[data-theme="light"] .eco-core .mono,html[data-theme="light"] .mega-featured a,html[data-theme="light"] .node .role,html[data-theme="light"] .crumb span,html[data-theme="light"] .case .tag,html[data-theme="light"] .info-row .ic,html[data-theme="light"] .art h2 .n,html[data-theme="light"] .art .hl,html[data-theme="light"] .art ul li strong,html[data-theme="light"] .legal a,html[data-theme="light"] .legal .upd,html[data-theme="light"] .hv-chip,html[data-theme="light"] .moi-seal,html[data-theme="light"] .stat b,html[data-theme="light"] .trust-metric b,html[data-theme="light"] .plat .pn,html[data-theme="light"] .case .metric b,html[data-theme="light"] .siri-card .score,html[data-theme="light"] .form-success p b{color:var(--accent-ink)!important}
html[data-theme="light"] .hero h1 em,html[data-theme="light"] .page-hero h1 em,html[data-theme="light"] h1 em{background-image:linear-gradient(120deg,#10256B,#0B6E9C)!important;-webkit-background-clip:text!important;background-clip:text!important;-webkit-text-fill-color:transparent!important}
html[data-theme="light"] .btn-ghost{color:var(--text);border-color:var(--line-bright)}
html[data-theme="light"] .btn-ghost:hover{background:rgba(0,222,253,.12);border-color:var(--accent)}

/* panels / cards */
html[data-theme="light"] .card{background:var(--bg-panel);box-shadow:0 12px 30px -20px rgba(11,20,38,.18)}
html[data-theme="light"] .plat{background:var(--bg-panel);box-shadow:0 10px 26px -18px rgba(11,20,38,.16)}

/* chips / badges */
html[data-theme="light"] .moi-chip{background:rgba(11,20,38,.045);color:var(--text)}
html[data-theme="light"] .badge{color:var(--muted);border-color:var(--line)}

/* gradient text that started from white */
html[data-theme="light"] .ind-stat .num{background:linear-gradient(120deg,#0B1426,var(--accent-dim));
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
html[data-theme="light"] .hero h1 em,html[data-theme="light"] .page-hero h1 em{
  background:linear-gradient(120deg,var(--accent-dim),var(--accent));
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}

/* custom sections */
html[data-theme="light"] .moi-panel{background:linear-gradient(150deg,rgba(0,222,253,.08),rgba(255,255,255,.92))!important;
  border-color:rgba(0,170,210,.30)!important;box-shadow:0 34px 90px -50px rgba(0,160,200,.45),inset 0 1px 0 rgba(255,255,255,.7)!important}
html[data-theme="light"] .ind-stat{background:#fff!important;box-shadow:0 12px 32px -20px rgba(11,20,38,.20)}

/* white plaques/tiles definition on light page */
html[data-theme="light"] .client-tile{box-shadow:0 10px 26px -18px rgba(11,20,38,.18)}
html[data-theme="light"] .moi-plaque,html[data-theme="light"] .vis-card{box-shadow:0 24px 60px -28px rgba(11,20,38,.30)!important}

/* footer */
html[data-theme="light"] footer{border-top:1px solid var(--line)}
