/* Design overrides stay separate from the vendored Academic Pages theme. */
:root{--global-bg-color:#f8faf9;--global-text-color:#263d38;--global-text-color-light:#62756e;--global-link-color:#17644f;--global-link-color-hover:#0d4636;--global-border-color:#dce5e0;--global-footer-bg-color:#f0f4f1;--ink:#203c33;--muted:#60736a;--accent:#17644f;--line:#dce5e0}
html{font-size:16px;background:#f8faf9;scroll-behavior:smooth}
body{margin:0;padding:0;color:var(--ink);background:#f8faf9;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:16px;line-height:1.8}
a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}a:focus-visible,button:focus-visible{outline:3px solid #347b61;outline-offset:5px;border-radius:2px}
.skip-link{position:fixed;top:-90px;left:16px;z-index:100;background:white;padding:10px 20px}.skip-link:focus{top:12px}
.masthead{border-bottom:1px solid var(--line);background:#f8faf9;position:relative;z-index:5}.masthead__inner-wrap{display:flex;align-items:center;justify-content:space-between;max-width:1180px;margin:auto;padding:23px 40px;gap:24px}
.site-wordmark{font-size:23px;font-weight:720;letter-spacing:-.8px;color:var(--ink)}.wordmark-dot{color:var(--accent)}.personal-nav{display:flex;align-items:center;gap:30px;font-size:14px;font-weight:550}.personal-nav a{color:var(--muted);padding:5px 0;white-space:nowrap}.personal-nav a[aria-current=page]{color:var(--accent);box-shadow:0 2px var(--accent)}
#main{max-width:1180px;margin:0 auto;padding:64px 40px 70px;display:grid;grid-template-columns:220px minmax(0,1fr);gap:74px;min-height:calc(100vh - 205px)}#main::after{display:none}.sidebar{float:none;position:relative;opacity:1;width:auto;margin:0;padding:0;transform:none}.sidebar>*{margin:0}.sidebar p,.sidebar li{font-size:14px;line-height:1.65}
.profile{position:sticky;top:32px}.profile-monogram{display:block;width:148px;height:148px;margin-bottom:25px;border-radius:34px}.profile-name{font-family:Georgia,"Times New Roman",serif;font-size:29px;font-weight:500;line-height:1.2;letter-spacing:-.5px;margin:0 0 4px}.profile-chinese{color:var(--muted);margin:0 0 22px!important;letter-spacing:3px}.profile-role{font-weight:600;margin-bottom:9px!important}.profile-institution{margin-bottom:4px!important}.profile-location{color:var(--muted);margin-bottom:24px!important}.profile-rule{height:1px;background:var(--line);max-width:180px;margin:22px 0}.profile-links{list-style:none;margin:0;padding:0;max-width:184px}.profile-links li{margin:0 0 12px}.profile-links a{display:grid;grid-template-columns:24px 1fr 14px;align-items:center;color:var(--muted)}.profile-links a:hover{color:var(--accent)}.profile-icon{font-size:15px;font-weight:700}
.page{float:none;width:auto;min-width:0;margin:0;padding:0}.page__inner-wrap{float:none;width:100%}.page__title{font-family:Georgia,"Times New Roman",serif;font-size:54px;line-height:1.12;font-weight:400;letter-spacing:-1.8px;margin:0 0 28px;padding:0;color:var(--ink)}.page__title p{margin:0}.page__content{font-size:16px;line-height:1.8}.page__content p{margin:0 0 22px}.page__content a:not(.btn){text-decoration:none}.page__content a:hover{text-decoration:underline}.page__content h2{font-size:23px;font-weight:550;letter-spacing:-.5px;line-height:1.4;margin:42px 0 22px;padding:0;border:0}.page__content h3{font-size:16px;margin:0 0 6px;line-height:1.5}.page__meta{display:none}
.eyebrow{font-size:10px!important;font-weight:700;letter-spacing:1.8px;color:var(--accent);margin-bottom:20px!important}.intro{font-size:22px;line-height:1.6;color:#263d38}.chinese-name{font-size:18px;color:var(--muted);white-space:nowrap}.page-lead{font-size:20px;line-height:1.6;color:var(--muted);margin-bottom:34px!important}.action-links{display:flex;flex-wrap:wrap;align-items:center;gap:28px;margin:26px 0 46px;font-size:14px;font-weight:600}.primary-link{display:inline-block;background:var(--accent);color:white!important;padding:11px 19px;border-radius:4px;font-size:14px;font-weight:600}.primary-link span{margin-left:15px}.primary-link:hover{background:#104c3c;text-decoration:none!important}
.interest-list{border-top:1px solid var(--line)}.interest-row{display:grid;grid-template-columns:175px minmax(0,1fr);gap:25px;padding:18px 0;border-bottom:1px solid var(--line)}.interest-row h3{font-weight:600;padding-top:2px}.interest-row p{font-size:14px;line-height:1.65;color:var(--muted);margin:0}.section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:20px;margin-top:46px}.section-heading h2{margin:0 0 19px}.section-heading>a{font-size:12px;white-space:nowrap}
.publication-list{list-style:none!important;margin:0!important;padding:0!important}.publication-entry{display:grid;grid-template-columns:48px minmax(0,1fr);gap:20px;border-top:1px solid var(--line);padding:24px 0;margin:0!important}.publication-year{font-size:13px;color:var(--muted);padding-top:2px;font-variant-numeric:tabular-nums}.publication-entry h3{font-family:Georgia,"Times New Roman",serif;font-size:20px;font-weight:400;line-height:1.4;margin:0 0 10px}.publication-entry h3 a{color:var(--ink)}.publication-venue{font-size:11px!important;color:var(--accent);font-weight:650;margin:0 0 8px!important}.contribution{display:inline-block;font-weight:400;color:var(--muted);margin-left:14px}.publication-authors{font-size:12px!important;line-height:1.65;margin:0 0 9px!important;color:var(--muted)}.publication-authors strong{color:var(--ink);font-weight:650}.paper-link{font-size:12px;font-weight:600}
.closing-note{margin-top:32px;padding:28px 30px;background:#eaf1ed;border-left:2px solid #80a992}.closing-note .eyebrow{margin-bottom:9px!important}.closing-note p:not(.eyebrow){font-family:Georgia,"Times New Roman",serif;font-size:23px;line-height:1.5;margin-bottom:14px}.closing-note a{font-size:13px;font-weight:600}.software-feature{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:29px 0;margin:20px 0 35px}.software-feature h2{font-family:Georgia,"Times New Roman",serif;font-size:38px;margin:0 0 6px}.software-subtitle{font-size:20px;color:var(--muted)}.software-feature ul{font-size:14px;line-height:1.8;padding-left:20px;margin:12px 0 26px}.skills-list{display:grid;grid-template-columns:155px minmax(0,1fr);gap:14px 24px;font-size:14px;margin:0 0 30px}.skills-list dt{font-weight:600}.skills-list dd{margin:0;color:var(--muted)}
.education-entry{border-top:1px solid var(--line);padding:20px 0 6px}.education-date{font-size:12px;color:var(--muted);margin-bottom:7px!important}.education-entry h3{font-size:18px}.education-entry p:last-child{font-size:14px}.print-button{background:transparent;border:1px solid #96aca0;border-radius:4px;color:var(--accent);padding:9px 14px;cursor:pointer;font:inherit;font-size:13px}.small-note{font-size:12px!important;color:var(--muted);margin-top:24px!important}.contact-list>div{padding:25px 0;border-top:1px solid var(--line)}.contact-list h2{font-size:12px!important;letter-spacing:1px;text-transform:uppercase;color:var(--muted);margin:0 0 10px!important}.contact-list a{font-family:Georgia,"Times New Roman",serif;font-size:25px;overflow-wrap:anywhere}.contact-list{margin-bottom:30px}
.page__footer{position:relative;float:none;clear:both;margin:0;border-top:1px solid var(--line);background:#f0f4f1;color:var(--muted)}.page__footer footer{max-width:1180px;padding:23px 40px;margin:0 auto}.personal-footer{display:flex;justify-content:space-between;gap:20px;font-size:11px;line-height:1.7}.personal-footer a{color:var(--muted)}
/* Neutralize the upstream sticky offset so the sidebar aligns with the page. */
.sidebar.sticky{top:0}.profile-field{display:block}.page__content .intro{font-size:22px;line-height:1.6}
/* Navigation wraps naturally, keeping all destinations accessible without JS. */
@media(min-width:1440px){#main{padding-top:78px}.page__title{font-size:60px}}
@media(max-width:950px){#main{grid-template-columns:190px minmax(0,1fr);gap:42px;padding:45px 28px 55px}.masthead__inner-wrap{padding:20px 28px}.personal-nav{gap:20px}.page__title{font-size:44px}.interest-row{grid-template-columns:145px minmax(0,1fr);gap:18px}.profile-monogram{width:125px;height:125px}}
@media(max-width:700px){.masthead__inner-wrap{display:block;padding:17px 22px 12px}.site-wordmark{font-size:22px}.personal-nav{gap:23px;flex-wrap:wrap;font-size:12px;margin-top:12px}.personal-nav a{padding:4px 0}#main{display:block;padding:30px 22px 45px}.sidebar{position:static;margin-bottom:34px}.profile{display:grid;grid-template-columns:82px minmax(0,1fr);gap:0 20px;position:static}.profile-monogram{grid-row:1/5;width:82px;height:82px;border-radius:20px;margin:0}.profile-name{font-size:27px;margin:0}.profile-chinese{font-size:12px!important;margin:2px 0 4px!important}.profile-role{font-size:12px!important;line-height:1.5!important;margin:0!important}.profile-role br{display:none}.profile-institution,.profile-location,.profile-rule{display:none}.profile-links{grid-column:1/-1;display:flex;max-width:none;gap:24px;margin-top:17px!important}.profile-links li{margin:0;font-size:12px!important}.profile-links a{display:flex;gap:7px}.profile-links a>span:last-child{display:none}.profile-icon{font-size:12px}.page__title{font-size:42px;margin-bottom:23px}.intro{font-size:19px}.page__content{font-size:15px}.eyebrow{font-size:9px!important;letter-spacing:1.4px}.action-links{gap:22px;margin:24px 0 32px}.interest-row{grid-template-columns:1fr;gap:4px;padding:15px 0}.interest-row h3{font-size:15px}.interest-row p{font-size:13px}.publication-entry{grid-template-columns:35px minmax(0,1fr);gap:13px}.publication-entry h3{font-size:19px}.section-heading{gap:12px}.section-heading h2{font-size:21px}.section-heading>a{font-size:11px}.contribution{margin-left:9px;font-size:10px}.closing-note{padding:23px}.closing-note p:not(.eyebrow){font-size:21px}.skills-list{grid-template-columns:1fr;gap:4px}.skills-list dd{margin-bottom:13px}.contact-list a{font-size:21px}.personal-footer{display:block}.personal-footer>span{display:block}.page__footer footer{padding:21px 22px}}
@media(max-width:700px){.profile-role br{display:block}.page__content .intro{font-size:19px}}
/* Print the intentionally public CV without site navigation or sidebar chrome. */
@media print{html,body{font-size:11pt;background:white!important;color:#111!important}.masthead,.sidebar,.page__footer,.print-button,.skip-link{display:none!important}#main{display:block;max-width:none;min-height:0;padding:0;margin:0}.page,.page__inner-wrap{width:100%}.page__title{font-size:25pt;line-height:1.2;margin-bottom:16px}.page__content{font-size:10pt;line-height:1.5}.page__content h2{font-size:14pt;margin-top:22px;break-after:avoid}.publication-entry,.education-entry{break-inside:avoid;padding:12px 0}.publication-entry h3{font-size:12pt}.publication-authors{font-size:9pt!important}.paper-link{display:none}.skills-list{font-size:10pt;gap:7px 18px}a{color:#111!important}a:after{content:none!important}@page{margin:16mm}}
