:root {
  --text: #2d3339;
  --muted: #66707a;
  --accent: #1d6fa5;
  --accent-dark: #134f78;
  --line: #e4e8eb;
  --soft: #f7f9fa;
  --spark: #ee9c16;
  --max-width: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }
img { display: block; max-width: 100%; }

.page-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 52px;
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 44px;
}

.profile-sidebar { min-width: 0; }
.sidebar-inner {
  position: sticky;
  top: 28px;
  max-height: calc(100vh - 56px);
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
}
.profile-photo {
  width: 166px;
  height: auto;
  margin-bottom: 15px;
  border-radius: 2px;
}
.profile-sidebar h1 {
  margin: 0 0 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.15;
}
.profile-role {
  margin: 0 0 8px;
  font-weight: 700;
  line-height: 1.45;
}
.profile-affiliation,
.profile-location {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.55;
}
.profile-location { margin-top: 5px; }
.profile-links {
  display: grid;
  gap: 4px;
  margin: 17px 0 18px;
  font-size: .88rem;
}
.profile-links a:first-child { word-break: break-all; }
.side-nav {
  display: grid;
  border-top: 1px solid var(--line);
}
.side-nav a {
  position: relative;
  padding: 7px 0 7px 12px;
  border-bottom: 1px solid var(--line);
  color: #59636c;
  font-size: .84rem;
}
.side-nav a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #b8c0c7;
  transform: translateY(-50%);
}
.side-nav a:hover,
.side-nav a.active {
  color: var(--accent);
  text-decoration: none;
}
.side-nav a.active::before { background: var(--accent); }

.main-content { min-width: 0; }
.content-section {
  padding: 34px 0 31px;
  border-bottom: 1px solid var(--line);
}
.first-section { padding-top: 0; }
.content-section h2 {
  margin: 0 0 17px;
  padding-bottom: 7px;
  border-bottom: 2px solid var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.56rem;
  font-weight: 500;
  line-height: 1.2;
}
.content-section p { margin: 0 0 13px; }
.content-section strong { color: #22282d; }
.interest-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  margin-top: 17px;
  color: #4f5962;
  font-size: .89rem;
  font-weight: 700;
}
.interest-line span::before {
  content: "•";
  margin-right: 6px;
  color: var(--accent);
}

.news-list { display: grid; }
.news-item {
  display: grid;
  grid-template-columns: 20px 74px minmax(0, 1fr);
  gap: 7px;
  align-items: start;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}
.news-item:last-child { border-bottom: 0; }
.news-spark {
  color: var(--spark);
  font-size: .95rem;
  line-height: 1.6;
}
.news-item time {
  color: var(--accent);
  font-size: .85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.news-item p {
  margin: 0;
  color: #4f5962;
  font-size: .91rem;
}

.section-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 5px;
}
.section-title-row h2 { flex: 1; margin-bottom: 0; }
.all-publications {
  margin-bottom: 7px;
  font-size: .82rem;
  white-space: nowrap;
}
.year-heading {
  margin: 25px 0 4px;
  color: #68727b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 600;
}
.publication-list { display: grid; }
.publication {
  display: grid;
  grid-template-columns: var(--media-width, 250px) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 21px 0;
  border-bottom: 1px dashed var(--line);
}
.publication-list .publication:last-child { border-bottom: 0; }
.publication-media {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
}
.publication-media img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.publication-body { min-width: 0; }
.publication-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 0 7px;
}
.publication-labels span {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border: 1px solid #cbd9e3;
  border-radius: 2px;
  color: #2c6387;
  background: #f5f9fc;
  font-size: .67rem;
  font-weight: 700;
  line-height: 1.45;
}
.publication h4 {
  margin: 0 0 6px;
  color: #253039;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.03rem;
  font-weight: 600;
  line-height: 1.42;
}
.authors,
.venue,
.paper-links {
  margin: 0 0 4px !important;
  font-size: .85rem;
  line-height: 1.53;
}
.authors { color: #59636c; }
.venue { color: #4d565e; font-style: italic; }
.paper-links {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 7px !important;
}
.paper-links a,
.paper-links span { font-weight: 700; }

.research-grid,
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 19px 28px;
}
.research-grid article {
  padding-left: 13px;
  border-left: 2px solid #cbdce7;
}
.research-grid h3,
.teaching-note h3,
.service-grid h3,
.entry h3 {
  margin: 0 0 4px;
  font-size: .96rem;
}
.research-grid p,
.teaching-note p,
.entry p {
  margin: 0;
  color: var(--muted);
  font-size: .87rem;
}
.teaching-note {
  margin-top: 22px;
  padding: 14px 16px;
  background: var(--soft);
  border-left: 3px solid var(--accent);
}

.entry-list { display: grid; }
.entry {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}
.entry:last-child { border-bottom: 0; }
.entry time {
  color: var(--accent);
  font-size: .84rem;
  font-weight: 700;
}
.service-grid ul {
  margin: 0;
  padding-left: 18px;
}
.service-grid li {
  margin-bottom: 7px;
  color: #545e67;
  font-size: .87rem;
}

.site-footer {
  padding: 24px 0 4px;
  color: #858d94;
  font-size: .78rem;
}

@media (max-width: 960px) {
  .page-shell {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 34px;
  }
  .profile-photo { width: 150px; }
  .publication { grid-template-columns: min(250px, 38%) minmax(0, 1fr); }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 12px; }
  .page-shell {
    display: block;
    width: min(100% - 30px, 760px);
    padding-top: 22px;
  }
  .sidebar-inner {
    position: static;
    max-height: none;
    overflow: visible;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    column-gap: 18px;
    padding: 0 0 24px;
    border-bottom: 1px solid var(--line);
  }
  .profile-photo {
    grid-row: 1 / span 5;
    width: 112px;
  }
  .profile-sidebar h1 { font-size: 1.75rem; }
  .profile-links { margin: 11px 0 0; }
  .side-nav { display: none; }
  .first-section { padding-top: 28px; }
  .publication {
    grid-template-columns: 1fr;
    gap: 13px;
    align-items: start;
  }
  .publication-media img {
    width: auto;
    max-width: 100%;
    max-height: 290px;
  }
  .research-grid,
  .service-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  body { font-size: 14px; }
  .page-shell { width: min(100% - 24px, 760px); }
  .sidebar-inner {
    grid-template-columns: 92px minmax(0, 1fr);
    column-gap: 14px;
  }
  .profile-photo { width: 92px; }
  .profile-sidebar h1 { font-size: 1.55rem; }
  .profile-role { font-size: .88rem; }
  .profile-affiliation,
  .profile-location,
  .profile-links { font-size: .8rem; }
  .news-item {
    grid-template-columns: 18px 68px minmax(0, 1fr);
    gap: 5px;
  }
  .section-title-row { display: block; }
  .all-publications { display: inline-block; margin: 8px 0 0; }
  .entry { grid-template-columns: 1fr; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
