body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
}

b {
  font-weight: 500;
}

strong {
  font-weight: 600;
}

.h1, .h2, .h3, .h4, .h5, .h6,
h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
}

.fs-7 {
  font-size: 0.8rem !important;
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

html {
  scroll-padding-top: 5.5rem;
}

.text-bg-gold {
  color: #fff;
  background-color: #b8860b;
}

.text-goldenrod {
  color: #daa520;
}

.text-royalblue {
  color: #4169e1;
}

.text-mediumblue {
  color: #0000cd;
}

.text-teal {
  color: #0f766e;
}

.text-ochre {
  color: #ad6500;
}

.text-violet {
  color: #6d28d9;
}

.lab-icon {
  margin-right: 0.2em;
  font-size: 1em;
}

.custom-url a {
  color: #0000cd;
  text-decoration: none;
}

.custom-url a:focus,
.custom-url a:hover {
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.cursor-pointer {
  cursor: pointer;
}

.venue-inline {
  font-size: 0.75rem;
  color: var(--bs-secondary-color);
}

.venue-inline a {
  font-style: italic;
  color: var(--bs-secondary-color);
}

.venue-inline a:focus,
.venue-inline a:hover {
  text-decoration: none;
  color: #0000cd;
}

.icon-link {
  text-decoration: none;
}

.btn-sm {
  --bs-btn-padding-y: 0.15rem;
}

.badge {
  font-weight: 500;
  max-width: 100%;
  white-space: normal;
  line-height: 1.3;
  text-align: left;
}

.nav-link {
  --bs-nav-link-color: dimgray;
}

.navbar-nav {
  --bs-nav-link-hover-color: black;
}

.nav-link.active {
  font-weight: 400;
}

.header-small {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.header-medium {
  font-size: 1.5rem;
  font-weight: 400;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.header-large {
  font-size: 1.75rem;
  font-weight: 400;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

#profile-card {
  background: linear-gradient(135deg, #fff4ec 0%, #fbfbfd 45%, #eaf1fb 100%);
  box-shadow: 0 0 5px #c8c8c8;
  border-radius: 20px;
}

.profile-university img {
  height: 1.1em;
  margin-right: 0.5rem;
  vertical-align: -0.15em;
}

#profile-picture {
  width: 150px;
  height: 200px;
  object-fit: cover;
  object-position: top center;
  border-radius: 10px;
  transition: opacity 0.35s ease;
}

@media (min-width: 768px) {
  #profile-picture {
    width: 165px;
    height: 220px;
  }
}

.email::after {
  content: attr(data-user) "@" attr(data-domain) "." attr(data-tld);
}

.custom-tooltip {
  --bs-tooltip-bg: slateblue;
  --bs-tooltip-color: white;
  --bs-tooltip-opacity: 1.0;
}

.research-focus-list {
  --fa-li-margin: 2rem;
}

.research-focus-list > li {
  margin-bottom: 0.125rem;
}

.previous-work-list {
  padding-left: 2rem;
}

.previous-work-list > li {
  padding-left: 0.125rem;
}

.previous-work-list > li::marker {
  color: #8a8f98;
  font-size: 0.9em;
}

.previous-work-list > li + li {
  margin-top: 0.35rem;
}

.research-category {
  display: inline-block;
  margin-right: 0.1rem;
  padding: 0.1em 0.45em;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.3rem;
  background-color: var(--bs-tertiary-bg);
  font-size: 0.875em;
  font-weight: 400;
  line-height: 1.4;
}

.news-list > div {
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.news-date {
  position: relative;
  flex: 0 0 4.5rem;
  padding-right: 0.5rem;
  color: var(--bs-secondary-color);
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.5rem;
  white-space: nowrap;
}

.news-date::after {
  content: "";
  position: absolute;
  top: 0.25rem;
  right: 0;
  bottom: 0.25rem;
  width: 1px;
  background-color: var(--bs-border-color);
}

.list-space-1 > li {
  margin-bottom: 0.25rem;
}

.list-space-2 > li {
  margin-bottom: 0.5rem;
}

.paper {
  padding: 0.8rem 1rem;
  margin-top: 1.5rem;
  border-left: 0.25rem solid #466eb4;
  border-radius: 5px;
  box-shadow: 0 0 5px #aaaaaa;
}

.paper > div:not(.paper-title) {
  margin-top: 0.25rem;
}

.paper > div:first-child {
  margin-top: 0;
}

.paper-title {
  font-weight: 500;
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

.paper-authors > span {
  white-space: nowrap;
}

.paper-venue {
  color: var(--bs-secondary-color);
}

.paper-links > a,
.paper-links > button {
  margin-top: 0.25rem;
}

.paper-links > a > i,
.paper-links > button > i {
  margin-right: 0.25rem;
}

.paper-links .btn-sm {
  --bs-btn-font-weight: 300;
  --bs-btn-font-size: 0.8rem;
}

.patent-list ul {
  margin-left: -0.7rem;
}

.logo {
  height: 1.3rem;
}

.course > td:first-child {
  width: 30%;
  white-space: nowrap;
}

.research-highlight .paper-authors {
  color: var(--bs-secondary-color);
}

.research-highlight hr {
  position: relative;
  z-index: -1;
}

.research-highlight-thumbnail img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 160px;
  border-radius: 5px;
  background-color: #fff;
  box-shadow: 0 0 5px #aaaaaa;
  padding: 0.25rem;
  transition: transform 0.15s;
}

@media (prefers-reduced-motion: reduce) {
  .research-highlight-thumbnail img,
  #profile-picture {
    transition: none;
  }
}

@media (min-width: 768px) {
  .research-highlight-thumbnail img:hover {
    transform: scale(1.8);
  }
}

.last-p-mb-0 > p:last-child {
  margin-bottom: 0;
}

.carousel-item > img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 400px;
  border-radius: 10px;
}

.carousel-control-next,
.carousel-control-prev {
  filter: invert(80%);
}

#group-photo,
.lab-group-photo {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 460px;
  border-radius: 10px;
  box-shadow: 0 0 5px #cccccc;
}

.bibtex-pre {
  margin: 0;
  padding: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  background: transparent;
  border: 0;
}
