@font-face{font-family:Guide Bengali;src:url("bangla-regular.woff") format("woff");font-weight:400 500;font-display:swap}
@font-face{font-family:Guide Bengali;src:url("bangla-bold.woff") format("woff");font-weight:600 900;font-display:swap}

:root{
  --ink:#221912;--muted:#62584f;--paper:#faf7f1;--panel:#fffdfa;--line:#e0d7ca;
  --night:#15100d;--orange:#ff7b43;--orange-soft:#ffa477;--rust:#9e3414;
  --sans:Inter,"Segoe UI",Arial,"Guide Bengali",sans-serif;
  --display:Georgia,"Guide Bengali",serif;
  --mono:"SFMono-Regular",Consolas,"Liberation Mono","Guide Bengali",monospace;
  --gutter:clamp(1rem,5vw,5rem);--header:74px;--wrap:1336px;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-padding-top:calc(var(--header) + 1rem)}
body{margin:0;background:var(--paper);color:var(--ink);font:1rem/1.75 var(--sans);-webkit-font-smoothing:antialiased}
[hidden]{display:none!important}
h1,h2,h3,p{margin:0}
h1,h2,h3{line-height:1.2}
a{color:inherit;text-underline-offset:.22em}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
button,a,summary{-webkit-tap-highlight-color:transparent}
:focus-visible{outline:3px solid #db602d;outline-offset:4px}
img{max-width:100%;height:auto}
.wrap{width:min(var(--wrap),100% - var(--gutter)*2);margin-inline:auto}
.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.skip{position:fixed;left:1rem;top:.6rem;z-index:40;transform:translateY(-250%);background:var(--orange);color:var(--night);padding:.65rem 1rem;border-radius:.4rem}
.skip:focus{transform:none}

header{position:sticky;top:0;z-index:10;color:#f9efe6;background:#16110ff5;border-bottom:1px solid #3b2b22;backdrop-filter:blur(14px)}
.header-row{min-height:var(--header);display:flex;align-items:center;justify-content:space-between;gap:clamp(.65rem,2vw,2rem)}
.brand{display:inline-flex;align-items:center;gap:.75rem;text-decoration:none;white-space:nowrap;font-size:1.18rem;font-weight:750;letter-spacing:-.038em}
.brand b{width:2.25rem;height:2.25rem;display:grid;place-items:center;background:var(--orange);color:#21140e;border-radius:.55rem}
.brand b svg{width:1.33rem;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.brand em{font-family:var(--display);font-weight:normal}
header nav{display:flex;gap:clamp(.6rem,2.5vw,2.4rem);align-items:center;margin-inline:auto}
header nav a{font-size:.91rem;font-weight:650;text-decoration:none;color:#ddccc0;white-space:nowrap}
header nav a:hover,header nav a[aria-current=page]{color:var(--orange-soft)}
.search-button{display:inline-flex;align-items:center;gap:.55rem;padding:.46rem .85rem;white-space:nowrap;min-height:44px;color:#f9efe6;background:#271e19;border:1px solid #594033;border-radius:.55rem;font-size:.9rem}
.search-button svg{width:1rem;height:1rem;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.search-button:hover{border-color:var(--orange-soft);color:var(--orange-soft)}

.hero{position:relative;overflow:hidden;isolation:isolate;background:#18110e;color:#fbf3e9;border-bottom:1px solid #4a2c1f}
.hero::before{position:absolute;inset:0;content:"";z-index:-1;background:radial-gradient(ellipse at 78% 44%,#682c194f,transparent 57%),radial-gradient(ellipse at 6% 110%,#7e371f4d,transparent 58%),linear-gradient(118deg,#15100d,#201510 67%,#1b110e)}
.hero::after{position:absolute;inset:0;z-index:-1;pointer-events:none;content:"";background:repeating-linear-gradient(116deg,transparent 0 105px,#ed976710 105px 106px);mask-image:linear-gradient(90deg,#000,transparent 85%)}
.hero-grid{min-height:clamp(520px,42vw,680px);display:grid;grid-template-columns:minmax(0,.96fr) minmax(0,1.04fr);gap:clamp(1.5rem,5vw,5.5rem);align-items:center;padding-block:clamp(3.2rem,6.4vw,6.75rem)}
.hero-copy{position:relative;z-index:1}
.eyebrow{display:block;color:var(--rust);font:700 .82rem/1.5 var(--mono);letter-spacing:.085em;text-transform:uppercase}
.hero-kicker{display:flex;align-items:center;gap:.65rem;color:#f9b193}
.hero-kicker span{display:block;background:var(--orange);width:1.3rem;height:1px}
.hero h1{font:760 clamp(3.05rem,6.2vw,6.4rem)/.97 var(--sans);letter-spacing:-.079em;margin:.32em 0 .23em}
.hero h1 em{display:block;color:var(--orange);font:italic 500 1.08em/.98 var(--display);letter-spacing:-.078em}
.hero-intro{max-width:33rem;color:#e1d2c8;font-size:clamp(1.01rem,1.38vw,1.2rem);line-height:1.85}
.hero-intro strong{color:#fff1e5}
.type-line{display:flex;align-items:center;gap:.55rem;height:2rem;margin-top:.72rem;color:#ffb48f;font:650 .89rem/1.4 var(--mono)}
.type-prefix{color:#c07e5e}
.type-cursor{width:2px;height:1em;background:#ffab81;animation:cursor 1.1s step-end 4}
@keyframes cursor{50%{opacity:0}}
.hero-actions{display:flex;flex-wrap:wrap;gap:.65rem;margin-top:1.15rem}
.cta{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:.66rem 1.18rem;border-radius:.5rem;background:var(--orange);color:#25140e;text-decoration:none;font-weight:750;border:1px solid transparent;transition:background .18s,border-color .18s,color .18s}
.cta:hover{background:#ff9d6a}
.cta-outline{background:#291c17;color:#f5e8db;border-color:#73503e}
.cta-outline:hover{background:#3d271e;color:#fff1e8;border-color:#d18f6b}

.route-card{min-width:0;--spot-x:65%;--spot-y:37%;isolation:isolate;overflow:hidden;position:relative;border:1px solid #77503c;border-radius:1.2rem;background:radial-gradient(ellipse at var(--spot-x) var(--spot-y),#67351e7d,transparent 62%),#261914;box-shadow:0 24px 72px #0a05048c,inset 0 0 36px #120e0b69}
.route-bar,.route-detail{display:flex;justify-content:space-between;align-items:center;gap:.75rem;position:relative;padding:.8rem clamp(.8rem,2.2vw,1.4rem);background:#251913d6}
.route-bar{border-bottom:1px solid #56382b}
.route-bar h2{display:flex;align-items:center;gap:.58rem;color:#f5dfd1;font:700 .9rem/1.4 var(--sans);letter-spacing:.01em}
.route-bar svg{width:1.2rem;height:1.2rem;stroke:var(--orange);fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.route-bar>span{font:700 .78rem var(--mono);color:#e8b298;white-space:nowrap}
.route-bar b{color:var(--orange)}
.route-fallback .route-trail{transition:stroke-dashoffset .45s ease-out}
.route-map{position:relative;aspect-ratio:600/320;min-height:174px}
.road-svg{display:block;width:100%;height:100%;position:absolute;inset:0;pointer-events:none}
.map-node{position:absolute;top:var(--y);left:var(--x);transform:translate(-50%,-50%);width:47px;height:48px;display:grid;place-items:center;border:0;background:transparent;padding:0;color:#fae1d4;border-radius:.6rem}
.map-pin{width:13px;height:13px;border:2px solid #f49a72;border-radius:50%;background:#291916;box-shadow:0 0 0 4px #2b1b17;transition:background .2s,box-shadow .2s}
.map-label{position:absolute;top:39px;line-height:1.4;white-space:nowrap;font-size:clamp(.75rem,1.15vw,.92rem);font-weight:750;color:#f6e0d5;padding:.16rem .34rem;border-radius:.3rem;background:#2a1a15e8}
.map-node:hover .map-pin,.map-node[aria-pressed=true] .map-pin{background:#ff995f;border-color:#ffd4bd;box-shadow:0 0 0 5px #ab583a91,0 0 18px #ff8143}
.map-node[aria-pressed=true] .map-label{color:#ffd8c4}
.route-detail{border-top:1px solid #56382b;min-height:90px}
.route-detail h3{font-size:1.03rem;color:#fff2e8}
.route-detail p{color:#e1c9bc;font-size:.87rem;line-height:1.65;margin-top:.25rem}
.route-link{flex:none;display:inline-flex;align-items:center;min-height:44px;border:1px solid #845239;border-radius:.45rem;padding:.38rem .65rem;color:#ffd0b5;font-size:.85rem;font-weight:700;text-decoration:none}
.route-link:hover{background:#543020;border-color:#ff9b6b}

#library{padding-block:clamp(2.5rem,6vw,5rem) clamp(3.2rem,8vw,7rem)}
.library-head{display:flex;align-items:end;justify-content:space-between;gap:1rem;margin-bottom:1.65rem;padding-bottom:1.1rem;border-bottom:1px solid var(--line)}
.library-head h2{font:600 clamp(2.1rem,4.5vw,3.8rem)/1.14 var(--display);letter-spacing:-.045em}
.library-head p{color:var(--muted);font-size:.95rem}
#library section+section{margin-top:clamp(2.2rem,5vw,4rem)}
#library section h2{font-size:clamp(1.35rem,2.55vw,2.05rem);letter-spacing:-.042em;margin-bottom:.75rem}
.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(.8rem,1.8vw,1.35rem)}
.card{min-height:12.6rem;min-width:0;position:relative;display:flex;flex-direction:column;align-items:flex-start;text-decoration:none;border:1px solid var(--line);border-radius:.85rem;background:var(--panel);padding:clamp(1.1rem,2.1vw,1.65rem);box-shadow:0 4px 14px #38200c08;transition:border-color .2s,box-shadow .22s}
.card:hover{border-color:#c77551;box-shadow:0 12px 28px #38200c14}
.card small{font-size:.86rem;font-weight:700;color:var(--rust)}
.card h3{font-size:clamp(1.42rem,2.15vw,1.9rem);letter-spacing:-.052em;margin:.24em 0 .34em}
.card p{color:#594f46;line-height:1.73}
.card strong{padding-top:1rem;margin-top:auto;color:#8d2f13;font-size:.9rem}

.reader{display:grid;grid-template-columns:minmax(170px,222px) minmax(0,860px);align-items:start;justify-content:center;gap:clamp(1.35rem,4vw,4.5rem);padding-block:clamp(1.6rem,4vw,4rem) clamp(3rem,8vw,7rem)}
.side{position:sticky;top:calc(var(--header) + 1.35rem);max-height:calc(100vh - var(--header) - 2.5rem);overflow:auto;align-self:start;padding:.55rem .65rem .65rem;border:1px solid var(--line);border-radius:.8rem;background:#f5eee4}
.side h2,.side h3{font-size:.91rem;padding:.65rem .65rem .55rem;color:#665443}
.side a{display:block;border-radius:.4rem;text-decoration:none;padding:.38rem .65rem;color:#4b3b30;font-size:.91rem;font-weight:650}
.side a:is(:hover,.active,[aria-current=page]){background:#2b1b15;color:#fff1e8}
.side a:is(.active,[aria-current=page]){box-shadow:inset 3px 0 var(--orange)}
.chapter-content,#page{min-width:0}
.reader h1{margin:.18em 0 .18em;font:620 clamp(2.65rem,6vw,5rem)/1.08 var(--display);letter-spacing:-.056em;overflow-wrap:anywhere}
.reader .intro{font-size:clamp(1.06rem,1.6vw,1.25rem);color:var(--muted);max-width:58ch;margin:0 0 1.6rem;line-height:1.75}
aside,.widget{padding:1rem clamp(.85rem,2vw,1.4rem);margin:1rem 0;background:#fff0df;border:1px solid #e9c5aa;border-inline-start:4px solid #d35d29;border-radius:.55rem;overflow-wrap:anywhere}
.reader article{padding:clamp(1rem,3.3vw,2.65rem);background:var(--panel);border:1px solid var(--line);border-radius:.9rem;overflow-x:auto;overflow-wrap:anywhere;font-size:1.015rem;line-height:1.83}
.reader article:has(.unit){padding:0;background:none;border:0;overflow:visible}
.reader article :is(h1,h2,h3,h4){font:750 1.38rem/1.32 var(--sans);letter-spacing:-.025em;margin:1.35em 0 .48em;color:#322017}
.reader article p,.reader article ul,.reader article ol{margin:.7em 0}
.reader article ul,.reader article ol{padding-inline-start:1.4em}
.reader article li+li{margin-top:.24em}
.reader article a{color:var(--rust)}
.reader article figure{margin:1.2rem 0}
.reader article table{display:block;overflow-x:auto;border-collapse:collapse;width:100%;margin:1rem 0}
.reader article :is(th,td){border:1px solid var(--line);padding:.5rem .65rem;text-align:left;vertical-align:top;min-width:6rem}
.reader article th{background:#37241c;color:#f6eee7}
.reader article blockquote{padding:.3rem .8rem;margin-inline:0;background:#fcf1e7;border-left:3px solid #dc7644}
.reader article pre{overflow-x:auto}
.mobileNav{display:none}
.lens,.recall{margin:1rem 0;padding:1.2rem;background:#2d201a;color:#fff2e9;border-radius:.8rem}
.lens p,.recall p{margin-top:.45rem;color:#edd9ce}
.stops,.controls{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap;margin:.75rem 0}
.stops button,.controls button{min-height:44px;padding:.4rem .75rem;border:1px solid #b28972;border-radius:.45rem;background:transparent;color:inherit}
.stops button[aria-pressed=true],.controls button[aria-pressed=true]{color:#25150e;background:#ffa577;border-color:#d66f42}
.meter{height:6px;background:#e2d1bf;border-radius:8px;overflow:hidden}
.meter i{display:block;height:100%;background:#bd4c24}
.widget label{display:inline-flex;flex-direction:column;margin:.4rem;max-width:100%}
.widget input{width:145px}
.widget output{display:block;font-weight:750;font-size:1.2rem}
.unit{border:1px solid var(--line);border-radius:.6rem;background:var(--panel);overflow:hidden;margin:.6rem 0}
.unit summary,.recall summary{cursor:pointer;padding:1rem;font-weight:750}
.unit[open] summary{background:#f0e3d7}
.copy{padding:.25rem clamp(.85rem,3vw,2rem) 1rem;overflow-x:auto}
.zoom{border:0;background:transparent;padding:0;display:block;cursor:zoom-in;margin:1rem auto}
.zoom img{display:block}
footer{border-top:1px solid #48352a;background:#211813;color:#f7e2d2}
.footer-row{padding-block:1.45rem;display:flex;justify-content:space-between;gap:.4rem 1rem;flex-wrap:wrap;font-weight:650}
footer span{color:#d1b8a8;font-size:.91rem}

dialog{color:var(--ink);background:var(--panel);width:min(660px,calc(100% - 1.75rem));max-height:82vh;border:1px solid var(--line);border-radius:.9rem;padding:clamp(.9rem,3vw,1.5rem);box-shadow:0 24px 80px #16100b55}
dialog::backdrop{background:#160f0bc4;backdrop-filter:blur(4px)}
dialog form{display:flex;align-items:center;justify-content:space-between;gap:.65rem;margin-bottom:.6rem}
dialog button{min-height:44px;border:1px solid #dbccbc;background:#f9f1e8;color:inherit;border-radius:.45rem;padding:.35rem .75rem}
input,textarea,select{border:1px solid #b7a391;border-radius:.45rem;padding:.55rem .75rem;color:var(--ink);background:#fffdfa;max-width:100%}
dialog input,textarea{width:100%}
dialog input{margin:.6rem 0}
#hits a,.hit{display:block;margin:.45rem 0;width:100%;padding:.6rem .75rem;background:#fff9f1;border:1px solid var(--line);border-radius:.45rem;text-align:start;text-decoration:none}
#hits a:hover,.hit:hover{border-color:#b76847}
.hit small{display:block;color:#62564a}
@media(max-width:980px){.hero-grid{gap:1.65rem}.route-detail{min-height:85px}}
@media(max-width:800px){:root{--header:64px}.hero-grid{grid-template-columns:1fr;gap:2rem}.hero h1{font-size:clamp(3.55rem,10vw,5.4rem)}.route-card{width:min(100%,610px)}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.reader{grid-template-columns:minmax(0,1fr)}.side{display:none}.mobileNav{display:block;margin:0 0 1.15rem;width:100%;min-height:44px;font-weight:650}.chapter-content .mobileNav{margin-top:0}header nav{gap:1rem;margin-inline:0}}
@media(max-width:610px){:root{--header:60px}.header-row{gap:.45rem}.brand{font-size:1.03rem;gap:.45rem}.brand b{width:1.9rem;height:1.9rem}.brand b svg{width:1.1rem}.search-button span{display:none}.search-button{min-width:44px;justify-content:center;padding:.4rem}.header-row nav a:not(.nav-library){display:none}.header-row nav a{font-size:.84rem}.route-detail p{font-size:.84rem}.library-head{align-items:start;flex-direction:column;gap:.28rem}.cards{grid-template-columns:1fr}.card{min-height:0}.hero-grid{padding-block:2.65rem 2.15rem}.hero-actions .cta{padding-inline:.85rem}}
@media(max-width:350px){.hero h1{font-size:3.15rem}.brand{font-size:.97rem}.route-detail{gap:.45rem}.route-link{padding-inline:.4rem}.route-map{min-height:166px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.type-cursor{display:none}}
