/* Theme switch (js/theme.js) and the light palette of the DasLion site. Load it LAST in <head>.
   The light palette is warm and matte, not pure white: it is for readers with keratoconus or glare sensitivity.
   Text colours on --ink / --panel keep a contrast of at least 4.5:1. */
.qt-theme { flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 1px solid var(--line, var(--border-color)); background: transparent; color: var(--muted, var(--text-secondary)); cursor: pointer; transition: color .2s, border-color .2s; }
.qt-theme:hover { color: var(--fg, var(--text-primary)); border-color: currentColor; }
.qt-theme svg { width: 19px; height: 19px; display: block; }
.qt-theme.qt-float { position: fixed; z-index: 40; top: 14px; right: 14px; background: var(--bg-card); color: var(--text-primary); }

html[data-theme="light"] {
  color-scheme: light;
  --ink: #f5f5f0; --panel: #ffffff; --panel-2: #eceee8; --line: #d6dad2; --line-2: #bcc3ba; --line-3: #b3bbb2;
  --fg: #1a1a2e; --muted: #4c4f66; --dim: #62657a;
  --accent: #855600; --bull: #007a4d; --bear: #c01f3a; --amber: #8f5600;
  --cyan: #855600; --blue: #2f55c8; --blue-t: #2f55c8; --sky: #1f62b5; --green: #007a4d; --red: #c01f3a; --orange: #a94f08; --teal: #2a7474; --violet: #6440c8;
  --dn: #c01f3a; --up-s: #1c7f58; --dn-s: #b23c50; --panel-end: #fafaf6; --well: #f1f2ec; --fill: rgba(26,26,46,.04);
  --bg-primary: #f5f5f0; --bg-secondary: #eceee8; --bg-card: #ffffff;
  --text-primary: #1a1a2e; --text-secondary: #4c4f66; --text-soft: #3d4056;
  --primary: #855600; --secondary: #006a96; --gradient: linear-gradient(100deg, #855600, #a96d00); --border-color: #d6dad2;
}
/* parts that keep their dark picture: they take the dark palette back */
html[data-theme="light"] :is(.us3 .lg, .flow .node, .flow-info) {
  color-scheme: dark;
  --panel: #0a111c; --panel-2: #0e1826; --line: #1a2a40; --fg: #f0f5fb; --muted: #b4c3d5; --dim: #8fa1b8;
  --accent: #f5b82e; --bull: #19e68c; --green: #12e29a; --orange: #f08a3c; --sky: #7fb2ff; color: var(--fg);
}
html[data-theme="light"] .flow .n-ex { --c: #19e68c; }
html[data-theme="light"] .flow .node, html[data-theme="light"] .flow .node:hover, html[data-theme="light"] .flow .node.on, html[data-theme="light"] .flow-info { box-shadow: 0 18px 30px -20px rgba(26,40,55,.5); }
html[data-theme="light"] .wires .tube { stroke: #dfe3dc; }
html[data-theme="light"] .wires .p { stroke: #fff; opacity: .9; }
html[data-theme="light"] .us3 .lg { box-shadow: none; }

/* glow and grid: calmer on a light ground */
html[data-theme="light"] .hero::before, html[data-theme="light"] body::before { opacity: .55; }
html[data-theme="light"] .hero::after { opacity: .5; }
html[data-theme="light"] .halo { opacity: .5; }

/* buttons */
html[data-theme="light"] .btn.primary { background: var(--cyan); border-color: var(--cyan); color: #fff; box-shadow: none; }
html[data-theme="light"] .btn.primary:hover { background: #6b4500; }
html[data-theme="light"] .sa-btn, html[data-theme="light"] .btn-primary, html[data-theme="light"] .nw-btn--solid, html[data-theme="light"] .skip-link { background: #007a4d; border-color: #007a4d; color: #fff; box-shadow: none; }
html[data-theme="light"] .sa-btn:hover, html[data-theme="light"] .btn-primary:hover, html[data-theme="light"] .nw-btn--solid:hover { background: #00613d; border-color: #00613d; color: #fff; }

/* home */
html[data-theme="light"] .glass { background: rgba(255,255,255,.94); border-color: var(--line); box-shadow: 0 20px 40px -26px rgba(26,40,55,.5); }
html[data-theme="light"] :is(.phone, .tilt) { box-shadow: 0 40px 70px -40px rgba(26,40,55,.6); }
html[data-theme="light"] .steps li { background: var(--panel); border-color: var(--line); box-shadow: none; }
html[data-theme="light"] .steps .n { background: var(--bull); color: #fff; box-shadow: none; }
html[data-theme="light"] .tag.green { border-color: currentColor; }
html[data-theme="light"] .promo-free, html[data-theme="light"] .free { background: #fff6e3; }
html[data-theme="light"] :is(.promo-free .lbl, .free .lbl, .warn b.ic, .pin, .legend-n li::before) { color: #fff; box-shadow: none; }
html[data-theme="light"] .dl:hover { border-color: var(--line-2); }
html[data-theme="light"] .g-news .bias::after { background: #1a1a2e; box-shadow: none; }

/* shared chrome, blog, news */
html[data-theme="light"] .sa-header { background: rgba(245,245,240,.9); }
html[data-theme="light"] .nw-filters { background: linear-gradient(var(--bg-primary) 72%, transparent); }
html[data-theme="light"] .nw-chip.is-on { background: #e4e8e0; border-color: var(--line-2); }
html[data-theme="light"] .article-card:hover .card-title { color: var(--text-primary); }
html[data-theme="light"] :is(.article-card, .related-card, .nw-card):hover { border-color: var(--line-2); }
html[data-theme="light"] .article-body :is(strong, b) { color: var(--text-primary); }
html[data-theme="light"] .bar .bt i.s { background: linear-gradient(90deg, #007a4d, #006a96); }
html[data-theme="light"] .bar .bt i.b { background: #9aa5b5; }

/* Bet Atlas page */
html[data-theme="light"] .prof::backdrop { background: rgba(26,26,46,.45); }
html[data-theme="light"] :is(.shot > img) { box-shadow: 0 12px 24px -16px rgba(26,40,55,.5); }
html[data-theme="light"] .lc .fl { box-shadow: 0 0 0 1px rgba(26,26,46,.18); }

/* Web app cards: the same playing surfaces as in the dark theme, in light tones, with darker ink on them */
html[data-theme="light"] .ba .card { text-shadow: none; border-color: rgba(26,26,46,.18); box-shadow: 0 10px 22px -18px rgba(26,40,55,.55);
  --fg: #121226; --muted: #4a4c64; --dim: #53566b; --cyan: #6b4400; --amber: #6b4400; --teal: #11575a; --blue: #1f3fa8; --blue-t: #1f3fa8; --green: #00603d; --red: #a8142e; }
html[data-theme="light"] .ba .surf::after { background: none !important; }
html[data-theme="light"] .ba .s-soccer .surf { background: repeating-linear-gradient(90deg, rgba(20,60,0,.2) 0 10%, rgba(255,255,220,.08) 10% 20%), url("/img/surf/grass.svg?v=1") center / cover #6c9c36; }
html[data-theme="light"] .ba .s-basketball .surf { background: #dca361 url("/img/surf/parquet.svg?v=2") center / cover; }
html[data-theme="light"] .ba .s-hockey .surf { background: #cfe3f5 url("/img/surf/ice.svg?v=1") center / cover; }
html[data-theme="light"] .ba .card.s-basketball { --muted: #35230f; --dim: #48321a; --teal: #0a4744; --cyan: #553300; --amber: #553300; --blue: #152f86; }   /* darker ink on wood */
html[data-theme="light"] .ba .s-baseball .surf { background: radial-gradient(ellipse at 50% 100%, rgba(196,146,92,.92) 0 28%, transparent 29%), repeating-linear-gradient(45deg, rgba(20,60,0,.16) 0 22px, transparent 22px 44px), url("/img/surf/grass.svg?v=1") center / cover #6c9c36; }
html[data-theme="light"] .ba :is(.card.s-soccer, .card.s-baseball) { --fg: #07090f; --muted: #101806; --dim: #1b260e; --teal: #032f2d; --cyan: #382300; --amber: #382300; --blue: #0b1f63; }   /* dark ink on grass */
html[data-theme="light"] .ba :is(.card.s-soccer, .card.s-baseball) :is(.league, .teams .nm, .score, [class*="top"]) { text-shadow: 0 0 4px rgba(255,255,255,.55), 0 0 1px rgba(255,255,255,.5); }
html[data-theme="light"] .ba .odds div { background: rgba(255,255,255,.7); border-color: rgba(26,26,46,.16); }
html[data-theme="light"] .ba .odds div.on { background: #fff; border-color: var(--pick, var(--cyan)); }
html[data-theme="light"] .ba .plate { background: rgba(255,255,255,.86); border-color: color-mix(in srgb, var(--cyan) 45%, transparent); box-shadow: none; }
html[data-theme="light"] .ba :is(.chip[aria-pressed="true"], .plate .hd .best) { color: #fff; }
html[data-theme="light"] .ba .btn.primary { background: var(--cyan); color: #fff; }
html[data-theme="light"] .ba .score .ot { color: var(--muted); }

@media (max-width: 860px) { .sa-header .qt-theme { margin-left: auto; } .sa-header .sa-btn { margin-left: 0; } }
@media (max-width: 760px) { header .wrap > .qt-theme { margin-left: auto; } header .wrap > .menu { margin-left: 0; } }
@media (max-width: 560px) { .qt-theme { width: 36px; height: 36px; } }

/* code blocks stay dark in the guides; amber notes get a readable amber */
html[data-theme="light"] :is(pre, .code-block, .cmd-block, .code-wrap) { color: #d7f5e6; }
html[data-theme="light"] :is(pre, .code-block, .cmd-block, .code-wrap) code { color: #d7f5e6; }
html[data-theme="light"] [class*="warning"] :is(h3, h4, strong, i), html[data-theme="light"] [class*="warning"]:is(h3, h4, strong, i) { color: #8f5600; }
@media (max-width: 560px) { .ba header .btn { padding: 0 12px; font-size: 12.5px; line-height: 1.15; } }
html[data-theme="light"] .code-block :is(.command, .key) { color: #6fe3b4; }
html[data-theme="light"] .sc-rank.r1 { color: #fff; }
/* balance colours on light cards */
html[data-theme="light"] { --z0: #62657a; --zh1: #4f8a66; --zh2: #007a3d; --za1: #5d74ad; --za2: #1f3fc0; --z-pill: #fff; --z-track: #fff; }
