/* Academic refresh: layered over the original theme to preserve existing routes. */
:root { --ink:#20323d; --muted:#536570; --accent:#156b71; --line:#d8e3e4; --paper:#fff; }
html { font-size:17px; scroll-padding-top:24px; }
body.page { background:#f6f8f8; color:var(--ink); font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; line-height:1.75; }
.page *, .page *::before, .page *::after { box-sizing:border-box; }
.page a { color:var(--accent); text-decoration-thickness:1px; text-underline-offset:3px; }
.page a:hover { color:#08484e; text-decoration:underline; }
.page a:focus-visible, .page summary:focus-visible { outline:3px solid #146c75; outline-offset:5px; border-radius:3px; }
.skip-link { position:absolute; top:-100px; left:16px; z-index:100; background:#fff; padding:10px 16px; }
.skip-link:focus { top:12px; }
.page .navigation-wrapper { max-width:1180px; width:calc(100% - 64px); display:flex; align-items:center; justify-content:space-between; gap:24px; padding:28px 0; border-bottom:1px solid var(--line); font:600 15px/1.5 system-ui,sans-serif; text-transform:none; }
.page .site-name, .page .top-navigation { float:none; display:block; width:auto; margin:0; }
.page .site-name a { color:var(--ink); font-size:20px; letter-spacing:-.5px; }
.page .top-navigation ul { margin:0; padding:0; display:flex; gap:24px; flex-wrap:wrap; }
.page .top-navigation li { margin:0; padding:0; }
.page .top-navigation a { display:inline-block; padding:8px 0; }
.page .top-navigation-current { border-bottom:2px solid var(--accent); }
.page #main { max-width:1180px; width:calc(100% - 64px); margin:52px auto 0; display:grid; grid-template-columns:180px minmax(0,1fr); gap:56px; }
.page #main::before, .page #main::after { display:none; }
.page #main article { float:none; display:block; width:auto; min-width:0; margin:0 0 64px; background:var(--paper); border:1px solid var(--line); border-radius:14px; padding:40px 44px; }
.page .article-author-top { float:none; display:block; width:auto; margin:0; }
.page .article-author-top p { font:14px/1.7 system-ui,sans-serif; color:var(--muted); }
.page .article-author-top img.bio-photo { width:88px; height:88px; object-fit:cover; border-radius:24px; }
.page .article-wrap { overflow-wrap:anywhere; }
.page .article-wrap p { text-indent:0; margin:0 0 1.25em; }
.page .article-wrap h1 { font:650 clamp(30px,4vw,44px)/1.15 system-ui,sans-serif; letter-spacing:-1.5px; margin:0 0 14px; }
.page .article-wrap h2 { font:650 25px/1.3 system-ui,sans-serif; letter-spacing:-.6px; margin:38px 0 20px; clear:both; }
.page .article-wrap h3 { font:650 18px/1.4 system-ui,sans-serif; margin:28px 0 14px; }
.page .article-wrap ul { padding-left:22px; }
.page .article-wrap li { margin-bottom:14px; }
.page hr { border:0; border-top:1px solid var(--line); margin:30px 0; clear:both; }
.page img.floatpic { float:right; width:28%; height:auto; max-height:280px; object-fit:cover; border-radius:10px; margin:4px 0 20px 28px; box-shadow:0 8px 22px #20323d12; }
.profile-kicker { color:var(--muted); font-size:14px; }
.research-statement { font-size:21px; font-weight:550; line-height:1.5; }
.section-nav { clear:both; display:flex; gap:10px; flex-wrap:wrap; padding:8px 0; }
.section-nav a { border:1px solid var(--line); border-radius:6px; padding:8px 14px; font-size:14px; font-weight:600; }
.page .footer-wrap { background:#edf2f2; border-top:1px solid var(--line); padding:24px 0; margin:0; }
.page .footer-wrap footer { display:block; float:none; width:calc(100% - 64px); max-width:1180px; margin:auto; }
.page .footer-wrap h6 { font:12px/1.8 system-ui,sans-serif; color:var(--muted); margin:0; }
.page .footer-wrap a { color:var(--accent); }
@media(max-width:900px) { .page #main { gap:28px; grid-template-columns:140px minmax(0,1fr); } .page #main article { padding:28px; } }
@media(max-width:650px) {
 .page .navigation-wrapper { width:calc(100% - 36px); padding:18px 0; gap:8px; flex-wrap:wrap; }
 .page .top-navigation ul { gap:20px; }
 .page #main { width:calc(100% - 36px); display:block; margin-top:28px; }
 .page .article-author-top { display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-bottom:24px; }
 .page .article-author-top p { margin:0!important; }
 .page .article-author-top img.bio-photo { width:52px; height:52px; border-radius:16px; }
 .page .article-author-top > p:first-of-type { flex-basis:calc(100% - 72px); }
 .page #main article { padding:24px 20px; margin-bottom:36px; }
 .page img.floatpic { width:34%; margin-left:16px; }
 .research-statement { font-size:19px; }
 .page .footer-wrap footer { width:calc(100% - 36px); }
}

.page .headline-wrap h1 { font:650 36px/1.2 system-ui,sans-serif; letter-spacing:-1px; margin:0 0 28px; }
.page .top-navigation-current { text-decoration:none; }
.page .article-wrap a { text-decoration:underline; border-bottom:0; }
.page .section-nav a { text-decoration:none; }
.page .section-nav a { border-bottom:1px solid var(--line); }
#research-interests + ul { display:flex; flex-wrap:wrap; gap:10px; padding:0; list-style:none; }
#research-interests + ul li { margin:0; padding:6px 12px; background:#eff5f5; border-radius:5px; font-size:15px; }
#research-interests + ul li { list-style:none; }
.page h1,.page h2,.page h3 { color:var(--ink); }
#academic-service ~ ul li { margin-bottom:8px; }
/* Keep third-party visitor-map attribution readable at its small type size. */
.page .stbl-attr-prefix { color:var(--muted)!important; }
.page a[href="https://statable.com"] { color:var(--accent)!important; }
.page .stbl-attr-prefix { opacity:1!important; }

/* Let the research log use more of the desktop reading area. */
.profile-page #main { max-width:1280px; grid-template-columns:160px minmax(0,1fr); gap:40px; }
.scroll-hint { color:var(--muted); font-size:14px; display:flex; justify-content:space-between; gap:16px; }
.news-panel { max-height:620px; overflow-y:scroll; scrollbar-gutter:stable; scrollbar-color:#688b8f #edf3f3; overscroll-behavior-y:contain; border:1px solid #bdcfd1; border-radius:10px; padding:4px 24px 16px; margin:0 -16px; background:#f8fbfb; -webkit-overflow-scrolling:touch; }
.news-panel:focus-visible { outline:3px solid var(--accent); outline-offset:5px; }
.news-panel::-webkit-scrollbar { width:12px; }
.news-panel::-webkit-scrollbar-track { background:#edf3f3; border-radius:10px; }
.news-panel::-webkit-scrollbar-thumb { background:#688b8f; border:3px solid #edf3f3; border-radius:10px; }
.page .news-panel h3 { margin-top:20px; }
.project-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.project-card { display:flex; flex-direction:column; align-items:flex-start; padding:22px; border:1px solid var(--line); border-top:3px solid var(--accent); border-radius:9px; background:#f8fbfb; min-width:0; }
.page .project-card .project-category { font-size:12px; font-weight:600; color:var(--muted); margin-bottom:8px; }
.page .project-card h3 { font-size:23px; margin:0 0 12px; }
.page .project-card p { font-size:15px; line-height:1.7; }
.project-paper { margin-top:auto; font-size:14px; font-weight:600; }
@media(max-width:900px) { .profile-page #main { grid-template-columns:140px minmax(0,1fr); gap:28px; } .project-grid { grid-template-columns:1fr; } }
@media(max-width:650px) { .news-panel { max-height:520px; max-height:min(65svh,520px); margin:0 -8px; padding:0 14px 12px; } .project-card { padding:20px; } }
@media print { .news-panel { max-height:none; overflow:visible; } .section-nav,.skip-link,.scroll-hint { display:none; } .project-card { break-inside:avoid; } }
.profile-page .navigation-wrapper,.profile-page .footer-wrap footer { max-width:1280px; }

.page .affiliations { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; padding:0; margin:26px 0; list-style:none; clear:both; }
.page .affiliations li { list-style:none; display:flex; flex-direction:column; padding:16px; margin:0; border:1px solid var(--line); border-radius:8px; background:#fff; min-width:0; }
.affiliation-logo { display:flex; align-items:center; height:64px; width:100%; margin-bottom:12px; }
.affiliation-logo img { display:block; width:auto; height:auto; max-width:150px; max-height:56px; }
.affiliations strong { font-size:14px; }
.affiliations span { font-size:12px; color:var(--muted); margin-top:3px; }
.page .project-visual { display:flex; align-items:center; justify-content:center; width:100%; height:190px; padding:8px; border:1px solid var(--line); border-radius:5px; background:#fff; }
.project-visual img { display:block; width:100%; height:100%; object-fit:contain; }
.page .project-card .project-caption { font-size:11px; line-height:1.5; color:var(--muted); margin:8px 0 20px; }
.project-links { display:flex; gap:20px; margin-top:auto; font-size:14px; font-weight:600; }
.project-links .project-paper { margin-top:0; }
@media(max-width:650px) {
 .page .affiliations { grid-template-columns:1fr; gap:10px; }
 .page .affiliations li { display:grid; grid-template-columns:110px minmax(0,1fr); column-gap:14px; align-items:center; padding:14px; }
 .affiliation-logo { grid-row:1 / 3; height:52px; margin:0; }
 .affiliation-logo img { max-width:104px; max-height:48px; }
 .affiliations span { margin:0; }
 .page .project-visual { height:170px; }
}

/* Ordinary TC22 membership, presented separately from reviewing service. */
.committee-role { padding:22px 24px; margin:0 0 28px; border:1px solid var(--line); border-left:4px solid var(--accent); border-radius:8px; background:#f2f7f7; }
.page .committee-role h3 { margin:0 0 8px; font-size:22px; line-height:1.35; }
.page .committee-role p { margin:0; font-size:16px; }
@media(max-width:650px) { .committee-role { padding:18px; } .page .committee-role h3 { font-size:20px; } .page .committee-role p { font-size:15px; } }
