/* Shared presentation for the academic profile and its research pages. */
:root {
  --site-ink: #223747;
  --site-muted: #566876;
  --site-accent: #176a70;
  --site-line: #dce5e9;
  --site-soft: #f2f7f8;
}
html { font-size: 18px; scroll-behavior: smooth; }
body.site-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  color: var(--site-ink);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.site-shell *, .site-shell *::before, .site-shell *::after { box-sizing: border-box; }
.site-shell a { color: var(--site-accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
.site-shell a:hover { color: #104d56; }
.site-shell a:focus-visible, .site-shell button:focus-visible, .site-shell summary:focus-visible { outline: 3px solid #4677ba; outline-offset: 4px; }
.site-shell h1, .site-shell h2, .site-shell h3, .site-shell h4 { color: var(--site-ink); line-height: 1.3; word-break: normal; overflow-wrap: normal; hyphens: none; }
.site-shell h2 { margin: 2.2rem 0 .85rem; padding-bottom: .45rem; border-bottom: 1px solid var(--site-line); font-size: 1.45rem; }
.site-shell h3 { margin: 1.6rem 0 .65rem; font-size: 1.12rem; }
.site-shell p { margin: 0 0 1.1rem; }
.site-shell li { margin-bottom: .4rem; }
.site-shell ul, .site-shell ol { padding-left: 1.3rem; }
.site-shell img { max-width: 100%; height: auto; }
.site-shell pre { max-width: 100%; overflow-x: auto; }
.site-shell table { display: block; max-width: 100%; overflow-x: auto; }
.site-shell [id] { scroll-margin-top: 1.5rem; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 10000; padding: .7rem 1rem; background: #fff; border: 2px solid var(--site-accent); border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.site-masthead { border-bottom: 1px solid var(--site-line); background: #f7f9fa; }
.site-masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: min(100% - 64px, 1180px); margin: auto; padding: 1rem 0; }
.site-brand { flex-shrink: 0; padding: .4rem 0; color: var(--site-ink) !important; font-size: 1.12rem; font-weight: 750; letter-spacing: -.025em; text-decoration: none; }
.site-nav__links { display: flex; flex-wrap: wrap; gap: .2rem 1.2rem; margin: 0; padding: 0 !important; list-style: none; }
.site-nav__links li { margin: 0; }
.site-nav__links a { display: block; min-height: 44px; padding: .5rem 0; color: var(--site-muted); font-size: .85rem; font-weight: 600; text-decoration: none; }
.site-nav__links a[aria-current="page"] { color: var(--site-accent); box-shadow: inset 0 -2px var(--site-accent); }
.site-shell #main {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  align-items: start;
  gap: 3rem;
  flex: 1 0 auto;
  width: min(100% - 64px, 1180px);
  max-width: 1180px;
  margin: 2.8rem auto 4rem;
  padding: 0;
  animation: none;
}
.site-shell #main::before, .site-shell #main::after { display: none; }
.site-shell #main > .sidebar, .site-shell #main > .page, .site-shell #main > .archive { float: none; width: 100%; min-width: 0; margin: 0; padding: 0; }
.site-shell #main > .page:only-child, .site-shell #main > .archive:only-child { grid-column: 1 / -1; }
.site-shell .page__inner-wrap, .site-shell .page__content { float: none; width: 100%; }
.site-shell .page__title { margin: 0 0 1.3rem; font-size: clamp(1.85rem, 3vw, 2.5rem); font-weight: 730; letter-spacing: -.035em; line-height: 1.2; }
.site-shell .page__date, .site-shell .page__meta { color: var(--site-muted); font-size: .82rem; }
.site-shell .page__meta:empty { display: none; }
.site-shell .sidebar { opacity: 1; font-size: .85rem; }
.profile-card { padding-bottom: 1rem; }
.profile-card__portrait { display: block; width: 154px; margin-bottom: 1.15rem; }
.profile-card__portrait img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 24px; box-shadow: 0 7px 24px #22374712; }
.profile-card .profile-card__name { margin: 0 0 .25rem; color: var(--site-ink); font-size: 1rem; font-weight: 700; letter-spacing: -.02em; }
.profile-card .profile-card__role { margin: 0 0 .35rem; font-size: .8rem; line-height: 1.5; }
.profile-card .profile-card__affiliation { margin: 0 0 1rem; color: var(--site-muted); font-size: .78rem; line-height: 1.6; }
.profile-links { border-top: 1px solid var(--site-line); padding-top: .5rem; }
.profile-links summary { padding: .55rem 0; color: var(--site-muted); font-size: .75rem; font-weight: 600; cursor: pointer; }
.profile-links ul { list-style: none; padding: .25rem 0 0; margin: 0; }
.profile-links li { margin: 0; }
.profile-links a { display: flex; align-items: center; justify-content: space-between; min-height: 38px; padding: .25rem 0; font-size: .78rem; text-decoration: none; }
.profile-links a span { color: #81949e; }
.content-intro { color: var(--site-muted); font-size: 1.05rem; line-height: 1.7; }
.action-links { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.3rem; margin: 1.2rem 0 1.7rem; }
.action-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: .88rem; font-weight: 600; }
.site-shell .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin: 0; padding: .65rem 1rem; border: 1px solid var(--site-line); border-radius: 8px; font-size: .85rem; text-decoration: none; }
.site-shell .btn--primary { color: #fff; background: var(--site-accent); border-color: var(--site-accent); }
.site-shell .btn--primary:hover { color: #fff; background: #104d56; }
.section-nav { display: flex; flex-wrap: wrap; gap: .35rem .65rem; margin: 1.3rem 0 2rem; padding: .7rem 0; border-top: 1px solid var(--site-line); border-bottom: 1px solid var(--site-line); }
.section-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: .3rem .65rem; border-radius: 6px; font-size: .78rem; font-weight: 600; text-decoration: none; }
.section-nav a:hover { background: var(--site-soft); }
.publications-page .archive > ul { margin: .5rem 0 1.5rem; padding: 0; list-style: none; }
.publications-page .archive > ul > li { margin: 0; padding: 1.15rem 0; border-bottom: 1px solid var(--site-line); }
.publications-page .archive > ul > li:last-child { border-bottom: 0; }
.publications-page .archive > ul > li > p { margin: .3rem 0 0; color: var(--site-muted); font-size: .88rem; }
.publications-page .archive > ul > li > p:first-child { margin-top: 0; color: var(--site-ink); font-size: 1rem; line-height: 1.45; }
.cv-page .archive > ul { margin: 0 0 1.6rem; padding: 0; list-style: none; }
.cv-page .archive > ul > li { margin-bottom: 1rem; padding-left: 1rem; border-left: 2px solid var(--site-line); }
.cv-page .archive > ul > li > ul { margin-top: .4rem; color: var(--site-muted); font-size: .88rem; }
.entry-list { padding: 0 !important; list-style: none; }
.entry-card { margin: 0 0 1rem; padding: 1.2rem 1.3rem; border: 1px solid var(--site-line); border-radius: 12px; background: #fff; }
.entry-card h2, .entry-card h3, .entry-card .archive__item-title { margin: 0 0 .45rem; padding: 0; border: 0; font-size: 1.08rem; }
.entry-card p:last-child { margin-bottom: 0; }
.entry-meta { color: var(--site-muted); font-size: .82rem; }
.entry-card .action-links { margin: .7rem 0 0; }
.video-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 1.5rem 0; background: var(--site-soft); border-radius: 12px; overflow: hidden; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.talk-map { width: 100%; margin: 1.5rem 0; }
.talk-map iframe { display: block; width: 100%; height: clamp(320px, 65vh, 600px); border: 1px solid var(--site-line); border-radius: 12px; }
.home-page .page__title { max-width: 750px; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; }
.home-page .home-intro { max-width: 720px; color: var(--site-muted); font-size: 1.12rem; }
.home-pathways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 2.2rem 0; }
.home-pathways > a { display: block; padding: 1.1rem; border: 1px solid var(--site-line); border-radius: 12px; text-decoration: none; background: #f7fafb; }
.home-pathways > a:hover { background: #edf5f6; border-color: #b5cfd2; }
.home-pathways strong { display: block; margin-bottom: .45rem; font-size: 1rem; }
.home-pathways span { display: block; color: var(--site-muted); font-size: .83rem; line-height: 1.55; }
.home-pathways .home-pathways__arrow { display: inline; }
.home-project { padding: 1.5rem; border-left: 3px solid var(--site-accent); border-radius: 0 12px 12px 0; background: var(--site-soft); }
.home-project h2 { margin: 0 0 .75rem; padding: 0; border: 0; font-size: 1.3rem; }
.home-project p:last-child { margin-bottom: 0; }
.affiliation-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--site-line); }
.affiliation-logos img { display: block; object-fit: contain; max-width: 100%; }
.affiliation-logos img:first-child { width: 220px; }
.affiliation-logos img:last-child { width: 250px; }
.site-shell .page__footer { position: static; float: none; flex-shrink: 0; width: 100%; margin: 0; padding: 0; border-top: 1px solid var(--site-line); color: var(--site-muted); background: #f7f9fa; }
.site-shell .page__footer footer { width: min(100% - 64px, 1180px); max-width: 1180px; margin: auto; padding: 1.5rem 0; }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; font-size: .74rem; }
.site-footer__inner p { margin: 0; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 1rem; }
.site-footer__links a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer__credit { flex-basis: 100%; font-size: .68rem; }
@media (max-width: 1050px) {
  .site-shell #main { grid-template-columns: 180px minmax(0, 1fr); gap: 2rem; }
  .site-nav__links { column-gap: .85rem; }
  .home-pathways { gap: .65rem; }
}
@media (max-width: 859px) {
  .site-masthead__inner { align-items: flex-start; flex-direction: column; gap: .25rem; padding: .75rem 0 .35rem; }
  .site-nav { width: 100%; }
  .site-nav__links { justify-content: space-between; gap: .2rem .9rem; }
  .site-shell #main { grid-template-columns: minmax(0, 1fr); gap: 2rem; margin-top: 1.5rem; }
  .profile-card { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: .4rem 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--site-line); }
  .profile-card__portrait { width: 76px; margin: .15rem 0 0; }
  .profile-card__portrait img { border-radius: 16px; }
  .profile-card .profile-card__name { font-size: .95rem; }
  .profile-card .profile-card__role, .profile-card .profile-card__affiliation { font-size: .76rem; }
  .profile-card .profile-card__affiliation { margin-bottom: 0; }
  .profile-links { grid-column: 1 / -1; padding: 0; border: 0; }
  .profile-links summary { width: fit-content; min-height: 44px; padding: .6rem 0; }
  .profile-links ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.5rem; padding: 0; }
  .profile-links a { min-height: 44px; }
}
@media (max-width: 560px) {
  html { font-size: 16px; }
  .site-masthead__inner, .site-shell #main, .site-shell .page__footer footer { width: calc(100% - 36px); }
  .site-nav__links { column-gap: .6rem; }
  .site-nav__links a { font-size: .82rem; }
  .site-shell #main { gap: 1.5rem; margin-bottom: 2.5rem; }
  .site-shell .page__title { font-size: 2rem; }
  .site-shell h2 { font-size: 1.35rem; margin-top: 1.8rem; }
  .home-page .page__title { font-size: 2.2rem; }
  .home-page .home-intro { font-size: 1.08rem; }
  .home-pathways { grid-template-columns: minmax(0, 1fr); gap: .7rem; }
  .home-pathways > a { padding: 1rem 1.15rem; }
  .home-pathways strong { margin-bottom: .2rem; }
  .home-pathways span { font-size: .9rem; }
  .home-project { padding: 1.2rem; }
  .section-nav { gap: .1rem .3rem; }
  .section-nav a { font-size: .8rem; padding-inline: .5rem; }
  .entry-card { padding: 1rem; }
  .affiliation-logos { gap: 1.5rem; }
  .site-footer__inner { font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-shell #main { animation: none; }
}
