@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;450;500;600&family=Newsreader:opsz,wght@6..72,400;6..72,500;6..72,600&display=swap");

:root {
  --restyle-ink: #202428;
  --restyle-text: #50575d;
  --restyle-muted: #70787e;
  --restyle-line: #e3e6e8;
  --restyle-soft-line: #f0f2f3;
  --polyu-red: #985062;
  --restyle-blue: #69bde2;
  --restyle-link: #237ab1;
}

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  color: var(--restyle-text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
.page__title,
.author__name {
  color: var(--restyle-ink);
  font-family: Newsreader, Georgia, serif;
  font-weight: 600;
}

.page__title {
  font-size: 1.68em;
  line-height: 1.08;
}

a,
a:visited {
  color: var(--restyle-link);
  text-decoration-color: var(--restyle-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
  color: #175f8c;
  text-decoration-color: #3d9fca;
}

.masthead,
.greedy-nav {
  background: #fff;
}

.masthead {
  border-bottom: 0;
  box-shadow: none;
}

.greedy-nav a,
.greedy-nav a:visited,
.author__bio,
.author__urls,
.author__urls li,
.author__urls a,
.author__urls i,
.page__footer,
.page__footer a {
  color: var(--restyle-text);
}

.greedy-nav a,
.greedy-nav a:visited {
  font-size: 0.9em;
  font-weight: 500;
}

.masthead__menu-item--lg a {
  font-family: Newsreader, Georgia, serif;
  font-size: 1em;
  font-weight: 600;
}

.greedy-nav .visible-links > li:not(:first-child) > a {
  margin-left: 13px;
}

.greedy-nav .visible-links > li:not(:last-child) > a {
  margin-right: 13px;
}

#main {
  margin-top: 2.35em;
}

.page__content p {
  margin-bottom: 1.1em;
}

.page__content {
  font-weight: 450;
}

.page__content strong {
  color: #353a3e;
  font-weight: 600;
}

.page__content a,
.page__content a:visited {
  color: var(--restyle-link);
  text-decoration-color: #78c7e7;
}

.page__content a:hover,
.page__content a:focus-visible {
  color: #175f8c;
  text-decoration-color: #3d9fca;
}

.author__urls a,
.author__urls a:visited {
  color: #4b5359;
  text-decoration-color: #c7ccd0;
}

.author__urls a:hover,
.author__urls a:focus-visible {
  color: #202428;
  text-decoration-color: #747d84;
}

.page__content li,
.page__content p {
  line-height: 1.62;
}

.about-page .page__content > p {
  line-height: 1.58;
}

.page__content h2 {
  font-size: 1.32em;
  margin-top: 1.9em;
  margin-bottom: 0.8em;
  padding-bottom: 0.4em;
  border-bottom-color: var(--restyle-line);
}

.research-interests p {
  margin-bottom: 0.3rem;
}

.research-interests ul {
  margin-top: 0;
  margin-bottom: 0;
}

.research-interests li {
  margin-bottom: 0.12em;
  line-height: 1.58;
}

.research-interests {
  margin-top: 1.05em;
}

.news-scroll li,
.page__content h2 + ul > li {
  border-top: 1px solid var(--restyle-soft-line);
}

.news-scroll li:first-child,
.page__content h2 + ul > li:first-child {
  border-top: 0;
}

.news-scroll li {
  padding-top: 0.08em;
  padding-bottom: 0.08em;
  line-height: 1.5;
}

#news,
#position-opening {
  margin-top: 1.5em;
  margin-bottom: 0.55em;
  padding-bottom: 0.32em;
}

.news-scroll {
  scrollbar-color: #aaa transparent;
  scrollbar-width: thin;
  transition: -webkit-mask-image 120ms ease;
}

.news-scroll::-webkit-scrollbar {
  width: 7px;
}

.news-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.news-scroll::-webkit-scrollbar-thumb {
  background: #c3c7ca;
  border: 2px solid #fff;
  border-radius: 999px;
}

.news-scroll--more-below {
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 0.9rem), transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 0.9rem), transparent 100%);
}

#position-opening + p {
  margin-bottom: 0.6em;
}

#position-opening + p + ul {
  margin-top: 0;
  margin-bottom: 0.65em;
}

#position-opening + p + ul > li {
  margin-bottom: 0.28em;
  line-height: 1.52;
}

#position-opening + p + ul + p {
  margin-top: 0;
  color: var(--restyle-muted);
  font-size: 0.94em;
  line-height: 1.5;
}

#position-opening,
.opening-label {
  color: var(--polyu-red);
}

/* Interior pages use a single-column reading layout without the author card. */
.publications-page .sidebar,
.teaching-page .sidebar,
.services-page .sidebar {
  display: none;
}

.page.publications-page,
.page.teaching-page,
.page.services-page {
  float: none;
  width: auto;
  max-width: 920px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 0;
}

.page.publications-page {
  max-width: 920px;
}

.page.teaching-page,
.page.services-page {
  max-width: 804px;
}

.publications-page .page__title,
.teaching-page .page__title,
.services-page .page__title {
  margin-bottom: 0.45em;
  font-size: 2em;
  line-height: 1.1;
}

.publication-links {
  display: flex;
  gap: 1.25em;
  margin-bottom: 0.35em;
}

.publication-note {
  margin: 0;
  color: var(--restyle-muted);
  font-size: 0.9em;
}

.publication-year-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65em 1.05em;
  margin: 1.35em 0 1.05em;
}

.publication-year-nav a {
  color: var(--restyle-muted);
  text-decoration: none;
}

.publication-year-nav a:hover,
.publication-year-nav a:focus-visible {
  color: #303438;
  text-decoration: underline;
}

.publications-page .page__content h2 {
  margin-top: 1.25em;
  margin-bottom: 0;
  padding-bottom: 0.35em;
  font-size: 1.65em;
}

.publications-page .page__content h2 + ul {
  margin-top: 0.45em;
  padding-left: 0;
  list-style: none;
}

.publications-page .page__content h2 + ul > li {
  padding: 0.65em 0 0.7em;
  border-top: 1px solid var(--restyle-soft-line);
}

.publications-page .page__content h2 + ul > li:first-child {
  border-top: 0;
}

.publications-page .page__content h2 + ul > li > p {
  margin: 0;
  color: var(--restyle-text);
  font-size: 0.96em;
  line-height: 1.44;
}

.publications-page .page__content h2 + ul > li > p > strong:first-child {
  display: inline-block;
  margin-bottom: 0.08em;
  color: var(--restyle-ink);
  font-size: 1.045em;
  font-weight: 600;
}

.publications-page .page__content h2 + ul > li > p > strong:not(:first-child) {
  color: #444b50;
  font-weight: 600;
}

.teaching-list {
  margin-top: 1.05em;
  border-top: 1px solid var(--restyle-line);
}

.teaching-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 0.85em;
  padding: 0.65em 0 0.7em;
  border-bottom: 1px solid var(--restyle-line);
  line-height: 1.4;
}

.teaching-term,
.teaching-row span {
  color: var(--restyle-muted);
}

.teaching-term {
  font-size: 0.88em;
}

.teaching-row strong {
  font-weight: 500;
}

.services-page .page__content > ul {
  margin: 1.05em 0 0;
  padding: 0;
  border-top: 1px solid var(--restyle-line);
  list-style: none;
}

.services-page .page__content > ul > li {
  padding: 0.6em 0 0.65em;
  border-bottom: 1px solid var(--restyle-line);
  line-height: 1.45;
}

.services-page .page__content > ul > li > strong {
  font-weight: 600;
}

.services-page .page__content ul ul {
  margin: 0.25em 0 0;
  padding-left: 1.4em;
}

.services-page .page__content ul ul li {
  margin: 0.1em 0;
  line-height: 1.4;
}

@media (max-width: 640px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  #main,
  .page,
  .page__inner-wrap,
  .page__content {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .page__content {
    overflow-wrap: anywhere;
  }

  .news-scroll {
    max-width: 100%;
  }

  .teaching-row {
    grid-template-columns: 1fr;
    gap: 0.35em;
  }
}

@media (min-width: 925px) {
  .sidebar .author__avatar {
    width: 160px;
    max-width: none;
  }

  .sidebar .author__avatar img {
    width: 160px;
    height: 160px;
    object-fit: cover;
  }
}

.page__footer {
  display: none;
}
