.building-profile{--profile-max:1240px;background:#fff;color:var(--ink)}
.profile-frame{width:min(var(--profile-max),calc(100% - 88px));margin-inline:auto}
.profile-header{display:flex;align-items:center;gap:38px;min-height:94px;border-bottom:1px solid var(--line)}
.profile-brand{font-size:14px;letter-spacing:.13em;white-space:nowrap}
.profile-header nav{display:flex;gap:27px;margin-left:auto;font-size:14px;flex-wrap:wrap}
.profile-header nav a{padding-block:12px}.profile-header nav a:hover{color:var(--red)}
.profile-language{font-size:12px;color:var(--muted);white-space:nowrap;border-left:1px solid var(--line);padding-left:22px}
.profile-breadcrumbs{display:flex;flex-wrap:wrap;gap:10px;font-size:12px;color:var(--muted);padding:30px 0 36px}
.profile-breadcrumbs a:hover{text-decoration:underline}
.profile-title{display:grid;grid-template-columns:1.1fr 1fr;align-items:end;gap:60px;margin:0 0 36px}
.profile-location{font-size:13px;color:var(--red);margin-bottom:17px}
.profile-title h1{font-family:var(--serif);font-size:clamp(34px,3.7vw,52px);line-height:1.3;font-weight:500;letter-spacing:.025em}
.profile-english{font-family:var(--serif);font-size:24px;margin-top:10px;color:var(--muted)}
.profile-intro{max-width:450px;padding-bottom:4px}.profile-intro h2{font:500 20px/1.6 var(--sans);letter-spacing:0;margin:0 0 10px}
.profile-intro p{font-size:15px;color:var(--muted);line-height:1.85}.profile-intro>a{font-size:14px;display:inline-block;margin-top:18px;border-bottom:1px solid var(--line);padding-bottom:5px}
.profile-intro>a span{margin-left:14px}
.profile-hero{max-width:1000px;margin:0 auto 28px}
.profile-photo{margin:28px 0 0;min-width:0}.profile-hero .profile-photo{margin:0}
.photo-link{display:block;position:relative;background:#f0f1ee;overflow:hidden;cursor:zoom-in}
.profile-photo img{width:100%;height:auto;max-width:100%;object-fit:contain;display:block}
.photo-expand{position:absolute;bottom:14px;right:14px;background:#fffffff0;padding:8px 12px;font-size:12px;color:var(--ink)}
.profile-photo figcaption{font-size:12px;color:#686c65;line-height:1.7;padding-top:12px}
.profile-photo figcaption p{font-size:12px;line-height:1.7;margin:0 0 5px;max-width:none}
.profile-photo .photo-date{font-size:13px;color:var(--ink);font-weight:500}
.profile-photo .photo-credit{font-size:11px;margin-top:7px}.photo-credit a{text-decoration:underline;text-underline-offset:3px}
.profile-photo-small{max-width:500px}.profile-photo-small[data-photo="old"]{max-width:400px}
.profile-photo .image-loading-status{font-size:12px;line-height:1.6;color:var(--muted);margin:8px 0 0}
.image-loading-status button{text-decoration:underline;text-underline-offset:3px;padding:5px 8px}
.profile-facts{padding:26px 0 18px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-bottom:62px}
.profile-facts dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:32px;row-gap:28px;margin:0}
.profile-facts dt{font-size:12px;color:var(--muted);margin-bottom:8px}.profile-facts dd{font-size:19px;line-height:1.5;margin:0;font-weight:500}
.profile-facts small{display:block;font-size:12px;font-weight:400;color:var(--muted);margin-top:5px}
.facts-source{font-size:11px;color:var(--muted);margin-top:22px}
.profile-refs{display:inline-flex;gap:3px;vertical-align:super;font:10px/1 var(--sans);margin-left:5px;white-space:nowrap}
.profile-refs a{color:var(--red);padding:3px 1px}
.profile-reading{display:grid;grid-template-columns:200px minmax(0,1fr);column-gap:68px;align-items:start}
.profile-sidebar{position:sticky;top:26px;font-size:13px}.profile-sidebar nav{display:flex;flex-direction:column;border-left:1px solid var(--line)}
.profile-sidebar nav>p{font-size:12px;color:var(--muted);padding:0 0 15px 18px}
.profile-sidebar nav>a{padding:10px 18px;line-height:1.5;border-left:2px solid transparent;margin-left:-1px}
.profile-sidebar nav>a:hover,.profile-sidebar nav>a[aria-current]{border-color:var(--red);color:var(--red);background:#f7f8f5}
.back-to-bund{display:block;margin:24px 0 0 20px;font-size:12px;text-decoration:underline;text-underline-offset:4px}
.profile-body{max-width:850px;min-width:0}.profile-section{margin-bottom:70px;scroll-margin-top:25px}
.profile-section h2{font-size:30px;line-height:1.5;letter-spacing:.015em;margin:0 0 23px}
.profile-section>p{font-size:16px;line-height:2;max-width:46em;margin:0 0 20px}
.profile-section .section-kicker{font-size:12px;color:var(--red);margin-bottom:10px}
.profile-section .section-intro{color:var(--muted);font-size:14px}
.architecture-notes{display:grid;gap:24px;margin:26px 0 30px}
.architecture-notes>section{display:grid;grid-template-columns:30px 1fr;gap:16px}
.detail-number{font:italic 22px/1.5 var(--serif);color:var(--red)}
.profile-body h3{font-size:19px;line-height:1.6;margin:0 0 10px;font-weight:500}
.architecture-notes p,.timeline-content>p{font-size:15px;line-height:1.95;margin:0}
.profile-timeline{list-style:none;padding:0;margin:35px 0 0}
.timeline-event{display:grid;grid-template-columns:110px minmax(0,1fr);gap:26px;position:relative;padding:0 0 44px}
.timeline-event:before{content:'';position:absolute;left:119px;top:12px;bottom:0;border-left:1px solid var(--line)}
.timeline-event:last-child:before{bottom:auto;height:25px}.timeline-event:last-child{padding-bottom:0}
.timeline-date{font-family:var(--serif);font-size:19px;line-height:1.7;color:var(--red);position:relative;padding-top:2px}
.timeline-date:after{content:'';position:absolute;right:-14px;top:13px;width:7px;height:7px;background:var(--red);border-radius:50%;outline:5px solid #fff}
.timeline-content{min-width:0;padding-left:10px}.timeline-content .profile-photo{margin-top:23px}
.archive-extra{margin-top:25px;border-top:1px solid var(--line);padding-top:16px;font-size:13px}.archive-extra summary{cursor:pointer;line-height:1.7}
.visit-section{background:#f4f6f2;padding:32px;margin-left:-32px;margin-right:-32px}
.visit-facts{margin:25px 0}.visit-facts>div{display:grid;grid-template-columns:86px 1fr;gap:18px;margin-bottom:20px;font-size:14px;line-height:1.9}
.visit-facts dt{font-weight:500}.visit-facts dd{margin:0}.profile-map{display:inline-block;border:1px solid #bac4b9;padding:12px 18px;font-size:14px}
.profile-section .profile-update{font-size:11px;color:var(--muted);margin:18px 0 0}
.profile-related{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:25px;font-size:14px}
.profile-related a{border-bottom:1px solid var(--line);padding:12px 0;line-height:1.7}
.profile-sources{border-top:1px solid var(--line);padding-top:30px}
.profile-sources h2{font-size:23px}.profile-sources>p,.profile-sources details{font-size:12px;color:var(--muted);line-height:1.9}
.profile-sources a{text-decoration:underline;text-underline-offset:3px}.profile-sources ol{padding-left:22px;font-size:12px;line-height:1.8}
.profile-sources li{padding:5px 0 12px;scroll-margin-top:30px}.profile-sources li p{font-size:12px;color:var(--muted);margin-top:5px}
.profile-sources details{margin-top:25px}.profile-sources summary{cursor:pointer;color:var(--ink);margin-bottom:12px}.profile-sources details p{margin-top:12px}
.building-neighbours{display:grid;grid-template-columns:1fr 1fr 1fr;align-items:center;gap:24px;padding:30px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.building-neighbours a{font-size:16px;line-height:1.6}.building-neighbours small{display:block;font-size:12px;color:var(--muted);margin-bottom:8px}
.building-neighbours a:nth-child(2){text-align:center;font-size:13px}.building-neighbours a:last-child{text-align:right}
.profile-footer{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:36px 0;font-size:12px;color:var(--muted)}
.profile-lightbox{padding:0;border:0;width:min(1180px,96vw);max-width:96vw;max-height:94dvh;color:var(--ink);background:white}
.profile-lightbox::backdrop{background:#10251de0}.lightbox-toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:14px 20px;position:sticky;top:0;background:#fff;z-index:1;border-bottom:1px solid var(--line)}
.lightbox-toolbar h2{font:16px/1.6 var(--sans);letter-spacing:0}.lightbox-toolbar button{font-size:14px;min-height:42px;padding:8px 12px}
.lightbox-image{padding:16px;min-height:100px}.lightbox-image img{width:auto;max-width:100%;max-height:66dvh;object-fit:contain;margin:auto;display:block}
.lightbox-image .image-loading-status{margin:12px auto 0;text-align:center;font-size:13px}
.lightbox-caption{padding:0 24px 22px;font-size:13px;line-height:1.7}.lightbox-caption p{margin:0 0 8px}.lightbox-caption a{text-decoration:underline}
@media(min-width:1500px){.profile-hero{max-width:1100px}}
@media(max-width:1000px){.profile-frame{width:calc(100% - 48px)}.profile-title{gap:32px;grid-template-columns:1fr 1fr}.profile-reading{grid-template-columns:150px minmax(0,1fr);gap:35px}.profile-header{gap:24px}.profile-header nav{gap:18px}.profile-language{display:none}.timeline-event{grid-template-columns:88px minmax(0,1fr);gap:20px}.timeline-event:before{left:94px}.timeline-date{font-size:17px}.timeline-date:after{right:-10px}.visit-section{margin-inline:0;padding:24px}}
@media(max-width:760px){.profile-frame{width:calc(100% - 36px)}.profile-header{min-height:100px;flex-wrap:wrap;padding:20px 0 12px;gap:10px}.profile-header nav{width:100%;margin-left:0;justify-content:space-between;gap:12px;font-size:12px}.profile-header nav a{padding:8px 0}.profile-breadcrumbs{padding:22px 0 28px;font-size:11px}.profile-title{grid-template-columns:1fr;gap:22px;margin-bottom:25px}.profile-title h1{font-size:36px}.profile-location{margin-bottom:12px}.profile-english{font-size:20px}.profile-intro{max-width:none}.profile-intro h2{font-size:18px}.profile-intro p{font-size:14px}.profile-intro>a{margin-top:12px}.photo-expand{font-size:11px;bottom:8px;right:8px;padding:6px 9px}.profile-facts{margin-bottom:32px;padding-top:22px}.profile-facts dl{grid-template-columns:1fr 1fr;gap:24px 18px}.profile-facts dd{font-size:16px}.profile-facts small{font-size:11px}.profile-reading{display:block}.profile-sidebar{position:static;margin-bottom:34px}.profile-sidebar nav{display:flex;flex-direction:row;flex-wrap:wrap;gap:7px 18px;border:0;border-bottom:1px solid var(--line);padding-bottom:16px}.profile-sidebar nav>p{display:none}.profile-sidebar nav>a{border:0;padding:8px 0;font-size:12px}.profile-sidebar .back-to-bund{display:none}.profile-section{margin-bottom:45px}.profile-section h2{font-size:25px;margin-bottom:19px}.profile-section>p{font-size:15px;line-height:1.95}.profile-body h3{font-size:17px}.architecture-notes{gap:21px}.architecture-notes>section{grid-template-columns:20px 1fr;gap:12px}.architecture-notes p,.timeline-content>p{font-size:14px;line-height:1.95}.timeline-event{display:block;padding:0 0 34px 21px}.timeline-event:before{left:3px;top:15px}.timeline-date{font-size:20px;margin:0 0 10px;padding:0}.timeline-date:after{left:-21px;right:auto;top:13px}.timeline-content{padding:0}.timeline-content .profile-photo{margin-top:18px}.profile-photo figcaption p{font-size:11px}.profile-photo .photo-credit{font-size:10px}.visit-section{padding:22px 18px}.visit-facts>div{grid-template-columns:1fr;gap:4px}.profile-related{grid-template-columns:1fr;gap:5px}.profile-sources>p,.profile-sources details{font-size:12px}.building-neighbours{grid-template-columns:1fr 1fr;gap:20px}.building-neighbours a{font-size:14px}.building-neighbours a:nth-child(2){grid-row:2;grid-column:1/-1}.profile-footer{align-items:start;flex-direction:column;gap:14px}.profile-lightbox{max-height:96dvh}.lightbox-image{padding:8px}.lightbox-caption{padding:4px 16px 18px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.building-profile *{transition:none!important}}

.profile-save{border:1px solid var(--line);font-size:13px;padding:8px 16px;margin-top:14px}.profile-save[aria-pressed="true"]{color:var(--red)}[data-save-notice]{font-size:12px;color:var(--muted)}

.profile-photo .photo-link{width:min(100%,calc(800px * var(--photo-ratio)));margin-inline:auto}.profile-hero .photo-link{width:min(100%,calc(680px * var(--photo-ratio)))}.profile-hero figcaption{max-width:850px;margin-inline:auto}@media(max-width:760px){.profile-hero .photo-link{width:min(100%,calc(65svh * var(--photo-ratio)))}}

.profile-header .profile-languages{margin-left:0;gap:14px;font-size:12px;border-left:1px solid var(--line);padding-left:20px}.profile-languages [aria-current]{color:var(--red);text-decoration:underline;text-underline-offset:5px}@media(max-width:760px){.profile-header .profile-languages{border:0;padding:0;justify-content:flex-end;gap:22px}}

.profile-header{flex-wrap:wrap;padding-block:14px;gap:16px 28px}.profile-header>nav:first-of-type{gap:18px}.profile-header .profile-languages{margin-left:auto;flex-wrap:wrap}.profile-languages a{min-height:40px;padding:10px 5px}.profile-title>div{min-width:0}.profile-title h1,.profile-english{overflow-wrap:anywhere}@media(max-width:760px){.profile-header .profile-languages{justify-content:flex-start;gap:4px 17px;padding:0}.profile-title h1{font-size:32px}.profile-english{font-size:19px}.profile-title{margin-top:0}}

.building-neighbours.profile-street-navigation{grid-template-columns:1fr 1fr}.profile-street-navigation a:nth-child(2){grid-row:auto;grid-column:auto;text-align:right}

.profile-photo-gap{border:1px solid var(--line,#d8d5c8);padding:28px 32px;max-width:1000px;margin:0 auto;line-height:1.8}.profile-photo-gap p{margin:0 0 12px;color:var(--muted,#6b6d64)}.profile-photo-gap a{color:var(--ink,#203f34);text-underline-offset:4px}

/* Keep newly sourced small originals at their native display width. */
.profile-hero .profile-photo{margin-inline:auto}

.profile-resident{border-top:2px solid var(--ink,#203f34);padding-top:28px;scroll-margin-top:28px}.profile-resident h3{font-size:16px;margin:26px 0 8px;color:var(--red,#965740)}.profile-resident h3+p{margin-top:0}
