/* =========================================================
   পাঠশালা — অ্যাডভানসড্ এডুকেয়ার এন্ড কম্পিউটার
   সব পেজের জন্য একটি শেয়ার্ড স্টাইলশিট
   ========================================================= */
:root{
  --navy:#12558f;
  --navy-d:#0b3a66;
  --navy-l:#e8f1fa;
  --orange:#ef7d1a;
  --orange-d:#c7600a;
  --orange-l:#fff2e5;
  --green:#1f8a4c;
  --green-l:#e6f6ec;
  --red:#c63737;
  --red-l:#fdecec;
  --purple:#6b3fa0;
  --purple-l:#f3ecfb;
  --ink:#1d2733;
  --ink-2:#4a5866;
  --line:#dbe3ec;
  --bg:#f6f8fb;
  --card:#ffffff;
  --radius:14px;
  --shadow:0 1px 2px rgba(16,40,70,.06),0 4px 14px rgba(16,40,70,.06);
  --fs:17px;
  --font:"Hind Siliguri","Noto Sans Bengali",system-ui,sans-serif;
  --font-h:"Baloo Da 2","Hind Siliguri",sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--font);font-size:var(--fs);line-height:1.75;color:var(--ink);background:var(--bg)}
img{max-width:100%;height:auto}
a{color:var(--navy)}
h1,h2,h3,h4{font-family:var(--font-h);line-height:1.3;color:var(--navy-d);margin:1.2em 0 .5em}
h1{font-size:clamp(1.6rem,4vw,2.3rem)}
h2{font-size:clamp(1.35rem,3vw,1.7rem)}
h3{font-size:1.18rem}
p{margin:.5em 0 .9em}
.wrap{max-width:1180px;margin:0 auto;padding:0 16px}
.sr{position:absolute;left:-9999px}
button{font-family:inherit;font-size:inherit}
.katex{font-size:1.05em}

/* ---------- টপবার ও হেডার ---------- */
.topbar{background:var(--navy-d);color:#dce9f6;font-size:.86rem}
.topbar .wrap{display:flex;flex-wrap:wrap;gap:4px 18px;align-items:center;justify-content:space-between;padding-top:5px;padding-bottom:5px}
.topbar a{color:#fff;text-decoration:none;white-space:nowrap}
.topbar .phones a{margin-left:10px}
.site-head{background:#fff;border-bottom:3px solid var(--orange);position:sticky;top:0;z-index:50}
.site-head .wrap{display:flex;align-items:center;gap:12px;padding-top:8px;padding-bottom:8px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;min-width:0}
.brand img{width:52px;height:52px;flex:none}
.brand b{display:block;font-family:var(--font-h);color:var(--navy-d);font-size:1.08rem;line-height:1.2}
.brand small{display:block;color:var(--orange-d);font-size:.82rem;line-height:1.3}
.head-nav{margin-left:auto;display:flex;gap:4px;align-items:center}
.head-nav a{text-decoration:none;padding:6px 10px;border-radius:8px;font-weight:600;color:var(--navy-d);white-space:nowrap}
.head-nav a:hover{background:var(--navy-l)}
.head-nav .cta{background:var(--orange);color:#fff}
.head-nav .cta:hover{background:var(--orange-d)}
.fs-ctl{display:flex;gap:2px}
.fs-ctl button{border:1px solid var(--line);background:#fff;border-radius:6px;padding:0 7px;cursor:pointer;color:var(--navy-d);line-height:1.8}
@media(max-width:760px){
  .head-nav .hide-sm{display:none}
  .brand img{width:44px;height:44px}
  .brand b{font-size:.98rem}
  .topbar .addr{display:none}
}
.readbar{position:fixed;top:0;left:0;height:3px;background:var(--orange);width:0;z-index:60;transition:width .1s}

/* ---------- ব্রেডক্রাম্ব ---------- */
.crumb{font-size:.9rem;color:var(--ink-2);padding:10px 0 0}
.crumb a{text-decoration:none}
.crumb span{margin:0 6px;color:#9aa8b6}

/* ---------- হিরো ---------- */
.hero{background:linear-gradient(135deg,var(--navy-d),var(--navy) 60%,#1f78bf);color:#fff;padding:34px 0 30px;position:relative;overflow:hidden}
.hero h1{color:#fff;margin:.2em 0 .3em}
.hero p{color:#dbe9f7;max-width:760px}
.hero .chip{display:inline-block;background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.25);border-radius:99px;padding:2px 12px;font-size:.85rem;margin:0 6px 6px 0}
.hero::after{content:"";position:absolute;right:-60px;top:-60px;width:260px;height:260px;border-radius:50%;border:30px solid rgba(239,125,26,.25)}
.hero-search{margin-top:14px;display:flex;max-width:560px;background:#fff;border-radius:12px;overflow:hidden}
.hero-search input{flex:1;border:0;padding:12px 14px;font:inherit;min-width:0}
.hero-search input:focus{outline:none}

/* ---------- কার্ড গ্রিড ---------- */
.grid{display:grid;gap:14px;grid-template-columns:repeat(auto-fill,minmax(230px,1fr))}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:16px 18px}
a.card{text-decoration:none;color:inherit;display:block;transition:transform .15s,border-color .15s}
a.card:hover{transform:translateY(-2px);border-color:var(--orange)}
.card h3{margin:.1em 0 .3em}
.card .meta{font-size:.85rem;color:var(--ink-2)}
.badge{display:inline-block;font-size:.75rem;padding:1px 9px;border-radius:99px;background:var(--navy-l);color:var(--navy-d);font-weight:600}
.badge.soon{background:#eef0f3;color:#6b7785}
.badge.new{background:var(--green-l);color:var(--green)}
.card.disabled{opacity:.62}
.sec{padding:26px 0}
.sec-title{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.sec-title h2{margin-bottom:.3em}

/* ---------- অধ্যায় তালিকা ---------- */
.chlist{list-style:none;padding:0;margin:0;display:grid;gap:10px}
.chlist li a,.chlist li .row{display:flex;align-items:center;gap:14px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px 14px;text-decoration:none;color:inherit}
.chlist li a:hover{border-color:var(--orange)}
.chlist .num{flex:none;width:42px;height:42px;border-radius:10px;background:var(--navy);color:#fff;display:grid;place-items:center;font-family:var(--font-h);font-size:1.15rem}
.chlist .row .num{background:#b9c4d0}
.chlist .t{flex:1;min-width:0}
.chlist .t b{display:block}
.chlist .t small{color:var(--ink-2)}
.chlist .done{color:var(--green);font-weight:700;font-size:.85rem}

/* ---------- অধ্যায় পেজ লেআউট ---------- */
.ch-head{background:#fff;border-bottom:1px solid var(--line);padding:6px 0 18px}
.ch-head h1{margin:.3em 0 .1em}
.ch-head .sub{color:var(--ink-2)}
.ch-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:26px;align-items:start;padding-top:22px;padding-bottom:40px}
.toc{position:sticky;top:86px;max-height:calc(100vh - 100px);overflow:auto;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:12px 10px;font-size:.92rem}
.toc b{display:block;padding:0 8px 6px;color:var(--navy-d);font-family:var(--font-h)}
.toc a{display:block;text-decoration:none;color:var(--ink-2);padding:4px 8px;border-radius:7px;border-left:3px solid transparent;line-height:1.45}
.toc a:hover{background:var(--navy-l)}
.toc a.on{color:var(--navy-d);background:var(--navy-l);border-left-color:var(--orange);font-weight:600}
.toc .tool-link{color:var(--orange-d)}
.toc-toggle{display:none}
@media(max-width:900px){
  .ch-layout{grid-template-columns:minmax(0,1fr)}
  .toc{position:static;max-height:none;display:none}
  .toc.open{display:block}
  .toc-toggle{display:flex;width:100%;justify-content:space-between;align-items:center;background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px 14px;font-weight:600;color:var(--navy-d);cursor:pointer}
}
.content{min-width:0}
.ch-layout > aside{min-width:0}
.katex-display{overflow-x:auto;overflow-y:hidden;padding:2px 0}
.content > section{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:6px 22px 18px;margin-bottom:18px;scroll-margin-top:90px}
@media(max-width:560px){.content > section{padding:4px 14px 14px}}
.content > section > h2:first-child{margin-top:.7em}
.sec-no{display:inline-block;background:var(--orange);color:#fff;border-radius:8px;padding:0 9px;margin-right:6px;font-size:.9em}

/* ---------- বিশেষ বাক্স ---------- */
.box{border-radius:12px;padding:12px 16px;margin:14px 0;border:1px solid;position:relative}
.box > .box-t{font-weight:700;font-family:var(--font-h);display:flex;align-items:center;gap:8px;margin-bottom:4px}
.box p:last-child,.box ul:last-child,.box ol:last-child{margin-bottom:0}
.def{background:var(--navy-l);border-color:#c6dbef}
.def .box-t{color:var(--navy-d)}
.remember{background:var(--green-l);border-color:#bfe5cd}
.remember .box-t{color:var(--green)}
.mistake{background:var(--red-l);border-color:#f3c3c3}
.mistake .box-t{color:var(--red)}
.fix{background:var(--purple-l);border-color:#dccbf0}
.fix .box-t{color:var(--purple)}
.tip{background:var(--orange-l);border-color:#f7d2ad}
.tip .box-t{color:var(--orange-d)}
.ico{width:26px;height:26px;border-radius:50%;display:inline-grid;place-items:center;color:#fff;font-size:.85rem;flex:none}
.def .ico{background:var(--navy)}
.remember .ico{background:var(--green)}
.mistake .ico{background:var(--red)}
.fix .ico{background:var(--purple)}
.tip .ico{background:var(--orange)}
.wrong{color:var(--red);text-decoration:line-through;text-decoration-thickness:1px}
.right{color:var(--green);font-weight:600}

/* ---------- টেবিল ---------- */
.tbl-wrap{overflow-x:auto;margin:12px 0}
table.t{border-collapse:collapse;width:100%;font-size:.95rem;background:#fff}
table.t th,table.t td{border:1px solid var(--line);padding:7px 10px;text-align:left;vertical-align:top}
table.t th{background:var(--navy-l);color:var(--navy-d);font-family:var(--font-h)}
table.t tr:nth-child(even) td{background:#fafcfe}

/* ---------- উদাহরণ ---------- */
.ex{border:1px solid var(--line);border-left:5px solid var(--navy);border-radius:12px;padding:12px 16px;margin:16px 0;background:#fcfdff}
.ex-h{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap}
.ex-h .lbl{font-family:var(--font-h);font-weight:700;color:var(--navy)}
.ex-src{font-size:.78rem;color:var(--ink-2);background:#eef2f6;border-radius:99px;padding:0 8px}
.ex .q{font-weight:600}
.btns{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.btn{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--navy);color:var(--navy);background:#fff;border-radius:9px;padding:5px 14px;cursor:pointer;font-weight:600;text-decoration:none;line-height:1.6}
.btn:hover{background:var(--navy-l)}
.btn.solid{background:var(--navy);color:#fff}
.btn.solid:hover{background:var(--navy-d)}
.btn.or{border-color:var(--orange);color:var(--orange-d)}
.btn.or.solid{background:var(--orange);color:#fff}
.btn:disabled{opacity:.45;cursor:default}
.steps{list-style:none;padding:0;margin:10px 0 0;counter-reset:st}
.steps > li{counter-increment:st;position:relative;padding:6px 10px 6px 44px;border-radius:9px;margin-bottom:6px;background:#fff;border:1px dashed var(--line)}
.steps > li::before{content:counter(st);position:absolute;left:10px;top:8px;width:24px;height:24px;border-radius:50%;background:var(--orange);color:#fff;display:grid;place-items:center;font-size:.8rem;font-weight:700}
.steps > li.hid{display:none}
.steps > li.ans{border:1px solid #bfe5cd;background:var(--green-l)}
.steps > li.ans::before{content:"✓";background:var(--green)}
.sol-wrap.hid{display:none}

/* ---------- নিজে করি ---------- */
.try{background:#fffaf2;border:1px dashed var(--orange);border-radius:12px;padding:10px 16px;margin:14px 0}
.try .box-t{color:var(--orange-d);font-weight:700;font-family:var(--font-h)}
.try-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:6px 0}
.try-row input{width:150px}
.fb{font-weight:600}
.fb.ok{color:var(--green)}
.fb.no{color:var(--red)}

/* ---------- ইনপুট ---------- */
input[type=text],input[type=number],select{font:inherit;border:1px solid #c3cfdb;border-radius:9px;padding:6px 10px;background:#fff;color:var(--ink);max-width:100%}
input:focus,select:focus{outline:2px solid var(--orange);outline-offset:1px;border-color:transparent}
label.f{display:flex;flex-direction:column;font-size:.88rem;color:var(--ink-2);gap:2px}

/* ---------- টুল ---------- */
.tool{border:2px solid var(--orange);border-radius:16px;margin:18px 0;overflow:hidden;background:#fff}
.tool-h{background:linear-gradient(90deg,var(--orange),#f59a43);color:#fff;padding:8px 16px;font-family:var(--font-h);font-weight:700;display:flex;gap:8px;align-items:center}
.tool-b{padding:12px 16px 16px}
.tool-form{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end}
.tool-out{margin-top:12px}
.tool-out:empty{display:none}
.out-card{background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:10px 14px}
.out-big{font-size:1.25rem;font-weight:700;color:var(--navy-d)}
.chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
.chips span{background:#fff;border:1px solid var(--line);border-radius:99px;padding:1px 10px;font-size:.88rem}
.chips span.yes{background:var(--green-l);border-color:#bfe5cd;color:var(--green);font-weight:600}
.chips span.no{color:#9aa6b2;text-decoration:line-through}
.ldiv{font-family:"Courier New",monospace;font-size:.95rem;white-space:pre;overflow-x:auto;background:#fff;border:1px solid var(--line);border-radius:10px;padding:8px 12px;line-height:1.45}
.ldiv .hl{background:#ffe2c2;color:#8a3b00;border-radius:3px}

/* ---------- শ্রেণিবিন্যাস গাছ ---------- */
.tree{display:flex;flex-direction:column;align-items:flex-start;gap:0;margin:16px 0;overflow-x:auto;padding-bottom:6px}
.tree ul{display:flex;justify-content:center;padding:18px 0 0;margin:0;position:relative;list-style:none}
.tree li{display:flex;flex-direction:column;align-items:center;position:relative;padding:18px 4px 0}
.tree li::before,.tree li::after{content:"";position:absolute;top:0;width:50%;height:18px;border-top:2px solid #9fb6cc}
.tree li::before{right:50%}
.tree li::after{left:50%;border-left:2px solid #9fb6cc}
.tree li:first-child::before,.tree li:last-child::after{border:0}
.tree li:last-child::before{border-right:2px solid #9fb6cc;border-radius:0 8px 0 0}
.tree li:first-child::after{border-radius:8px 0 0 0}
.tree li:only-child::before{display:none}
.tree li:only-child::after{border-radius:0;width:0;left:50%}
.tree ul ul::before{content:"";position:absolute;top:0;left:50%;border-left:2px solid #9fb6cc;height:18px}
.tree > ul{padding-top:0;margin:0 auto}
.tree > ul > li{padding-top:0}
.tree > ul > li::before,.tree > ul > li::after{display:none}
.tree .n{background:#fff;border:2px solid var(--navy);color:var(--navy-d);border-radius:10px;padding:2px 10px;font-weight:700;font-size:.86rem;white-space:nowrap;transition:all .2s}
.tree .n.r{border-color:var(--green);color:var(--green)}
.tree .n.ir{border-color:var(--purple);color:var(--purple)}
.tree .n.lit{background:var(--orange);border-color:var(--orange);color:#fff;transform:scale(1.07);box-shadow:0 3px 10px rgba(239,125,26,.4)}

/* ---------- MCQ ---------- */
.mcq-score{position:sticky;top:76px;z-index:5;display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;align-items:center;background:var(--navy-d);color:#fff;border-radius:12px;padding:8px 14px;margin:10px 0}
.mcq-score b{font-size:1.15rem}
.mcq{border:1px solid var(--line);border-radius:12px;padding:12px 14px;margin:12px 0;background:#fff}
.mcq .qn{font-weight:600;margin-bottom:6px}
.mcq .qn .no{color:var(--orange-d);margin-right:4px}
.opts{display:grid;gap:7px;grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
.opt{text-align:left;border:1.5px solid var(--line);background:#fff;border-radius:10px;padding:7px 12px;cursor:pointer;display:flex;gap:8px;align-items:center;color:var(--ink)}
.opt:hover:not(:disabled){border-color:var(--navy)}
.opt .k{flex:none;width:26px;height:26px;border-radius:50%;background:var(--navy-l);color:var(--navy-d);display:grid;place-items:center;font-weight:700;font-size:.85rem}
.opt.ok{border-color:var(--green);background:var(--green-l)}
.opt.ok .k{background:var(--green);color:#fff}
.opt.bad{border-color:var(--red);background:var(--red-l)}
.opt.bad .k{background:var(--red);color:#fff}
.opt:disabled{cursor:default}
.mcq .why{display:none;margin-top:8px;font-size:.93rem;background:var(--bg);border-radius:9px;padding:7px 12px}
.mcq.done .why{display:block}
.mcq .stmts{margin:4px 0 8px;padding-left:4px;list-style:none}

/* ---------- সৃজনশীল ---------- */
.cq{border:1px solid var(--line);border-radius:12px;padding:12px 16px;margin:16px 0;background:#fff}
.cq .stem{background:var(--navy-l);border-radius:10px;padding:8px 14px;margin:6px 0 10px}
.cq .part{border-top:1px dashed var(--line);padding:8px 0}
.cq .part .pq{font-weight:600}
.cq .mark{float:right;font-size:.8rem;color:var(--ink-2);background:#eef2f6;border-radius:99px;padding:0 8px}

/* ---------- ওয়ার্কশিট ---------- */
.ws-ctl{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end;margin:8px 0}
.ws-paper{border:1px solid var(--line);border-radius:12px;padding:16px 20px;background:#fff;margin-top:12px}
.ws-head{display:flex;gap:12px;align-items:center;border-bottom:2px solid var(--navy);padding-bottom:8px;margin-bottom:8px}
.ws-head img{width:62px;height:62px}
.ws-head .c{flex:1;text-align:center}
.ws-head .c b{font-family:var(--font-h);font-size:1.2rem;color:var(--navy-d);display:block;line-height:1.3}
.ws-head .c small{display:block;line-height:1.4}
.ws-meta{display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px 20px;font-size:.92rem;margin:6px 0 10px}
.ws-meta span{border-bottom:1px dotted #888;min-width:150px;display:inline-block}
.ws-q{list-style:none;padding:0;margin:0;counter-reset:wq}
.ws-q li{counter-increment:wq;padding:7px 0 7px 34px;position:relative;border-bottom:1px dashed #e1e6ec;min-height:56px}
.ws-q li::before{content:counter(wq) ".";position:absolute;left:4px;top:7px;font-weight:700;color:var(--navy-d)}
.ws-key{margin-top:14px;font-size:.9rem;border-top:2px dashed var(--orange);padding-top:8px}
.ws-key ol{columns:2;column-gap:30px;margin:0;padding-left:22px}
.ws-foot{margin-top:12px;text-align:center;font-size:.8rem;color:var(--ink-2);border-top:1px solid var(--line);padding-top:6px}

/* ---------- শেয়ার ও প্রগ্রেস ---------- */
.share{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.share a,.share button{display:inline-flex;align-items:center;gap:6px;border-radius:9px;padding:5px 12px;font-weight:600;text-decoration:none;border:0;cursor:pointer;color:#fff;font-size:.92rem}
.share .fb-s{background:#1877f2}
.share .wa-s{background:#25a244}
.share .tg-s{background:#2aa1da}
.share .cp-s{background:#53616f}
.share .nt-s{background:var(--orange)}
.done-box{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;background:var(--green-l);border:1px solid #bfe5cd;border-radius:12px;padding:10px 16px}
.pager{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:14px}
.pager a,.pager span{flex:1;min-width:200px;border:1px solid var(--line);background:#fff;border-radius:12px;padding:10px 14px;text-decoration:none}
.pager span{color:#9aa6b2}
.pager small{display:block;color:var(--ink-2)}
.pager .nx{text-align:right}

/* ---------- সেন্টার প্রচার ---------- */
.promo{display:flex;gap:16px;align-items:center;flex-wrap:wrap;background:linear-gradient(120deg,#fff 0%,var(--orange-l) 100%);border:2px solid var(--orange);border-radius:16px;padding:14px 18px;margin:20px 0}
.promo img{width:84px;height:84px}
.promo .t{flex:1;min-width:220px}
.promo .t b{font-family:var(--font-h);font-size:1.15rem;color:var(--navy-d);display:block}
.promo .t p{margin:.2em 0;color:var(--ink-2)}
.promo .call{display:flex;flex-direction:column;gap:6px}

/* ---------- ফুটার ---------- */
.site-foot{background:var(--navy-d);color:#cfdeee;padding:26px 0 18px;margin-top:20px;font-size:.93rem}
.site-foot a{color:#fff}
.foot-grid{display:grid;gap:18px;grid-template-columns:2fr 1fr 1fr}
@media(max-width:760px){.foot-grid{grid-template-columns:1fr}}
.site-foot h4{color:#fff;margin:0 0 6px}
.site-foot ul{list-style:none;padding:0;margin:0}
.foot-brand{display:flex;gap:10px;align-items:center}
.foot-brand img{width:60px;height:60px;background:#fff;border-radius:50%}
.copy{border-top:1px solid rgba(255,255,255,.15);margin-top:16px;padding-top:10px;text-align:center;font-size:.82rem;color:#9fb6cc}

.float-call{position:fixed;right:14px;bottom:14px;z-index:40;background:var(--orange);color:#fff;border-radius:99px;padding:9px 16px;text-decoration:none;font-weight:700;box-shadow:0 4px 14px rgba(0,0,0,.2)}
.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:#1d2733;color:#fff;padding:8px 16px;border-radius:10px;z-index:80;font-size:.92rem;opacity:0;transition:opacity .2s;pointer-events:none}
.toast.on{opacity:1}

/* ---------- প্রিন্ট ---------- */
.print-only{display:none}
@media print{
  @page{margin:12mm}
  body{background:#fff;font-size:13pt}
  .topbar,.site-head,.site-foot,.toc,.toc-toggle,.float-call,.readbar,.share,.btns,.no-print,.crumb,.pager,.promo,.mcq-score{display:none!important}
  .ch-layout{display:block;padding:0}
  .content > section{border:0;padding:0;break-inside:auto}
  .print-only{display:block}
  body.print-ws .content > section:not(#worksheet),body.print-ws .ch-head,body.print-ws .ws-ctl,body.print-ws #worksheet > h2,body.print-ws #worksheet > p{display:none!important}
  body.print-ws .ws-paper{border:0;padding:0;margin:0}
  .steps > li.hid,.sol-wrap.hid{display:block!important}
  .ws-q li{break-inside:avoid}
}
.content p,.content li,.content td{overflow-wrap:anywhere}
.content .katex{overflow-wrap:normal}

/* ---------- জীববিজ্ঞান অধ্যায়: প্রবাহ, পিরামিড, ক্রম ও বাছাই ---------- */
.stem{background:#f6f9fc;border-left:4px solid var(--navy);border-radius:8px;padding:8px 12px;margin:6px 0}
.sq-part{margin:4px 0}
.flow{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:12px 0}
.fl-step{background:#fff;border:1px solid var(--line);border-left:4px solid var(--navy);border-radius:10px;padding:6px 10px;font-weight:600;color:var(--navy-d);font-size:.92rem;text-align:center}
.fl-arrow{color:var(--orange-d);font-weight:700;font-size:1.05rem}
.pyr{display:flex;flex-direction:column;align-items:center;gap:4px;margin:12px auto;max-width:100%}
.pyr-l{color:#fff;text-align:center;padding:7px 8px;border-radius:8px;font-weight:600;font-size:.9rem;max-width:100%;box-sizing:border-box}
.ord-list{display:grid;gap:8px;margin:8px 0}
.ord-row{padding:6px 8px;border-radius:9px;background:#fff;border:1px dashed var(--line)}
.ord-row.ok-row{background:var(--green-l);border-color:#bfe5cd}
.ord-row.bad-row{background:var(--red-l);border-color:#f3c3c3}
.tool-p{margin:0 0 8px}
.box.warn{background:#fff7ed;border-color:#fdba74}
.box.warn .box-t{color:#9a3412}
.box.warn .ico{background:#ea580c}
@media (max-width:600px){.flow{flex-direction:column;align-items:stretch}.fl-arrow{align-self:center;transform:rotate(90deg)}}
