/* Modern academic homepage. Load after main.css. No remote fonts required. */
:root {
  --site-bg: #f5f6f8;
  --surface: #ffffff;
  --heading: #202b3c;
  --text: #495468;
  --muted: #65738a;
  --accent: #355f9d;
  --accent-soft: #edf3fc;
  --radius: 16px;
  --shadow: 0 6px 28px rgba(30, 48, 75, .035);
}
html { font-size: 16px; background: var(--site-bg); }
body {
  margin: 0;
  background: var(--site-bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
    Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
a:visited { color: var(--accent); }
a:hover { color: #214574; }
a:focus-visible, button:focus-visible {
  outline: 3px solid #7997c5;
  outline-offset: 4px;
}
.masthead {
  top: 12px;
  width: calc(100% - 48px);
  max-width: 1320px;
  margin: 18px auto 28px;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  animation: none;
}
.masthead__inner-wrap {
  max-width: none;
  padding: 10px 14px;
  font-family: inherit;
}
.greedy-nav { background: transparent; }
.greedy-nav .visible-links a {
  margin: 0 2px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: background-color .15s ease, color .15s ease;
}
.greedy-nav .visible-links a::before { display: none; }
.greedy-nav .visible-links a:hover,
.greedy-nav a[aria-current] {
  color: var(--accent);
  background: var(--accent-soft);
}
.masthead__menu-item--lg { padding-right: 0; }
.greedy-nav .hidden-links {
  border: 0;
  border-radius: 12px;
  background: white;
  box-shadow: 0 8px 30px rgba(30, 48, 75, .12);
}
.greedy-nav button { border-radius: 8px; }
#main {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: start;
  gap: 28px;
  width: calc(100% - 48px);
  max-width: 1320px;
  margin: 0 auto 60px;
  padding: 0;
  animation: none;
}
#main::before, #main::after { display: none; }
#main > .sidebar,
#main > .page {
  float: none;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
}
/* Do not trap a tall profile card in a viewport shorter than the card. */
#main > .sidebar { position: static; transform: none; opacity: 1; }
.sidebar .profile_box {
  display: block;
  padding: 24px 22px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.sidebar div.author__avatar { display: block; width: auto; }
.sidebar .author__avatar img {
  display: block;
  width: 168px;
  max-width: 100%;
  height: auto;
  margin: 2px auto 20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
}
.sidebar .author__content { display: block; padding: 0; }
.sidebar .author__name {
  margin: 0 0 10px;
  font-family: inherit;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--heading);
}
.sidebar .author__bio { margin: 0 0 22px; }
.sidebar .author__bio::first-line {
  color: #3b5f8a;
  font-weight: 600;
}
.sidebar .author__urls > li:first-child > div {
  color: #526f94;
  font-weight: 400;
}
.sidebar p, .sidebar li { font-family: inherit; font-size: 14px; line-height: 1.7; }
.sidebar .author__urls-wrapper { display: block; margin: 0; cursor: auto; }
.sidebar .author__urls {
  display: block !important; /* Original mobile script writes display:none inline. */
  position: static;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.sidebar .author__urls::before, .sidebar .author__urls::after,
.sidebar .author__urls_sm { display: none; }
.sidebar .author__urls li { white-space: normal; margin-bottom: 7px; }
.sidebar .author__urls a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin: 0;
  border-radius: 10px;
  background: #f2f5f8;
  color: var(--text);
  font-size: 14px;
  text-decoration: none;
  transition: background-color .15s ease;
}
.sidebar .author__urls a:hover { background: var(--accent-soft); color: var(--accent); }
.sidebar .author__urls a i { width: 18px; color: var(--muted); text-align: center; }
#visitor-map { margin-top: 22px; overflow: hidden; border-radius: 10px; }
#visitor-map img, #visitor-map iframe { max-width: 100%; }
.page__inner-wrap, .page__content { float: none; width: 100%; margin: 0; }
.page__content { font-size: 16px; overflow-wrap: break-word; }
.page__content p, .page__content li { line-height: 1.75; }
.page__content p { margin: 0 0 18px; }
.page__content a { text-decoration: none; }
.page__content a:hover { text-decoration: underline; text-underline-offset: 3px; }
.page__content h1, .page__content h2, .page__content h3 {
  color: var(--heading);
  font-family: inherit;
  font-weight: 650;
  line-height: 1.35;
  border: 0;
}
.page__content h1 { font-size: 28px; padding: 0; margin: 0 0 20px; }
.page__content h2 { font-size: 21px; margin: 0 0 20px; }
.page__content h3 { font-size: 18px; }
.page__content .anchor::before { display: none; }
.page__content .anchor, .page__content #about-me {
  display: block;
  margin: 0;
  height: 0;
  scroll-margin-top: 100px;
}
.page__content h1[id] { scroll-margin-top: 100px; }
.page__content > p:has(> .anchor:only-child) { margin: 0; height: 0; }
.academic-card {
  padding: 30px 32px;
  margin: 0 0 24px;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.academic-card > :last-child, .academic-group > :last-child { margin-bottom: 0; }
.academic-group + .academic-group { margin-top: 32px; }
.academic-group ul { padding-left: 20px; }
.academic-group li { margin-bottom: 10px; }
.recruitment-note {
  background: #f2f6fc;
  border-radius: 12px;
  padding: 18px 20px;
  margin-top: 22px;
  font-size: 15px;
}
.recruitment-note > :last-child { margin-bottom: 0; }
.recent-news ul, #history-news ul { padding-left: 20px; margin-bottom: 0; }
.recent-news li, #history-news li { font-size: 15px; margin-bottom: 9px; }
.recent-news em, #history-news em { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }
.view-history-bar {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 20px 0 0 auto;
  padding: 10px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.view-history-bar:hover { background: #e1eafa; }
#history-news { margin-top: 12px; }
.badge-conf, .badge-highlight {
  display: inline-block;
  padding: 2px 7px;
  border: 0;
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: .8em;
  font-weight: 600;
  line-height: 1.5;
}
.section-publications .academic-group ul { padding: 0; list-style: none; }
.section-publications .academic-group li {
  position: relative;
  padding-left: 132px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.section-publications li > code:first-child {
  position: absolute;
  left: 0;
  top: 2px;
  padding: 4px 8px;
  max-width: 120px;
  border: 0;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  white-space: normal;
}
.section-publications li > a:first-of-type { font-size: 16px; font-weight: 600; color: var(--accent); }
.section-publications li strong { color: var(--text); }
.section-publications li img { vertical-align: middle; }
@media (max-width: 1100px) {
  #main { grid-template-columns: 225px minmax(0, 1fr); gap: 20px; }
  .academic-card { padding: 26px; }
  .sidebar .profile_box { padding: 22px 18px; }
}
@media (max-width: 800px) {
  .masthead { width: calc(100% - 24px); margin: 12px auto 18px; top: 8px; }
  .masthead__inner-wrap { padding: 8px; }
  #main { display: block; width: calc(100% - 24px); }
  #main > .sidebar { margin-bottom: 20px; }
  .sidebar .profile_box { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 16px; padding: 20px; }
  .sidebar .author__avatar img { width: 100px; margin: 0; }
  .sidebar .author__content { align-self: center; }
  .sidebar .author__bio { margin-bottom: 0; }
  .sidebar .author__urls-wrapper { grid-column: 1 / -1; }
  .sidebar .author__urls { display: flex !important; flex-wrap: wrap; gap: 8px; }
  .sidebar .author__urls li { margin: 0; }
  .sidebar .author__urls li:first-child { flex-basis: 100%; }
  .sidebar .author__urls li:has(> .fa-map-marker) { flex-basis: 100%; }
  #visitor-map { display: none; }
  .academic-card { padding: 24px 20px; margin-bottom: 18px; }
  .page__content { font-size: 15px; }
  .page__content h1 { font-size: 25px; }
  .page__content h2 { font-size: 20px; }
  .section-publications .academic-group li { padding-left: 0; }
  .section-publications li > code:first-child { position: static; display: table; max-width: none; margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media print {
  body, html { background: white; }
  .masthead { position: static; }
  #main { display: block; width: 100%; }
  .academic-card, .sidebar .profile_box { box-shadow: none; padding: 0; }
}

/* Fix legacy homepage anchor offset pulling the first card above the page. */
.page__content #about-me::before {
  content: none;
  display: none;
  height: 0;
  margin: 0;
}

/* -------------------------------------------------------------------------
   Refined visual layer
   A quiet, editorial finish: more depth and hierarchy without adding
   separators or changing the page structure/content.
   ------------------------------------------------------------------------- */
:root {
  --site-bg: #f4f6fa;
  --surface: #ffffff;
  --heading: #202c3e;
  --text: #4a566a;
  --muted: #66758b;
  --accent: #3b669f;
  --accent-soft: #edf3fc;
  --card-border: rgba(75, 106, 149, .075);
  --card-shadow: 0 14px 38px rgba(38, 65, 101, .055), 0 2px 8px rgba(38, 65, 101, .025);
  --card-shadow-hover: 0 18px 44px rgba(38, 65, 101, .075), 0 3px 10px rgba(38, 65, 101, .03);
}

html { background: var(--site-bg); }
body {
  background:
    radial-gradient(820px 420px at -5% -8%, rgba(103, 145, 204, .10), transparent 68%),
    radial-gradient(760px 420px at 105% 16%, rgba(139, 124, 194, .055), transparent 70%),
    linear-gradient(180deg, #f8f9fc 0%, #f2f5f9 100%);
}
::selection { background: #dce9fb; color: #213b61; }

.masthead {
  border: 1px solid rgba(75, 106, 149, .065);
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 12px 32px rgba(39, 65, 99, .055), 0 1px 0 rgba(255, 255, 255, .9) inset;
  -webkit-backdrop-filter: blur(16px) saturate(115%);
  backdrop-filter: blur(16px) saturate(115%);
}
.greedy-nav .visible-links a {
  border: 1px solid transparent;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.greedy-nav .visible-links a:hover {
  border-color: rgba(76, 116, 171, .08);
  box-shadow: 0 4px 12px rgba(45, 77, 120, .06);
  transform: translateY(-1px);
}
.greedy-nav a[aria-current] {
  border-color: rgba(76, 116, 171, .055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
}
.greedy-nav .hidden-links {
  border: 1px solid rgba(75, 106, 149, .075);
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.sidebar .profile_box,
.academic-card {
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
}
.sidebar .profile_box {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #ffffff 0%, #fbfcff 100%);
}
.sidebar .profile_box::before {
  position: absolute;
  top: -150px;
  right: -135px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(102, 145, 205, .13), transparent 67%);
  content: "";
  pointer-events: none;
}
.sidebar .profile_box > * { position: relative; z-index: 1; }
.sidebar .author__avatar img {
  box-shadow: 0 0 0 5px rgba(255, 255, 255, .92), 0 10px 24px rgba(43, 74, 116, .14);
}
.sidebar .author__urls a {
  border: 1px solid transparent;
  background: rgba(245, 248, 252, .74);
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.sidebar .author__urls a:hover {
  border-color: rgba(76, 116, 171, .09);
  box-shadow: 0 4px 10px rgba(45, 77, 120, .045);
  transform: translateX(1px);
}

.academic-card {
  background: linear-gradient(145deg, #ffffff 0%, #fcfdff 100%);
  transition: box-shadow .2s ease, transform .2s ease;
}
.academic-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-1px);
}
.section-news { background: linear-gradient(145deg, #ffffff 0%, #fbfdff 100%); }
.section-publications { background: linear-gradient(145deg, #ffffff 0%, #fdfcff 100%); }
.section-honors-and-awards { background: linear-gradient(145deg, #ffffff 0%, #fffdfc 100%); }
.section-experience,
.section-fundings,
.section-teaching,
.section-academic-service { background: linear-gradient(145deg, #ffffff 0%, #fbfcff 100%); }

.page__content h1,
.page__content h2,
.page__content h3 {
  letter-spacing: -.018em;
}
.page__content h1 { font-weight: 700; }
.page__content h2 { color: #2f4c72; }
.page__content h3 { color: #3b587d; }
.recruitment-note {
  background: linear-gradient(135deg, #f1f6fd 0%, #f7f9fd 100%);
  box-shadow: inset 3px 0 0 rgba(73, 119, 181, .35), 0 5px 16px rgba(56, 91, 138, .035);
}

.recent-news li,
#history-news li {
  margin-left: -6px;
  padding: 7px 10px 7px 6px;
  border-radius: 10px;
  transition: background-color .18s ease, transform .18s ease;
}
.recent-news li:hover,
#history-news li:hover {
  background: rgba(239, 245, 253, .72);
  transform: translateX(2px);
}
.recent-news li::marker,
#history-news li::marker { color: #7898c4; font-size: .78em; }
.recent-news em,
#history-news em {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 6px;
  background: #f0f4fa;
  color: #526d96;
}
.view-history-bar {
  box-shadow: 0 5px 14px rgba(53, 95, 157, .08);
  transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.view-history-bar:hover {
  box-shadow: 0 8px 18px rgba(53, 95, 157, .12);
  transform: translateY(-1px);
}

.academic-group > ul > li {
  border-radius: 10px;
  transition: background-color .18s ease, transform .18s ease;
}
.academic-group > ul > li:hover {
  background: rgba(247, 250, 255, .8);
  transform: translateX(2px);
}
.section-publications .academic-group li {
  margin-left: -12px;
  margin-right: -12px;
  padding-top: 9px;
  padding-right: 12px;
  padding-bottom: 9px;
  padding-left: 144px;
  border-radius: 11px;
  transition: background-color .18s ease, transform .18s ease;
}
.section-publications .academic-group li:hover {
  background: rgba(241, 246, 253, .78);
  transform: translateX(3px);
}
.section-publications li > code:first-child {
  left: 12px;
  top: 11px;
  box-shadow: 0 3px 9px rgba(53, 95, 157, .06);
}
.section-publications li > a:first-of-type { color: #315f9f; }
.badge-highlight {
  background: #fff4df;
  color: #a36b18;
}

@media (max-width: 800px) {
  .academic-card:hover { transform: none; }
  .recent-news li:hover,
  #history-news li:hover,
  .academic-group > ul > li:hover,
  .section-publications .academic-group li:hover { transform: none; }
  .section-publications .academic-group li {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
  }
  .section-publications li > code:first-child { left: auto; top: auto; }
}

@media print {
  html, body { background: white; }
  .masthead { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .academic-card, .sidebar .profile_box { border: 0; }
}

/* -------------------------------------------------------------------------
   Final layout polish
   Keep the navigation balanced on wide screens and let the profile card
   follow the reader on desktop without changing the mobile flow.
   ------------------------------------------------------------------------- */
@media (min-width: 1101px) {
  /* Keep the original greedy-navigation width calculation intact. */
  .greedy-nav { text-align: center; }
  .greedy-nav .visible-links {
    display: table;
    width: auto;
    margin-right: auto;
    margin-left: auto;
  }
  .greedy-nav .visible-links li { display: table-cell; }
}

@media (min-width: 801px) {
  #main > .sidebar.sidebar--fits {
    position: sticky;
    top: var(--anchor-offset, 110px);
    align-self: start;
  }
}

@media (max-width: 800px) {
  #main > .sidebar { position: static; }
}

/* -------------------------------------------------------------------------
   Sidebar metadata row
   Keep the location independent from the clickable contact buttons, while
   giving its map icon the same visual language as the rest of the page.
   ------------------------------------------------------------------------- */
.sidebar .author__urls li:has(> .fa-map-marker) {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 2px 0 13px;
  padding: 3px 2px;
  color: #5b6b82;
  font-size: 14px;
  line-height: 1.6;
}

.sidebar .author__urls li:has(> .fa-map-marker) > i {
  display: inline-grid;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
}

/* -------------------------------------------------------------------------
   Section title icons and quiet list markers
   The original heading icons were hidden by the anchor-offset fix above.
   Restore them with the Font Awesome font already bundled by the theme.
   ------------------------------------------------------------------------- */
.page__content h1 {
  display: flex;
  align-items: center;
  gap: 14px;
}

.page__content h1::before {
  position: static;
  display: inline-grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  margin: 0;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #eef4fd 0%, #e4edf9 100%);
  box-shadow: inset 0 0 0 1px rgba(74, 117, 177, .11),
    0 4px 10px rgba(53, 95, 157, .075);
  color: #3f70b1;
  content: "";
  font-family: "Font Awesome 5 Free";
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
}

.section-about-me h1::before { content: "\f007"; }
.section-news h1::before { content: "\f1ea"; }
.section-publications h1::before { content: "\f02d"; }
.section-patents h1::before { content: "\f15c"; }
.section-honors-and-awards h1::before { content: "\f5a2"; }
.section-experience h1::before { content: "\f0b1"; }
.section-fundings h1::before { content: "\f51e"; }
.section-teaching h1::before { content: "\f19d"; }
.section-academic-service h1::before { content: "\f0c0"; }

/* A small blue dot with a soft halo keeps long lists easy to scan. */
.page__content .academic-card:not(.section-publications) .academic-group ul {
  padding-left: 0;
  list-style: none;
}

.page__content .academic-card:not(.section-publications) .academic-group li {
  position: relative;
  margin: 0 0 8px;
  padding: 7px 10px 7px 32px;
}

.page__content .academic-card:not(.section-publications) .academic-group li::before {
  position: absolute;
  top: 1.35em;
  left: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4c78bb;
  box-shadow: 0 0 0 5px rgba(224, 234, 249, .88);
  content: "";
  transform: translateY(-50%);
}

@media (max-width: 800px) {
  .page__content h1 { gap: 11px; }
  .page__content h1::before {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 15px;
  }
  .page__content .academic-card:not(.section-publications) .academic-group li {
    padding-left: 28px;
  }
  .page__content .academic-card:not(.section-publications) .academic-group li::before {
    left: 7px;
    width: 7px;
    height: 7px;
    box-shadow: 0 0 0 4px rgba(224, 234, 249, .88);
  }
}


/* Reading refinements: preserve the News markers and the existing nav layout. */
.greedy-nav .hidden-links a[aria-current] {
  color: var(--accent);
  background: var(--accent-soft);
}
.greedy-nav a:focus-visible {
  outline: 2px solid #7997c5;
  outline-offset: 2px;
}
.page__content .academic-group > h3 {
  margin: 28px 0 14px;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.45;
}
.page__content .academic-group > h3:first-child { margin-top: 0; }

.section-teaching .teaching-course + .teaching-course { margin-top: 26px; }
.page__content .section-teaching .teaching-course h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.45;
}
.section-teaching .teaching-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #f4f7fb;
  transition: background-color .18s ease;
}
@media (hover: hover) and (pointer: fine) {
  .section-teaching .teaching-row:hover { background: #edf3fa; }
}
.section-teaching .teaching-course-name {
  flex: 1 1 300px;
  min-width: 0;
  color: #334e70;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.5;
}
.section-teaching .teaching-course-name span {
  color: #66788f;
  font-size: 14px;
  font-weight: 400;
}
.section-teaching .teaching-meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  white-space: nowrap;
}
@media (max-width: 800px) {
  .section-teaching .teaching-row { padding: 12px 14px; }
  .section-teaching .teaching-course-name { flex-basis: 100%; }
}

/* Use a separate date column without adding borders or changing list markers. */
.dated-list { --date-column: 9ch; }
.section-fundings .dated-list { --date-column: 19ch; }
.page__content .academic-card:not(.section-publications) .academic-group.dated-list li {
  padding-left: calc(32px + var(--date-column));
}
.page__content .academic-card:not(.section-publications) .academic-group.dated-list li > em:first-child {
  position: absolute;
  top: 7px;
  left: 32px;
  width: calc(var(--date-column) - 12px);
  font-style: normal;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--muted);
}
@media (max-width: 1000px) {
  .page__content .academic-card:not(.section-publications) .academic-group.dated-list li { padding-left: 32px; }
  .page__content .academic-card:not(.section-publications) .academic-group.dated-list li > em:first-child {
    display: block;
    position: static;
    width: auto;
    margin-bottom: 2px;
  }
}
@media (max-width: 800px) {
  .page__content .academic-card:not(.section-publications) .academic-group.dated-list li { padding-left: 28px; }
}

/* Patents: title first, then inventors and compact registration details. */
.section-patents .patent-title,
.section-patents .patent-inventors,
.section-patents .patent-meta {
  display: block;
}
.section-patents .patent-title {
  color: #2d4d73;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
}
.section-patents .patent-inventors {
  margin-top: 3px;
  color: #526176;
  font-size: 14px;
  line-height: 1.55;
}
.section-patents .patent-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.section-patents .patent-kind {
  padding: 1px 7px;
  border-radius: 5px;
  background: #edf3fa;
  color: #5479a4;
  font-weight: 600;
  white-space: nowrap;
}
.section-patents .patent-number {
  color: #71849b;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
@media (min-width: 1001px) {
  .section-patents .dated-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 18px;
    align-items: baseline;
  }
  .section-patents .patent-title { grid-column: 1; grid-row: 1; }
  .section-patents .patent-meta {
    grid-column: 2;
    grid-row: 1;
    margin-top: 0;
    justify-self: end;
  }
  .section-patents .patent-inventors {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}
/* Funding: give the project title, role, and local description separate weight. */
.section-fundings .funding-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.section-fundings .funding-title {
  flex: 1;
  min-width: 0;
  color: #334e70;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
}
.section-fundings .funding-role {
  display: inline-flex;
  flex: none;
  align-items: center;
  margin-top: 2px;
  padding: 3px 8px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
  white-space: nowrap;
}
.section-fundings .funding-role--lead {
  color: #38699e;
  background: #eef4fb;
}
.section-fundings .funding-role--participant {
  color: #66778e;
  background: #f1f4f8;
}
.section-fundings .funding-local {
  display: block;
  margin-top: 3px;
  color: #718096;
  font-size: 13px;
  line-height: 1.55;
}
@media (max-width: 800px) {
  .section-fundings .funding-main { flex-wrap: wrap; gap: 4px 10px; }
  .section-fundings .funding-title { flex-basis: 100%; }
  .section-fundings .funding-role { margin-top: 0; }
}

@media print {
  #main > .sidebar.sidebar--fits { position: static; }
}


/* Final cascade fix for dated lists. Keep this block at the end of the file. */
@media (min-width: 1001px) {
  .page__content .academic-card:not(.section-publications) .academic-group.dated-list li {
    padding-left: calc(32px + var(--date-column)) !important;
  }
  .page__content .academic-card:not(.section-publications) .academic-group.dated-list li > em:first-child {
    position: absolute !important;
    left: 32px !important;
    top: 7px !important;
    width: calc(var(--date-column) - 12px) !important;
  }
}
@media (max-width: 1000px) {
  .page__content .academic-card:not(.section-publications) .academic-group.dated-list li {
    padding-left: 32px !important;
  }
  .page__content .academic-card:not(.section-publications) .academic-group.dated-list li > em:first-child {
    position: static !important;
    display: block !important;
    width: auto !important;
    margin-bottom: 2px !important;
  }
}
@media (max-width: 800px) {
  .page__content .academic-card:not(.section-publications) .academic-group.dated-list li {
    padding-left: 28px !important;
  }
}

/* Experience: date, timeline marker, and an institution-led entry. */
.section-experience .experience-timeline {
  --timeline-date-width: 162px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.page__content .academic-card.section-experience .experience-timeline > li {
  display: grid;
  grid-template-columns: var(--timeline-date-width) 18px minmax(0, 1fr);
  column-gap: 16px;
  position: relative;
  margin: 0;
  padding: 0 0 19px;
}
.page__content .academic-card.section-experience .experience-timeline > li:last-child {
  padding-bottom: 0;
}
.section-experience .experience-date {
  grid-column: 1;
  padding-top: 2px;
  color: var(--muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
  text-align: right;
  white-space: nowrap;
}
.section-experience .experience-entry {
  display: flex;
  grid-column: 3;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}
.section-experience .experience-institution {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--heading);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.45;
}
.section-experience .experience-logo {
  display: inline-flex;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border: 1px solid #e3eaf3;
  border-radius: 9px;
  background: #fff;
  box-sizing: border-box;
}
.page__content .section-experience .experience-logo img {
  display: block;
  flex: none;
  width: 29px;
  height: 29px;
  margin: 0;
  object-fit: contain;
}
.page__content .section-experience .experience-logo--microsoft img {
  width: 23px;
  height: 23px;
}
.page__content .section-experience .experience-logo--nus img {
  width: 25px;
  height: 32px;
  object-fit: cover;
  object-position: left center;
}
.page__content .section-experience .experience-logo--jd img {
  border-radius: 7px;
}
.section-experience .experience-role {
  color: #394b63;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}
.section-experience .experience-detail {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.page__content .academic-card.section-experience .experience-timeline > li::before {
  z-index: 1;
  top: 7px;
  left: calc(var(--timeline-date-width) + 20px);
  box-sizing: border-box;
  width: 10px;
  height: 10px;
  border: 1.5px solid #6f95c5;
  background: #fff;
  box-shadow: 0 0 0 3px #f0f5fc;
  transform: none;
}
.page__content .academic-card.section-experience .experience-timeline > li:not(:last-child)::after {
  position: absolute;
  top: 12px;
  bottom: -12px;
  left: calc(var(--timeline-date-width) + 24px);
  width: 1px;
  background: #d7e4f3;
  content: "";
}
@media (max-width: 800px) {
  .page__content .academic-card.section-experience .experience-timeline > li {
    display: block;
    padding: 0 0 23px 27px;
  }
  .section-experience .experience-date {
    display: block;
    padding: 0;
    margin-bottom: 5px;
    font-size: 13px;
    text-align: left;
  }
  .section-experience .experience-institution { font-size: 15px; }
  .section-experience .experience-role { font-size: 14px; }
  .section-experience .experience-detail { font-size: 13px; }
  .page__content .academic-card.section-experience .experience-timeline > li::before {
    top: 4px;
    left: 4px;
  }
  .page__content .academic-card.section-experience .experience-timeline > li:not(:last-child)::after {
    top: 9px;
    bottom: -9px;
    left: 8px;
  }
}

/* Publication venue labels: aligned two-column layout on desktop.
   Keep every paper title on the same vertical line while allowing
   long venue labels such as "EMNLP Findings 2026" to stay on one line. */
@media (min-width: 801px) {
  .section-publications .academic-group li {
    padding-left: 144px;
  }

  .section-publications li > code:first-child {
    position: absolute;
    left: 12px;
    top: 11px;
    display: inline-flex;
    align-items: center;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 4px 8px;
    white-space: nowrap;
  }
}

/* News year navigation aligned with the section heading text. */
.news-heading-block {
  margin: 0 0 15px;
}

.section-news .news-heading-block h1 {
  margin-bottom: 7px;
}

.news-year-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 22px;
  margin: 0 0 0 54px;
  padding: 0;
}

.news-year-tab {
  appearance: none;
  position: relative;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 5px 2px 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #808c9d;
  box-shadow: none;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  text-align: center;
  cursor: pointer;
  transition: color .18s ease;
}

.news-year-count {
  color: #9aa9bd;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.news-year-tab::after {
  position: absolute;
  bottom: 0;
  left: 2px;
  width: 0;
  height: 2px;
  border-radius: 3px;
  background: #4f7fbd;
  content: "";
  transition: width .18s ease;
}

.news-year-tab:hover {
  color: #3f70b1;
}

.news-year-tab.is-active,
.news-year-tab[aria-pressed="true"] {
  color: #3568a8;
}

.news-year-tab.is-active .news-year-count,
.news-year-tab[aria-pressed="true"] .news-year-count {
  color: #809ec3;
}

.news-year-tab.is-active::after,
.news-year-tab[aria-pressed="true"]::after {
  width: 32px;
}

.news-year-tab:focus-visible {
  outline: 2px solid #7997c5;
  outline-offset: 2px;
}

.section-news #news-by-year ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.section-news #news-by-year li {
  position: relative;
  margin: 0 0 4px;
  padding: 7px 10px 7px 32px;
  border-radius: 10px;
  font-size: 15px;
  transition: background-color .18s ease, transform .18s ease;
}

.section-news #news-by-year li::before {
  position: absolute;
  top: 1.35em;
  left: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5f8fd3;
  box-shadow: 0 0 0 4px rgba(224, 234, 249, .88);
  content: "";
  transform: translateY(-50%);
}

.section-news #news-by-year li:hover {
  background: rgba(239, 245, 253, .72);
  transform: translateX(2px);
}

.section-news #news-by-year li[hidden] {
  display: none !important;
}

.section-news #news-by-year em {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 6px;
  background: #f0f4fa;
  color: #526d96;
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 800px) {
  .news-heading-block {
    margin-bottom: 13px;
  }

  .section-news .news-heading-block h1 { margin-bottom: 6px; }

  .news-year-tabs {
    flex-wrap: nowrap;
    max-width: calc(100% - 45px);
    overflow-x: auto;
    gap: 20px;
    margin-left: 45px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .news-year-tabs::-webkit-scrollbar { display: none; }

  .news-year-tab {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 7px 2px 11px;
  }

  .section-news #news-by-year li {
    padding-left: 28px;
  }

  .section-news #news-by-year li::before {
    left: 7px;
    width: 7px;
    height: 7px;
  }

  .section-news #news-by-year li:hover { transform: none; }
}
