/* SHUDDHI School learning paths (/learn, learn.php) */
.lp { --c: #7C3AED; --ink: #1F1A3D; --mut: #5B5876; --line: #E9E5F5; --soft: #F7F5FF; background: #FBFAFF; color: var(--ink); padding: 18px 0 40px; }
.lp-wrap { width: min(860px, 100% - 32px); margin: 0 auto; }
.lp a { color: #6D28D9; }
.lp h1 { font-size: clamp(1.6rem, 5vw, 2.3rem); line-height: 1.2; margin: 6px 0 10px; }
.lp-h2 { font-size: 1.3rem; margin: 26px 0 12px; }
.lp-hero { background: linear-gradient(135deg, #F5F3FF, #FDF2F8); border: 2px solid #E9D5FF; border-radius: 22px; padding: 20px; }
.lp-hero.small h1 { font-size: clamp(1.35rem, 4vw, 1.8rem); }
.lp-hero.result.pass { background: linear-gradient(135deg, #ECFDF5, #F0FDF4); border-color: #A7F3D0; }
.lp-hero.result.fail { background: linear-gradient(135deg, #FFFBEB, #FFF7ED); border-color: #FDE68A; }
.lp-eyebrow { display: block; font-weight: 800; color: var(--mut); font-size: .88rem; } .lp-eyebrow a { color: inherit; }
.lp-small { color: var(--mut); font-size: .88rem; margin: 6px 0; }
.lp-note { color: var(--mut); font-size: .9rem; background: #fff; border: 1px dashed var(--line); border-radius: 14px; padding: 10px 14px; margin: 22px 0 0; }
.lp-msg { background: #FFF7ED; border: 1px solid #FED7AA; border-radius: 14px; padding: 10px 14px; font-weight: 700; }
.lp-chips, .lp-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.lp-chip, .lp-chips span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-weight: 700; font-size: .88rem; display: inline-block; }
.lp-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--c); color: #fff !important; border: 0; border-radius: 14px; padding: 11px 16px; font-weight: 800; text-decoration: none; cursor: pointer; font: inherit; font-weight: 800; box-shadow: 0 3px 0 rgba(0,0,0,.15); }
.lp-btn.ghost { background: #fff; color: var(--ink) !important; border: 2px solid var(--line); box-shadow: none; }
.lp-btn.small { padding: 7px 12px; font-size: .9rem; border-radius: 12px; }
.lp-link { background: none; border: 0; color: #6D28D9; font: inherit; font-weight: 700; cursor: pointer; padding: 4px 0; text-decoration: underline; }
.lang-sw { display: inline-flex; background: #fff; border: 1.5px solid #E2E8F0; border-radius: 999px; padding: 3px; margin: 0 0 10px; }
.lang-sw a { padding: 5px 14px; border-radius: 999px; font-weight: 800; text-decoration: none; color: var(--mut) !important; font-size: .9rem; } .lang-sw a.on { background: #7C3AED; color: #fff !important; }
.lp-progress { height: 12px; background: #fff; border-radius: 999px; overflow: hidden; border: 1px solid var(--line); margin-top: 12px; } .lp-progress div { height: 100%; background: linear-gradient(90deg, #10B981, #7C3AED); }
/* hub */
.lp-subjects { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.lp-card { background: #fff; border-radius: 18px; padding: 16px; border: 2px solid var(--line); text-decoration: none; color: var(--ink) !important; display: grid; gap: 6px; }
.lp-subj { border-top: 6px solid var(--c, #CBD5E1); } .lp-subj.soon { opacity: .6; } .lp-emo { font-size: 2rem; } .lp-subj small, .lp-meta { color: var(--mut); } .lp-go { font-weight: 800; color: #6D28D9; }
.lp-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 10px; }
.lp-steps li { background: #fff; border-radius: 16px; padding: 12px 14px; border: 1px solid var(--line); color: var(--mut); font-size: .92rem; } .lp-steps b { display: block; color: var(--ink); margin-bottom: 4px; }
/* subject */
.lp-classes { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 16px 0 6px; font-weight: 800; }
.lp-classes a { min-width: 40px; text-align: center; padding: 6px 10px; border-radius: 12px; background: #fff; border: 2px solid var(--line); text-decoration: none; color: var(--ink) !important; } .lp-classes a.on { background: #7C3AED; border-color: #7C3AED; color: #fff !important; }
.lp-level { background: #fff; border-radius: 20px; border: 2px solid var(--line); padding: 16px; margin: 16px 0; } .lp-level.later { background: #FAFAFC; }
.lp-level-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; flex-wrap: wrap; } .lp-level-head h2 { margin: 0 0 4px; font-size: 1.2rem; } .lp-level-head small { color: var(--mut); }
.lp-unit h3 { font-size: 1.02rem; margin: 16px 0 8px; } .lp-unit h3 small { color: var(--mut); font-weight: 600; font-size: .82rem; }
.lp-lessons { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lp-lessons a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--soft); text-decoration: none; color: var(--ink) !important; font-weight: 700; }
.lp-lessons small { display: block; color: var(--mut); font-weight: 600; font-size: .8rem; } .lp-lessons li.done a { background: #ECFDF5; } .lp-lessons li.later a { opacity: .75; }
.lp-dot { width: 26px; text-align: center; flex: 0 0 26px; }
/* lesson */
.lp-lesson { display: grid; gap: 14px; }
.lp-lhead { background: #fff; border-radius: 20px; border: 2px solid var(--line); padding: 16px; border-top: 6px solid var(--c); }
.lp-ok { background: #ECFDF5; border-radius: 12px; padding: 8px 12px; font-weight: 700; margin: 8px 0 0; } .lp-warn { background: #FFFBEB; border-radius: 12px; padding: 8px 12px; margin: 8px 0 0; }
.lp-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.lp-tool { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; color: var(--ink) !important; }
.lp-box, .lp-step, .lp-intro { background: #fff; border-radius: 20px; border: 1px solid var(--line); padding: 16px; }
.lp-box h2, .lp-step h2 { font-size: 1.12rem; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lp-intro { font-size: 1.06rem; background: linear-gradient(135deg, #FFFBEB, #fff); }
.lp-num { width: 30px; height: 30px; border-radius: 50%; background: var(--c); color: #fff; display: inline-grid; place-items: center; font-size: .95rem; flex: 0 0 30px; }
.lp-say-btn { margin-left: auto; background: none; border: 0; cursor: pointer; font-size: 1.1rem; }
.lp-body, .lp-box li, .lp-box p { line-height: 1.65; font-size: 1.02rem; }
.lp-fig { margin: 12px 0 0; background: var(--soft); border-radius: 14px; padding: 10px; } .lp-fig svg { display: block; width: 100%; max-height: 260px; height: auto; }
.lp-simple { background: #F0F9FF; } .lp-simple summary, .lp-rev summary { cursor: pointer; font-weight: 800; } .lp-rev { border-bottom: 1px solid var(--line); padding: 8px 0; }
.lp-defs dt { font-weight: 800; margin-top: 8px; } .lp-defs dd { margin: 2px 0 0; color: var(--mut); }
.lp-act { background: #F0FDF4; }
.lp-ex { border-left: 4px solid var(--c); padding: 4px 0 4px 12px; margin: 0 0 14px; } .lp-exsteps { margin: 6px 0; padding-left: 22px; color: var(--ink); } .lp-ans { margin: 4px 0 0; }
.lp-pq { border-top: 1px dashed var(--line); padding: 12px 0; }
.lp-q { margin: 0 0 8px; font-weight: 600; }
.lp-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 8px; }
.lp-opt { background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 10px; font: inherit; font-weight: 700; cursor: pointer; text-align: left; }
.lp-opt.right { background: #ECFDF5; border-color: #10B981; } .lp-opt.wrong { background: #FEF2F2; border-color: #EF4444; }
.lp-in { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .lp-in input { font: inherit; font-size: 1.1rem; padding: 9px 12px; border: 2px solid var(--line); border-radius: 12px; width: 160px; max-width: 100%; }
.lp-fb { margin: 6px 0 0; font-weight: 700; } .lp-fb:empty { display: none; } .lp-fb.ok { color: #047857; } .lp-fb.no { color: #B45309; }
.lp-help { display: flex; gap: 14px; } .lp-hints p { background: #FFFBEB; border-radius: 10px; padding: 6px 10px; margin: 6px 0; }
.lp-solbox { background: #F0FDF4; border-radius: 12px; padding: 10px 12px; margin-top: 6px; } .lp-solbox p { margin: 4px 0 0; }
.lp-mrow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; } .lp-mrow p { margin: 0; border-radius: 12px; padding: 8px 10px; } .lp-mrow .no { background: #FEF2F2; } .lp-mrow .yes { background: #ECFDF5; }
@media (max-width: 600px) { .lp-mrow { grid-template-columns: 1fr; } }
.lp-testcta { border: 2px solid #C4B5FD; background: #F5F3FF; }
.lp-nav { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
/* test and result */
.lp-test { display: grid; gap: 12px; margin-top: 14px; }
.lp-tq { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; margin: 0; min-width: 0; } .lp-tq legend { padding: 0; font-weight: 600; line-height: 1.5; float: left; width: 100%; margin-bottom: 10px; } .lp-tq legend + * { clear: both; }
.lp-radio { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border: 2px solid var(--line); border-radius: 12px; margin: 6px 0; cursor: pointer; } .lp-radio:has(input:checked) { border-color: var(--c); background: var(--soft); }
.lp-radio input { width: 20px; height: 20px; accent-color: #7C3AED; }
.lp-submit { position: sticky; bottom: 10px; background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 12px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.lp-score { display: flex; gap: 12px; align-items: baseline; } .lp-score b { font-size: 2.6rem; } .lp-score span { font-size: 1.3rem; font-weight: 800; color: var(--mut); }
.lp-rq { background: #fff; border: 1px solid var(--line); border-left: 6px solid #10B981; border-radius: 16px; padding: 12px 14px; margin: 0 0 10px; } .lp-rq.no { border-left-color: #F59E0B; }
.lp-rq summary { cursor: pointer; font-weight: 700; }
@media print {
  header, footer, nav, .lp-tools, .lp-help, .lp-testcta, .lp-nav, .lang-sw, .lp-noprint, .lp-say-btn, .lp-in button, #saathi, [class*="saathi"] { display: none !important; }
  .lp { background: #fff; padding: 0; } .lp-box, .lp-step, .lp-intro, .lp-lhead { border: 1px solid #ccc; break-inside: avoid; }
  details { display: block; } details > * { display: block; } .lp-simple summary::after { content: ""; }
}

/* ---- speaking (English path) ---- */
.lp-en{color:#0369A1;border-bottom:2px dotted #38BDF8;cursor:pointer;font-weight:600}
.lp-en:focus{outline:2px solid #38BDF8;outline-offset:2px}
.lp-speak{margin:.6rem 0 .2rem;display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}
.lp-sent{flex-basis:100%;margin:0 0 .3rem;padding:.7rem .9rem;border-radius:.8rem;background:#F0F9FF;border:1px solid #BAE6FD;font-size:1.2rem;font-weight:600;color:#0C4A6E;line-height:1.5}
.lp-mic.rec{background:#DC2626;border-color:#DC2626;animation:lpPulse 1s infinite}
@keyframes lpPulse{50%{opacity:.75}}
.lp-heard{flex-basis:100%;margin:.2rem 0 0;font-size:.95rem;color:#374151;min-height:1.2em}
.lp-heard.ok{color:#047857;font-weight:600}.lp-heard.no{color:#B91C1C}
.lp-tq.sp{border-color:#BAE6FD;background:#F8FDFF}
.lp-micbox{border-left:4px solid #0EA5E9}
.lp-parts{display:flex;flex-wrap:wrap;gap:.4rem;justify-content:center;margin:.4rem 0}
.lp-parts .lp-chip.ok{background:#D1FAE5;color:#065F46}.lp-parts .lp-chip.no{background:#FEE2E2;color:#991B1B}
@media print{.lp-mic,.lp-listen,.lp-heard{display:none}}

/* ---- "What would you like to learn next?" ---- */
.lp-wish.done { border: 3px solid #FDE68A; background: #FFFBEB; }
.lp-wishes { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin: 10px 0; }
.lp-wishes label { display: flex; gap: 8px; align-items: flex-start; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 10px; cursor: pointer; font-size: .92rem; }
.lp-wishes label:has(input:checked) { border-color: var(--c); background: #F5F3FF; }
.lp-wish textarea { width: 100%; box-sizing: border-box; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px; font: inherit; margin: 0 0 10px; }
/* chess boards (Chess course): drawn by learn_board(); .pick = tap to answer */
.lp-board { margin: 12px auto 0; max-width: 340px; } .lp-board svg { display: block; width: 100%; height: auto; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,.15); touch-action: manipulation; }
.lp-board figcaption { text-align: center; font-size: .88rem; color: var(--mut); margin-top: 6px; } .lp-board .lp-turn { font-weight: 800; color: var(--ink); }
.lp-board.pick svg { outline: 3px solid #C4B5FD; outline-offset: 2px; }
@media print { .lp-board { max-width: 240px; break-inside: avoid; } }
/* "My level" picker (levels, not classes) */
.lp-levels-nav a { font-size: 1.05rem; } .lp-levels-nav a.lp-notsure { min-width: 0; font-size: .9rem; background: #F5F3FF; border-color: #DDD6FE; color: #5B21B6 !important; }

/* step by step (1 Dec 2026): practice progress, "ready for the test", next lesson countdown */
.lp-pqprog { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-weight: 800; color: #5B21B6; font-size: .92rem; }
.lp-pqprog i { flex: 1; height: 10px; background: #EDE9FE; border-radius: 999px; overflow: hidden; } .lp-pqprog i b { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #22C55E, #84CC16); transition: width .5s; }
.lp-pq.lp-up { box-shadow: 0 0 0 4px #C4B5FD; border-radius: 16px; transition: box-shadow .3s; }
.lp-testcta.lp-ready { border-color: #22C55E; background: linear-gradient(135deg, #F0FDF4, #ECFEFF); animation: lpReady 1.4s ease-in-out 3; }
.lp-readytx { font-weight: 900; color: #15803D; font-size: 1.08rem; margin: 0 0 8px; }
@keyframes lpReady { 50% { box-shadow: 0 0 0 10px rgba(34,197,94,.18); } }
.lp-auto { margin: 14px 0 0; font-weight: 800; background: rgba(255,255,255,.7); display: inline-block; padding: 8px 14px; border-radius: 999px; }
@media (prefers-reduced-motion: reduce) { .lp-testcta.lp-ready { animation: none; } }
/* level chips: thumb-sized, 8px apart (owner, 2 Dec 2026) */
.lp-classes { gap: 8px; } .lp-classes a { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; border-radius: 14px; }
.lp-classes a:hover { border-color: #A78BFA; } .lp-classes a:focus-visible { outline: 3px solid #0369A1; outline-offset: 2px; }
.lp-levels-nav a.lp-notsure { display: inline-flex; padding: 0 14px; }
