#inspection { margin-top: clamp(.85rem,1.7vw,1.45rem); }
:where(#inspection) button { color: inherit; font: inherit; cursor: pointer; }
#inspection [hidden] { display: none !important; }
#inspection :focus-visible { outline: 3px solid #2a64df; outline-offset: 2px; }
#inspection figure { margin: 0; }
@media (max-width: 600px) {
  .detail-heading { align-items: flex-start; flex-direction: column; gap: .55rem; }
}
.mode-switch { display: flex; gap: clamp(14px,2.2vw,29px); border-bottom: 1px solid var(--edge); margin-bottom: .85rem; }
.mode-switch button { padding: .5rem .12rem .65rem; border: 0; border-bottom: 3px solid transparent; background: transparent; font-size: .96rem; font-weight: 650; color: var(--muted); }
.mode-switch button[aria-pressed="true"] { border-color: var(--blue); color: var(--blue); }
.mode-switch button:hover, .report a:hover { color: #123c9f; }
.exhibit { display: grid; grid-template-columns: minmax(0,1fr) clamp(105px,11vw,152px); border: 1px solid var(--edge); border-radius: 4px; overflow: hidden; }
.exhibit { --stage-height: clamp(340px,56vh,660px); }
.stage { position: relative; height: var(--stage-height); min-width: 0; background: radial-gradient(ellipse at 52% 42%,#fafcfe,#edf2f6); }
#model { display: block; width: 100%; height: 100%; visibility: hidden; outline-offset: -4px; }
[data-state="ready"] #model { visibility: visible; cursor: grab; touch-action: none; }
[data-state="ready"] #model.dragging { cursor: grabbing; }
.notice { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: min(86%,26rem); color: var(--muted); font-size: .94rem; text-align: center; }
.notice button, .actions button { min-height: 40px; border: 1px solid #c9d6e1; border-radius: 4px; background: white; font-weight: 600; }
.notice button { margin-top: .8rem; padding: 0 .85rem; font-size: .88rem; }
.legend { display: grid; place-items: stretch; min-width: 0; border-left: 1px solid var(--edge); background: white; }
.legend-link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 13px; min-width: 0; padding: .9rem .5rem; color: var(--ink); text-decoration: none; cursor: zoom-in; }
.legend-link:focus-visible { outline-offset: -3px; }
.legend-link:hover h2 { color: var(--blue); }
.legend-title { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px; }
.legend-title h2 { font-size: .86rem; font-weight: 650; }
.legend-title span { font: .75rem Consolas, monospace; color: var(--muted); }
.legend img { display: block; max-width: 100%; height: min(564px,calc(var(--stage-height) - 68px)); object-fit: contain; }
.control-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .55rem; margin: .7rem 0 0; }
.help, figcaption { font-size: .84rem; color: var(--muted); }
.actions { display: flex; gap: .35rem; }
.actions button { min-width: 40px; padding: 0 .65rem; font-size: .86rem; }
.actions button:nth-child(-n+2) { font: 500 1.12rem/1 Arial, sans-serif; }
.actions button:enabled:hover, .notice button:hover { background: #eff4fa; }
.actions button:disabled { opacity: .45; cursor: default; }
.touch-help { display: none; }
.report { border: 1px solid var(--edge); border-radius: 4px; overflow: hidden; }
.report-message { margin: 0 0 .65rem; color: var(--muted); font-size: .88rem; }
.report img { display: block; width: 100%; height: auto; max-height: 72vh; object-fit: contain; background: white; }
figcaption { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: .7rem 1rem; border-top: 1px solid var(--edge); }
.report a, noscript a { color: var(--blue); font-weight: 600; text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (pointer: coarse) {
  .mouse-help { display: none; }
  .touch-help { display: inline; }
  .actions button { min-width: 44px; min-height: 44px; }
}
@media (max-width: 600px) {
  .exhibit { --stage-height: clamp(318px,48svh,450px); grid-template-columns: minmax(0,1fr) 78px; }
  .legend-link { padding: .55rem .16rem; gap: .5rem; }
  .legend-title { flex-direction: column; align-items: center; gap: 1px; }
  .legend-title h2 { font-size: .76rem; }
  .legend img { height: calc(var(--stage-height) - 57px); }
}
@media (max-width: 349px) {
  .exhibit { grid-template-columns: minmax(0,1fr) 66px; }
}
