:root {
  --accent: #8b7cf6;
  --accent-soft: #f6f4ff;
  --accent-strong: #4f46e5;
  --accent-muted: #746bdd;
  --accent-border: #dcd7ff;
  --text: #5f6368;
  --heading: #202124;
  --heading-soft: #4b5560;
}

#about,
#news,
#experience,
#publications,
#projects,
#awards {
  scroll-margin-top: 80px;
}

body {
  background-color: #ffffff;
  font-family: 'Arial Rounded MT Bold', Verdana, sans-serif;
  font-size: 16px;
  margin-bottom: 0 !important;
}

h2,
h3,
.publication-card strong,
.project-card strong,
.award-list strong {
  color: var(--heading-soft);
}

.publication-card strong,
.full-publication-list .pub-list-title {
  font-size: 1.04em;
}

.hero-heading {
  margin: 8px auto 26px;
  text-align: center;
}

.main-heading {
  font-family: 'Arial Rounded MT Bold', Verdana, sans-serif;
  max-width: 820px;
  margin: 0 auto;
  color: var(--heading-soft);
  font-size: 1.62em;
  font-weight: 750;
  line-height: 1.22;
}

.heading-kicker,
.heading-main {
  display: block;
}

.heading-kicker {
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 0.76em;
}

.heading-main {
  color: var(--heading-soft);
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.hero-chips span {
  padding: 4px 10px;
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-muted);
  font-size: 13px;
  font-weight: 650;
  animation: hero-chip-float 3.2s ease-in-out infinite;
}

.hero-chips span:nth-child(2) {
  animation-delay: 0.45s;
}

.hero-chips span:nth-child(3) {
  animation-delay: 0.9s;
}

@keyframes hero-chip-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 6px 14px rgba(139, 124, 246, 0.16);
    transform: translateY(-6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-chips span {
    animation: none;
  }
}

.profile-intro {
  margin-bottom: 28px;
}

.intro-lead {
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
}

.news-box {
  max-height: 220px;
  overflow-y: auto;
  padding: 10px 14px;
  background: var(--accent-soft);
  border-radius: 10px;
  margin-bottom: 20px;
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-list li {
  margin-bottom: 10px;
  line-height: 1.5;
}

.news-date {
  display: inline-block;
  min-width: 78px;
  font-weight: 400;
  color: var(--accent);
}

.link-row,
.project-badges,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.link-row {
  margin-top: 10px;
}

.homepage-link,
.project-badges a,
.project-badges span {
  color: var(--accent-muted) !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
}

.homepage-link::before,
.project-badges a::before,
.project-badges span::before {
  content: "[";
}

.homepage-link::after,
.project-badges a::after,
.project-badges span::after {
  content: "]";
}

.education-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.education-card {
  display: flex;
  align-items: center;
  padding: 16px;
  margin-bottom: 0;
  border-radius: 12px;
  background: #f9f9f9;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  box-sizing: border-box;
  color: var(--text);
}

.education-card:hover,
.publication-card:hover,
.project-card:hover {
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.education-logos {
  width: 80px;
  margin-right: 20px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.education-logos img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: contain;
}

.education-logos .education-logo-wide {
  width: 86px;
  height: auto;
}

.education-logo-text {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border: 1px solid var(--accent-border);
  border-radius: 8px;
  color: var(--accent-muted);
  background: var(--accent-soft);
  font-weight: 750;
}

.education-info {
  font-family: "Segoe UI", sans-serif;
  line-height: 1.55;
}

.education-info strong {
  color: var(--heading);
  font-size: 1.1em;
}

.education-info ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.publication-card,
.project-card {
  padding: 3px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  background: #fff;
  box-sizing: border-box;
  margin-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #5f6368;
}

.homepage-card-body {
  display: flex;
  align-items: center;
  gap: 20px;
}

.homepage-media {
  position: relative;
  width: 320px;
  height: 180px;
  overflow: hidden;
  flex: 0 0 320px;
  border-radius: 8px;
  background: #fff;
}

.homepage-media img,
.homepage-media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.full-publication-list .pub-list-title {
  color: var(--heading-soft);
  font-weight: 750;
}

.publication-card i,
.pub-list-authors {
  color: #6b7280;
  font-size: 15px;
}

.publication-card i strong,
.pub-list-authors strong {
  color: var(--accent-muted);
}

.pub-badge-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 4px 4px 0;
}

.publication-card .pub-badge-row + .link-row.compact {
  display: inline-flex;
  margin-top: 0;
  vertical-align: middle;
}

.publication-card p,
.project-card p {
  margin: 8px 0;
  line-height: 1.55;
}

.pub-button-container {
  display: flex;
  gap: 10px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.pub-button {
  display: inline-block;
  background-color: #fff;
  border: 1px solid #e4e1ff;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 15px;
  color: var(--accent-muted);
  cursor: pointer;
  transition: all 0.3s ease;
}

.pub-button:hover {
  background-color: var(--accent-soft);
}

.pub-button.active {
  background-color: var(--accent-soft);
  color: var(--accent-muted);
  border-color: var(--accent-border);
}

.award-filter {
  margin-bottom: 12px;
}

.publication-view[hidden],
.award-year-view[hidden] {
  display: none !important;
}

#full-publications {
  max-height: none;
  overflow-y: visible;
  padding-right: 8px;
  margin-bottom: 24px;
  scroll-behavior: smooth;
}

.full-publication-list {
  margin: 0;
  padding-left: 1.25rem;
  color: #5f6368;
  font-size: 16px;
  line-height: 1.6;
}

.author-note {
  margin: 0 0 10px;
  color: #7a8087;
  font-size: 13px;
}

.full-publication-list li {
  margin-bottom: 14px;
}

.pub-list-authors {
  font-style: italic;
}

.pub-list-badge,
.status-pill,
.tag-row span,
.award-level {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 8px;
  border: 1px solid rgba(245, 187, 167, 0.75);
  border-radius: 999px;
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent-muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  vertical-align: 1px;
  white-space: nowrap;
}

.status-pill {
  margin-left: 6px;
}

.project-badges,
.tag-row {
  margin: 8px 0;
}

.pub-list-links {
  white-space: nowrap;
}

.pub-list-links a {
  margin-left: 4px;
  color: var(--accent-muted) !important;
  font-weight: 600;
}

.award-list {
  margin: 6px 0 0;
  padding-left: 1.15rem;
  color: #5f6368;
  line-height: 1.55;
}

.award-list li {
  margin-bottom: 8px;
}

.award-year-heading {
  margin: 16px 0 6px;
  color: var(--heading-soft);
  font-size: 1em;
  scroll-margin-top: 80px;
}

.award-year {
  color: var(--accent);
  font-style: italic;
  font-weight: 600;
}

.page__footer {
  position: static;
  margin-top: 1rem;
}

.page__footer footer {
  margin-top: 0.9rem;
  padding-bottom: 1rem;
}

div.markdown-body a,
div.page__content a,
a {
  color: var(--accent-muted);
  text-decoration: none !important;
  transition: all 0.3s ease;
}

div.markdown-body a:hover,
div.page__content a:hover,
a:hover {
  color: var(--accent-strong);
  text-decoration: none !important;
}

.author__urls a:hover,
.author__urls-wrapper a:hover,
.greedy-nav a:hover {
  text-decoration: none !important;
}

.site-title,
.greedy-nav .site-title,
.masthead__menu-item--lg a,
.author__name {
  white-space: nowrap;
}

@media (min-width: 1025px) {
  #main {
    --sidebar-w: clamp(205px, 18vw, 260px);
    --avatar-w: clamp(143px, 13.5vw, 200px);
    max-width: 1430px;
    padding-left: 3rem;
    padding-right: 3rem;
  }

  .sidebar {
    width: var(--sidebar-w) !important;
    max-width: var(--sidebar-w) !important;
    padding-right: clamp(6px, 1vw, 10px);
  }

  .author__avatar img {
    max-width: var(--avatar-w);
  }

  .sidebar .author__name {
    font-size: clamp(1.05em, 0.75em + 0.5vw, 1.25em);
  }

  .sidebar li {
    font-size: clamp(0.72em, 0.55em + 0.24vw, 0.8em);
  }

  .sidebar p {
    font-size: clamp(0.8em, 0.62em + 0.24vw, 0.9em);
  }

  .page {
    float: right;
    width: calc(100% - var(--sidebar-w) - 52px) !important;
    padding-left: 34px !important;
    padding-right: 0 !important;
  }

  .page__content {
    font-size: 0.98em;
  }
}

@media (max-width: 1024px) {
  #main {
    max-width: none;
    margin-top: 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .sidebar {
    float: none !important;
    position: static !important;
    top: auto !important;
    height: auto !important;
    overflow: visible !important;
    width: 100% !important;
    max-width: none !important;
    padding-top: 0 !important;
    margin-bottom: 1.5em;
  }

  .page {
    float: none !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .sidebar [itemscope] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 14px;
  }

  .author__avatar {
    display: block;
    width: clamp(96px, 14vw, 144px);
    flex: 0 0 clamp(96px, 14vw, 144px);
  }

  .author__avatar img {
    max-width: clamp(96px, 14vw, 144px);
    padding: 4px;
    border: 1px solid var(--accent-border);
  }

  .author__content {
    display: block;
    flex: 1 1 220px;
    padding-left: 0;
    padding-right: 0;
  }

  .sidebar .author__name {
    font-size: 1.18em;
    margin-bottom: 6px;
  }

  .author__bio {
    margin-bottom: 0;
    font-size: 0.95em;
  }

  .author__urls-wrapper {
    display: block;
    width: 100%;
    margin-top: 10px;
  }

  .author__urls-wrapper button {
    display: none;
  }

  .author__urls,
  .author__urls-wrapper.is-open .author__urls {
    display: flex !important;
    flex-wrap: wrap;
    gap: 7px 14px;
    position: static;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .author__urls::before,
  .author__urls::after {
    display: none;
  }

  .sidebar .author__desktop {
    display: block;
  }

  .author__urls li {
    white-space: normal;
  }

  .author__urls a,
  .author__urls span {
    display: inline-flex;
    grid-template-columns: none;
    gap: 0.4em;
    align-items: center;
    margin: 0;
    padding: 2px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #494e52;
    font-size: 15px;
    line-height: 1.35;
  }

  .author__urls a:hover,
  .author__urls span:hover {
    color: var(--accent-muted);
  }

  .author__urls li > a > i,
  .author__urls li > span > i,
  .author__urls li > a > .icon {
    width: auto;
    height: auto;
    font-size: 1em;
  }
}

@media (max-width: 720px) {
  .education-card,
  .homepage-card-body {
    flex-direction: column;
    align-items: stretch;
  }

  .education-logos {
    width: auto;
    margin-right: 0;
    flex-direction: row;
    justify-content: flex-start;
  }

  .homepage-media {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    flex: none;
    margin-bottom: 12px;
  }

  .publication-card strong,
  .project-card strong {
    line-height: 1.35;
  }

  .full-publication-list {
    padding-left: 1rem;
  }
}
