/* STIX Two Text: official STIX v2.0.2, SIL OFL 1.1.
   University emblems retain their official colors. Site accents are muted
   blue/burgundy adaptations, paired with warm neutral surfaces for the portrait. */
@font-face { font-family: 'STIX Two Text'; src: url('assets/fonts/STIX2Text-Regular.woff2') format('woff2'); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: 'STIX Two Text'; src: url('assets/fonts/STIX2Text-Bold.woff2') format('woff2'); font-style: normal; font-weight: 600 900; font-display: swap; }
@font-face { font-family: 'STIX Two Text'; src: url('assets/fonts/STIX2Text-Italic.woff2') format('woff2'); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: 'STIX Two Text'; src: url('assets/fonts/STIX2Text-BoldItalic.woff2') format('woff2'); font-style: italic; font-weight: 600 900; font-display: swap; }
:root {
  --ink: #303536; --muted: #6b6965;
  --theme-accent: #30546c; --theme-hover: #203f52; --theme-underline: #a4b5bb;
  --theme-rule: #dedbd4; --theme-soft: #c7d0d4; --theme-wash: #eef0ed;
  --link: var(--theme-accent); --rule: var(--theme-rule);
}
a { text-decoration-color: var(--theme-underline); }
a:hover { color: var(--theme-hover); transition: color 180ms ease, text-decoration-color 180ms ease; }
.site-name, h1, h2 { color: var(--theme-accent); }
.site-name { letter-spacing: -.025em; }
.site-name:hover { color: var(--theme-hover); transition: color 180ms ease; }
.news-list p { font-size: 16px; line-height: 1.6; }
.research-project h3 { font: 600 17px/1.4 var(--serif); margin-bottom: 7px; }
.research-project p { font-size: 16px; line-height: 1.65; }
.research-papers a { font-size: 15px; line-height: 1.55; }
.paper-meta { font-size: 12px; }
.authors strong { font-weight: 600; }
.affiliation-history { min-width: 0; }
.affiliation-summary { display: none; }
.affiliations { --affiliation-gap: 17px; position: relative; display: flex; flex-direction: column; gap: var(--affiliation-gap); list-style: none; padding: 0; margin: 18px 0 0; }
.affiliations li { position: relative; }
.affiliations li:not(:last-child)::before { content: ''; position: absolute; top: 25px; left: 21px; width: 1px; height: calc(100% + var(--affiliation-gap)); background: var(--theme-soft); }
.affiliation-choice { position: relative; display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: start; gap: 11px; width: 100%; padding: 4px 0; border: 0; background: none; color: var(--muted); text-align: left; font: 13px/1.45 var(--serif); cursor: pointer; }
.affiliation-choice:hover, .affiliation-choice[aria-pressed='true'] { color: var(--theme-accent); }
.affiliation-badge { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--theme-rule); background: #fff; box-shadow: 0 0 0 3px var(--paper); }
.affiliation-emblem { display: block; width: 34px; height: 34px; object-fit: contain; }
.affiliation-choice[aria-pressed='true'] .affiliation-badge { border-color: var(--theme-accent); box-shadow: 0 0 0 3px var(--theme-wash); }
.affiliation-label { display: flex; flex-direction: column; gap: 3px; }
.affiliation-school { font-weight: 500; }
.affiliation-unit { color: var(--muted); font-size: 11px; line-height: 1.45; }
.affiliation-positions { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.affiliation-position { display: flex; flex-direction: column; gap: 1px; }
.affiliation-title { color: var(--ink); font-size: 12px; }
.affiliation-period { font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.theme-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.site-nav { margin-top: 27px; }
.site-nav a { position: relative; }
.site-nav a::after { content: ''; display: block; height: 1px; margin-top: 1px; background: var(--theme-accent); transform: scaleX(0); transform-origin: left; transition: transform 180ms ease; }
.site-nav a:hover { text-decoration: none; }
.site-nav a:hover::after, .site-nav a:focus-visible::after, .site-nav a[aria-current='page']::after { transform: scaleX(1); background: var(--theme-accent); }
.site-nav a[aria-current='page'] { color: var(--theme-accent); }
.section-heading { position: relative; }
.section-heading::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 34px; height: 1px; background: var(--theme-accent); }
.research-papers { border-left-color: var(--theme-soft); }
.research-project:hover .research-papers { border-left-color: var(--theme-accent); transition: border-color 180ms ease; }
.name-note, .email-note { border-top: 2px solid var(--theme-accent); }
.content-column { padding-bottom: 48px; }
/* Animate painted colors rather than discrete custom properties. Keeping this
   click-enabled avoids transitions while the initial stylesheets load. */
.theme-transitions :is(a, h1, h2, .site-name, .affiliation-choice, .affiliation-badge, .affiliation-more, .affiliation-current-school, .profile-links, .identity, .section-heading, .research-papers, .research-project, .name-note, .email-note),
.theme-transitions .section-heading::after, .theme-transitions .affiliations li::before {
  transition: color 480ms ease, background-color 480ms ease, border-color 480ms ease, text-decoration-color 480ms ease, box-shadow 480ms ease;
}
.theme-transitions .site-nav a::after { transition: background-color 480ms ease, transform 180ms ease; }
/* Let the longer career history scroll with the page on shorter screens. */
@media (min-width: 761px) and (max-height: 900px) {
  .identity { position: static; padding-bottom: 32px; }
}
@media (max-width: 760px) {
  .profile-heading { align-items: center; }
  .profile-details { display: contents; }
  .name-disclosure { min-width: 0; margin-bottom: 0; }
  .profile-photo { margin-top: 0; }
  .affiliation-history { grid-column: 1 / -1; }
  .affiliation-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; list-style: none; cursor: pointer; }
  .affiliation-summary::-webkit-details-marker { display: none; }
  .affiliation-summary::marker { content: ''; }
  .affiliation-summary:focus-visible { outline: 2px solid var(--theme-accent); outline-offset: 4px; }
  .affiliation-current { display: flex; align-items: center; gap: 10px; min-width: 0; }
  .affiliation-current img { width: 32px; height: 32px; object-fit: contain; flex: none; }
  .affiliation-current-label { display: flex; flex-direction: column; gap: 1px; }
  .affiliation-current-school { color: var(--theme-accent); font-size: 13px; }
  .affiliation-current-title { color: var(--muted); font-size: 12px; }
  .affiliation-summary-heading { display: none; font-size: 13px; color: var(--muted); }
  .affiliation-more { display: inline-flex; align-items: center; gap: 8px; flex: none; color: var(--theme-accent); font-size: 12px; }
  .affiliation-more::after { content: ''; width: 5px; height: 5px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 180ms ease; }
  .affiliation-less-label { display: none; }
  .affiliation-history[open] .affiliation-current, .affiliation-history[open] .affiliation-more-label { display: none; }
  .affiliation-history[open] .affiliation-summary-heading, .affiliation-history[open] .affiliation-less-label { display: inline; }
  .affiliation-history[open] .affiliation-more::after { transform: translateY(1px) rotate(225deg); }
  .affiliations { --affiliation-gap: 14px; margin-top: 4px; }
  .affiliation-history[open] .affiliations { animation: affiliation-reveal 220ms ease; }
  .affiliations li:not(:last-child)::before { left: 18px; top: 22px; }
  .affiliation-choice { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; }
  .affiliation-badge { width: 36px; height: 36px; }
  .affiliation-emblem { width: 30px; height: 30px; }
  .affiliation-period { font-size: 10px; }
  .content-column { padding-bottom: 30px; }
  .site-nav { margin-top: 16px; }
  .research-papers a { font-size: 15px; }
}
@keyframes affiliation-reveal { from { opacity: .5; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print { .theme-status { display: none; } }
