/* English uses longer labels and shorter reading lines than the Chinese edition. */
html[lang="en"] body { overflow-wrap:break-word; }
html[lang="en"] .template-home .wrap {max-width:1200px;}
html[lang="en"] .template-home h2 {font-size:clamp(30px,3.4vw,48px);line-height:1.18;letter-spacing:-.025em;text-wrap:balance;}
html[lang="en"] .template-home h3 {line-height:1.35;text-wrap:balance;}
html[lang="en"] .template-home p {line-height:1.75;}
html[lang="en"] .template-home .wrap>p:not(.kicker) {max-width:76ch;}
html[lang="en"] .template-home .hero .hero-description {font-size:clamp(20px,2.1vw,28px);line-height:1.4;letter-spacing:0;max-width:30ch;}
html[lang="en"] .template-home .hero .hero-statement {max-width:720px;}
html[lang="en"] .template-home .hero .hero-actions {max-width:540px;}
html[lang="en"] .template-home .hero .hero-actions .button {white-space:normal;line-height:1.4;min-height:54px;}
html[lang="en"] .template-home #mechanism .hsteps {grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:auto;gap:20px;}
html[lang="en"] .template-home #mechanism .hsteps>li>div {padding:28px;}
html[lang="en"] .template-home #mechanism .hsteps p {font-size:16px;line-height:1.65;}
html[lang="en"] .template-home #mechanism .hsteps .chain {font-size:12px;min-height:0;}
html[lang="en"] .feature-item h3 {font-size:20px;line-height:1.4;}
html[lang="en"] .feature-item p {max-width:74ch;font-size:16px;}
html[lang="en"] #papers.papers-separated .papers-project>h3 {font-size:clamp(25px,2.5vw,32px);line-height:1.25;max-width:28ch;}
html[lang="en"] #papers.papers-separated .research-featured strong {font-size:19px;line-height:1.4;}
html[lang="en"] #papers.papers-separated .papers-community li>a>span {overflow-wrap:normal;line-height:1.5;}
html[lang="en"] .detail-hero h1 {font-size:clamp(32px,4vw,48px);line-height:1.2;max-width:24ch;}
html[lang="en"] .detail-hero>p:not(.kicker) {font-size:18px;line-height:1.7;max-width:72ch;}
html[lang="en"] .detail-body p,html[lang="en"] .detail-body li {line-height:1.75;}
html[lang="en"] .roadmap-page {max-width:960px;}
html[lang="en"] .roadmap-page li {max-width:76ch;line-height:1.7;margin-bottom:14px;}
html[lang="en"] .roadmap-page h2 {font-size:30px;line-height:1.25;}
html[lang="en"] .roadmap-switch {flex-wrap:wrap;}
html[lang="en"] .entry-intro h2 {font-size:28px;line-height:1.25;}
html[lang="en"] .entry-steps p {line-height:1.7;}
html[lang="en"] .entry-primary {white-space:normal;line-height:1.4;}
html[lang="en"] .site-footer {gap:32px;}
html[lang="en"] .site-footer .footer-identity p {max-width:25ch;line-height:1.6;}
html[lang="en"] .site-footer .footer-group a {white-space:normal;}
@media(max-width:1180px){
 html[lang="en"] body .site-header {display:flex;justify-content:space-between;}
 html[lang="en"] body .site-header .main-nav {position:fixed;inset:76px 0 auto;display:none;flex-direction:column;align-items:stretch;gap:0;padding:16px 28px;background:#080d15;max-height:calc(100dvh - 76px);overflow-y:auto;box-sizing:border-box;}
 html[lang="en"] body .site-header .main-nav.is-open {display:flex;}
 html[lang="en"] body .site-header .main-nav>a,html[lang="en"] body .site-header .main-nav>button {padding:12px 0;text-align:left;font-size:15px;}
 html[lang="en"] body .nav-toggle {display:block;}
}
@media(min-width:1181px){html[lang="en"] body .site-header .main-nav {gap:16px;}html[lang="en"] body .site-header .main-nav>a {font-size:13px;}}
@media(max-width:760px){
 html[lang="en"] .template-home #mechanism .hsteps {grid-template-columns:1fr;}
 html[lang="en"] .template-home #mechanism .hsteps>li>div {padding:22px;}
 html[lang="en"] .template-home .hero .hero-actions {max-width:100%;}
 html[lang="en"] .template-home h2 {font-size:32px;}
 html[lang="en"] .feature-item h3 {font-size:18px;}
 html[lang="en"] .detail-hero h1 {font-size:34px;}
 html[lang="en"] .detail-hero>p:not(.kicker) {font-size:16px;}
 html[lang="en"] .roadmap-page h2 {font-size:26px;}
}

html[lang="en"] .template-home .hero .hero-statement.hero-five{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 22px;max-width:540px;}
html[lang="en"] .template-home .hero .hero-statement.hero-five>span{margin:0;font-size:14px;line-height:1.5;white-space:normal;}
html[lang="en"] .roadmap-phase li{font-size:16px;line-height:1.75;}
html[lang="en"] .roadmap-page .slp-target strong{display:block;margin-bottom:8px;}
html[lang="en"] .slp-metrics strong{display:block;margin-bottom:6px;}
html[lang="en"] .research-index-page .experiment-facts>div{grid-template-columns:120px minmax(0,1fr);}
@media(max-width:760px){html[lang="en"] .research-index-page .experiment-facts>div{grid-template-columns:1fr;}}

/* Keep the hero subtitle on one line when it fits; wrap by meaning on phones. */
html[lang="en"] .template-home .hero .hero-description {
 font-size:clamp(16px,1.65vw,22px);line-height:1.5;max-width:none;
 letter-spacing:0;margin-top:16px;text-wrap:initial;
}
html[lang="en"] .template-home .hero .hero-description span {display:inline-block;white-space:nowrap;}
@media(max-width:560px){
 html[lang="en"] .template-home .hero .hero-description {font-size:18px;line-height:1.5;}
 html[lang="en"] .template-home .hero .hero-description span {display:block;}
}

/* The English hero subtitle always uses two deliberate lines. */
html[lang="en"] .template-home .hero .hero-description span {display:block;white-space:nowrap;}

/* Give the two-line positioning statement a clear hierarchy beneath the brand. */
html[lang="en"] .template-home .hero .hero-description {
 font-size:clamp(23px,2.35vw,32px);font-weight:500;line-height:1.28;
 letter-spacing:-.02em;margin-top:22px;color:#d4e3ec;
}
html[lang="en"] .template-home .hero .hero-description span+span {margin-top:3px;color:#aebfce;}
html[lang="en"] .template-home .hero .hero-statement.hero-five {margin-top:28px;gap:10px 22px;}
html[lang="en"] .template-home .hero .hero-actions {margin-top:26px;}
@media(max-width:560px){
 html[lang="en"] .template-home .hero .hero-description {font-size:clamp(19px,5vw,25px);margin-top:18px;line-height:1.35;}
}

/* Match feature typography to the hero statement and action grid. */
html[lang="en"] .template-home .hero .hero-statement.hero-five {
 width:100%;max-width:540px;grid-template-columns:repeat(2,minmax(0,1fr));
 gap:14px 22px;margin-top:30px;
}
html[lang="en"] .template-home .hero .hero-statement.hero-five>span:nth-child(n) {
 font-family:inherit;font-size:clamp(15px,1.3vw,18px);font-weight:500;
 line-height:1.5;letter-spacing:0;color:#b9ccd8;gap:9px;align-items:baseline;
}
html[lang="en"] .template-home .hero .hero-statement.hero-five>span:nth-child(n)::before {
 color:#65c6d5;opacity:.8;font-size:.75em;flex-shrink:0;
}
@media(max-width:560px){
 html[lang="en"] .template-home .hero .hero-statement.hero-five {gap:12px 16px;margin-top:24px;}
 html[lang="en"] .template-home .hero .hero-statement.hero-five>span:nth-child(n) {font-size:14px;line-height:1.45;}
}

/* Keep the primary sections visible on laptop and desktop screens. */
@media(min-width:1181px){
 html[lang="en"] body .site-header{padding-inline:28px;gap:20px;}
 html[lang="en"] body .site-header .main-nav{display:flex;gap:14px;}
 html[lang="en"] body .site-header .nav-toggle{display:none;}
}
