/* Shared typography and publication styling. Layout and breakpoints follow below. */
:root {
  color-scheme: light;
  --text: #19242e;
  --muted: #4b5864;
  --blue: #006fc9;
  --line: #dfe5e8;
  --paper: #fff;
  --wash: #f5f8fa;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: var(--paper); font-size: 1rem; line-height: 1.56; }
h1, h2, h3, p, figure { margin: 0; }
a { color: var(--blue); text-underline-offset: .17em; text-decoration-thickness: .07em; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.container { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
h1 { font-size: clamp(1.6rem, 3vw, 2.15rem); line-height: 1.13; letter-spacing: -.035em; font-weight: 650; }
h1 span { color: var(--muted); font-size: .67em; font-weight: 450; letter-spacing: 0; }
.bio { margin-top: 16px; }
.bio strong { font-weight: 650; }
section { border-top: 1px solid var(--line); padding-top: 17px; margin-top: 3px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .1rem .8rem; margin-bottom: 6px; }
h2 { font-size: 1.17rem; line-height: 1.35; font-weight: 650; letter-spacing: -.014em; }
.section-heading a { font-size: .85rem; }
.publication { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 0 22px; padding: 16px 0; align-items: start; }
.publication + .publication { border-top: 1px solid var(--line); }
.thumbnail { width: 100%; height: 106px; padding: 4px; display: grid; place-items: start center; }
.thumbnail img { width: 100%; height: 100%; min-height: 0; object-fit: contain; object-position: center top; }
.publication h3 { font-size: 1.04rem; line-height: 1.4; font-weight: 600; letter-spacing: -.007em; }
.publication h3 a { color: var(--text); text-decoration-color: transparent; }
.publication h3 a:hover { text-decoration-color: currentColor; }
.meta { color: var(--text); margin-top: 3px; font-size: .9rem; font-weight: 400; }
.venue-badge { color: #b42318; font-weight: 650; }
.publication.publication--text-only { grid-template-columns: 1fr; }
.summary { margin-top: 3px; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.pub-links { display: flex; gap: .45rem; align-items: baseline; margin-top: 5px; font-size: .88rem; }
.pub-links a { text-decoration: none; }
.pub-links a:hover { text-decoration: underline; }
.experience { margin-top: 14px; padding-bottom: 25px; }
.jobs { margin: 8px 0 0; padding: 0; list-style: none; }
.jobs li { padding: 8px 0; display: grid; grid-template-columns: 205px minmax(0, 1fr); gap: 0 15px; }
.jobs strong { font-weight: 650; }
.jobs span { display: block; font-size: .875rem; color: var(--muted); }
.jobs p { font-size: .935rem; color: var(--muted); }
.foot { border-top: 1px solid var(--line); padding: 12px 0 28px; font-size: .85rem; color: var(--muted); }
@media (max-width: 750px) {
  .container { width: calc(100% - 36px); }
  .publication { grid-template-columns: 106px minmax(0, 1fr); gap: 0 12px; }
  .thumbnail { height: 78px; }
  .jobs li { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 570px) {
  .publication { grid-template-columns: 1fr; gap: 7px; }
  .thumbnail { width: 140px; height: 88px; }
}

.site-header { border-bottom: 1px solid var(--line); }
.site-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 0; }
.site-nav .brand { font-weight: 650; color: var(--text); text-decoration: none; }
.site-nav nav { display: flex; flex-wrap: wrap; gap: .3rem 1.25rem; font-size: .91rem; }
.site-nav nav a { text-decoration: none; }
.site-nav nav [aria-current="page"] { color: var(--text); font-weight: 650; text-decoration: underline; }
.content-page > h1 { margin-bottom: 10px; }
.page-note { color: var(--muted); font-size: .95rem; margin-bottom: 20px; }
.news-list { margin: 0; padding: 0; list-style: none; }
.news-list li { display: grid; grid-template-columns: 105px 1fr; gap: 14px; padding: 7px 0; font-size: .94rem; }
.news-list time { color: var(--muted); font-size: .88rem; }
section.selected { margin-top: 15px; }
.authors { color: var(--text); font-size: .9rem; line-height: 1.5; margin-top: 4px; }
.authors strong { font-weight: 650; }
.pub-list { list-style: none; margin: 0; padding: 0; }
.pub-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.pub-list li:last-child { border-bottom: 0; }
.pub-list h3 { font-size: 1rem; font-weight: 650; line-height: 1.35; }
.pub-list h3 a { color: var(--text); text-decoration: none; }
.pub-list h3 a:hover { text-decoration: underline; }
.pub-list .meta { font-size: .84rem; }
.year { padding-top: 13px; margin-top: 17px; }
.year h2 { margin-bottom: 5px; }
.awards { margin: 15px 0 20px; }
.awards p { margin: 8px 0; font-size: .94rem; }
@media(max-width:750px) { .site-nav { width: calc(100% - 36px); } .site-nav nav { gap: .3rem .75rem; } }
@media(max-width:570px) { .site-nav .brand { display: none; } .site-nav nav { gap: .3rem 1rem; } .news-list li { grid-template-columns: 80px 1fr; gap: 8px; } }

/* Small additions for reusable templates and accessible links. */
.profile-icon { width: 16px; height: 16px; flex: 0 0 16px; }
.profile-icon--linkedin { color: #007bb6; }
.profile-icon--github { color: #171516; }
.profile-icon--scholar { color: #494e52; }
.pub-links { flex-wrap: wrap; }
.contribution-note { margin: 2px 0 10px; font-size: .8rem; color: var(--muted); }
.jobs h3 { font-size: 1rem; font-weight: 650; }
.job-copy .mentors { margin-top: 4px; font-size: .84rem; }
.jobs .mentors span { display: inline; font-size: inherit; }
.jobs .job-dates { display: inline; white-space: nowrap; font-size: inherit; }
.skip-link { position: absolute; top: -80px; left: 18px; background: white; padding: 8px 12px; z-index: 10; }
.skip-link:focus { top: 10px; }
.personal-copy { max-width: 700px; }
.personal-copy p + p { margin-top: 14px; }
.opportunity { padding: 10px 0; color: var(--text); font-size: .95rem; }
.opportunity-headline { color: #0065d5; font-weight: 600; }
@media print {
  .site-header, .skip-link { display: none; }
  .container { width: 100%; }
  .publication, .jobs li { break-inside: avoid; }
}

/* Desktop: persistent identity beside the reading column.
   The footer shares that column so the portrait stays visible at the page end. */
.site-layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  align-items: start;
  gap: 72px;
  padding-top: 36px;
}
.main-column { min-width: 0; }
main { min-height: calc(100vh - 160px); }
.profile-sidebar {
  position: sticky;
  top: 32px;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  scrollbar-width: thin;
  padding: 0 4px 4px;
}
.portrait {
  display: block;
  width: 206px;
  height: 219px;
  object-fit: cover;
  object-position: 50% 43%;
  border-radius: 5px;
}
.profile-details { margin-top: 20px; }
.profile-name { font-size: 1.7rem; font-weight: 650; line-height: 1.25; letter-spacing: -.035em; }
.profile-name span { color: var(--muted); font-size: .64em; font-weight: 450; letter-spacing: 0; }
.affiliation { margin-top: 9px; max-width: 220px; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.university { margin-top: 3px; font-size: .94rem; }
.links { display: grid; grid-template-columns: max-content max-content; gap: 10px 17px; margin-top: 19px; font-size: .84rem; }
.links a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 500; }
.links a:hover { text-decoration: underline; }
.links .email-link { grid-column: 1 / -1; padding-bottom: 3px; font-size: .9rem; }
.intro { padding: 0 0 24px; }
.intro .bio { margin-top: 12px; }
.intro .research-heading { margin-top: 20px; }
.content-page { padding-bottom: 18px; }

/* A smaller desktop still gets a readable paper column. */
@media (min-width: 901px) and (max-width: 1100px) {
  .site-layout { grid-template-columns: 224px minmax(0, 1fr); gap: 44px; }
  .publication { grid-template-columns: 135px minmax(0, 1fr); gap: 18px; }
  .thumbnail { height: 96px; }
  .jobs li { grid-template-columns: 1fr; gap: 4px; }
}

/* Tablet and phone: identity returns to normal flow; no sticky overlay. */
@media (max-width: 900px) {
  .site-layout { display: block; padding-top: 26px; }
  .profile-sidebar { position: static; max-height: none; overflow: visible; display: grid; grid-template-columns: 172px minmax(0, 1fr); gap: 28px; align-items: center; padding: 0 0 28px; }
  .portrait { width: 172px; height: 183px; }
  .profile-details { margin-top: 0; }
  .affiliation { max-width: none; }
  .links { margin-top: 14px; }
  .intro { padding-top: 20px; border-top: 1px solid var(--line); }
  main { min-height: 0; }
}
@media (max-width: 570px) {
  .profile-sidebar { grid-template-columns: 120px minmax(0, 1fr); gap: 16px 18px; }
  .profile-details { display: contents; }
  .portrait { width: 120px; height: 128px; }
  .profile-name { font-size: 1.5rem; }
  .profile-name span { display: block; margin-top: 3px; font-size: .75em; }
  .affiliation { margin-top: 7px; font-size: .84rem; }
  .university { font-size: .88rem; }
  .links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 0; }
  .links .email-link { flex-basis: 100%; padding-bottom: 0; }
}
@media print {
  .site-layout { display: block; padding-top: 0; }
  .profile-sidebar { position: static; max-height: none; overflow: visible; display: grid; grid-template-columns: 150px 1fr; gap: 24px; margin-bottom: 24px; }
  .portrait { width: 150px; height: 160px; }
  .profile-details { display: block; margin-top: 0; }
  main { min-height: 0; }
}
