/* Change the accent colour and typography here. No build step is required. */
:root {
  --ink: #263438;
  --muted: #5f6c70;
  --accent: #285d68;
  --accent-dark: #123e49;
  --award-accent: #1f5263;
  --reference-accent: var(--muted);
  --line: #dce3e4;
  --paper: #ffffff;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1rem; line-height: 1.7; -webkit-text-size-adjust: 100%; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--accent-dark); text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 1px; }
.skip-link { position: absolute; left: 1rem; top: -6rem; z-index: 10; padding: .6rem 1rem; background: white; border: 1px solid var(--accent); }
.skip-link:focus { top: .5rem; }
.site-header, .page-layout, .site-footer { width: min(1104px, calc(100% - 5rem)); margin-inline: auto; }
.site-header { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-bottom: 1px solid var(--line); }
.site-name { font-family: var(--serif); font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.site-header nav { display: flex; flex-wrap: wrap; column-gap: 2rem; align-items: center; }
.site-header nav a { padding-block: .55rem; text-decoration: none; color: var(--muted); }
.site-header nav a[aria-current="page"] { color: var(--accent); box-shadow: 0 2px 0 var(--accent); }
.site-header nav a:hover { color: var(--accent-dark); }
.file-label { font-size: .75rem; letter-spacing: .03em; margin-left: .16rem; }
.page-layout { display: grid; grid-template-columns: 235px minmax(0, 1fr); column-gap: 72px; padding-block: 52px 64px; align-items: start; }
.profile { position: sticky; top: 2.2rem; }
.portrait { display: block; width: 235px; height: auto; aspect-ratio: 1 / 1; max-width: 100%; object-fit: cover; border-radius: 2px; }
.position { font-size: 1rem; font-weight: 600; line-height: 1.55; margin: 1.5rem 0 .45rem; }
.affiliation { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.contact-links { display: flex; flex-direction: column; align-items: flex-start; gap: .42rem; border-top: 1px solid var(--line); margin-top: 1.4rem; padding-top: 1.25rem; }
.contact-links a { font-size: .9375rem; text-decoration: none; overflow-wrap: anywhere; }
.contact-links a:hover { text-decoration: underline; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-family: var(--serif); font-weight: 400; font-size: 2.7rem; letter-spacing: -.025em; line-height: 1.2; margin-bottom: 1.65rem; }
.chinese-name { display: inline-block; margin-left: .65rem; font-family: "Songti SC", "SimSun", serif; font-size: 1.23rem; font-weight: 400; letter-spacing: .1em; color: var(--muted); vertical-align: middle; }
.bio { font-size: 1.0625rem; line-height: 1.85; }
.bio p { margin-bottom: 1.2rem; }
.home-content .bio p { text-align: justify; text-wrap: pretty; }
h2 { font-family: var(--serif); font-size: 1.55rem; font-weight: 400; line-height: 1.35; margin-bottom: 1rem; }
.home-section { margin-top: 2.25rem; }
.home-section p { margin-bottom: .55rem; }
.text-link { display: inline-block; margin-top: .18rem; font-size: 1rem; }
.education-list { margin: 0; }
.education-list > div { margin-top: .85rem; }
.education-list dt { font-weight: 600; }
.education-list dd { margin: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; color: var(--muted); }
.year { flex-shrink: 0; font-variant-numeric: tabular-nums; }
.label { font-weight: 600; }
.service { color: var(--muted); }
.service .label { color: var(--ink); }
.section-nav { display: flex; flex-wrap: wrap; column-gap: 1.4rem; row-gap: .45rem; padding-bottom: 1.4rem; margin-top: -.25rem; border-bottom: 1px solid var(--line); }
.section-nav a { font-size: .9375rem; text-decoration: none; white-space: nowrap; }
.section-nav a:hover { text-decoration: underline; }
.research-section { padding-top: 2.2rem; }
.research-section + .research-section { border-top: 1px solid var(--line); margin-top: 2.4rem; }
.research-section > h2 { margin-bottom: 1.7rem; }
.paper { margin-bottom: 2rem; }
.paper:last-child { margin-bottom: 0; }
.paper h3 { font-family: var(--serif); font-size: 1.2rem; font-weight: 400; line-height: 1.5; margin-bottom: .45rem; }
.paper h3 a { text-decoration: none; }
.paper h3 a:hover { text-decoration: underline; }
.paper p { margin-bottom: .35rem; line-height: 1.65; }
.authors { color: var(--muted); }
.paper-status { color: #000; }
.paper-status em { font-weight: 400; }
.paper-note { color: var(--award-accent); }
.paper-note, .paper-link { font-size: .9375rem; }
.paper-link { display: inline-block; margin-top: .2rem; }
.compact { margin-bottom: 1.5rem; }
.publication { margin-bottom: 1.7rem; }
.journal { color: var(--ink); }
.language-note { color: var(--muted); }
.research-end { margin: 2.6rem 0 0; padding-top: 1.4rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9375rem; }
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; padding-block: 1.25rem 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.site-footer a { text-decoration: none; }
@media (min-width: 1440px) { .site-header, .page-layout, .site-footer { width: 1144px; } .page-layout { column-gap: 82px; } }
@media (max-width: 900px) { .site-header, .page-layout, .site-footer { width: calc(100% - 3rem); } .page-layout { grid-template-columns: 205px minmax(0, 1fr); column-gap: 40px; } .portrait { width: 205px; height: auto; } h1 { font-size: 2.3rem; } .chinese-name { margin-left: .4rem; font-size: 1.1rem; } }
@media (max-width: 680px) {
  .site-header, .page-layout, .site-footer { width: calc(100% - 2.5rem); }
  .site-header { min-height: 86px; gap: 1rem; flex-wrap: wrap; padding-block: 1rem; }
  .site-name { font-size: 1.15rem; }
  .site-header nav { column-gap: 1.05rem; }
  .site-header nav a { font-size: .9375rem; }
  .page-layout { display: flex; flex-direction: column; gap: 2rem; padding-block: 28px 40px; }
  .profile { position: static; width: 100%; display: grid; grid-template-columns: 105px minmax(0, 1fr); column-gap: 1.25rem; align-items: start; }
  .portrait { width: 105px; height: auto; grid-row: 1 / 3; }
  .position { margin: 0 0 .35rem; font-size: .9375rem; }
  .affiliation { font-size: .9375rem; line-height: 1.5; }
  .contact-links { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; column-gap: 1.2rem; row-gap: .3rem; padding-top: .85rem; margin-top: 1rem; }
  .contact-links a { font-size: .875rem; }
  main { width: 100%; }
  h1 { font-size: 2.25rem; margin-bottom: 1.3rem; }
  .chinese-name { font-size: 1.05rem; }
  .bio { font-size: 1rem; line-height: 1.8; }
  .home-section { margin-top: 1.85rem; }
  .section-nav { column-gap: 1rem; }
  .research-section { padding-top: 1.8rem; }
  .paper h3 { font-size: 1.18rem; }
}
@media (max-width: 370px) { .site-header { gap: .25rem; } .site-name { flex-basis: 100%; } .profile { grid-template-columns: 86px minmax(0, 1fr); gap: .8rem; } .portrait { width: 86px; } .chinese-name { margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  body { color: #000; font-size: 10pt; line-height: 1.5; }
  .site-header, .profile, .section-nav, .site-footer, .skip-link { display: none; }
  .page-layout { display: block; width: 100%; padding: 0; }
  a { color: #000; text-decoration: none; }
  h1 { font-size: 24pt; } h2 { font-size: 16pt; } .paper h3 { font-size: 12pt; }
  .paper { break-inside: avoid; } h2, h3 { break-after: avoid; }
}

/* Academic profiles, paper details, funding, and the dedicated CV page. */
.contact-links { flex-direction: row; align-items: center; gap: .6rem; }
.contact-links a { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 4px; }
.contact-links a:hover { background: #eef4f4; }
.contact-links svg { width: 25px; height: 25px; }
.presentations { margin-top: .7rem; font-size: .9375rem; color: var(--muted); }
.presentations summary { cursor: pointer; color: var(--accent); width: fit-content; padding-block: .25rem; }
.presentations summary:hover { text-decoration: underline; text-underline-offset: .2em; }
.presentations summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.presentations[open] { padding-bottom: .3rem; }
.presentations h4 { margin: .8rem 0 .3rem; font-size: .9375rem; color: var(--ink); }
.presentations ul { margin: 0; padding-left: 1.25rem; }
.presentations li { padding-left: .15rem; margin-bottom: .3rem; }
.citation { line-height: 1.8; }
.citation a { text-decoration: none; }
.citation a:hover { text-decoration: underline; }
.funding-subheading { font-size: 1rem; font-weight: 600; margin: 1.5rem 0 1rem; }
.funding-list { list-style: none; margin: 0; padding: 0; }
.funding-list li { margin-bottom: 1.1rem; }
.funding-title, .funding-meta { display: block; }
.funding-meta { color: var(--muted); font-size: .9375rem; margin-top: .15rem; }
.cv-actions { display: flex; align-items: center; gap: 1.4rem; margin-bottom: 1.7rem; }
.download-link { display: inline-block; padding: .55rem 1rem; border: 1px solid var(--accent); border-radius: 3px; text-decoration: none; }
.download-link:hover { background: #eef4f4; text-decoration: none; }
.cv-pages { display: grid; gap: 1.5rem; }
.cv-pages a { display: block; }
.cv-pages img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
@media (max-width: 680px) { .contact-links { gap: .6rem; } }
@media print { .cv-actions { display: none; } .presentations > * { display: block !important; } }

/* Compact homepage conference updates. */
.home-cv-link { margin-top: 0; }
.upcoming { margin-top: 1.7rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.upcoming-heading { display: flex; align-items: baseline; gap: .8rem; margin-bottom: .5rem; }
.upcoming h2 { font-size: 1.25rem; margin: 0; }
.upcoming-heading > span { font-size: .875rem; color: var(--muted); }
.upcoming ul { padding-left: 1.15rem; margin: 0; font-size: .9375rem; line-height: 1.6; }
.upcoming li { margin: .2rem 0; padding-left: .1rem; }
.upcoming li span { color: var(--muted); }

/* Discreet research notes and the standalone funding page. */
.authorship-note { margin: 1rem 0 0; color: var(--muted); font-size: .875rem; line-height: 1.65; }
.funding-content > .funding-subheading:first-child { margin-top: 0; }
.site-header nav a { white-space: nowrap; }

.research-end strong { color: var(--ink); font-style: normal; }

/* Official sources retain the surrounding typography; coverage stays secondary. */
.funding-title a, .funding-title a:visited, .upcoming li > a, .upcoming li > a:visited { color: inherit; font: inherit; text-decoration: none; }
.funding-title a:hover, .upcoming li > a:hover { text-decoration: underline; }
.paper .coverage-links { margin: .3rem 0 .35rem; padding-left: 1.15rem; color: var(--reference-accent); font-size: .875rem; line-height: 1.65; }
.coverage-links li + li { margin-top: .15rem; }
.coverage-links a, .coverage-links a:visited { color: inherit; text-decoration: none; }
.coverage-links a:hover { text-decoration: underline; }

/* Biographies expand below a single row of quiet text controls. */
.bio-tools { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 1.5rem; row-gap: .45rem; margin-top: .2rem; }
.bio-tools > a, .bio-toggle { color: var(--accent); font: inherit; font-size: 1rem; text-decoration: none; }
.bio-tools > a:hover, .bio-toggle:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: .2em; }
.bio-toggle { appearance: none; border: 0; background: transparent; padding: 0; cursor: pointer; line-height: inherit; }
.bio-toggle::before { content: "▸"; display: inline-block; width: 1em; text-align: left; }
.bio-toggle[aria-expanded="true"]::before { content: "▾"; }
.bio-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.bio-panel { margin-top: 1.25rem; }
.bio-panel h2 { font-size: 1.15rem; margin-bottom: .6rem; }
.bio-panel p:last-child { margin-bottom: 0; }
.chinese-bio { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif; line-height: 1.95; word-break: normal; overflow-wrap: break-word; }
[hidden] { display: none !important; }
.cv-actions { flex-wrap: wrap; row-gap: .7rem; }
.cv-language { color: var(--muted); font-size: .9375rem; margin: -.8rem 0 1.5rem; }
.cv-language a { white-space: nowrap; }
.cv-language [aria-current="page"] { color: var(--ink); font-weight: 600; text-decoration: none; }
.cv-page { position: relative; }
.cv-page > .cv-hotspot { position: absolute; z-index: 1; color: inherit; font: inherit; text-decoration: none; }
.cv-page > .cv-hotspot:hover { color: inherit; text-decoration: none; }
.cv-page > .cv-hotspot:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
@media print { .bio-tools { display: none; } }
