/* Shared visual system. Loaded last to preserve the original page structure. */
.home-page .header-content{padding:0}.profile-row>img[hidden]{display:none}.without-portrait{padding-left:20px}
:root{--ink:#4b4b4f;--muted:#68686c;--paper:#f7f6f2;--line:#dcdcd9;--accent:#b63a30;--color-primary:#4b4b4f;--color-secondary:#e9e9e7;--color-tertiary:#3b3b3f;--color-highlight:#b63a30;--navbar-height:88px}
html{font-family:"Segoe UI",Arial,sans-serif;font-size:100%;color:var(--ink);scroll-padding-top:110px}
body{background:var(--paper);margin:var(--navbar-height) 0 0;line-height:1.65}
img{max-width:100%;height:auto} iframe{max-width:100%} button{font:inherit;cursor:pointer} a{color:#246aa5;text-underline-offset:4px} a:hover{color:var(--accent)}
:focus-visible{outline:3px solid var(--accent);outline-offset:5px} .content{max-width:1240px;padding:0 40px}.thin-content{max-width:980px} main{min-height:calc(100vh - var(--navbar-height))} #main-content{padding-top:32px;padding-bottom:64px;overflow-wrap:anywhere;border:0}
.skip-link{position:fixed;top:8px;left:16px;transform:translateY(-160%);background:white;padding:10px 20px;z-index:100}.skip-link:focus{transform:none}
.navbar{height:var(--navbar-height);background:var(--ink);border-bottom:1px solid #ffffff20;z-index:30}.navbar>.content{padding:0 40px;max-width:1360px}.logo{padding:0;margin-right:auto}.logo>img{height:auto;width:170px;padding:0;max-height:76px;object-fit:contain}.navbar-item{padding:0 14px;color:#f0f0ee;font-size:14px;font-weight:500;position:relative}.navbar-item:hover{background:#ffffff0d;color:white}.navbar-item.active{color:#fff}.navbar-item.active:after{content:"";position:absolute;bottom:19px;left:14px;right:14px;height:2px;background:#ee8270}
#navbar-menu-toggle{border:1px solid #ffffff50;background:transparent;width:44px;height:44px;padding:12px;border-radius:50%;color:white}#navbar-menu-toggle span{display:block;height:1px;background:currentColor;margin:5px 0;width:18px}#navbar-overlay{z-index:8}
.page-heading{font-family:Georgia,"Times New Roman",serif;font-weight:400;font-size:clamp(2.5rem,5vw,4rem);letter-spacing:-.04em;line-height:1.12;margin:12px 0 36px;padding-bottom:32px;border-bottom:1px solid var(--line)}
.home-hero{display:grid;grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr);gap:56px;max-width:1360px;margin:0 auto;padding:78px 56px 70px;align-items:center;min-height:610px;position:relative}.header{background:none}.header-content{padding:0;color:var(--ink);font-weight:400}.header-title{font-family:Georgia,"Times New Roman",serif;font-size:clamp(3.2rem,5.2vw,5.25rem);font-weight:400;line-height:1.04;letter-spacing:-.055em;-webkit-text-stroke:0;margin:0}.header-subtitle{font-size:clamp(1.3rem,2vw,1.9rem);font-weight:400;line-height:1.3;letter-spacing:-.02em;-webkit-text-stroke:0;margin:30px 0 0;padding-top:22px;border-top:2px solid var(--accent);max-width:330px}.home-page #main-content{padding:0;min-width:0;display:flex;flex-direction:column}.home-page #slideshow{margin:0;aspect-ratio:1.43;padding:0;background:white;border:1px solid var(--line);box-shadow:16px 16px 0 #e3e3df}.home-page #slideshow-text{text-align:left;font-size:15px;font-weight:400;line-height:1.55;min-height:72px;margin:18px 0 0;order:1;padding-right:12px;color:var(--muted)}.home-page #slideshow-controller{order:2;margin-top:16px}
#slideshow{background:#fff;border:1px solid var(--line);overflow:hidden;margin-top:28px}.slide{padding:12px}.slide.visible{display:block}#slideshow-controller{display:grid;grid-template-columns:repeat(3,42px);justify-content:center;gap:12px 8px;align-items:center;margin:18px 0}#slideshow-controller>button{width:42px;height:42px;margin:0;border:1px solid var(--line);border-radius:50%;background:transparent;padding:8px;display:grid;place-items:center}#slideshow-controller>button:hover{background:#e6e6e3;border-color:#929296}#slideshow-controller img{width:24px;height:24px}#slideshow-text{font-size:1rem;color:var(--muted);font-weight:400;min-height:64px}#slideshow-controller>.slide-count{grid-column:1 / -1;height:auto;margin:0;text-align:center;font-size:13px;letter-spacing:.12em;color:var(--muted);cursor:default}
#footer{background:#ecece9;border-top:1px solid var(--line);padding:28px 0 12px;display:flex;flex-direction:column}.copyright{font-size:12px;color:var(--muted);text-align:center;order:2;padding-top:24px;padding-bottom:10px}.affiliations{background:transparent;max-width:1240px;margin:auto;justify-content:space-between;gap:20px;padding:0 40px 24px;border-bottom:1px solid #d4d4d1;align-items:center}.affiliations>*{height:76px;width:auto;max-width:140px;object-fit:contain;padding:4px;transition:transform .25s ease}.affiliations>*:hover{padding:4px;transform:scale(1.1)}
#tab-controller{gap:6px;flex-wrap:wrap;padding:0 0 16px;margin:0 0 24px;border-bottom:1px solid var(--line);cursor:default}#tab-controller>*{flex:0 1 auto;border:1px solid var(--line);border-radius:4px;padding:10px 24px;color:var(--muted);background:transparent;font-size:15px;cursor:pointer}#tab-controller>*.active{border:1px solid var(--ink);background:var(--ink);color:white}#tab-controller>*:hover{background:#e4e4e1;color:var(--ink)}#tab-controller>*.active:hover{background:var(--ink);color:#fff}
.project-header,.gallery-title,.award-title,.title{font-family:Georgia,"Times New Roman",serif;font-weight:400;font-size:2rem;line-height:1.25;border:0;border-bottom:1px solid var(--line);padding:0 0 20px;margin:32px 0 24px;text-align:left}.project-header:first-child{margin-top:0}.project-name{font-size:1.13rem;line-height:1.5;font-weight:600;margin-bottom:8px}.project-header+ul{list-style:none;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:0 36px}.project-header+ul>li{padding:22px 0;margin:0;border-bottom:1px solid var(--line)}.project-name+div{font-size:14px;color:var(--muted)}
ul{font-size:1rem}li{margin-bottom:12px}#tab-content>ul,#tab-content>div>ul{border-color:var(--line);padding:20px 24px}#tab-content>ul>li{padding:16px 0;border-bottom:1px solid var(--line);margin:0}.journal-year{font-family:Georgia,serif;font-size:1.8rem;color:var(--ink);padding:24px 0 12px}.custom-table-row{padding:28px 0;gap:28px;border-color:var(--line);align-items:flex-start}.custom-table-row>img{flex:0 0 22%;max-width:22%;padding:16px;background:#fff;border:1px solid var(--line)}.custom-table-row>div{flex:1;min-width:0;max-width:none;padding:0}.custom-table-title{font-family:Georgia,serif;font-size:1.9rem;line-height:1.3}.custom-table-subtitle{font-size:15px;color:var(--muted);border-color:var(--line);padding-bottom:16px}.custom-table-text{font-size:1rem;line-height:1.75}.custom-table-text p{margin-bottom:18px}
.mini-profile-list{display:grid;grid-template-columns:1fr 1fr;gap:22px;border:0;margin-top:32px}.mini-profile-list>.profile-row{width:100%;border:1px solid var(--line)!important;background:#fff;padding:20px;gap:16px}.profile-row{border-color:var(--line)}.profile-row>img{padding:0;width:120px;height:140px;object-fit:contain}.profile-row>div{padding:0;min-width:0}.mini-profile-list b{font-size:1.08rem;font-weight:600}
#contact{margin-top:0;border:1px solid var(--line);padding:28px;background:#fff;gap:32px}#contact>*{flex:1;min-width:0;max-width:none}#map,#contact-info{padding:0}#contact-info{font-size:15px}.tooltip-container:focus-visible .tooltip-text{visibility:visible}.URLS{display:flex;justify-content:center;flex-wrap:wrap;gap:24px;padding:24px}.URLS img{height:200px;object-fit:contain}.text-center{max-width:100%;padding:0 24px}.text-center iframe{border:1px solid var(--line);background:white}
.gallery-section{padding:0 0 20px}.gallery-description{padding:0;max-width:900px}.gallery-slideshow-container,.award-description,.description-text,.subtitle{border-color:var(--line)}.subtitle{font-size:1.3rem;padding:24px 0 16px}.description-text{padding:24px 0}.highlights{border:1px solid var(--line);border-radius:4px;padding:20px;font-size:14px}.home-description{min-width:0;padding:20px 0 20px 32px}.home-content{gap:16px}.donation-choice{flex-wrap:wrap}.donation-choice>div{flex:1;min-width:200px}a.button{background:var(--ink);border-radius:4px;font-size:1rem;padding:12px 22px;margin-left:0}a.button:hover{background:#3b3b3f;border-color:#3b3b3f;color:#fff}#ian-img-container{gap:20px;flex-wrap:wrap}#ian-img-container>img{object-fit:contain;flex-shrink:1}.donation-page{margin-top:0}.donation-page h2{font-size:1.35rem}.donation-page center{margin-bottom:24px}table{max-width:100%} td,th{overflow-wrap:anywhere}
@media(min-width:1041px){#navbar-links-container.hidden{visibility:visible}}
@media(max-width:1040px){.navbar>.content{padding:0 24px}.navbar-item{padding:0 12px}#navbar-menu-toggle{display:block}#navbar-links-container{position:fixed;top:var(--navbar-height);right:0;z-index:10;width:min(340px,85vw);height:calc(100dvh - var(--navbar-height));background:var(--ink);overflow:auto;transition:none}#navbar-links-container.hidden{width:0;visibility:hidden}#navbar-links-container:not(.hidden){border:0}nav{flex-direction:column;align-items:stretch;padding:16px;height:auto}.navbar-item{width:100%;height:auto;min-height:52px;justify-content:flex-start;flex-shrink:0;font-size:16px;padding:12px 20px}.navbar-item.active{background:#ffffff10}.navbar-item.active:after{left:0;top:14px;bottom:14px;width:2px;height:auto;right:auto}#navbar-overlay:not(.hidden){background:#30303480;pointer-events:auto}.home-hero{gap:36px;padding:60px 32px;min-height:560px}.header-title{font-size:3.6rem}.affiliations{justify-content:center}.custom-table-row>img{max-width:26%;flex-basis:26%}}
@media(max-width:700px){:root{--navbar-height:72px}.content{padding:0 22px}.logo>img{width:145px;max-height:62px}#main-content{padding-top:26px;padding-bottom:40px}.home-hero{grid-template-columns:1fr;padding:42px 24px;gap:36px;min-height:0}.header-title{font-size:clamp(2.8rem,10vw,4.2rem);max-width:520px}.header-subtitle{font-size:1.4rem;margin-top:22px;padding-top:16px;max-width:100%}.home-page #slideshow{box-shadow:8px 8px 0 #e3e3df}.home-page #slideshow-text{min-height:0}.page-heading{margin-top:0;margin-bottom:24px;padding-bottom:24px}.project-header+ul{grid-template-columns:1fr}.mini-profile-list{grid-template-columns:1fr}.mini-profile-list>.profile-row{padding:16px}.profile-row>img{width:100px;height:120px}.custom-table-row{flex-direction:column;gap:20px}.custom-table-row>img{max-width:100%;width:180px;max-height:200px;flex-basis:auto;margin:0}.custom-table-row>div{max-width:100%;flex-basis:auto}.custom-table-title{font-size:1.6rem}#tab-controller{gap:8px}#tab-controller>*{padding:10px 16px;flex:1 0 auto}.affiliations{gap:18px;padding:0 22px 24px}.affiliations>*{height:54px;max-width:100px}.copyright{font-size:12px;padding:22px}.home-content{flex-direction:column}.home-description{padding:0}.highlights{width:100%;order:2}.title,.project-header,.gallery-title,.award-title{font-size:1.7rem}#contact{padding:20px;flex-direction:column;align-items:stretch}#contact>*{width:100%;max-width:none;flex-basis:auto}.URLS img{height:150px}.donation-page center img{max-width:100%!important;width:100%!important;padding:0!important}.slide{padding:5px}}
/* Small-screen reading and navigation. Keep overflow local to scrollable controls. */
main, #main-content, #tab-content, #tab-content > *, .home-description { min-width: 0; }
.mobile-tab-navigation { display: none; }
@media (max-width: 1040px) {
    #navbar-links-container {
        height: calc(100vh - var(--navbar-height));
        height: calc(100dvh - var(--navbar-height));
        overscroll-behavior-y: contain;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
    body:has(#navbar-links-container:not(.hidden)) { overflow: hidden; }
    #navbar-menu-toggle { flex-shrink: 0; }
}
@media (max-width: 900px) {
    .mini-profile-list { grid-template-columns: minmax(0, 1fr); }
    .home-hero { grid-template-columns: minmax(0, 1fr); gap: 32px; min-height: 0; padding: 40px 24px; }
    .header-title { font-size: clamp(2.8rem, 7vw, 4.2rem); max-width: 640px; }
    .home-page #slideshow { box-shadow: 8px 8px 0 #e3e3df; }
}
@media (max-width: 800px) {
    #tab-controller.has-mobile-navigation { display: none; }
    .mobile-tab-navigation {
        display: block;
        position: sticky;
        top: var(--navbar-height);
        z-index: 20;
        margin: 0 0 20px;
        padding: 12px 0;
        background: var(--paper);
    }
    .mobile-tab-bar {
        display: grid;
        grid-template-columns: 48px minmax(0, 1fr) 48px;
        align-items: stretch;
        border: 1px solid var(--line);
        border-radius: 6px;
        background: #fff;
        overflow: hidden;
    }
    .mobile-tab-navigation button {
        appearance: none;
        min-width: 0;
        min-height: 52px;
        margin: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: var(--ink);
        font: inherit;
        font-size: .9375rem;
        line-height: 1.4;
    }
    .mobile-tab-navigation .mobile-tab-arrow { display: grid; place-items: center; padding: 12px; }
    .mobile-tab-arrow img { display: block; width: 20px; height: 20px; opacity: .65; }
    .mobile-tab-navigation button:disabled { cursor: default; }
    .mobile-tab-arrow:disabled img { opacity: .2; }
    .mobile-tab-navigation button:not(:disabled):hover { background: #f0f0ed; }
    .mobile-tab-navigation button:focus-visible { outline-offset: -3px; }
    .mobile-tab-navigation .mobile-tab-current {
        display: grid;
        grid-template-columns: 12px minmax(0, 1fr) 12px;
        align-items: center;
        gap: 8px;
        padding: 12px;
        border-inline: 1px solid var(--line);
        background: #f0f0ed;
        font-weight: 600;
        text-align: center;
    }
    .mobile-tab-label { grid-column: 2; }
    .mobile-tab-chevron { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
    .mobile-tab-current[aria-expanded="true"] .mobile-tab-chevron { transform: translateY(2px) rotate(225deg); }
    .mobile-tab-picker {
        position: absolute;
        top: calc(100% - 4px);
        inset-inline: 0;
        padding: 6px;
        max-height: min(320px, 50dvh);
        overflow-y: auto;
        overscroll-behavior: contain;
        border: 1px solid var(--line);
        border-radius: 6px;
        background: #fff;
        box-shadow: 0 10px 24px #00000012;
    }
    .mobile-tab-picker[hidden] { display: none; }
    .mobile-tab-picker button { display: block; width: 100%; min-height: 48px; padding: 12px 16px; border-radius: 3px; text-align: left; }
    .mobile-tab-picker button[aria-pressed="true"] { background: var(--color-primary); color: #fff; font-weight: 600; }
    .mobile-tab-picker button[aria-pressed="true"]:hover { background: var(--color-tertiary); }
    #tab-controller {
        position: sticky;
        top: var(--navbar-height);
        z-index: 20;
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 8px;
        max-width: 100%;
        padding: 12px 0;
        margin: 0 0 24px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-padding-inline: 12px;
        scrollbar-width: thin;
        scrollbar-color: #aaaab0 transparent;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
    }
    #tab-controller > * {
        flex: 0 0 auto;
        min-height: 44px;
        padding: 10px 16px;
        white-space: nowrap;
        border-radius: 6px;
        font-size: .9375rem;
        line-height: 1.5;
    }
    #tab-controller > :focus-visible { outline-offset: -3px; }
    #tab-content > [id] { scroll-margin-top: calc(var(--navbar-height) + 84px); }
    .home-description { padding: 0; }
    #contact { flex-direction: column; align-items: stretch; gap: 24px; }
    #contact > * { width: 100%; max-width: none; flex-basis: auto; }
}
@media (max-width: 600px) {
    .content { padding-inline: 18px; }
    .navbar > .content { padding-inline: 18px; }
    #main-content { padding-top: 24px; padding-bottom: 36px; }
    .page-heading { font-size: clamp(2rem, 8vw, 2.75rem); line-height: 1.15; margin-bottom: 20px; padding-bottom: 20px; }
    .home-hero { padding: 32px 18px; gap: 28px; }
    .home-page #main-content { padding: 0; }
    .header-title { font-size: clamp(2.6rem, 10vw, 3.8rem); }
    #slideshow-controller { grid-template-columns: repeat(3, 44px); gap: 12px; }
    #slideshow-controller > button { width: 44px; height: 44px; }
    .profile-row { align-items: flex-start; gap: 16px; }
    .profile-row > img { width: 80px; height: 96px; }
    .mini-profile-list { gap: 16px; margin-top: 24px; }
    .mini-profile-list > .profile-row { padding: 16px; }
    #main-content > .profile-row { flex-direction: column; padding-block: 24px; }
    #main-content > .profile-row > img { width: 100px; height: 120px; }
    .custom-table-row { padding-block: 24px; }
    .custom-table-title { font-size: 1.5rem; }
    #tab-content > ul, #tab-content > div > ul { padding: 16px 0 16px 22px; }
    #tab-content ul ul { padding-left: 20px; }
    #tab-content li { padding-right: 0; }
    #contact { padding: 16px; }
    #contact-info { font-size: 1rem; }
    .text-center { padding-inline: 18px; }
    .URLS { padding: 20px 0; gap: 16px; }
    .URLS img { width: min(40%, 150px); height: auto; }
    .affiliations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); justify-items: center; gap: 20px 12px; padding: 0 18px 24px; }
    .affiliations > * { width: 100%; max-width: 100px; height: 56px; }
    .copyright { padding: 20px 18px 12px; }
    a.button { max-width: 100%; min-height: 44px; margin-right: 0; }
    #ian-img-container > img { max-width: 100%; height: auto; max-height: 200px; }
    img[src$="balanced_cluster.jpg"] { padding: 10px 0 0 !important; }
}
@media (max-width: 360px) {
    .mini-profile-list > .profile-row { gap: 12px; padding: 12px; }
    .mini-profile-list .profile-row > img { width: 64px; height: 80px; }
    .mini-profile-list b { font-size: 1rem; }
}
/* Book covers and titles share a compact header; citations and summaries use the full width. */
@media (max-width: 800px) {
    #books .custom-table-row {
        display: grid;
        grid-template-columns: 104px minmax(0, 1fr);
        align-items: center;
        gap: 20px;
        margin: 0 0 24px;
        padding: 20px;
        border: 1px solid var(--line);
        border-radius: 6px;
        background: #fff;
    }
    #books .custom-table-row > img {
        grid-column: 1;
        grid-row: 1;
        width: 104px;
        height: auto;
        max-width: 100%;
        max-height: 156px;
        object-fit: contain;
        padding: 0;
        margin: 0;
        border: 0;
    }
    #books .custom-table-row > div { display: contents; }
    #books .custom-table-title {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
        margin: 0;
        font-size: 1.5rem;
        line-height: 1.3;
    }
    #books .custom-table-subtitle {
        grid-column: 1 / -1;
        margin: 0;
        padding: 16px 0 0;
        border: 0;
        border-top: 1px solid var(--line);
        font-size: .9375rem;
        line-height: 1.65;
    }
    #books .custom-table-text {
        grid-column: 1 / -1;
        min-width: 0;
        margin: 0;
        padding: 0;
        font-size: 1rem;
        line-height: 1.7;
    }
}
@media (max-width: 540px) {
    #books .custom-table-row { grid-template-columns: 80px minmax(0, 1fr); gap: 16px; }
    #books .custom-table-row > img { width: 80px; max-height: 120px; }
    #books .custom-table-title { font-size: 1.25rem; }
}
@media (max-width: 420px) {
    #books .custom-table-row { padding: 16px; }
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media print{body{margin:0;background:#fff;color:#000}.navbar,.skip-link,#slideshow-controller,.mobile-tab-navigation{display:none}#tab-content>*{display:block!important}.content{max-width:none}.home-hero{display:block}.affiliations{display:none}a{color:inherit}.page-heading{font-size:2rem}}
