/* Scoped language controls. Existing artwork, chart coordinates and calculation values are preserved. */
body>header.language-site-header{display:block!important;position:relative;z-index:80;background:#edf4f9!important;border-color:#cedde7!important}
.language-site-header .header-inner{display:flex!important;min-height:94px;flex-wrap:nowrap!important;gap:16px;position:relative;justify-content:space-between}
.language-controls{display:flex;align-items:center;gap:9px;margin-inline-start:auto;direction:ltr;flex-shrink:0}
.language-controls button,.language-controls .language-account{display:inline-flex!important;align-items:center;justify-content:center;gap:8px;width:auto;min-width:44px;min-height:44px;border:1px solid #b7ccdc!important;border-radius:11px;padding:10px 14px;color:#193d54!important;background:#fff!important;font:600 14px/1.4 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;white-space:nowrap}
.language-controls .language-trigger{background:#193f59!important;color:#fff!important;max-width:210px;overflow-wrap:anywhere}
.language-controls .language-current{overflow:hidden;text-overflow:ellipsis;max-width:150px}
.language-site-header #navigation{display:none!important;position:absolute;top:calc(100% + 1px);inset-inline-end:0;width:min(650px,90vw);padding:24px;background:#f8fbfd;border:1px solid #c8dae7;border-radius:0 0 15px 15px;box-shadow:0 18px 40px #193d5420;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.language-site-header #navigation.open{display:grid!important}.language-site-header #navigation a{white-space:normal}
.language-picker{position:absolute;inset-inline-end:max(16px,calc((100vw - 1320px)/2));top:calc(100% + 10px);width:440px;max-width:calc(100vw - 24px);max-height:min(800px,calc(100dvh - 120px));overflow:auto;padding:22px;background:#fbfdff;border:1px solid #c2d4e1;border-radius:18px;box-shadow:0 18px 55px #193d5428;color:#1c4057;font:14px/1.6 -apple-system,BlinkMacSystemFont,'Segoe UI','Noto Sans',sans-serif;z-index:100}
.language-picker[hidden]{display:none!important}.language-picker-heading{display:flex;align-items:start;justify-content:space-between;gap:10px}.language-picker-heading h2{font:27px/1.4 Georgia,serif;color:#173b53;letter-spacing:normal}.language-close{min-width:42px;min-height:42px;font-size:24px;border:1px solid #bfd2df;border-radius:9px;background:#fff;color:#173b53}
.language-options{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-top:12px}.language-options button{display:flex;align-items:center;justify-content:space-between;min-height:58px;border:1px solid transparent;border-radius:10px;padding:9px 10px;background:transparent;color:#193d54;text-align:start;letter-spacing:normal;text-transform:none;font-size:16px;line-height:1.4}.language-options bdi{font-size:17px;letter-spacing:normal!important;text-transform:none!important}.language-options small{display:block;font:11px/1.5 -apple-system,sans-serif;color:#4c6b7e;margin-top:3px;text-align:start}.language-options button[aria-pressed=true]{border-color:#aac6d8;background:#e9f2f8}.language-tick{color:#8c6127}.language-state{border-top:1px solid #d4e1eb;padding-top:12px;margin-top:16px;font-weight:600;unicode-bidi:plaintext}.language-fallback{font-size:11px;line-height:1.6;color:#4c687a;margin-top:9px}.language-retry{min-height:42px;padding:9px 14px;border:1px solid #adc7d8;border-radius:9px;background:#fff;color:#193d54}.language-preference{display:block!important;text-align:center;font:11px/1.6 -apple-system,sans-serif;color:#3e6179;padding:7px 14px;background:#e8f1f7;border-bottom:1px solid #d5e3ed;unicode-bidi:plaintext}.language-preference[hidden]{display:none!important}
.console-mobile-connections,.console-mobile-footer{display:none}
/* Direction changes apply to reading flow, never transforms or astronomical geometry. */
html[dir=rtl] body{font-family:-apple-system,BlinkMacSystemFont,'Geeza Pro','Noto Naskh Arabic',sans-serif}
html[dir=rtl] :is(h1,h2,h3,.eyebrow,button){letter-spacing:normal;text-transform:none}
html[dir=rtl] :is(input[type=email],input[type=password],input[type=date],input[type=time],input[type=number],.mono,code,pre,.chart-meta,.chart-area,.kundali-svg,.expert-chart,.solar-system,.sky-orbits,.timeline-track,.ashta-score){direction:ltr;unicode-bidi:isolate}
html[dir=rtl] :is(.kundali-svg,.chart-area svg,.current-sky svg,.logo,.brand img,.console-brand img){transform:none!important}
html[dir=rtl] .language-site-header .header-inner{direction:ltr}html[dir=rtl] .console-brand,html[dir=rtl] .brand{direction:ltr}
html[lang=th] :is(button,label,h1,h2,h3){line-height:1.65;letter-spacing:normal;text-transform:none}
html[lang=ja],html[lang=zh-Hans]{font-family:-apple-system,BlinkMacSystemFont,'Hiragino Sans','PingFang SC',sans-serif}
@media(max-width:700px){
 body>header.language-site-header{position:sticky;top:0;z-index:90}
 .language-site-header .header-inner{width:calc(100% - 20px);min-height:70px;gap:7px;padding:8px 0}
 .language-site-header .brand{gap:6px;min-width:0;flex-shrink:1}.language-site-header .brand img{width:41px!important;height:41px!important;flex-shrink:0}.language-site-header .brand span{font-size:12px!important;width:auto!important;letter-spacing:.3px}.language-site-header .brand small{font-size:6px!important;letter-spacing:.3px!important;max-width:165px}
 .language-controls{gap:5px}.language-controls button,.language-controls .language-account{padding:8px;min-height:42px;min-width:40px;font-size:12px;gap:4px}.language-controls .language-account{max-width:64px;overflow:hidden;text-overflow:ellipsis}.language-controls .language-current{max-width:42px}.language-controls #menu-toggle{font-size:0;width:40px}.language-controls #menu-toggle::after{content:'☰';font-size:20px}.language-controls .language-account.is-signed-in{width:40px;height:42px;border-radius:50%}
 .language-picker{inset-inline:10px;width:auto;top:calc(100% + 6px);max-height:calc(100dvh - 92px);padding:17px}.language-picker-heading h2{font-size:23px}.language-options button{min-height:55px}.language-options bdi{font-size:16px}.language-site-header #navigation{grid-template-columns:1fr 1fr}
 .console-account-active .console-mobile-brand,.console-account-active .console-top .account-avatar{display:none!important}.console-account-active .mobile-tabs{top:70px!important}
 .console-mobile-connections{display:block;margin:22px 12px 0;padding:22px 17px;background:#f1f7fb;border:1px solid #c9dce9;border-radius:17px;clear:both}.console-mobile-connections h2{font-size:25px;color:#193d54;margin-bottom:12px}.console-mobile-connections .console-channel-row{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid #d3e2ec;border-radius:10px;margin-top:10px;padding:12px;color:#21485f}.console-mobile-connections .console-channel-row img{width:24px;height:24px}.console-mobile-connections .channel-connect{margin-inline-start:auto;min-height:42px;padding:9px 12px;border:1px solid #b8d0e0;border-radius:8px;background:#f8fbfd;color:#24516d}.console-mobile-connections .is-connected{background:#edf7f1;color:#27654a;border-color:#c5dfcf}
 .console-mobile-footer{display:block;padding:26px 18px;text-align:center;background:#e8f1f7;color:#42647c;font-size:12px;margin-top:22px}.console-mobile-footer img{width:45px;height:45px}.console-mobile-footer strong{display:block;color:#8c6027;letter-spacing:2px}.console-mobile-footer a{display:inline-block;margin:10px;min-height:30px}.console-account-active .floating-social{display:none!important}
}
@media(max-width:365px){.language-site-header .brand span{font-size:10px!important}.language-site-header .brand small{display:none}.language-site-header .brand img{width:36px!important;height:36px!important}.language-controls .language-account{font-size:11px;padding:7px}.language-controls .language-current{max-width:32px}.language-controls .language-trigger{padding:7px}.language-controls{gap:4px}}

html:is([lang=hi],[lang=ja],[lang=zh-Hans]) .eyebrow{letter-spacing:normal;text-transform:none}
/* Draft prose can be longer than English; keep report text readable without changing charts. */
html:not([lang=en]) :is(.console-brand-message h1,.console-intro h1,.hero-copy h1){overflow-wrap:break-word;line-height:1.25}
html:not([lang=en]) :is(.prose p,.nakshatra-summary p,.ashta-method-notes p,.expert-muted){line-height:1.8}
html[lang=th] :is(.prose p,.nakshatra-summary p,.expert-muted){word-break:normal;overflow-wrap:anywhere}
.language-preference[data-copy-state=unavailable]::after{content:' · English fallback';font-size:10px}
/* Preserve logical numerator/denominator order in RTL; never mirror astronomical values. */
html[dir=rtl] :is(.ashta-totals h4,.koota-heading strong,.tara-component h4,.house-pill,.expert-facts strong,.profile-birth){direction:ltr;unicode-bidi:isolate}

/* Script coverage uses installed system fonts; no remote font requests. Native typography review pending. */
html[lang^=pa] body{font-family:'Gurmukhi MN','Noto Sans Gurmukhi',sans-serif}
html[lang=bn] body{font-family:'Bangla Sangam MN','Noto Sans Bengali',sans-serif}
html[lang=ml] body{font-family:'Malayalam Sangam MN','Noto Sans Malayalam',sans-serif}
html[lang=te] body{font-family:'Telugu Sangam MN','Noto Sans Telugu',sans-serif}
html[lang=kn] body{font-family:'Kannada Sangam MN','Noto Sans Kannada',sans-serif}
html:is([lang=mr],[lang=ne],[lang=hi]) body{font-family:'Devanagari Sangam MN','Noto Sans Devanagari',sans-serif}
html:not([lang=en]) :is(button,label,h1,h2,h3){letter-spacing:normal;text-transform:none}
.language-options button{min-width:0;overflow-wrap:anywhere}.language-options bdi{white-space:normal}

.language-account-icon{display:none}@media(max-width:700px){.language-controls .language-account.is-signed-in .language-account-icon{display:block;flex-shrink:0}.language-controls .language-account.is-signed-in>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(100%);white-space:nowrap}}

/* Explicit display tokens localize labels without mirroring coordinates or numeric values. */
[data-chart-term]{unicode-bidi:isolate}html[lang=th] body{font-family:Thonburi,"Noto Sans Thai",Tahoma,sans-serif}
html:is([lang=hi],[lang=th]) .expert-chart text{font-family:inherit}
html[lang=hi] .kundali-svg .chart-planets,html[lang=th] .kundali-svg .chart-planets{font-size:15px;letter-spacing:normal}
