
/* Academic portfolio — shared, independent of legacy theme layout. */
:root{color-scheme:light;--nav:#142438;--ink:#142438;--text:#24374a;--muted:#486581;--accent:#705b38;--link:#284e70;--bg:#f6f7f9;--surface:#fff;--line:#dbe2e9;--ring:#28649a;--max:1080px;--button:#142438;--button-text:#fff}
html[data-theme="dark"]{color-scheme:dark;--ink:#edf3fa;--text:#dce7f1;--muted:#b7c8da;--accent:#d9bd87;--link:#b4d2ec;--bg:#111d2b;--surface:#1b2b3d;--line:#374a5f;--ring:#b4d2ec;--button:#d6e5f4;--button-text:#142438}
*,*::before,*::after{box-sizing:border-box}
html{scroll-padding-top:90px}
body{margin:0;min-height:100vh;display:flex;flex-direction:column;background:var(--bg);color:var(--text);font:400 16px/1.7 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;-webkit-text-size-adjust:100%;overflow-wrap:break-word}
a{color:var(--link);text-underline-offset:3px}
a:hover{text-decoration-thickness:2px}
button,input,select{font:inherit}
button{cursor:pointer}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--ring);outline-offset:3px}
[hidden]{display:none!important}
img{max-width:100%;height:auto}
.bo-skip{position:fixed;left:12px;top:-100px;z-index:100;background:var(--surface);padding:10px 15px;border-radius:4px}
.bo-skip:focus{top:12px}
.bo-header{position:sticky;top:0;z-index:20;background:#142438;color:#f6f7f9;border-bottom:1px solid #334e68}
.bo-nav-shell{max-width:var(--max);margin:auto;min-height:64px;display:flex;align-items:center;gap:14px;padding:8px 26px}
.bo-brand{flex-shrink:0;white-space:nowrap;color:#fff;text-decoration:none;font-size:.98rem;font-weight:650;letter-spacing:-.02em}
#bo-navigation{margin-left:auto;display:flex;align-items:center;gap:2px}
#bo-navigation a{display:block;white-space:nowrap;text-decoration:none;color:#d9e2ec;padding:9px 9px;border-radius:5px;font-size:.85rem;font-weight:500;line-height:1.4}
#bo-navigation a[aria-current="page"]{color:#fff;background:#2c4158;font-weight:650}
#bo-navigation a:hover{color:#fff;background:#334e68}
.bo-nav-controls{display:flex;align-items:center;gap:8px;order:3}
.bo-theme,.bo-menu-toggle{background:transparent;color:#e7edf4;border:1px solid #52677e;border-radius:5px;min-width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 10px}
.bo-theme svg,.bo-menu-toggle svg{width:20px;height:20px}
.bo-menu-toggle{display:none}
.bo-main{width:100%;max-width:var(--max);margin:0 auto;padding:32px 28px 56px;flex:1;min-width:0}
.bo-home{padding-top:22px}
.bo-page-title{padding:10px 0 25px;margin-bottom:24px;border-bottom:1px solid var(--line)}
.bo-page-title h1{font-size:clamp(2rem,4vw,2.9rem);font-weight:680;letter-spacing:-.045em;line-height:1.2;color:var(--ink);margin:0 0 10px}
.bo-page-title p{color:var(--muted);max-width:740px;margin:0;font-size:1.03rem}
article{min-width:0}
article p{margin:0 0 14px}
article h2{color:var(--ink);font-size:1.45rem;font-weight:650;letter-spacing:-.025em;line-height:1.4;margin:0 0 16px}
.bo-hero{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:44px;align-items:center;padding:24px 0 30px}
.bo-hero h1{font-size:clamp(2.15rem,4.4vw,3.35rem);font-weight:680;letter-spacing:-.055em;line-height:1.12;margin:10px 0 14px;color:var(--ink)}
.bo-kicker{font-size:.72rem;letter-spacing:.13em;text-transform:uppercase;font-weight:700;color:var(--accent);margin:0 0 10px}
.bo-role{font-size:1.13rem;font-weight:620;color:var(--ink);margin:0 0 5px}
.bo-affil{color:var(--muted);font-size:.94rem;margin:0 0 20px}
.bo-intro{font-size:1.05rem;color:var(--muted);max-width:580px}
.bo-portrait{margin:0;width:100%;max-width:340px;justify-self:end}
.bo-portrait img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover;border-radius:10px;box-shadow:0 8px 26px #14243815}
.bo-actions{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0}
.bo-action{display:inline-flex;align-items:center;justify-content:center;min-height:44px;gap:8px;padding:10px 18px;border:1px solid var(--button);border-radius:5px;color:var(--button-text);background:var(--button);text-decoration:none;font-size:.88rem;font-weight:600;line-height:1.4}
.bo-action.secondary{background:transparent;color:var(--ink);border-color:var(--line)}
.bo-action:hover{filter:brightness(.92)}
.bo-icons{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0 0}
.bo-icons a{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;color:var(--muted);text-decoration:none;border:1px solid var(--line);border-radius:6px;background:var(--surface)}
.bo-icon{width:20px;height:20px;vertical-align:middle;flex-shrink:0}
.bo-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:23px 0;margin:6px 0 0;text-align:center;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.bo-metrics strong{display:block;color:var(--ink);font-size:clamp(1.7rem,3vw,2.4rem);line-height:1.2;font-weight:650;letter-spacing:-.04em}
.bo-metrics span{display:block;color:var(--muted);font-size:.85rem;line-height:1.5;margin:5px 0 0}
.bo-metrics small{font-size:.67rem;color:var(--muted);display:block}
.bo-section{padding:27px 0;border-bottom:1px solid var(--line);min-width:0;scroll-margin-top:12px}
.bo-section:first-child{padding-top:0}
.bo-section:last-child{border-bottom:0}
.bo-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:15px}
.bo-section-head h2{margin:0}
.bo-section-head a{font-size:.85rem;font-weight:600;text-align:right;flex-shrink:0}
.bo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:14px 0}
.bo-card{display:block;min-width:0;padding:19px;background:var(--surface);border:1px solid var(--line);border-radius:7px;text-decoration:none;color:var(--text);transition:box-shadow .15s,transform .15s}
a.bo-card:hover{box-shadow:0 4px 16px #14243815;transform:translateY(-2px);border-color:var(--muted)}
.bo-card strong{display:block;color:var(--ink);font-size:1.03rem;font-weight:650;margin-bottom:5px;line-height:1.5}
.bo-card strong .bo-icon{margin-right:8px;color:var(--muted)}
.bo-card span{display:block;color:var(--muted);font-size:.88rem;line-height:1.6}
.bo-card .bo-tag,.bo-paper .bo-tag{display:block;color:var(--accent);font-size:.72rem;font-weight:700;letter-spacing:.055em;text-transform:uppercase;margin-bottom:6px}
.bo-timeline{border-left:2px solid var(--line);margin:18px 0 8px 8px;padding-left:23px}
.bo-event{position:relative;padding:0 0 22px}
.bo-event:last-child{padding-bottom:0}
.bo-event:before{content:"";position:absolute;left:-30px;top:8px;width:12px;height:12px;border:2px solid var(--bg);background:#8c7855;border-radius:50%}
.bo-event time{display:block;font-size:.76rem;letter-spacing:.035em;font-weight:650;color:var(--accent)}
.bo-event strong{display:block;font-size:1.03rem;color:var(--ink)}
.bo-event p{margin:2px 0 0;font-size:.91rem;color:var(--muted)}
.bo-paper{padding:18px 0;border-bottom:1px solid var(--line);min-width:0}
.bo-paper:last-child{border-bottom:0}
.bo-paper h3{font-size:1.06rem;font-weight:650;color:var(--ink);margin:5px 0;line-height:1.5}
.bo-paper p{margin:5px 0;color:var(--muted);font-size:.91rem}
.bo-paper-links{display:flex;gap:12px;flex-wrap:wrap;font-size:.85rem;margin-top:8px}
.bo-paper details{font-size:.87rem;margin-top:9px}
.bo-paper summary{cursor:pointer;color:var(--link)}
.bo-paper pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.8rem;padding:10px;background:var(--surface)}
.bo-filter{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr) auto;gap:10px;margin:20px 0 10px}
.bo-filter input,.bo-filter select,.bo-filter button{width:100%;min-width:0;min-height:44px;border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:5px;padding:8px 11px;font-size:.9rem}
.bo-filter button{font-weight:600}
.bo-lead{font-size:1.06rem;color:var(--muted);max-width:780px}
.bo-note{font-size:.84rem;color:var(--muted)}
.bo-footer{background:#142438;color:#e4e9ef;padding:24px 28px;font-size:.83rem}
.bo-footer-inner{max-width:var(--max);margin:auto;display:flex;justify-content:space-between;gap:20px}
.bo-footer strong{color:#fff}
.bo-footer a{color:#e4e9ef}
.bo-footer p{margin:4px 0 0}
@media(max-width:980px){
 .bo-nav-shell{flex-wrap:wrap;justify-content:space-between;gap:8px;min-height:60px;padding:9px 22px}
 .bo-nav-controls{order:0}
 .bo-menu-toggle{display:inline-flex}
 #bo-navigation{width:100%;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:6px 0 10px}
 #bo-navigation:not(.bo-open){display:none}
 #bo-navigation a{padding:12px 10px;font-size:.92rem}
 .bo-filter{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .bo-filter input{grid-column:1/-1}
}
@media(max-width:680px){
 .bo-main{padding:24px 20px 42px}
 .bo-home{padding-top:15px}
 .bo-hero{grid-template-columns:1fr;gap:24px;padding:12px 0 25px}
 .bo-portrait{grid-row:1;justify-self:center;max-width:230px}
 .bo-hero h1{font-size:clamp(2rem,8vw,2.6rem)}
 .bo-role{font-size:1.05rem}
 .bo-section{padding:24px 0}
 .bo-grid{grid-template-columns:1fr;gap:11px}
 .bo-card{padding:17px}
 .bo-section-head{align-items:flex-start}
 .bo-metrics span{font-size:.72rem}
 .bo-metrics small{font-size:.6rem}
 .bo-footer-inner{flex-direction:column;gap:12px}
}
@media(max-width:360px){.bo-nav-shell{padding:8px 13px}.bo-brand{font-size:.83rem}.bo-menu-toggle{padding:0 7px}.bo-menu-toggle span{display:none}.bo-main{padding-left:15px;padding-right:15px}.bo-section-head a{font-size:.76rem}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}
@media print{.bo-header,.bo-footer,.bo-filter,.bo-actions,.bo-icons,.bo-skip{display:none!important}body,.bo-main{background:#fff!important;color:#111!important;margin:0;padding:0;max-width:none}.bo-section,.bo-event{break-inside:avoid}.bo-page-title{padding:0}.bo-card{border:0}.bo-portrait{max-width:120px}a{color:#111!important}}

/* Compact mobile navigation: one slim row; menu overlays the page only when opened. */
@media(max-width:980px){
  html{scroll-padding-top:62px}
  .bo-nav-shell{position:relative;min-height:48px;padding:2px 16px;gap:6px;flex-wrap:wrap}
  .bo-brand{font-size:.91rem;line-height:1.2;font-weight:600;letter-spacing:-.025em}
  .bo-nav-controls{gap:0;flex-shrink:0}
  .bo-theme,.bo-menu-toggle{border:0;border-radius:4px;width:44px;min-width:44px;height:44px;padding:0;background:transparent}
  .bo-theme svg{width:17px;height:17px}
  .bo-menu-toggle svg{width:21px;height:21px}
  .bo-menu-toggle span{display:none}
  #bo-navigation.bo-open{position:absolute;top:100%;left:0;right:0;width:100%;max-height:calc(100dvh - 50px);overflow-y:auto;overscroll-behavior:contain;background:#142438;padding:8px 16px 14px;box-shadow:0 12px 20px #0003;border-top:1px solid #334e68;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
  #bo-navigation a{min-height:44px;display:flex;align-items:center;font-size:.88rem;padding:10px 12px}
}
@media(max-width:360px){.bo-nav-shell{padding:2px 12px}.bo-brand{font-size:.85rem}}
.bo-journey-subtitle{font-size:1.05rem;font-weight:650;color:var(--ink);margin:24px 0 12px}

/* Visible mobile menu label without increasing header height. */
@media(max-width:980px){.bo-menu-toggle{width:auto;min-width:44px;padding:0 6px;gap:5px;flex-shrink:0}.bo-menu-toggle span{display:inline;font-size:.78rem;font-weight:500;line-height:1;white-space:nowrap}.bo-menu-toggle svg{flex-shrink:0;width:19px;height:19px}}
@media(max-width:360px){.bo-menu-toggle{padding:0 3px;gap:4px}.bo-menu-toggle span{font-size:.73rem}}
