/* RepairAmigo Lite theme. Dark tokens stay in styles.css. Lite-only overrides. */
html{color-scheme:dark}
html[data-theme="dark"]{color-scheme:dark}
html[data-theme="lite"]{
  color-scheme:light;
  --bg:#f4f6fb;
  --bg2:#e8edf6;
  --card:#ffffff;
  --line:#cdd5e6;
  --txt:#161616;
  --mut:#374151;
  --teal:#115e59;
  --cyan:#0b4f5c;
  --orange:#9a3412;
  --violet:#3730a3;
}
html[data-theme="lite"] body{background:var(--bg);color:var(--txt)}
html[data-theme="lite"] .nav{background:#fffffff0;border-bottom-color:var(--line)}
html[data-theme="lite"] .logo,html[data-theme="lite"] .nav ul a:hover,html[data-theme="lite"] .trust b{color:var(--txt)}
html[data-theme="lite"] .nav ul a{color:var(--mut)}
html[data-theme="lite"] .btn-g{color:var(--txt);border-color:var(--line);background:#fff}
html[data-theme="lite"] .btn-g:hover{border-color:var(--teal)}
html[data-theme="lite"] .btn-p{color:#1b0b00}
html[data-theme="lite"] .hero:before{
  background:radial-gradient(600px 300px at 20% 30%,rgba(17,94,89,.16),transparent 70%),
             radial-gradient(500px 300px at 85% 10%,rgba(55,48,163,.12),transparent 70%);
}
html[data-theme="lite"] .pill{background:#115e5914;border-color:rgba(17,94,89,.35);color:var(--teal)}
html[data-theme="lite"] .shot{background:var(--card);border-color:var(--line);box-shadow:0 24px 50px -28px #1b254040,0 0 0 1px #12182608 inset}
html[data-theme="lite"] .shot .bar{background:#e8edf6;border-bottom-color:var(--line)}
html[data-theme="lite"] .shot .bar i{background:#b7c0d4}
html[data-theme="lite"] .hero-art .phone{border-color:#d0d7e6;box-shadow:0 20px 40px -20px #1b254059;background:#fff}
html[data-theme="lite"] footer{background:var(--bg2);border-top:1px solid var(--line);color:var(--mut)}
html[data-theme="lite"] footer a{color:var(--cyan)}
html[data-theme="lite"] .page-h,html[data-theme="lite"] .doc,html[data-theme="lite"] main,html[data-theme="lite"] .fsec{color:var(--txt)}
html[data-theme="lite"] .card,html[data-theme="lite"] .qa,html[data-theme="lite"] details,html[data-theme="lite"] .panel,html[data-theme="lite"] .box,html[data-theme="lite"] .tile{
  background:var(--card);border-color:var(--line);color:var(--txt)
}
html[data-theme="lite"] .card{background:var(--card)}
html[data-theme="lite"] .card:hover{border-color:#9aa6bc}
html[data-theme="lite"] table{background:var(--card);color:var(--txt)}
html[data-theme="lite"] th,html[data-theme="lite"] td{border-color:var(--line)}
html[data-theme="lite"] pre,html[data-theme="lite"] code,html[data-theme="lite"] kbd{
  background:#e8edf6;color:var(--txt);border:1px solid var(--line)
}
html[data-theme="lite"] input,html[data-theme="lite"] select,html[data-theme="lite"] textarea{
  background:#fff;color:var(--txt);border-color:var(--line)
}
html[data-theme="lite"] hr{border-color:var(--line)}
html[data-theme="lite"] img.shot-img,html[data-theme="lite"] .shot img{background:#e8edf6}

/* Hardcoded light-on-dark leftovers from styles.css */
html[data-theme="lite"] .checks li,
html[data-theme="lite"] .fsec p,
html[data-theme="lite"] .fsec li,
html[data-theme="lite"] .note,
html[data-theme="lite"] .pkg td{color:var(--txt)}
html[data-theme="lite"] .soonbtn{border-color:var(--line);background:var(--card);color:var(--mut)}
html[data-theme="lite"] .badge-soon{color:#9a3412;background:#ffedd5;border-color:#c2410c}
html[data-theme="lite"] .kicker{color:var(--orange)}
html[data-theme="lite"] .logo .mark{color:transparent}

/* Language switcher: contrast only; labels, order, links and layout stay as in HTML */
html[data-theme="lite"] .ra-lang>summary{border-color:var(--line);color:var(--txt)}
html[data-theme="lite"] .ra-lang-m{background:var(--card);border-color:var(--line);color:var(--txt);box-shadow:0 8px 24px rgba(0,0,0,.12)}
html[data-theme="lite"] .ra-lang-m a{color:var(--txt)}
html[data-theme="lite"] .ra-lang-m a:hover,html[data-theme="lite"] .ra-lang-m a:focus-visible{background:var(--bg2)}
html[data-theme="lite"] .lang{background:var(--card);border-color:var(--line);color:var(--txt)}
html[data-theme="lite"] .lang a{color:var(--txt)}
html[data-theme="lite"] .lang a.on{color:var(--teal);background:#115e5914;box-shadow:inset 0 0 0 1px #115e5966}
html[data-theme="lite"] .lang span{color:var(--mut)}


/* Article / doc tables and callouts (inline styles on those pages use dark colors) */
html[data-theme="lite"] .doc th,
html[data-theme="lite"] .doc td{color:var(--txt);background:var(--card)}
html[data-theme="lite"] .doc th{background:var(--bg2);color:var(--txt)}
html[data-theme="lite"] .doc .callout{background:var(--bg2);color:var(--txt);border-color:var(--line)}
html[data-theme="lite"] table th,
html[data-theme="lite"] table td{color:var(--txt)}
html[data-theme="lite"] thead th{background:var(--bg2);color:var(--txt)}

/* Pricing plan cards */
html[data-theme="lite"] .plan{background:var(--card)}
html[data-theme="lite"] .plan ul{color:var(--txt)}
html[data-theme="lite"] .plan .tag.free{background:#115e5914;border-color:rgba(17,94,89,.45);color:var(--teal)}
html[data-theme="lite"] .plan .tag.paid{background:#ffedd5;border-color:#c2410c;color:var(--orange)}

/* Cookie notice (ra-notice.css is dark by default) */
html[data-theme="lite"] .ra-cn{background:#fffffff0;border-top-color:var(--line);color:var(--mut)}
html[data-theme="lite"] .ra-cn a{color:var(--cyan)}
html[data-theme="lite"] .ra-cn-ok{color:#1b0b00}

/* Toggle: Dark selected state unchanged; Lite selected uses white on the darker teal */
.ra-theme-toggle{
  display:inline-flex;align-items:center;gap:0;margin-left:10px;padding:2px;
  border:1px solid var(--line);border-radius:99px;background:transparent;cursor:pointer;
  font:600 12px/1 system-ui,sans-serif;color:var(--mut);vertical-align:middle
}
.ra-theme-toggle:hover{border-color:var(--teal)}
.ra-theme-toggle span{padding:6px 10px;border-radius:99px}
html[data-theme="dark"] .ra-theme-toggle .ra-theme-dark{
  background:var(--teal);color:#05202a
}
html[data-theme="lite"] .ra-theme-toggle .ra-theme-lite{
  background:var(--teal);color:#fff
}
html[data-theme="lite"] .ra-theme-toggle{background:#fff}
