/* Shared reading shell. Visualizations retain their own semantic colors. */
body.site-theme{--st-paper:#faf8f5;--st-ink:#333;--st-accent:#a94427;--st-line:#dedbd4;margin:0!important;padding:0!important;background:var(--st-paper)!important;color:var(--st-ink);font-family:"Segoe UI","Noto Sans",Arial,sans-serif!important;font-size:17px;line-height:1.75}
.site-theme *{box-sizing:border-box}.site-theme a{color:var(--st-accent);text-underline-offset:3px}.site-theme a:hover{text-decoration-thickness:2px}.site-theme a:focus-visible,.site-theme button:focus-visible,.site-theme input:focus-visible,.site-theme select:focus-visible{outline:3px solid #d17c57;outline-offset:4px}
.site-theme .st-skip{position:fixed;top:-100px;left:12px;z-index:10000;background:white;padding:8px 15px}.site-theme .st-skip:focus{top:12px}
.site-theme .st-sidebar{position:fixed;inset:0 auto 0 0;width:300px;padding:42px 35px;background:#333;color:#eee;overflow-y:auto;z-index:100;text-align:center}.site-theme .st-identity{display:block;color:#fff;text-decoration:none;font-size:25px;font-weight:300}.site-theme .st-identity img{display:block;border-radius:50%;object-fit:cover;margin:0 auto 15px;width:132px;height:132px}.site-theme .st-identity span{display:block}.site-theme .st-bio{font-size:14px;line-height:1.6;color:#d0d0d0;margin:14px 0 27px}.site-theme .st-sidebar ul{padding:0;margin:0;list-style:none}.site-theme .st-sidebar li{margin:8px 0}.site-theme .st-sidebar nav a{color:#eee;text-decoration:none;font-size:16px}.site-theme .st-sidebar nav a:hover{text-decoration:underline}
.site-theme .st-main{margin-left:300px;padding:0 45px;min-width:0}.site-theme .st-topbar{max-width:850px;margin:auto;padding:20px 0;border-bottom:1px solid var(--st-line);display:flex;justify-content:space-between;gap:20px;font-size:13px}.site-theme .st-topbar>a{color:#666;text-decoration:none}.site-theme .st-topbar nav{display:flex;gap:18px}.site-theme .st-reading{max-width:760px;margin:48px auto 0;overflow-wrap:anywhere;min-width:0}.site-theme #main{max-width:none;margin:0;padding:0;float:none;width:100%}.site-theme .page,.site-theme .archive,.site-theme .splash{float:none;width:100%;padding:0;margin:0}.site-theme .page__inner-wrap,.site-theme .page__content{float:none;width:100%;margin:0}.site-theme h1,.site-theme .page__title{font-size:clamp(2rem,3.1vw,3.1rem);font-weight:300!important;line-height:1.2;letter-spacing:-.025em;color:var(--st-ink);margin:0 0 35px}.site-theme h2{font-size:1.8rem;font-weight:350;line-height:1.35;letter-spacing:-.015em;margin:50px 0 18px;color:var(--st-ink)}.site-theme h3{font-size:1.25rem;font-weight:500;line-height:1.45;margin:30px 0 12px}.site-theme p{margin:0 0 19px}.site-theme li{margin-bottom:7px}.site-theme .page__content{font-size:inherit}.site-theme .page__footer{position:static;background:transparent;color:#666;border-top:1px solid var(--st-line);margin:60px auto 0;max-width:760px;padding:25px 0 35px}.site-theme .page__footer footer{max-width:none;padding:0;margin:0}.site-theme .page__footer a{color:var(--st-accent)}.site-theme img{max-width:100%;height:auto}.site-theme svg:not([width]){max-width:100%}.site-theme table{border-collapse:collapse;max-width:100%;font-size:15px;display:block;overflow-x:auto}.site-theme th,.site-theme td{padding:12px 14px;text-align:left;border-bottom:1px solid var(--st-line);vertical-align:top}.site-theme th{background:#eeebe5}.site-theme pre{max-width:100%;overflow-x:auto}.site-theme iframe{max-width:100%}.site-theme blockquote{border-left:3px solid var(--st-accent);padding-left:20px}.site-theme .sidebar{position:static;width:auto;float:none}.site-theme .sidebar__right{float:none;width:auto;position:static;margin:20px 0}.site-theme .toc{background:#f0ece6}.site-theme .page__hero{margin:0 0 30px}.site-theme .page__hero--overlay{padding:30px 20px}.site-theme .page__hero--overlay .page__title{color:inherit}.site-theme .archive__item{max-width:100%}.site-theme .archive__item-title{font-weight:400}.site-theme .pagination{float:none}
/* Homepage content and featured projects use the same reading rhythm. */
.site-theme .shell{max-width:none;width:100%;margin:0;padding:0}.site-theme .home-hero{display:block;margin-bottom:40px}.site-theme .eyebrow{font-size:14px;color:#666;margin-bottom:20px}.site-theme .home-hero h1 .serif{font-family:inherit;font-style:normal}.site-theme .home-portrait{display:none}.site-theme .hero-actions{display:flex;gap:22px;align-items:center;flex-wrap:wrap}.site-theme .button{display:inline-block;border:1px solid var(--st-accent);padding:9px 15px;text-decoration:none}.site-theme .home-sidebar{display:flex;flex-wrap:wrap;gap:20px;padding:18px 0;border-block:1px solid var(--st-line);font-size:14px;margin-bottom:32px}.site-theme .home-sidebar .section-label{width:100%;color:#666}.site-theme .home-featured{margin-top:50px}.site-theme .project-grid{display:grid;grid-template-columns:1fr;gap:20px}.site-theme .project-card{display:block;border:1px solid var(--st-line)!important;border-radius:0!important;box-shadow:none!important;background:#f2efe9!important;color:var(--st-ink)!important;padding:20px;text-decoration:none}.site-theme .project-card h3,.site-theme .project-card p,.site-theme .project-card span{color:var(--st-ink)!important}.site-theme .project-card span[style*="background"],.site-theme .project-card div[style*="display: inline-block"]{background:#e8e2d9!important;color:var(--st-ink)!important}.site-theme .project-icon{color:var(--st-accent)}.site-theme .project-icon svg{width:30px;height:30px}.site-theme .project-link{color:var(--st-accent)!important}.site-theme .project-link svg{width:16px;height:16px}.site-theme .home-footer{margin-top:55px;padding:25px 0;border-top:1px solid var(--st-line)}.site-theme .home-footer-links{display:flex;flex-wrap:wrap;gap:16px;font-size:14px}.site-theme .home-footer-links>span{width:100%;color:#666}.site-theme .home-footer .brand{font-size:20px}
/* Page-level presentation blocks, without recoloring charts or status badges. */
.site-theme .page__content>.container,.site-theme .st-reading>.container{max-width:100%;padding:0;background:transparent}.site-theme .page__content>.container>header,.site-theme .st-reading>.container>header{background:transparent!important;color:var(--st-ink)!important;border-radius:0!important;box-shadow:none!important;padding:0 0 25px!important}.site-theme .page__content>.container>header h1,.site-theme .st-reading>.container>header h1{color:var(--st-ink)!important}.site-theme .page__content>.container>header p,.site-theme .st-reading>.container>header p{color:#666!important}
@media(max-width:900px){.site-theme .st-sidebar{width:240px;padding:30px 25px}.site-theme .st-main{margin-left:240px;padding:0 28px}}
@media(max-width:640px){body.site-theme{font-size:16px}.site-theme .st-sidebar{position:static;width:auto;padding:25px 24px 20px}.site-theme .st-identity{font-size:22px;display:flex;align-items:center;justify-content:center;gap:15px}.site-theme .st-identity img{width:64px;height:64px;margin:0}.site-theme .st-bio{margin:12px 0 15px}.site-theme .st-sidebar ul{display:flex;flex-wrap:wrap;justify-content:center;column-gap:18px;row-gap:5px}.site-theme .st-sidebar li{margin:0}.site-theme .st-sidebar nav a{font-size:13px}.site-theme .st-main{margin:0;padding:0 22px}.site-theme .st-topbar{padding:15px 0;font-size:12px}.site-theme .st-reading{margin-top:30px}.site-theme h1,.site-theme .page__title{font-size:2.1rem}.site-theme h2{font-size:1.5rem}.site-theme .home-sidebar{gap:12px}.site-theme .project-card{padding:15px}}
/* Standalone tools get space for controls, plots, and tabular data. */
.site-theme .st-main.st-standalone{padding-top:30px}.site-theme .st-main.st-standalone>.st-legacy-site-nav{display:none}.site-theme .st-main.st-tool{max-width:none}.site-theme .st-tool .st-reading{max-width:1200px}.site-theme.st-embedded .st-sidebar{display:none}.site-theme.st-embedded .st-main{margin-left:0;padding:16px}.site-theme.st-embedded .st-topbar{display:none}.site-theme.st-embedded .st-reading{margin-top:0;max-width:none}
.site-theme .home-portrait{display:block;margin:25px 0}.site-theme .home-portrait img{max-width:180px}.site-theme .home-portrait .micro{display:block;font-size:13px;color:#666;margin-top:8px}
/* Decorative portfolio cards share the palette; figures and app panels do not. */
.site-theme .home-body a[style*="linear-gradient"],.site-theme .main-content a[style*="linear-gradient"]{background:#f2efe9!important;border-color:var(--st-line)!important;border-radius:0!important;box-shadow:none!important;color:var(--st-ink)!important}
.site-theme .home-body a[style*="linear-gradient"] :is(h2,h3,p,span,div),.site-theme .main-content a[style*="linear-gradient"] :is(h2,h3,p,span,div){color:var(--st-ink)!important}
.site-theme .home-body a[style*="linear-gradient"] [style*="background"],.site-theme .main-content a[style*="linear-gradient"] [style*="background"]{background:#e8e2d9!important;box-shadow:none!important}
.site-theme .main-content #btn-medicine,.site-theme .main-content #btn-biotech{background:#eeeae2!important;color:var(--st-ink)!important}
.site-theme .main-content #btn-medicine[aria-pressed="true"],.site-theme .main-content #btn-biotech[aria-pressed="true"]{background:var(--st-accent)!important;color:#fff!important}
.site-theme .main-content #section-medicine>h2,.site-theme .main-content #section-biotech>h2{color:var(--st-ink)!important;border-bottom-color:var(--st-accent)!important}
@media(max-width:640px){.site-theme .main-content #btn-medicine,.site-theme .main-content #btn-biotech{padding:12px 8px!important;font-size:14px!important;overflow-wrap:normal;word-break:normal;gap:6px!important}.site-theme .main-content #btn-medicine svg,.site-theme .main-content #btn-biotech svg{width:16px!important;height:16px!important;flex-shrink:0}}
.site-theme .st-profile-links{border-top:1px solid #575757;padding-top:18px;margin-top:25px}.site-theme .st-profile-links ul{display:flex;flex-wrap:wrap;justify-content:center;gap:7px 15px}.site-theme .st-profile-links li{margin:0}.site-theme .st-profile-links a{font-size:13px!important;color:#ccc!important}
@media(max-width:640px){.site-theme .st-profile-links{padding-top:12px;margin-top:15px}}
