/* dark.css - dark mode for the public site and member pages (the admin panel stays light).
   Switched on by <html data-theme="dark">, set by the head script from the member's choice (the moon button) or, with no choice, the device setting.
   Only tokens are re-defined, plus the few places that used a fixed colour. Text colours were checked for AA (4.5:1) on --bg and --surface. */
html[data-theme="dark"]{
  color-scheme:dark;
  --primary:#6BB5EA;--brand-600:#6BB5EA;--brand-700:#A9D4F5;
  --brand-100:#274560;--brand-50:#182B3D;
  --ink:#E6EEF6;--text:#E6EEF6;--muted:#A3B4C5;--line:#2C3E50;--bg:#0E1620;--surface:#16212D;
  --accent-ink:#FFD28A;--accent-soft:#3A2B10;
  --ok:#5BD08F;--ok-soft:#12301F;--warn:#FFC266;--warn-soft:#3A2B10;--danger:#FF8794;--danger-soft:#3A1A20;--info:#A9D4F5;--info-soft:#182B3D;
  --shadow-1:0 1px 2px rgba(0,0,0,.4);--shadow-2:0 4px 14px rgba(0,0,0,.45);--shadow-3:0 14px 40px rgba(0,0,0,.55);
  --ring:0 0 0 3px rgba(107,181,234,.5);
}
/* fixed light text on the (now light) blue fill would be hard to read: use dark ink on filled buttons, tabs and badges */
html[data-theme="dark"] .btn,html[data-theme="dark"] button.btn,html[data-theme="dark"] .btn:hover,html[data-theme="dark"] .btn.danger,html[data-theme="dark"] .btn.accent,
html[data-theme="dark"] .pager a.on,html[data-theme="dark"] .pills a.on,html[data-theme="dark"] .pills a:hover,html[data-theme="dark"] .bubble.me,
html[data-theme="dark"] .avatar,html[data-theme="dark"] .logo-dot,html[data-theme="dark"] .badge,html[data-theme="dark"] .tpl-use{color:#0B1824}
html[data-theme="dark"] .btn.ghost{background:transparent;color:var(--primary);border-color:var(--primary)}
html[data-theme="dark"] .btn.ghost:hover{background:var(--brand-50);color:var(--brand-700)}
html[data-theme="dark"] .hero-band .btn.ghost,html[data-theme="dark"] .hero-in .btn.ghost{color:#fff;border-color:#fff;background:transparent}
html[data-theme="dark"] .btn.google{color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] .hero h1{color:var(--ink)}
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{background:var(--surface);border-color:#3A4F63;color:var(--ink)}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#8DA0B3}
html[data-theme="dark"] tr:hover td{background:var(--brand-50)}
html[data-theme="dark"] .rowitem{background:var(--bg)}
html[data-theme="dark"] .avatar.big,html[data-theme="dark"] .mini .avatar,html[data-theme="dark"] .swatches span{border-color:var(--surface)}
html[data-theme="dark"] img{opacity:.92}
html[data-theme="dark"] .brand img,html[data-theme="dark"] .foot img,html[data-theme="dark"] .offer-hero,html[data-theme="dark"] .offer-img{opacity:1}
/* the sun/moon button in the top bar */
.themebtn{flex:none;width:44px;height:44px;border-radius:50%;border:1px solid var(--line);background:var(--surface);color:var(--ink);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;padding:0}
.themebtn:hover{background:var(--brand-50)}
.themebtn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.themebtn .sun{display:none}
html[data-theme="dark"] .themebtn .sun{display:block}html[data-theme="dark"] .themebtn .moon{display:none}

@media(max-width:900px){.searchlink{margin-left:auto}.burger{margin-left:0}}
html[data-theme="dark"] h1,html[data-theme="dark"] h2,html[data-theme="dark"] h3,html[data-theme="dark"] .offer-body h3,html[data-theme="dark"] .promo code,html[data-theme="dark"] th,html[data-theme="dark"] .skip{color:var(--ink)}
