/* Local, licensed Thai-only glyphs preserve the existing Latin typography. */
@font-face{font-family:"Kanit Thai";font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/Kanit-Regular.ttf') format('truetype');unicode-range:U+0E00-0E7F}
@font-face{font-family:"Kanit Thai";font-style:normal;font-weight:500 900;font-display:swap;src:url('/fonts/Kanit-SemiBold.ttf') format('truetype');unicode-range:U+0E00-0E7F}
[lang=th]{font-family:"Kanit Thai",Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:normal}
html[data-fn-language=th] :is(body,button,input,select,textarea,summary,h1,h2,h3,h4,label,a,span,p){font-family:"Kanit Thai",Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:normal}html[data-fn-language=th] :is(button,summary,a){line-height:1.6}html[data-fn-language=th] :is(h1,h2,h3){line-height:1.5}
.fn-display-panel{width:300px;gap:15px}.fn-display-row{display:block}.fn-display-row>span{display:block;font-size:13px;color:var(--fn-muted);margin-bottom:6px}.fn-pill-switch{position:relative;display:flex;background:var(--fn-soft);border:1px solid var(--fn-line);border-radius:999px;padding:4px;isolation:isolate}.fn-pill-switch:before{content:"";position:absolute;inset:4px auto 4px 4px;width:calc(50% - 4px);background:var(--fn-ink);border-radius:999px;z-index:-1;pointer-events:none}.fn-pill-switch[data-position=right]:before{transform:translateX(100%)}.fn-pill-switch button{border:0!important;background:transparent!important;color:var(--fn-muted)!important;min-height:40px!important;border-radius:999px!important;padding:8px 16px!important;flex:1;font-size:14px!important;font-weight:600;white-space:nowrap;width:auto!important;line-height:1.4}.fn-pill-switch button[aria-pressed=true]{color:var(--fn-surface)!important}.fn-display-panel .fn-system-theme{font-size:12px;min-height:32px;padding:3px 9px;border:0;background:none;width:auto;color:var(--fn-muted)}.fn-system-theme[aria-pressed=true]{text-decoration:underline;text-underline-offset:4px}.fn-pill-switch svg{width:16px;height:16px;vertical-align:-3px;margin-right:5px;fill:none;stroke:currentColor;stroke-width:1.7}
.subject-mode .fn-header-tips{display:none}
body:not(.subject-mode) .masthead>.fn-appearance{margin-left:auto}body:not(.subject-mode) .masthead>.fn-appearance>summary{display:none}body:not(.subject-mode) .masthead .fn-display-panel{position:static;display:flex;align-items:center;width:auto;max-width:none;padding:0;border:0;background:none;box-shadow:none;gap:14px}body:not(.subject-mode) .masthead .fn-display-row>span,body:not(.subject-mode) .masthead .fn-system-theme,body:not(.subject-mode) .masthead .fn-language-note{display:none}body:not(.subject-mode) .masthead .fn-pill-switch{min-width:165px}body:not(.subject-mode) .masthead .fn-display-panel .fn-prefs-status{position:absolute}.home-header{display:none}.fn-reference-link:before{content:'▦';color:inherit}.fn-header-reference{font:inherit;font-size:14px;min-height:44px;white-space:nowrap;border:1px solid var(--fn-line);background:var(--fn-soft);color:var(--fn-ink);border-radius:9px;padding:9px 12px;cursor:pointer}.fn-header-reference:before{content:'▦';margin-right:7px}
@media(max-width:1000px){.fn-header-reference{font-size:13px;padding:9px 10px}.subject-mode .fn-header-tips{display:none}}@media(max-width:650px){body:not(.subject-mode) .masthead{display:flex!important;flex-wrap:wrap;gap:12px;padding:14px 16px;height:auto!important}body:not(.subject-mode) .masthead>.brand{width:100%;margin:0}body:not(.subject-mode) .masthead>.fn-appearance{margin:0;width:100%}body:not(.subject-mode) .masthead .fn-display-panel{width:100%;gap:10px}body:not(.subject-mode) .masthead .fn-display-row{flex:1;min-width:0}body:not(.subject-mode) .masthead .fn-pill-switch{min-width:0}body:not(.subject-mode) .masthead .fn-pill-switch button{padding:8px 10px!important}.fn-header-reference{font-size:14px}.subject-mode .fn-header-reference:before{display:none}}@media(max-width:370px){.fn-pill-switch button svg{display:none}.fn-header-reference{max-width:150px;overflow:hidden;text-overflow:ellipsis}.fn-display-panel{max-width:calc(100vw - 24px)}}
@media(prefers-reduced-motion:no-preference){.fn-pill-switch:before{transition:transform .2s ease}.fn-pill-switch button{transition:color .2s ease}}@media(prefers-reduced-motion:reduce){.fn-pill-switch:before{transition:none}}
