.language-switch{display:inline-flex;align-items:center;gap:3px;padding:3px;border:1px solid #d5dceb;background:#fff;border-radius:999px;flex-shrink:0}
.language-switch button{font:600 12px/1.2 system-ui,sans-serif;color:#46546e;background:transparent;border:0;border-radius:999px;min-height:34px;min-width:39px;padding:7px 10px;cursor:pointer}
.language-switch button[aria-pressed=true]{background:#3153fa;color:#fff}
.language-switch button:focus-visible{outline:3px solid #3153fa;outline-offset:3px}
.topbar{gap:14px}.topbar>a{margin-left:auto}.topbar>.language-switch{margin-left:0}
/* Thai text is set in Anuphan (Cadson Demak, SIL OFL 1.1: /assets/fonts/Anuphan-OFL.txt). Its Thai
   glyphs join the site's own families, so any element using DM Sans or Manrope renders Thai with it,
   whatever that element's own font declaration. Latin keeps DM Sans and Manrope. Each weight range must
   match the Google Fonts faces exactly (see the @import ranges): browsers only combine faces whose
   descriptors are identical. */
@font-face{font-family:'DM Sans';src:url(/assets/fonts/anuphan-thai.woff2) format('woff2');font-weight:100 1000;font-style:normal;font-display:swap;unicode-range:U+02D7,U+0303,U+0331,U+0E01-0E5B,U+200C-200D,U+25CC}
@font-face{font-family:'Manrope';src:url(/assets/fonts/anuphan-thai.woff2) format('woff2');font-weight:200 800;font-style:normal;font-display:swap;unicode-range:U+02D7,U+0303,U+0331,U+0E01-0E5B,U+200C-200D,U+25CC}
/* Latin-style tracking and tight leading break Thai: letter-spacing pulls clusters apart, and marks
   stacked above and below consonants collide or get clipped. The Latin "tart" logo keeps its own. */
html[lang=th] body :not(.brand,.brand *,.tart-chat-mark,.identity-monogram){letter-spacing:0!important}
html[lang=th] :is(button,input,select,textarea){font-family:inherit}
html[lang=th] :is(h1,h2,h3,h4,.eyebrow,.featured-title>span,.cover-word,.diagram-title,.side-diagram strong,.guide-welcome h2,.tart-faq-home h2){line-height:1.4}
html[lang=th] .hero-title h1{font-size:clamp(42px,5.5vw,88px);line-height:1.3}
html[lang=th] .sidebar nav a{font-size:13px}
.project-share-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:20px 0 26px;padding:16px;background:#edf1ff;border:1px solid #d6dffc;border-radius:12px}
.project-share-actions a,.project-share-actions button{font:600 13px/1.5 inherit;padding:10px 14px;min-height:44px;border:1px solid #b9c7ee;border-radius:8px;background:#fff;color:#2444c5;cursor:pointer;text-decoration:none}
.project-share-actions a:focus-visible,.project-share-actions button:focus-visible{outline:3px solid #3153fa;outline-offset:3px}.project-share-status{font-size:12px;color:#435373;width:100%}
.share-link-fallback{width:100%;min-width:0;padding:10px;border:1px solid #9babd2;border-radius:6px;background:#fff;color:#182239}
@media(max-width:800px){.topbar{height:52px!important}.topbar>span{font-size:10px!important;max-width:42%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.topbar>a{font-size:12px!important}.language-switch button{min-height:36px;min-width:37px;padding:6px 8px}.topbar .language-switch{margin-left:auto}.topbar>a{display:none}.academic-nav{flex-wrap:wrap;gap:10px}.academic-nav .language-switch{margin-left:auto}html[lang=th] .hero-title h1{font-size:clamp(38px,8vw,65px)}}
@media print{.language-switch,.project-share-actions{display:none!important}}
