/* Minimal academic homepage. All fonts are local system fonts. */
:root {
  --ink: #1c1e20;
  --muted: #696c70;
  --accent: #303336;
  --line: #dedfe0;
  --soft: #f6f6f5;
  --serif: Georgia, "Times New Roman", "Noto Serif", "Songti SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 38px; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--serif); font-size: 17px; line-height: 1.8; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { background: #e5e5e3; }
svg { fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
p, h1, h2, h3, dl, dd, ul, ol { margin: 0; }
strong { font-weight: 700; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 20; background: var(--ink); color: #fff; padding: 9px 16px; font-family: var(--sans); font-size: 14px; }
.skip-link:focus { top: 12px; }
.site-layout { display: grid; grid-template-columns: 220px minmax(0, 760px); gap: 76px; max-width: 1176px; margin: 0 auto; padding: 72px 60px 28px; }
.profile { position: sticky; top: 64px; align-self: start; font-family: var(--sans); font-size: 14px; line-height: 1.65; }
.profile-name { display: inline-block; color: #181a1c; font-size: 27px; font-weight: 650; line-height: 1.25; letter-spacing: -.8px; margin-bottom: 13px; }
.profile-name:hover { text-decoration: none; color: var(--accent); }
.profile-role { font-size: 15px; color: #3e4144; margin-bottom: 11px; }
.profile-affiliation { color: #575a5d; line-height: 1.8; }
.profile-affiliation a { display: inline-flex; align-items: baseline; gap: 6px; color: inherit; }
.profile-location { color: var(--muted); font-size: 13px; margin-top: 10px; }
.profile-links { display: grid; gap: 9px; margin-top: 22px; }
.profile-links a { display: flex; align-items: center; gap: 9px; width: fit-content; min-height: 26px; }
.profile-links svg { width: 17px; height: 17px; flex-shrink: 0; }
.profile-links .brand-icon { fill: currentColor; stroke: none; }
.profile-links .icon-email { color: #555b61; }
.profile-links .icon-scholar { color: #4285f4; }
.profile-links .icon-orcid { color: #a6ce39; }
.profile-links .icon-github { color: #24292f; }
.external-arrow { font-size: 12px; }
nav { margin-top: 31px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 9px; }
nav a { color: var(--muted); font-size: 14px; display: block; width: fit-content; min-height: 26px; }
nav a[aria-current="location"] { color: var(--accent); font-weight: 600; }
main { min-width: 0; }
h1, h2 { font-family: var(--sans); color: #202224; line-height: 1.3; }
h1 { font-size: 34px; font-weight: 650; letter-spacing: -1px; margin-bottom: 21px; }
h2, #background-heading { font-size: 24px; font-weight: 600; letter-spacing: -.5px; margin-bottom: 22px; }
section + section { margin-top: 37px; padding-top: 29px; border-top: 1px solid var(--line); }
.education-list { display: grid; gap: 19px; }
.education-entry { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; }
.education-entry dt { color: var(--muted); font-family: var(--sans); font-size: 13px; line-height: 1.8; padding-top: 3px; }
.education-entry dd { font-size: 16px; line-height: 1.65; }
.education-entry dd strong { font-weight: 700; }
.education-entry dd > strong { display: block; }
.institution-list { display: grid; gap: 7px; margin-top: 8px; }
.institution-link { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: fit-content; max-width: 100%; color: #55585b; font-family: var(--sans); font-size: 14px; line-height: 1.4; }
.institution-link:hover { color: var(--ink); text-decoration: none; }
.institution-link img { display: block; width: 42px; height: 42px; object-fit: contain; }
.institution-link .external-arrow { color: #85888b; }
.research-heading { margin-bottom: 15px; }
#research-heading { margin-bottom: 8px; }
.research-subtitle { color: #55585b; font: 600 12px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.research-visual { margin: 0; }
.research-visual img { display: block; width: 100%; height: auto; border-block: 1px solid var(--line); background: #fff; }
.research-topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 13px; color: #55585b; font: 12px/1.5 var(--sans); text-align: center; }
.research-topics span + span { border-left: 1px solid var(--line); }
.education-entry dd { position: relative; border-left: 1px solid var(--line); padding-left: 17px; }
.education-entry dd::before { content: ""; position: absolute; left: -3px; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: #929598; }
.publication-list { padding-left: 24px; }
.publication { padding-left: 5px; }
.publication + .publication { margin-top: 36px; }
.publication::marker { font-family: var(--sans); font-size: 13px; color: var(--muted); }
.publication-row { display: grid; grid-template-columns: 172px minmax(0, 1fr); gap: 22px; align-items: start; }
.publication-copy { min-width: 0; }
.publication-toc { min-width: 0; margin: 2px 0 0; }
.publication-toc > a { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 16 / 10; padding: 5px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.publication-toc > a:hover { border-color: #929598; text-decoration: none; }
.publication-toc img { display: block; width: 100%; height: 100%; object-fit: contain; }
.publication h3 { font-family: var(--serif); font-size: 17px; font-weight: 700; line-height: 1.6; margin-bottom: 6px; }
.publication h3 a { color: #2b2e30; }
.authors { font-size: 14px; line-height: 1.8; color: #63666a; }
.authors strong { color: var(--ink); }
.publication-note { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 5px; color: var(--muted); font: 12px/1.6 var(--sans); }
.publication-tag { padding: 1px 7px; color: var(--accent); background: var(--soft); border: 1px solid #dddddc; border-radius: 2px; }
.venue { margin-top: 4px; font-size: 15px; line-height: 1.7; color: #414447; }
.paper-links { display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: baseline; margin-top: 7px; font-family: var(--sans); font-size: 13px; }
.paper-links > a { min-height: 30px; display: inline-flex; align-items: center; gap: 5px; }
.citation { max-width: 100%; }
.citation summary { cursor: pointer; color: var(--accent); list-style: none; min-height: 30px; display: inline-flex; align-items: center; }
.citation summary::-webkit-details-marker { display: none; }
.citation summary::after { content: "+"; margin-left: 6px; font-size: 12px; }
.citation[open] { flex-basis: 100%; width: 100%; }
.citation[open] summary::after { content: "−"; }
.citation-content { margin-top: 8px; padding: 15px 17px; background: var(--soft); border: 1px solid var(--line); border-radius: 2px; }
.citation pre { white-space: pre-wrap; overflow-wrap: anywhere; font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; line-height: 1.7; margin: 0; }
.copy-button { font: 12px var(--sans); margin-top: 12px; padding: 7px 10px; background: #fff; border: 1px solid #d7dce0; color: var(--accent); cursor: pointer; border-radius: 2px; }
.copy-button:hover { border-color: var(--accent); }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); font: 12px/1.7 var(--sans); color: var(--muted); }
footer a { color: var(--muted); }
.site-views { display: inline-flex; align-items: center; min-height: 20px; }
.site-views:hover { text-decoration: none; }
.site-views img { display: block; width: 60px; height: 20px; }
.toast { position: fixed; bottom: 25px; left: 50%; transform: translate(-50%, 8px); opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; background: #252729; color: #fff; border-radius: 3px; padding: 10px 17px; font: 14px/1.5 var(--sans); max-width: calc(100% - 32px); z-index: 30; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
@media(max-width: 1000px) {
  .site-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 45px; padding: 55px 35px 28px; }
  .profile-name { font-size: 25px; }
  .education-entry { grid-template-columns: 1fr; gap: 3px; }
}
@media(max-width: 700px) {
  html { scroll-padding-top: 20px; }
  body { font-size: 16px; }
  .site-layout { display: block; padding: 30px 23px 25px; }
  .profile { position: static; margin-bottom: 33px; }
  .profile-name { font-size: 28px; margin-bottom: 7px; }
  .profile-role { margin-bottom: 6px; }
  .profile-affiliation { line-height: 1.65; }
  .profile-location { margin-top: 7px; }
  .profile-links { display: flex; flex-wrap: wrap; gap: 7px 24px; margin-top: 13px; }
  nav { display: flex; flex-wrap: wrap; gap: 7px 21px; padding-top: 15px; margin-top: 18px; }
  nav a { font-size: 13px; }
  h1 { font-size: 29px; margin-bottom: 17px; }
  h2, #background-heading { font-size: 23px; margin-bottom: 20px; }
  section + section { margin-top: 30px; padding-top: 25px; }
  .education-list { gap: 18px; }
  .education-entry { grid-template-columns: 1fr; gap: 4px; }
  .education-entry dt { font-size: 13px; }
  .research-topics { grid-template-columns: 1fr; gap: 12px; margin-top: 14px; }
  .research-topics span + span { border-left: 0; }
  .publication-list { padding-left: 20px; }
  .publication { padding-left: 3px; }
  .publication-row { grid-template-columns: 1fr; gap: 14px; }
  .publication-toc { width: min(100%, 300px); }
  .publication h3 { font-size: 16px; }
  .authors { font-size: 14px; }
  .venue { font-size: 14px; }
}
@media(prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media print {
  .site-layout { display: block; max-width: none; padding: 0; }
  .profile { position: static; margin-bottom: 25px; }
  .profile-location, nav, .copy-button, .toast, .skip-link, footer { display: none; }
  .profile-links { display: flex; gap: 25px; }
  body { font-size: 12pt; }
  h1 { font-size: 23pt; }
  h2, #background-heading { font-size: 18pt; }
  .publication, .education-entry, .research-visual { break-inside: avoid; }
}

/* A compact language selector, hidden until JavaScript is available. */
.language-switch:not([hidden]) { display: flex; align-items: center; gap: 11px; margin-bottom: 19px; color: var(--muted); font: 13px/1.5 var(--sans); }
.language-switch button { background: none; border: 0; border-bottom: 1px solid transparent; padding: 5px 0; min-height: 32px; color: var(--muted); cursor: pointer; font: inherit; }
.language-switch button:hover { color: var(--accent); }
.language-switch button[aria-pressed="true"] { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
@media print { .language-switch:not([hidden]) { display: none; } }
