/* Chinese type mapping from the Portfolio-2026 local text styles, 2026-10-15. */
@font-face{font-family:'Source Han Sans SC';src:url('assets/SourceHanSansSC-Bold.woff2') format('woff2');font-weight:700;font-display:swap}
@font-face{font-family:'Source Han Serif SC';src:url('assets/SourceHanSerifSC-Regular.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'Source Han Serif SC';src:url('assets/SourceHanSerifSC-Medium.woff2') format('woff2');font-weight:500;font-display:swap}
html[lang=zh] [data-i18n-active][data-i18n-font=space]{font-family:'Source Han Sans SC',sans-serif;letter-spacing:var(--zh-tracking,0em);font-synthesis:none}
html[lang=zh] [data-i18n-active][data-i18n-font=mono]{font-family:'Source Han Serif SC',serif;font-synthesis:none}
html[lang=zh] [data-i18n-active][data-i18n-font=body]{font-family:'PingFang SC','Source Han Sans SC',sans-serif}
html[lang=zh] [data-i18n-active][data-i18n-leading]{line-height:var(--zh-leading)!important}
html[lang=zh] .case-page main [data-i18n-active]:not(.art-fit *):not(.cover-fit *){white-space:normal!important;word-break:normal;overflow-wrap:break-word}
html[lang=zh] .home .selected-title{white-space:nowrap}
html[lang=zh] .home .bio .copy{line-height:1.6}
html[lang=zh] [data-i18n-case-type]{font-size:max(9px,var(--zh-case-base-font))}
html[lang=zh] .home .about-actions h2,html[lang=zh] .home .home-hero h1{font-family:'Space Grotesk',sans-serif}
html[lang=zh] .resume-toolbar,html[lang=zh] .resume-toolbar h2{font-family:'Source Han Sans SC',sans-serif}
html[lang=zh] .resume-language{font-family:'Source Han Serif SC',serif}
@media(max-width:600px){html[lang=zh] .case-page .case-responsive-table tbody th [data-i18n-active]{font-family:'Source Han Sans SC',sans-serif}}
@media(max-width:960px){html[lang=zh] [data-i18n-case-type]{font-size:max(9px,var(--zh-case-small-font))!important}}
@media(max-width:960px){html[lang=zh] [data-i18n-rich-leading][data-i18n-font=body]{line-height:var(--zh-case-small-leading)!important}}
/* A date range uses the same Chinese mono counterpart even when it is numeric. */
html[lang=zh] .experience-row>span:first-child,html[lang=zh] .experience-heading>span:last-child{font-family:'Source Han Serif SC',serif;font-synthesis:none}
/* These two original English paragraphs form one Chinese figure caption. */
html[lang=zh] .case-semi [data-node-id="2266:9145"],html[lang=zh] .case-semi [data-node-id="2266:9170"]{width:100%}
html[lang=zh] .case-semi [data-node-id="2266:9174"]{width:100%;line-height:2;font-family:'PingFang SC','Source Han Sans SC',sans-serif}
html[lang=zh] .case-semi [data-node-id="2266:9174"]>p{display:inline}
