/* Music School: lesson pages, the hub, and the playable widgets (learn.js) */
.ls-page { --lx-gold: var(--accent); }
.ls-hero h1 span { color: var(--accent-hi); }
.ls-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ls-meta span { font-size: 13px; color: var(--text-dim); border: 1px solid var(--border); border-radius: 999px; padding: 4px 11px; background: var(--card); }
.ls-meta b { color: var(--accent-hi); font-weight: 600; }

.ls-body { max-width: 860px; margin: 0 auto; }
.ls-answer { font-size: 17.5px; line-height: 1.65; color: var(--text); background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 14px; padding: 18px 22px; margin: 6px 0 26px; }
.ls-answer p { margin: 0; }
.ls-answer p + p { margin-top: 10px; }
section.ls-sec { margin: 0; padding: 26px 0 8px; }
.ls-answer + .ls-sec { padding-top: 8px; }
section.lq-wrap { padding: 20px 22px; margin: 26px 0 0; }
.ls-sec h2 { font-size: 24px; margin: 0 0 12px; letter-spacing: -.01em; }
.ls-sec h3 { font-size: 18px; margin: 22px 0 8px; }
.ls-sec p, .ls-sec li { font-size: 16px; line-height: 1.7; color: var(--text-dim); }
.ls-sec b, .ls-sec strong { color: var(--text); }
.ls-sec ul, .ls-sec ol { padding-left: 22px; }
.ls-sec li { margin: 4px 0; }
.ls-sec a { color: var(--accent-hi); }
.ls-table { width: 100%; border-collapse: collapse; margin: 12px 0 6px; font-size: 15px; }
.ls-table th, .ls-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border); color: var(--text-dim); }
.ls-table th { color: var(--text); font-weight: 600; background: var(--card); }
.ls-table td:first-child { color: var(--text); font-weight: 600; }
.ls-scroll { overflow-x: auto; }
.ls-tip { background: var(--card-alt); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; margin: 14px 0; font-size: 15px; color: var(--text-dim); }
.ls-tip b:first-child { color: var(--accent-hi); }

/* ---------- the widget frame ---------- */
.lx { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 18px; margin: 18px 0 8px; display: grid; gap: 14px; }
.lx-cap { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-hi); font-weight: 700; margin: 26px 0 -8px; }
.lx-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.lx-grow { flex: 1; }
.lx-out { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--text-dim); min-height: 1.6em; }
.lx-out b { color: var(--text); }
.lx-note { margin: 0; font-size: 14px; color: var(--text-faint); }
.lx-ask { margin: 0; font-size: 18px; color: var(--text); }
.lx-ask b { color: var(--accent-hi); font-size: 22px; }
.lx-score { font-size: 14px; color: var(--text-dim); }
.lx-lab { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-dim); }
.lx-lab .field { width: auto; min-width: 82px; padding: 7px 10px; }
.lx .presets { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.lx .chip-btn small { opacity: .8; margin-left: 4px; font-size: 11.5px; }
.lx .chip-btn.ok { border-color: #3fbf7f; color: #fff; background: rgba(63,191,127,.22); }
.lx .chip-btn.bad { border-color: #e0605a; color: #fff; background: rgba(224,96,90,.18); }
.lx .chip-btn:disabled { cursor: default; }
.lx-play { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--card-alt); color: var(--accent-hi); display: grid; place-items: center; cursor: pointer; flex: none; padding: 0; }
.lx-play svg { width: 16px; height: 16px; }
.lx-play:hover, .lx-play.on { border-color: var(--accent); background: rgba(233,168,58,.14); }
.lx-play.big { width: 54px; height: 54px; background: var(--accent); color: #17120a; border-color: var(--accent); }
.lx-play.big svg { width: 22px; height: 22px; }
.lx-play.big:hover, .lx-play.big.on { background: var(--accent-hi); }

/* ---------- keyboard ---------- */
.lx-kb { position: relative; height: 150px; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.lx-w, .lx-b { position: absolute; top: 0; border: 0; padding: 0; cursor: pointer; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; font: inherit; }
.lx-w { height: 100%; background: #f4f1ea; border: 1px solid #1a1d27; border-radius: 0 0 8px 8px; color: #1b1e28; z-index: 1; padding-bottom: 8px; }
.lx-b { height: 60%; background: #161922; border: 1px solid #000; border-radius: 0 0 6px 6px; color: #f4f1ea; z-index: 2; padding-bottom: 6px; box-shadow: inset 0 -4px 0 #2a2f3d; }
.lx-kl { font-size: 13px; font-weight: 700; line-height: 1.15; text-align: center; pointer-events: none; }
.lx-kl small { font-size: 9px; font-weight: 600; margin-left: 1px; }
.lx-b .lx-kl { font-size: 10px; }
.lx-w.hi { background: #ffd98f; }
.lx-b.hi { background: #b9822a; color: #fff; box-shadow: none; }
.lx-w.on { background: #ffc25c; }
.lx-b.on { background: #e9a83a; color: #17120a; }
.lx-w.ok, .lx-b.ok { background: #3fbf7f !important; color: #fff; }
.lx-w.bad, .lx-b.bad { background: #e0605a !important; color: #fff; }
.lx-tag { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 800; background: #17120a; color: #ffc25c; border-radius: 999px; padding: 1px 7px; pointer-events: none; }
.lx-b .lx-tag { background: #ffc25c; color: #17120a; }
.lx-w:focus-visible, .lx-b:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: -3px; }

/* ---------- rhythm rows ---------- */
.lx-rrow { display: grid; grid-template-columns: 38px 34px 150px minmax(0, 1fr); align-items: center; gap: 12px; }
.lx-sym { font-size: 28px; color: var(--accent-hi); text-align: center; line-height: 1; font-family: "Segoe UI Symbol", "Noto Music", "Apple Symbols", serif; }
.lx-rn { font-size: 13.5px; color: var(--text-dim); display: grid; }
.lx-rn b { font-size: 15px; color: var(--text); }
.lx-cells { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 3px; }
.lx-cells i { height: 24px; border-radius: 4px; background: var(--card-alt); border: 1px solid var(--border-soft); }
.lx-cells i.b { border-color: var(--border); }
.lx-cells i:nth-child(4n+1):not(:first-child) { margin-left: 4px; }
.lx-cells i.n { background: rgba(233,168,58,.55); border-color: var(--accent); }
.lx-cells i.on { outline: 2px solid #fff; outline-offset: -1px; }

/* ---------- tempo + meter ---------- */
.lx-tempo { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.lx-tempo .slider { flex: 1; min-width: 180px; }
.lx-bpm { display: grid; text-align: center; line-height: 1; }
.lx-bpm output { font-size: 34px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.lx-bpm span { font-size: 12px; color: var(--text-dim); letter-spacing: .1em; }
.lx-dots { display: flex; gap: 8px; }
.lx-dots i { width: 16px; height: 16px; border-radius: 50%; background: var(--card-alt); border: 1px solid var(--border); transition: background .06s; }
.lx-dots i.on { background: var(--accent-hi); border-color: var(--accent-hi); }
.lx-mdots i { width: 38px; height: 38px; display: grid; place-items: center; font-size: 14px; font-weight: 700; color: var(--text-dim); font-style: normal; }
.lx-mdots i.s { border-color: var(--accent); color: var(--accent-hi); width: 46px; height: 46px; font-size: 16px; }
.lx-mdots i.on { color: #17120a; }

/* ---------- intervals ---------- */
.lx-ivs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.lx-ivs button, .lx-kc button { text-align: left; background: var(--card-alt); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; color: var(--text); cursor: pointer; font: inherit; display: grid; gap: 2px; }
.lx-ivs button b { font-size: 14.5px; }
.lx-ivs button span { font-size: 12.5px; color: var(--text-dim); }
.lx-ivs button:hover, .lx-ivs button.on, .lx-kc button:hover, .lx-kc button.on { border-color: var(--accent); background: rgba(233,168,58,.12); }
.lx-opts { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- chords in a key ---------- */
.lx-kc { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.lx-kc button { text-align: center; padding: 10px 6px; }
.lx-rom { font-size: 13px; font-weight: 700; color: var(--accent-hi); font-family: Georgia, serif; }
.lx-kc b { font-size: 18px; }
.lx-kc span:not(.lx-rom) { font-size: 12px; color: var(--text-dim); }
.lx-kc em { font-size: 11px; font-style: normal; color: var(--text-faint); }

/* ---------- progressions ---------- */
.lx-pg { display: grid; gap: 10px; }
.lx-pc { background: var(--card-alt); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; display: grid; gap: 10px; }
.lx-pc-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lx-pc-h b { display: block; font-size: 16px; color: var(--text); }
.lx-pc-h span { font-size: 13px; color: var(--text-dim); font-family: Georgia, serif; }
.lx-pc-h .btn { padding: 8px 14px; font-size: 13.5px; }
.lx-pc-ch { display: grid; grid-template-columns: repeat(auto-fit, minmax(60px, 1fr)); gap: 6px; }
.lx-pc-ch i { font-style: normal; text-align: center; padding: 8px 4px; border-radius: 9px; border: 1px solid var(--border); font-weight: 700; color: var(--text); background: var(--card); }
.lx-pc-ch i.on { background: var(--accent); color: #17120a; border-color: var(--accent); }
.lx-pc p { margin: 0; font-size: 14px; color: var(--text-dim); }

/* ---------- quiz ---------- */
.lq-wrap { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 20px 22px; }
.lq-wrap h2 { margin: 0 0 4px; font-size: 22px; }
.lq { padding: 14px 0; border-top: 1px solid var(--border-soft); }
.lq:first-of-type { border-top: 0; }
.lq > p { margin: 0 0 10px; font-size: 16px; color: var(--text); font-weight: 600; }
.lq-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.lq-opts button { background: var(--card-alt); border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: 9px 14px; font: inherit; font-size: 15px; cursor: pointer; }
.lq-opts button:hover { border-color: var(--accent); }
.lq.done .lq-opts button { cursor: default; }
.lq-opts button.ok { border-color: #3fbf7f; background: rgba(63,191,127,.2); }
.lq-opts button.bad { border-color: #e0605a; background: rgba(224,96,90,.16); }
.lq-why { margin: 10px 0 0; font-size: 14.5px; color: var(--text-dim); }
.lq-total { margin: 12px 0 0; font-size: 15px; color: var(--text-dim); }
.lq-total b { color: var(--accent-hi); }

/* ---------- next / previous + extras ---------- */
.ls-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 34px 0; }
.ls-nav a { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); text-decoration: none; color: var(--text); }
.ls-nav a span { font-size: 12.5px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .08em; }
.ls-nav a b { font-size: 16px; }
.ls-nav a:hover { border-color: var(--accent); }
.ls-nav .nx { text-align: right; grid-column: 2; }
.ls-try { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between; background: linear-gradient(120deg, rgba(233,168,58,.16), rgba(233,168,58,.04)); border: 1px solid rgba(233,168,58,.4); border-radius: 16px; padding: 18px 22px; margin: 26px 0; }
.ls-try h3 { margin: 0 0 4px; font-size: 18px; }
.ls-try p { margin: 0; font-size: 15px; color: var(--text-dim); }
.ls-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.ls-tools a { border: 1px solid var(--border); background: var(--card); color: var(--text); border-radius: 999px; padding: 7px 14px; font-size: 14px; text-decoration: none; }
.ls-tools a:hover { border-color: var(--accent); }

/* ---------- hub ---------- */
.lh-tracks { display: grid; gap: 22px; margin: 10px 0 30px; }
section.lh-track { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 20px 22px; }
.lh-track-h { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.lh-track-h h2 { margin: 0; font-size: 22px; }
.lh-track-h span { font-size: 13px; color: var(--text-dim); }
.lh-track > p { margin: 4px 0 14px; color: var(--text-dim); font-size: 15px; }
.lh-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; counter-reset: l; }
.lh-list li { counter-increment: l; }
.lh-list a { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 2px 10px; align-items: start; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--card-alt); text-decoration: none; color: var(--text); height: 100%; box-sizing: border-box; }
.lh-list a::before { content: counter(l); grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: rgba(233,168,58,.16); color: var(--accent-hi); }
.lh-list a b { font-size: 15.5px; }
.lh-list a span { font-size: 13.5px; color: var(--text-dim); }
.lh-list a:hover { border-color: var(--accent); }
.lh-soon { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.lh-soon div { border: 1px dashed var(--border); border-radius: 14px; padding: 14px 16px; }
.lh-soon b { display: block; color: var(--text); font-size: 15px; }
.lh-soon span { font-size: 13.5px; color: var(--text-dim); }

@media (max-width: 760px) {
  .lx { padding: 14px; }
  .lx-kb { height: 128px; }
  .lx-kl { font-size: 11px; }
  .lx-rrow { grid-template-columns: 38px minmax(0, 1fr); }
  .lx-sym { display: none; }
  .lx-cells { grid-column: 1 / -1; }
  .lx-ivs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lx-kc { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lh-list, .lh-soon { grid-template-columns: minmax(0, 1fr); }
  .ls-nav { grid-template-columns: 1fr; }
  .ls-nav .nx { grid-column: 1; }
}
.lx .btn svg { width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; }

/* ---------- scales ---------- */
.lx-steprow { display: flex; flex-wrap: wrap; gap: 6px; }
.lx-steprow span { min-width: 34px; text-align: center; padding: 5px 8px; border-radius: 8px; font-weight: 700; font-size: 13px; background: var(--card-alt); border: 1px solid var(--border); color: var(--text); }
.lx-steprow span.h { border-color: var(--accent); color: var(--accent-hi); }
.lx-steprow span.x { border-color: #c77dff; color: #e4c6ff; }
.lx-steps { display: grid; gap: 10px; }

/* ---------- circle of fifths ---------- */
.lx-cfwrap { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 22px; align-items: center; }
.lx-cf { width: 100%; height: auto; display: block; }
.lx-cf .cf-k { cursor: pointer; outline: none; }
.lx-cf .cf-k path { fill: var(--card-alt); stroke: var(--bg); stroke-width: 2; transition: fill .12s; }
.lx-cf .cf-k.mi path { fill: #1f2433; }
.lx-cf .cf-k text { fill: var(--text); font-size: 15px; font-weight: 700; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.lx-cf .cf-k.mi text { font-size: 11.5px; fill: var(--text-dim); }
.lx-cf .cf-k:hover path, .lx-cf .cf-k:focus-visible path { fill: #2b3142; }
.lx-cf .cf-k.nb path { fill: rgba(233,168,58,.22); }
.lx-cf .cf-k.rel path { fill: rgba(233,168,58,.4); }
.lx-cf .cf-k.on path { fill: var(--accent); }
.lx-cf .cf-k.on text { fill: #17120a; }
.lx-cf .cf-c { fill: var(--text-dim); font-size: 10.5px; text-anchor: middle; }
.lx-cfinfo h3 { margin: 0 0 8px; font-size: 22px; }
.lx-cfinfo p { margin: 5px 0; font-size: 15px; color: var(--text-dim); line-height: 1.5; }
.lx-cfinfo p b { color: var(--text); }
.lx-cfinfo .lx-bar { margin-top: 12px; }

/* ---------- find the key ---------- */
.lx-kfl { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.lx-kfl a { border: 1px solid var(--accent); color: var(--text); background: rgba(233,168,58,.12); border-radius: 999px; padding: 6px 14px; font-weight: 600; text-decoration: none; font-size: 14.5px; }
.lx-kfl a:hover { background: rgba(233,168,58,.25); }

/* ---------- key pages ---------- */
.kp-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 8px; }
.kp-facts div { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; }
.kp-facts span { display: block; font-size: 12.5px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .06em; }
.kp-facts b { font-size: 17px; color: var(--text); }
.kp-facts a { color: var(--accent-hi); text-decoration: none; }
.kp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.kp-grid h3 { margin: 0 0 8px; font-size: 16px; }
.kp-keys { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.kp-keys a { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); text-decoration: none; color: var(--text); }
.kp-keys a b { font-size: 16px; }
.kp-keys a span { font-size: 12.5px; color: var(--text-dim); }
.kp-keys a:hover { border-color: var(--accent); }
@media (max-width: 760px) {
  .lx-cfwrap { grid-template-columns: minmax(0, 1fr); }
  .kp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kp-grid { grid-template-columns: minmax(0, 1fr); }
  .kp-keys { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* tags sit at the bottom of each key, so neighbours never collide */
.lx-w .lx-tag { top: auto; bottom: 30px; }
.lx-b .lx-tag { top: auto; bottom: 7px; font-size: 10px; padding: 1px 5px; }
.ls-answer a { color: var(--accent-hi); }

/* ---------- beat recipes ---------- */
.lx-bmeta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14.5px; color: var(--text-dim); }
.lx-bmeta b { color: var(--accent-hi); font-weight: 700; margin-right: 4px; }
.lx-bgrid { display: grid; gap: 4px; overflow-x: auto; }
.lx-brow { display: grid; grid-template-columns: 86px minmax(0, 1fr); align-items: center; gap: 8px; min-width: 520px; }
.lx-brow > span { font-size: 13.5px; font-weight: 600; color: var(--text); }
.lx-brow > div { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 3px; }
.lx-brow button { height: 28px; border-radius: 5px; border: 1px solid var(--border-soft); background: var(--card-alt); cursor: pointer; padding: 0; }
.lx-brow button:nth-child(4n+1) { border-color: var(--border); }
.lx-brow button:nth-child(4n+1):not(:first-child) { margin-left: 4px; }
.lx-brow button.c3 { background: var(--accent); border-color: var(--accent); }
.lx-brow button.c2 { background: rgba(233,168,58,.6); border-color: var(--accent); }
.lx-brow button.c1 { background: rgba(233,168,58,.3); border-color: rgba(233,168,58,.6); }
.lx-brow button.roll { background: repeating-linear-gradient(90deg, var(--accent) 0 3px, rgba(233,168,58,.35) 3px 6px); border-color: var(--accent); }
.lx-brow button.now { outline: 2px solid #fff; outline-offset: -1px; }
.lx-bnum i { font-style: normal; font-size: 11.5px; color: var(--text-dim); text-align: left; padding-left: 2px; }
.lx-bnum i:nth-child(4n+1):not(:first-child) { margin-left: 4px; }
.lx-bnum { min-height: 14px; }

/* ---------- practice games ---------- */
.lx-score2 { display: flex; gap: 14px; font-size: 14px; color: var(--text-dim); }
.lx-score2 b { color: var(--accent-hi); font-size: 16px; }
.lx-stage { background: #f4f1ea; border-radius: 14px; padding: 6px 10px; display: grid; place-items: center; }
.lx-staff { width: 100%; max-width: 420px; height: auto; display: block; }
.lx-staff line { stroke: #1b1e28; stroke-width: 1.3; }
.lx-staff line.ledger { stroke-width: 1.5; }
.lx-staff line.stem { stroke-width: 1.6; }
.lx-staff .head { fill: #1b1e28; }
.lx-staff .clef { font-size: 74px; fill: #1b1e28; font-family: "Segoe UI Symbol", "Noto Music", "Bravura Text", "Apple Symbols", serif; }
.lx-staff .clef.bass { font-size: 40px; }
.lx-staff .acc { font-size: 22px; fill: #1b1e28; font-family: "Segoe UI Symbol", "Noto Music", serif; }
.lx-letters { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.lx-letters .chip-btn { justify-content: center; font-size: 17px; font-weight: 800; padding: 10px 0; }
@media (max-width: 760px) { .lx-score2 { gap: 10px; font-size: 13px; } }

/* ---------- melody maker ---------- */
.lx-mgrid { display: grid; gap: 2px; overflow-x: auto; }
.lx-mhead, .lx-mrow { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 6px; align-items: center; min-width: 600px; }
.lx-mhead { grid-template-columns: 44px repeat(4, minmax(0, 1fr)); }
.lx-mhead b { font-size: 13px; color: var(--accent-hi); padding-left: 4px; }
.lx-mrow > span { font-size: 12px; font-weight: 700; color: var(--text-dim); text-align: right; }
.lx-mrow > div { display: grid; grid-template-columns: repeat(32, minmax(0, 1fr)); gap: 2px; }
.lx-mrow button { height: 20px; border: 1px solid var(--border-soft); background: var(--card-alt); border-radius: 3px; padding: 0; cursor: pointer; }
.lx-mrow button.ct { background: #232838; }
.lx-mrow button.st { border-color: rgba(233,168,58,.45); }
.lx-mrow button:nth-child(8n+1):not(:first-child) { margin-left: 4px; }
.lx-mrow button.on { background: var(--accent); border-color: var(--accent-hi); }
.lx-mrow button.now { outline: 1px solid #fff; outline-offset: -1px; }

/* ---------- mixing demos ---------- */
.lx-knobs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 20px; }
.lx-knobs label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text); }
.lx-knobs output { float: right; font-weight: 700; color: var(--accent-hi); font-variant-numeric: tabular-nums; }
.lx-eqc { width: 100%; height: 140px; background: var(--card-alt); border-radius: 10px; border: 1px solid var(--border); }
.lx-eqc .grid { stroke: var(--border); stroke-width: 1; }
.lx-eqc .curve { fill: none; stroke: var(--accent-hi); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.lx-eqx { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-dim); margin-top: -8px; }
.lx-gr { display: grid; grid-template-columns: 120px minmax(0, 1fr) 70px; align-items: center; gap: 10px; font-size: 14px; color: var(--text-dim); }
.lx-gr div { height: 12px; background: var(--card-alt); border-radius: 6px; overflow: hidden; border: 1px solid var(--border); }
.lx-gr i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), #e0605a); transition: width .05s; }
.lx-gr output { color: var(--text); font-weight: 700; text-align: right; }

/* ---------- song structure strip ---------- */
.ls-struct { display: flex; flex-wrap: wrap; gap: 4px; margin: 10px 0; }
.ls-struct span { flex: 1 1 70px; padding: 12px 8px; border-radius: 10px; font-weight: 700; font-size: 14px; color: #17120a; text-align: center; display: grid; gap: 2px; }
.ls-struct small { font-weight: 600; font-size: 11.5px; opacity: .8; }
.ls-struct .i { background: #8f98ad; } .ls-struct .v { background: #7fb3ff; } .ls-struct .p { background: #c79bff; }
.ls-struct .c { background: var(--accent); flex-grow: 1.4; } .ls-struct .b { background: #6fd3a8; }

/* ---------------- pictures (Swara art) ---------------- */
.ls-hero-art .ls-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.ls-kicker { margin: 0 0 8px; font-size: 12.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--accent-hi); }
.ls-kicker a { color: inherit; text-decoration: none; }
.ls-kicker a:hover { text-decoration: underline; }
.ls-art { margin: 0; position: relative; }
.ls-art::before { content: ""; position: absolute; inset: 8% -4% -6% 6%; background: radial-gradient(closest-side, rgba(233,168,58,.28), transparent); filter: blur(30px); z-index: 0; }
.ls-art img { position: relative; z-index: 1; display: block; width: 100%; height: auto; border-radius: 20px; border: 1px solid rgba(233,168,58,.35); box-shadow: 0 28px 70px rgba(0,0,0,.55); }
.lh-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
@media (max-width: 900px) { .ls-hero-art .ls-hero-grid { grid-template-columns: 1fr; gap: 22px; } }

/* ---------------- mini ads: the free tools that go with a lesson ---------------- */
.lp-tag { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-hi); }
.lp-ad { margin: 30px 0; }
.lp-ad a { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); border-radius: 18px; overflow: hidden; border: 1px solid rgba(233,168,58,.45);
  background: linear-gradient(120deg, rgba(233,168,58,.16), rgba(233,168,58,.03)); text-decoration: none; color: var(--text); transition: transform .15s, border-color .15s, box-shadow .15s; }
.lp-ad a:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 18px 44px rgba(0,0,0,.4); }
.lp-ad img { display: block; width: 100%; height: 100%; min-height: 210px; object-fit: cover; object-position: 75% 40%; }
.lp-ad a > div { padding: 22px 28px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.lp-ad b { font-size: 22px; line-height: 1.25; color: var(--text); }
.ls-sec .lp-ad p, .lp-ad p { margin: 0 0 10px; font-size: 15.5px; line-height: 1.55; color: var(--text-dim); }
.lp-ad .btn { align-self: flex-start; }
.lp-strip .lp-sub { margin: -6px 0 16px; }
.lp-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lp-card { display: flex; flex-direction: column; gap: 6px; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: var(--card); text-decoration: none; color: var(--text); padding-bottom: 16px; transition: transform .15s, border-color .15s; }
.lp-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.lp-card img { display: block; width: 100%; height: auto; flex: none; aspect-ratio: 16 / 9; object-fit: cover; object-position: 75% 40%; margin-bottom: 6px; }
.lp-card .lp-tag, .lp-card b, .lp-card p, .lp-card .lp-go { margin-left: 16px; margin-right: 16px; }
.lp-card b { font-size: 17px; line-height: 1.3; }
.ls-sec .lp-card p, .lp-card p { margin-top: 0; margin-bottom: 4px; font-size: 14px; line-height: 1.5; color: var(--text-dim); flex: 1; }
.lp-go { font-size: 14px; font-weight: 700; color: var(--accent-hi); }
@media (max-width: 860px) { .lp-cards { grid-template-columns: 1fr 1fr; } .lp-ad a { grid-template-columns: 1fr; } .lp-ad img { min-height: 0; aspect-ratio: 16 / 9; } }
@media (max-width: 560px) { .lp-cards { grid-template-columns: 1fr; } }

/* ---------------- hub ---------------- */
.lh-courses { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin: 4px 0 28px; }
.lh-courses a { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); text-decoration: none; color: var(--text); transition: transform .15s, border-color .15s; }
.lh-courses a:hover { transform: translateY(-3px); border-color: var(--accent); }
.lh-courses img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 80% 30%; }
.lh-courses a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,9,12,.94) 22%, rgba(8,9,12,.15) 70%); }
.lh-courses b, .lh-courses span { position: absolute; left: 11px; right: 11px; z-index: 1; }
.lh-courses b { bottom: 27px; font-size: 14.5px; line-height: 1.2; }
.lh-courses span { bottom: 10px; font-size: 12px; font-weight: 700; color: var(--accent-hi); }
@media (max-width: 1100px) { .lh-courses { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .lh-courses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lh-cover { position: relative; margin: -20px -22px 14px; height: 250px; background: #0a0a0c; overflow: hidden; border-radius: 18px 18px 0 0; }
.lh-cover img { display: block; width: min(64%, 560px); margin-left: auto; height: 100%; object-fit: cover; object-position: 50% 18%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 38%); mask-image: linear-gradient(90deg, transparent, #000 38%); }
.lh-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,9,12,.92) 0%, rgba(8,9,12,.55) 45%, rgba(8,9,12,0) 80%), linear-gradient(to top, rgba(8,9,12,.6), transparent 50%); }
.lh-cover > div { position: absolute; left: 22px; bottom: 18px; z-index: 1; }
.lh-cover h2 { margin: 3px 0 2px; font-size: 28px; }
.lh-cover > div > span:last-child { font-size: 13.5px; color: var(--text); }
.lh-list a.has-art img { grid-column: 1 / -1; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 9px; margin-bottom: 8px; }
.lh-keys::after { content: ""; display: block; clear: both; }
.lh-keys-art img { float: right; width: 320px; max-width: 42%; height: auto; border-radius: 14px; margin: 0 0 12px 20px; border: 1px solid rgba(233,168,58,.35); }
@media (max-width: 700px) { .lh-keys-art img { float: none; width: 100%; max-width: none; margin: 0 0 12px; } .lh-cover { height: 190px; } .lh-cover img { width: 100%; } }
.ls-hero-art .ls-hero-grid > div:first-child { text-align: left; }
.ls-hero-art .ls-hero-grid > div:first-child .trust-row, .ls-hero-art .ls-hero-grid > div:first-child .ls-meta { justify-content: flex-start; }
.ls-hero-art .ls-hero-grid > div:first-child .sub { margin-left: 0; margin-right: 0; }
.lh-list a.has-art { grid-template-rows: auto auto 1fr; }
.lh-list a.has-art img { grid-row: 1; }
.lh-list a.has-art::before { grid-row: 2 / span 2; grid-column: 1; }
.lh-list a.has-art b { grid-row: 2; grid-column: 2; }
.lh-list a.has-art span { grid-row: 3; grid-column: 2; }
.lh-courses a:nth-child(2) img { object-position: 8% 30%; }
.lh-courses a:nth-child(6) img { object-position: 50% 30%; }
.lh-courses a:nth-child(7) img { object-position: 72% 30%; }
/* the one free download at the end of a lesson: small cover on the left, text on the right */
.ls-dl .pk { flex-direction: row; align-items: stretch; }
.ls-dl .pk-img { flex: none; width: 210px; aspect-ratio: auto; align-self: stretch; }
.ls-dl .pk-img img { min-height: 210px; }
.ls-dl .pk-body { padding: 16px 20px; min-width: 0; }
@media (max-width: 560px) { .ls-dl .pk-img { width: 116px; } .ls-dl .pk-img img { min-height: 0; } .ls-dl .pk-body { padding: 13px 14px; } .ls-dl .pk-list { display: none; } }
.ls-dl .pk-img img { object-fit: contain; }
.ls-dl .pk-img { width: 224px; }
.ls-dl .pk-free { color: #1a1205 !important; }
.ls-dl .pk-list li { margin: 0; line-height: 1.5; }
@media (max-width: 560px) { .ls-dl .pk-img { width: 120px; } }
@media (max-width: 560px) { .ls-dl .pk-img img { object-position: 50% 0; } }
