/* Layout: one narrow, centred column */
body {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: #29373E;
  background: #fff;
}

h1 {
  font-size: 2rem;
  margin: 0 0 0.5rem;
  color: #174489;
}

h2 {
  font-size: 1.25rem;
  margin: 0 0 1rem;
  color: #174489;
}

/* Institute logo, centred at the top */
.logo {
  text-align: center;
  border-top: 1px dashed #2593C5;
  padding-top: 1rem;
  margin-bottom: 1.5rem;
}

.logo img {
  width: 300px;
  max-width: 80%;
  height: auto;
}

/* Round photo on the right of the header */
header img {
  float: right;
  width: 260px;
  height: 260px;
  margin: 0 0 1rem 1.5rem;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(100%);
}

header p {
  font-weight: 600;
}

header .secondary {
  font-weight: normal;
}

/* Links look like normal text; square brackets in the page mark them */
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-decoration-color: #2593C5;
  text-decoration-thickness: 2px;
}

/* Sections separated by a dashed line, below the photo */
section {
  clear: both;
  border-top: 1px dashed #2593C5;
  margin-top: 2rem;
  padding-top: 1.5rem;
}

/* Paper lists */
.papers li {
  margin-bottom: 1.25rem;
}

.title {
  font-weight: 700;
}

.journal {
  font-style: italic;
  color: #0059D9;
}

.presentations {
  display: block;
  font-size: 0.9rem;
  color: #666;
}

/* The "abstract" button looks like a link */
.abstract-toggle {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.abstract-toggle:hover {
  text-decoration: underline;
  text-decoration-color: #2593C5;
  text-decoration-thickness: 2px;
}

.abstract p {
  font-size: 0.95rem;
  text-align: justify;
  margin: 0.5rem 0;
  padding-left: 0.75rem;
  border-left: 3px solid #2593C5;
}

footer {
  clear: both;
  border-top: 1px dashed #2593C5;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: #666;
}

/* On phones, put the photo above the name instead */
@media (max-width: 600px) {
  header img {
    float: none;
    display: block;
    width: 140px;
    height: 140px;
    margin: 0 auto 1rem;
  }
}
