:root{--purple:#6d39de;--ink:#242133;--muted:#767183;--bg:#f7f5fa;--line:#e6e0ef;--article-size:17px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:100px}body{margin:0}body:has(dialog[open]){overflow:hidden}button,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{border:0;background:none;color:inherit;cursor:pointer}button:disabled{cursor:default}a{color:var(--purple);text-decoration:none}a:hover{color:#4d1fa6}button:hover{color:var(--purple)}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #bca3f1;outline-offset:4px}button{border-radius:10px}img{max-width:100%;height:auto}[hidden]{display:none!important}.progress{position:fixed;top:0;left:0;height:3px;width:0;background:var(--purple);z-index:100}.skip{position:fixed;top:-100px;background:white;padding:15px;z-index:101}.skip:focus{top:4px}header{position:sticky;top:0;z-index:30;background:rgba(255,255,255,.96);border-bottom:1px solid var(--line);backdrop-filter:blur(16px)}.header-inner{height:80px;max-width:1440px;margin:auto;padding:0 40px;display:flex;align-items:center;gap:42px}.brand{display:flex;align-items:center;gap:10px;color:var(--ink);font-size:22px;font-weight:780;letter-spacing:-.8px;white-space:nowrap}.brand small{display:block;font-size:10px;font-weight:500;letter-spacing:2px;margin-top:2px;color:var(--muted)}.desktop-nav{display:flex;align-items:center;gap:24px;font-size:14px;white-space:nowrap}.desktop-nav a{color:var(--ink)}.desktop-nav button{padding:10px 0}.header-actions{display:flex;align-items:center;gap:12px;margin-left:auto;font-size:14px}.header-actions button{padding:10px 16px}.header-actions .search-trigger{background:var(--bg);display:flex;gap:10px;align-items:center}.search-trigger>span:first-child{font-size:24px;line-height:18px}kbd{border:1px solid var(--line);padding:0 5px;border-radius:4px;color:var(--muted)}.primary{background:var(--purple);color:white;padding:13px 22px!important;font-weight:600}.primary:hover{background:#5826bf;color:white}.secondary{background:#eee7fb;color:var(--purple);padding:13px 20px}.dropdown{position:relative}#topics{position:absolute;top:48px;left:-24px;background:white;border:1px solid var(--line);border-radius:18px;width:280px;padding:12px;box-shadow:0 18px 60px #25203818}#topics a{display:block;padding:14px;border-radius:10px}#topics a:hover{background:var(--bg)}#topics small{display:block;color:var(--muted);font-size:12px;margin-top:5px}.page{max-width:1440px;margin:auto;display:grid;grid-template-columns:255px minmax(0,810px);gap:76px;padding:52px 40px 80px}.toc{position:sticky;top:126px;align-self:start;max-height:calc(100vh - 160px);overflow:auto;font-size:13px;padding-right:12px;scrollbar-width:thin}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:700;color:var(--muted)}#toc{margin-top:22px}#toc a,#toc-mobile a{display:block;padding:8px 10px;border-left:2px solid transparent;line-height:1.55;color:var(--muted)}#toc .sub,#toc-mobile .sub{padding-left:23px;font-size:12px}#toc a.active{color:var(--purple);border-color:var(--purple);background:#6d39de09}#toc a:hover{color:var(--purple)}.toc-bottom{margin-top:25px;border-top:1px solid var(--line);padding-top:22px;display:grid;gap:14px}.toc-bottom span{color:var(--muted);font-size:12px}.toc-bottom button{justify-self:start;padding:8px 12px;background:#eee7fb;color:var(--purple)}main{min-width:0}.breadcrumbs{display:flex;gap:12px;font-size:12px;color:var(--muted);margin-bottom:35px}.breadcrumbs a{color:var(--muted)}.pill{display:inline-block;background:#ebe3fa;color:var(--purple);font-size:12px;padding:7px 12px;border-radius:30px}h1{font-size:46px;letter-spacing:-1.8px;line-height:1.35;margin:18px 0 24px}.author{display:flex;align-items:center;gap:12px}.author strong{font-size:14px;font-weight:600}.author small{display:block;font-size:12px;color:var(--muted);margin-top:7px}.article-actions{display:flex;gap:10px;margin:24px 0}.article-actions button{font-size:12px;border:1px solid var(--line);padding:9px 13px;background:#ffffff90}.hero{display:block;width:100%;border-radius:24px;aspect-ratio:1.8;object-fit:cover}.lead{font-size:20px;line-height:1.85;color:#5e566f;margin:28px 0 45px}#sections section{margin:0 0 42px;scroll-margin-top:106px}#sections h2{font-size:27px;letter-spacing:-.7px;line-height:1.5;margin:46px 0 20px}#sections h3{font-size:21px;margin:30px 0 18px}#sections p,#sections li{font-size:var(--article-size);line-height:1.95;color:#484253;overflow-wrap:anywhere}#sections p{margin:0 0 18px}#sections li{margin:10px 0}#sections ul,#sections ol{padding-left:25px}.term{color:var(--purple)}.diagram{width:100%;border-radius:18px;margin:28px 0}.article-end{padding:40px;background:#eee7fa;border:1px solid #e1d5f7;border-radius:22px;margin:55px 0}.article-end h2{font-size:29px}.article-end p{color:#6b5e7c;margin-bottom:25px}.article-end button{margin:4px}.related h2{font-size:24px}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:24px 0}.cards button{text-align:left;background:white;padding:22px 18px;border:1px solid var(--line);border-radius:18px;transition:transform .2s,box-shadow .2s}.cards button:hover{transform:translateY(-4px);box-shadow:0 10px 30px #4933670c}.cards span{font-size:10px;letter-spacing:1px;color:var(--muted)}.cards h3{font-size:18px;line-height:1.6}.cards p{font-size:13px;line-height:1.8;color:var(--muted)}.cards b{font-size:12px;color:var(--purple)}.source-note{font-size:11px;line-height:1.9;color:var(--muted);margin-top:35px}footer{background:#21192f;color:#d2c9df;display:grid;grid-template-columns:2fr 1fr 1fr;gap:35px;padding:60px max(40px,calc((100vw - 1280px)/2));font-size:13px}footer .brand{color:white}footer .brand small{color:#b6a5cc}footer p{color:#a89ab8;font-size:12px;margin-top:20px}footer h3{color:white;font-size:13px;margin:0 0 20px}footer>div>a:not(.brand),footer button{display:block;color:#b9aacb;margin:12px 0;padding:0;text-align:left}footer button:hover,footer a:hover{color:white}.footer-bottom{grid-column:1/-1;display:flex;justify-content:space-between;border-top:1px solid #ffffff15;padding-top:25px;color:#9989aa;font-size:11px}dialog{border:1px solid var(--line);border-radius:22px;padding:28px;width:min(600px,calc(100% - 32px));max-height:85dvh;color:var(--ink);box-shadow:0 30px 100px #24103c30}dialog::backdrop{background:#21152d70;backdrop-filter:blur(5px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.dialog-head h2{font-size:22px;margin:0}.dialog-head button{font-size:28px;width:36px;height:36px;background:var(--bg)}#modal-body{line-height:1.85;color:#62576f}#modal-body p{margin:12px 0}#modal-body .primary{margin-top:16px}.search-box{display:flex;align-items:center;border:1px solid #bca3e8;border-radius:12px;padding:12px 16px;gap:10px;background:var(--bg)}.search-box span{font-size:25px}.search-box input{width:100%;min-width:0;border:0;outline:none;background:transparent;color:var(--ink);font-size:15px}.search-hint{font-size:11px;color:var(--muted)}#search-results{max-height:48dvh;overflow:auto}#search-results button{display:block;text-align:left;width:100%;padding:16px 12px;border-bottom:1px solid var(--line)}#search-results button:hover{background:var(--bg)}#search-results strong{display:block;font-size:15px}#search-results small{display:block;font-size:12px;color:var(--muted);line-height:1.8;margin-top:6px}.empty{padding:30px;text-align:center;font-size:14px;color:var(--muted)}#toast{position:fixed;bottom:30px;left:50%;transform:translate(-50%,20px);background:#292033;color:white;padding:13px 22px;border-radius:12px;font-size:13px;opacity:0;pointer-events:none;z-index:100;transition:.2s;max-width:90vw}#toast.show{opacity:1;transform:translate(-50%,0)}#back-top{position:fixed;right:25px;bottom:24px;background:white;border:1px solid var(--line);border-radius:50%;width:44px;height:44px;box-shadow:0 5px 30px #0001}.mobile-only,.mobile-toc{display:none}@media(min-width:1600px){.page{gap:100px;grid-template-columns:270px minmax(0,850px)}}@media(max-width:1150px){.header-inner{gap:25px;padding:0 25px}.desktop-nav{gap:16px}.desktop-nav>button:last-child{display:none}.search-label,kbd{display:none}.page{gap:35px;grid-template-columns:210px minmax(0,1fr);padding:40px 28px}h1{font-size:39px}}@media(max-width:850px){.desktop-nav,.header-actions .login,.header-actions .register,.toc{display:none}.mobile-only{display:block}.header-inner{height:68px;padding:0 20px}.brand{font-size:20px}.header-actions{gap:5px}.header-actions button{padding:9px 12px}#mobile-nav{border-top:1px solid var(--line);padding:12px 20px;display:grid;grid-template-columns:1fr 1fr;gap:8px}#mobile-nav>a,#mobile-nav>button{padding:13px;text-align:left;background:var(--bg);border-radius:8px;color:var(--ink);font-size:14px}.page{display:block;padding:30px 22px 45px;max-width:800px}.breadcrumbs{margin-bottom:26px;font-size:11px;gap:8px}h1{font-size:36px;letter-spacing:-1px}.hero{border-radius:16px}.lead{font-size:18px}.mobile-toc{display:block;border:1px solid var(--line);background:#fff;border-radius:14px;padding:16px;margin-bottom:32px;font-size:14px}.mobile-toc summary{cursor:pointer;font-weight:600}.mobile-toc nav{padding-top:15px;max-height:350px;overflow:auto}#sections h2{font-size:25px}.article-end{padding:26px}.article-end h2{font-size:25px}.cards{gap:10px}.cards button{padding:18px 14px}.cards h3{font-size:16px}footer{padding:40px 25px;gap:35px;grid-template-columns:1fr 1fr}footer>div:first-child{grid-column:1/-1}.footer-bottom{display:grid;gap:12px}dialog{padding:22px}.dialog-head h2{font-size:20px}}@media(max-width:460px){.cards{grid-template-columns:1fr}.cards button{padding:22px}.cards h3{margin:10px 0}.cards p{margin:10px 0}.hero{aspect-ratio:1.45}#sections p,#sections li{font-size:var(--article-size)}.article-actions{gap:7px}.article-actions button{padding:9px 10px}.article-end button{display:block;width:100%;margin:10px 0}}@media(prefers-reduced-motion:reduce){*,html{scroll-behavior:auto!important;transition:none!important}}
.brand .wordmark{width:210px;height:70px;object-fit:contain}footer .brand{background:white;border-radius:10px;padding:2px 10px;width:max-content}.knowledge-nav{margin-left:auto;display:flex;gap:25px;font-size:14px}.knowledge-main{max-width:1120px;padding:60px 28px 90px;margin:auto}.library-search{max-width:600px;margin-bottom:35px}.featured-guide{display:block;background:#eee6fb;border:1px solid #d9c7f1;border-radius:22px;padding:30px;margin-bottom:25px;color:var(--ink)}.featured-guide span{font-size:12px;color:var(--purple)}.featured-guide h2{font-size:28px}.featured-guide p{color:var(--muted)}.library-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.knowledge-card{display:block;background:white;border:1px solid var(--line);padding:25px;border-radius:18px;color:var(--ink)}.knowledge-card:hover{box-shadow:0 10px 30px #00000009}.knowledge-card small{color:var(--purple)}.knowledge-card h2{font-size:21px;line-height:1.6}.knowledge-card p{font-size:14px;line-height:1.9;color:var(--muted)}.knowledge-card>span{font-size:13px;color:var(--purple)}.reader{max-width:860px}.reader h1{font-size:40px}.reader-byline{font-size:13px;color:var(--muted)}#read-toc{display:grid;gap:12px;padding:25px;border:1px solid var(--line);border-radius:14px;margin:30px 0}#knowledge-article section{margin:45px 0}#knowledge-article h2{font-size:26px}#knowledge-article p{font-size:18px;line-height:2}.knowledge-footer{display:flex;justify-content:space-between;flex-wrap:wrap}.knowledge-footer a{color:#d7c5fa}@media(max-width:850px){.brand .wordmark{width:180px;height:60px}.library-grid{grid-template-columns:1fr 1fr}.knowledge-main{padding-top:35px}.reader h1{font-size:31px}}@media(max-width:520px){.library-grid{grid-template-columns:1fr}.knowledge-nav{gap:12px;font-size:12px}.knowledge-main h1{font-size:32px}.knowledge-nav a{white-space:nowrap}.knowledge-main{padding:30px 20px 60px}}

.auth-sub{font-size:14px;color:var(--muted);margin-top:-5px!important}#auth-form{margin-top:24px}#auth-form label{display:block;font-size:14px;font-weight:600;color:var(--ink);margin:18px 0}#auth-form input{display:block;width:100%;border:1px solid var(--line);background:#faf8fc;padding:13px 14px;border-radius:10px;color:var(--ink);margin-top:8px;font-size:15px}.password-wrap{position:relative}.password-wrap input{padding-right:65px!important}.password-wrap button{position:absolute;right:10px;top:9px;padding:5px;color:var(--purple);font-size:13px}.auth-options{text-align:right;font-size:13px;color:var(--purple)}.auth-submit{width:100%;margin-top:4px!important}.auth-switch{text-align:center;border-top:1px solid var(--line);padding-top:20px;margin-top:20px;font-size:14px}.auth-switch button{color:var(--purple);font-weight:600}.auth-demo{text-align:center;font-size:12px;color:var(--muted)}#auth-feedback{font-size:13px;color:var(--purple);min-height:20px}

.footer-bottom .copyright{display:block;white-space:nowrap}

/* Layout audit: consistent alignment, readable wrapping, compact viewport support. */
html{scrollbar-gutter:stable}h1,h2,h3,p{overflow-wrap:break-word}.header-inner>*{min-width:0}.header-inner .brand{flex-shrink:0}.header-actions{flex-shrink:0}.header-actions button{white-space:nowrap}.breadcrumbs{flex-wrap:wrap}.article-actions{flex-wrap:wrap}.dialog-head{align-items:flex-start}.dialog-head h2{line-height:1.45}.dialog-head button{flex:0 0 36px}.footer-bottom{display:block;text-align:left}.footer-bottom .copyright{display:inline-block;white-space:nowrap}.knowledge-footer{align-items:center;gap:20px}.copyright{white-space:nowrap;letter-spacing:normal}.knowledge-card{display:flex;flex-direction:column;align-items:flex-start;min-width:0}.knowledge-card h2{margin:16px 0 10px;line-height:1.55}.knowledge-card p{margin:0 0 22px}.knowledge-card>span{margin-top:auto}.cards button{display:flex;flex-direction:column;align-items:flex-start}.cards b{margin-top:auto}.cards h3{line-height:1.5}.knowledge-nav{flex-shrink:0}.reader-byline{margin:24px 0}#read-category{margin-top:32px}#knowledge-article section{scroll-margin-top:100px}#sections h2,#sections h3{letter-spacing:0}#auth-form input,.search-box input{font-size:16px}.password-field{margin:18px 0}.password-field>label{margin:0!important}.password-wrap button{min-height:36px;top:6px}#auth-feedback:empty{display:none}#auth-form .auth-submit{margin-top:20px!important}footer .brand{max-width:100%}.knowledge-footer a{margin:0}#sections>section>div{white-space:normal}
@media(min-width:851px) and (max-width:1050px){.header-inner{gap:18px}.desktop-nav{gap:12px;font-size:13px}.header-actions{gap:6px}.header-actions button{padding:10px}.header-inner .wordmark{width:175px;height:60px}.desktop-nav>a:last-child{display:none}}
@media(max-width:850px){.header-inner{gap:14px}.knowledge-footer{padding-bottom:35px}.dialog-head h2{font-size:21px}.cards h3{min-height:0}}
@media(max-width:380px){.header-inner{padding:0 14px;gap:10px}.header-inner .wordmark{width:145px;height:52px}.knowledge-nav{gap:10px}.header-actions button{padding:9px}.page{padding-left:18px;padding-right:18px}.knowledge-main{padding-left:18px;padding-right:18px}.knowledge-main h1,h1{font-size:30px}.article-actions button{padding:10px;font-size:12px}.knowledge-footer{display:grid;justify-content:start}dialog{padding:20px;width:calc(100% - 24px)}}

.article-end>a.secondary{display:inline-block;margin:4px}.footer-bottom{font-size:12px}footer h3{font-size:14px}footer>div>a:not(.brand),footer button{font-size:14px}#auth-form label{font-weight:500}@media(max-width:460px){.article-end>a.secondary{display:block;text-align:center;margin:10px 0;width:100%}}
/* Language selection and international typography */
.language-control{display:flex;align-items:center;gap:5px;min-width:0;color:var(--ink);flex-shrink:0}
.language-control>span{font-size:21px;line-height:1}
.language-control select{font:inherit;font-size:13px;color:inherit;background:transparent;border:1px solid #e6e0ef;border-radius:9px;max-width:145px;padding:9px 22px 9px 8px;cursor:pointer;min-height:40px}
.language-control select:focus-visible{outline:2px solid #6d39de;outline-offset:3px}
.knowledge-nav{margin-inline-start:auto}.knowledge-nav+.language-control{margin-inline-start:16px}
h1,h2,h3,.knowledge-card p,.featured-guide p{overflow-wrap:anywhere}
header .header-inner{gap:16px}
.desktop-nav{gap:16px}.header-actions{gap:10px}
.desktop-nav>a,.desktop-nav>.dropdown>button,.desktop-nav>button{white-space:nowrap}
#topics a{white-space:normal}
.article-actions{row-gap:10px}.article-actions button{white-space:normal}
.dialog-head h2{overflow-wrap:anywhere}.auth-switch{overflow-wrap:anywhere}
.auth-options button,.auth-switch button{white-space:normal}
.knowledge-nav{gap:18px}.knowledge-nav a{white-space:normal}
.reader h1{max-width:100%}.copyright{direction:ltr;display:inline-block}
html[lang="th"] body{line-height:1.85}html[lang="hi"] body{line-height:1.8}
html[dir="rtl"] body{text-align:right}
html[dir="rtl"] .toc{border-right:0;border-left:1px solid #e8e3ef}
html[dir="rtl"] #toc a{border-left:0;border-right:2px solid transparent}
html[dir="rtl"] #toc a.active{border-right-color:#6d39de}
html[dir="rtl"] #toc a.sub{padding-right:22px;padding-left:0}
html[dir="rtl"] .search-box input{text-align:right}
html[dir="rtl"] .password-wrap input{padding-right:14px;padding-left:74px}
html[dir="rtl"] .password-wrap button{right:auto;left:8px}
html[dir="rtl"] .language-control select{direction:ltr;text-align:left}
html[dir="rtl"] .reader-byline,html[dir="rtl"] footer .brand{direction:ltr}
@media(min-width:851px) and (max-width:1250px){
 .desktop-nav{display:none}.header-inner{justify-content:space-between}
 #menu-toggle{display:inline-flex}
}
@media(max-width:850px){
 header .header-inner{gap:10px}.header-actions{gap:8px}
 .language-control select{max-width:108px;font-size:12px;padding-inline-start:6px}
 .language-control>span{display:none}
 .knowledge-nav{gap:12px}.knowledge-nav+.language-control{margin-inline-start:0}
 .knowledge-main{overflow-wrap:anywhere}
}
@media(max-width:560px){
 .header-actions .login,.header-actions .register{display:none}
 header .wordmark{width:155px;height:auto}
 .knowledge-nav{display:none}.knowledge-nav+.language-control{margin-inline-start:auto}
 .language-control select{max-width:110px}
 .article-end .primary,.article-end .secondary{display:inline-flex;margin-top:8px;max-width:100%;white-space:normal}
 .breadcrumbs{gap:6px}.pill{max-width:100%;white-space:normal}
}
@media(max-width:360px){header .wordmark{width:135px}.header-actions{gap:5px}.language-control select{max-width:98px}}

html:not(.language-ready) body{visibility:hidden}
.header-actions,.knowledge-nav{margin-left:0;margin-inline-start:auto}
html[dir="rtl"] .cards button,html[dir="rtl"] footer button,html[dir="rtl"] #mobile-nav>a,html[dir="rtl"] #mobile-nav>button,html[dir="rtl"] #search-results button,html[dir="rtl"] .footer-bottom{text-align:start}
html[dir="rtl"] .toc{padding-left:12px;padding-right:0}
html[dir="rtl"] #toc-mobile a{border-left:0;border-right:2px solid transparent}
html[dir="rtl"] #toc-mobile .sub{padding-left:0;padding-right:23px}
html[dir="rtl"] .progress{left:auto;right:0}
html[dir="rtl"] h1,html[dir="rtl"] h2,html[dir="rtl"] h3,html[dir="rtl"] .eyebrow,html[dir="rtl"] .cards span{letter-spacing:normal}
.password-wrap input{padding-inline-end:90px!important}
html[dir="rtl"] .password-wrap input{padding-right:14px!important;padding-left:90px!important}
#auth-form input[type="email"]{direction:ltr;text-align:left}
@media(max-width:560px){.header-actions .search-trigger{display:none}.header-inner .brand .wordmark{width:155px;height:auto}}
@media(max-width:380px){.header-inner .brand .wordmark{width:125px;height:auto}.header-actions #menu-toggle{padding:8px;min-width:30px}.header-inner{gap:8px}.header-actions .language-control select{max-width:94px}}
footer>div{min-width:0}footer a,footer button,footer p{overflow-wrap:anywhere}footer button{max-width:100%;white-space:normal;text-align:start}
@media(max-width:850px){footer{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:1251px) and (max-width:1439px){.desktop-nav>a:last-child{display:none}.header-inner .wordmark{width:180px;height:60px}.desktop-nav{font-size:13px;gap:12px}.header-inner{gap:14px}}
