/* Locale typography: no remote fonts, transliteration or forced navigation. */
:lang(zh-Hans){--sans:Inter,"PingFang SC","Microsoft YaHei","Noto Sans CJK SC",system-ui,sans-serif;--mono:"IBM Plex Mono","PingFang SC","Microsoft YaHei",monospace}
:lang(th){--sans:Inter,"Noto Sans Thai",Thonburi,"Leelawadee UI",system-ui,sans-serif;--mono:"IBM Plex Mono","Noto Sans Thai",Thonburi,monospace}
html:lang(zh-Hans) body,html:lang(th) body{line-height:1.8}
html:lang(zh-Hans) h1,html:lang(zh-Hans) h2,html:lang(zh-Hans) h3,html:lang(th) h1,html:lang(th) h2,html:lang(th) h3{letter-spacing:0;line-height:1.3;word-break:normal}
html:lang(zh-Hans) .eyebrow,html:lang(th) .eyebrow,html:lang(zh-Hans) .card-number,html:lang(th) .card-number{letter-spacing:.035em}
html:lang(zh-Hans) .prose,html:lang(th) .prose{line-height:1.9}
html:lang(th) .hero h1{font-size:clamp(36px,4.2vw,60px);line-height:1.45}
html:lang(zh-Hans) .hero h1{font-size:clamp(40px,4.7vw,66px)}
.locale-nav{position:relative;flex-shrink:0;font-size:12px;margin-left:0}
.locale-nav summary{cursor:pointer;white-space:nowrap;border:1px solid var(--line);border-radius:7px;padding:8px 10px;list-style:none;min-height:38px;display:flex;align-items:center;gap:7px}
.locale-nav summary::after{content:'⌄';color:var(--orange-ink)}
.locale-nav nav{position:absolute;right:0;top:calc(100% + 8px);min-width:190px;background:var(--paper);border:1px solid var(--line);border-radius:10px;padding:8px;box-shadow:0 14px 30px #181a1812;z-index:60}
.locale-nav a{display:block;text-decoration:none;padding:12px 10px;border-radius:5px;line-height:1.5;font-size:13px}
.locale-nav a[aria-current=page]{color:var(--orange-ink);background:#ef5b2a10}
.locale-nav a:hover{background:#e9ebe6}
.locale-notice{border-left:2px solid var(--line);font-size:12px;line-height:1.8;color:var(--muted);padding:10px 14px;margin:22px 0;max-width:880px}
main.wrap>.locale-notice,main>.locale-notice{max-width:1180px;margin:25px auto;padding:10px 26px}
.locale-notice a{white-space:nowrap}
.language-label{font:10px var(--mono);color:var(--muted)}
.history-quote{margin:48px 0 4px;padding:28px 0 8px;border-top:1px solid var(--line);max-width:880px}
.history-quote .eyebrow{margin-bottom:18px}.history-quote blockquote{border:0;margin:0 0 14px;padding:0;color:var(--ink)}
.history-quote blockquote p{font-size:clamp(20px,2vw,28px);line-height:1.5;font-weight:450;letter-spacing:-.02em;margin:0}
.history-quote .quote-byline{font-size:11px;color:var(--muted);margin-bottom:14px}
.history-quote .quote-context{font-size:11px;color:var(--muted);line-height:1.7;max-width:680px;margin-top:12px}
.history-quote details{font-size:12px;color:var(--muted)}.history-quote details p{font-size:14px;margin:12px 0}
html:lang(zh-Hans) .history-quote blockquote p,html:lang(th) .history-quote blockquote p{letter-spacing:0}
.header{gap:22px}.desktop-nav{gap:18px}.header-tools{gap:10px}.header-tools .button{gap:8px;padding:10px 13px}.search-open{gap:10px}
@media(max-width:1250px){.status-label{display:none}.header{gap:16px}.search-open span{display:none}}
@media(max-width:900px){.header-tools{margin-left:auto}.locale-nav{margin-left:0}.header{gap:12px}}
@media(max-width:560px){.header{gap:9px;padding:15px 16px}.locale-nav summary{padding:7px 8px;font-size:11px}.wordmark{font-size:25px}.search-open{padding:8px}.header-tools{gap:0}.mobile-nav summary{padding:6px;font-size:11px}.locale-nav nav{right:-30px}.history-quote{margin-top:30px}html:lang(zh-Hans) .hero h1{font-size:39px}html:lang(th) .hero h1{font-size:36px}.instrument-row{font-size:11px}.agent-prompt{line-height:1.8}.locale-notice{font-size:11px}}
@media print{.locale-nav,.locale-notice{display:none!important}.history-quote{break-inside:avoid}}
/* Four-position language selection, styled as a miniature physical orange latch. */
.locale-nav summary{min-height:44px;min-width:94px;padding:7px 10px;gap:9px;background:linear-gradient(145deg,#fafaf7,#e6e8e3);border:1px solid #aeb2aa;border-radius:10px;box-shadow:inset 0 1px 0 #fff,0 1px 2px #181a180a}
.locale-nav summary::after{content:'⌄';font-size:12px;color:var(--muted);margin-inline-start:1px}
.switch-slot{position:relative;display:inline-block;width:30px;height:17px;border-radius:10px;border:1px solid #b8bcb3;background:linear-gradient(#c8ccc3,#e6e8e2);box-shadow:inset 0 1px 3px #181a1833;flex:0 0 auto;direction:ltr}
.switch-knob{position:absolute;left:1px;top:1px;width:18px;height:13px;border-radius:7px;background:linear-gradient(#ff8d5b,#ef5b2a);border:1px solid #ca4a20;box-shadow:0 1px 2px #181a1840,inset 0 1px #ffc5a4;transition:translate .18s ease}
.switch-knob::after{content:'';position:absolute;left:7px;top:2px;width:2px;height:6px;border-inline:1px solid #ffb08a}
.locale-nav[open] .switch-knob{translate:8px 0}.locale-current{min-width:23px;font-size:11px;font-weight:600}
.locale-nav nav{inset-inline-end:0;right:auto;min-width:182px;max-width:calc(100vw - 32px);box-shadow:0 12px 28px #181a1820,inset 0 1px white;background:#f5f5f3;padding:8px}
.locale-nav a{min-height:44px;display:flex;align-items:center;gap:10px;text-align:start;border:1px solid transparent}
.locale-nav a[aria-current=page]::before{content:'';height:5px;width:5px;flex-shrink:0;border-radius:50%;background:var(--orange)}
.locale-nav a:hover{background:#eceee7;border-color:#d1d5cb}.locale-nav a:active{background:#e0e4da}
/* Native Thai and Arabic fonts are system fallbacks: no downloaded font files. */
html:lang(ar){--sans:Inter,"Noto Sans Arabic","Segoe UI",Tahoma,Arial,sans-serif;--mono:"IBM Plex Mono","Noto Sans Arabic",Tahoma,monospace}
html:lang(ar) body{line-height:1.95}
html:lang(ar) h1,html:lang(ar) h2,html:lang(ar) h3,html:lang(ar) h4{letter-spacing:0;line-height:1.45;word-break:normal}
html:lang(ar) .hero h1{font-size:clamp(35px,4.5vw,62px);line-height:1.38}
html:lang(ar) .prose{line-height:2}html:lang(ar) .eyebrow,html:lang(ar) .badge,html:lang(ar) .card-number,html:lang(ar) th{letter-spacing:0;text-transform:none;line-height:1.7}
html[dir=rtl] th,html[dir=rtl] td{text-align:start}
html[dir=rtl] ul,html[dir=rtl] ol{padding-left:0;padding-inline-start:24px}
html[dir=rtl] blockquote,html[dir=rtl] .notice,html[dir=rtl] .locale-notice{border-left:0;border-inline-start:2px solid var(--line);padding-left:0;padding-inline-start:18px}
html[dir=rtl] .desktop-nav{margin-left:0;margin-inline-start:auto}
html[dir=rtl] .scope-strip .label{margin-right:0;margin-inline-end:auto}
html[dir=rtl] .eyebrow .signal{margin-right:0;margin-inline-end:8px}
html[dir=rtl] .principle .card-number{margin-right:0;margin-inline-end:12px}
html[dir=rtl] .feature-card .badge{right:auto;left:20px}
html[dir=rtl] .doc-sidebar>summary:after{float:left}
html[dir=rtl] .footer .unconfigured{text-align:start}
html[dir=rtl] .history-quote blockquote{border:0;padding:0}
html[dir=rtl] .history-quote blockquote p{letter-spacing:0}
html[dir=rtl] .prose .heading-anchor{margin-left:0;margin-inline-start:9px}
html[dir=rtl] .doc-sidebar{padding-right:0;padding-inline-end:24px}
html[dir=rtl] .doc-sidebar a{border-left:0;border-inline-start:2px solid transparent;text-align:start}
html[dir=rtl] .doc-sidebar a[aria-current=page]{border-inline-start-color:var(--orange)}
html[dir=rtl] .doc-sidebar .depth-1{padding-left:0;padding-inline-start:24px}
html[dir=rtl] .copy-code{right:10px;left:auto;direction:ltr}
pre,pre code,code,kbd,[dir=ltr]{unicode-bidi:isolate}
pre,pre code{text-align:left;direction:ltr}code{direction:ltr;unicode-bidi:isolate}bdi{unicode-bidi:isolate}
.diagram img{direction:ltr}.history-quote [lang=en]{text-align:left}
/* Decorative motion never hides content or reports fabricated live results. */
.micro-cue{display:block;width:240px;max-width:100%;height:48px;margin:0 0 16px;opacity:.8;contain:layout paint;pointer-events:none}
.micro-cue video{width:240px;max-width:100%;height:48px;display:block;object-fit:contain;object-position:left center}
.hero>.micro-cue{grid-column:1/-1;margin-top:-24px}.doc-main>.micro-cue{width:180px;height:36px;margin:-9px 0 18px}.doc-main>.micro-cue video{width:180px;height:36px}
.global-motion{display:none;align-items:center;justify-content:center;gap:8px;font-size:11px;min-height:36px;border:1px solid var(--line);background:transparent;border-radius:7px;padding:6px 10px;justify-self:start;color:var(--muted)}
.js .global-motion{display:inline-flex}.motion-led{height:5px;width:5px;border-radius:50%;background:var(--orange)}
.global-motion[aria-pressed=true] .motion-led{background:var(--muted)}
[data-micro-hover]{transition:border-color .18s ease,box-shadow .18s ease}
[data-micro-hover]:hover{border-color:#bfc3b8;box-shadow:0 3px 9px #181a1805}
.motion-disabled *, .motion-disabled *::before,.motion-disabled *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
@media(max-width:1200px){.desktop-nav{gap:14px}.header{gap:14px}.header-tools .button{display:none}}
@media(max-width:900px){html[dir=rtl] .header-tools{margin-left:0;margin-inline-start:auto}html[dir=rtl] .doc-sidebar{padding:16px}.locale-nav summary{min-width:92px}}
@media(max-width:560px){.locale-nav summary{padding:7px 8px;min-width:88px}.locale-nav nav{inset-inline-end:-35px}.header{gap:8px}.locale-current{font-size:11px}html:lang(ar) .hero h1{font-size:36px}html:lang(ar) .doc-main>h1{font-size:31px}.micro-cue{margin-bottom:12px}.global-motion{min-height:44px}.hero>.micro-cue{margin-top:0}}
@media(prefers-reduced-motion:reduce){.switch-knob{transition:none}.micro-cue{opacity:.65}}
@media print{.micro-cue,.global-motion{display:none!important}}
.micro-cue video{mix-blend-mode:multiply}.motion-disabled{scroll-behavior:auto!important}
.micro-cue{mix-blend-mode:multiply}
