@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;700&family=Merriweather:wght@600;700&display=swap');

body {
  font-family: 'Inter', sans-serif;
  font: 14px/1.5 'Inter', serif; 
  font-weight: 400;
  margin: 0;
  padding: 0;
}

h1, h2, h3, .no-top-margin, .title {
  font-family: 'Merriweather', serif;
}

.body {
  margin: 3%;
  margin-top: 0;
}

h1 {
  font-family: 'Inter', serif; 
  margin-left: 0%;
  text-align: left;
  font-weight: 400;
  font-size: 25pt;
  margin-block-end: 0;
  letter-spacing: 0.01em;
}

h2 {    
  font-family: 'Inter', serif; 
  font-weight: 400;
  letter-spacing: 0.01em;    
}

.no_top_margin {
  margin-block-start: normal;
}

img {
  width: 228px;
  max-width: 100%;
  height: auto;
}

li {
  padding-left: 1em;
}

/* Two-column layout for desktop */
@media (min-width: 1000px) {  
  .block {
    display: inline-block;
    margin: 1%;
  }

  img {
    width: 263px;
  }
    
  #left {
    width: 20%;
    max-width: 300px;
    min-width: 200px;
    justify-content: left;
    top: 0;
    vertical-align: top;
    position: fixed;
  }

  #right {
    width: 65%;
    margin-top: 0%;
    margin-right: 10%;
    margin-left: 10%;    
    float: right; 
    display: inline-block;
  }

  .no_top_margin {
    margin-block-start: 0%;
  }
}

ul {
  margin: 0;
}

a {
  color: #0074D9;
  text-decoration: none;    
}

a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;    
  color: #0074D9; 
  border-radius: 8px;
}

.graylinks {
  cursor: pointer; 
  color: slategray;
  background-color: white; 
  text-decoration: none;
  padding: 2px 5px 2px 5px;
  margin-left: 20px;
  white-space: nowrap; 
  border-radius: 10px;
  line-height: 210%;
  box-sizing: border-box;
  border: 2px solid transparent;
}

.graylinks:hover {
  border: 2px solid slategray;
  padding: 2px 5px 2px 5px;
  background-color: transparent;
  color: slategray;
  text-decoration: none;
}

.abstract-show {
  display: block; 
  color: black;
  margin-top: 0px;
  background-color: white; 
  text-decoration: none;
  padding: 2px;
  margin-left: 20px;
  white-space: wrap; 
  border-radius: 10px;
  line-height: 140%;
}

.abstract-hide {
  display: none; 
  color: black;
  background-color: white; 
  text-decoration: none;
  padding: 5px;
  margin-left: 20px;
  white-space: nowrap; 
  border-radius: 35px;
  line-height: 140%;
}

/* Contact links styling */
.contact-links {
  display: flex; 
  flex-wrap: wrap; 
  align-items: center; 
  margin-top: -5px;
}

.contact-links a {
  color: slategray; 
  text-decoration: none; 
  margin-right: 20px; 
  display: flex; 
  align-items: center;
}

.contact-links a:hover .email-text {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.email-icon {
  font-size: 20px; 
  margin-top: 2px; 
  margin-right: 5px; 
  user-select: none; 
  pointer-events: none; 
  font-weight: bold;
}

.cv-link {
  margin-left: -7px; 
  margin-top: 0px; 
  display: inline-flex; 
  align-items: center;
}

.cv-link svg {
  margin-right: 5px; 
  position: relative; 
  top: 0px;
}

/* Resources section styling */
.resources {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: .6rem;
  row-gap: .4rem;
  align-items: center;
}

.resources > a.graylinks {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.resources > a.graylinks svg {
  margin-right: .4rem;
}

/* Small break utility */
.small-break {
  line-height: 0;
}

/* Bottom margin utility */
.bottom-three {
  margin-bottom: 1rem;
}
