:root {
  --ink: #101b29;
  --blue: #0b4f90;
  --blue-deep: #0b315a;
  --muted: #34465a;
  --surface: #eaf0f7;
  --panel-surface: rgba(11, 79, 144, .045);
  --soft-line: #b8c9dc;
  --line: var(--blue);
  --line-width: 1px;
  --content-width: 860px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "PingFang SC", sans-serif;
  --font-prose: Arial, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-heading: Georgia, "Times New Roman", "Songti SC", "Noto Serif SC", serif;
  --type-body: 20px;
  --type-small: 17px;
  --type-page-title: 33px;
  --type-section-title: 29px;
  --type-subsection-title: 25px;
  --type-subtitle: 24px;
  --type-paper-title: 20px;
  --weight-body: 400;
  --weight-heading: 500;
  --weight-paper-title: 500;
  --weight-strong: 600;
  --leading-body: 1.6;
  --leading-heading: 1.3;
  --bs-border-color: var(--line);
  --bs-border-width: var(--line-width);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--font-body); font-size: var(--type-body); font-weight: var(--weight-body); line-height: var(--leading-body); }
:where(#quarto-document-content section.level1) :where(p, li, td, blockquote, .publication-authors, .publication-venue) { font-family: var(--font-prose); }
a { color: var(--blue); text-decoration-line: underline; text-decoration-thickness: var(--line-width); text-underline-offset: 4px; text-decoration-color: var(--line); }
a:hover { color: var(--blue-deep); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: var(--line-width) solid var(--line); outline-offset: 4px; }
.skip-link { position: absolute; left: 16px; top: -100px; background: #fff; padding: 10px; z-index: 100; }
.skip-link:focus { top: 8px; }
#quarto-content { display: block; padding: 0 24px; }
#quarto-content main#quarto-document-content { display: block; max-width: var(--content-width); margin: 0 auto; padding: 0 0 48px !important; }
#title-block-header { display: none; }

/* A shared left edge and a quiet horizontal navigation establish the page. */
.site-header { margin: 0; padding: 42px 0 28px; display: grid; grid-template-columns: 116px minmax(0,1fr); align-items: center; column-gap: 40px; }
.identity { min-width: 0; }
.identity-name { display: block; text-align: center; font-family: var(--font-heading); font-size: 42px; font-weight: var(--weight-heading); letter-spacing: -.65px; color: var(--ink); line-height: 1.25; margin-bottom: 13px; text-decoration: none; }
.identity-name:hover { text-decoration: none; }
.chinese-name { display: inline-block; font-family: var(--font-heading); font-size: 24px; margin-left: 17px; font-weight: var(--weight-body); letter-spacing: 2px; white-space: nowrap; }
.position { text-align: center; color: var(--blue-deep); font-size: var(--type-small); font-weight: var(--weight-heading); line-height: 1.5; margin: 0 0 10px; }
.affiliation { text-align: center; font-size: 16px; line-height: 1.5; margin: 0; text-wrap: balance; }
.profile-location { color: var(--muted); font-size: var(--type-small); line-height: 1.5; margin: 6px 0 0; }
.portrait { display: block; width: 116px; height: auto; aspect-ratio: 4 / 5; flex-shrink: 0; border-radius: 0; }
.header-contact { font-size: var(--type-small); line-height: var(--leading-body); margin: 8px 0 0; }
.header-contact .contact-label, .header-contact .email-address { color: var(--ink); }
.profile-address { grid-column: 2; min-width: 0; margin: 12px 0 0; color: var(--muted); font-size: 15px; font-style: normal; line-height: 1.5; }
.profile-address p { margin: 0; }
.profile-address strong { display: inline-block; margin-bottom: 3px; color: var(--ink); }
html[lang="en"] .profile-address strong { font-family: Arial, sans-serif; }
.site-nav { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 42px; margin: 0; border-bottom: var(--line-width) solid var(--line); padding: 0 0 12px; }
.site-nav-links { display: contents; }
html[lang="zh-CN"] .site-nav-links > a[data-page="news"] { display: none; }
.nav-toggle { display: none; }
.nav-icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-icon-close { display: block; }
.site-nav a { display: inline-block; padding: 7px 0; color: var(--blue-deep); font-size: var(--type-body); font-weight: var(--weight-body); text-decoration-line: none; }
.site-nav a:hover { text-decoration-line: underline; }
.site-nav a[aria-current="page"] { font-weight: var(--weight-strong); text-decoration-line: underline; text-underline-offset: 8px; }

h1, h2, h3 { font-family: var(--font-heading); color: var(--ink); font-weight: var(--weight-heading); line-height: var(--leading-heading); }
html[lang="zh-CN"] #quarto-document-content section :is(h1, h2, h3, .page-subtitle) { font-family: "Microsoft YaHei", "微软雅黑", sans-serif; }
h1 { color: var(--blue-deep); font-size: var(--type-page-title); margin: 28px 0 20px; letter-spacing: -.3px; }
h2 { color: var(--blue-deep); font-size: var(--type-section-title); margin: 36px 0 18px; padding-bottom: 10px; border-bottom: var(--line-width) solid var(--line); }
h3 { font-size: var(--type-subsection-title); margin: 24px 0 12px; }
strong, b, .table th { font-weight: var(--weight-strong); }
#research-group strong a { color: inherit; font-weight: var(--weight-strong); text-decoration-color: currentColor; }
p { margin: 0 0 14px; }
#welcome { --leading-body: 1.5; line-height: var(--leading-body); }
#welcome > p { max-width: none; font-size: 18px; margin-bottom: 10px; text-align: justify; text-align-last: left; hyphens: manual; }
.bio-chinese { max-width: 810px; margin-top: 24px; line-height: 1.85; }
.academic-list ul { margin: 0; padding-left: 1.25em; }
.academic-list li { padding-left: .15em; margin-bottom: 10px; }
.academic-list li:last-child { margin-bottom: 0; }
html[lang="en"] .honors-list li:has(.ch-only-honor) { display: none; }
.activity-meta, .activity-detail { color: var(--muted); font-size: var(--type-small); }
.grant-list .grant-name { font-weight: 500; }
.grant-list .grant-details, .grant-list .activity-meta, .grant-list .activity-detail { color: #515861; font-size: inherit; font-weight: 400; }
.grant-list .grant-details { display: inline-block; max-width: 100%; vertical-align: top; }
.grant-list .grant-date { white-space: nowrap; font-weight: 400; font-variant-numeric: lining-nums; }
.talk-list .activity-meta { color: var(--ink); }
.grant-list ul { padding-left: 1em; }
.grant-list li { margin-bottom: 10px; padding-left: .3em; line-height: 1.45; }
.grant-list li::marker { color: #657383; font-size: .7em; }
@media(max-width:500px) {
  .grant-list .grant-date { white-space: normal; overflow-wrap: anywhere; }
}
.talk-list li { margin-bottom: 18px; }
#courses .activity-meta { color: var(--ink); }
#courses > section { margin: 0 0 22px; padding-left: 16px; border-left: 2px solid var(--blue); }
#courses > section:last-child { margin-bottom: 0; }
#courses > section > h3 { margin: 0 0 6px; color: var(--blue-deep); }
#courses > section > p { margin: 0 0 8px; }
#courses > section > p:last-child { margin-bottom: 0; }
.course-evaluations { color: var(--ink); font-size: var(--type-small); line-height: 1.5; }
.course-evaluations p { margin: 0 0 6px; }
.course-evaluations ul { margin: 0; padding-left: 1.25em; }
.course-evaluations li { margin-bottom: 2px; }
.course-evaluations li:last-child { margin-bottom: 0; }
.course-evaluations ul + p { margin-top: 6px; }
.course-evaluations p:last-child { margin-bottom: 0; }
.service-editorial .service-detail { display: block; margin-top: 3px; color: var(--muted); font-size: var(--type-small); line-height: 1.5; }
.service-journals > p, .service-conferences > p:first-child { margin-bottom: 12px; }
.service-journals ul { column-count: 2; column-gap: 40px; margin: 0; padding-left: 1.25em; }
.service-journals li { break-inside: avoid; padding-left: .15em; margin-bottom: 10px; }
.service-conferences { margin-top: 22px; }
.service-conferences > p:last-child { margin-bottom: 0; }
.intro-links { margin: 22px 0 0; font-size: var(--type-body); }
.intro-links p { margin: 0 0 7px; }
.intro-links p:last-child { margin-bottom: 0; }
.intro-links a { font-weight: var(--weight-heading); }
.contact-label { color: var(--muted); }
.email-address { user-select: all; -webkit-user-select: all; cursor: text; color: var(--ink); overflow-wrap: anywhere; }
.contact-note .email-address, #join-us .email-address { color: var(--blue); font-weight: var(--weight-strong); }

/* Selected publications form one continuous list without year headings. */
.home-publication-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-top: 36px; padding-bottom: 10px; border-bottom: var(--line-width) solid var(--line); }
.home-publication-heading h2 { border: 0; padding: 0; margin: 0; }
.home-publication-heading p { font-size: var(--type-body); margin: 0; white-space: nowrap; }
.home-publication-heading { margin-bottom: 24px; }
.paper { display: grid; grid-template-columns: 132px minmax(0,1fr); gap: 24px; margin: 0 0 20px; align-items: start; }
.paper-text:only-child { grid-column: 2; }
.paper, .publication-list { --leading-body: 1.5; }
.paper-image { padding-top: 5px; }
.paper-image p, .paper-image .quarto-figure, .paper-image figure { margin: 0; width: 100%; }
.paper-image img { display: block; width: 132px; height: auto; aspect-ratio: 16 / 9; object-fit: contain; object-position: center; border: 1px solid #d1d8e0; background: #fff; }
figcaption { display: none; }
.paper-title, .publication-title { color: var(--blue-deep); font-family: var(--font-body); font-size: var(--type-paper-title); font-weight: var(--weight-paper-title); line-height: 1.5; }
.paper-text p { margin: 0 0 7px; line-height: var(--leading-body); font-size: var(--type-body); }
.paper-text p:last-child { display: flex; flex-wrap: wrap; gap: 7px 21px; margin: 10px 0 0; }
.paper-text p:last-child a, .home-publication-heading a { font-weight: var(--weight-heading); }
.paper-note { color: var(--blue-deep); font-size: var(--type-small); margin-left: 8px; white-space: nowrap; }

/* A quiet year archive with a consistent month and text alignment. */
.news-list { margin-top: 34px; }
.news-year { display: grid; grid-template-columns: 80px minmax(0,1fr); gap: 28px; margin-top: 32px; padding-top: 24px; border-top: var(--line-width) solid var(--line); }
.news-year:first-child { margin-top: 0; }
.news-year > h2 { align-self: start; position: sticky; top: 28px; margin: 0; padding: 0; border: 0; color: var(--blue); font-variant-numeric: lining-nums tabular-nums; }
.news-items { min-width: 0; }
.news-items ul { list-style: none; padding: 0; margin: 0; }
.news-month { display: grid; grid-template-columns: 64px minmax(0,1fr); column-gap: 24px; margin-bottom: 30px; }
.news-month:last-child { margin-bottom: 0; }
.news-month-events { min-width: 0; }
.news-items li { margin: 0 0 20px; font-size: var(--type-body); line-height: var(--leading-body); }
.news-items li:last-child { margin-bottom: 0; }
.news-date { display: block; padding-top: 2px; color: var(--blue); font-family: var(--font-heading); font-size: calc(var(--type-body) + 2px); font-weight: var(--weight-heading); line-height: var(--leading-heading); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.news-content { min-width: 0; }
.news-content > p { margin: 0; }
.news-links { margin-top: 8px; font-size: var(--type-small); }
.news-links a { text-decoration: none; }
.news-links a::after { content: "\00a0\2197"; font-size: .85em; }
.news-links a:hover { text-decoration: underline; }
.contact-note { border-left: var(--line-width) solid var(--line); padding: 0 0 0 18px; margin: 32px 0 0; font-size: var(--type-body); }
.contact-note p { margin: 0; }
.publication-nav { display: flex; flex-wrap: wrap; gap: 12px 30px; padding: 26px 0 0; font-size: var(--type-body); }
.publication-nav a { text-decoration: none; }
.publication-nav a:hover, .publication-nav a[aria-current="page"] { text-decoration: underline; }
.publication-nav a[aria-current="page"] { color: var(--blue-deep); font-weight: var(--weight-strong); }
.publication-nav + h1 { margin-top: 28px; }
.topic-index { margin: 20px 0 28px; }
.topic-index ul { list-style-type: square; padding-left: 1.25em; margin: 0; }
.topic-index li { margin-bottom: 8px; padding-left: .15em; }
.topic-index { scroll-margin-top: 24px; }
/* Native disclosures keep topic browsing compact and keyboard accessible. */
.topic-accordion .topic-disclosure { margin: 0 0 8px; padding: 0; border: 0; }
.topic-accordion .topic-disclosure > summary { display: list-item; cursor: pointer; padding: 4px 0; color: var(--blue); font-family: var(--font-body); font-size: var(--type-body); font-weight: var(--weight-body); line-height: var(--leading-body); }
.topic-accordion .topic-disclosure > summary::marker { color: var(--blue); font-size: .8em; }
.topic-accordion .topic-disclosure > summary:hover { color: var(--blue-deep); }
.topic-accordion .topic-disclosure[open] > summary { font-weight: var(--weight-heading); }
.topic-accordion .topic-papers { padding: 12px 0 18px; margin-left: 24px; }
.topic-accordion .topic-disclosure:last-child { margin-bottom: 0; }
#research-interest-topics > .topic-disclosure { margin-bottom: 4px; }
#research-interest-topics > .topic-disclosure:last-child { margin-bottom: 0; }
#research-interest-topics > .topic-disclosure > summary { padding: 3px 0; }
.publication-list p { margin: 0 0 18px; line-height: var(--leading-body); font-size: var(--type-body); }
.publication-list strong { font-weight: var(--weight-strong); }
.publication-entry { margin: 0 0 18px; }
.publication-entry:last-child { margin-bottom: 0; }
.publication-title { margin-bottom: 4px; }
.paper-title strong, .publication-title strong { font-weight: inherit; }
.publication-authors, .publication-venue { font-size: var(--type-body); line-height: var(--leading-body); }
.publication-authors { margin-bottom: 2px; }
.publication-venue { color: var(--muted); }
.publication-venue a { margin-left: 12px; white-space: nowrap; }
/* Each year occupies the margin, leaving one consistent reading column. */
#list-of-publications-by-year > section[id^="year-"] { display: grid; grid-template-columns: 80px minmax(0,1fr); column-gap: 28px; padding-top: 24px; margin-top: 28px; border-top: var(--line-width) solid var(--line); }
#list-of-publications-by-year > section[id^="year-"] > h2 { position: sticky; top: 24px; align-self: start; margin: 0; padding: 0; border: 0; color: var(--blue); font-variant-numeric: lining-nums tabular-nums; }
#list-of-publications-by-year > section[id^="year-"] > .publication-list { min-width: 0; }
.page-subtitle { color: var(--blue-deep); font-family: var(--font-heading); font-size: var(--type-subtitle); }
.source-note { color: var(--muted); font-size: var(--type-small); line-height: 1.6; border-top: var(--line-width) solid var(--line); padding-top: 18px; margin: 34px 0 0; }
.draft-note { font-size: var(--type-small); color: var(--muted); }
.table { font-size: var(--type-body); --bs-table-bg: transparent; --bs-table-border-color: var(--line); border-width: var(--line-width); }
#quarto-content table.table, #quarto-content table.table :is(thead,tbody,tr,th,td) { border-color: var(--line); }
.table > thead { border-bottom-width: var(--line-width); }
.table > :not(caption) > * > * { border-bottom-width: var(--line-width); padding: 10px 8px; }
.table td:first-child { min-width: 140px; }
/* Student lists use whitespace instead of a grid of horizontal rules. */
#quarto-content .group-roster table.table,
#quarto-content .group-roster table.table :is(thead,tbody,tr,th,td) { border: 0; }
#quarto-content .group-roster table.table :is(th,td) { padding: 8px 0; }
#quarto-content .group-roster table.table :is(th,td):first-child { width: 50%; min-width: 0; padding-right: 24px; }
body[data-page="group"] main ul > li { margin-bottom: 12px; }
body[data-page="group"] main h3 { margin-top: 28px; margin-bottom: 16px; }
/* Keep the longer mentoring rosters readable without splitting a student's entry. */
body[data-page="group"] .undergraduate-roster > ul { column-count: 2; column-gap: 36px; }
body[data-page="group"] .undergraduate-roster li { break-inside: avoid; }
body[data-page="group"] .undergraduate-roster li > p { margin-bottom: 0; }
@media (max-width: 700px) {
  body[data-page="group"] .undergraduate-roster > ul { column-count: 1; }
}
.nav-footer { max-width: var(--content-width); width: calc(100% - 48px); padding: 22px 0; margin: 0 auto; border-top: var(--line-width) solid var(--line); color: var(--muted); font-size: var(--type-small); }
.nav-footer-left, .nav-footer-right { flex: 0 1 auto; }
section[id] { scroll-margin-top: 24px; }
.back-to-top { position: fixed; right: 24px; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 20; display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 8px 13px; border: 1px solid var(--blue-deep); border-radius: 6px; background: var(--blue-deep); color: #fff; font: inherit; font-size: var(--type-small); line-height: 1.4; cursor: pointer; box-shadow: 0 2px 8px #103e7320; }
.back-to-top[hidden] { display: none; }
.back-to-top:hover { background: var(--blue); }
.back-to-top:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
@media (max-width:700px) {
  .back-to-top { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); }
}
@media print {
  .back-to-top { display: none; }
}

/* Keep the profile beside the reading column on wide screens. */
@media screen and (min-width:901px) {
  :root { --profile-width: 240px; --profile-gap: 32px; }
  #quarto-content main#quarto-document-content {
    display: grid;
    grid-template-columns: var(--profile-width) minmax(0,1fr);
    grid-template-rows: auto auto 1fr;
    column-gap: var(--profile-gap);
    align-items: start;
    max-width: calc(var(--profile-width) + var(--profile-gap) + var(--content-width));
    padding: 32px 0 40px !important;
  }
  .site-header {
    grid-column: 1;
    grid-row: 1 / -1;
    position: sticky;
    top: 28px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 0;
  }
  .site-header .portrait { width: 200px; max-width: 100%; align-self: center; }
  .site-header .identity { width: 100%; }
  .site-header .identity-name { font-size: 38px; margin-bottom: 14px; }
  .site-header .chinese-name { display: block; margin: 8px 0 0; }
  .site-header .position { margin-bottom: 10px; }
  .site-header .header-contact { margin-top: 12px; }
  .site-header .profile-address { margin-top: 0; }
  #quarto-document-content > .site-nav { grid-column: 2; grid-row: 1; min-width: 0; }
  #quarto-document-content > .publication-nav { grid-column: 2; grid-row: 2; min-width: 0; }
  #quarto-document-content > section { grid-column: 2; grid-row: 3; min-width: 0; }
  footer.footer {
    width: calc(100% - 48px);
    max-width: calc(var(--profile-width) + var(--profile-gap) + var(--content-width));
    margin: 0 auto;
    padding-left: calc(var(--profile-width) + var(--profile-gap));
  }
  .nav-footer { width: 100%; max-width: none; }
}
@media screen and (min-width:901px) and (max-width:1100px) {
  :root { --profile-width: 240px; --profile-gap: 28px; }
  .site-nav { gap: 8px 26px; }
}

@media(max-width:700px) {
  :root { --type-body: 19px; --type-paper-title: 19px; }
  .service-journals ul { column-count: 1; }
  .site-header { padding-top: 30px; column-gap: 25px; grid-template-columns: 98px minmax(0,1fr); }
  .portrait { width: 98px; }
  .identity-name { font-size: 35px; margin-bottom: 11px; }
  .chinese-name { display: block; margin: 7px 0 0; font-size: 22px; }
  .site-nav { gap: 8px 26px; }
  .paper { grid-template-columns: 108px minmax(0,1fr); gap: 24px; }
  .paper-image img { width: 108px; }
  #list-of-publications-by-year > section[id^="year-"] { grid-template-columns: 1fr; row-gap: 18px; padding-top: 24px; margin-top: 28px; }
  #list-of-publications-by-year > section[id^="year-"] > h2 { position: static; }
  .news-year { display: block; margin-top: 32px; padding-top: 22px; }
  .news-year > h2 { position: static; margin-bottom: 24px; }
  .news-month { grid-template-columns: 54px minmax(0,1fr); column-gap: 20px; }
  .nav-footer { flex-direction: column; gap: 7px; align-items: flex-start; }
}
@media(max-width:500px) {
  :root {
    --type-page-title: 28px;
    --type-section-title: 27px;
    --type-subsection-title: 23px;
    --type-subtitle: 22px;
    --type-small: 16px;
  }
  #quarto-content { padding: 0 22px; }
  .site-header { padding: 27px 0 22px; gap: 18px; grid-template-columns: 84px minmax(0,1fr); align-items: start; }
  .identity-name { font-size: 31px; }
  .chinese-name { font-size: 21px; }
  .portrait { width: 84px; margin-top: 4px; }
  .site-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 22px; padding-bottom: 12px; }
  .site-nav a { width: fit-content; padding: 6px 0; }
  h1 { margin-top: 29px; }
  .home-publication-heading { display: block; margin-top: 33px; }
  .home-publication-heading p { margin-top: 9px; }
  .paper { display: flow-root; margin-bottom: 20px; }
  .paper-image { float: right; width: 86px; padding: 3px 0 0; margin: 0 0 10px 17px; }
  .paper-image img { width: 86px; }
  .paper-text p:last-child { clear: both; }
  .paper-note { white-space: normal; margin-left: 0; font-size: var(--type-small); }
  .news-month { display: block; margin-bottom: 26px; }
  .news-date { padding: 0; margin-bottom: 8px; }
  .table td:first-child { min-width: 0; width: 33%; }
  .nav-footer { width: calc(100% - 44px); font-size: var(--type-small); }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } }
@media print {
  .site-nav, .nav-footer, .skip-link, .publication-nav { display: none; }
  #quarto-content main#quarto-document-content { max-width: none; }
  a { color: inherit; }
  .paper { break-inside: avoid; }
}

/* A restrained blue-and-white theme, shared by every page. */
.site-nav { gap: 8px 14px; }
.site-nav a { padding: 7px 10px; border-radius: 5px; }
.site-nav a:first-child { margin-left: -10px; }
.site-nav a[aria-current="page"] { color: #fff; background: var(--blue-deep); text-decoration: none; }
.site-nav a:hover { background: var(--surface); }
.site-nav a[aria-current="page"]:hover { background: var(--blue); }
.language-switch { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; padding-left: 12px; color: var(--muted); font-size: var(--type-small); white-space: nowrap; }
.language-switch button { border: 0; padding: 4px 2px; background: none; color: var(--muted); font: inherit; cursor: pointer; }
.language-switch button[aria-pressed="true"] { color: var(--blue-deep); font-weight: var(--weight-strong); }
.language-switch button:hover { color: var(--blue); }
html[lang="zh-CN"] .identity-name { letter-spacing: 2px; }
@media screen and (min-width:901px) and (max-width:1200px) {
  .site-nav { column-gap: 12px; }
  .site-nav a { font-size: var(--type-small); padding-left: 6px; padding-right: 6px; }
  .site-nav a:first-child { margin-left: -6px; }
  .language-switch { gap: 5px; padding-left: 4px; }
}
.topic-accordion .topic-disclosure > summary { padding: 7px 0; }
.topic-accordion .topic-disclosure > summary:hover { background: var(--surface); }
.topic-accordion .topic-disclosure[open] > summary { margin-bottom: 4px; }
/* Keep the current topic's collapse control within reach while reading. */
@media screen {
  .topic-accordion .topic-disclosure[open] > summary {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #fff;
    box-shadow: 0 1px 0 var(--soft-line);
  }
  .topic-accordion .topic-disclosure[open] > summary:hover { background: var(--surface); }
}
.contact-note { background: var(--panel-surface); padding: 20px 24px; border-left: 3px solid var(--blue); border-radius: 0 6px 6px 0; }
.contact-recruitment { max-width: 760px; margin-top: 28px; padding: 16px 20px; font-size: var(--type-small); }
.contact-recruitment h2 { font-size: var(--type-subsection-title); margin: 0 0 10px; padding: 0; border: 0; }
.contact-recruitment p + p { margin-top: 8px; }
.publication-title a { color: inherit; text-decoration: none; }
.publication-title a:hover { text-decoration: underline; }
.publication-journal { font-style: italic; }
.publication-venue strong.publication-venue-note { font-style: normal; font-weight: 700; }
.publication-status { display: inline-block; margin-left: 8px; padding: 1px 8px; border: 1px solid var(--soft-line); border-radius: 4px; color: var(--muted); background: var(--surface); font-size: 13px; font-style: normal; line-height: 1.7; vertical-align: middle; }
.publication-tools { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 18px; margin-top: 6px; font-size: var(--type-small); line-height: 1.5; }
.publication-tools > a, .bibtex-controls a { text-decoration: none; }
.publication-tools > a:hover, .bibtex-controls a:hover { text-decoration: underline; }
.bibtex-disclosure { min-width: 0; margin: 0; }
.bibtex-disclosure > summary { width: fit-content; color: var(--blue); cursor: pointer; }
.bibtex-disclosure > summary::marker { font-size: .7em; }
.bibtex-disclosure[open] { flex-basis: 100%; }
.bibtex-panel { margin-top: 10px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--soft-line); border-radius: 6px; }
.bibtex-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 12px; }
.copy-bibtex { background: white; color: var(--blue-deep); border: 1px solid var(--soft-line); border-radius: 4px; font: inherit; font-size: var(--type-small); padding: 4px 9px; cursor: pointer; }
.copy-bibtex:hover { border-color: var(--blue); }
.bibtex-copy-status { color: var(--muted); font-size: 14px; }
.bibtex-panel pre { margin: 0; padding: 0; border: 0; background: transparent; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.6; }
.bibtex-panel code { color: var(--ink); white-space: inherit; user-select: text; }
.paper-text { min-width: 0; }
@media screen and (min-width:1101px) {
  :root { --profile-width: 250px; --profile-gap: 32px; }
  .site-header { padding: 18px; border: 1px solid var(--soft-line); border-top: 3px solid var(--blue); border-radius: 8px; background: var(--panel-surface); }
  .site-header .identity-name { font-size: 33px; letter-spacing: -.5px; }
  .site-header .affiliation { font-size: 15px; }
  .site-header .portrait { width: 185px; box-shadow: 0 2px 8px #103e7312; }
  .site-header .header-contact { font-size: 16px; }
}
@media(max-width:500px) {
  .publication-tools { clear: both; gap: 7px 16px; }
  .bibtex-panel { padding: 12px; }
  .contact-note { padding: 16px 18px; }
}
/* Keep the portrait and profile text in two independent mobile blocks. */
@media screen and (max-width:700px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) 108px;
    grid-template-rows: auto;
    column-gap: 14px;
    row-gap: 0;
    align-items: center;
    padding: 16px 0 14px;
    border: 0;
    background: none;
  }
  .site-header .portrait { grid-column: 2; grid-row: 1; align-self: end; width: 108px; height: auto; margin: 0; border-radius: 0; }
  .site-header .identity { display: block; grid-column: 1; grid-row: 1; }
  .site-header .identity-name { margin: 0 0 4px; color: var(--blue-deep); font-size: 30px; line-height: 1.15; }
  .site-header .position { margin: 0; font-size: 15px; line-height: 1.3; }
  .site-header .affiliation { margin: 4px 0 0; font-size: 14px; line-height: 1.35; }
  .site-header .profile-location { display: none; }
  .site-header .header-contact { margin: 4px 0 0; font-size: 14px; line-height: 1.35; text-align: center; }
  .site-header .header-contact .contact-label { display: none; }
  .site-header .header-contact .email-address { display: inline-block; max-width: 100%; }
  .site-header .profile-address { grid-column: 1 / -1; grid-row: 2; margin-top: 12px; font-size: 14px; line-height: 1.4; }
  h1 { margin-top: 22px; margin-bottom: 16px; }
  .site-nav { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0; padding: 4px 8px; border: 1px solid var(--soft-line); border-radius: 6px; background: var(--panel-surface); }
  .site-nav.is-collapsible .nav-toggle { grid-column: 1; grid-row: 1; display: inline-flex; align-items: center; justify-self: start; gap: 10px; min-height: 44px; padding: 8px; border: 0; background: none; color: var(--blue-deep); font: inherit; font-size: 16px; font-weight: 500; cursor: pointer; }
  .site-nav .language-switch { grid-column: 2; grid-row: 1; justify-self: end; margin: 0; padding: 0; gap: 2px; font-size: 15px; }
  .site-nav .language-switch button { min-width: 40px; min-height: 44px; padding: 6px 4px; }
  .site-nav-links { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: 1fr; gap: 2px; margin-top: 4px; padding: 6px 0; border-top: 1px solid var(--soft-line); }
  .site-nav.is-collapsible .site-nav-links { display: none; }
  .site-nav.is-expanded .site-nav-links { display: grid; }
  .site-nav-links > a { display: block; width: auto; min-height: 44px; padding: 9px 12px; font-size: 16px; line-height: 1.6; border-radius: 3px; }
  .site-nav-links > a:first-child { margin-left: 0; }
  .site-nav-links > a[aria-current="page"], .site-nav-links > a[aria-current="page"]:hover { color: var(--blue-deep); background: var(--surface); box-shadow: inset 3px 0 var(--blue); text-decoration: none; }
}
@media screen and (max-width:360px) {
  .site-header { grid-template-columns: minmax(0, 1fr) 96px; column-gap: 12px; }
  .site-header .portrait { width: 96px; }
  .site-header .identity-name { font-size: 26px; }
  .site-header .position { font-size: 14px; }
}
@media print {
  .publication-tools { display: none; }
}
