
html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: #111;
  background: #fff;
}

a {
  color: #209cef;
  text-decoration: none;
}

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

body,
td,
th,
tr,
p,
a {
  font-family: "Lato", Verdana, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 400;
  word-spacing: 0.05em;
}

strong {
  font-family: "Lato", Verdana, Helvetica, Arial, sans-serif;
  font-size: inherit;
  font-weight: 700;
}

heading {
  display: inline-block;
  font-family: "Lato", Verdana, Helvetica, Arial, sans-serif;
  font-size: 25px;
  font-weight: 400;
  text-decoration: none;
  line-height: 1.12;
  padding: 0 0.04em;
  box-shadow: inset 0 -0.32em 0 #c4b5fd;
  cursor: default;
  transition: box-shadow 180ms ease, transform 180ms ease, color 180ms ease;
}

heading:hover {
  color: #4c1d95;
  box-shadow: inset 0 -0.46em 0 #ddd6fe;
  transform: translateY(-1px);
}

.section-note {
  margin-top: 8px;
  color: #666;
  font-size: 14px;
  font-style: italic;
}

.representative-note {
  margin-top: 3px;
}

.highlight-word {
  padding: 1px 4px;
  color: #4c1d95;
  background: #e9e4ff;
  border-radius: 3px;
}

papertitle {
  font-family: "Lato", Verdana, Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

name {
  font-family: "Lato", Verdana, Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 28px;
}

.page-shell {
  width: 100%;
  max-width: 930px;
  margin-right: auto;
  margin-left: auto;
}

.one {
  width: 100%;
  height: auto;
  position: relative;
}

.publication-table {
  table-layout: fixed;
}

.publication-item > td {
  padding-top: 16px !important;
  padding-bottom: 16px !important;
  vertical-align: middle;
}

.publication-item > td:first-child {
  width: 34% !important;
}

.publication-item > td:last-child {
  width: 66% !important;
}

.publication-item .one img {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.highlighted-publication > td {
  background-color: #f5f3ff;
  transition: background-color 180ms ease;
}

.highlighted-publication .one {
  box-sizing: border-box;
  padding: 8px;
  overflow: hidden;
  background: #fff;
  border-radius: 10px;
}

.highlighted-publication-first > td:first-child {
  border-radius: 14px 0 0 0;
}

.highlighted-publication-first > td:last-child {
  border-radius: 0 14px 0 0;
}

.highlighted-publication-last > td:first-child {
  border-radius: 0 0 0 14px;
}

.highlighted-publication-last > td:last-child {
  border-radius: 0 0 14px 0;
}

.highlighted-publication:hover > td {
  background-color: #ede9fe;
}

.two {
  width: 160px;
  height: 160px;
  position: absolute;
  transition: opacity .2s ease-in-out;
  -moz-transition: opacity .2s ease-in-out;
  -webkit-transition: opacity .2s ease-in-out;
}

.fade {
  transition: opacity .2s ease-in-out;
  -moz-transition: opacity .2s ease-in-out;
  -webkit-transition: opacity .2s ease-in-out;
}

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

.publication-item {
  display: table-row;
}

.publication-toggle-button {
  cursor: pointer;
  color: #1772d0;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 15px;
  transition: all 0.2s ease;
  font-weight: 500;
}

.publication-toggle-button:hover {
  background-color: #e9ecef;
  color: #1772d0;
}

.publication-toggle-button.active {
  background-color: #1772d0;
  color: white;
}

.profile-pic {
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  transition: all 0.3s cubic-bezier(.25,.8,.25,1);
}

.profile-pic:hover {
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  transform: translateY(38px);
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: #a78bfa;
  transition: opacity 180ms ease, transform 180ms ease;
}

.social-links img {
  display: block;
  width: 27px;
  height: 27px;
  object-fit: contain;
}

.social-links a[aria-label="Google Scholar"] img {
  width: 34px;
  height: 34px;
}

.social-links a[aria-label="X"] img {
  width: 22px;
  height: 22px;
}

.social-links .cv-mark {
  font-family: "Lato", Verdana, Helvetica, Arial, sans-serif;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
}

.social-links a:hover {
  color: #a78bfa;
  opacity: 0.7;
  transform: translateY(-2px);
}

.photo-email {
  display: flex;
  align-items: center;
  appearance: none;
  width: 250px;
  max-width: 100%;
  margin: 12px auto 0;
  padding: 5px 9px;
  color: #5b4b7a;
  background: #faf5ff;
  border: 1px solid #ddd6fe;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(76, 29, 149, 0.06);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  letter-spacing: 0.01em;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.photo-email::before {
  content: "✉";
  margin-right: 6px;
  color: #8b5cf6;
  flex: none;
}

.photo-email-viewport {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.photo-email-text {
  display: block;
  width: max-content;
}

.photo-email:hover .photo-email-text,
.photo-email:focus-visible .photo-email-text {
  animation: photo-email-scroll var(--email-scroll-duration, 3s) ease-in-out infinite alternate;
}

.photo-email.copied .photo-email-text {
  animation: none;
}

@keyframes photo-email-scroll {
  0%, 15% { transform: translateX(0); }
  85%, 100% { transform: translateX(calc(-1 * var(--email-scroll-distance, 0px))); }
}

.photo-email:hover {
  color: #4c1d95;
  background: #f3e8ff;
  border-color: #c4b5fd;
}

.photo-email:focus-visible {
  outline: 2px solid #8b5cf6;
  outline-offset: 3px;
}

.photo-email.copied {
  color: #166534;
  background: #f0fdf4;
  border-color: #86efac;
}

.compact-after + tr td {
  padding-top: 5px !important;
}

.spaced-list li + li {
  margin-top: 6px;
}

.inline-logo {
  height: 18px;
  max-width: 36px;
  vertical-align: -4px;
  margin-right: 6px;
  object-fit: contain;
}

.inline-logo-linkerbot {
  height: 24px;
  vertical-align: -6px;
  margin-right: 4px;
}

.experience-table {
  table-layout: fixed;
  margin-bottom: 28px;
}

.experience-table td {
  padding-top: 10px;
  padding-bottom: 10px;
  vertical-align: middle;
}

.experience-logo-cell {
  width: 17%;
  text-align: center;
  overflow: hidden;
}

.experience-details {
  width: 83%;
}

.experience-logo {
  display: block;
  width: 132px;
  max-width: 92%;
  height: 66px;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
}

.experience-logo-linkerbot {
  transform: translateX(25%) scale(1.5);
}

.site-footer {
  padding: 0 20px 24px;
  text-align: center;
}

.site-footer hr {
  height: 1px;
  margin: 8px 0 18px;
  border: 0;
  background: #d9d9d9;
}

.site-footer p {
  margin: 0;
  color: #555;
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 700px) {
  .page-shell {
    width: 100%;
  }

  .social-links {
    transform: none;
  }

  .page-shell > tbody > tr > td > table td {
    box-sizing: border-box;
  }

  .intro-table tr,
  .intro-table td {
    display: block;
    width: 100% !important;
  }

  .intro-table .profile-pic {
    display: block;
    width: min(70%, 250px);
    height: auto;
    margin: 0 auto;
  }

  .publication-item {
    display: block;
  }

  .publication-item > td {
    display: block;
    width: 100% !important;
    padding: 12px 20px !important;
  }

  .publication-item .one img {
    width: min(100%, 360px);
  }

  .highlighted-publication > td:first-child,
  .highlighted-publication > td:last-child {
    border-radius: 0;
  }

  .highlighted-publication-first > td:first-child {
    border-radius: 14px 14px 0 0;
    padding-top: 18px !important;
  }

  .highlighted-publication-last > td:last-child {
    border-radius: 0 0 14px 14px;
    padding-bottom: 18px !important;
  }

  .experience-table td {
    box-sizing: border-box;
  }

  .experience-logo-cell {
    width: 23%;
  }

  .experience-details {
    width: 77%;
  }

  .experience-logo {
    width: 104px;
    max-width: 92%;
    height: 54px;
  }

  .experience-logo-linkerbot {
    transform: translateX(25%) scale(1.5);
  }
}

@media (prefers-reduced-motion: reduce) {
  heading {
    transition: none;
  }

  .photo-email:hover .photo-email-text,
  .photo-email:focus-visible .photo-email-text {
    animation: none;
  }
}
