/* The model stays visible behind the four independent reference windows. */
.masthead { justify-content: flex-start; }
#info-nav { margin-left: auto; padding: 3px; display: flex; align-items: center; gap: 2px; background: #101f2eee; color: #ecf2f6; border: 1px solid #afc3d052; border-radius: 8px; box-shadow: 0 4px 20px #06121f38; backdrop-filter: blur(12px); pointer-events: auto; }
#info-nav button { display: flex; align-items: center; justify-content: center; gap: 7px; border-radius: 4px; padding: 0 clamp(8px,.85vw,16px); height: 34px; font-size: 13px; white-space: nowrap; }
#info-nav button svg { width: 16px; height: 16px; color: #dfc298; }
#info-nav button:hover { background: #d2dfea1d; }
#info-nav button[aria-expanded=true] { color: #fff3dd; background: #41505a; box-shadow: inset 0 -2px #e6c18a; }
body.info-open #detail-panel { visibility: hidden; pointer-events: none; }
#exhibit { position: fixed; z-index: 8; top: var(--panel-top,75px); right: var(--edge); width: clamp(350px,31vw,490px); max-height: calc(100dvh - var(--panel-top,75px) - var(--dock-clearance)); display: flex; flex-direction: column; color: #f0f3f4; border: 1px solid #abc2cf79; border-radius: 10px; background: #112331fa; box-shadow: 0 12px 52px #06121d80; overflow: hidden; font-family: Inter,"Segoe UI","Microsoft YaHei UI","Microsoft YaHei",sans-serif; }
#exhibit .icon-button { width: 31px; height: 31px; }
#exhibit button:focus-visible, #exhibit summary:focus-visible, #exhibit .image-viewport:focus-visible { outline: 2px solid #efca90; outline-offset: -2px; }
#exhibit h2:focus { outline: none; }
.info-head { flex: none; display: flex; align-items: center; gap: 5px; padding: 9px 13px 9px 20px; background: #102230; border-bottom: 1px solid #bfd0d82e; }
.info-head h2 { flex: 1; font-weight: 600; font-size: 16px; letter-spacing: .045em; margin: 0; }
.info-head .icon-button { color: #c9d6de; }
.info-head button:hover { background: #bbd1e123; color: white; }
.info-body { min-height: 0; display: flex; flex-direction: column; }
.info-scroll { overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #607483 transparent; }
.info-copy { padding: 10px 20px 18px; }
.info-copy h3 { font-size: 14px; font-weight: 570; }
.group-heading { position: relative; isolation: isolate; display: flex; align-items: flex-end; padding: 15px 20px; min-height: clamp(100px,11vh,150px); }
.group-heading > img, .group-heading::after { position: absolute; z-index: -1; width: 100%; height: 100%; inset: 0; object-fit: cover; object-position: 50% 47%; }
.group-heading::after { content: ''; background: linear-gradient(100deg,#08202cbd,#08232e35),linear-gradient(0deg,#0c2130b3,transparent 80%); }
.group-heading div img { display: block; width: clamp(122px,11vw,172px); }
.group-heading h3 { margin: 7px 0 0; color: #f2f5f7; font-size: 13px; font-weight: 520; }
.info-description { margin: 0; color: #d3dfe6; font-size: 13px; line-height: 1.82; }
.info-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 16px 0 8px; }
.info-section-head h3 { margin: 0; }
.info-section-head span, .info-disclosure summary span { color: #acbdc9; font-size: 11px; }
.info-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 0 0 14px; }
.info-facts > div { padding: 10px 12px; background: #213747; border: 1px solid #aac0cf2d; border-radius: 4px; }
.info-facts dt { font-size: 12px; color: #bbccd7; }
.info-facts dd { margin: 4px 0 0; font: 620 clamp(20px,1.7vw,30px)/1.2 "Segoe UI","Microsoft YaHei UI",sans-serif; font-variant-numeric: tabular-nums; letter-spacing: -.015em; color: #f1d4a3; }
.info-facts small { font-size: 12px; font-weight: 500; margin-left: 4px; }
.info-disclosure { border-top: 1px solid #b4c6d12e; }
.info-disclosure summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 7px; min-height: 36px; font-size: 13px; color: #e6eef2; }
.info-disclosure summary::-webkit-details-marker { display: none; }
.info-disclosure summary svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; margin-left: auto; transform: rotate(90deg); }
.info-disclosure[open] summary svg { transform: rotate(-90deg); }
.group-work h3 { margin: 16px 0 10px; }
.group-work .business-list { gap: 10px; margin-bottom: 16px; }
.group-work .business-list dt { color: #e6c996; }
.business-list { margin: 0 0 12px; display: grid; gap: 8px; font-size: 12px; line-height: 1.65; }
.business-list div { display: grid; grid-template-columns: 4.5em 1fr; gap: 10px; }
.business-list dt { color: #c0ccd6; }
.business-list dd { margin: 0; }
.info-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 0 0 9px; }
.info-thumbs button { display: grid; align-content: start; text-align: left; gap: 5px; font-size: 11px; padding: 0; }
.info-thumbs img { display: block; width: 100%; aspect-ratio: 1.7; object-fit: contain; background: white; border-radius: 3px; }
.project-heading { position: relative; isolation: isolate; overflow: hidden; padding: 20px; background: #172d40; border-bottom: 1px solid #bdd0da2d; }
.project-cover, .project-heading::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.project-cover { object-fit: cover; object-position: 50% 52%; }
.project-heading::after { content: ''; background: linear-gradient(95deg,#071b2bed,#0a1e2c94 53%,#0c1e2b24); }
.project-heading h3 { margin: 0; font-weight: 620; letter-spacing: .075em; font-size: clamp(24px,2vw,34px); }
.project-heading p { margin: 4px 0 0; font-size: 13px; color: #c8d4dd; }
.info-album-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; padding: 4px 8px; border: 1px solid #cedbe357; border-radius: 4px; background: #0e2433d6; color: #f2e4c9; font-size: 12px; }
.info-album-link svg, .program-link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.info-album-link:hover { background: #294457; }
.info-place { display: flex; align-items: center; gap: 5px; font-size: 12px; color: #e6c996; margin: 1px 0 8px; }
.info-place svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; }
[data-page="project"] .info-facts dd { font-size: clamp(18px,1.6vw,25px); }
.program-areas { margin: 0 0 12px; display: grid; gap: 6px; font-size: 12px; }
.program-areas > div { display: grid; grid-template-columns: 3em 1fr; align-items: center; gap: 7px; }
.program-areas dd { margin: 0; display: grid; grid-template-columns: 1fr 2ch; gap: 10px; align-items: center; }
.program-areas dd::before, .program-areas i { grid-area: 1/1; height: 5px; border-radius: 2px; }
.program-areas dd::before { content: ''; background: #31495b; }
.program-areas i { background: linear-gradient(90deg,#80a6a6,#e8c58c); }
.program-areas dd span { text-align: right; color: #f1d4a3; font-variant-numeric: tabular-nums; }
.program-link { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 12px; color: #e9cfaa; font-size: 12px; }
.program-link:hover { text-decoration: underline; }
.circulation { margin: 2px 0 12px; }
.info-copy .landscape-title { margin: 0 0 5px; font-size: 12px; color: #c6d7dd; }
.landscape-views { display: grid; }
.landscape-views button { display: grid; grid-template-columns: 58px 1fr auto 14px; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid #b1c6d21f; text-align: left; color: #e4edf2; font-size: 12px; }
.landscape-views img { width: 58px; aspect-ratio: 1.8; object-fit: cover; border-radius: 3px; }
.landscape-views small { color: #ebcc9b; font-size: 12px; font-variant-numeric: tabular-nums; }
.landscape-views svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.landscape-views button:hover span { text-decoration: underline; }
#exhibit.is-visual { top: max(76px,10dvh); left: 50%; right: auto; transform: translateX(-50%); width: min(80vw,1380px); height: min(74dvh,850px); max-height: calc(100dvh - max(76px,10dvh) - var(--dock-clearance)); }
#exhibit.is-visual .info-body { flex: 1; background: #152632; }
#exhibit.is-wide { inset: max(8px,env(safe-area-inset-top)) 8px max(8px,env(safe-area-inset-bottom)); width: auto; height: auto; max-height: none; transform: none; }
.image-toolbar, .image-tabs, .image-tools { display: flex; align-items: center; gap: 4px; }
.image-toolbar { min-height: 40px; padding: 4px 12px; border-bottom: 1px solid #9fb3c52b; }
.image-toolbar button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 29px; border: 1px solid transparent; padding: 0 9px; font-size: 12px; color: #d4dfe5; border-radius: 4px; white-space: nowrap; }
.image-toolbar button:hover:not(:disabled) { background: #385061; }
.image-toolbar button[aria-pressed=true] { background: #344957; border-color: #baa27c69; color: #f6dcb0; }
.image-tools { margin-left: auto; }
.image-tools svg { width: 15px; height: 15px; }
.image-tools [data-image-zoom] { width: 30px; padding: 0; background: #223948; font: 19px/1 "Segoe UI",sans-serif; }
.image-tools button:disabled { opacity: .45; }
.image-viewport { position: relative; flex: 1; min-height: 0; overflow: hidden; isolation: isolate; touch-action: none; user-select: none; background: #0b1822; cursor: zoom-in; }
.image-viewport.can-pan { cursor: grab; }
.image-viewport.can-pan:active { cursor: grabbing; }
.image-plane { position: absolute; inset: 0 auto auto 0; }
.info-image { display: block; width: 100%; height: 100%; }
.image-pins { position: absolute; inset: 0; pointer-events: none; }
.image-pin { position: absolute; color: #fbe4b9; pointer-events: none; }
.image-pin::before { content: ''; position: absolute; top: -12px; height: 12px; left: -.5px; width: 1px; background: #ffefd0; box-shadow: 0 1px 2px #132530; }
.image-pin.pin-below::before { top: 0; }
.image-pin::after { content: ''; position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; border: 1px solid white; background: #f3c77d; }
.pin-caption { position: absolute; display: flex; align-items: center; gap: 4px; border: 1px solid #e1c491b3; padding: 4px 7px; background: #142a37ed; font-weight: 600; font-size: 12px; line-height: 17px; box-shadow: 0 2px 7px #15202d70; white-space: nowrap; border-radius: 3px; }
.image-pin[data-kind=station] { color: #f3f6f9; }
.image-pin[data-kind=station] .pin-caption { background: #172733f5; border-color: #dfebf4ce; }
.pin-caption img { width: 18px; height: 18px; object-fit: contain; border-radius: 50%; }
.metro-line { display: inline-flex; align-items: center; justify-content: center; min-width: 16px; height: 16px; border-radius: 3px; color: #0e272b; font: 700 10px/1 "Segoe UI",sans-serif; background: #b4d2d6; }
.line-9 { background: #a3cce4; } .line-12 { background: #81c8b3; } .line-14 { background: #d2c69c; }
.info-unavailable { margin: auto; padding: 18px; color: #c2d2df; font-size: 13px; }
.info-unavailable button { color: #eac68b; text-decoration: underline; }
@media (min-width: 1900px) { body { --panel-top: 87px; } }
@media (max-width: 940px) {
  #info-nav button { gap: 4px; padding-inline: 7px; font-size: 12px; }
  .masthead { gap: 7px; }
  #exhibit.is-visual { width: 89vw; }
  #exhibit.is-wide { width: auto; }
}
@media (max-width: 600px) {
  .masthead { display: grid; grid-template-columns: 1fr; gap: 7px; padding: max(9px,env(safe-area-inset-top)) 10px 15px; }
  .identity { justify-self: start; }
  #info-nav { grid-row: 2; grid-column: 1/-1; margin: 0; justify-self: center; justify-content: center; padding: 2px; width: min(100%,470px); }
  #info-nav button { flex: 1; padding: 0 3px; font-size: 12px; height: 29px; }
  #info-nav button svg { width: 14px; height: 14px; }
}
@media (max-width: 680px) {
  #exhibit { inset: auto 9px var(--dock-clearance); width: auto; max-height: min(63dvh,calc(100dvh - var(--dock-clearance) - 95px)); }
  #exhibit.is-visual { inset: auto 7px var(--dock-clearance); width: auto; transform: none; height: min(61dvh,calc((100vw - 16px) / var(--image-ratio,1.5) + 79px)); max-height: calc(100dvh - var(--dock-clearance) - 95px); }
  #exhibit.is-wide { inset: max(5px,env(safe-area-inset-top)) 4px max(5px,env(safe-area-inset-bottom)); width: auto; height: auto; max-height: none; }
  .info-head { padding: 5px 8px 5px 13px; }
  .info-head h2 { font-size: 14px; }
  .image-toolbar { min-height: 34px; padding: 3px 5px; gap: 2px; }
  .image-toolbar button { font-size: 11px; min-height: 25px; padding: 0 5px; }
  .image-tools [data-image-zoom] { width: 24px; }
  .image-tabs,.image-tools { gap: 1px; }
  .image-tools [data-image-labels] { padding: 0 3px; }
  .info-copy { padding: 10px 13px 14px; }
  .info-description { font-size: 12px; }
  .group-heading { min-height: 91px; padding: 10px 13px; }
  .group-heading h3 { font-size: 12px; }
  .project-heading { padding: 12px 13px; }
  .project-heading p { font-size: 12px; }
  .info-section-head { margin-top: 10px; }
  .info-facts > div { padding: 7px 9px; }
  .info-facts dd { font-size: 21px; }
  .pin-caption { font-size: 10px; gap: 2px; padding: 2px 3px; line-height: 14px; }
  .pin-caption img { width: 14px; height: 14px; }
  .metro-line { min-width: 12px; height: 12px; font-size: 9px; }
}
@media (max-height: 520px) and (min-width: 681px) {
  #exhibit.is-visual { top: 57px; max-height: none; height: auto; bottom: var(--dock-clearance); }
  #exhibit.is-wide { inset: 3px; max-height: none; height: auto; }
}
