/* Drawcast notes: one look for every topic page, the chapter hub and the practice page.
   Mobile first (a phone held upright), print-ready (A4, every answer open). */
@font-face { font-family: 'NB'; font-weight: 400; font-display: swap; src: url(fonts/noto-sans-bengali-bengali-400-normal.woff2) format('woff2'); unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1; }
@font-face { font-family: 'NB'; font-weight: 600; font-display: swap; src: url(fonts/noto-sans-bengali-bengali-600-normal.woff2) format('woff2'); unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1; }
@font-face { font-family: 'NB'; font-weight: 700; font-display: swap; src: url(fonts/noto-sans-bengali-bengali-700-normal.woff2) format('woff2'); unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1; }
@font-face { font-family: 'NB'; font-weight: 400; font-display: swap; src: url(fonts/noto-sans-bengali-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'NB'; font-weight: 600; font-display: swap; src: url(fonts/noto-sans-bengali-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'NB'; font-weight: 700; font-display: swap; src: url(fonts/noto-sans-bengali-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: light;
  /* chapter 2's page colour: a warm cream; inks all 4.5:1 or more on it */
  --bg: #faf6ee; --card: #ffffff; --line: #e6dfd0; --soft: #f3eee3;
  --ink: #1d2433; --muted: #5c6474;
  --sky: #1f6fb2;  --sky-bg: #e6f1fb;
  --mint: #1b7f55; --mint-bg: #e3f4ec;
  --peach: #b04a14; --peach-bg: #fcebdf;
  --lilac: #6b4aa6; --lilac-bg: #efe9f8;
  --gold: #8a5a00; --gold-bg: #fdf3d6;
  --rose: #b8283f; --rose-bg: #fbe6ea;
  --teal: #0e7a70;
  --r: 16px; --shadow: 0 1px 2px rgba(40,30,10,.06), 0 4px 14px rgba(40,30,10,.06);
  --font: 'NB', 'Noto Sans Bengali', 'Hind Siliguri', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17.5px/1.75 var(--font); }
img, svg { max-width: 100%; display: block; }
a { color: var(--sky); }
b, strong { font-weight: 700; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* top bar */
.bar { position: sticky; top: 0; z-index: 20; background: rgba(250,246,238,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; gap: 10px; height: 56px; }
.bar a.back { text-decoration: none; color: var(--ink); font-weight: 600; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.bar .title { font-weight: 600; font-size: 15px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.bar .meter { font-size: 14px; color: var(--muted); white-space: nowrap; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 0 16px 10px; max-width: 760px; margin: 0 auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips a { flex: none; text-decoration: none; font-size: 14px; padding: 4px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--muted); }
.chips a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips a.done::after { content: ' ✓'; color: var(--mint); }
.chips a.on.done::after { color: #9ff0c8; }

/* hero */
.hero { padding: 18px 0 6px; }
.hero .pic { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); background: #fdf6e8; }
.hero .pic img { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; }
.kicker { font-size: 14px; font-weight: 600; color: var(--peach); letter-spacing: .02em; margin: 16px 0 2px; }
h1 { font-size: 28px; line-height: 1.35; margin: 0 0 8px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.meta span { font-size: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px; color: var(--muted); }

/* sections */
section.stop { margin: 34px 0; }
.stop-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.stop-head .num { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 700; font-size: 16px; transform: translateY(6px); }
h2 { font-size: 23px; line-height: 1.4; margin: 0; }
.stop-head small { display: block; font-size: 14px; color: var(--muted); font-weight: 400; }
h3 { font-size: 19px; margin: 22px 0 8px; }
p { margin: 8px 0; }
.lead { font-size: 18.5px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); margin: 14px 0; }
.card.tint-sky { background: var(--sky-bg); border-color: #cfe3f6; }
.card.tint-mint { background: var(--mint-bg); border-color: #c8e9d8; }
.card.tint-peach { background: var(--peach-bg); border-color: #f5d3bd; }
.card.tint-gold { background: var(--gold-bg); border-color: #f1dea4; }
.card.tint-lilac { background: var(--lilac-bg); border-color: #ddd1f0; }
.card h3:first-child, .card h4:first-child { margin-top: 0; }
h4 { font-size: 17px; margin: 0 0 6px; }

/* figures */
figure { margin: 14px 0; }
figure .figs { display: grid; gap: 12px; }
@media (min-width: 640px) { figure .figs.two { grid-template-columns: 1fr 1fr; } }
figure .panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; }
figure .panel .cap { text-align: center; font-weight: 600; font-size: 15px; color: var(--muted); margin-top: 4px; }
figcaption { text-align: center; font-size: 14px; color: var(--muted); margin-top: 6px; }

/* the book's words */
.book { border-left: 4px solid var(--sky); background: var(--card); border-radius: 0 var(--r) var(--r) 0; padding: 12px 16px; margin: 12px 0; box-shadow: var(--shadow); }
.book .src { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.book ol { margin: 4px 0; padding-left: 1.4em; }
.book li { margin: 4px 0; }
mark { background: linear-gradient(transparent 55%, #ffe08a 55%); color: inherit; padding: 0 1px; }

/* numbered step rows (infographic, never bullets) */
.steps { list-style: none; padding: 0; margin: 12px 0; counter-reset: s; }
.steps li { position: relative; padding: 10px 12px 10px 52px; margin: 8px 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; counter-increment: s; }
.steps li::before { content: counter(s, bengali); position: absolute; left: 12px; top: 10px; width: 28px; height: 28px; border-radius: 50%; background: var(--c, var(--sky)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.steps.mint { --c: var(--mint); } .steps.peach { --c: var(--peach); } .steps.lilac { --c: var(--lilac); }

/* a tutor's aside */
.say { display: flex; gap: 10px; align-items: flex-start; background: var(--soft); border-radius: 14px; padding: 10px 14px; margin: 12px 0; font-size: 16.5px; }
.say::before { content: '💬'; font-size: 18px; line-height: 1.6; }

/* tables */
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; font-size: 16px; margin: 12px 0; }
.tbl th, .tbl td { padding: 9px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl th { background: var(--soft); font-size: 15px; }
.tbl td:first-child { font-weight: 600; color: var(--muted); width: 30%; }
.tbl.vs th:nth-child(2) { color: var(--sky); } .tbl.vs th:nth-child(3) { color: var(--peach); }

/* flow of boxes */
.flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 6px; margin: 12px 0; }
.flow .box { flex: 1 1 140px; background: var(--card); border: 2px solid var(--c, var(--sky)); border-radius: 14px; padding: 10px 12px; }
.flow .box b { display: block; color: var(--c, var(--sky)); font-size: 16px; }
.flow .box span { font-size: 15px; }
.flow .arrow { align-self: center; color: var(--muted); font-size: 20px; }
@media (max-width: 560px) { .flow { flex-direction: column; } .flow .arrow { transform: rotate(90deg); align-self: center; } }

/* stage strip */
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
@media (min-width: 640px) { .strip { grid-template-columns: repeat(6, 1fr); } }
.strip .st { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 6px 4px 8px; text-align: center; font-size: 13.5px; font-weight: 600; color: var(--muted); position: relative; }
.strip .st.here { border: 2px solid var(--peach); color: var(--ink); background: #fffaf6; }
.strip .st .n { position: absolute; top: 4px; left: 8px; font-size: 12px; color: var(--muted); }
.strip .st.dim { opacity: .55; }

/* chips of shapes */
.shapes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.shapes div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 8px; text-align: center; font-weight: 700; }

/* traps */
.traps { display: grid; gap: 10px; }
.trap { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.trap .wrong { color: var(--rose); font-weight: 600; text-decoration: line-through; text-decoration-thickness: 1.5px; }
.trap .right { color: var(--mint); font-weight: 700; }
.trap .wrong::before { content: '✗ '; text-decoration: none; display: inline-block; }
.trap .right::before { content: '✓ '; }

/* memory card */
.memo { background: var(--ink); color: #fff; border-radius: var(--r); padding: 16px 18px; margin: 14px 0; }
.memo .t { font-size: 13px; letter-spacing: .06em; color: #ffd57a; font-weight: 700; }
.memo .big { font-size: 21px; font-weight: 700; line-height: 1.5; margin-top: 4px; }
.memo .small { font-size: 15px; color: #cfd6e4; margin-top: 4px; }

/* buttons and reveals */
button { font: inherit; cursor: pointer; }
.btn { border: 1.5px solid var(--ink); background: var(--card); color: var(--ink); border-radius: 999px; padding: 6px 16px; font-weight: 600; font-size: 15.5px; }
.btn.solid { background: var(--ink); color: #fff; }
.btn.ghost { border-color: var(--line); color: var(--muted); }
.btn:active { transform: translateY(1px); }
.reveal-body { display: none; }
.reveal-body.open { display: block; animation: rise .25s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* checkpoint */
.check { border: 2px dashed var(--teal); border-radius: var(--r); padding: 14px 16px; background: #f1faf8; margin: 18px 0; }
.check .q { font-weight: 700; color: var(--teal); }
.check .row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.check .model { background: var(--card); border-radius: 12px; padding: 10px 12px; margin-top: 10px; border: 1px solid var(--line); }
.check .verdict { font-size: 15px; margin-top: 8px; color: var(--muted); }

/* MCQ */
.mcq { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 14px 12px; margin: 12px 0; box-shadow: var(--shadow); }
.mcq .top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.mcq .top .tag { background: var(--soft); border-radius: 999px; padding: 0 10px; }
.mcq .stem { font-weight: 600; font-size: 17.5px; }
.mcq .items { margin: 6px 0 2px; padding: 0; list-style: none; }
.mcq .items li { padding-left: 2.2em; text-indent: -2.2em; }
.mcq .ask { font-weight: 600; margin-top: 4px; }
.mcq .opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
@media (max-width: 420px) { .mcq .opts.long { grid-template-columns: 1fr; } }
.mcq .opt { text-align: left; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 8px 10px; font-size: 16px; line-height: 1.45; display: flex; gap: 8px; color: var(--ink); }
.mcq .opt .l { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--muted); display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--muted); }
.mcq .opt:hover { border-color: #bfb6a2; }
.mcq.done .opt { cursor: default; }
.mcq .opt.right { border-color: var(--mint); background: var(--mint-bg); }
.mcq .opt.right .l { background: var(--mint); border-color: var(--mint); color: #fff; }
.mcq .opt.wrong { border-color: var(--rose); background: var(--rose-bg); }
.mcq .opt.wrong .l { background: var(--rose); border-color: var(--rose); color: #fff; }
.mcq .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 8px; }
.mcq .why { display: none; margin-top: 10px; background: var(--soft); border-radius: 12px; padding: 10px 12px; font-size: 16px; }
.mcq.done .why { display: block; }
.mcq .why b.ok { color: var(--mint); } .mcq .why b.no { color: var(--rose); }
.mcq .fig { margin: 8px auto; max-width: 360px; }
.stim { background: var(--gold-bg); border: 1px solid #f1dea4; border-radius: var(--r); padding: 12px 14px; margin: 18px 0 6px; }
.stim .h { font-size: 13.5px; font-weight: 700; color: var(--gold); }
.stim .fig { margin: 8px auto 0; max-width: 380px; }

/* CQ */
.frame { display: grid; gap: 8px; margin: 12px 0; }
.frame .fr { display: grid; grid-template-columns: 54px 1fr; gap: 10px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.frame .fr .k { font-weight: 700; font-size: 20px; text-align: center; color: #fff; background: var(--c); border-radius: 10px; padding: 2px 0; }
.frame .fr .k small { display: block; font-size: 12px; font-weight: 600; }
.frame .fr b { color: var(--c); }
.cq { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); margin: 16px 0; box-shadow: var(--shadow); overflow: hidden; }
.cq .head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px; background: var(--soft); font-size: 14px; color: var(--muted); font-weight: 600; }
.cq .head .no { color: var(--ink); font-size: 16px; }
.cq .stemtext { padding: 12px 14px 4px; }
.cq .fig { padding: 0 14px; }
.cq .fig svg { margin: 0 auto; max-width: 440px; }
.part { border-top: 1px solid var(--line); padding: 10px 14px; }
.part .pq { display: grid; grid-template-columns: 30px 1fr auto; gap: 6px; align-items: baseline; }
.part .pk { font-weight: 700; }
.part .mk { font-size: 13px; color: var(--muted); }
.part.here { background: #fffaf3; }
.part .here-tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--peach); background: var(--peach-bg); border-radius: 999px; padding: 0 8px; margin-left: 6px; }
.part .row { margin: 6px 0 2px 36px; }
.part .ans { margin: 8px 0 4px 36px; padding: 10px 12px; border-radius: 12px; background: var(--mint-bg); font-size: 16.5px; }
.part .ans p:first-child { margin-top: 0; } .part .ans p:last-child { margin-bottom: 0; }
.part .ans ol { margin: 4px 0; padding-left: 1.4em; }
.part .ans .fig { padding: 0; margin: 6px 0; }
.outside { font-size: 13px; color: var(--muted); background: var(--soft); border-radius: 999px; padding: 0 8px; margin-left: 6px; }

/* mastery */
.mastery { list-style: none; padding: 0; margin: 10px 0; }
.mastery li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); }
.mastery input { width: 22px; height: 22px; margin-top: 4px; accent-color: var(--mint); flex: none; }

/* hub */
.topics { display: grid; gap: 10px; margin: 14px 0; }
.topic { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; box-shadow: var(--shadow); }
.topic .n { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; background: var(--soft); }
.topic.live .n { background: var(--peach); color: #fff; }
.topic .t { font-weight: 700; line-height: 1.45; }
.topic .s { font-size: 14px; color: var(--muted); }
.topic .go { font-size: 13px; font-weight: 700; border-radius: 999px; padding: 2px 10px; background: var(--soft); color: var(--muted); white-space: nowrap; }
.topic.live .go { background: var(--ink); color: #fff; }
.topic.soon { box-shadow: none; opacity: .75; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.tile { text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; box-shadow: var(--shadow); }
.tile .big { font-size: 28px; font-weight: 700; color: var(--peach); line-height: 1.2; }
.tile .t { font-weight: 700; }
.tile .s { font-size: 14px; color: var(--muted); }
.progress { height: 8px; background: var(--soft); border-radius: 999px; overflow: hidden; margin-top: 8px; }
.progress i { display: block; height: 100%; background: var(--mint); width: 0; }

/* practice page */
.filters { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters button { flex: none; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 4px 12px; font-size: 14.5px; color: var(--muted); }
.filters button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.score { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px; margin: 10px 0; font-size: 15px; }
.score b.ok { color: var(--mint); } .score b.no { color: var(--rose); }
.score .sp { flex: 1; }

footer { margin: 40px 0 30px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); text-align: center; }
.next { display: flex; justify-content: space-between; gap: 10px; margin: 26px 0; }
.next a { flex: 1; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; color: var(--ink); font-weight: 600; }
.next a small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; }
.next a.r { text-align: right; }
.noprint {}
.onlyprint { display: none; }

@media print {
  @page { size: A4; margin: 14mm 13mm 16mm; }
  body { background: #fff; font-size: 11.5pt; line-height: 1.6; }
  .bar, .chips, .noprint, .btn, .filters, .next { display: none !important; }
  .onlyprint { display: block; }
  .reveal-body { display: block !important; }
  .mcq .why { display: block; }
  .card, .mcq, .cq, figure .panel, .book, .trap { box-shadow: none; break-inside: avoid; }
  section.stop { break-inside: auto; margin: 18px 0; }
  .hero .pic img { aspect-ratio: 3/1.2; }
  .cq { break-inside: auto; } .part { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}

.boxes { display: flex; gap: 12px; justify-content: center; margin: 6px 0; }
.boxes span { border: 2px solid var(--ink); border-radius: 10px; padding: 6px 18px; text-align: center; font-weight: 700; line-height: 1.4; }
.boxes small { font-weight: 600; color: var(--muted); }
.cq .fig .figs { display: grid; gap: 10px; margin: 6px 0; }
.cq .fig .figs.two { grid-template-columns: 1fr 1fr; }
.cq .fig .panel { border: 1px solid var(--line); border-radius: 12px; padding: 6px; }
.cq .fig .cap { text-align: center; font-weight: 700; font-size: 14px; }
.part .ans .fig svg { max-width: 420px; margin: 0 auto; }

.book ol, .part .ans ol, .steps-ol { list-style-type: bengali; }
@media (max-width: 480px) { .tbl { font-size: 15px; } .tbl th, .tbl td { padding: 8px 9px; } .tbl td:first-child { width: 28%; } }
.idgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
@media (min-width: 640px) { .idgrid { grid-template-columns: repeat(4, 1fr); } }
.idc { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 8px 10px 10px; text-align: center; }
.idc svg { max-width: 120px; margin: 0 auto 4px; }
.idc b { display: block; font-size: 16px; }
.idc span { display: block; font-size: 14px; color: var(--muted); line-height: 1.5; }
.idc.on { border: 2px solid var(--peach); }
@media print {
  .part .ans .fig svg, .cq .fig svg, .mcq .fig svg, .stim .fig svg { max-width: 62mm !important; }
  figure .figs.two { grid-template-columns: 1fr 1fr; }
  figure .panel svg { max-height: 70mm; }
  .hero .pic { max-height: 70mm; }
}

/* ---------- v2: wide, short, interactive ---------- */
.wide { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.exams { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0 6px; }
.exams span { font-size: 12.5px; line-height: 1.5; background: var(--sky-bg); color: var(--sky); border-radius: 6px; padding: 1px 7px; font-weight: 600; }
.cq .head { width: 100%; border: 0; text-align: left; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 12px 14px; background: var(--card); cursor: pointer; color: var(--ink); }
.cq .head .no { font-weight: 700; font-size: 16.5px; }
.cq .head .chev { margin-left: auto; color: var(--muted); transition: transform .2s; }
.cq .head .exams { flex-basis: 100%; margin: 0; }
.cq.open .head { background: var(--soft); }
.cq.open .head .chev { transform: rotate(180deg); }
.cq .cqbody { display: none; }
.cq.open .cqbody { display: block; }

.v2hero { display: grid; gap: 18px; align-items: center; padding: 18px 0 4px; }
@media (min-width: 900px) { .v2hero { grid-template-columns: 1.1fr 1fr; } }
.v2hero .pic { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.v2hero .pic img { width: 100%; height: auto; }
.v2hero h1 { font-size: 30px; }

.sec { margin: 40px 0; }
.sec > h2 { font-size: 23px; margin: 0 0 4px; }
.sec > .sub { color: var(--muted); font-size: 15.5px; margin: 0 0 12px; }

/* story strip */
.story { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
@media (min-width: 900px) { .story { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; } }
.story .sc { scroll-snap-align: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.story .sc img { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; display: block; }
.story .sc div { padding: 10px 12px 12px; }
.story .sc b { display: block; color: var(--peach); }
.story .sc span { font-size: 15.5px; line-height: 1.6; }
.legend { font-size: 15px; color: var(--muted); background: var(--soft); border-radius: 12px; padding: 8px 12px; margin-top: 10px; }

/* explorer */
.ex { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 14px; display: grid; gap: 14px; }
@media (min-width: 900px) { .ex { grid-template-columns: 1fr 1fr; padding: 20px; gap: 24px; } }
.ex .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--soft); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; border-radius: 999px; padding: 4px 14px; font-size: 15px; color: var(--muted); font-weight: 600; }
.seg button.on { background: var(--ink); color: #fff; }
.stage { position: relative; aspect-ratio: 420/260; margin-top: 8px; }
.stage > div { position: absolute; inset: 0; opacity: 0; transition: opacity .45s ease; }
.stage > div.on { opacity: 1; }
.stage svg { width: 100%; height: 100%; }
.dots { display: flex; gap: 6px; justify-content: center; margin-top: 8px; flex-wrap: wrap; }
.dots button { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 3px 12px; font-size: 14px; color: var(--muted); font-weight: 600; }
.dots button.on { border-color: var(--peach); background: var(--peach); color: #fff; }
.ex .info h3 { margin: 0; font-size: 24px; color: var(--peach); }
.ex .info .tag { font-size: 14px; color: var(--muted); }
.ex .info .tutor { background: var(--soft); border-radius: 12px; padding: 8px 12px; margin: 10px 0; font-size: 16px; }
.ex .info ol { list-style: none; padding: 0; margin: 10px 0; counter-reset: e; }
.ex .info ol li { counter-increment: e; position: relative; padding-left: 36px; margin: 8px 0; }
.ex .info ol li::before { content: counter(e, bengali); position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 50%; background: var(--peach-bg); color: var(--peach); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.ex .info .spot { border-top: 1px dashed var(--line); padding-top: 8px; font-size: 15.5px; }
.ex .info .spot b { color: var(--mint); }
.ex .nav { display: flex; gap: 8px; margin-top: 12px; }
.ex .nav .btn { flex: 1; }
.ex .wlabel { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .02em; }

/* cards grid */
.grid2 { display: grid; gap: 14px; }
@media (min-width: 900px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.grid2 .card { margin: 0; }
.grid2 .card h3 { margin: 0 0 8px; font-size: 18.5px; }
.vlji { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.vlji button { border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 6px 4px 4px; font-weight: 700; font-size: 16px; color: var(--ink); }
.vlji button.on { border-color: var(--peach); background: var(--peach-bg); }
.vlji svg { max-width: 70px; margin: 0 auto; }
.vlji-say { margin-top: 8px; font-size: 16px; min-height: 2.8em; }
.mini-tbl { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.mini-tbl th, .mini-tbl td { padding: 6px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.mini-tbl th { font-size: 14px; color: var(--muted); }
.mini-tbl tr:last-child td { border-bottom: 0; }
.mini-tbl .a { color: var(--sky); font-weight: 600; } .mini-tbl .b { color: var(--peach); font-weight: 600; }

/* game */
.game { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 16px; display: grid; gap: 14px; }
@media (min-width: 900px) { .game { grid-template-columns: 1fr 1fr; align-items: center; padding: 20px; } }
.game .pic { background: var(--soft); border-radius: 16px; padding: 10px; }
.game .pic svg { max-width: 260px; margin: 0 auto; }
.game .bar2 { display: flex; justify-content: space-between; font-size: 14.5px; color: var(--muted); }
.game .ch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.game .ch button { border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 9px 8px; font-size: 16px; font-weight: 600; color: var(--ink); }
.game .ch button.right { border-color: var(--mint); background: var(--mint-bg); }
.game .ch button.wrong { border-color: var(--rose); background: var(--rose-bg); }
.game .fb { min-height: 3.2em; margin-top: 10px; font-size: 16px; }

/* true / false */
.tf { display: grid; gap: 10px; }
@media (min-width: 900px) { .tf { grid-template-columns: 1fr 1fr; } }
.tfc { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.tfc .s { font-weight: 600; }
.tfc .row { display: flex; gap: 8px; margin-top: 8px; }
.tfc .row button { flex: 1; border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 5px; font-weight: 700; color: var(--ink); }
.tfc .why { display: none; margin-top: 8px; font-size: 15.5px; background: var(--soft); border-radius: 10px; padding: 8px 10px; }
.tfc.done .why { display: block; }
.tfc.done .row button.right { border-color: var(--mint); background: var(--mint-bg); }
.tfc.done .row button.wrong { border-color: var(--rose); background: var(--rose-bg); }
.frame4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 900px) { .frame4 { grid-template-columns: repeat(4, 1fr); } }
.frame4 div { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: 12px; padding: 8px 10px; font-size: 15px; line-height: 1.55; }
.frame4 b { display: block; color: var(--c); font-size: 17px; }
.cqcols { display: grid; gap: 0 14px; }
@media (min-width: 1000px) { .cqcols { grid-template-columns: 1fr 1fr; align-items: start; } }
.mcqcols { display: grid; gap: 0 14px; }
@media (min-width: 1000px) { .mcqcols { grid-template-columns: 1fr 1fr; align-items: start; } }
@media print { .story { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; } .stage > div { position: static; opacity: 1; display: none; } .stage > div.on { display: block; } .stage { aspect-ratio: auto; } .cq .cqbody { display: block; } .game, .tfc .row { display: none; } .tfc .why { display: block; } }
