body{
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  margin: 0;
  line-height: 1.65;
  font-size: 16.5px;
  color: #111;
  background: white;
}

/* Page width */
.container{
  max-width: 820px;
  margin: auto;
  padding: 22px 20px;
}

/* Full sticky header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: white;
  border-bottom: 1px solid #e5e5e5;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  padding-top: 18px;
  padding-bottom: 12px;
}

/* Header profile row */
.header-flex{
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 12px;
}

.profile{
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #eee;
}

h1{
  margin: 0 0 6px 0;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.subtitle{
  color: #666;
  margin: 0;
  font-size: 16px;
}

/* Links */
a{
  color: #0b57d0;
  text-decoration: none;
}

a:hover{
  text-decoration: underline;
}

/* Navigation row */
.topbar{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  gap: 20px;
}

.nav-left,
.nav-right{
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;
}

/* Navigation buttons */
.pill{
  display: inline-block;
  border: 1px solid #ddd;
  padding: 6px 12px;
  border-radius: 20px;
  text-decoration: none;
  color: #0b57d0;
  font-size: 14px;
  white-space: nowrap;
  font-family: inherit;
}

button.pill{
  background: white;
  cursor: pointer;
}

.pill:hover{
  background: #f2f2f2;
  text-decoration: none;
}

.active-pill{
  background: #0b57d0 !important;
  color: white !important;
  border-color: #0b57d0 !important;
}

.active-pill:hover{
  background: #0b57d0 !important;
  color: white !important;
}

/* Main content */
main{
  min-height: 100vh;
}

/* Tab behavior */
.page-section{
  display: none;
}

.page-section.active-section{
  display: block;
}

/* Sections */
.section{
  padding: 44px 0 52px 0;
}

h2{
  margin: 0 0 16px 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

/* Paragraph spacing */
p{
  margin: 12px 0 0 0;
}

/* Job market highlight */
.job-market-box{
  margin-top: 34px;
  background: #f7faff;
  border: 1px solid #cfe0ff;
  border-left: 4px solid #0b57d0;
  border-radius: 10px;
  padding: 12px 16px;
  color: #222;
  line-height: 1.45;
  font-size: 16px;
  font-weight: 600;
}

/* Publications and teaching entries */
.pub{
  margin: 0;
  padding: 0.6rem 0;
  border: none;
  border-bottom: 1px solid #eee;
  background: transparent;
  line-height: 1.35;
}

.pub-title{
  font-weight: 600;
  font-size: 16px;
  color: #111;
}

.pub-meta{
  margin-top: 0.12rem;
  font-size: 15px;
  color: #666;
}

.myname{
  color: #4a78c2;
  font-weight: 500;
}

/* arXiv arrow */
.paper-icon{
  text-decoration: none;
  margin-left: 6px;
  font-size: 16px;
}

.paper-icon:hover{
  opacity: 0.65;
  text-decoration: none;
}

/* Footer */
.footer{
  border-top: 1px solid #eee;
  margin-top: 48px;
  color: #666;
  text-align: center;
  padding: 22px 0;
  font-size: 14px;
}

/* Keywords label + tags */
.keywords-label{
  margin-top: 18px;
  margin-bottom: 8px;
  font-style: italic;
  color: #333;
}

.research-tags{
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.research-tags span{
  border: 1px solid #ddd;
  padding: 7px 14px;
  border-radius: 20px;
  background: white;
  font-size: 14px;
}

/* Email popup */
.email-box{
  position: fixed;
  top: 95px;
  right: 40px;
  background: white;
  border: 1px solid #ddd;
  padding: 16px;
  border-radius: 12px;
  display: none;
  z-index: 2000;
  box-shadow: 0 8px 22px rgba(0,0,0,0.15);
  min-width: 220px;
}

.contact-title{
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #444;
}

.email-text{
  font-size: 15px;
  margin-bottom: 12px;
  color: #111;
  font-weight: 500;
}

.email-actions{
  display: flex;
  gap: 10px;
  align-items: center;
}

.copy-btn{
  background: #0b57d0;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 13px;
}

.copy-btn:hover{
  opacity: 0.9;
}

.send-btn{
  background: #f2f2f2;
  color: #111;
  padding: 6px 12px;
  border-radius: 7px;
  text-decoration: none;
  font-size: 13px;
  border: 1px solid #ddd;
}

.send-btn:hover{
  background: #eaeaea;
  text-decoration: none;
}

/* LinkedIn icon button */
.linkedin-icon{
  width: 34px;
  height: 34px;
  background: #0a66c2;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex: 0 0 auto;
}

.linkedin-icon svg{
  display: block;
}

.linkedin-icon:hover{
  opacity: 0.9;
  text-decoration: none;
}

/* Mobile */
@media (max-width: 700px){
  body{
    font-size: 16px;
  }

  .header-flex{
    flex-direction: column;
    align-items: flex-start;
  }

  .profile{
    width: 130px;
    height: 130px;
  }

  .topbar{
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .nav-left,
  .nav-right{
    flex-wrap: wrap;
  }

  .section{
    padding: 34px 0 44px 0;
  }

  .email-box{
    right: 16px;
    top: 90px;
    min-width: 200px;
  }

  .research-tags{
    justify-content: flex-start;
  }
}