/* Language chrome and English text fitting; approved Chinese content stays native. */
.jy-header-inner { gap:24px; flex-wrap:nowrap!important; }
.jy-header .wp-block-navigation { margin-left:auto; }
.jy-header .jy-language-switcher { width:auto; max-width:none; flex:0 0 auto; font-size:13px; font-weight:600; white-space:nowrap; }
.jy-language-switcher ul { margin:0; padding:0; list-style:none; gap:0!important; align-items:center; }
.jy-language-switcher li { margin:0; }
.jy-language-switcher a { display:inline-flex; align-items:center; min-height:34px; padding:3px 9px; border:1px solid #52657e; line-height:1.2; }
.jy-language-switcher li:first-child a { border-radius:5px 0 0 5px; }
.jy-language-switcher li:last-child a { border-radius:0 5px 5px 0; border-left:0; }
.jy-language-switcher .current-lang a { background:#213a55; color:#00f0f5; }
.jy-language-switcher a:hover { background:#213a55; color:#fff; }
.jy-english-brand { margin:0; color:#fff; font-size:25px; line-height:1.15; font-weight:750; letter-spacing:-.035em; white-space:nowrap; }
html[lang^="en"] .jy-header .wp-block-navigation { font-size:16px; }
html[lang^="en"] .jy-header .wp-block-navigation__container { gap:clamp(20px,2.6vw,38px); }
html[lang^="en"] .jy-hero h1.jy-hero-title { font-size:clamp(44px,4.7vw,70px); max-width:760px; line-height:1.09; letter-spacing:-.035em; overflow-wrap:normal; }
html[lang^="en"] .jy-hero-description { max-width:700px; font-size:19px; }
html[lang^="en"] .jy-sub-title { font-size:clamp(37px,4.2vw,60px); line-height:1.14; overflow-wrap:normal; }
html[lang^="en"] .jy-sub-item h2 { font-size:25px; line-height:1.3; }
html[lang^="en"] .jy-footer-brand { font-size:28px; letter-spacing:-.025em; }
html[lang^="en"] .wp-block-column { min-width:0; }
html[lang^="en"] .jy-scene-number { flex:0 0 auto; min-width:2ch; white-space:nowrap; }
html[lang^="en"] .jy-sub-section p { line-height:1.8; }
@media(min-width:901px) and (max-width:1200px) {
 .jy-header .wp-block-navigation__container { gap:20px; }
 .jy-header .wp-block-navigation { font-size:16px; }
 .jy-brand .wp-block-site-title { font-size:26px; }
 html[lang^="en"] .jy-english-brand { font-size:22px; }
 html[lang^="en"] .jy-header .wp-block-navigation__container { gap:18px; }
 .jy-header .wp-block-navigation__container > li:last-child > a { padding-inline:17px; }
 .jy-header-inner { gap:18px; }
}
@media(max-width:900px) {
 .jy-header-inner { gap:18px; }
 .jy-header .wp-block-navigation { order:3; flex:0 0 auto; margin-left:0; }
 .jy-header .jy-brand { flex:1 1 auto; min-width:0; }
 .jy-language-switcher { order:2; margin-left:auto; }
 .jy-header .wp-block-navigation.is-responsive { order:3; }
 .jy-english-brand { font-size:24px; white-space:normal; max-width:250px; }
 /* WP 7.1 inherits desktop right justification and removes mobile link padding. */
 .jy-header .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open {
  --navigation-layout-justification-setting:flex-start;
 }
 .jy-header .wp-block-navigation .is-menu-open .wp-block-navigation__container {
  --navigation-layout-justification-setting:flex-start;
  width:100%;
  align-items:flex-start;
 }
 .jy-header .wp-block-navigation .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:last-child > .wp-block-navigation-item__content {
  display:inline-flex;
  padding:10px 23px;
  margin-top:3px;
 }
}
@media(max-width:600px) {
 .jy-header-inner { gap:13px; min-height:69px; }
 .jy-language-switcher { font-size:11px; }
 .jy-language-switcher a { min-height:32px; padding-inline:7px; }
 .jy-english-brand { font-size:21px; max-width:160px; }
 .jy-brand .wp-block-site-title { font-size:25px; }
 html[lang^="en"] .jy-hero h1.jy-hero-title { font-size:clamp(35px,9.8vw,52px); }
 html[lang^="en"] .jy-hero-description { font-size:17px; line-height:1.65; }
 html[lang^="en"] .jy-sub-title { font-size:36px; }
 html[lang^="en"] .jy-sub-item h2 { font-size:24px; }
}
