
/* One compact, keyboard-accessible language control across every EMOLiA page. */
.site-language{display:inline-flex;align-items:center;flex:0 0 auto;gap:2px;padding:3px;border:1px solid rgba(20,37,58,.2);border-radius:999px;background:rgba(255,255,255,.82);color:#14253a;vertical-align:middle}
.site-language button{appearance:none;display:inline-grid;place-items:center;min-width:34px;min-height:36px;margin:0;padding:7px 8px;border:0;border-radius:999px;background:transparent;color:inherit;font:800 11px/1 Inter,Arial,sans-serif;letter-spacing:.03em;cursor:pointer}
.site-language button[aria-pressed="true"]{background:#14253a;color:#fff}
.site-language button:focus-visible{outline:2px solid #6d3cc7;outline-offset:3px}
.legal-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:32px}
.topbar>.site-language{order:2;margin-left:auto}.topbar>#speaking-nav{order:1}.topbar>.gold-button{order:3}.topbar>.mobile-menu-toggle{order:4}
html[lang="fr"] :is(.button,.header-cta,.nav-cta,.sharon-submit,.sharon-rewatch,.peek-unlock-button){white-space:normal;text-align:center;overflow-wrap:break-word}
html[lang="fr"] :is(.header-inner,.topbar){gap:clamp(8px,1.1vw,18px)}
@media(max-width:1100px){
 .site-header .header-inner>.site-language{margin-left:auto}
 .site-header .header-inner>.menu-toggle{order:5;margin-left:0}
 .site-header .header-inner>.header-cta{order:4}
 .topbar>.site-language{order:1}
}
@media(max-width:700px){
 .site-language button{min-width:34px;min-height:38px}
 .header-actions>.site-language{margin-left:0}
 .header-actions{gap:8px}
 html[lang="fr"] .brand :is(.brand-branch,.brand-division){letter-spacing:.07em}
 .topbar>.site-language{margin-left:auto}
}
@media(max-width:480px){
 :is(.header,.site-header,.topbar) .brand img{max-width:108px;height:auto}
 :is(.header,.site-header,.topbar) .brand>:is(span,.brand-division){display:none}
 :is(.header,.site-header) .header-inner{gap:8px}
 :is(.header,.site-header) .brand{min-width:0;margin-right:auto}
 .topbar{gap:8px}
}

@media(max-width:700px){
 html[lang="fr"] .guide h2{font-size:clamp(30px,8.5vw,44px);overflow-wrap:break-word;hyphens:auto}
 html[lang="fr"] .ebook-preview h3{font-size:clamp(25px,7vw,34px);overflow-wrap:break-word;hyphens:auto}
}

@media(max-width:1200px){
 html[data-universe="leaders"] .header .desktop-nav,
 html[data-universe="leaders"] .header .nav-cta{display:none}
 html[data-universe="leaders"] .header .menu-toggle{display:flex;flex-direction:column;gap:6px;border:0;background:transparent;padding:14px;cursor:pointer}
 html[data-universe="leaders"] .header .mobile-nav{top:100%}
 html[data-universe="leaders"] body.menu-open .header .mobile-nav{display:flex;flex-direction:column}
}
@media(max-width:1100px){
 .speaking-club-page .topbar>.gold-button{display:none}
 .speaking-club-page .mobile-menu-toggle{display:block;flex:0 0 42px;margin-left:0}
 .speaking-club-page .topbar #speaking-nav{display:none;position:absolute;top:100%;left:0;right:0;padding:16px 20px 20px;flex-direction:column;align-items:stretch;gap:4px;background:#fbf9f5;border-bottom:1px solid var(--line);box-shadow:0 16px 30px #23112f18}
 .speaking-club-page .topbar.menu-open #speaking-nav{display:flex}
 .speaking-club-page .topbar #speaking-nav a{min-height:48px;padding:12px 2px;font-size:16px}
}

@media(max-width:700px){
 html[lang="fr"] .guide :is(h2,h3) :is(span,em){white-space:normal}
}

@media(max-width:480px){
 html[lang="fr"] .legal-header+h1{font-size:clamp(1.9rem,8vw,2.5rem)}
}


/* Embedded flag artwork stays consistent on desktop and mobile. */
html body :is(.site-language,.home-nav .language) button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:52px;min-height:36px;padding:7px 8px;font-size:11px;line-height:1;transition:background-color 180ms ease,color 180ms ease,box-shadow 180ms ease}
html body .language-flag{display:block;flex:0 0 18px;width:18px;height:12px;max-width:none;border-radius:2px;object-fit:cover;box-shadow:0 0 0 1px #14253a1a}
html body .language-code{display:inline;line-height:1;font:inherit;letter-spacing:.03em}
html body .language-switching{cursor:progress}
html.language-scroll-lock,html.language-scroll-lock body{overflow-anchor:none!important;scroll-behavior:auto!important}
@media(max-width:480px){
 html body :is(.site-language,.home-nav .language) button{gap:4px;min-width:43px;min-height:40px;padding:6px;font-size:10px}
 html body .language-flag{width:16px;height:11px;flex-basis:16px}
 :is(.header,.site-header,.topbar) .brand img{max-width:96px}
 html[data-universe="leaders"] .header .menu-toggle{padding:10px}
}
@media(prefers-reduced-motion:reduce){
 html body :is(.site-language,.home-nav .language) button{transition:none}
}

@media(max-width:1280px){html[data-universe="schools"] .site-header .header-cta{display:none}}

.language-text-out{animation:language-soft-leave 85ms ease-out both}
.language-text-in{animation:language-soft-return 180ms cubic-bezier(.2,.7,.25,1) both}
@keyframes language-soft-leave{
 from{opacity:var(--emolia-language-opacity,1);translate:0 0}
 to{opacity:calc(var(--emolia-language-opacity,1)*.16);translate:0 2px}
}
@keyframes language-soft-return{
 from{opacity:calc(var(--emolia-language-opacity,1)*.16);translate:0 -2px}
 to{opacity:var(--emolia-language-opacity,1);translate:0 0}
}
@media(prefers-reduced-motion:reduce){.language-text-out,.language-text-in{animation:none}}
