/* Product information sits beside the model; the translucent surface preserves the town view. */
#annotation-cards{display:contents}
.annotated-world:not(.is-local) #annotation-cards{display:none}
.annotated-world .context-card,.annotated-world .building-annotation{
 --annotation-top:30svh;
 display:flex;flex-direction:column;align-items:stretch;text-align:left;
 position:absolute;top:var(--annotation-top);bottom:auto;
 width:clamp(260px,22vw,360px);max-width:none;
 max-height:calc(100svh - var(--annotation-top) - 210px);
 padding:16px;border:1px solid rgba(255,250,240,.65);border-radius:12px;
 background:rgba(255,250,240,.68);backdrop-filter:blur(10px);
 color:#29463e;text-shadow:none;overflow:hidden;overscroll-behavior:contain;
 scrollbar-width:thin;scrollbar-color:#73877770 transparent;
 transition:opacity .3s ease-out;
}
.annotated-world .context-card{left:3.2%;right:auto;max-height:calc(100svh - var(--annotation-top) - 180px)}
.annotated-world .building-annotation{--annotation-top:27svh;right:3.2%;left:auto}
.annotated-world .annotation-picture{display:block;flex-shrink:0;width:100%;min-height:0;border:0;margin:0 0 14px;border-radius:7px;overflow:hidden}
.annotation-picture img{display:block;width:100%;height:clamp(110px,14svh,160px);object-fit:cover}
.annotation-picture img.is-poster{object-fit:cover;object-position:center 58%}
.annotation-picture img[src$="laoyouji-poster.jpg"]{object-position:center 42%}
.annotated-world .project-caption{flex-shrink:0;padding:0;margin:0 0 12px;background:none;border-radius:0}
.annotated-world .context-card h2,.annotated-world .building-annotation h2{
 font-size:clamp(22px,1.65vw,28px);font-weight:700;line-height:1.4;
 margin:4px 0 8px;overflow-wrap:anywhere;text-wrap:balance;
}
.annotated-world .context-heading{padding:0;border:0;align-items:center}
.annotated-world .context-heading p,.annotated-world #related-date{
 font:600 14px/1.6 var(--font);letter-spacing:0;color:#3f5d51;margin:0;
}
.annotated-world .context-heading button{display:none}
.annotated-world .context-card #project-lines,.annotated-world .building-annotation #related-copy{
 font:17px/1.7 var(--font);color:#29463e;margin:0 0 12px;
 display:block;min-height:48px;overflow:auto;overscroll-behavior:contain;
 scrollbar-width:thin;overflow-wrap:anywhere;text-wrap:pretty;
}
.annotated-world #project-chips,.annotated-world .annotation-kicker{display:none}
.annotated-world .context-link,.annotated-world .building-annotation #related-link{
 display:inline-flex;flex-shrink:0;align-self:flex-start;align-items:center;min-height:44px;font-size:16px;
 font-weight:600;border:0;text-decoration:underline;text-underline-offset:6px;
 margin:0;padding:0;color:#214d4a;
}
.annotated-world.is-local .intro{top:12%;left:3.2%;width:30%;max-width:440px}
.annotated-world.is-local .intro #scene-description{font-size:15px;line-height:1.7}
.spatial-mode .hotspot span{font-size:14px;line-height:1.5;padding:5px 9px}
.spatial-mode .view-picker,.spatial-mode .view-picker #angle-label{font-size:14px}
.spatial-mode #instruction,.spatial-mode .journey-nav button,.spatial-mode .breadcrumb,.spatial-mode .journey-bottom button{font-size:14px}
.spatial-mode #building-directory{width:clamp(260px,22vw,360px);right:3.2%;font-size:15px;background:rgba(255,250,240,.75);box-shadow:none;backdrop-filter:blur(8px)}
.spatial-mode #building-directory .directory-group{font-size:13px}
.spatial-mode #experience .context-card,.spatial-mode #experience .context-card *,.spatial-mode #experience .building-annotation,.spatial-mode #experience .building-annotation *{-webkit-user-select:text;user-select:text}
.spatial-mode #experience .annotation-picture,.spatial-mode #experience .annotation-picture *{-webkit-user-select:none;user-select:none}

@media(min-width:761px) and (max-height:760px){
 .annotated-world .context-card{--annotation-top:32svh}
 .annotated-world .building-annotation{--annotation-top:25svh}
 .annotation-picture img{height:110px}
}
@media(min-width:761px) and (max-width:1100px){
 .annotated-world .context-card,.annotated-world .building-annotation{width:26%;padding:12px}
 .annotated-world .context-card{left:2%}
 .annotated-world .building-annotation{right:2%}
 .annotated-world.is-local .intro{left:2%;width:42%}
 .spatial-mode #building-directory{width:26%;right:2%}
}
@media(max-width:760px){
 .annotated-world.is-local .intro{top:76px;left:18px;right:18px;width:auto;max-width:none}
 .annotated-world.is-local .intro h1{font-size:27px}
 .annotated-world.is-local .intro #scene-description{font-size:14px;max-width:100%}
 .annotated-world.is-local #annotation-cards{
  position:absolute;left:0;right:0;bottom:210px;z-index:4;
  display:flex;align-items:stretch;gap:12px;padding:0 18px 8px;
  overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding:18px;
  scrollbar-width:thin;overscroll-behavior-x:contain;
 }
 .annotated-world #annotation-cards .context-card,.annotated-world #annotation-cards .building-annotation{
  position:relative;inset:auto;flex:0 0 calc(100vw - 64px);
  width:auto;max-width:none;max-height:min(380px,43svh);padding:14px;
  scroll-snap-align:start;background:rgba(255,250,240,.76);
 }
 .annotation-picture img{height:100px}
 .annotated-world .annotation-picture{margin-bottom:10px}
 .annotated-world .context-card h2,.annotated-world .building-annotation h2{font-size:22px;line-height:1.4}
 .annotated-world .context-card #project-lines,.annotated-world .building-annotation #related-copy{font-size:16px;line-height:1.65}
 .annotated-world .context-heading p,.annotated-world #related-date{font-size:13px}
 .annotated-world .context-link,.annotated-world .building-annotation #related-link{font-size:15px}
 .spatial-mode #building-directory{bottom:155px;left:18px;right:18px;width:auto;font-size:14px}
 .spatial-mode #building-directory[open]{width:auto}
 .spatial-mode #building-directory summary{padding:10px 12px}
 .spatial-mode .hotspot span{font-size:12px}
 .spatial-mode .view-picker,.spatial-mode .view-picker #angle-label{font-size:12px}
 .spatial-mode #instruction{display:none}
 .spatial-mode .journey-nav button,.spatial-mode .journey-bottom button{font-size:13px}
 .spatial-mode .breadcrumb{font-size:12px}
}
@media(max-width:760px) and (max-height:740px){
 .annotation-picture img{height:72px}
 .annotated-world .project-caption{margin-bottom:8px}
 .annotated-world .context-card #project-lines,.annotated-world .building-annotation #related-copy{min-height:32px;margin-bottom:8px}
 .spatial-mode .view-picker{display:none}
}
@media(prefers-reduced-motion:reduce){
 .annotated-world .context-card,.annotated-world .building-annotation{transition:none}
 #annotation-cards{scroll-behavior:auto}
}
