a {
  color: #1772d0;
  text-decoration: none;
}

a:focus,
a:hover {
  color: #f09228;
  text-decoration: none;
}

body {
  margin: 0;
}

body,
td,
th,
tr,
p,
a {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

strong {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 14px;
}

h2 {
  margin: 0;
  font-weight: normal;
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 22px;
}

.papertitle {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.name {
  padding-top: 20px;
  margin: 0;
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 32px;
}

span.highlight {
  background-color: #ffffd0;
}

/* The portrait is cropped in the image file, so every viewport shows the same frame. */
.profile-photo {
  display: block;
  width: 100%;
  max-width: 200px;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
}

/* Match the Times author symbols used on the RepresentNav project page. */
.author-mark {
  font-family: "Times New Roman", Times, serif;
  font-weight: 400;
  font-style: normal;
}

.author-mark-star {
  font-size: 1.12em;
  margin-right: .5px;
}

.author-mark-dagger {
  font-size: 1.42em;
  line-height: 0;
  margin: 0 1px;
  position: relative;
  top: .06em;
}

.project-lead-author {
  white-space: nowrap;
}

.project-lead-author .author-mark-dagger {
  color: #2f5597;
  font-weight: 700;
}

.project-lead-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 7px;
  border: 1px solid #c1cfe5;
  border-radius: 4px;
  background: #eaf0fb;
  color: #23477f;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  vertical-align: baseline;
}

.publication-notes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin: 8px 0 0;
}

.publication-preview {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 3px;
  overflow: hidden;
}

.publication-preview img,
.publication-preview video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 180ms ease;
}

.publication-preview video {
  opacity: 0;
  pointer-events: none;
}

.publication-preview.is-playing img {
  opacity: 0;
}

.publication-preview.is-playing video {
  opacity: 1;
}

.publication-preview:focus-visible {
  outline: 2px solid #1772d0;
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .publication-preview img,
  .publication-preview video {
    transition: none;
  }
}

/* Keep the two-column header readable on narrow screens */
@media (max-width: 600px) {
  body,
  td,
  th,
  tr,
  p,
  a,
  strong {
    font-size: 15px;
  }
  .name {
    font-size: 28px;
  }
}
