/* A small, shared stylesheet for the research site. No framework overrides. */
:root {
  color-scheme: light;
  --background: #fcfdfb;
  --text: #202b32;
  --muted: #57656e;
  --link: #286576;
  --line: #e1e7e5;
  --surface: #f3f8f6;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #172027;
  --text: #eef3f4;
  --muted: #b4c1c6;
  --link: #99ced7;
  --line: #38474e;
  --surface: #203038;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --background: #172027;
    --text: #eef3f4;
    --muted: #b4c1c6;
    --link: #99ced7;
    --line: #38474e;
    --surface: #203038;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 5px;
}
button { font: inherit; }
[hidden] { display: none !important; }
img { max-width: 100%; }
h1, h2, h3, p, figure { margin-top: 0; }
h1, h2, h3 { font-weight: 600; color: var(--text); }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.2; letter-spacing: -0.035em; }
h2 { font-size: 1.42rem; line-height: 1.35; letter-spacing: -0.02em; margin-bottom: 24px; }
h3 { font-size: 1.03rem; line-height: 1.5; margin-bottom: 4px; }
strong { font-weight: 600; }
.shell { max-width: 1040px; padding-inline: 36px; margin-inline: auto; }
.skip-link { position: absolute; left: 20px; top: -70px; padding: 8px 14px; background: var(--background); z-index: 30; }
.skip-link:focus { top: 8px; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-name { font-size: 16px; font-weight: 600; color: var(--text); text-decoration: none; white-space: nowrap; }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.site-nav a, #theme-toggle { font-size: 14px; text-decoration: none; color: var(--muted); }
#theme-toggle { border: 0; border-left: 1px solid var(--line); padding: 0 0 0 18px; background: transparent; cursor: pointer; }
.intro { display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 60px; padding: 68px 0 44px; align-items: start; }
.intro h1 { margin-bottom: 24px; }
.biography p { margin-bottom: 15px; }
.biography p:last-child { margin-bottom: 0; }
.biography a { text-decoration: none; }
.portrait { margin: 5px 0 0; }
.portrait img { display: block; width: 160px; height: 160px; object-fit: cover; border-radius: 3px; }
.portrait figcaption { color: var(--muted); text-align: center; margin-top: 9px; font-size: 11px; }
.profile-links { display: flex; flex-wrap: wrap; gap: 9px 20px; margin-top: 26px; }
.profile-links a { font-size: 14px; text-decoration: none; }
.section { padding-block: 40px; border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 25px; }
.section-heading h2 { margin: 0; }
.section-note, .small-link { font-size: 13px; color: var(--muted); }
.news-list, .records, .honors-list { list-style: none; padding: 0; margin: 0; }
.news-list li { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 20px; margin-bottom: 15px; }
.news-list li:last-child { margin-bottom: 0; }
.news-list time { font-size: 13px; color: var(--muted); padding-top: 2px; }
.news-copy { font-size: 15px; line-height: 1.7; }
.news-copy p { margin: 0; }
.news-copy a { text-decoration: none; }
.publications ol.bibliography { margin: 0; padding: 0; list-style: none; }
.publications ol.bibliography > li + li { margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--line); }
.paper { display: grid; grid-template-columns: 172px minmax(0, 1fr); gap: 28px; align-items: start; }
.paper-figure { padding: 5px; border: 1px solid var(--line); background: #fff; border-radius: 2px; }
.paper-figure img { display: block; width: 160px; height: 102px; object-fit: contain; }
.paper-body { min-width: 0; }
.paper h3 { font-size: 17px; line-height: 1.55; margin-bottom: 7px; }
.paper-authors { color: var(--muted); font-size: 14.5px; line-height: 1.7; margin: 0 0 4px; }
.paper-authors strong { color: var(--text); }
.paper-venue { font-size: 14px; margin-bottom: 8px; }
.paper-note { color: var(--muted); font-size: 13px; }
.paper-links { display: flex; flex-wrap: wrap; gap: 16px; }
.paper-links a { font-size: 13px; text-decoration: none; }
.paper-details { font-size: 13px; margin-top: 9px; }
.paper-details summary { display: list-item; width: fit-content; cursor: pointer; color: var(--link); }
.paper-details pre { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--surface); padding: 16px; border: 1px solid var(--line); border-radius: 2px; font-size: 11px; line-height: 1.65; }
.paper-details p { margin-top: 10px; }
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 62px; }
.records li { margin-bottom: 25px; }
.records li:last-child { margin-bottom: 0; }
.record-date { color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.record-org { font-size: 14px; margin-bottom: 5px; }
.record-org a { text-decoration: none; }
.record-detail { color: var(--muted); font-size: 14px; line-height: 1.7; margin-bottom: 0; }
.subheading { font-size: 14px; margin: 21px 0 9px; }
.service-list { margin: 0; }
.service-list > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; font-size: 14px; padding-block: 3px; }
.service-list dt { font-weight: 400; }
.service-list dd { margin: 0; color: var(--muted); }
.honors-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; margin-bottom: 20px; }
.honors-list h3 { font-size: 15px; }
.honors-list .record-date { padding-top: 2px; }
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-block: 27px; margin-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.site-footer a { color: inherit; text-decoration: none; }
.document { padding-block: 58px 64px; min-height: 55vh; }
.document > h1 { margin-bottom: 34px; }
.document .news-list { margin-top: 34px; }
.document .publications { margin-top: 34px; }
.prose { max-width: 760px; }
@media (max-width: 760px) {
  .shell { padding-inline: 24px; }
  .header-inner { flex-direction: column; align-items: flex-start; justify-content: center; gap: 9px; padding-block: 18px; }
  .site-nav { gap: 19px; }
  .intro { gap: 28px; grid-template-columns: minmax(0, 1fr) 120px; padding-top: 42px; }
  .portrait img { width: 120px; height: 120px; }
  .two-column { gap: 32px; }
  .paper { grid-template-columns: 138px minmax(0, 1fr); gap: 22px; }
  .paper-figure img { width: 126px; height: 87px; }
}
@media (max-width: 540px) {
  body { font-size: 16px; }
  .shell { padding-inline: 20px; }
  .site-nav { column-gap: 15px; row-gap: 8px; }
  .site-nav a, #theme-toggle { font-size: 13px; }
  #theme-toggle { padding-left: 12px; }
  .intro { display: flex; flex-direction: column; gap: 22px; padding-block: 34px; }
  .portrait { display: none; }
  .section { padding-block: 32px; }
  .section-heading { gap: 12px; margin-bottom: 22px; }
  .news-list li { grid-template-columns: 69px minmax(0, 1fr); gap: 12px; }
  .news-copy { font-size: 14px; }
  .paper { grid-template-columns: 1fr; gap: 14px; }
  .paper-figure { width: 162px; }
  .paper-figure img { width: 150px; height: 92px; }
  .paper h3 { font-size: 16px; }
  .two-column { grid-template-columns: 1fr; gap: 38px; }
  .document { padding-top: 35px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Editorial emphasis: one muted research accent, restrained throughout.
   No decorative initials, heavy hero, icon dependencies or animations. */
:root {
  --accent: #286576;
  --accent-strong: #1e5361;
  --accent-soft: #eaf3f1;
  --accent-border: #cbdedc;
}
:root[data-theme="dark"] {
  --accent: #99ced7;
  --accent-strong: #b4dde3;
  --accent-soft: #243b41;
  --accent-border: #40606a;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent: #99ced7;
    --accent-strong: #b4dde3;
    --accent-soft: #243b41;
    --accent-border: #40606a;
  }
}
/* Navigation: highlight the CV without turning the header into a toolbar. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--background);
}
.site-name { font-weight: 700; letter-spacing: -0.015em; }
.site-nav a { transition: color 150ms ease; }
.site-nav a:hover, .site-name:hover { color: var(--accent); }
.site-nav a[href$=".pdf"] {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--accent-border);
  border-radius: 6px;
  color: var(--accent-strong);
  padding: 5px 13px;
  font-weight: 650;
  background: var(--accent-soft);
}
.site-nav a[href$=".pdf"]:hover { border-color: var(--accent); }
#theme-toggle {
  color: var(--muted);
  white-space: nowrap;
}
#theme-toggle::before {
  content: "◐";
  color: var(--accent);
  padding-right: 7px;
  font-size: 15px;
}
/* Identity: distinct but editorial rather than a promotional hero. */
.intro {
  grid-template-columns: minmax(0, 1fr) 182px;
  gap: 53px;
  padding-top: 69px;
  padding-bottom: 52px;
}
.intro h1 {
  font-size: clamp(2.72rem, 4.5vw, 3.3rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.17;
  margin-bottom: 24px;
}
.biography { max-width: 700px; }
.biography p { line-height: 1.8; }
.biography p:first-child {
  font-size: 17.5px;
  font-weight: 500;
  color: var(--text);
}
.biography strong {
  color: var(--accent-strong);
  font-weight: 700;
}
.profile-links {
  gap: 10px 20px;
  margin-top: 24px;
}
.profile-links a {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent-border);
  text-underline-offset: 5px;
}
.profile-links a:hover { text-decoration-color: currentColor; }
.portrait { margin-top: 16px; }
.portrait img {
  width: 182px;
  height: 182px;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.portrait figcaption {
  font-size: 12px;
  line-height: 1.5;
  margin-top: 11px;
}
/* Section headings and news: stronger scanning, little decoration. */
.section { padding-block: 46px; }
.section-heading { margin-bottom: 28px; }
.section-heading h2 {
  position: relative;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.027em;
  padding-bottom: 10px;
}
.section-heading h2::after {
  content: "";
  position: absolute;
  width: 29px;
  height: 2px;
  bottom: 0;
  left: 0;
  background: var(--accent);
}
.two-column h2 {
  border-left: 3px solid var(--accent);
  padding-left: 12px;
  font-size: 1.4rem;
}
.news-list time {
  color: var(--accent);
  font-weight: 650;
}
.news-copy strong { color: var(--accent-strong); }
.small-link { color: var(--accent); font-weight: 600; }
/* Publications: consistent article presentation, without featured-row backgrounds. */
.paper { gap: 29px; }
.paper-figure {
  background: #fff;
  border-color: var(--accent-border);
  border-radius: 6px;
}
.paper h3 {
  font-size: 18px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: -0.012em;
}
.paper-authors { margin-bottom: 7px; }
.paper-authors a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--accent-border);
  text-underline-offset: 3px;
}
.paper-authors a:hover {
  color: var(--accent-strong);
  text-decoration-color: currentColor;
}
.paper-authors strong a {
  color: var(--text);
  font-weight: 700;
}
.paper-venue {
  font-size: 13.5px;
  font-weight: 650;
  color: var(--accent-strong);
  margin-bottom: 12px;
}
.paper-note { color: var(--muted); font-weight: 450; }
.paper-links { gap: 8px; }
.paper-links a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 650;
  border: 1px solid var(--line);
  padding: 4px 9px;
  border-radius: 5px;
  background: var(--background);
  transition: border-color 150ms ease, background-color 150ms ease;
}
.paper-links a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.paper-links a:first-child {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent-strong);
}
.paper-details summary { font-weight: 600; }
/* A light timeline strengthens chronology without adding cards. */
.records li {
  position: relative;
  border-left: 1px solid var(--line);
  padding-left: 19px;
  margin-left: 3px;
  margin-bottom: 0;
  padding-bottom: 25px;
}
.records li:last-child { border-left-color: transparent; padding-bottom: 0; }
.records li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: -4px;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
}
.record-date { font-weight: 600; color: var(--accent); }
.record-org a { font-weight: 600; }
.service-list dt { font-weight: 650; color: var(--accent-strong); }
.honors-list li:first-child h3 { color: var(--accent-strong); }
@media (max-width: 760px) {
  html { scroll-padding-top: 130px; }
  .intro {
    grid-template-columns: minmax(0, 1fr) 143px;
    gap: 30px;
    padding-top: 42px;
  }
  .portrait img { width: 143px; height: 143px; }
  .section { padding-block: 39px; }
}
@media (max-width: 540px) {
  .intro { padding-top: 30px; gap: 20px; }
  .intro h1 { font-size: clamp(2.25rem, 10vw, 2.75rem); }
  .portrait { display: block; width: 142px; margin: 4px 0 0; }
  .portrait img { width: 142px; height: 142px; }
  .portrait figcaption { font-size: 11px; white-space: nowrap; }
  .section { padding-block: 33px; }
  .section-heading h2 { font-size: 1.38rem; }
  .paper { gap: 14px; }
  .paper-venue { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-nav a, .paper-links a { transition: none; }
}

/* Service placement is secondary context, not the research headline. */
.biography .service-note {
  color: var(--muted);
  font-size: 15.5px;
  font-weight: 400;
  margin-top: 22px;
}
.biography .service-note a,
.service-placement .record-org a {
  color: var(--muted);
  font-weight: 400;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}
.biography .service-note a:hover,
.service-placement .record-org a:hover {
  color: var(--text);
  text-decoration-color: currentColor;
}

@media print {
  .site-header, .site-footer, .profile-links, .paper-details, .skip-link { display: none; }
  :root { --background: #fff; --text: #111; --muted: #444; --link: #111; --line: #ccc; }
  .shell { max-width: none; padding: 0; }
  .intro { padding-top: 0; }
  .paper, .records li { break-inside: avoid; }
}
