.curriculum{--study-ink:#182c40;--study-muted:#526570;--study-line:#d7dfdf;--study-link:#155d70;--learn-header:76px;background:#fcfbf7;color:var(--study-ink);font-family:system-ui,-apple-system,"Noto Sans JP",Arial,sans-serif}
.curriculum *{box-sizing:border-box}.curriculum [hidden]{display:none!important}.curriculum a{color:var(--study-link);text-underline-offset:4px}.curriculum a:hover{text-decoration:underline}.curriculum :focus-visible{outline:3px solid #a23236;outline-offset:4px}.curriculum :is(section,details)[id]{scroll-margin-top:calc(var(--learn-header) + 72px)}
.curriculum .learning-header{position:sticky;top:0;z-index:60;background:#fcfbf7;border-bottom:1px solid var(--study-line)}.curriculum .learning-header .header-inner{max-width:1240px;min-height:var(--learn-header);padding:12px 28px;margin:auto;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:20px}.curriculum .learning-header .brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--study-ink)}.learning-brand{font-family:inherit;font-size:1rem;font-weight:700;line-height:1.4}.learning-brand small{display:block;font-size:.68rem;font-weight:400;color:var(--study-muted)}.curriculum .learning-header nav{display:flex;gap:20px;align-items:center;white-space:nowrap;font-size:.875rem}.curriculum .learning-header nav a{display:inline-flex;align-items:center;min-height:44px;text-decoration:none}.curriculum .learning-header .learning-trial-link{padding:8px 14px;gap:10px;border:1px solid var(--study-line);border-radius:6px;color:var(--study-ink)}
.course-index{max-width:1180px;padding:40px 28px 60px;margin:auto}.index-heading{margin-bottom:24px}.index-heading h1{font-family:inherit;font-size:clamp(1.65rem,3.2vw,2.2rem);line-height:1.45;margin:12px 0}.index-heading p{margin:0;color:var(--study-muted);line-height:1.8}.back-to-learning{display:inline-block;min-height:40px;font-size:.875rem}.course-nav{display:flex;gap:8px;margin:24px 0 32px;flex-wrap:wrap}.course-nav a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 18px;border:1px solid var(--study-line);border-radius:6px;font-size:.9rem;text-decoration:none;color:var(--study-ink)}.course-nav a[aria-current]{background:var(--study-ink);color:white;border-color:var(--study-ink)}
.course-search{max-width:760px;margin:22px 0}.course-search label{display:block;font-weight:600;font-size:.875rem;margin-bottom:8px}.course-search-row{display:flex;gap:8px}.course-search input{width:100%;min-width:0;padding:14px;border:1px solid #9aabad;border-radius:6px;background:white;font:inherit;color:var(--study-ink)}.course-search button{border:1px solid var(--study-ink);background:var(--study-ink);color:white;font:inherit;cursor:pointer;border-radius:6px;min-height:46px;padding:10px 20px;white-space:nowrap}.search-feedback{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0}.search-feedback p{margin:0;font-size:.9rem}.search-feedback button{background:none;border:none;color:var(--study-link);font-size:.875rem;padding:8px}.search-empty{padding:20px;background:#f0f3ef;line-height:1.8}.search-results{border-top:1px solid var(--study-line)}.search-results a>small{display:block;color:var(--study-muted);font-size:.75rem;margin-bottom:6px}.index-preview-note{font-size:.8rem;color:var(--study-muted);margin-top:32px}
.course-paths{display:grid;grid-template-columns:1.15fr 1fr 1fr;gap:24px;align-items:start}.course-path{border-top:3px solid var(--study-ink);padding:20px 0 0}.path-heading{display:flex;gap:12px;align-items:baseline}.path-number{font-size:.8rem;color:#8b6834;font-variant-numeric:tabular-nums}.course-path h2{font-family:inherit;font-size:1.4rem;line-height:1.45;margin:0}.course-path h2 a{color:var(--study-ink);text-decoration:none}.course-path>p{font-size:.9rem;line-height:1.8;min-height:3.6em;margin:14px 0;color:var(--study-muted)}.start-learning{display:block;padding:12px 14px;margin:14px 0;background:#e9efec;border-radius:5px;font-size:.9rem;font-weight:600;text-decoration:none}.course-path nav{display:grid;border-top:1px solid var(--study-line)}.course-path nav a{display:flex;justify-content:space-between;gap:12px;padding:14px 2px;min-height:48px;border-bottom:1px solid var(--study-line);text-decoration:none;font-size:.95rem}.course-path nav small{color:var(--study-muted);white-space:nowrap;font-size:.75rem;align-self:center}
.category-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:40px;align-items:start}.topic-sidebar{position:sticky;top:calc(var(--learn-header) + 24px)}.topic-sidebar nav{display:grid}.topic-sidebar strong{font-size:.8rem;color:var(--study-muted);margin-bottom:10px}.topic-sidebar a{display:flex;justify-content:space-between;gap:10px;padding:10px 12px;min-height:44px;font-size:.875rem;text-decoration:none;border-inline-start:2px solid var(--study-line)}.topic-sidebar a:hover{background:#edf2ef;border-color:var(--study-link)}.topic-sidebar span{color:var(--study-muted);font-size:.75rem}.chapter-heading{display:flex;justify-content:space-between;gap:16px;align-items:baseline;border-bottom:2px solid var(--study-ink);padding-bottom:12px}.chapter-heading h2{font-family:inherit;font-size:1.3rem;margin:0;line-height:1.6}.chapter-heading>span{font-size:.8rem;color:var(--study-muted);white-space:nowrap}.course-chapter{margin:0 0 40px}.course-list{padding:0;margin:0;list-style:none}.course-list li{border-bottom:1px solid var(--study-line)}.course-list a{position:relative;display:block;padding:18px 32px 18px 0;text-decoration:none;line-height:1.7}.lesson-name{display:block;font-size:1rem;font-weight:650;color:var(--study-ink)}.lesson-description{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:.875rem;color:var(--study-muted);margin-top:5px}.lesson-arrow{position:absolute;right:4px;top:18px;color:var(--study-link)}.preview-label{display:inline-block;font-size:.68rem;font-weight:400;color:#74603c;background:#f4efe3;padding:1px 6px;line-height:1.7;border-radius:3px;margin-top:7px}
.course-layout{display:grid;grid-template-columns:232px minmax(0,740px);justify-content:center;align-items:start;gap:52px;max-width:1180px;margin:auto;padding:28px 28px 64px}.study-sidebar{position:sticky;top:calc(var(--learn-header) + 18px);max-height:calc(100dvh - var(--learn-header) - 36px);overflow-y:auto;padding:4px 16px 16px 0;font-size:.875rem}.sidebar-home{display:block;padding:8px 0;font-size:.8rem}.sidebar-category{display:block;font-size:.9rem;font-weight:700;text-decoration:none;margin:16px 0 6px}.chapter-switcher{margin:0 0 24px;border-block:1px solid var(--study-line)}.chapter-switcher summary{padding:12px 0;cursor:pointer;line-height:1.7;font-weight:600}.chapter-switcher small{font-size:.72rem;color:var(--study-muted);white-space:nowrap;margin-left:4px}.chapter-switcher nav{display:grid;padding-bottom:8px}.chapter-switcher nav a{font-size:.8rem;text-decoration:none;padding:8px 10px;min-height:40px;line-height:1.7}.chapter-switcher nav a[aria-current=page]{background:#e8efeb;color:var(--study-ink);font-weight:650;border-radius:4px}.study-sidebar .article-toc{display:block;border:0;padding:0;margin:0;line-height:1.65}.article-toc strong{font-size:.78rem;color:var(--study-muted)}.article-toc ol,.mobile-toc ol{list-style:none;padding:0;margin:10px 0 0}.article-toc li,.mobile-toc li{margin:0}.article-toc a,.mobile-toc nav a{display:flex;gap:8px;padding:9px 8px;min-height:42px;text-decoration:none;border-inline-start:2px solid transparent;font-size:.8rem;line-height:1.7}.article-toc a>span,.mobile-toc nav a>span{font-size:.75rem;min-width:16px;color:var(--study-muted)}.article-toc a[aria-current=location],.mobile-toc a[aria-current=location]{border-color:var(--study-link);background:#eef2ef;color:var(--study-ink);font-weight:600}
.course-article{min-width:0;font-size:1.0625rem;line-height:1.9;overflow-wrap:anywhere}.breadcrumbs{display:flex;flex-wrap:wrap;gap:6px;font-size:.75rem;line-height:1.8;margin-bottom:24px}.breadcrumbs>span{color:#859398}.article-heading{border-bottom:1px solid var(--study-line);padding-bottom:24px;margin-bottom:32px}.article-position{font-size:.78rem;color:var(--study-muted);margin:0 0 8px!important}.course-article h1{font-family:inherit;font-size:clamp(1.6rem,3vw,2.15rem);font-weight:700;line-height:1.5;letter-spacing:0;margin:0 0 16px}.course-article .course-intro{font-size:1.0625rem;line-height:1.95;margin:0;max-width:100%;color:#304a55}.course-article h2{font-family:inherit;font-size:1.35rem;font-weight:650;line-height:1.6;margin:42px 0 20px}.course-article h3{font-family:inherit;font-size:1.05rem;line-height:1.6}.course-article p{margin:0 0 1.25em}.course-section:first-of-type h2{margin-top:0}.section-number{display:inline-block;color:#70858b;font-size:.78rem;font-weight:500;margin-right:10px;min-width:14px;vertical-align:middle;font-variant-numeric:tabular-nums}.course-article .draft-notice{font-size:.8rem;line-height:1.8;color:#74603c;margin:16px 0 0;padding:0;background:none;border:0}.article-tools{display:none}
.course-example{margin:22px 0;padding:18px 22px;background:#edf2f0;border-inline-start:3px solid #6b8b88;border-radius:0 5px 5px 0}.course-example .example-ru{font-family:Arial,"Noto Sans",sans-serif;font-size:1.3rem;line-height:1.8;letter-spacing:normal;margin:0 0 10px}.course-example .example-ja{font-size:1rem;margin:0}.course-example .example-note{font-size:.9rem;color:#3d5960;line-height:1.8;border-top:1px solid #cbd9d5;margin:12px 0 0;padding-top:10px}.course-callout{border-inline-start:3px solid #b99750;background:#f8f3e7;padding:16px 20px;margin:24px 0;font-size:.95rem}.course-callout p{margin:8px 0 0}.table-wrap{overflow-x:auto;max-width:100%;border:1px solid #bac9cd;border-radius:5px;margin:24px 0;overscroll-behavior-x:contain}.table-wrap table{border-collapse:collapse;width:100%;font-size:.95rem;min-width:460px}.table-wrap caption{text-align:start;font-weight:650;background:#eef2ef;padding:14px}.table-wrap th,.table-wrap td{text-align:start;vertical-align:top;border:1px solid #ccd6d8;padding:11px 13px;line-height:1.75}.table-wrap th{background:#f0f3f1}.table-wrap thead th{font-weight:600}
.course-extra,.course-references{border-block:1px solid var(--study-line);margin:14px 0;background:#f3f5f0}.course-extra+.course-extra{border-top:0;margin-top:-14px}.course-extra summary,.course-references summary{padding:16px;min-height:48px;cursor:pointer;font-size:1rem;font-weight:600;line-height:1.7}.course-extra>div,.course-references>div{padding:4px 20px 16px}.course-extra[open] summary{margin-bottom:12px}.course-exercises{padding:0;list-style:none}.course-exercises>li{border-top:1px solid var(--study-line);padding:8px 0 24px}.course-exercises details{border:1px solid #b7c8cc;border-radius:5px;background:white}.course-exercises summary{cursor:pointer;padding:12px 16px;min-height:48px;font-size:.95rem;font-weight:600}.course-exercises details>div{padding:16px 20px 4px}
.lesson-pagination{padding-top:32px;margin-top:32px;border-top:1px solid var(--study-line)}.next-lesson{display:block;position:relative;padding:22px 55px 22px 24px;background:#e8efeb;border:1px solid #bccfc6;border-radius:6px;text-decoration:none}.next-lesson>span:first-child{display:block;font-size:.8rem;color:var(--study-muted);margin-bottom:8px}.next-lesson strong{font-size:1.15rem;font-weight:650;color:var(--study-ink);line-height:1.7}.next-lesson b{position:absolute;right:24px;top:40%;font-weight:400;font-size:1.4rem}.next-lesson .preview-label{display:table}.lesson-return{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 20px;font-size:.8rem;margin:12px 0}.lesson-return a{display:inline-flex;align-items:center;min-height:44px}.related-reading h2{font-size:1.1rem;margin-top:32px}.related-reading ul{padding:0;list-style:none;font-size:.9rem}.related-reading li{border-bottom:1px solid var(--study-line);padding:10px 0}.related-reading a{display:inline-block;min-height:32px}.related-reading .preview-label{margin-left:8px}.course-references{background:none;margin-top:32px;font-size:.9rem}.course-references summary{font-size:.9rem;font-weight:400}.course-sources{padding-left:20px}.course-sources li{margin-bottom:16px}.course-sources p{margin:4px 0}.course-sources small{font-size:.75rem}.course-review{font-size:.8rem;color:var(--study-muted);border-top:1px solid var(--study-line);padding-top:16px}.course-trial{border-top:1px solid var(--study-line);margin-top:32px;padding:20px 0 0;font-size:.9rem}.course-trial a{display:inline-block;min-height:44px;padding:8px 0}.curriculum .site-footer{font-size:.8rem}
@media(max-width:1000px){.course-layout{display:block;max-width:820px;padding-top:20px}.study-sidebar{display:none}.article-tools{display:flex;justify-content:space-between;align-items:stretch;gap:8px;position:sticky;top:var(--learn-header);z-index:40;background:#fcfbf7;border-block:1px solid var(--study-line);margin:0 -4px 24px;padding:4px}.article-tools>a,.mobile-toc>summary{display:flex;align-items:center;justify-content:center;padding:8px 12px;font-size:.85rem;min-height:44px;text-decoration:none;cursor:pointer;white-space:nowrap}.mobile-toc>summary{list-style:none;gap:8px;color:var(--study-ink)}.mobile-toc>summary::-webkit-details-marker{display:none}.mobile-toc[open]>summary{background:#e8efeb;border-radius:4px}.mobile-toc nav{position:absolute;inset-inline:0;top:calc(100% + 2px);background:#fffefa;border:1px solid #b9c9cc;border-radius:6px;padding:8px;box-shadow:0 10px 25px #182c4020;max-height:60dvh;overflow-y:auto;overscroll-behavior:contain}.mobile-toc nav a{font-size:.875rem;min-height:44px;padding:11px}.article-tools .tool-next{font-weight:600}.category-layout{grid-template-columns:180px minmax(0,1fr);gap:24px}.course-paths{gap:20px}.course-path h2{font-size:1.2rem}}
@media(max-width:700px){.curriculum{--learn-header:68px}.curriculum .learning-header .header-inner{padding:10px 16px;gap:12px;flex-wrap:nowrap}.curriculum .learning-header .brand-mark{display:none}.learning-brand{font-size:.95rem}.learning-brand small{font-size:.58rem}.curriculum .learning-header nav{gap:12px;font-size:.75rem}.curriculum .learning-header .learning-trial-link{padding:8px 10px;gap:4px}.course-index{padding:24px 18px 48px}.index-heading h1{font-size:1.65rem}.index-heading p{font-size:.9rem}.course-search{margin:20px 0}.course-search input{font-size:1rem;padding:12px}.course-search button{padding:10px 16px}.course-nav{gap:6px;margin:20px 0 28px}.course-nav a{padding:9px 12px;font-size:.8rem;flex:1;white-space:nowrap}.course-paths{grid-template-columns:1fr;gap:34px}.course-path h2{font-size:1.35rem}.course-path>p{min-height:0}.course-path nav a{padding:14px 4px}.category-layout{display:block}.topic-sidebar{position:static;margin-bottom:28px}.topic-sidebar nav{display:flex;flex-wrap:wrap;gap:6px}.topic-sidebar strong{width:100%}.topic-sidebar a{padding:7px 10px;min-height:40px;font-size:.78rem;gap:8px;border:1px solid var(--study-line);border-radius:4px}.topic-sidebar span{font-size:.7rem}.course-chapter{margin-bottom:32px}.chapter-heading h2{font-size:1.2rem}.course-list a{padding-block:16px}.lesson-description{font-size:.85rem}.course-layout{padding:18px 18px 48px}.breadcrumbs{font-size:.7rem;margin-bottom:14px;gap:5px}.article-tools{margin-bottom:22px}.article-tools>a,.mobile-toc>summary{font-size:.8rem;padding-inline:10px}.course-article{font-size:1rem;line-height:1.95}.course-article h1{font-size:1.65rem;margin-bottom:14px}.course-article .course-intro{font-size:1rem}.article-heading{padding-bottom:22px;margin-bottom:28px}.course-article h2{font-size:1.2rem;line-height:1.7;margin-top:34px}.course-section:first-of-type h2{margin-top:0}.course-example{padding:16px;margin:20px 0}.course-example .example-ru{font-size:1.2rem}.course-example .example-ja{font-size:.95rem}.course-example .example-note{font-size:.85rem}.section-number{margin-right:8px}.table-wrap::after{content:attr(data-scroll-hint);display:block;position:sticky;left:0;font-size:.75rem;padding:8px 12px;background:#f0f3f1;color:var(--study-muted)}.course-extra>div,.course-references>div{padding-inline:14px}.next-lesson{padding:18px 44px 18px 18px}.next-lesson strong{font-size:1.05rem}.next-lesson b{right:18px}.lesson-return{display:block}.lesson-return a{display:flex}.course-references summary{padding-inline:6px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.curriculum *{scroll-behavior:auto!important}}

.course-chapter:focus-visible,.course-section:focus-visible,#practice:focus-visible{outline:none}.course-chapter:focus-visible>.chapter-heading,.course-section:focus-visible>h2,#practice:focus-visible>h2{outline:2px solid #a23236;outline-offset:5px}
@media(max-width:700px){.course-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.curriculum .learning-header .header-inner{gap:8px}.curriculum .learning-header nav{gap:8px}.curriculum .learning-header .brand{min-width:0}}

.course-format { font-size: .875rem; color: var(--muted, #526570); line-height: 1.7; margin-top: 1rem; }

/* Keep the language selector within a narrow learning header. */
.curriculum .learning-header .language-options{width:220px;max-width:calc(100vw - 32px);grid-template-columns:1fr 1fr;white-space:normal}
.curriculum .learning-header .language-options a{display:block;overflow-wrap:anywhere}
.curriculum[data-locale="en"] .course-article{line-height:1.8}
.curriculum[data-locale="en"] .course-article :is(h1,h2,h3,p,td,th){overflow-wrap:break-word}
.curriculum[data-locale="en"] .course-nav a{white-space:normal;text-align:center}
@media(max-width:600px){.curriculum .learning-header .learning-prices{display:none}.curriculum .learning-header .header-inner{padding-inline:12px}.curriculum .learning-header .language-menu summary{padding:8px;min-height:44px}.curriculum .learning-header .learning-brand{font-size:.8rem}.curriculum .learning-header .learning-brand small{font-size:.52rem}.curriculum .learning-header .learning-trial-link{padding:8px}.curriculum[data-locale="en"] .article-tools>a,.curriculum[data-locale="en"] .mobile-toc>summary{padding-inline:6px;font-size:.75rem}.curriculum .learning-header .language-options{right:0}}

/* Chinese text uses CJK line breaks; Russian examples retain their own font. */
.curriculum[data-locale="zh"]{font-family:"Noto Sans SC","PingFang SC","Microsoft YaHei",system-ui,sans-serif}
.curriculum[data-locale="zh"] .course-article{line-height:1.95;word-break:normal;line-break:strict}
.curriculum[data-locale="zh"] .course-article :is(h1,h2,h3,p,td,th){overflow-wrap:break-word}
.curriculum[data-locale="zh"] .course-nav a{white-space:normal;text-align:center}

/* Traditional Cantonese glyphs and CJK line breaks; Russian examples keep their font. */
.curriculum[data-locale="yue"]{font-family:"Noto Sans HK","PingFang HK","Microsoft JhengHei","Noto Sans TC",system-ui,sans-serif}
.curriculum[data-locale="yue"] .course-article{line-height:1.95;word-break:normal;line-break:strict}
.curriculum[data-locale="yue"] .course-article :is(h1,h2,h3,p,td,th){overflow-wrap:break-word}
.curriculum[data-locale="yue"] .course-nav a{white-space:normal;text-align:center}
/* Keep Russian examples readable in right-to-left learning editions. */
html[dir="rtl"] .curriculum .course-example { text-align: start; }
html[dir="rtl"] .curriculum .example-ru { direction: ltr; text-align: left; unicode-bidi: isolate; }
html[dir="rtl"] .curriculum .course-article table { text-align: start; }

/* Arabic and Persian guides: preserve connected lettering, reading order and Russian examples. */
.curriculum:is([data-locale="ar"],[data-locale="fa"]){font-family:"Noto Sans Arabic","Geeza Pro",Tahoma,system-ui,sans-serif;letter-spacing:normal}
.curriculum:is([data-locale="ar"],[data-locale="fa"]) .course-article{line-height:1.95}
.curriculum:is([data-locale="ar"],[data-locale="fa"]) :is(h1,h2,h3,p,a,summary){letter-spacing:normal}
.curriculum:is([data-locale="ar"],[data-locale="fa"]) bdi[lang="ru"]{font-family:system-ui,sans-serif;unicode-bidi:isolate}
html[dir="rtl"] .curriculum .lesson-arrow,html[dir="rtl"] .curriculum .next-lesson>b{transform:scaleX(-1)}
html[dir="rtl"] .curriculum .course-list li{min-width:0}
html[dir="rtl"] .curriculum .course-list a{padding-inline:0 32px}
html[dir="rtl"] .curriculum .lesson-arrow{right:auto;left:4px}
html[dir="rtl"] .curriculum .chapter-switcher small{margin-left:0;margin-inline-start:4px}
html[dir="rtl"] .curriculum .section-number{margin-right:0;margin-inline-end:10px}
html[dir="rtl"] .curriculum .next-lesson{padding-inline:24px 55px}
html[dir="rtl"] .curriculum .next-lesson b{right:auto;left:24px}
html[dir="rtl"] .curriculum .course-sources{padding-left:0;padding-inline-start:20px}
@media(max-width:700px){html[dir="rtl"] .curriculum .next-lesson{padding-inline:18px 44px}html[dir="rtl"] .curriculum .next-lesson b{left:18px}}
