/* Journey: local fonts, comfortable reading, and one clear route through a course. */
@font-face { font-family: Inter; src: url('fonts/inter.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: Display; src: url('fonts/display.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: Mukta; src: url('fonts/mukta.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: Mono; src: url('fonts/mono.woff2') format('woff2'); font-display: swap; }
:root { --bg:#f3f3f7; --card:#fff; --ink:#141046; --muted:#5a586b; --line:#dcdce5; --soft:#f3f3f7; --mark:#ffd60a; --link:#302b79; color-scheme:light; }
:root[data-theme=dark] { --bg:#0b0b13; --card:#14131f; --ink:#f5f4fa; --muted:#b7b5c8; --line:#373644; --soft:#1c1b2b; --link:#ddd9ff; color-scheme:dark; }
@media(prefers-color-scheme:dark) { :root:not([data-theme=light]) { --bg:#0b0b13; --card:#14131f; --ink:#f5f4fa; --muted:#b7b5c8; --line:#373644; --soft:#1c1b2b; --link:#ddd9ff; color-scheme:dark; } }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:28px; -webkit-text-size-adjust:100%; }
body { margin:0; background:var(--bg); color:var(--ink); font:16px/1.7 Inter,system-ui,sans-serif; -webkit-font-smoothing:antialiased; }
[hidden] { display:none!important; }
a { color:var(--link); text-underline-offset:4px; text-decoration-thickness:1px; }
button,input { font:inherit; color:inherit; }
button { cursor:pointer; }
button,a,input,summary { -webkit-tap-highlight-color:transparent; }
:focus-visible { outline:3px solid var(--ink); outline-offset:4px; }
button:focus-visible,.button:focus-visible { outline-offset:4px; box-shadow:0 0 0 2px var(--bg); }
img { max-width:100%; }
h1,h2,h3 { font-family:Display,Inter,system-ui,sans-serif; font-weight:700; line-height:1.1; letter-spacing:-.04em; margin:0; text-wrap:balance; }
h1 { font-size:clamp(44px,6.1vw,78px); }
h2 { font-size:32px; }
h3 { font-size:25px; }
p { margin:0 0 1.1em; }
p:last-child { margin-bottom:0; }
pre,code,.code { font-family:Mono,ui-monospace,monospace; }
pre { white-space:pre-wrap; overflow-wrap:anywhere; font-size:14px; }
summary { cursor:pointer; min-height:44px; padding:8px 0; }
.wrap { max-width:1256px; width:100%; margin:auto; padding:0 24px; }
.skip { position:absolute; left:-9999px; }
.skip:focus { left:16px; top:12px; z-index:30; background:var(--card); padding:12px; }
.top .wrap { min-height:80px; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.brand { display:flex; align-items:center; gap:9px; color:var(--ink); font:700 19px Display,Inter,sans-serif; text-decoration:none; white-space:nowrap; }
.brand img { width:30px; height:30px; border-radius:50%; }
.brand span { font:14px Inter,sans-serif; color:var(--muted); }
.top nav { display:flex; align-items:center; gap:16px; font-size:14px; }
.top nav a { color:var(--ink); text-decoration:none; }
.theme { width:44px; height:44px; display:grid; place-items:center; background:var(--card); border:1px solid var(--line); border-radius:50%; flex-shrink:0; }
.theme span { width:18px; height:18px; border:2px solid var(--ink); border-radius:50%; background:linear-gradient(90deg,var(--ink) 50%,transparent 50%); }
.eyebrow { font:12px/1.6 Mono,monospace; text-transform:uppercase; letter-spacing:.07em; color:var(--muted); margin:0 0 20px; }
.eyebrow a { color:inherit; }
.lede { color:var(--muted); font-size:18px; line-height:1.7; max-width:640px; margin:24px 0; }
.meta { color:var(--muted); font-size:14px; }
.hero { display:grid; gap:30px; padding:42px 0 36px; align-items:center; }
.hero-copy { min-width:0; }
.go,.actions { display:flex; flex-wrap:wrap; align-items:center; gap:16px; margin:28px 0 20px; }
.button { display:inline-flex; align-items:center; justify-content:center; min-height:50px; padding:12px 24px; border-radius:999px; background:var(--mark); color:#141046; font-size:15px; font-weight:700; text-decoration:none; border:1px solid transparent; }
.button.quiet { color:var(--ink); background:var(--card); border-color:var(--line); }
.button[aria-pressed=true] { color:var(--ink); background:var(--soft); border-color:var(--ink); }
.stats { display:flex; flex-wrap:wrap; gap:28px; margin:28px 0; color:var(--muted); font-size:14px; }
.stats b,.stats strong { display:block; color:var(--ink); font:700 29px Display,Inter,sans-serif; margin-bottom:4px; }
.status { color:var(--muted); font-size:14px; border-left:3px solid var(--mark); padding:12px 0 12px 16px; margin:24px 0 42px; max-width:780px; }
.route-map { padding:28px; background:var(--card); border:1px solid var(--line); border-radius:24px; }
.route-map .eyebrow { margin-bottom:14px; }
.mapstop { display:grid; grid-template-columns:48px 1fr; align-items:center; gap:10px; min-height:48px; color:var(--ink); text-decoration:none; font-size:14px; }
.mapstop span:first-child { border-left:2px solid var(--line); padding:12px 0 12px 13px; font:12px Mono,monospace; color:var(--muted); }
.mapstop:first-of-type span:first-child { border-color:var(--mark); }
.mapstop:hover { text-decoration:underline; }
.mapstop strong { font-weight:400; line-height:1.4; }
.journey { margin:32px 0 72px; }
.journey-head { display:flex; flex-wrap:wrap; gap:24px; align-items:end; justify-content:space-between; margin-bottom:24px; }
.journey-head .eyebrow { margin-bottom:12px; }
.journey-head p { max-width:660px; margin-top:14px; color:var(--muted); }
.route-switch { display:inline-flex; gap:4px; background:var(--card); border:1px solid var(--line); padding:4px; border-radius:999px; }
.route-switch button { min-height:44px; padding:8px 16px; border:0; border-radius:999px; font-size:14px; background:transparent; }
.route-switch [aria-pressed=true] { background:var(--ink); color:var(--card); }
.levels { border-left:2px solid var(--line); margin:28px 0 0 7px; padding-left:23px; }
.level { position:relative; display:grid; gap:16px; background:var(--card); border:1px solid var(--line); border-radius:20px; padding:24px; margin:20px 0; }
.level:before { content:''; position:absolute; width:16px; height:16px; left:-33px; top:32px; border:4px solid var(--bg); border-radius:50%; background:var(--ink); }
.level:first-child:before { background:var(--mark); box-shadow:0 0 0 1px var(--ink); }
.marker { font:21px Mono,monospace; }
.level h2,.level h3 { font-size:27px; }
.level-body { min-width:0; }
.level p { margin:12px 0; color:var(--muted); }
.level .meta { margin:0 0 10px; }
.eps { list-style:none; padding:0!important; margin:24px 0 0!important; }
.ep { margin:0!important; border-top:1px solid var(--line); }
.ep a { display:grid; grid-template-columns:44px 1fr; align-items:start; gap:12px; padding:16px 0; text-decoration:none; color:var(--ink); }
.ep a:hover .what strong { text-decoration:underline; text-underline-offset:4px; }
.code { font-size:13px; color:var(--muted); padding-top:3px; }
.ep.done .code:after { content:' ✓'; }
.what { display:grid; gap:4px; min-width:0; }
.what strong { font-size:15px; line-height:1.45; }
.what span { color:var(--muted); font-size:14px; line-height:1.6; }
.tags { display:flex; flex-wrap:wrap; gap:6px; grid-column:2; }
.chip { font-size:12px; color:var(--muted); border:1px solid var(--line); padding:2px 9px; border-radius:999px; }
.chip.core { color:var(--ink); border-color:var(--ink); }
.cards { display:grid; gap:24px; margin:24px 0 80px; }
.card { color:var(--ink); text-decoration:none; background:var(--card); border:1px solid var(--line); border-radius:24px; padding:32px; }
.card p { color:var(--muted); margin-top:20px; }
.card:hover { border-color:var(--ink); }
.card h2 { font-size:36px; }
.lesson-hero { max-width:970px; padding:40px 0; margin:auto; }
.lesson-hero h1 { font-size:clamp(42px,5.5vw,68px); }
.lesson-hero .lede { max-width:810px; }
.lesson-tools { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:24px 0; }
.lesson-tools button { min-height:44px; padding:8px 14px; border:1px solid var(--line); border-radius:999px; background:var(--card); font-size:14px; }
.lesson-tools [aria-pressed=true] { background:var(--ink); color:var(--card); }
.reading { display:grid; gap:32px; margin:20px 0 64px; align-items:start; }
.contents { font-size:14px; }
.contents a { display:inline-block; padding:8px 0; margin-right:16px; color:var(--muted); }
.contents .eyebrow { margin-bottom:12px; }
article { min-width:0; padding:24px; border:1px solid var(--line); border-radius:20px; background:var(--card); overflow-wrap:anywhere; }
article>section { margin:44px 0; }
article>section:first-child { margin-top:0; }
article>section:last-child { margin-bottom:0; }
article h2 { font-size:28px; margin-bottom:24px; }
article h3 { font-size:22px; margin:24px 0 16px; }
article p,article li { font-size:17px; line-height:1.85; }
article ul,article ol { padding-left:22px; }
article li { margin-bottom:10px; }
.line { margin:24px 0; }
.hi { font-family:Mukta,system-ui,sans-serif; color:var(--muted); }
.hi summary { font-size:20px; }
.hi p { font-size:23px; line-height:1.8; }
body[data-language=hi] .line .en { display:none; }
body[data-language=hi] .hi summary,body[data-language=both] .hi summary { display:none; }
body[data-language=both] .hi { padding-left:16px; border-left:2px solid var(--line); }
.wrong,.case,.practice { background:var(--soft); border-radius:14px; padding:24px; }
.wrong { border-left:3px solid var(--mark); }
blockquote { margin:0; font-size:22px; }
.video { aspect-ratio:16/9; display:grid; place-items:center; background:#141046; color:#fff; border-radius:20px; overflow:hidden; margin:24px 0; }
.video iframe { width:100%; height:100%; border:0; }
.play { border:0; color:#fff; background:transparent; display:grid; justify-items:center; gap:12px; padding:24px; }
.play span { width:64px; height:64px; background:var(--mark); border-radius:50%; position:relative; }
.play span:after { content:''; position:absolute; left:27px; top:21px; border:11px solid transparent; border-left:17px solid #141046; border-right:0; }
.play small { color:#d2d0e6; }
.video.soon,.later { aspect-ratio:auto; background:var(--card); color:var(--muted); border:1px solid var(--line); padding:24px; border-radius:16px; }
.quiz { padding:24px; border:1px solid var(--line); border-radius:16px; margin:24px 0; }
.quiz fieldset { border:0; padding:0; margin:0; min-width:0; }
.quiz legend { font-weight:700; font-size:18px; margin-bottom:16px; }
.quiz label { display:flex; align-items:baseline; gap:12px; padding:14px; border:1px solid var(--line); border-radius:8px; margin:10px 0; }
.quiz input { accent-color:var(--ink); flex-shrink:0; }
.quiz .button { margin-top:12px; }
.feedback { margin-top:18px; font-weight:700; }
.quiz details { margin-top:20px; }
.prompt { border:1px solid var(--line); border-radius:16px; margin:20px 0; overflow:hidden; }
.prompt-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px; border-bottom:1px solid var(--line); }
.prompt h3 { font:700 16px/1.5 Inter,sans-serif; margin:0; letter-spacing:0; }
.copy,[data-copy] { border:1px solid var(--line); border-radius:999px; background:var(--soft); padding:8px 14px; min-height:44px; font-size:14px; }
.prompt pre { padding:20px; margin:0; background:var(--soft); }
.source { display:block; padding:20px 0; border-bottom:1px solid var(--line); overflow-wrap:anywhere; }
.source small { display:block; color:var(--muted); font-size:14px; }
.source p { font-size:15px; }
.around { display:grid; gap:16px; margin:36px 0 64px; }
.step { display:grid; gap:8px; background:var(--card); border:1px solid var(--line); border-radius:16px; padding:24px; color:var(--ink); text-decoration:none; }
.step span { color:var(--muted); font-size:13px; text-transform:uppercase; letter-spacing:.05em; }
.mark { display:flex; flex-wrap:wrap; gap:16px; align-items:center; margin:32px 0; }
.progress { margin:20px 0; }
.bar { height:6px; background:var(--line); border-radius:999px; overflow:hidden; margin-bottom:8px; }
.bar span { display:block; height:100%; background:var(--ink); }
.tools { margin:24px 0; }
#find { width:100%; padding:16px 20px; min-height:54px; border:1px solid var(--line); border-radius:16px; background:var(--card); }
#results { list-style:none; margin:24px 0; padding:0; }
#results li { border-bottom:1px solid var(--line); padding:20px 0; }
#results a { font-weight:700; }
#results p { margin:8px 0; color:var(--muted); font-size:15px; }
.glossary dt { font:700 24px Display,sans-serif; margin:30px 0 12px; }
.glossary dd { margin:0; }
.foot { border-top:1px solid var(--line); padding:32px 0; color:var(--muted); font-size:14px; }
.foot p { max-width:780px; }
@media(max-width:540px) { .top nav { gap:10px; } .top nav a { font-size:13px; } .brand span { display:none; } .top .wrap { padding:0 20px; } .level { padding:20px; } .quiz { padding:18px; } }
@media(min-width:760px) { h2 { font-size:40px; } .top .wrap { min-height:88px; } .top nav { gap:28px; } .brand { font-size:22px; } .hero { grid-template-columns:1.3fr 1fr; gap:80px; padding:64px 0 44px; } .lede { font-size:20px; } .route-map { padding:32px; } .levels { margin-left:60px; padding-left:48px; max-width:1050px; } .level { grid-template-columns:56px 1fr; gap:24px; padding:32px; margin:26px 0; } .level:before { left:-58px; top:40px; } .cards { grid-template-columns:repeat(2,minmax(0,1fr)); } .card { padding:40px; } .lesson-hero { text-align:center; padding:64px 0 40px; } .lesson-hero .lede { margin-left:auto; margin-right:auto; } .lesson-tools { justify-content:center; } .reading { grid-template-columns:minmax(0,840px) minmax(180px,240px); gap:56px; margin:36px 0 80px; } .contents { grid-column:2; grid-row:1; position:sticky; top:28px; } .contents a { display:block; margin:0; padding:12px 0; border-bottom:1px solid var(--line); } article { grid-column:1; grid-row:1; padding:44px; border-radius:24px; } article h2 { font-size:32px; } article p { font-size:18px; } .around { grid-template-columns:1fr 1fr; } .step.on { text-align:right; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } *,*:before,*:after { animation:none!important; transition:none!important; } }
@media print { :root,:root[data-theme=dark] { --bg:#fff; --card:#fff; --ink:#111; --muted:#333; --line:#bbb; --soft:#fff; --link:#111; } body { background:white; color:black; font-size:11pt; } .top,.foot,.skip,.contents,.lesson-tools,.mark,.video,.copy,[data-copy],.quiz button,.around,.tools { display:none!important; } .wrap { max-width:none; padding:0; } .reading { display:block; margin:0; } article { border:0; padding:0; } .lesson-hero { padding:0 0 24px; text-align:left; } .lesson-hero h1 { font-size:30pt; } article p,article li { font-size:11pt; } h2,h3 { break-after:avoid; } pre,.quiz,.wrong { break-inside:avoid; } a { text-decoration:underline; } .source a:after { content:' (' attr(href) ')'; font-size:9pt; } }

/* Shared reference pages keep the same reading measure as a lesson. */
.resource-index { max-width:900px; margin:0 auto 80px; background:var(--card); border:1px solid var(--line); border-radius:24px; padding:28px; overflow-wrap:anywhere; }
.resource-index .sources,.sources { list-style:none; padding:0; }
.sources li { padding:20px 0; border-bottom:1px solid var(--line); }
.sources .meta { display:block; margin-top:8px; }
.episode .tags { justify-content:center; }
.lesson-hero>.tags { justify-content:center; margin:22px 0; }
.lesson-hero>.meta { margin:16px 0; }
.resource-index>label { display:block; font-weight:700; margin-bottom:12px; }
@media(min-width:760px) { .resource-index { padding:44px; } .resource-index .eps { margin-top:32px!important; } }
@media(max-width:759px) { .lesson-hero>.tags { justify-content:flex-start; } .resource-index { padding:22px; } }
@media(max-width:540px) {
  .top .wrap { flex-wrap:wrap; gap:0; padding-top:18px; padding-bottom:12px; position:relative; }
  .top .brand { min-height:44px; padding-right:52px; }
  .top nav { flex-basis:100%; gap:24px; min-height:38px; }
  .top .theme { position:absolute; right:20px; top:18px; }
  .top nav:has(> .theme:only-child) { min-height:0; }
}
.foot nav { display:flex; flex-wrap:wrap; gap:12px 24px; margin-bottom:20px; }
main>.eps { max-width:920px; margin:20px auto 80px!important; background:var(--card); padding:16px 28px!important; border:1px solid var(--line); border-radius:24px; }
main>.eps .ep:first-child { border:0; }
.level h3 a { color:var(--ink); text-decoration:none; }
.level h3 a:hover { text-decoration:underline; }
.quiet:not(.button) { color:var(--ink); font-size:14px; }
button:disabled { cursor:wait; opacity:.75; }
.foot.wrap { padding:32px 24px; }
.contents>details>summary { font:12px/1.6 Mono,monospace; letter-spacing:.07em; text-transform:uppercase; color:var(--muted); }
.reading:not(:has(.contents)) { grid-template-columns:minmax(0,840px); justify-content:center; }
@media(max-width:759px) { .contents>details { border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:8px 0; } }
#find { border-color:var(--muted); }
/* Do not offer controls whose behavior depends on a script that did not run. */
html:not(.js) :is(.theme,.lesson-tools,[data-copy],.copy,[data-mark],#done,.route-switch,.quiz button,#find,label[for=find],#save-offline,.video:has(.play)) { display:none!important; }
html:not(.js) body:has(.route-switch) .ep[data-core="0"] { display:none; }
@media(min-width:760px) { .contents { max-height:calc(100vh - 56px); overflow:auto; padding:4px; } }
@media print {
  [data-mark], [data-mark]+.meta, .hi summary { display:none!important; }
  .sources a:after { content:' (' attr(href) ')'; font-size:9pt; }
}
