/* The step kinds of lesson.js. Sits on notes.css and journey.css. */

/* ---------- predict ---------- */
.prd-story { display: grid; grid-template-columns: 132px 1fr; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 10px; box-shadow: var(--shadow); }
.prd-story.txt { grid-template-columns: 1fr; padding: 12px 16px; }
.prd-story img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: 12px; display: block; }
.prd-story p { margin: 0; font-size: 17px; line-height: 1.65; }
.prd-ask { margin-top: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 16px; box-shadow: var(--shadow); }
.prd-k, .mlt-k, .exq-k, .vl-k, .lns-k, .dcd-k { font-size: 13.5px; font-weight: 700; color: var(--lc, var(--peach)); letter-spacing: .02em; }
.prd-q, .mlt-q { font-weight: 700; font-size: 19px; line-height: 1.55; margin-top: 2px; }
.prd-opts { display: grid; gap: 9px; margin-top: 12px; }
.prd-opts button { font: 600 16.5px/1.45 var(--font); text-align: left; border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 11px 12px; color: var(--ink); box-shadow: 0 3px 0 var(--line); cursor: pointer; }
.prd-opts button.on { border-color: var(--gold); background: var(--gold-bg); box-shadow: 0 3px 0 #ecd58f; }
.prd-go { margin-top: 12px; font-size: 16px; font-weight: 600; color: var(--gold); }

/* ---------- lines ---------- */
.lns-pred { border-radius: 16px; padding: 10px 14px; margin-bottom: 10px; font-size: 16px; line-height: 1.6; background: var(--gold-bg); }
.lns-pred small { display: block; font-size: 13px; font-weight: 700; color: var(--muted); }
.lns-pred b { display: block; }
.lns-pred.ok { background: var(--mint-bg); } .lns-pred.no { background: var(--rose-bg); }
.lns-card { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--lc, var(--peach)); border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow); }
.lns-card h3 { margin: 0 0 6px; font-size: 20px; }
.lns-fig { background: var(--soft); border-radius: 14px; padding: 6px; margin: 6px 0 8px; } .lns-fig svg { max-width: 400px; margin: 0 auto; display: block; }
.lns-card ol { margin: 0; padding-left: 1.5em; list-style-type: bengali; font-size: 17.5px; line-height: 1.75; }
.lns-card li { margin: 4px 0; } .lns-card li b { background: linear-gradient(transparent 62%, #ffe28a 62%); font-weight: 700; }
.lns-note { margin-top: 8px; font-size: 15.5px; color: var(--muted); }
.lns-check { margin-top: 12px; }

/* ---------- V L J I ---------- */
.vl { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 14px 16px 16px; box-shadow: var(--shadow); }
.vl h3 { margin: 2px 0 6px; font-size: 20px; }
.vl-row { display: grid; grid-template-columns: 1fr 96px; align-items: center; background: var(--soft); border-radius: 16px; }
.vl-fig svg { display: block; width: 100%; max-width: 260px; margin: 0 auto; }
.vl-big { font: 800 78px/1 Georgia, serif; color: var(--peach); text-align: center; }
.vl input[type=range] { width: 100%; margin: 14px 0 0; accent-color: #b04a14; height: 28px; }
.vl-ends { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.vl-say { min-height: 3.4em; margin-top: 8px; font-size: 17px; line-height: 1.65; }
.vl-seen { display: flex; gap: 8px; justify-content: center; margin-top: 6px; }
.vl-seen i { font: 700 18px/34px Georgia, serif; width: 34px; height: 34px; text-align: center; border-radius: 50%; background: var(--soft); color: #b9b2a2; }
.vl-seen i.on { background: var(--mint); color: #fff; }

/* ---------- real MCQs ---------- */
.exq-k { font-size: 15px; } .exq-sub { margin: 2px 0 0; font-size: 15.5px; color: var(--muted); }
.exq .mcq { margin: 10px 0; } .exq .stim { margin: 10px 0 6px; }
.exq .mcq .foot { display: none; }
.exq-re { margin-top: 4px; }

/* ---------- judge each statement ---------- */
.mlt, .ord, .spf, .srt, .dcd { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 16px; box-shadow: var(--shadow); }
.mlt-items { display: grid; gap: 9px; margin: 12px 0; }
.mlt-it { border: 2px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.mlt-s { font-size: 16.5px; line-height: 1.55; font-weight: 600; }
.mlt-b { display: flex; gap: 8px; margin-top: 8px; }
.mlt-b button { flex: 1; font: 700 15.5px/1.3 var(--font); border: 2px solid var(--line); background: #fff; border-radius: 11px; padding: 7px; color: var(--ink); cursor: pointer; }
.mlt-b button.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.mlt-w { display: none; margin-top: 8px; font-size: 15.5px; line-height: 1.6; }
.mlt-it.ok, .mlt-it.no { padding-bottom: 8px; } .mlt-it.ok .mlt-w, .mlt-it.no .mlt-w { display: block; }
.mlt-it.ok { border-color: var(--mint); background: var(--mint-bg); } .mlt-it.no { border-color: var(--rose); background: var(--rose-bg); }
.mlt-ro { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.mlt-ro span { border: 1.5px solid var(--line); border-radius: 10px; padding: 5px 10px; background: #fff; font-weight: 600; }
.mlt-ro span.on { border-color: var(--mint); background: var(--mint-bg); }

/* ---------- order ---------- */
.ord-slots { display: grid; gap: 7px; margin: 12px 0; }
.ord-slot { display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 8px; min-height: 42px; border: 2px dashed var(--line); border-radius: 13px; padding: 4px 10px; font-weight: 700; font-size: 16.5px; }
.ord-slot i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-size: 14px; color: var(--muted); }
.ord-slot.on { border-style: solid; border-color: var(--mint); background: var(--mint-bg); animation: pop .3s ease; } .ord-slot.on i { background: var(--mint); color: #fff; }

/* ---------- decode a stem ---------- */
.dcd-k { margin: 10px 0 8px; font-size: 16px; line-height: 1.55; color: var(--ink); }
.dcd-stem { background: var(--soft); border-radius: 16px; padding: 12px; font-size: 17px; line-height: 2.25; }
.dcd-fig { background: #fff; border-radius: 12px; padding: 6px; margin-bottom: 8px; line-height: 1.4; } .dcd-fig svg { max-width: 320px; margin: 0 auto; display: block; }
.dcd-fig .figs.two { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; text-align: center; font-weight: 700; font-size: 14px; }
.dcd-c { border-bottom: 2px dashed #c9bfa8; padding: 3px 2px; cursor: pointer; border-radius: 6px; -webkit-tap-highlight-color: transparent; }
.dcd-c.right { background: #ffe28a; border-bottom-color: transparent; font-weight: 700; box-shadow: 0 0 0 3px #ffe28a; }
.dcd-c.wrong { background: var(--rose-bg); animation: shake .3s; display: inline-block; }
.dcd-ask { margin-top: 12px; } .dcd-ask:empty { display: none; }
.dcd-ask .ask { box-shadow: none; border: 0; padding: 0; }

/* ---------- recall ---------- */
.rcl-prompt { margin: 10px 0 8px; font-size: 17.5px; line-height: 1.65; }
.rcl-prompt .stem { background: var(--soft); border-radius: 14px; padding: 10px 12px; font-size: 16px; margin-bottom: 8px; }
.rcl-prompt .q { font-weight: 700; font-size: 18.5px; }
.rcl-prompt .blank { margin-top: 10px; height: 118px; border-radius: 14px; border: 2px dashed #cfc6b1; background: repeating-linear-gradient(#fff, #fff 27px, #e9e2d2 28px); display: grid; place-items: center; color: #a39a85; font-weight: 700; font-size: 15px; }
.rcl .ans table { width: 100%; border-collapse: collapse; font-size: 15.5px; } .rcl .ans td, .rcl .ans th { border: 1px solid #b9dccb; padding: 5px 7px; text-align: left; vertical-align: top; }
.rcl .ans svg { max-width: 360px; margin: 6px auto; display: block; }
.rcl .ans .two { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }

/* ---------- find the mistake ---------- */
.spf-fig { position: relative; max-width: 330px; margin: 10px auto; }
.spf-fig > svg:first-child { display: block; width: 100%; }
.spf-over { position: absolute; inset: 0; width: 100%; height: 100%; }
.spf-over g { cursor: pointer; }
.spf-h { fill: rgba(242,176,30,.1); stroke: #e09a00; stroke-width: 1.6; stroke-dasharray: 4 4; }
.spf-n { fill: #e09a00; } .spf-over text { font: 700 11px var(--font); fill: #fff; pointer-events: none; }
.spf-over g.right .spf-h { fill: rgba(27,127,85,.2); stroke: var(--mint); stroke-dasharray: none; stroke-width: 3; } .spf-over g.right .spf-n { fill: var(--mint); }
.spf-over g.wrong .spf-h { fill: transparent; stroke: #c9bfa8; } .spf-over g.wrong .spf-n { fill: #c9bfa8; }

/* ---------- chips into two columns ---------- */
.srt-chip { margin: 14px auto 10px; max-width: 420px; text-align: center; font-weight: 700; font-size: 19px; line-height: 1.5; background: var(--gold-bg); border: 2px solid #ecd58f; border-radius: 16px; padding: 12px; }
.srt-chip.in { animation: pop .3s ease; }
.srt-b { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.srt-b button { font: 700 17px/1.3 var(--font); border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 13px 8px; color: var(--ink); box-shadow: 0 3px 0 var(--line); cursor: pointer; }
.srt-b button.wrong { border-color: var(--rose); background: var(--rose-bg); animation: shake .3s; }
.srt-tbl { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 8px; margin-top: 14px; }
.srt-tbl .h { font-weight: 700; font-size: 15px; text-align: center; border-radius: 10px; padding: 4px; }
.srt-tbl .h.a { background: var(--mint-bg); color: var(--mint); } .srt-tbl .h.b { background: var(--sky-bg); color: var(--sky); }
.srt-tbl .col { display: grid; gap: 6px; align-content: start; min-height: 30px; }
.srt-tbl .it { background: var(--soft); border-radius: 10px; padding: 6px 9px; font-size: 15px; line-height: 1.45; font-weight: 600; animation: pop .3s ease; }

/* ---------- the path: group headings, the families of questions ---------- */
.jgroup { display: flex; align-items: center; gap: 10px; margin: 26px 0 14px; position: relative; z-index: 1; }
.jgroup span { font-weight: 800; font-size: 15px; background: var(--ink); color: #fff; border-radius: 999px; padding: 3px 14px; }
.jgroup::after { content: ''; flex: 1; height: 2px; background: var(--line); }
.jgroup + .jnode.is-next { margin-top: 0; }
.fam { background: var(--card); border: 1px solid var(--line); border-radius: 18px; margin: 10px 0; box-shadow: var(--shadow); overflow: hidden; }
.fam > button { width: 100%; display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; text-align: left; border: 0; background: none; padding: 12px 14px; font: inherit; color: var(--ink); cursor: pointer; }
.fam > button i { font-style: normal; font-size: 24px; width: 40px; height: 40px; border-radius: 12px; background: var(--soft); display: grid; place-items: center; }
.fam > button b { display: block; font-size: 17px; line-height: 1.4; } .fam > button small { font-size: 14px; color: var(--muted); }
.fam > button em { font-style: normal; font-size: 13px; font-weight: 700; border-radius: 999px; padding: 2px 10px; background: var(--soft); color: var(--muted); white-space: nowrap; }
.fam.done > button em { background: var(--mint-bg); color: var(--mint); }
.fam-body { display: none; padding: 0 14px 14px; } .fam.open .fam-body { display: block; }
.fam-learn { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.fam-q { border-top: 1px dashed var(--line); padding: 9px 0; font-size: 16px; line-height: 1.6; }
.fam-q .exams { margin: 0 0 2px; } .fam-q .k { font-weight: 700; color: var(--muted); font-size: 13.5px; }
.fam-q .a { display: none; margin-top: 6px; background: var(--mint-bg); border-radius: 12px; padding: 8px 12px; font-size: 15.5px; } .fam-q.open .a { display: block; }
.fam-q .a table { width: 100%; border-collapse: collapse; } .fam-q .a td, .fam-q .a th { border: 1px solid #b9dccb; padding: 4px 6px; text-align: left; vertical-align: top; }
.fam-q button.t { border: 0; background: none; color: var(--sky); font: 700 14.5px var(--font); padding: 4px 0 0; cursor: pointer; }
.fam-q .st { font-size: 13px; font-weight: 700; border-radius: 999px; padding: 0 8px; margin-left: 6px; } .fam-q .st.ok { background: var(--mint-bg); color: var(--mint); } .fam-q .st.no { background: var(--rose-bg); color: var(--rose); }
.dsheet { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.dsheet figure { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 8px 8px 10px; text-align: center; }
.dsheet figcaption { font-weight: 700; font-size: 15px; } .dsheet small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; }
@media (min-width: 760px) { .dsheet { grid-template-columns: repeat(3, 1fr); } }
@media (prefers-reduced-motion: reduce) { .mglow, .mh-ring, .mh.hint .mh-hand { animation: none; } .mh.hint .mh-hand { opacity: 1; } }

/* ---------- the hero: the story picture with the cell beside it ---------- */
.jhero .pic { position: relative; }
.hero-cell { position: absolute; right: 12px; bottom: 10px; width: 108px; height: 108px; border-radius: 50%; background: #fff; box-shadow: 0 3px 12px rgba(0,0,0,.28); overflow: hidden; display: grid; place-items: center; }
.hero-cell svg { width: 104px; height: auto; }

.mlt-q .stemline { display: block; font-weight: 400; font-size: 16px; line-height: 1.65; background: var(--gold-bg); border-radius: 12px; padding: 8px 12px; margin: 6px 0 8px; }
.rule3 { display: grid; gap: 8px; margin: 10px 0; }
.rule3 div { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; background: var(--soft); border-radius: 14px; padding: 9px 12px; font-weight: 600; }
.rule3 b { width: 30px; height: 30px; border-radius: 50%; background: var(--lc, var(--lilac)); color: #fff; display: grid; place-items: center; }

/* ---------- drawset: every drawing of the topic, one after another ---------- */
.dset-strip { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0 6px; scrollbar-width: none; }
.dset-strip::-webkit-scrollbar { display: none; }
.dset-strip button { flex: none; display: grid; grid-template-columns: 22px 1fr; gap: 6px; align-items: center; font: 600 13px/1.2 var(--font); color: var(--muted); background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: 4px 10px 4px 4px; cursor: pointer; }
.dset-strip button i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-weight: 700; }
.dset-strip button.done i { background: var(--mint); color: #fff; }
.dset-strip button.on { border-color: var(--lc); color: var(--ink); } .dset-strip button.on i { background: var(--lc); color: #fff; }
.dset-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 4px; }
.dset-head b { font-size: 18.5px; } .dset-head small { font-size: 13px; color: var(--muted); font-weight: 600; }
.dset-same { font-size: 14.5px; color: var(--teal); font-weight: 600; margin-top: 2px; } .dset-same[hidden] { display: none; }
.dset .draw-fig { position: relative; }
.dset-cover { position: absolute; inset: 0; border-radius: 12px; background: var(--ink); color: #fff; display: grid; place-content: center; text-align: center; gap: 8px; padding: 18px; }
.dset-cover b { font-size: 20px; } .dset-cover span { font-size: 15.5px; line-height: 1.6; opacity: .9; max-width: 32ch; }
.dset-cover[hidden] { display: none; }
.dset-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.dset-pts { margin-bottom: 10px; } .dset-pts[hidden] { display: none; }
.dset .draw-say { min-height: 3.2em; }
