/* EN1 locale controls and English text layout. */
.rebirth-bilingual{scroll-padding-top:130px}
.rebirth-bilingual body{padding-top:38px}
#rebirth-language-bar{position:fixed;inset:0 0 auto;z-index:9900;height:38px;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 max(16px,calc((100vw - 1380px)/2));background:#f5f5ef;color:#244c42;border-bottom:1px solid #d8e0d9;font:12px/1.2 Arial,sans-serif}
#rebirth-language-bar .language-choices{display:flex;align-items:center;gap:4px;flex-shrink:0}
#rebirth-language-bar a{padding:7px 12px;display:inline-block;text-decoration:none;color:#244c42;border-radius:5px;font-weight:600}
#rebirth-language-bar a[aria-current=page]{background:#244c42;color:white}
#rebirth-language-bar a:focus-visible{outline:2px solid #ab6c26;outline-offset:1px}
.rebirth-bilingual .global-header,.rebirth-bilingual .site-header{top:38px}
.rebirth-bilingual #mobile-menu{top:112px}
html[lang=en] body{word-break:normal;overflow-wrap:break-word}
html[lang=en] button,html[lang=en] a,html[lang=en] h1,html[lang=en] h2,html[lang=en] h3{word-break:normal}
html[lang=en] .brand-cn{font-family:Georgia,serif;letter-spacing:.04em;font-size:24px}
html[lang=en] .global-header{gap:16px}
html[lang=en] .global-brand{min-width:0}
html[lang=en] .global-nav{gap:14px}
html[lang=en] .global-nav button{font-size:12px}
html[lang=en] .global-actions>a{font-size:12px}
html[lang=en] .global-nav .nav-external{font-size:11px}
html[lang=en] .capability-switcher b{font-size:17px;line-height:1.3}
html[lang=en] .capability-switcher em{line-height:1.5}
html[lang=en] .service-copy b{font-size:clamp(17px,1.6vw,23px);line-height:1.25}
html[lang=en] .service-copy em{line-height:1.5}
html[lang=en] .service-index-item{min-height:150px;height:auto}
html[lang=en] .service-route small{max-width:100px}
html[lang=en] .desktop-nav{gap:15px}
html[lang=en] .desktop-nav a{font-size:12px}
html[lang=en] .nav-actions a{font-size:11px}
html[lang=en] .brand-copy strong{font-family:Georgia,serif;font-size:20px}
html[lang=en] .course-title{font-size:clamp(32px,4.4vw,62px);line-height:1.12}
html[lang=en] h1{line-height:1.15}
html[lang=en] h2{line-height:1.25}
html[lang=en] p{line-height:1.7}
html[lang=en] .oe-day-number{white-space:normal}


.en-chinese-label{display:inline-block;font:10px/1.3 Arial,sans-serif;letter-spacing:0;margin-left:5px;padding:2px 5px;border:1px solid currentColor;border-radius:3px;opacity:.8;white-space:nowrap}
.en-search-result{margin-top:14px;padding:16px;border-radius:10px;background:#fff;color:#244c42;border:1px solid #ccd7cd}
.en-search-result a{display:inline-block;padding:10px;color:#244c42;font-weight:700;text-decoration:underline}
.en-home-qr{width:min(420px,90vw);border:0;border-radius:18px;padding:22px;color:#224a40;background:#fff}
.en-home-qr::backdrop{background:#10261fd1}
.en-home-qr img{width:100%;max-height:65vh;object-fit:contain}
.en-home-qr button{float:right;padding:8px 12px;background:#244c42;color:white;border:0;border-radius:6px}
@media(max-width:1300px){html[lang=en] .global-nav{display:none}html[lang=en] .global-actions .menu-toggle{display:flex}}
@media(max-width:640px){#rebirth-language-bar .language-hint{font-size:10px;max-width:48%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}html[lang=en] .global-brand small{font-size:8px}html[lang=en] .global-brand .brand-cn{font-size:20px}html[lang=en] .global-actions>a{font-size:10px;max-width:85px;text-align:center}html[lang=en] .service-index-item{min-height:180px}html[lang=en] .service-route small{display:none}html[lang=en] .brand-copy strong{font-size:17px}html[lang=en] .nav-classroom{font-size:10px;padding:9px}html[lang=en] h1{font-size:clamp(30px,8vw,42px)!important}html[lang=en] h2{font-size:clamp(23px,6vw,32px)!important}}
@media(prefers-reduced-motion:reduce){html[lang=en]{scroll-behavior:auto}}

/* English navigation uses the existing mobile layout at intermediate widths. */
@media(min-width:1061px) and (max-width:1300px){html[lang=en] #mobile-menu{background:var(--g-ink);color:#fff;opacity:0;pointer-events:none;visibility:hidden;z-index:79;width:min(480px,100%);height:calc(100dvh - 82px);padding:34px 28px 120px;transition:opacity .18s,transform .22s;display:block;position:fixed;top:82px;right:0;overflow-y:auto;transform:translate(100%)}html[lang=en] #mobile-menu.is-open{opacity:1;pointer-events:auto;visibility:visible;transform:translate(0)}html[lang=en] #mobile-menu-head{border-bottom:1px solid #ffffff26;justify-content:space-between;padding-bottom:20px;display:flex}html[lang=en] #mobile-menu-head span{color:#d8b27f;letter-spacing:.14em;font-family:Georgia,serif;font-size:9px}html[lang=en] #mobile-menu-head b{font-size:12px}html[lang=en] #mobile-menu nav button{color:#fff;cursor:pointer;font-family:var(--font-serif);text-align:left;background:0 0;border:0;border-bottom:1px solid #ffffff26;grid-template-columns:40px 1fr auto;align-items:center;width:100%;padding:22px 2px;font-size:20px;display:grid}html[lang=en] #mobile-menu nav button span{color:#d8b27f;font-family:Georgia,serif;font-size:10px}html[lang=en] #mobile-menu nav button b{color:#ffffff59;font-family:inherit;font-size:12px}html[lang=en] #mobile-menu-links{gap:10px;margin-top:25px;display:grid}html[lang=en] #mobile-menu-links a{background:#ffffff0f;justify-content:space-between;align-items:center;padding:14px;font-size:12px;display:flex}html[lang=en] .global-header{grid-template-columns:1fr auto}html[lang=en] body.menu-locked{overflow:hidden}}
html[lang=en] #mobile-menu{top:120px;height:calc(100dvh - 120px)}
@media(max-width:640px){html[lang=en] #mobile-menu{top:106px;height:calc(100dvh - 106px)}}
