:root {
  --accent: #6a5cd2;
  --text-main: #2c2c2c;
  --text-muted: #5f6470;
  --border-soft: #ececf5;
  --fs-display: 2.3rem;
  --fs-content-title: 1.3rem;
  --fs-content-body: 1.03rem;
  --fs-content-meta: 0.97rem;
}

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

body {
  color: var(--text-main);
}

.navbar .nav-link.active span {
  color: var(--accent);
}

.site-content {
  display: flex;
  flex-direction: column;
}

#about {
  order: 0;
}

#research {
  order: 1;
}

#publications {
  order: 2;
}

#research-experience {
  order: 3;
}

#education {
  order: 4;
}

#awards {
  order: 5;
}

#services {
  order: 6;
}

#teaching {
  order: 7;
}

#industry {
  order: 8;
}

#about .about-main,
#research .section-body,
#education .section-body,
#research-experience .section-body,
#industry .section-body,
#teaching .section-body,
#services .section-body,
#publications .section-body,
#awards .section-body {
  font-size: var(--fs-content-body);
  line-height: 1.6;
}

#about .about-main > p:first-child {
  font-size: var(--section-heading-size);
  line-height: 1.5;
}

#research .section-body {
  font-size: var(--fs-content-title);
  line-height: 1.6;
}

.site-profile .avatar {
  box-shadow: none;
}

#profile .profile-role {
  color: var(--text-main);
  font-size: var(--fs-content-title);
  line-height: 1.45;
  font-weight: 700;
}

#profile .profile-contact-text {
  margin: 0;
  font-size: var(--fs-content-body);
  font-weight: 500;
}

#profile .profile-contact {
  margin-top: 0.95rem;
}

#profile .profile-contact-text a {
  color: inherit;
  text-decoration: none;
}

#profile .profile-contact-text a:hover,
#profile .profile-contact-text a:focus {
  color: var(--accent);
  text-decoration: none;
}

#profile .profile-contact-text span {
  font-weight: 400;
}

#profile .profile-contact-text strong {
  font-weight: 700;
}

#profile .sidebar-note {
  margin: 1rem 0 0;
  font-size: 1.3rem;
  line-height: 1.55;
  font-weight: 600;
  color: #ff3b0a;
}

#profile .network-icon {
  margin-top: 1.05rem;
}

#profile .network-icon a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

#profile .network-icon a:hover,
#profile .network-icon a:focus {
  opacity: 0.82;
  text-decoration: none;
}

#profile .network-icon .big-icon {
  font-size: var(--fs-display);
}

#profile .h2 {
  font-size: var(--fs-display);
  font-weight: 700;
}

#profile .network-icon .icon-email {
  color: #24292f;
}

#profile .network-icon .icon-resume {
  color: #d44737;
}

#profile .network-icon .icon-linkedin {
  color: #0a66c2;
}

#profile .network-icon .icon-github {
  color: #24292f;
}

#profile .network-icon .icon-scholar {
  color: #4285f4;
}

#profile .network-icon .icon-x {
  color: #1d9bf0;
}

.entry-list {
  display: block;
}

.resume-entry {
  padding: 0;
  margin-bottom: 0.85rem;
  border-bottom: 0;
}

.home-section {
  scroll-margin-top: 38px;
}

.entry-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 1.35rem;
  row-gap: 0.18rem;
  align-items: baseline;
}

.entry-grid > * {
  margin: 0;
  min-width: 0;
}

.entry-grid h3 {
  font-size: var(--fs-content-title);
  margin: 0;
  font-weight: 700;
}

.entry-grid h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.entry-grid h3 a:hover,
.entry-grid h3 a:focus {
  color: var(--accent);
  text-decoration: none;
}

.entry-subtitle,
.role-title {
  margin: 0;
  color: var(--text-main);
  font-size: var(--fs-content-body);
  font-weight: 400;
}

.role-title {
  color: var(--text-main);
  font-weight: 400;
}

.entry-meta {
  margin: 0;
  color: var(--text-main);
  font-size: var(--fs-content-meta);
  font-weight: 400;
  white-space: nowrap;
  justify-self: end;
  text-align: right;
}

.entry-side-note {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--fs-content-meta);
  font-weight: 400;
  justify-self: end;
  text-align: right;
}

.entry-side-note strong {
  color: var(--text-main);
  font-weight: 700;
}

.entry-side-note a {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
}

.entry-side-note a:hover,
.entry-side-note a:focus {
  color: inherit;
  text-decoration: underline;
}

.entry-side-note .person-link {
  color: var(--accent);
  font-weight: 700;
}

.entry-side-note .person-link:hover,
.entry-side-note .person-link:focus {
  color: var(--accent);
}

.entry-side-note-empty {
  visibility: hidden;
}

.entry-list .resume-entry:last-child {
  margin-bottom: 0;
}

.entry-subtitle a,
.pub-text a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.entry-subtitle a:hover,
.pub-text a:hover,
.entry-subtitle a:focus,
.pub-text a:focus {
  text-decoration: underline;
}

.site-content > .home-section:not(#about) .section-heading.mb-3 {
  margin-bottom: 0.75rem !important;
}

.site-content > .home-section:not(#about) .section-heading h1 {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.section-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1em;
  line-height: 1;
  transform: translateY(-1px);
}

.resume-bullets {
  margin: 0.55rem 0 0;
  padding-left: 1.2rem;
}

.resume-bullets li {
  margin-bottom: 0.38rem;
}

.resume-bullets li:last-child {
  margin-bottom: 0;
}

.pub-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  column-gap: 16px;
  margin-bottom: 18px;
  align-items: start;
}

.pub-teaser,
.pub-text {
  align-self: start;
  margin-top: 0;
}

.pub-teaser {
  transform: none;
}

#publications .article-style .pub-image {
  display: block;
  margin: 0;
  width: 100%;
  height: auto;
  border-radius: 14px;
  vertical-align: top;
}

.pub-text {
  min-width: 0;
  font-size: var(--fs-content-body);
  line-height: 1.6;
  padding-top: 0;
}

.pub-text > * {
  margin-top: 0;
}

.pub-text p {
  margin: 0 0 0.35rem;
}

.pub-title {
  color: var(--text-main);
  margin: 0 0 0.28rem;
  font-size: var(--fs-content-title);
  font-weight: 700;
  line-height: 1.18;
}

.pub-links a + a {
  margin-left: 0.4rem;
}

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid #e6e6e6;
  background-color: #fafafa;
  width: 100%;
  padding: 1.4rem 1rem;
  text-align: center;
  font-size: var(--fs-content-body);
  color: #4b4b4b;
}

.site-footer .footer-inner {
  max-width: none;
  width: 100%;
  margin: 0 auto;
}

.site-footer p {
  margin: 0;
  font-weight: 400;
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    display: none;
    width: 100%;
    background: #fff;
    padding-top: 0.75rem;
  }

  .navbar-collapse.show {
    display: block;
  }

  .navbar-nav {
    padding-bottom: 0.4rem;
  }

  .entry-grid {
    grid-template-columns: 1fr;
    row-gap: 0.12rem;
  }

  .entry-meta,
  .entry-side-note {
    white-space: normal;
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 768px) {
  .pub-row {
    grid-template-columns: 1fr;
    row-gap: 0.75rem;
  }

  .pub-teaser {
    transform: none;
    width: 100%;
    max-width: 300px;
  }
}
