/* Disclosures overlay the fixed exterior viewport, never resize the film. */
.scene-hotspots { position: absolute; inset: 0; z-index: 2; pointer-events: none; font-family: var(--mono); }
.scene-hotspots [hidden], .scene-hotspots[hidden] { display: none !important; }
.scene-hotspots *, .scene-hotspots *::before, .scene-hotspots *::after { box-sizing: border-box; }
.scene-hotspots [data-tone=mint] { --hotspot-color: var(--green); }
.scene-hotspots [data-tone=cyan] { --hotspot-color: var(--cyan); }
.scene-hotspots [data-tone=yellow] { --hotspot-color: var(--yellow); }
.scene-hotspots [data-tone=lilac] { --hotspot-color: var(--glyph-violet); }
.scene-hotspots [data-tone=coral] { --hotspot-color: var(--coral, #f59b8f); }
/* Visible point marks and labels are glyphs in the scene shader. These are hit targets. */
.scene-hotspot {
  position: absolute; inset: 0 auto auto 0; margin: 0; width: 44px; height: 44px;
  min-width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 0;
  color: transparent; background: transparent; font-size: 0; cursor: pointer;
  pointer-events: auto; touch-action: pan-y pinch-zoom;
}
.scene-hotspot:focus-visible { outline: 1px solid var(--hotspot-color); outline-offset: -8px; }
.scene-hotspots__panel {
  position: absolute; z-index: 1; right: var(--gutter); bottom: max(24px, env(safe-area-inset-bottom));
  display: grid; grid-template-columns: minmax(0, 1fr) 44px; column-gap: 8px;
  width: min(440px, calc(100% - 2 * var(--gutter))); padding: 12px 16px 4px;
  max-height: calc(100% - 120px); overflow-y: auto;
  border: 0; background: var(--bg); color: var(--paper);
  pointer-events: auto; touch-action: pan-y pinch-zoom;
}
.scene-hotspots__title {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.scene-hotspots__text {
  grid-area: 1 / 1; align-self: center; margin: 0; max-width: none;
  color: var(--paper); font: 400 16px/1.5 var(--mono); overflow-wrap: anywhere;
}
.scene-hotspots__links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; column-gap: 24px; }
.scene-hotspots__link {
  display: inline-flex; align-items: center; min-height: 44px; width: fit-content;
  max-width: 100%; color: var(--hotspot-color); font: 500 14px/1.5 var(--mono);
  text-decoration: underline; text-underline-offset: 4px; white-space: nowrap;
}
.scene-hotspots__close {
  grid-area: 1 / 2; display: grid; place-items: center; width: 44px; height: 44px;
  min-height: 44px; padding: 0; margin: 0; border: 0; border-radius: 0;
  color: var(--hotspot-color); background: transparent; cursor: pointer;
}
.scene-hotspots__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.scene-hotspots__link:focus-visible, .scene-hotspots__close:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.scene-hotspots__link:hover { text-decoration-thickness: 2px; }
.scene-hotspots__close:hover { background: var(--hotspot-color); color: var(--bg); }
@media (max-width: 700px), (max-height: 560px), (pointer: coarse) {
  .scene-hotspots__panel {
    left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right));
    bottom: max(86px, calc(env(safe-area-inset-bottom) + 80px));
    width: auto; padding: 8px 12px 0; column-gap: 4px;
  }
  .scene-hotspots__text { margin-top: 0; }
}
@media (forced-colors: active) {
  .scene-hotspot { color: ButtonText; font: 600 12px/1.2 var(--mono); width: max-content; max-width: 160px; border: 1px solid ButtonText; }
  .scene-hotspot[aria-expanded=true] { outline: 2px solid Highlight; }
}
