:root {
  --text: #333333;
  --muted: #666666;
  --link: #345b73;
  --accent: #2f617c;
  --line: #e5e5e5;
  --panel-bg: #f8f9fa;
  --panel-border: #e6e9eb;
  --research-bg: #f7fafc;
  --research-border: #dfe9ef;
  --soft: #f7f7f7;
  --page-width: 1200px;
  --font: "Trebuchet MS", Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 74px;
}

body {
  margin: 0;
  color: var(--text);
  background: #ffffff;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover,
a:focus-visible {
  color: var(--accent);
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 7px 10px;
  color: #ffffff;
  background: #333333;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--page-width), calc(100% - 40px));
  min-height: 52px;
  margin: 0 auto;
}

.site-mark {
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: none;
  scrollbar-width: none;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}

.primary-nav::-webkit-scrollbar {
  display: none;
}

.primary-nav a {
  position: relative;
  flex: 0 0 auto;
  padding: 15px 0 13px;
  color: #555555;
  font-weight: 700;
  text-decoration: none;
}

.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transition: transform 150ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav a.is-active {
  color: var(--accent);
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after,
.primary-nav a.is-active::after {
  transform: scaleX(1);
}

.page-shell {
  display: grid;
  grid-template-areas: "sidebar content";
  grid-template-columns: 230px minmax(0, 1fr);
  column-gap: 42px;
  width: min(var(--page-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 48px;
}

.sidebar-column {
  position: sticky;
  top: 80px;
  grid-area: sidebar;
  align-self: start;
}

.profile {
  position: static;
}

.portrait-frame {
  width: 168px;
  height: 168px;
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--soft);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.profile h1 {
  margin: 0 0 5px;
  font-size: 20px;
  line-height: 1.2;
}

.profile-role {
  margin: 0 0 12px;
  color: #444444;
  font-size: 15px;
  font-weight: 700;
}

.profile-affiliation {
  margin: 0 0 17px;
  color: #444444;
  font-size: 14px;
  line-height: 1.5;
}

.profile-meta {
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.profile-meta li {
  margin-bottom: 7px;
}

.profile-email-address {
  display: block;
  overflow-wrap: anywhere;
}

.profile-meta a {
  text-decoration: none;
}

.profile-meta .profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: center;
  margin-bottom: 0;
}

.profile-icon-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #d7e2e8;
  border-radius: 50%;
  color: var(--link);
  background: #f7fafc;
  line-height: 0;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.profile-icon-link:hover,
.profile-icon-link:focus-visible {
  color: var(--accent);
  border-color: #aac1ce;
  background: #eaf2f6;
}

.profile-icon {
  display: block;
  width: 20px;
  height: 20px;
  background-color: currentColor;
  -webkit-mask: var(--profile-icon) center / contain no-repeat;
  mask: var(--profile-icon) center / contain no-repeat;
}

.profile-icon-homepage {
  --profile-icon: url("icon/homepage.svg");
}

.profile-icon-dblp {
  --profile-icon: url("icon/dblp.svg");
}

.profile-icon-google-scholar {
  --profile-icon: url("icon/google-scholar.svg");
}

.profile-icon-linkedin {
  --profile-icon: url("icon/linkedin.svg");
}

.profile-icon-x {
  --profile-icon: url("icon/x.svg");
}

.content {
  grid-area: content;
  min-width: 0;
}

.home-block {
  margin: 0 0 14px;
  padding: 15px 18px 17px;
  border: 1px solid var(--research-border);
  border-radius: 10px;
  background: var(--research-bg);
  box-shadow: 0 1px 2px rgba(34, 43, 50, 0.04);
  color: #292929;
  font-size: 16px;
  line-height: 1.4;
}

.research-title {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.2;
}

.research-list {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  overflow: hidden;
  margin: 0 -7px;
  padding: 0;
  -webkit-padding-start: 0;
  list-style: none !important;
  list-style-type: none !important;
}

.research-item {
  float: left;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  box-sizing: border-box;
  width: 33.3333%;
  min-height: 50px;
  margin: 0;
  padding: 4px 7px;
  list-style: none !important;
  list-style-type: none !important;
  vertical-align: middle;
}

.research-item::marker {
  content: "";
  font-size: 0;
}

.research-icon {
  display: inline-block;
  -webkit-flex: 0 0 34px;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  margin-right: 9px;
  vertical-align: middle;
}

.research-item span {
  display: inline-block;
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 auto;
  flex: 1 1 auto;
  width: calc(100% - 47px);
  min-width: 0;
  color: #27343d;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  vertical-align: middle;
}

.content-loading,
.content-error {
  margin: 0;
  color: var(--muted);
  font-style: italic;
}

.content-error {
  color: #8b2f2f;
}

.content-section .module-content {
  color: #292929;
  font-size: 16px;
}

.content-section {
  margin: 0 0 14px;
  padding: 20px 22px 22px;
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  background: var(--panel-bg);
  box-shadow: 0 1px 2px rgba(34, 43, 50, 0.04);
}

.content-section:last-of-type {
  margin-bottom: 0;
}

h2 {
  margin: 0 0 15px;
  font-size: 21px;
  line-height: 1.2;
}

h3 {
  margin: 18px 0 8px;
  font-size: 17px;
  line-height: 1.3;
}

p {
  margin: 0 0 8px;
}

ul,
ol {
  margin: 0;
  padding-left: 22px;
}

li {
  margin-bottom: 5px;
}

.experience-list,
.publication-list,
.funding-list,
.awards-list,
.service-list,
.talk-list,
.teaching-list {
  padding-left: 22px;
}

.experience-list {
  margin: -3px 0 0;
  padding: 0;
  list-style: none;
}

.experience-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  margin: 0;
  padding: 9px 0;
  border-top: 1px solid #eeeeee;
}

.experience-item:first-child {
  padding-top: 3px;
  border-top: 0;
}

.experience-item:last-child {
  padding-bottom: 1px;
}

.experience-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
}

.institution-logo {
  width: 48px;
  height: 25px;
  object-fit: contain;
}

.experience-body {
  min-width: 0;
}

.experience-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  line-height: 1.3;
}

.experience-position {
  color: #252525;
  font-size: 16px;
}

.experience-time {
  flex: 0 0 auto;
  color: #404040;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.experience-institute {
  margin-top: 1px;
  color: #383838;
  font-size: 15px;
  line-height: 1.35;
}

.experience-notes {
  margin-top: 3px;
  color: #4a4a4a;
  font-size: 14px;
  line-height: 1.35;
}

.experience-detail {
  margin: 0;
}

.experience-detail + .experience-detail {
  margin-top: 1px;
}

.awards-list li {
  margin-bottom: 6px;
}

.funding-list > li {
  margin-bottom: 13px;
}

.publication-note {
  margin: -5px 0 14px;
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
}

.publication-list {
  padding-left: 0;
  list-style: none;
}

#publication .publication-list + h3 {
  margin-top: 28px;
}

.publication-list > li {
  margin: 0;
  padding: 11px 0 12px;
  border-top: 1px solid #e1e5e7;
  line-height: 1.45;
}

.publication-list > li:first-child {
  padding-top: 1px;
  border-top: 0;
}

.publication-list > li:last-child {
  padding-bottom: 1px;
}

.publication-title-row,
.publication-authors,
.publication-venue {
  font-size: inherit;
}

.publication-title {
  color: #294f65;
  font-size: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.publication-status {
  color: #555555;
  font-size: inherit;
  font-style: italic;
}

.publication-authors {
  margin-top: 2px;
  color: #333333;
}

.publication-venue {
  margin-top: 1px;
  color: #303030;
}

.publication-level {
  display: inline-block;
  margin-right: 6px;
  padding: 0 5px;
  border: 1px solid rgba(47, 97, 124, 0.22);
  border-radius: 999px;
  color: #294f65;
  background: rgba(47, 97, 124, 0.09);
  font-size: inherit;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}

.self-author {
  padding: 0 2px;
  border-radius: 3px;
  color: #294f65;
  background: rgba(47, 97, 124, 0.09);
  font-size: inherit;
  font-weight: 800;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.paper-note {
  font-style: italic;
  font-weight: 700;
}

.best-paper {
  display: inline;
  color: #8a5618;
  white-space: nowrap;
}

.best-paper img {
  width: 32px;
  height: 22px;
  margin: 0 5px 0 3px;
  object-fit: cover;
  vertical-align: middle;
}

.service-group {
  margin-bottom: 15px;
}

.service-group > strong {
  display: block;
  margin-bottom: 5px;
}

.service-group ul {
  margin-left: 4px;
}

.service-list > li,
.talk-list > li,
.teaching-list > li {
  margin-bottom: 7px;
}

.teaching-school {
  margin: 14px 0 7px;
  font-weight: 700;
  text-decoration: underline;
}

.visitor-map {
  width: min(220px, 100%);
  margin-top: 20px;
}

.site-footer {
  width: min(var(--page-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 13px 0 25px;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

@media (max-width: 820px) {
  .primary-nav {
    gap: 18px;
  }

  .page-shell {
    grid-template-columns: 180px minmax(0, 1fr);
    column-gap: 30px;
  }

  .portrait-frame {
    width: 148px;
    height: 148px;
  }
}

@media (max-width: 1050px) {
  .research-item {
    width: 50%;
  }
}

@media (max-width: 680px) {
  html {
    scroll-padding-top: 91px;
  }

  .nav-inner {
    display: block;
    width: calc(100% - 28px);
    padding-top: 7px;
  }

  .site-mark {
    display: block;
    margin-bottom: 1px;
  }

  .primary-nav {
    gap: 18px;
  }

  .primary-nav a {
    padding: 7px 0 10px;
    font-size: 14px;
  }

  .page-shell {
    display: flex;
    flex-direction: column;
    width: calc(100% - 28px);
    padding-top: 23px;
  }

  .sidebar-column {
    display: contents;
  }

  .profile {
    position: static;
    order: 1;
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 0 18px;
    margin-bottom: 22px;
    padding-bottom: 19px;
    border-bottom: 1px solid var(--line);
  }

  .portrait-frame {
    grid-row: 1 / 5;
    width: 112px;
    height: 112px;
    margin: 0;
  }

  .profile h1,
  .profile-role,
  .profile-affiliation,
  .profile-meta {
    grid-column: 2;
  }

  .profile h1 {
    align-self: end;
    font-size: 20px;
  }

  .profile-role {
    margin-bottom: 5px;
  }

  .profile-affiliation {
    margin-bottom: 8px;
  }

  .profile-meta {
    grid-column: 1 / -1;
    columns: 1;
    margin-top: 13px;
  }

  .visitor-map {
    order: 3;
    width: min(220px, 100%);
    margin: 24px auto 0;
  }

  .content {
    order: 2;
  }

  .home-block {
    margin-bottom: 12px;
    padding: 14px 15px;
    border-radius: 8px;
  }

  .content-section {
    margin-bottom: 12px;
    padding: 17px 15px 18px;
    border-radius: 8px;
  }
}

@media (max-width: 520px) {
  .research-item {
    width: 100%;
    min-height: 46px;
    padding: 3px 7px;
  }
}

@media (max-width: 430px) {
  .profile {
    grid-template-columns: 96px 1fr;
    gap: 0 14px;
  }

  .portrait-frame {
    width: 96px;
    height: 96px;
  }

  .profile-meta {
    columns: 1;
  }

  .experience-item {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 9px;
    padding: 9px 0;
  }

  .institution-logo {
    width: 41px;
    height: 23px;
  }

  .experience-heading {
    display: block;
  }

  .experience-time {
    display: block;
    margin-top: 1px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
