/* Shared design for the academic profile and its indexes. */
:root {
  --profile-bg: #ffffff;
  --profile-ink: #172334;
  --profile-body: #455366;
  --profile-muted: #66758a;
  --profile-line: #dfe6ed;
  --profile-soft: #f3f7fb;
  --profile-blue: #245b98;
  --profile-blue-hover: #174675;
  --global-bg-color: #ffffff;
  --global-text-color: #172334;
  --global-link-color: #245b98;
  --global-border-color: #dfe6ed;
}
html[data-theme="dark"] {
  --profile-bg: #101822;
  --profile-ink: #e6edf5;
  --profile-body: #c0ccda;
  --profile-muted: #9daec2;
  --profile-line: #2a394c;
  --profile-soft: #182534;
  --profile-blue: #9bc5f5;
  --profile-blue-hover: #c8e0ff;
  --global-bg-color: #101822;
  --global-text-color: #e6edf5;
  --global-link-color: #9bc5f5;
  --global-border-color: #2a394c;
  color-scheme: dark;
}
html { font-size: 16px; scroll-behavior: smooth; }
body.profile-site {
  background: var(--profile-bg); color: var(--profile-body); padding: 0; margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 1rem; line-height: 1.7; -webkit-font-smoothing: antialiased;
}
.profile-site *, .profile-site *::before, .profile-site *::after { box-sizing: border-box; }
.profile-site [hidden] { display: none !important; }
.profile-site h1, .profile-site h2, .profile-site h3, .profile-site p { margin: 0; }
.profile-site a { color: var(--profile-blue); text-decoration: none; text-underline-offset: .22em; }
.profile-site a:visited { color: var(--profile-blue); }
.profile-site a:hover { color: var(--profile-blue-hover); text-decoration: underline; }
.profile-site a:focus-visible, .profile-site button:focus-visible, .profile-site input:focus-visible, .profile-site select:focus-visible { outline: 2px solid var(--profile-blue); outline-offset: 5px; }
.profile-site strong { font-weight: 600; color: var(--profile-ink); }
.profile-site section[id], .profile-site h2[id] { scroll-margin-top: 100px; }
.profile-header { border-bottom: 1px solid var(--profile-line); position: sticky; top: 0; z-index: 20; background: var(--profile-bg); }
.profile-nav { max-width: 1080px; min-height: 80px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.profile-wordmark { font-size: 1.125rem; letter-spacing: -.035em; font-weight: 650; white-space: nowrap; color: var(--profile-ink) !important; }
.profile-wordmark span { color: var(--profile-blue); }
.profile-nav-links { display: flex; align-items: center; gap: 28px; }
.profile-nav-links > a { color: var(--profile-muted); font-size: .875rem; padding: 10px 0; }
.profile-nav-links > a[aria-current="page"] { color: var(--profile-blue); text-decoration: underline; }
.profile-theme { display: grid; place-items: center; padding: 0; width: 38px; height: 38px; background: transparent; color: var(--profile-muted); border: 1px solid var(--profile-line); border-radius: 50%; cursor: pointer; }
.profile-theme:hover { color: var(--profile-blue); background: var(--profile-soft); }
#main.profile-shell { max-width: 1080px; margin: 0 auto; padding: 0 32px; animation: none; }
#main.profile-shell::before, #main.profile-shell::after { display: none; }
.profile-intro { display: grid; grid-template-columns: minmax(0, 1fr) 196px; column-gap: 68px; padding: 76px 0 54px; }
.profile-eyebrow { color: var(--profile-blue); font-size: .75rem; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; }
.profile-intro h1 { font-family: "Newsreader", Georgia, serif; font-weight: 500; color: var(--profile-ink); font-size: clamp(3.3rem, 6vw, 4.6rem); line-height: 1.03; letter-spacing: -.025em; margin: 18px 0 12px; }
.profile-role { font-size: 1rem; color: var(--profile-muted); }
.profile-intro .profile-lead { max-width: 680px; font-size: 1.3rem; line-height: 1.6; margin: 28px 0 14px; color: var(--profile-body); }
.profile-bio { max-width: 700px; font-size: 1rem; line-height: 1.85; }
.profile-social { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 26px; font-size: .875rem; }
.profile-primary-link { font-weight: 600; }
.profile-primary-link span { margin-left: 6px; }
.profile-intro .profile-metrics { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 20px; font-size: .8125rem; color: var(--profile-muted); }
.profile-metrics a, .profile-metrics a:visited { color: var(--profile-muted); }
.profile-metrics a span { margin: 0 8px; }
.profile-metrics strong { font-weight: 500; }
.profile-metrics-date { font-size: .75rem; align-self: center; }
.profile-identity { align-self: start; margin-top: 40px; }
.profile-monogram { display: flex; align-items: center; justify-content: center; width: 196px; aspect-ratio: 1; background: var(--profile-soft); color: var(--profile-ink); font-family: "Newsreader", Georgia, serif; font-size: 4rem; letter-spacing: -.055em; line-height: 1; }
.profile-monogram > span { color: var(--profile-blue); }
.profile-identity-caption { display: block; margin-top: 14px; color: var(--profile-muted); font-size: .75rem; letter-spacing: .025em; }
.profile-portrait { width: 196px; height: 230px; object-fit: cover; display: block; }
.profile-section { padding: 42px 0 0; border-top: 1px solid var(--profile-line); margin: 0 0 54px; }
.profile-section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 24px; margin: 0 0 24px; }
.profile-section-heading h2, .profile-contact h2 { font-family: "Newsreader", Georgia, serif; font-size: 1.9rem; font-weight: 500; letter-spacing: -.02em; color: var(--profile-ink); line-height: 1.25; }
.profile-section-heading > a { font-size: .875rem; white-space: nowrap; }
.profile-news-section { padding-top: 30px; margin-bottom: 42px; }
.news-rows, .awards-list, .profile-experience { margin: 0; padding: 0; list-style: none; }
.news-row { display: grid; grid-template-columns: 114px minmax(0, 1fr); gap: 22px; padding: 10px 0; }
.profile-date { color: var(--profile-muted); font-size: .875rem; line-height: 1.7; font-variant-numeric: tabular-nums; }
.news-row p { line-height: 1.7; font-size: .9375rem; }
.news-row p a { white-space: nowrap; font-size: .875rem; margin-left: 6px; }
.research-row { display: grid; grid-template-columns: 114px minmax(0, 1fr); gap: 22px; padding: 18px 0; border-bottom: 1px solid var(--profile-line); }
.research-row:first-of-type { padding-top: 6px; }
.research-margin { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 2px; }
.research-year { font-size: 1rem; color: var(--profile-ink); font-variant-numeric: tabular-nums; }
.research-status { font-size: .75rem; color: var(--profile-muted); line-height: 1.45; }
.research-status.is-published { color: var(--profile-blue); }
.research-area { font-size: .75rem; font-weight: 500; color: var(--profile-blue); text-transform: uppercase; letter-spacing: .075em; }
.research-main { min-width: 0; }
.research-main .research-title { font-size: 1.22rem; line-height: 1.4; font-weight: 600; letter-spacing: -.018em; margin: 4px 0 5px; color: var(--profile-ink); }
.research-title a, .research-title a:visited { color: var(--profile-ink); }
.research-main .research-summary { font-size: 1rem; line-height: 1.6; margin: 0 0 7px; }
.research-authors { font-size: .875rem; color: var(--profile-muted); line-height: 1.55; }
.research-main .research-venue { font-size: .875rem; line-height: 1.55; margin-top: 2px; color: var(--profile-muted); }
.research-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 5px; font-size: .875rem; line-height: 1.55; }
.research-list .research-note { margin-top: 12px; color: var(--profile-muted); font-size: .8125rem; }
.profile-experience li { display: grid; grid-template-columns: 114px minmax(0, 1fr); gap: 22px; padding: 0 0 28px; }
.profile-experience li:last-child { padding-bottom: 0; }
.profile-experience h3 { font-size: 1rem; font-weight: 600; line-height: 1.6; color: var(--profile-ink); }
.profile-experience h3 span { font-weight: 400; }
.profile-experience p { color: var(--profile-muted); font-size: .875rem; margin-top: 3px; }
.award-row { display: grid; grid-template-columns: 114px minmax(0, 1fr); gap: 22px; padding: 12px 0; border-bottom: 1px solid var(--profile-line); }
.award-row:first-child { padding-top: 0; }
.award-row:last-child { border-bottom: 0; }
.award-title { font-size: 1rem; color: var(--profile-ink); }
.award-title a, .award-title a:visited { color: var(--profile-ink); }
.award-org { display: block; color: var(--profile-muted); font-size: .875rem; margin-top: 2px; }
.profile-contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding: 36px 0 48px; border-top: 1px solid var(--profile-line); }
.profile-contact p { color: var(--profile-muted); font-size: .9375rem; margin-top: 10px; }
.profile-contact > a { font-size: 1rem; overflow-wrap: anywhere; }
.profile-footer { max-width: 1080px; margin: 0 auto; padding: 24px 32px 34px; border-top: 1px solid var(--profile-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: .8125rem; color: var(--profile-muted); }
.profile-footer div { display: flex; flex-wrap: wrap; gap: 22px; }
.profile-footer a, .profile-footer a:visited { color: var(--profile-muted); }
.profile-page-heading { padding: 60px 0 36px; }
.profile-page-heading h1 { font-family: "Newsreader", Georgia, serif; font-weight: 500; font-size: 3rem; line-height: 1.15; color: var(--profile-ink); margin-top: 12px; }
.profile-back { font-size: .875rem; }
.profile-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 0 0 26px; }
.profile-filters label { margin: 0; font-size: .875rem; }
.profile-filters .profile-search { flex: 1 1 280px; min-width: 0; }
.profile-filters input, .profile-filters select { box-sizing: border-box; box-shadow: none; width: 100%; margin: 0; border: 1px solid var(--profile-line); border-radius: 4px; padding: 11px 12px; background: var(--profile-bg); color: var(--profile-ink); font: inherit; min-height: 44px; }
.profile-filters input::placeholder { color: var(--profile-muted); }
.profile-filters select { max-width: 100%; }
.profile-filter-empty { padding: 24px 0; color: var(--profile-muted); }
.profile-shell > .research-list, .profile-shell > .news-list, .profile-shell > #awards { margin-bottom: 60px; }
.profile-shell > iframe { display: block; margin: 24px 0 60px; }
.profile-shell > p { margin-bottom: 20px; }
.profile-site .btn { font-size: .875rem; font-weight: 500; background: var(--profile-blue); color: var(--profile-bg); border: 0; border-radius: 4px; padding: 10px 18px; }
.profile-sitemap { list-style: none; margin: 0 0 60px; padding: 0; }
.profile-sitemap li { padding: 12px 0; border-bottom: 1px solid var(--profile-line); }
.profile-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.profile-skip { position: fixed; left: 16px; top: -100px; z-index: 99; padding: 12px 18px; background: var(--profile-bg); }
.profile-skip:focus { top: 12px; }
@media (max-width: 760px) {
  .profile-nav { min-height: 72px; padding: 0 24px; gap: 16px; }
  .profile-nav-links { gap: 18px; }
  #main.profile-shell { padding: 0 24px; }
  .profile-intro { grid-template-columns: minmax(0, 1fr) 120px; gap: 28px; padding: 50px 0 40px; }
  .profile-identity { margin-top: 30px; }
  .profile-monogram { width: 120px; font-size: 2.8rem; }
  .profile-portrait { width: 120px; height: 144px; }
  .profile-identity-caption { font-size: .75rem; }
  .profile-intro .profile-lead { font-size: 1.15rem; margin-top: 22px; }
  .profile-section { margin-bottom: 40px; padding-top: 30px; }
  .profile-footer { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 560px) {
  .profile-nav { flex-wrap: wrap; gap: 2px; padding: 14px 20px 10px; }
  .profile-wordmark { line-height: 1.4; }
  .profile-nav-links { width: 100%; justify-content: space-between; gap: 14px; }
  .profile-nav-links > a { font-size: .875rem; }
  .profile-theme { width: 32px; height: 32px; }
  #main.profile-shell { padding: 0 20px; }
  .profile-intro { grid-template-columns: minmax(0, 1fr); padding: 38px 0 34px; }
  .profile-identity { display: none; }
  .profile-intro h1 { font-size: 3.5rem; }
  .profile-eyebrow { font-size: .75rem; line-height: 1.65; }
  .profile-intro .profile-lead { font-size: 1.2rem; }
  .profile-social { gap: 12px 22px; }
  .profile-section-heading h2, .profile-contact h2 { font-size: 1.65rem; }
  .news-row { grid-template-columns: 74px minmax(0, 1fr); gap: 16px; padding: 12px 0; }
  .research-row { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 18px 0; }
  .research-margin { flex-direction: row; align-items: baseline; gap: 14px; }
  .research-year { font-size: .875rem; }
  .research-main .research-title { font-size: 1.125rem; }
  .profile-experience li { grid-template-columns: minmax(0, 1fr); gap: 5px; }
  .award-row { grid-template-columns: 74px minmax(0, 1fr); gap: 16px; }
  .profile-filters label:not(.profile-search) { flex: 1 1 120px; min-width: 0; }
  .profile-filters .profile-search { flex-basis: 100%; }
  .profile-page-heading { padding-top: 38px; }
  .profile-page-heading h1 { font-size: 2.5rem; }
  .profile-footer { padding-left: 20px; padding-right: 20px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .profile-header, .profile-footer, .profile-theme, .profile-filters, .profile-identity { display: none; } .profile-intro { display: block; padding-top: 0; } .profile-site { color: #000; background: #fff; } .research-row { break-inside: avoid; } }
