body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #111;
  background: white;
  font-size: 20px;
  line-height: 1.55;
}

/* top bar */

header {
  display: grid;
  grid-template-columns: 280px minmax(0, 1000px);
  column-gap: 70px;
  max-width: 1380px;
  margin: 0 auto;
  padding: 24px 5%;
  border-bottom: 1px solid #e5e5e5;
  align-items: center;
}

.site-title {
  grid-column: 1;
}

.site-title a {
  color: #111;
  font-size: 25px;
  font-weight: bold;
  text-decoration: none;
  padding-bottom: 14px;
  border-bottom: 2px solid #111;
}

nav {
  grid-column: 2;
}

nav a {
  margin-right: 42px;
  color: #111;
  text-decoration: none;
  font-size: 25px;
}

nav a:last-child {
  margin-right: 0;
}

nav a:hover {
  color: #2aa6c8;
}

/* full layout */

.page-wrapper {
  display: grid;
  grid-template-columns: 280px minmax(0, 1000px);
  column-gap: 70px;
  max-width: 1380px;
  margin: 55px auto;
  padding: 0 5%;
}

/* sidebar */

.sidebar {
  font-size: 18px;
  color: #111;
}

.profile-photo {
  width: 235px;
  height: 235px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin-bottom: 22px;
  border: 1px solid #eee;
}

.sidebar h2 {
  font-size: 25px;
  color: #111;
  margin: 0 0 14px 0;
}

.bio {
  margin-bottom: 26px;
}

.sidebar-link {
  margin: 14px 0;
}

.sidebar a {
  color: #111;
  text-decoration: none;
}

.sidebar a:hover {
  color: #2aa6c8;
}

.sidebar-icon {
  width: 24px;
  margin-right: 12px;
  color: #111;
  text-align: center;
}

/* main content */

.content {
  max-width: 1000px;
  color: #111;
}

.content h1 {
  color: #111;
  font-size: 38px;
  line-height: 1.1;
  margin-top: 0;
  margin-bottom: 22px;
}

.content h2 {
  color: #111;
  font-size: 34px;
  margin-top: 40px;
  margin-bottom: 18px;
}

.content p {
  margin: 0 0 24px 0;
}

.content a {
  color: #222;
  text-decoration: underline;
}

.content a:hover {
  color: #2aa6c8;
}

/* expandable paper items */

.paper-item {
  border-bottom: 1px solid #777;
  padding: 0;
  margin: 0 0 28px 0;
}

.paper-item summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
}

.paper-item summary::-webkit-details-marker {
  display: none;
}

.paper-text {
  font-size: 20px;
  line-height: 1.4;
  color: #111;
}

.paper-text strong {
  font-weight: 700;
}

.paper-text a {
  color: #222;
  text-decoration: underline;
}

.paper-text a:hover {
  color: #2aa6c8;
}

.paper-arrow {
  width: 14px;
  height: 14px;
  border-right: 3px solid #777;
  border-bottom: 3px solid #777;
  transform: rotate(45deg);
  transition: transform 0.2s ease, border-color 0.2s ease;
  justify-self: end;
  margin-right: 8px;
}

.paper-item summary:hover .paper-arrow {
  border-color: #111;
}

.paper-item[open] .paper-arrow {
  transform: rotate(225deg);
}

.paper-abstract {
  padding: 16px 0 24px 0;
  font-size: 20px;
  line-height: 1.65;
  color: #111;
}

.interest-list {
  margin-top: 0;
  margin-bottom: 30px;
  padding-left: 24px;
}

.interest-list li {
  margin-bottom: 6px;
}

/* reusable content cards */

.content-card {
  box-sizing: border-box;
  border: 1px solid #d8e0ea;
  border-radius: 10px;
  padding: 24px 28px;
  margin: 26px 0;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

/* job / teaching cards */

.job-card {
  color: #111;
}

.job-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.job-logo {
  width: 46px;
  height: 46px;
  border-radius: 6px;
  color: white;
  font-size: 13px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: -6px;
}

.uofg-logo {
  background: #003865;
}

.hse-logo {
  background: #1d4f91;
}

.job-body {
  flex: 1;
  min-width: 0;
}

.job-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 16px;
}

.job-title-row h3 {
  margin: 0;
  font-size: 24px;
  font-weight: normal;
  color: #111;
  flex: 1;
  min-width: 0;
}

.job-title-row h3 strong {
  font-weight: 700;
}

.job-title-row h3 em {
  font-style: italic;
  font-weight: normal;
  margin-left: 10px;
}

.job-date {
  font-size: 20px;
  color: #111;
  font-style: normal;
  white-space: nowrap;
}

.job-list {
  margin: 0;
  padding-left: 24px;
}

.job-list li {
  margin-bottom: 8px;
}

.job-list li:last-child {
  margin-bottom: 0;
}

.course-code {
  color: #666;
  font-weight: normal;
  margin-right: 8px;
}

.course-name {
  color: #111;
  font-weight: normal;
}

.sidebar-copy-line {
  margin: -8px 0 14px 36px;
  font-size: 15px;
}

.copy-email-button {
  border: none;
  background: none;
  padding: 0;
  color: #111;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}

.copy-email-button:hover {
  color: #2aa6c8;
}

.copy-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: #111;
  color: white;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 16px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 9999;
}

.copy-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* mobile */

@media (max-width: 900px) {
  header {
    display: block;
    padding: 20px 24px;
  }

  .site-title {
    margin-bottom: 16px;
  }

  nav {
    margin-left: 0;
  }

  nav a {
    display: inline-block;
    margin-right: 22px;
    margin-top: 12px;
    font-size: 20px;
  }

  .page-wrapper {
    display: block;
    margin: 35px auto;
    padding: 0 24px;
  }

  .sidebar {
    margin-bottom: 40px;
  }

  .content h1 {
    font-size: 32px;
  }

  .paper-text {
    font-size: 18px;
  }

  .paper-abstract {
    font-size: 18px;
  }

  .content-card {
    padding: 20px;
  }

  .job-row {
    display: flex;
    gap: 14px;
  }

  .job-logo {
    margin-top: 0;
  }

  .job-title-row {
    display: block;
  }

  .job-date {
    display: block;
    margin-top: 8px;
  }

  .job-list {
    padding-left: 22px;
    margin-top: 14px;
  }
}
