body {
  background-color: #fff;
  padding:50px;
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  color:#555555;
  font-weight:400;
}

h1, h2, h3, h4, h5, h6 {
  color:#222;
  margin:0 0 20px;
}

ul, ol, table, pre, dl {
  margin:0 0 20px;
}

p {
  text-align: justify;
  text-justify: inter-word;
}

h1, h2, h3 {
  line-height:1.1;
}

h1 {
  font-size:42px;
  font-weight: 500;
}

h2 {
  font-size:25px;
  color:#393939;
  font-weight: 500;
  scroll-margin-top: 60px;
}

h3, h4, h5, h6 {
  color:#494949;
  font-weight: 500;
}

a {
  color:#39c;
  text-decoration:none;
}

a:hover {
  color:#069;
}

a small {
  font-size:11px;
  color:#777;
  margin-top:-0.3em;
  display:block;
}

a:hover small {
  color:#777;
}

.wrapper {
  width:900px;
  margin:0 auto;
}

.profile-img {
    clamp(120px, 35%, 260px);
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    max-width: 100%;
}

.profile {
    display: flex;
    align-items: flex-end;    
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;          
    padding: 16px;
    margin-top: 40px;
}

.profile-img {
    width: clamp(120px, 35%, 260px);
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    max-width: 100%;
}

.profile-text h1 {
    margin: 0 0 8px 0;
}

.profile-text p {
    margin: 4px 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .profile {
        flex-direction: column;   
        align-items: center;      
        text-align: center;
    }

    .profile-text {
        align-items: center;
    }

    .profile-img {
    width: 50%;
    }

    h1{
      font-size: 38px;
    }

    .contact-line {
        text-align: center;
    }

    .bio-text {
        text-align: justify;
    }
  }

header {
  width:100%;
  float:none;
  position:relative;
  -webkit-font-smoothing:subpixel-antialiased;
}

strong {
  color:#222;
  font-weight:600;
}

@media print, screen and (max-width: 960px) {

  div.wrapper {
    width:auto;
    margin:0;
  }

  header, section, footer {
    float:none;
    position:static;
    width:auto;
  }

  header {
    padding-right:320px;
  }

  section {
    border:1px solid #e5e5e5;
    border-width:1px 0;
    padding:20px 0;
    margin:0 0 20px;
  }

  header a small {
    display:inline;
  }

  header ul {
    position:absolute;
    right:50px;
    top:52px;
  }
}

@media print, screen and (max-width: 720px) {
  body {
    word-wrap:break-word;
  }

  header {
    padding:0;
  }

  header ul, header p.view {
    position:static;
  }

  pre, code {
    word-wrap:normal;
  }
}

@media print, screen and (max-width: 480px) {
  body {
    padding:15px;
  }

  header ul {
    width:99%;
  }

  header li, header ul li + li + li {
    width:33%;
  }
}

@media print {
  body {
    padding:0.4in;
    font-size:12pt;
    color:#444;
  }
}

.top-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    backdrop-filter: blur(8px);     
    background: rgba(255, 255, 255, 0.85);
    z-index: 1000;

    border-bottom: 1px solid #ddd;
}

.nav-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 12px 20px;

    display: flex;
    justify-content: space-between; 
    align-items: center;
}

.home-link {
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    color: inherit;  
}

.nav-right a {
    margin-left: 28px;
    text-decoration: none;
    font-size: 16px;
    color: #333;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-right a:hover {
    color: #0077cc;
    text-decoration: underline;
}


body {
    padding-top: 60px;
}

html {
    scroll-behavior: smooth;
}

@media (max-width: 600px) {
    .nav-content {
        padding: 10px 14px;
        gap: 18px;
    }

    .top-banner a {
        font-size: 14px;
    }

    .nav-right a {
    margin-left: 12px;
    }

    h1{
      font-size: 30px;
    }
}

.section-divider {
    height: 1px;
    border: 0;
    background: linear-gradient(to right, #eee, #ccc, #eee);
    margin-top: 45px;
    margin-bottom: 28px;
}

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

.pub-item {
    margin-bottom: 22px;
}

.pub-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 2px;
}

.pub-authors {
    font-size: 14px;
    color: #555;
    margin-bottom: 2px;
}

.pub-venue {
    font-size: 14px;
    font-style: italic;
    color: #666;
    margin-bottom: 4px;
}

.pub-links a {
    text-decoration: none;
    margin-left: 1px;
    margin-right: 1px;
}

.pub-links a:hover {
    text-decoration: underline;
}

.pub-abstract {
    font-size: 14px;
    color: #444;
    line-height: 1.55;
    margin-top: 10px;
    padding: 10px 15px;
    border-left: 3px solid #ddd;
    background: #fafafa;
    border-radius: 4px;
}

.pub-abstract strong {
    display: block;
    margin-bottom: 4px;
}

.pub-co-author-link {
  color: inherit;
  text-decoration: none;
}

.pub-co-author-link:hover {
  text-decoration: underline;
}

.hidden {
    display: none;
}

.teach-row {
    display: flex;
    gap: 16px;
    margin-bottom: 10px;
    font-size: 15px;
    align-items: baseline;
}

.teach-term {
    width: 120px;
    font-weight: 600;
    color: #444;
    flex-shrink: 0;
}

.teach-info {
    white-space: nowrap;
    color: #555555;
    flex-shrink: 0;
}

@media (max-width: 930px) {

    .teach-row {
        display: flex;
        flex-wrap: wrap;      
        gap: 6px 12px;        
        margin-bottom: 12px;
    }

    .teach-info {
        flex: 1 0 100%;       
        white-space: normal;  
        color: #555555;
    }

}

.site-footer {
    margin-top: auto;   
    text-align: center;
    font-size: 13px;
    color: #888;
    padding-top: 80px;
    padding-bottom: 10px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.site-footer p {
    margin: 0;
}