:root {
  --vt-maroon: #861f41;
  --vt-orange: #c64600;
  --vt-orange-fill: #e87722;
  --vt-stone: #75787b;
  --vt-land: #d7d2cb;
  --vt-white: #ffffff;
  --tag-talk: #5f7384;
  --tag-award: #d46a1f;
  --text: #333333;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, #f3ede6 0, #f7f4f1 210px, #fbfaf7 100%);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: var(--vt-orange);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
}

.wrap {
  width: min(1290px, calc(100% - 56px));
  margin: 0 auto;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(90deg, #7f1c3d 0%, var(--vt-maroon) 60%, #791b39 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 2px 8px rgba(35, 18, 22, 0.1);
}

.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--vt-orange-fill) 0%, #cf6f32 35%, #b9643b 70%, #996163 100%);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.brand a {
  color: var(--vt-white);
  font-family: inherit;
  font-size: 1.7rem;
  letter-spacing: -0.01em;
  line-height: 1;
  text-decoration: none;
}

.brand span {
  color: var(--vt-white);
  font-family: inherit;
  font-size: 0.98rem;
  letter-spacing: 0;
  opacity: 0.9;
  white-space: nowrap;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.topnav a {
  color: var(--vt-white);
  font-family: inherit;
  font-size: 1rem;
  letter-spacing: 0;
  line-height: 1;
  padding: 9px 4px;
  opacity: 0.88;
  text-decoration: none;
}

.topnav a:hover {
  opacity: 1;
  text-decoration: none;
}

.page {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 0;
  padding: 118px 0 48px;
}

.sidebar {
  padding: 28px 20px 28px 0;
}

.content {
  min-width: 0;
  padding: 28px 0 28px 40px;
  border-left: 1px solid #d4cec7;
}

.profile-photo {
  width: 100%;
  max-width: 290px;
  margin-bottom: 14px;
  padding: 6px;
  border: 1px solid #d7c8ba;
  background: #efe5da;
  box-sizing: border-box;
}

.contact-block {
  margin-bottom: 14px;
}

.contact-title {
  margin: 0 0 6px;
  font-weight: normal;
}

.contact-text {
  margin: 0 0 4px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 22px;
}

.button-row a {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid var(--vt-maroon);
  border-radius: 4px;
  background: var(--vt-maroon);
  color: var(--vt-white);
  font-size: 0.9rem;
  line-height: 1.2;
  text-decoration: none;
}

.pub-tag,
.pub-tag-summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 2px 8px;
  border: 1px solid var(--vt-maroon);
  border-radius: 4px;
  background: var(--vt-maroon);
  color: var(--vt-white);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1;
  vertical-align: middle;
  box-sizing: border-box;
  text-decoration: none;
  white-space: nowrap;
}

.button-row a:hover,
.pub-tag:hover,
.pub-tag-summary:hover {
  background: #6e1937;
  text-decoration: none;
}

.pub-tag--orange,
.pub-tag-summary.pub-tag--orange {
  border-color: var(--vt-orange);
  background: var(--vt-orange);
}

.pub-tag--stone,
.pub-tag-summary.pub-tag--stone {
  border-color: var(--vt-stone);
  background: var(--vt-stone);
}

.pub-tag--talk,
.pub-tag-summary.pub-tag--talk {
  border-color: var(--tag-talk);
  background: var(--tag-talk);
}

.pub-tag--award,
.pub-tag-summary.pub-tag--award {
  border-color: #ffd700;
  background: #ffd700;
  color: #861f41;
  box-shadow: none;
}

.sidebar-section {
  margin-top: 24px;
}

.sidebar-section h2,
.section-title {
  margin: 0 0 16px;
  font-family: inherit;
  font-weight: normal;
  line-height: 1.1;
  color: var(--vt-maroon);
  letter-spacing: 0;
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}

.sidebar-section h2::after,
.section-title::after {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  margin-top: 8px;
  background: linear-gradient(90deg, var(--vt-orange) 0%, var(--vt-orange-fill) 100%);
}

.sidebar-section h2 {
  font-size: 2.15rem;
}

.section-title {
  font-size: 2rem;
}

.section-title--compact {
  margin-bottom: 0;
}

.section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.view-toggle {
  display: inline-flex;
  border: 1px solid #c9c2bb;
  border-radius: 4px;
  overflow: hidden;
}

.view-toggle button {
  border: 0;
  border-right: 1px solid #c9c2bb;
  background: #f8f5f2;
  color: var(--text);
  padding: 6px 12px;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

.view-toggle button:last-child {
  border-right: 0;
}

.view-toggle button.is-active {
  background: var(--vt-maroon);
  color: var(--vt-white);
}

.news-list,
.simple-list,
.year-publication-list {
  margin: 0;
  padding-left: 34px;
}

.news-list {
  padding-left: 18px;
}

.news-list li {
  margin-bottom: 12px;
}

.content-section+.content-section {
  margin-top: 40px;
  padding-top: 8px;
  border-top: 1px solid #ebe2d9;
}

.about-copy p {
  margin: 0 0 22px;
  font-size: 0.96rem;
  line-height: 1.5;
}

.year-publication-list li {
  margin-bottom: 12px;
}

.publication-title-line {
  line-height: 1.32;
}

.publication-title {
  font-weight: normal;
}

.publication-topic-inline {
  color: var(--vt-orange);
  font-weight: normal;
  margin-right: 6px;
}

.publication-authors,
.publication-venue,
.publication-extra {
  margin-top: 2px;
}

.pub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-top: 6px;
  align-items: center;
}

.pub-links details {
  display: inline-block;
}

.pub-links details summary {
  list-style: none;
  cursor: pointer;
}

.pub-links details[open] summary {
  margin-bottom: 6px;
}

.pub-links details summary::-webkit-details-marker {
  display: none;
}

.bibtex-pre {
  margin: 8px 0 0;
  padding: 10px 12px;
  border: 1px solid #c9c2bb;
  background: #fbf9f7;
  color: #222222;
  white-space: pre-wrap;
  font-size: 0.88rem;
  line-height: 1.35;
}

.student-group {
  margin-bottom: 28px;
}

.student-group h3,
.year-heading {
  margin: 0 0 12px;
  font-family: inherit;
  font-size: 1.8rem;
  font-weight: normal;
}

.student-group ul {
  margin: 0;
  padding-left: 24px;
}

.student-group li {
  margin-bottom: 10px;
}

.simple-list li {
  margin-bottom: 14px;
}

.year-block {
  margin-bottom: 28px;
}

.publication-year {
  font-family: inherit;
  font-size: 1.62rem;
  margin: 0 0 10px;
  font-weight: normal;
  color: var(--vt-maroon);
}

.topic-heading {
  font-family: inherit;
  font-size: 1.62rem;
  margin: 0 0 10px;
  font-weight: normal;
  color: var(--vt-maroon);
}

.service-year {
  font-family: inherit;
  font-size: 1.62rem;
  margin: 0 0 10px;
  font-weight: normal;
  color: var(--vt-maroon);
}

.service-year-block {
  margin-bottom: 24px;
}

#service-list {
  list-style: none;
  padding-left: 0;
}

.service-year-block>ul {
  margin: 0;
  padding-left: 24px;
}

.service-year-block>ul>li {
  margin-bottom: 8px;
}

.content-section {
  scroll-margin-top: 110px;
}

strong.self-name {
  color: #000000;
}

.advisee-name {
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .page {
    grid-template-columns: 1fr;
  }

  .sidebar {
    padding-right: 0;
    padding-bottom: 12px;
  }

  .content {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid #cfcfcf;
    padding-top: 24px;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 17px;
  }

  .wrap {
    width: min(100% - 24px, 1290px);
  }

  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
    min-height: unset;
  }

  .brand {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .brand a {
    font-size: 1.75rem;
  }

  .topnav {
    gap: 10px;
  }

  .sidebar-section h2,
  .section-title {
    font-size: 1.8rem;
  }

  .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

.collapsible-heading {
  cursor: pointer;
  user-select: none;
}

.collapsible-heading:hover {
  opacity: 0.8;
}

.collapse-icon {
  display: inline-block;
  transition: transform 0.2s ease;
  vertical-align: middle;
  margin-bottom: 2px;
}

.is-collapsed .collapse-icon {
  transform: rotate(-90deg);
}

.is-collapsed>*:not(h2):not(.section-heading-row) {
  display: none !important;
}