.guide article .copy .lead-image:has(.overlay-frame) {
  width: min(780px, calc(100vw - 36px));
  max-width: none;
  margin: 24px 0 34px 50%;
  transform: translateX(-50%);
}

@media (max-width: 760px) {
  .guide article .copy .lead-image:has(.overlay-frame) {
    width: 100%;
    margin: 22px 0 28px;
    transform: none;
  }
}

.overlay-frame {
  position: relative;
  background: #f8f3ea;
  border: 1px solid #cbbca7;
  border-radius: 14px;
  box-shadow: inset 0 1px 4px rgba(33, 27, 20, 0.06);
  overflow: hidden;
  cursor: crosshair;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.overlay-frame:hover {
  border-color: #b19e84;
  box-shadow: inset 0 1px 4px rgba(33, 27, 20, 0.07), 0 0 0 3px rgba(214, 60, 8, 0.06);
}

.overlay-frame .tracker-overlay-svg {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.lead-image:has(.overlay-frame) figcaption {
  margin-top: 10px;
  padding: 0 4px;
}

.tracker-overlay-svg .tg-item {
  cursor: pointer;
  transition: opacity 140ms ease;
}

.tracker-overlay-svg .tg-outline,
.tracker-overlay-svg .tg-detail,
.tracker-overlay-svg .tg-leader,
.tracker-overlay-svg .tg-dot,
.tracker-overlay-svg .tg-label-bg,
.tracker-overlay-svg .tg-bar-bg {
  transition: stroke 140ms ease, stroke-width 140ms ease, fill 140ms ease, fill-opacity 140ms ease, opacity 140ms ease;
}

.tracker-overlay-svg .tg-callout .tg-leader {
  pointer-events: none;
}

.tracker-overlay-svg .tg-shape .tg-outline,
.tracker-overlay-svg .tg-shape .tg-detail {
  pointer-events: all;
}

.tracker-overlay-svg .tg-hit {
  pointer-events: none;
}

.tracker-overlay-svg .tg-callout:focus,
.tracker-overlay-svg .tg-bar:focus {
  outline: none;
}

.tracker-overlay-svg .tg-callout:focus-visible .tg-label-bg,
.tracker-overlay-svg .tg-bar:focus-visible .tg-bar-bg {
  stroke: #d63c08;
  stroke-width: 1.6;
  fill: #f9ead8;
}

.tracker-overlay-svg.has-active .tg-shape:not(.is-active) {
  opacity: 0.22;
}

.tracker-overlay-svg.has-active .tg-shape:not(.is-active) .tg-outline,
.tracker-overlay-svg.has-active .tg-shape:not(.is-active) .tg-detail {
  stroke-dasharray: 3 3;
  fill-opacity: 0;
}

.tracker-overlay-svg.has-active .tg-shape.tg-ray:not(.is-active) .tg-outline {
  stroke-width: 1.6;
}

.tracker-overlay-svg.has-active .tg-callout:not(.is-active),
.tracker-overlay-svg.has-active .tg-bar:not(.is-active) {
  opacity: 0.36;
}

.tracker-overlay-svg.has-active .tg-item.is-active {
  opacity: 1;
}

.tracker-overlay-svg.has-active .tg-shape.is-active .tg-outline {
  stroke: #d63c08;
  stroke-width: 2.6;
  stroke-dasharray: none;
  fill: #f5e2c4;
  fill-opacity: 0.48;
}

.tracker-overlay-svg.has-active .tg-shape.tg-ray.is-active .tg-outline {
  fill-opacity: 0.94;
}

.tracker-overlay-svg.has-active .tg-shape.is-active .tg-detail {
  stroke: #d63c08;
  stroke-dasharray: none;
  stroke-opacity: 0.85;
}

.tracker-overlay-svg.has-active .tg-shape:not(.tg-ray).is-active rect.tg-detail {
  fill: #f5e2c4;
  fill-opacity: 0.48;
}

.tracker-overlay-svg.has-active .tg-callout.is-active .tg-leader {
  stroke: #d63c08;
  stroke-width: 2.2;
}

.tracker-overlay-svg.has-active .tg-callout.is-active .tg-dot {
  fill: #d63c08;
}

.tracker-overlay-svg.has-active .tg-callout.is-active .tg-label-bg {
  fill: #f9ead8;
  stroke: #d63c08;
  stroke-width: 1.3;
}

.tracker-overlay-svg.has-active .tg-callout.is-active .tg-label-name,
.tracker-overlay-svg.has-active .tg-callout.is-active .tg-label-val {
  fill: #b8320a;
}

.tracker-overlay-svg.has-active .tg-bar.is-active .tg-bar-bg {
  fill: #f9ead8;
  stroke: #d63c08;
  stroke-width: 1.3;
}
