/* Locale is explicit before first paint. Keep Turkish text LTR in both interfaces. */
html[lang="en"]{--font-ar:system-ui,-apple-system,"Segoe UI",sans-serif}
html[lang="en"] .filter-gallery-panel{direction:ltr;width:min(700px,calc(100% - 32px))}
html[lang="en"] .filter-gallery-tile input{left:auto;right:14px}
html[lang="en"] body,html[lang="en"] body :is(button,input,select,textarea){font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
html[lang="en"] body .connectors-main{font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
html[lang="en"] body.foundation-page{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;line-height:1.65}
html[lang="en"] body.foundation-page .header .member-account-toggle{font:500 10px/1.2 system-ui,sans-serif;width:46px;padding:5px}
html[lang="en"] body.foundation-page .header .member-account-button{font:500 12px/1.25 system-ui,sans-serif}
html[lang="en"] .foundation-main .f-speak{min-height:44px}
html[lang="en"] .f-case-feature>div:nth-child(2){display:flex;flex-direction:column;gap:2px;min-width:0}
html[lang="en"] .f-case-feature>.f-member-actions{grid-column:1/-1;min-width:0;max-width:100%;flex-direction:row}
html[lang="en"] .f-case-feature>.f-member-actions button{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
html[lang="en"] .conj-verbs button,html[lang="en"] .conj-verbs button strong,html[lang="en"] .conj-result-heading h2,html[lang="en"] .conj-form small{ text-align:start }
html[lang="en"] .conj-table .conj-person{right:auto;left:0;box-shadow:3px 0 8px #19345a0c}
html[lang="en"] .conj-table td{text-align:start}
html[lang="en"] [lang="tr"]{direction:ltr;unicode-bidi:isolate}
html[lang="en"] .connectors-hero-copy>p{line-height:1.75}
html[lang="en"] .connectors-study-note{border-right:0;border-inline-start:3px solid #e8be51}
html[lang="en"] .site-chrome-tagline{direction:ltr}
html[lang="en"] .member-account,html[lang="en"] .member-account-button,html[lang="en"] .member-account-toggle{font-family:inherit}
html[lang="en"] body:has(.header #member-entry) .learner-dock-button{display:none}
.language-switcher{display:inline-flex;align-items:center;gap:2px;flex:none;padding:2px;border:1px solid #e6c66e;border-radius:999px;background:#fff7df;direction:ltr}
.language-switcher a{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:6px 11px;border-radius:999px;color:#705018;text-decoration:none;font:500 12px/1.2 system-ui,sans-serif;white-space:nowrap}
.language-switcher a[aria-current]{background:linear-gradient(135deg,#f7d578,#eab643);color:#36270c;box-shadow:0 1px 4px #a9772430}
.language-switcher a:hover{background:#fbe8b3;color:#49330b}
.language-switcher a[aria-current]:hover{background:linear-gradient(135deg,#f5cf67,#dfaa32)}
.language-switcher a:focus-visible{outline:3px solid #d7aa35;outline-offset:2px}
@media(max-width:760px){
 .language-switcher a{min-height:44px;padding:7px 8px;font-size:11px}.language-switcher{max-width:100%}
 html[lang="en"] .connectors-hero h1{font-size:28px}
 html body .header.site-chrome .site-chrome-region[data-region="leading"]:has(.language-switcher){flex-direction:column;align-items:flex-start!important;gap:2px}
 html body .header.site-chrome:has(.language-switcher) .site-chrome-logo .brand-mark-img{height:34px!important;max-width:150px!important}
}
@media(max-width:350px){html[lang=en] .cause-arrow{transform:rotate(90deg)}}
html[lang=en] #opp-topics,html[lang=en] .opp-page-numbers{direction:ltr}
html[lang=en] .opposites-page{background:#f3f6fc}
html[lang=en] #opposites{width:100%;max-width:none;padding-inline:clamp(14px,2.4vw,48px)}
html[lang=en] .opp-heading h1{font-size:clamp(26px,3vw,36px)}
html[lang=en] .opp-side h2{font-size:clamp(17px,1.5vw,21px)}
html[lang=en] .learning-review{direction:ltr}
html[lang=en] .opp-controls .opp-topic-tile input{left:auto;right:14px}
html[lang=en][data-visual-refresh] body #home-landing .home-hero-copy{direction:ltr!important;text-align:start!important}
html[lang=en][data-visual-refresh] body #home-landing .home-hero-copy h1 :is(span,strong){text-align:start!important}
html[lang=en] body #home-landing .home-hero-portal-label{direction:ltr;text-align:start}
html[lang=en] body #home-landing .home-hero h1{font-size:clamp(26px,2.6vw,40px);line-height:1.15}
html[lang=en] body #home-landing .home-hero-copy>p{line-height:1.6;font-size:14px}
html[lang=en] body #home-landing .home-hero-portals,html[lang=en] .home-hero-portal-strip{direction:ltr}
html[lang=en] .home-path-link,html[lang=en] .home-section-action{text-align:start}
html[lang=en] .home-section h2{font-size:clamp(24px,2.6vw,34px);line-height:1.3}

/* Shared bilingual compact header: readable brand and a complete tablet drawer. */
@media(max-width:1180px){
 html body > .header.site-chrome:has(.language-switcher) .site-chrome-region[data-region="leading"]{flex-direction:column;align-items:flex-start!important;gap:4px;min-width:0!important}
 html body > .header.site-chrome:has(.language-switcher) .site-chrome-logo .brand-mark--wide,html body > .header.site-chrome:has(.language-switcher) .site-chrome-logo .brand-mark-img{height:36px!important;width:auto!important;max-width:min(190px,44vw)!important;object-fit:contain}
 html body > .header.site-chrome:has(.language-switcher) .site-chrome-region[data-region="center"]{justify-self:end;min-width:0!important}
 html body > .header.site-chrome:has(.language-switcher) .chrome-drawer-toggle{min-height:44px;font-size:12px;padding:8px 13px}
 html body > .header.site-chrome:has(.language-switcher) .chrome-drawer-control[open] + nav{max-height:min(70vh,620px);overscroll-behavior:contain;scrollbar-width:thin}
 html body > .header.site-chrome:has(.language-switcher) .chrome-drawer-control[open] + nav .nav{display:flex;flex-direction:row;align-items:center;gap:10px;width:100%;min-height:44px;padding:10px 12px;justify-content:flex-start;white-space:normal}
 html body > .header.site-chrome:has(.language-switcher) .chrome-drawer-control[open] + nav .nav-label{white-space:normal;text-align:start}
}

@media(max-width:1180px){
 html body > .header.site-chrome:has(.language-switcher) .chrome-drawer-control[open] + nav > details.chrome-sub{width:100%;align-self:stretch}
 html body > .header.site-chrome:has(.language-switcher) .chrome-drawer-control[open] + nav > details.chrome-sub > summary.nav{justify-content:flex-start!important}
}

/* English hero copy follows English reading direction at every viewport. */
html[lang="en"] body #page-hero.page-hero .page-hero-copy,html[lang="en"] body #page-hero.page-hero .page-hero-copy :is(h1,h2,p,span){direction:ltr!important;text-align:start!important}
