/* Edit these colors to personalize your site. */
:root { color-scheme: light; --bg:#fff; --text:#444b50; --muted:#647078; --line:#e6e9eb; --link:#245e7b; --footer:#183b55; --footer-text:#fff; --portrait:#e8f3f7; }
:root[data-theme="dark"] { color-scheme:dark; --bg:#172027; --text:#e8edf0; --muted:#b4c1c8; --line:#39464e; --link:#95cee8; --footer:#102b3e; --footer-text:#e8f6fa; --portrait:#2c4854; }
* { box-sizing:border-box; }
html { min-height:100%; -webkit-text-size-adjust:100%; text-size-adjust:100%; }
body { min-height:100vh; margin:0; display:flex; flex-direction:column; background:var(--bg); color:var(--text); font:17px/1.65 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif; }
a { color:var(--link); text-decoration:underline; text-underline-offset:2px; }
a:hover { text-decoration-thickness:2px; }
a:focus-visible, button:focus-visible { outline:3px solid var(--link); outline-offset:4px; }
.site-header { border-bottom:1px solid var(--line); position:relative; z-index:2; }
.header-inner { max-width:1120px; margin:auto; padding:15px 22px; display:flex; align-items:center; gap:36px; flex-wrap:wrap; }
.brand { color:var(--text); font-weight:700; text-decoration:none; white-space:nowrap; }
.top-nav { display:flex; align-items:center; flex-wrap:wrap; gap:26px; }
.top-nav a { color:var(--text); text-decoration:none; }
.top-nav a:hover, .top-nav a[aria-current="page"] { border-bottom:2px solid currentColor; }
.theme-toggle { margin-left:auto; border:1px solid var(--line); border-radius:50%; background:var(--bg); color:var(--text); width:40px; height:40px; cursor:pointer; font-size:23px; line-height:1; }
.mobile-menu-toggle, .mobile-profile { display:none; }
.page-layout { animation: page-enter .24s ease-out both; width:100%; max-width:1120px; margin:0 auto; padding:44px 22px 85px; display:grid; grid-template-columns:210px minmax(0,1fr); gap:65px; flex:1; }
.sidebar { font-size:14px; line-height:1.55; }
.portrait { width:168px; height:168px; display:grid; place-items:center; border:5px solid var(--bg); outline:1px solid var(--line); border-radius:50%; background:var(--portrait); object-fit:cover; object-position:center 35%; color:var(--link); font-size:48px; font-weight:700; letter-spacing:-.05em; }
.sidebar h2 { font-size:18px; margin:18px 0 4px; }
.role { margin:0; color:var(--muted); }
.profile-links { padding:0; margin:24px 0; list-style:none; }
.profile-links li { margin:8px 0; display:flex; align-items:baseline; gap:9px; }
.profile-links a { color:var(--text); text-decoration:none; }
.profile-links a:hover { color:var(--link); text-decoration:underline; }
.profile-icon { display:inline-block; flex:0 0 16px; text-align:center; color:var(--muted); }
.content { max-width:770px; font-size:16px; line-height:1.5; }
.content h1 { margin:0 0 18px; font-size:18px; line-height:1.3; font-weight:700; }
.content h2 { font-size:17px; margin-top:30px; }
.content p { margin:0 0 20px; }
.content p, .content li { text-align:justify; text-justify:inter-word; hyphens:auto; }
.content hr { border:0; border-top:1px solid var(--line); margin:27px 0; }
.site-footer { background:var(--footer); color:var(--footer-text); }
.footer-inner { max-width:1120px; margin:auto; padding:26px 22px 34px; font-size:13px; }
.site-footer a { color:var(--footer-text); }
.sitemap-link { display:inline-block; font-size:16px; font-weight:700; margin-bottom:7px; }
.site-footer p { margin:12px 0; }
.site-footer small { opacity:.9; }
@media (max-width:720px) {
  .header-inner { padding:14px 20px; gap:12px; flex-wrap:nowrap; }
  .brand { font-size:18px; min-width:0; overflow:hidden; text-overflow:ellipsis; }
  .theme-toggle { margin-left:auto; flex:0 0 40px; }
  .mobile-menu-toggle { display:grid; place-items:center; flex:0 0 42px; width:42px; height:42px; padding:9px; border:0; background:transparent; color:var(--text); cursor:pointer; }
  .menu-lines { display:grid; gap:5px; width:24px; }
  .menu-lines span { display:block; height:2px; border-radius:2px; background:currentColor; }
  .top-nav { display:none; position:absolute; top:100%; left:0; right:0; background:var(--bg); border-bottom:1px solid var(--line); box-shadow:0 9px 16px rgba(0,0,0,.12); padding:8px 20px 14px; flex-direction:column; align-items:stretch; gap:0; }
  .top-nav.is-open { display:flex; }
  .top-nav a { display:block; padding:11px 2px; border-bottom:1px solid var(--line); }
  .top-nav a:last-child { border-bottom:0; }
  .top-nav a[aria-current="page"] { color:var(--link); font-weight:700; border-bottom:1px solid var(--line); }
  .page-layout { display:block; padding:30px 20px 65px; }
  .sidebar { display:none; }
  .mobile-profile { display:flex; align-items:center; gap:16px; margin:0 0 29px; }
  .mobile-profile img { width:68px; height:68px; flex:0 0 68px; border-radius:50%; object-fit:cover; object-position:center 35%; border:1px solid var(--line); }
  .mobile-profile h2 { font-size:18px; line-height:1.25; margin:0 0 3px; }
  .mobile-profile p { margin:0; font-size:13px; line-height:1.4; color:var(--muted); }
  .content { max-width:none; font-size:15.5px; line-height:1.48; }
  .content h1 { font-size:18px; }
}


.sitemap-page { max-width:760px; width:100%; margin:55px auto; padding:0 22px; flex:1; }
.sitemap-page li { margin:9px 0; }

/* Selected publications */
.publication-list { list-style:none; padding:0; margin:22px 0 32px; }
.publication-list li { padding:20px 0; border-bottom:1px solid var(--line); }
.publication-list li:first-child { padding-top:4px; }
.publication-title { display:block; font-weight:600; font-size:16px; line-height:1.5; }
.content .publication-list p { margin:8px 0 0; }
.content .publication-list .publication-venue { margin-top:3px; color:var(--muted); }
.publication-note { margin:0 0 12px; }

@keyframes page-enter { from { opacity:0; transform:translateY(5px); } to { opacity:1; transform:translateY(0); } }
@media (prefers-reduced-motion:reduce) { .page-layout { animation:none; } }

/* A compact, keyboard-scrollable news box on the About page. */
.news-section { margin-top:0; }
.news-section h2 { margin:0 0 15px; padding-bottom:12px; border-bottom:1px solid var(--line); font-size:18px; }
.news-panel { max-height:152px; overflow-y:auto; overscroll-behavior:contain; padding:0 16px; border:1px solid var(--line); border-radius:8px; scrollbar-width:thin; scrollbar-color:var(--muted) transparent; }
.news-panel:focus-visible { outline:3px solid var(--link); outline-offset:3px; }
.news-list { margin:0; padding:5px 0; list-style:none; }
.content .news-item { padding:8px 0; font-size:14px; line-height:1.5; text-align:left; }
.news-date { color:var(--link); font-weight:600; }
@media (max-width:720px) { .news-panel { max-height:160px; } }
