/* A single image plane keeps the four outlines aligned at either crop. */
.workshop-map {
  --map-inset:clamp(7px,1.5vw,18px);
  position:relative;
  isolation:isolate;
  scroll-margin-top:72px;
  aspect-ratio:2.6;
  overflow:hidden;
  border-radius:var(--r-2);
  touch-action:pan-y pinch-zoom;
}
.workshop-map__art {
  position:absolute;
  left:0;
  width:100%;
  aspect-ratio:16/9;
  top:56%;
  transform:translateY(-56%);
}
.workshop-map__photo,.workshop-map__links {
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
}
.workshop-map__photo { pointer-events:none; user-select:none }
.workshop-map__links { overflow:visible; pointer-events:none; touch-action:pan-y pinch-zoom }
.workshop-map__links a { outline:none; -webkit-tap-highlight-color:transparent; cursor:pointer; touch-action:pan-y pinch-zoom }
.workshop-map__hit {
  pointer-events:fill;
  fill:var(--accent);
  fill-opacity:0;
  stroke:var(--accent);
  stroke-opacity:0;
  stroke-width:2.5;
  stroke-linejoin:round;
  transition:fill-opacity .16s ease,stroke-opacity .16s ease;
}
.workshop-map__trace {
  pointer-events:none;
  stroke:#fff2d6;
  stroke-width:1.1;
  stroke-linejoin:round;
  stroke-linecap:round;
  stroke-dasharray:1;
  stroke-dashoffset:1;
  opacity:0;
}
.workshop-map__marker { pointer-events:none; transition:opacity .16s ease }
.workshop-map__ring { fill:var(--ink); fill-opacity:.65; stroke:var(--paper); stroke-opacity:.95; stroke-width:1.25 }
.workshop-map__point { fill:var(--paper) }
.workshop-map a[data-selected] .workshop-map__hit,
.workshop-map:not([data-ready]) a:is(:hover,:focus-visible) .workshop-map__hit {
  fill-opacity:.14;
  stroke-opacity:1;
  filter:drop-shadow(0 0 3px #fc6c02);
}
.workshop-map a:focus-visible .workshop-map__hit { stroke:var(--paper); stroke-opacity:1; stroke-width:3 }
.workshop-map a[data-selected] .workshop-map__trace {
  animation:workshop-trace .32s cubic-bezier(.22,.75,.25,1) both;
}
@keyframes workshop-trace { from { opacity:.3; stroke-dashoffset:1 } to { opacity:.95; stroke-dashoffset:0 } }
.workshop-map a[data-selected] .workshop-map__marker { opacity:0 }
.workshop-map__tip {
  --tip-width:clamp(146px,22vw,200px);
  position:absolute;
  z-index:1;
  top:var(--map-inset);
  left:clamp(var(--map-inset),calc(var(--tip-x,50%) - var(--tip-width) / 2),calc(100% - var(--tip-width) - var(--map-inset)));
  box-sizing:border-box;
  width:var(--tip-width);
  padding:10px 13px;
  border-radius:8px;
  background:var(--paper);
  color:var(--ink);
  box-shadow:0 4px 16px rgb(2 27 54 / 23%);
  pointer-events:none;
  opacity:0;
  visibility:hidden;
  transform:translateY(-4px);
  transition:left .15s ease-out, opacity .14s ease, transform .14s ease, visibility 0s .15s;
}
.workshop-map[data-active] .workshop-map__tip { opacity:1; visibility:visible; transform:none; transition-delay:0s }
.workshop-map__tip img { display:block; width:auto; height:clamp(23px,2.2vw,32px); max-width:100%; margin-bottom:5px }
.workshop-map__tip span { display:block; font:600 clamp(.78rem,1.04vw,.95rem)/1.22 var(--f-text) }
@media(max-width:700px) {
  .workshop-map { aspect-ratio:16/9 }
  .workshop-map__ring { r:18 }
  .workshop-map__point { r:6 }
  .workshop-map__tip { padding:6px 9px }
}
@media(prefers-reduced-motion:reduce) {
  .workshop-map__hit,.workshop-map__tip,.workshop-map__marker { transition:none }
  .workshop-map__tip { transform:none }
  .workshop-map a[data-selected] .workshop-map__trace { animation:none; opacity:1; stroke-dashoffset:0 }
}
@media(forced-colors:active) {
  .workshop-map a:focus-visible .workshop-map__hit { stroke:Highlight; stroke-width:4; stroke-opacity:1 }
}
