/* The 44px hit target stays transparent; only the small marker covers the view. */
.mechanism-hotspot {
  --min-hotspot-opacity: 0;
  --max-hotspot-opacity: 1;
  appearance: none;
  display: inline-grid;
  place-items: center;
  position: relative;
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink, #092338);
  box-shadow: none;
  font: 500 10px/1.2 "Montserrat", Arial, sans-serif;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transform: translateY(-12px);
}
.mechanism-hotspot[data-mechanism="anchor"] { transform: translateY(-24px); }

.mechanism-hotspot[hidden] { display: none !important; }
.mechanism-hotspot:not([data-visible]):not(:focus-visible) { pointer-events: none !important; }
.mechanism-hotspot:focus-visible {
  --min-hotspot-opacity: 1;
  outline: none;
}
.mechanism-hotspot:focus-visible .mechanism-hotspot-dot { outline: 2px solid var(--gold, #f4bb40); outline-offset: 3px; }
.mechanism-hotspot:disabled { cursor: default; }
.mechanism-hotspot-dot {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 18px;
  height: 18px;
  border: 1px solid #ffffffed;
  border-radius: 50%;
  background: var(--ink, #092338);
  color: #fff;
  box-shadow: 0 1px 5px #09233833;
  font: 400 13px/1 Arial, sans-serif;
}
.mechanism-hotspot-dot::before { content: "+"; }
.mechanism-hotspot[aria-pressed="true"] .mechanism-hotspot-dot { background: var(--gold, #f4bb40); color: var(--ink, #092338); }
.mechanism-hotspot[aria-pressed="true"] .mechanism-hotspot-dot::before { content: "−"; }
.mechanism-hotspot[aria-busy="true"] .mechanism-hotspot-dot::before { content: "…"; }
.mechanism-hotspot-label {
  position: absolute;
  left: 50%;
  bottom: calc(100% - 3px);
  transform: translateX(-50%);
  padding: 5px 8px;
  border-radius: 5px;
  background: #fffffff5;
  box-shadow: 0 1px 6px #09233818;
  font-size: 9px;
  pointer-events: none;
  opacity: 0;
}
.mechanism-hotspot:focus-visible:not(:disabled) .mechanism-hotspot-label { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .mechanism-hotspot:hover:not(:disabled) .mechanism-hotspot-label { opacity: 1; }
}
/* Leave the mechanism unobscured for the whole movement, including touch hover. */
.mechanism-hotspot:disabled .mechanism-hotspot-label { opacity: 0; }
.mechanism-hotspot:disabled .mechanism-hotspot-dot { opacity: .6; }
.mechanism-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .mechanism-hotspot { transition: none !important; }
}
