
/* NahWa Kids: child friendly publishing system, no external libraries */
:is(#nwk-world,#nd-kids-games,#nd-story-world,#nd-my-kids,#nd-kids-learn,#nwk-printables,#nwk-parent-room){
 --nwk-paper:#fcf9f1;--nwk-ink:#263d32;--nwk-pine:#256148;--nwk-sage:#e9f2e9;--nwk-sand:#f9edda;--nwk-petal:#f8e8e5;--nwk-lilac:#f1ebf6;--nwk-mist:#eaf3f5;--nwk-stroke:#dfe6d9;--nwk-serif:"Noto Serif Bengali","Nirmala UI",serif;--nwk-sans:"Noto Sans Bengali","Nirmala UI",system-ui,sans-serif;
 color:var(--nwk-ink);background:var(--nwk-paper);font-family:var(--nwk-sans);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;
}
:is(#nwk-world,#nd-kids-games,#nd-story-world,#nd-my-kids,#nd-kids-learn,#nwk-printables,#nwk-parent-room) :is(h1,h2,h3){text-wrap:balance;overflow-wrap:break-word;letter-spacing:-.025em}
:is(#nwk-world,#nd-kids-games,#nd-story-world,#nd-my-kids,#nd-kids-learn,#nwk-printables,#nwk-parent-room) :is(button,a,input):focus-visible{outline:3px solid #3e7557!important;outline-offset:4px}
:is(#nwk-world,#nd-kids-games,#nd-story-world,#nd-my-kids,#nd-kids-learn,#nwk-printables,#nwk-parent-room) [hidden]{display:none!important}
:is(#nwk-world,#nd-kids-games,#nd-story-world,#nd-my-kids,#nd-kids-learn,#nwk-printables,#nwk-parent-room) :is(img,svg){max-width:100%}
:is(#nd-kids-games,#nd-story-world,#nd-my-kids,#nd-kids-learn,#nwk-printables,#nwk-parent-room) :is(.ndg-wrap,.nds-wrap,.ndmk-wrap,.ndl-wrap,.nwkp-wrap,.nwkpr-wrap){min-width:0}
:is(#nd-kids-games,#nd-story-world,#nd-my-kids,#nd-kids-learn,#nwk-printables,#nwk-parent-room) :is(.ndg-eyebrow,.nds-eyebrow,.ndmk-eyebrow,.ndl-eyebrow,.nwkp-kicker,.nwkpr-eyebrow){color:#5b7f68;letter-spacing:.11em;font-weight:800}
:is(#nd-kids-games,#nd-story-world,#nd-my-kids,#nd-kids-learn,#nwk-printables,#nwk-parent-room) :is(.ndg-hero,.nds-hero,.ndmk-hero,.ndl-hero,.nwkp-hero,.nwkpr-hero){isolation:isolate}
:is(#nd-kids-games,#nd-story-world,#nd-my-kids,#nd-kids-learn,#nwk-printables,#nwk-parent-room) :is(.ndg-hero h1,.nds-hero h1,.ndmk-hero h1,.ndl-hero h1,.nwkp-hero h1,.nwkpr-hero h1){font-family:var(--nwk-serif)!important;color:#294c3a!important;letter-spacing:-.055em!important}
:is(#nd-kids-games,#nd-story-world,#nd-my-kids,#nd-kids-learn,#nwk-printables,#nwk-parent-room) :is(.ndg-hero h1 span,.nds-hero h1 span,.ndmk-hero h1 span,.ndl-hero h1 span){color:#548064!important}
:is(#nd-kids-games,#nd-story-world,#nd-my-kids,#nd-kids-learn,#nwk-printables,#nwk-parent-room) :is(.ndg-hero p:not(.ndg-eyebrow),.nds-hero p:not(.nds-eyebrow),.ndmk-hero p:not(.ndmk-eyebrow),.ndl-hero p:not(.ndl-eyebrow),.nwkp-hero p,.nwkpr-hero p){color:#5a7062;line-height:1.78}
/* Shared top navigation continuity */
#nwk-sub-shell .nwk-sub-top,#nwk-world .nwk-top{background:rgba(252,249,241,.97);border-color:#dfe8dc}
#nwk-sub-shell .nwk-sub-icon,#nwk-world .nwk-circle{background:#fffefa;border-color:#dce6db}
#nwk-sub-shell .nwk-sub-links a[aria-current="page"],#nwk-world .nwk-links a[aria-current="page"]{background:#e3efe5;color:#24583d}
#nwk-sub-shell .nwk-sub-bottom,#nwk-world .nwk-mobile-dock{background:rgba(252,250,245,.98);border-color:#d9e6d9}
/* Home: editorial hero and tactile story rooms */
#nwk-world .nwk-hero{border:1px solid #dee7d6;box-shadow:0 18px 50px rgba(53,80,52,.06)}
#nwk-world .nwk-world-doors{gap:12px}
#nwk-world .nwk-door{border:1px solid rgba(52,90,59,.14);box-shadow:inset 0 1px 0 rgba(255,255,255,.65)}
#nwk-world .nwk-door:focus-visible,#nwk-world .nwk-action:focus-visible{outline-offset:4px}
#nwk-world .nwk-door h3{color:#28503e!important}
#nwk-world .nwk-door p{color:#506d5e}
#nwk-world .nwk-age-dock{border-color:#d9e5da;box-shadow:0 12px 30px rgba(37,77,47,.07)}
#nwk-world .nwk-journey{border-color:#dce6d8}
/* Game Room: calm choices and confidence focused hierarchy */
#nd-kids-games{--g-paper:#fcf9f1;--g-purple:#2b674d;--g-ink:#2b4939;--g-muted:#63766a;--g-line:rgba(58,99,69,.15)}
#nd-kids-games .ndg-hero{padding:31px 32px 30px!important;margin:17px 0 15px!important;border:1px solid #dfe6d9;border-radius:27px;background:radial-gradient(circle at 88% 17%,rgba(244,222,178,.43),transparent 29%),linear-gradient(120deg,#eaf2e6,#fffaf0)}
#nd-kids-games .ndg-hero:before{background:#dae8db;opacity:.35}
#nd-kids-games .ndg-hero:after{background:#f6e4c8;opacity:.48}
#nd-kids-games .ndg-age-gate{background:#fffdf8;border-color:#dae6da;border-radius:22px;box-shadow:0 5px 0 #edf1e7;margin-bottom:17px}
#nd-kids-games .ndg-age{background:#f7faf3;border-color:#dbe5d9;color:#30563f;box-shadow:none;transition:transform .18s,border-color .18s}
#nd-kids-games .ndg-age[aria-pressed="true"]{background:#275e47;border-color:#275e47;color:#fff;box-shadow:none}
#nd-kids-games .ndg-age[aria-pressed="true"] span{color:#e9f5e8}
#nd-kids-games .ndg-age-profile{border-color:#dce8dc;background:#f6faf2}
#nd-kids-games .ndg-session{border-color:#dce5dc}
#nd-kids-games .ndg-personal-card:first-child{background:#eaf3ed}
#nd-kids-games .ndg-personal-card:last-child{background:#fff5e8}
#nd-kids-games .ndg-progress,#nd-kids-games .ndg-personal-card{border-color:#dce7df}
#nd-kids-games .ndg-card{border:1px solid rgba(67,111,76,.15);border-radius:19px;box-shadow:0 3px 0 rgba(60,99,69,.04);overflow:hidden}
#nd-kids-games .ndg-card:nth-child(6n+1){background:#edf4f4}
#nd-kids-games .ndg-card:nth-child(6n+2){background:#fff5e9}
#nd-kids-games .ndg-card:nth-child(6n+3){background:#f1eef7}
#nd-kids-games .ndg-card:nth-child(6n+4){background:#eef5e9}
#nd-kids-games .ndg-card:nth-child(6n+5){background:#fcf4df}
#nd-kids-games .ndg-card:focus-visible{outline-offset:2px}
#nd-kids-games .ndg-filter[aria-pressed="true"]{color:#fff;background:#275e47;border-color:#275e47}
#nd-kids-games .ndg-card b{color:#304c3d}
#nd-kids-games .ndg-card p{color:#617369}
/* Storybook: books read as covers, not generic cards */
#nd-story-world{--p:#fcf9f1;--ink:#304839;--muted:#68766a;--purple:#40765a;--line:rgba(45,93,66,.17)}
#nd-story-world .nds-hero{margin-top:9px;min-height:292px;gap:26px;padding:30px clamp(18px,3vw,38px) 28px;border:1px solid #e2e6db;border-radius:28px;background:radial-gradient(ellipse at 93% 28%,rgba(247,230,201,.53),transparent 40%),linear-gradient(113deg,#eaf3ea,#fffaf1)}
#nd-story-world .nds-stack span{border:1px solid rgba(76,101,66,.18);border-radius:7px 16px 16px 7px;box-shadow:8px 11px 0 rgba(61,81,60,.06),10px 17px 26px rgba(57,69,56,.10);line-height:1.55}
#nd-story-world .nds-stack span:before{content:"";position:absolute;inset:9px;border:1px solid rgba(255,255,255,.46);border-radius:3px 11px 11px 3px;pointer-events:none}
#nd-story-world .nds-stack span:nth-child(1){background:#f3dba4;color:#564a2f}
#nd-story-world .nds-stack span:nth-child(2){background:#c8e5d0;color:#2e543f}
#nd-story-world .nds-stack span:nth-child(3){background:#e8d9e9;color:#604665}
#nd-story-world .nds-char{border-color:#e1e7de;border-radius:15px}
#nd-story-world .nds-summary{margin-top:16px}
#nd-story-world .nds-pill{background:#fffdf8;border-color:#dfe8dd;color:#5b725f}
#nd-story-world .nds-book{border:1px solid #dde6db;border-radius:19px;background:#fffdf9;box-shadow:0 5px 18px rgba(46,72,49,.04)}
#nd-story-world .nds-cover{min-height:212px;border:1px solid rgba(62,96,64,.12);border-radius:8px 17px 17px 8px;box-shadow:inset 7px 0 0 rgba(77,85,66,.09),3px 5px 0 rgba(51,78,53,.055)}
#nd-story-world .nds-book:nth-child(8n+1) .nds-cover{background:#f2dda8}
#nd-story-world .nds-book:nth-child(8n+2) .nds-cover{background:#cfe8d6}
#nd-story-world .nds-book:nth-child(8n+3) .nds-cover{background:#e3daec}
#nd-story-world .nds-book:nth-child(8n+4) .nds-cover{background:#d9ebee}
#nd-story-world .nds-book:nth-child(8n+5) .nds-cover{background:#f4dccc}
#nd-story-world .nds-book:nth-child(8n+6) .nds-cover{background:#e0e8bd}
#nd-story-world .nds-book:nth-child(8n+7) .nds-cover{background:#e7ddeb}
#nd-story-world .nds-book:nth-child(8n) .nds-cover{background:#f1e3bd}
#nd-story-world .nds-cover b{color:#344a3b;font-size:clamp(17px,1.5vw,22px)}
#nd-story-world .nds-book-actions button{flex:1;min-height:46px;border-color:#d5e2d5;color:#315d47;background:#fffdfa}
#nd-story-world .nds-book-actions button[aria-pressed="true"]{background:#276149;border-color:#276149;color:#fff}
#nd-story-world .nds-note{border-color:#e6dcc9;background:#fff9ea}
#nd-story-world .nds-talk{background:#f8f9f0;border-color:#dfe7d7;font-size:13px}
/* My Kids: composed dashboard, not an analytics product */
#nd-my-kids{--p:#fcf9f1;--ink:#304839;--muted:#647466;--purple:#2e7153;--line:rgba(45,93,66,.16)}
#nd-my-kids .ndmk-hero{padding:32px clamp(18px,3vw,34px) 26px;margin:17px 0 16px;border:1px solid #dfebde;border-radius:27px;background:radial-gradient(circle at 93% 22%,rgba(249,230,195,.65),transparent 28%),linear-gradient(110deg,#eaf3e9,#fffdf3)}
#nd-my-kids .ndmk-hero>p:not(.ndmk-eyebrow){max-width:670px;margin-top:9px}
#nd-my-kids .ndmk-note{border-color:#dbe8db;background:#edf5e9;color:#55715c}
#nd-my-kids .ndmk-stat{border:1px solid #dfe6db;border-radius:16px;background:#fffdf9}
#nd-my-kids .ndmk-stat:nth-child(1){background:#eaf3f3}
#nd-my-kids .ndmk-stat:nth-child(2){background:#f8eee2}
#nd-my-kids .ndmk-stat:nth-child(3){background:#f1ebf6}
#nd-my-kids .ndmk-stat:nth-child(4){background:#ebf3e8}
#nd-my-kids .ndmk-stat b{color:#2e694e}
#nd-my-kids .ndmk-card{border-color:#dfe8dc;border-radius:20px;background:#fffdf9}
#nd-my-kids .ndmk-item{border-color:#e1e9df}
#nd-my-kids .ndmk-btn.primary{background:#2b654c;border-color:#2b654c;color:#fff}
#nd-my-kids .ndmk-next-step{background:#eaf4e9!important}
#nd-my-kids .ndmk-resource{background:#fffdf9;border-color:#dfe8dd}
/* Learning: teaching pathways resemble a curated activity shelf */
#nd-kids-learn{--p:#fcf9f1;--ink:#304839;--muted:#647466;--purple:#306d50;--line:rgba(45,93,66,.16)}
#nd-kids-learn .ndl-hero{padding:35px clamp(18px,3vw,35px) 28px;margin:17px 0 20px;border:1px solid #e0e9dc;border-radius:27px;background:radial-gradient(ellipse at 87% 14%,rgba(247,221,176,.50),transparent 32%),linear-gradient(115deg,#e9f2e7,#fffaf0)}
#nd-kids-learn .ndl-age{border-color:#dde6d9;box-shadow:0 3px 0 rgba(50,84,54,.035);border-radius:17px}
#nd-kids-learn .ndl-age:hover{border-color:#aac8b0}
#nd-kids-learn .ndl-card{border:1px solid #dfe7de;border-radius:19px;background:#fffdf8}
#nd-kids-learn .ndl-card:nth-child(6n+1){background:#eaf3f5}
#nd-kids-learn .ndl-card:nth-child(6n+2){background:#fff4e5}
#nd-kids-learn .ndl-card:nth-child(6n+3){background:#f0edf7}
#nd-kids-learn .ndl-card:nth-child(6n+4){background:#eaf4e9}
#nd-kids-learn .ndl-card:nth-child(6n+5){background:#faf3e4}
#nd-kids-learn .ndl-card span{color:#397053;border:1px solid #e0e8df;background:#fffdfa}
#nd-kids-learn .ndl-card h3{color:#284e3c}
#nd-kids-learn .ndl-screenoff{border-color:#eadfc9;background:#fff7e8}
#nd-kids-learn .ndl-btn.primary{background:#2b654b;border-color:#2b654b}
/* Printables: paper sheets and precise controls */
#nwk-printables .nwkp-hero{border-color:#e0e8dc;box-shadow:0 9px 30px rgba(54,89,57,.04)}
#nwk-printables .nwkp-card{border-color:#dfe7dc;border-radius:18px;background:#fffdf9}
#nwk-printables .nwkp-cover{box-shadow:inset 5px 0 0 rgba(46,84,59,.08),4px 5px 0 rgba(49,86,53,.045)}
#nwk-printables .nwkp-card h2{font-size:17px!important}
#nwk-printables .nwkp-card p{font-size:13px!important;line-height:1.7!important}
#nwk-printables .nwkp-actions a:first-child{background:#29644a;border-color:#29644a;color:#fff}
#nwk-printables .nwkp-filter[aria-pressed="true"]{background:#29644a;border-color:#29644a;color:#fff}
#nwk-printables .nwkp-count{color:#536c5a}
/* Parent Room: gentle guidance, not worksheet portal */
#nwk-parent-room .nwkpr-hero{background:radial-gradient(circle at 91% 13%,rgba(244,227,186,.50),transparent 28%),linear-gradient(115deg,#e9f3e8,#fff9f0)}
#nwk-parent-room .nwkpr-hero:after{font-size:150px;color:rgba(126,166,126,.14)}
#nwk-parent-room .nwkpr-talk,#nwk-parent-room .nwkpr-guide{border-color:#dfe8dc;border-radius:20px}
#nwk-parent-room .nwkpr-talk{background:#edf4e9}
#nwk-parent-room .nwkpr-question{background:#fffdf7;border-color:#d9e6d9;box-shadow:0 4px 0 rgba(52,91,59,.035)}
#nwk-parent-room .nwkpr-adab{border-color:#e6dac4;background:#fff5e7}
/* Global mobile rhythm and legibility */
@media(max-width:760px){
 #nd-kids-games .ndg-hero,#nd-story-world .nds-hero,#nd-my-kids .ndmk-hero,#nd-kids-learn .ndl-hero,#nwk-printables .nwkp-hero,#nwk-parent-room .nwkpr-hero{margin:10px 0 15px!important;padding:23px 17px!important;border-radius:21px!important}
 #nd-story-world .nds-hero{gap:10px}
 #nd-story-world .nds-stack{margin:5px auto 0}
 #nd-kids-games .ndg-hero h1,#nd-story-world .nds-hero h1,#nd-my-kids .ndmk-hero h1,#nd-kids-learn .ndl-hero h1,#nwk-printables .nwkp-hero h1,#nwk-parent-room .nwkpr-hero h1{font-size:clamp(28px,7.3vw,38px)!important;line-height:1.33!important}
 #nd-kids-games .ndg-hero p:not(.ndg-eyebrow),#nd-story-world .nds-hero p:not(.nds-eyebrow),#nd-my-kids .ndmk-hero p:not(.ndmk-eyebrow),#nd-kids-learn .ndl-hero p:not(.ndl-eyebrow),#nwk-printables .nwkp-hero p,#nwk-parent-room .nwkpr-hero p{font-size:13.5px!important;line-height:1.74!important;margin-top:10px!important}
 #nd-story-world .nds-book-actions{gap:8px}
 #nd-story-world .nds-book-actions button{font-size:12px}
 #nwk-printables .nwkp-card{grid-template-columns:82px minmax(0,1fr)}
 #nwk-printables .nwkp-card p{font-size:13px!important}
 #nd-kids-games .ndg-card{padding:14px}
 #nd-kids-games .ndg-card b{font-size:15px;line-height:1.38}
 #nd-kids-games .ndg-card p{font-size:12px;line-height:1.6}
 #nd-kids-learn .ndl-card p{font-size:13px}
}
@media(max-width:390px){
 #nwk-world .nwk-door h3{font-size:20px!important}
 #nd-kids-games .ndg-age{padding:10px 7px}
 #nd-kids-games .ndg-grid{gap:8px}
 #nd-kids-games .ndg-card{min-height:182px;padding:12px;border-radius:15px}
 #nd-kids-games .ndg-card-icon{width:44px;height:44px;font-size:22px}
 #nd-kids-games .ndg-card b{font-size:14px}
 #nd-story-world .nds-stack{transform:scale(.91);transform-origin:top center;height:206px}
 #nwk-printables .nwkp-card{grid-template-columns:76px minmax(0,1fr);gap:9px;padding:10px}
 #nwk-printables .nwkp-cover{min-height:115px}
}
@media(max-width:350px){
 #nd-kids-games .ndg-grid{grid-template-columns:1fr}
 #nd-kids-games .ndg-card{min-height:130px}
 #nd-kids-learn .ndl-ages{gap:7px}
 #nwk-printables .nwkp-card{grid-template-columns:72px minmax(0,1fr)}
}
@media(hover:hover) and (pointer:fine){
 #nd-story-world .nds-book:hover,#nd-kids-learn .ndl-card:hover,#nwk-printables .nwkp-card:hover{transform:translateY(-3px);box-shadow:0 12px 28px rgba(46,78,50,.08);transition:transform .18s ease,box-shadow .18s ease}
}
@media(prefers-reduced-motion:reduce){
 #nwk-world *,#nd-kids-games *,#nd-story-world *,#nd-my-kids *,#nd-kids-learn *,#nwk-printables *,#nwk-parent-room *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
