/* iQ Hotspots: component styles. Light design only. Brand color via --iq-hs-brand. */
iq-hotspots, iq-hotspot-image, iq-video-funnel, .iq-hs-page {
  --iq-hs-brand: #1853B9;
  --iq-hs-brand-dark: #123E8C;
  --iq-hs-brand-tint: #E8EEFA;
  --iq-hs-brand-rgb: 24, 83, 185;
  --iq-hs-active-pin: #111827;
  --iq-hs-surface: #FFFFFF;
  --iq-hs-bg-subtle: #F7F9FC;
  --iq-hs-bg-muted: #EEF2F6;
  --iq-hs-line: #E2E8F0;
  --iq-hs-line-strong: #CBD5E1;
  --iq-hs-text: #111827;
  --iq-hs-muted: #374151;
  --iq-hs-subtle: #4B5563;
  --iq-hs-radius: 12px;
}

iq-hotspots, iq-hotspot-image {
  display: block;
  color: var(--iq-hs-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

iq-hotspots *, iq-hotspot-image * {
  box-sizing: border-box;
}

/* Never underline links inside headings or cards */
h1 a, h2 a, h3 a, h4 a,
.iq-hs-page h1 a, .iq-hs-page h2 a, .iq-hs-page h3 a, .iq-hs-page h4 a,
.set-block h2 a, .set-block h3 a, .set-block h4 a,
.iq-hs-timeline-item a, .iq-hs-proj-page-link {
  text-decoration: none !important;
  transition: color 0.18s ease;
}

h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover,
.set-block h2 a:hover, .set-block h3 a:hover {
  color: var(--iq-hs-brand, #1853B9);
  text-decoration: none !important;
}

/* ---------- Top Toolbar: Project Selector + View Mode Switcher ---------- */
.iq-hs-shell, .iq-hs-ui {
  margin: 0 0 32px;
}

.iq-hs-toolbar,
.iq-hs-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  overflow: visible;
  background: var(--iq-hs-surface);
  border: 1px solid var(--iq-hs-line);
  border-radius: var(--iq-hs-radius);
  padding: 12px 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.iq-hs-proj-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1 1 auto;
  min-width: 0;
}

.iq-hs-proj-tab,
.iq-hs-proj-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  background: var(--iq-hs-bg-subtle);
  color: var(--iq-hs-text);
  border: 1.5px solid var(--iq-hs-line);
  border-radius: 8px;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.iq-hs-proj-tab:hover,
.iq-hs-proj-btn:hover {
  border-color: var(--iq-hs-brand);
  background: #FFFFFF;
}

.iq-hs-proj-tab.is-active,
.iq-hs-proj-btn[aria-selected="true"] {
  background: var(--iq-hs-brand);
  color: #FFFFFF;
  border-color: var(--iq-hs-brand);
  box-shadow: 0 4px 12px rgba(24, 83, 185, 0.22);
}

.iq-hs-proj-tab-cat {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--iq-hs-subtle);
}

.iq-hs-proj-tab.is-active .iq-hs-proj-tab-cat {
  color: rgba(255, 255, 255, 0.88);
}

.iq-hs-proj-tab-name {
  font-size: 18px;
  font-weight: 700;
}

.iq-hs-proj-tab-count,
.iq-hs-proj-count {
  font-size: 14px;
  font-weight: 600;
  color: var(--iq-hs-muted);
}

.iq-hs-proj-tab.is-active .iq-hs-proj-tab-count {
  color: rgba(255, 255, 255, 0.92);
}

/* Toolbar right controls: Open First Toggle + View Mode Switcher + Project Link */
.iq-hs-toolbar-controls,
.iq-hs-view-bar,
.iq-hs-tools-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex: 0 0 auto;
  max-width: 100%;
  overflow: visible;
}

.iq-hs-open-first-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--iq-hs-bg-subtle);
  color: var(--iq-hs-muted);
  border: 1.5px solid var(--iq-hs-line-strong);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.iq-hs-open-first-toggle strong {
  font-weight: 800;
  color: var(--iq-hs-text);
}

.iq-hs-open-first-toggle:hover {
  border-color: var(--iq-hs-brand);
  background: #FFFFFF;
}

.iq-hs-open-first-toggle.is-active {
  background: var(--iq-hs-brand-tint);
  border-color: var(--iq-hs-brand);
  color: var(--iq-hs-brand);
}

.iq-hs-open-first-toggle.is-active strong {
  color: var(--iq-hs-brand);
}

.iq-hs-view-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--iq-hs-bg-subtle);
  border: 1.5px solid var(--iq-hs-line-strong);
  border-radius: 8px;
  padding: 3px 5px;
}

.iq-hs-view-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--iq-hs-muted);
  padding: 0 8px;
  white-space: nowrap;
}

.iq-hs-view-btn {
  background: transparent;
  color: var(--iq-hs-text);
  border: 0;
  border-radius: 6px;
  padding: 6px 13px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.iq-hs-view-btn:hover {
  background: #FFFFFF;
  color: var(--iq-hs-brand);
}

.iq-hs-view-btn.is-active {
  background: var(--iq-hs-brand);
  color: #FFFFFF;
}

.iq-hs-proj-page-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--iq-hs-brand);
  background: var(--iq-hs-brand-tint);
  padding: 8px 14px;
  border-radius: 8px;
  white-space: nowrap;
  text-decoration: none !important;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.iq-hs-proj-page-link:hover {
  background: var(--iq-hs-brand);
  color: #FFFFFF;
}

/* Homepage only: small link to the video funnel mockup */
.iq-hs-funnel-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  background: #FFFFFF;
  border: 1px solid var(--iq-hs-line-strong);
  padding: 7px 13px;
  border-radius: 8px;
  white-space: nowrap;
  text-decoration: none !important;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.iq-hs-funnel-link:hover,
.iq-hs-funnel-link:focus-visible {
  border-color: var(--iq-hs-brand);
  color: var(--iq-hs-brand);
}

/* ---------- Photo Strip ---------- */
.iq-hs-subbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.iq-hs-photo-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.iq-hs-photo-thumb,
.iq-hs-photo-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 13px 6px 7px;
  background: var(--iq-hs-surface);
  border: 1.5px solid var(--iq-hs-line);
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.iq-hs-photo-thumb:hover,
.iq-hs-photo-tab:hover {
  border-color: var(--iq-hs-brand);
  background: #FFFFFF;
  transform: translateY(-1px);
}

.iq-hs-photo-thumb.is-active,
.iq-hs-photo-tab[aria-selected="true"] {
  border-color: var(--iq-hs-brand);
  background: var(--iq-hs-brand-tint);
}

.iq-hs-photo-thumb img,
.iq-hs-photo-tab img {
  width: 52px;
  height: 36px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  border: 1px solid var(--iq-hs-line);
}

.iq-hs-photo-thumb-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.iq-hs-photo-thumb-step {
  font-size: 12px;
  font-weight: 700;
  color: var(--iq-hs-brand);
  text-transform: uppercase;
}

.iq-hs-photo-thumb-info strong {
  font-size: 18px;
  color: var(--iq-hs-text);
  line-height: 1.25;
}

.iq-hs-photo-thumb-info span {
  font-size: 14px;
  color: var(--iq-hs-subtle);
}

/* ---------- Full-Width Interactive Workspace ---------- */
.iq-hs-workspace {
  display: block;
  width: 100%;
}

.iq-hs-stage-col {
  width: 100%;
}

/* ---------- <iq-hotspot-image> Stage + Photo Frame + Dedicated Image Canvas + Drawer Layout ---------- */
iq-hotspot-image {
  position: relative;
  display: block;
  width: 100%;
}

.iq-hs-stage-wrap {
  background: var(--iq-hs-surface);
  border: 1px solid var(--iq-hs-line);
  border-radius: var(--iq-hs-radius);
  overflow: visible;
  box-shadow: 0 6px 20px -4px rgba(15, 23, 42, 0.06);
}

.iq-hs-stage-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.iq-hs-stage-layout.has-open-drawer {
  grid-template-columns: minmax(0, 1fr) 430px;
  align-items: start;
}

.iq-hs-stage {
  position: relative;
  width: 100%;
  height: auto;
  align-self: start;
  background: var(--iq-hs-bg-muted);
  line-height: 0;
  user-select: none;
  border-radius: var(--iq-hs-radius) var(--iq-hs-radius) 0 0;
}

.iq-hs-photo-frame {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  align-self: start;
  flex: 0 0 auto;
  line-height: 0;
}

/* Dedicated inner wrapper around ONLY <img> and .iq-hs-pins-layer so pin coordinates 100% match rendered <img> height */
.iq-hs-img-canvas {
  position: relative;
  display: block;
  width: 100%;
  line-height: 0;
  border-radius: var(--iq-hs-radius) var(--iq-hs-radius) 0 0;
  overflow: visible;
}

.iq-hs-img-canvas > img.iq-hs-main-img,
.iq-hs-photo-frame > img.iq-hs-main-img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  border-radius: var(--iq-hs-radius) var(--iq-hs-radius) 0 0;
}

.iq-hs-pins-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 15;
}

/* ---------- Round Push Pins: glossy ball head + steel needle, needle TIP anchored at the exact (x%, y%) ----------
   The anchor is a zero-size point at the pin's coordinates. The needle is rotated around that point by
   --iq-pin-rot, and the ball head sits at (ux, uy) * --iq-pin-d from the tip, so the ball never covers
   the detail being pointed at. Inline vars per pin: --iq-pin-rot, --iq-pin-ux, --iq-pin-uy,
   --iq-pin-color, --iq-pin-rgb, --iq-pin-ink. No drop shadows. */
.iq-hs-pin-anchor,
.iq-hs-pin-wrap {
  --iq-pin-r: 16px;          /* ball radius (32px ball) */
  --iq-pin-d: 40px;          /* tip -> ball center (24px visible needle) */
  --iq-pin-needle-w: 3px;
  position: absolute;
  width: 0;
  height: 0;
  z-index: 16;
  line-height: 1.3;
  pointer-events: none;
  transform-origin: 0 0;
}

.iq-hs-pin-anchor.is-active,
.iq-hs-pin-wrap.active {
  z-index: 20;
}

.iq-hs-pin-anchor:hover,
.iq-hs-pin-anchor.is-hovered,
.iq-hs-pin-anchor:focus-within,
.iq-hs-pin-wrap:hover {
  z-index: 22;
}

/* Needle: transparent 14px hit strip rotated around the tip, with a thin silver shaft inside */
.iq-hs-pin-stem {
  position: absolute;
  left: -7px;
  bottom: 0;
  width: 14px;
  height: calc(var(--iq-pin-d) - var(--iq-pin-r) + 2px);
  transform-origin: 50% 100%;
  transform: rotate(var(--iq-pin-rot, 0deg));
  pointer-events: auto;
  cursor: pointer;
}

.iq-hs-pin-needle {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: var(--iq-pin-needle-w);
  height: 100%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #4B5563 0%, #D1D5DB 34%, #FFFFFF 48%, #9CA3AF 70%, #374151 100%);
  clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%);
  pointer-events: none;
}

.iq-hs-pin-head {
  position: absolute;
  left: calc(var(--iq-pin-ux, 0) * var(--iq-pin-d));
  top: calc(var(--iq-pin-uy, -1) * var(--iq-pin-d));
  width: 0;
  height: 0;
  pointer-events: none;
}

@keyframes iqHsBallPulse {
  0% { transform: scale(1); }
  45% { transform: scale(1.13); }
  100% { transform: scale(1); }
}

/* Ball head (the clickable button). Mostly flat color: a faint soft highlight + slightly deeper edge for roundness */
.iq-hs-pin {
  position: absolute;
  left: calc(-1 * var(--iq-pin-r));
  top: calc(-1 * var(--iq-pin-r));
  width: calc(2 * var(--iq-pin-r));
  height: calc(2 * var(--iq-pin-r));
  box-sizing: border-box;
  border-radius: 50%;
  border: 0;
  outline: none;
  padding: 0;
  margin: 0;
  background:
    radial-gradient(circle at 36% 30%, rgba(255, 255, 255, 0.16) 0, rgba(255, 255, 255, 0) 58%),
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0) 68%, rgba(0, 0, 0, 0.1) 100%),
    var(--iq-pin-color, #1853B9);
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.2);
  color: var(--iq-pin-ink, #FFFFFF);
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  pointer-events: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: background-color 0.18s ease, box-shadow 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.iq-hs-pin-anchor.is-light-ball .iq-hs-pin {
  text-shadow: none;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.32);
}

/* Translucent: ~55% fill, light backdrop blur, crisp white rim, number lifted with a text-shadow */
.iq-hs-pin-anchor.iq-hs-pin-translucent .iq-hs-pin {
  background:
    radial-gradient(circle at 36% 30%, rgba(255, 255, 255, 0.14) 0, rgba(255, 255, 255, 0) 58%),
    rgba(var(--iq-pin-rgb, 24, 83, 185), 0.55);
  -webkit-backdrop-filter: blur(3px) saturate(1.15);
  backdrop-filter: blur(3px) saturate(1.15);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.96);
  color: #FFFFFF;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8), 0 0 6px rgba(0, 0, 0, 0.5);
}

.iq-hs-pin-anchor.iq-hs-pin-translucent.is-light-ball .iq-hs-pin {
  color: #111827;
  text-shadow: 0 0 3px rgba(255, 255, 255, 0.95), 0 0 7px rgba(255, 255, 255, 0.8);
}

.iq-hs-pin:focus-visible {
  outline: 2px solid #111827;
  outline-offset: 3px;
}

/* Hover / focus: gentle pulse on the ball only (needle stays put) */
.iq-hs-pin-anchor:hover .iq-hs-pin,
.iq-hs-pin-anchor.is-hovered .iq-hs-pin,
.iq-hs-pin:focus-visible {
  animation: iqHsBallPulse 1.3s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

/* Active pin: solid black ball with a white ring; needle stays visible */
.iq-hs-pin[aria-expanded="true"],
.iq-hs-pin.is-active,
.iq-hs-pin.active,
.iq-hs-pin-anchor.iq-hs-pin-translucent .iq-hs-pin.is-active,
.iq-hs-pin-anchor.is-light-ball .iq-hs-pin.is-active {
  background:
    radial-gradient(circle at 36% 30%, rgba(255, 255, 255, 0.1) 0, rgba(255, 255, 255, 0) 58%),
    #111827;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  color: #FFFFFF;
  text-shadow: none;
  box-shadow: 0 0 0 2.5px #FFFFFF, 0 0 0 4px #111827;
}

/* ---------- Map pins (pin_shape: map): classic teardrop location marker ----------
   Same zero-size anchor at (x%, y%). The round head (the .iq-hs-pin button, number centered) sits straight
   above the tip at --iq-pin-d = 1.875 * r; the tail (.iq-hs-pin-tail, the clickable stem) is a clip-path
   polygon whose bottom point is EXACTLY on (x%, y%). Always upright: angle is ignored. Near the top edge
   the marker is rotated 180deg (iq-hs-pin-angle-down: head below, tip still on the point) so it never clips.
   Layers: white outline ring (active only) < head < tail < callout. Pulse scales only the head. */
.iq-hs-pin-anchor.iq-hs-pin-shape-map {
  --iq-pin-d: calc(var(--iq-pin-r) * 1.875);
}

.iq-hs-pin-shape-map .iq-hs-pin-tail,
.iq-hs-pin-shape-map .iq-hs-pin-ring {
  position: absolute;
  bottom: 0;
  height: var(--iq-pin-d);
  transform-origin: 50% 100%;
  transform: rotate(var(--iq-pin-rot, 0deg));
}

.iq-hs-pin-shape-map .iq-hs-pin-tail {
  left: calc(-1 * var(--iq-pin-r));
  width: calc(2 * var(--iq-pin-r));
  z-index: 2;
  background: var(--iq-pin-color, #1853B9);
  /* Tangent lines from the tip to the head circle, closed just inside the head (no seam) */
  clip-path: polygon(7.70% 28.44%, 50% 100%, 92.30% 28.44%, 89.76% 26.74%, 82.25% 36.47%, 72.70% 43.90%, 61.72% 48.55%, 50% 50.13%, 38.28% 48.55%, 27.30% 43.90%, 17.75% 36.47%, 10.24% 26.74%);
  transition: background-color 0.18s ease;
}

.iq-hs-pin-shape-map .iq-hs-pin-ring {
  left: calc(-1.16 * var(--iq-pin-r));
  width: calc(2.32 * var(--iq-pin-r));
  z-index: 0;
  background: #FFFFFF;
  clip-path: polygon(10.72% 38.27%, 50% 100%, 89.28% 38.27%, 50% 0%);
  pointer-events: none;
  display: none;
}

.iq-hs-pin-shape-map .iq-hs-pin {
  z-index: 1;
  background:
    radial-gradient(circle at 36% 30%, rgba(255, 255, 255, 0.14) 0, rgba(255, 255, 255, 0) 58%),
    var(--iq-pin-color, #1853B9);
  box-shadow: none;
}

.iq-hs-pin-shape-map .iq-hs-pin-callout {
  z-index: 3;
}

/* Flipped near the top edge: keep the number upright and centered in the head */
.iq-hs-pin-shape-map.iq-hs-pin-angle-down .iq-hs-pin {
  transform-origin: 50% 50%;
}

/* Light markers (white, yellow): thin dark outline so they read on bright photos */
.iq-hs-pin-shape-map.is-light-ball .iq-hs-pin-ring {
  display: block;
  left: calc(-1.07 * var(--iq-pin-r));
  width: calc(2.14 * var(--iq-pin-r));
  background: rgba(17, 24, 39, 0.38);
  clip-path: polygon(8.94% 32.57%, 50% 100%, 91.06% 32.57%, 50% 0%);
}
.iq-hs-pin-shape-map.is-light-ball .iq-hs-pin {
  box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.38);
}

/* Translucent map pin: semi-transparent fill + backdrop blur on head and tail; tail closes exactly on the
   head edge so the two layers never overlap (no darker band). Number keeps a crisp text-shadow. */
.iq-hs-pin-shape-map.iq-hs-pin-translucent .iq-hs-pin,
.iq-hs-pin-shape-map.iq-hs-pin-translucent .iq-hs-pin-tail {
  background: rgba(var(--iq-pin-rgb, 24, 83, 185), 0.58);
  -webkit-backdrop-filter: blur(3px) saturate(1.15);
  backdrop-filter: blur(3px) saturate(1.15);
}
.iq-hs-pin-shape-map.iq-hs-pin-translucent .iq-hs-pin {
  background:
    radial-gradient(circle at 36% 30%, rgba(255, 255, 255, 0.12) 0, rgba(255, 255, 255, 0) 58%),
    rgba(var(--iq-pin-rgb, 24, 83, 185), 0.58);
  box-shadow: none;
}
.iq-hs-pin-shape-map.iq-hs-pin-translucent .iq-hs-pin-tail {
  clip-path: polygon(7.70% 28.44%, 50% 100%, 92.30% 28.44%, 84.31% 38.80%, 74.15% 46.70%, 62.47% 51.65%, 50% 53.33%, 37.53% 51.65%, 25.85% 46.70%, 15.69% 38.80%);
}
.iq-hs-pin-shape-map.iq-hs-pin-translucent.is-light-ball .iq-hs-pin-ring {
  display: none;
}

/* Active map pin: black teardrop with a white outline (head ring + tapered white edge down to the tip) */
.iq-hs-pin-anchor.iq-hs-pin-shape-map.is-active .iq-hs-pin-ring,
.iq-hs-pin-shape-map.is-active.is-light-ball .iq-hs-pin-ring {
  display: block;
  left: calc(-1.16 * var(--iq-pin-r));
  width: calc(2.32 * var(--iq-pin-r));
  background: #FFFFFF;
  clip-path: polygon(10.72% 38.27%, 50% 100%, 89.28% 38.27%, 50% 0%);
}
.iq-hs-pin-anchor.iq-hs-pin-shape-map.is-active .iq-hs-pin-tail {
  background: #111827;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  clip-path: polygon(7.70% 28.44%, 50% 100%, 92.30% 28.44%, 89.76% 26.74%, 82.25% 36.47%, 72.70% 43.90%, 61.72% 48.55%, 50% 50.13%, 38.28% 48.55%, 27.30% 43.90%, 17.75% 36.47%, 10.24% 26.74%);
}
.iq-hs-pin-shape-map .iq-hs-pin.is-active,
.iq-hs-pin-shape-map .iq-hs-pin[aria-expanded="true"],
.iq-hs-pin-shape-map.iq-hs-pin-translucent .iq-hs-pin.is-active,
.iq-hs-pin-shape-map.is-light-ball .iq-hs-pin.is-active {
  background:
    radial-gradient(circle at 36% 30%, rgba(255, 255, 255, 0.1) 0, rgba(255, 255, 255, 0) 58%),
    #111827;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  color: #FFFFFF;
  text-shadow: none;
  box-shadow: 0 0 0 calc(0.16 * var(--iq-pin-r)) #FFFFFF;
}

/* ---------- Hover Title Callout (solid black) above the BALL, with a pointer triangle ---------- */
.iq-hs-pin-callout {
  position: absolute;
  bottom: calc(var(--iq-pin-r) + 12px);
  left: 0;
  transform: translateX(-50%) translateY(4px);
  background: #111827;
  color: #FFFFFF;
  border: 1.5px solid #FFFFFF;
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.18s;
}

/* Down-angled pins (ball below the point): callout opens under the ball so it never hides the tip */
.iq-hs-pin-callout.is-below {
  bottom: auto;
  top: calc(var(--iq-pin-r) + 12px);
  transform: translateX(-50%) translateY(-4px);
}

.iq-hs-callout-text {
  color: #FFFFFF;
  font-weight: 700;
}

.iq-hs-callout-badge {
  background: #111827;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.75);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
}

.iq-hs-pin-callout::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px 8px 0 8px;
  border-style: solid;
  border-color: #FFFFFF transparent transparent transparent;
}

.iq-hs-pin-callout::after {
  content: "";
  position: absolute;
  top: calc(100% - 2px);
  left: 50%;
  transform: translateX(-50%);
  border-width: 7px 7px 0 7px;
  border-style: solid;
  border-color: #111827 transparent transparent transparent;
}

.iq-hs-pin-callout.is-below::before {
  top: auto;
  bottom: 100%;
  border-width: 0 8px 8px 8px;
  border-color: transparent transparent #FFFFFF transparent;
}

.iq-hs-pin-callout.is-below::after {
  top: auto;
  bottom: calc(100% - 2px);
  border-width: 0 7px 7px 7px;
  border-color: transparent transparent #111827 transparent;
}

.iq-hs-pin-anchor:hover .iq-hs-pin-callout,
.iq-hs-pin-anchor.is-hovered .iq-hs-pin-callout,
.iq-hs-pin-anchor:focus-within .iq-hs-pin-callout,
.iq-hs-pin-wrap:hover .iq-hs-pin-callout {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Pin-Anchored Floating Tooltip (.iq-hs-popover) & Side Drawer (.iq-hs-drawer) ---------- */
@keyframes iqHsPopoverFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.iq-hs-popover {
  position: absolute;
  width: 420px;
  max-width: min(420px, 48vw);
  max-height: calc(100% - 24px);
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 12px;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.24), 0 6px 16px rgba(15, 23, 42, 0.12);
  z-index: 50;
  display: flex;
  flex-direction: column;
  line-height: 1.45;
  overflow: visible;
  animation: iqHsPopoverFade 0.18s ease-out;
}

.iq-hs-popover[hidden] {
  display: none !important;
}

/* Pointer arrow connecting the tooltip directly to the active circular pin */
.iq-hs-popover-arrow {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #FFFFFF;
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
  z-index: 1;
}

.iq-hs-popover.side-right .iq-hs-popover-arrow {
  left: -8px;
  border-left: 1px solid #CBD5E1;
  border-bottom: 1px solid #CBD5E1;
}

.iq-hs-popover.side-left .iq-hs-popover-arrow {
  right: -8px;
  border-right: 1px solid #CBD5E1;
  border-top: 1px solid #CBD5E1;
}

@keyframes iqHsDrawerSlide {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: translateX(0); }
}

.iq-hs-drawer {
  background: #FFFFFF;
  border-left: 1.5px solid var(--iq-hs-line-strong);
  display: flex;
  flex-direction: column;
  line-height: 1.45;
  align-self: stretch;
  max-height: 720px;
  overflow: hidden;
  animation: iqHsDrawerSlide 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Clean White Header Bar + Full Readable Title (No Truncation) + Subtle Icon Actions */
.iq-hs-pop-header,
.iq-hs-popover-head,
.iq-hs-drawer-header,
.iq-hs-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  background: #FFFFFF;
  color: #0F172A;
  padding: 14px 16px 10px 16px;
  border-bottom: 1px solid #F1F5F9;
  border-radius: 12px 12px 0 0;
  position: relative;
  z-index: 2;
}

.iq-hs-drawer-header,
.iq-hs-drawer-head {
  border-radius: 0;
}

.iq-hs-pop-title,
.iq-hs-popover-title,
.iq-hs-drawer-title {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #0F172A;
  white-space: normal;
  overflow: visible;
  word-break: break-word;
  flex: 1;
  min-width: 0;
}

.iq-hs-pop-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: none;
}

.iq-hs-copy-link-btn,
.iq-hs-pop-close,
.iq-hs-close-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #64748B;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex: none;
  font-size: 18px;
  line-height: 1;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.iq-hs-copy-link-btn:hover,
.iq-hs-pop-close:hover,
.iq-hs-close-btn:hover {
  background: #F1F5F9;
  color: #0F172A;
}

.iq-hs-copy-link-btn.is-copied {
  background: #F1F5F9;
  color: #0F172A;
}

/* Popover / Drawer Scrollable Body */
.iq-hs-pop-body {
  padding: 12px 16px;
  overflow-y: auto;
  flex: 1;
  background: #FFFFFF;
  position: relative;
  z-index: 2;
}

/* ---------- Separate Photos & Rich Media Inside Tooltip / Drawer ---------- */
.iq-hs-pop-media {
  margin-bottom: 10px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--iq-hs-line);
  background: var(--iq-hs-bg-subtle);
}

.iq-hs-pop-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  background: var(--iq-hs-line);
}

.iq-hs-pop-img-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.iq-hs-pop-img-btn img {
  width: 100%;
  height: 148px;
  object-fit: cover;
  display: block;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.iq-hs-pop-gallery.is-multi .iq-hs-pop-img-btn img {
  height: 112px;
}

.iq-hs-drawer .iq-hs-pop-img-btn img {
  height: 185px;
}

.iq-hs-drawer .iq-hs-pop-gallery.is-multi .iq-hs-pop-img-btn img {
  height: 130px;
}

.iq-hs-pop-img-btn:hover img {
  transform: scale(1.04);
}

.iq-hs-pop-video {
  width: 100%;
  height: 152px;
  object-fit: cover;
  display: block;
  background: var(--iq-hs-bg-muted);
}

.iq-hs-media-caption {
  margin: 0;
  padding: 8px 12px;
  font-size: 18px;
  color: var(--iq-hs-subtle);
  background: var(--iq-hs-bg-subtle);
  border-top: 1px solid var(--iq-hs-line);
  line-height: 1.45;
}

.iq-hs-pop-text p {
  margin: 0 0 12px;
  font-size: 20px;
  color: var(--iq-hs-text);
  line-height: 1.55;
}

.iq-hs-pop-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

/* Inline Pin-to-Pin Text Link with Vertically Centered Right Arrow Icon */
.iq-hs-cta-link,
.iq-hs-pop-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: none;
  padding: 4px 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--iq-hs-brand, #1853B9) !important;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none !important;
  cursor: pointer;
  transition: color 0.15s ease;
}

.iq-hs-cta-link:hover,
.iq-hs-pop-cta:hover {
  color: #0F172A !important;
  background: transparent;
  text-decoration: none !important;
}

.iq-hs-cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.iq-hs-cta-link:hover .iq-hs-cta-icon,
.iq-hs-pop-cta:hover .iq-hs-cta-icon {
  transform: translateX(2px);
}

/* ---------- Subtle Caret Icons + Pagination Dots Footer INSIDE Tooltip & Drawer ---------- */
.iq-hs-pop-footer,
.iq-hs-popover-foot,
.iq-hs-drawer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 14px;
  background: #F8FAFC;
  border-top: 1px solid #F1F5F9;
  border-radius: 0 0 12px 12px;
  position: relative;
  z-index: 2;
}

.iq-hs-drawer .iq-hs-pop-footer,
.iq-hs-drawer-foot {
  border-radius: 0;
}

.iq-hs-nav-btn,
.iq-hs-nav-link {
  background: transparent;
  border: none;
  box-shadow: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  color: #64748B;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.iq-hs-nav-btn:hover,
.iq-hs-nav-link:hover {
  color: #0F172A;
  background: rgba(15, 23, 42, 0.06);
}

.iq-hs-dots,
.iq-hs-pop-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.iq-hs-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #CBD5E1;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.iq-hs-dot:hover {
  background: #94A3B8;
  transform: scale(1.15);
}

.iq-hs-dot.is-active {
  width: 20px;
  height: 7px;
  border-radius: 999px;
  background: #111827;
}

/* ---------- Stage Footer Caption Bar ---------- */
.iq-hs-caption-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: var(--iq-hs-surface);
  border-top: 1px solid var(--iq-hs-line);
  border-radius: 0 0 var(--iq-hs-radius) var(--iq-hs-radius);
  font-size: 18px;
  line-height: 1.5;
  color: var(--iq-hs-muted);
  flex-wrap: wrap;
}

.iq-hs-stage-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------- Modern Vertical "Timeline" Pin Breakdown Widget ---------- */
.iq-hs-breakdown-section {
  margin-top: 24px;
}

.iq-hs-breakdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.iq-hs-breakdown-head h3 {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 800;
  color: var(--iq-hs-text);
}

.iq-hs-breakdown-head p {
  margin: 0;
  font-size: 18px;
  color: var(--iq-hs-subtle);
}

.iq-hs-pin-total-badge {
  background: var(--iq-hs-brand-tint);
  color: var(--iq-hs-brand);
  font-size: 18px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.iq-hs-timeline,
ol.iq-hs-pin-index {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

/* Vertical timeline line running behind the circular thumbnails */
.iq-hs-timeline::before,
ol.iq-hs-pin-index::before {
  content: "";
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 68px;
  width: 2px;
  background: linear-gradient(180deg, var(--iq-hs-brand) 0%, #CBD5E1 100%);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.iq-hs-timeline-item,
li.iq-hs-pin-card {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 18px 24px;
  background: #FFFFFF;
  border: 1.5px solid var(--iq-hs-line);
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.iq-hs-timeline-item:hover,
li.iq-hs-pin-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.09);
  border-color: var(--iq-hs-line-strong);
}

.iq-hs-timeline-item.is-active,
li.iq-hs-pin-card.is-active {
  border-color: var(--iq-hs-brand);
  background: #F8FAFF;
  box-shadow: 0 10px 26px -6px rgba(24, 83, 185, 0.14);
}

.iq-hs-timeline-left {
  position: relative;
  flex-shrink: 0;
  width: 88px;
  height: 88px;
}

.iq-hs-timeline-circle {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #FFFFFF;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.14), 0 0 0 1.5px var(--iq-hs-line-strong);
  background: var(--iq-hs-bg-muted);
  position: relative;
}

.iq-hs-timeline-circle img.iq-hs-pin-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  border: 0;
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.iq-hs-timeline-left .iq-hs-pin-num-badge {
  position: absolute;
  right: -4px;
  bottom: -2px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 30%, rgba(255, 255, 255, 0.16) 0, rgba(255, 255, 255, 0) 58%),
    var(--iq-pin-color, var(--iq-hs-brand, #1853B9));
  color: var(--iq-pin-ink, #FFFFFF);
  border: 0;
  box-shadow: 0 0 0 3px #FFFFFF, inset 0 0 0 1px rgba(17, 24, 39, 0.2);
  font-weight: 800;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.iq-hs-timeline-item.is-active .iq-hs-pin-num-badge,
.iq-hs-timeline-item:hover .iq-hs-pin-num-badge {
  background: #111827;
  color: #FFFFFF;
  transform: scale(1.08);
}

.iq-hs-timeline-body {
  flex: 1;
  min-width: 0;
}

.iq-hs-timeline-body .iq-hs-pin-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.iq-hs-timeline-body h3,
.iq-hs-timeline-body h4 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--iq-hs-text);
  line-height: 1.3;
  text-decoration: none !important;
}

.iq-hs-timeline-body p {
  margin: 0;
  font-size: 20px;
  color: var(--iq-hs-muted);
  line-height: 1.55;
}

.iq-hs-timeline-action {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.iq-hs-timeline-jump {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--iq-hs-bg-subtle);
  color: var(--iq-hs-brand);
  border: 1.5px solid var(--iq-hs-line-strong);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.iq-hs-timeline-item:hover .iq-hs-timeline-jump,
.iq-hs-timeline-item.is-active .iq-hs-timeline-jump,
.iq-hs-timeline-jump:hover {
  background: var(--iq-hs-brand);
  color: #FFFFFF;
  border-color: var(--iq-hs-brand);
}

/* ---------- Pure Image-Only Lightbox Modal ---------- */
.iq-hs-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.iq-hs-lightbox[hidden] {
  display: none !important;
}

.iq-hs-lightbox-backdrop {
  position: absolute;
  inset: 0;
}

.iq-hs-lightbox-stage {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 92vw;
  max-height: 90vh;
}

.iq-hs-lightbox-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.iq-hs-lightbox-figure img {
  max-width: 86vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  display: block;
  background: #FFFFFF;
}

.iq-hs-lightbox-caption {
  color: #F8FAFC;
  font-size: 18px;
  font-weight: 500;
  text-align: center;
  max-width: 680px;
  line-height: 1.45;
}

.iq-hs-lightbox-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #111827;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  z-index: 3;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.iq-hs-lightbox-close:hover {
  background: var(--iq-hs-brand);
  transform: scale(1.08);
}

.iq-hs-lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.85);
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
  font-size: 26px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  z-index: 3;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.iq-hs-lightbox-arrow[hidden] {
  display: none !important;
}

.iq-hs-lightbox-arrow.is-prev {
  left: -58px;
}

.iq-hs-lightbox-arrow.is-next {
  right: -58px;
}

.iq-hs-lightbox-arrow:hover {
  background: var(--iq-hs-brand);
  transform: translateY(-50%) scale(1.08);
}

/* ---------- Responsive Mobile Layout ---------- */
@media (max-width: 900px) {
  .iq-hs-stage-layout.has-open-drawer {
    grid-template-columns: 1fr;
  }
  .iq-hs-drawer {
    border-left: 0;
    border-top: 2px solid var(--iq-hs-brand);
  }
}

@media (max-width: 720px) {
  /* Slightly smaller push pins on phones: 26px ball, ~20px visible needle */
  .iq-hs-pin-anchor,
  .iq-hs-pin-wrap {
    --iq-pin-r: 13px;
    --iq-pin-d: 33px;
    --iq-pin-needle-w: 2.5px;
  }
  .iq-hs-pin {
    font-size: 13px;
  }
  .iq-hs-pin-callout {
    font-size: 14px;
    padding: 5px 10px;
  }
  .iq-hs-toolbar,
  .iq-hs-top-bar {
    padding: 10px 12px;
    gap: 10px;
  }
  .iq-hs-proj-tabs {
    width: 100%;
    gap: 6px;
  }
  .iq-hs-proj-tab {
    flex: 1 1 calc(50% - 6px);
    padding: 6px 10px;
  }
  .iq-hs-toolbar-controls,
  .iq-hs-view-bar {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }
  .iq-hs-photo-strip {
    width: 100%;
    gap: 8px;
  }
  .iq-hs-photo-thumb {
    flex: 1 1 calc(50% - 8px);
    padding: 5px 10px 5px 6px;
  }
  /* Floating bottom sheet on mobile: ZERO layout shift when opening/closing pins + strong elevation shadow */
  .iq-hs-popover {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    bottom: 14px !important;
    top: auto !important;
    transform: none !important;
    width: auto !important;
    max-width: calc(100vw - 24px) !important;
    max-height: 78vh;
    overflow-y: auto;
    background: #FFFFFF !important;
    border: 1.5px solid #CBD5E1 !important;
    border-radius: 16px !important;
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.36), 0 8px 20px rgba(15, 23, 42, 0.2), 0 0 0 1px rgba(15, 23, 42, 0.08) !important;
    z-index: 900 !important;
  }
  .iq-hs-popover-arrow,
  .iq-hs-popover::before {
    display: none !important;
  }
  .iq-hs-pop-header,
  .iq-hs-popover-head {
    border-radius: 15px 15px 0 0;
  }
  .iq-hs-pop-footer,
  .iq-hs-popover-foot {
    border-radius: 0 0 15px 15px;
  }
  .iq-hs-timeline::before,
  ol.iq-hs-pin-index::before {
    display: none;
  }
  .iq-hs-timeline-item,
  li.iq-hs-pin-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
  }
  .iq-hs-timeline-action {
    width: 100%;
  }
  .iq-hs-timeline-jump {
    width: 100%;
    justify-content: center;
  }
  .iq-hs-lightbox-arrow.is-prev {
    left: 10px;
  }
  .iq-hs-lightbox-arrow.is-next {
    right: 10px;
  }
}

.iq-hs-jump-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.18s ease;
}
.iq-hs-timeline-item:hover .iq-hs-jump-caret,
.iq-hs-timeline-jump:hover .iq-hs-jump-caret {
  transform: translateY(-2px);
}

/* --- Video Pin Stage & Timestamp Controls (Light Surface Only) --- */
.iq-hs-main-video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  background: #F1F5F9;
}

.iq-hs-pin-anchor {
  transition: opacity 0.22s ease, transform 0.22s ease;
}

/* Moving (tracked) video pins: left/top change every frame while the video plays */
.iq-hs-pin-anchor[data-tracked] {
  will-change: left, top;
}

.iq-hs-pin-anchor.is-time-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.75); /* zero-size anchor at the tip: shrinks toward the exact point */
}

.iq-hs-pin-anchor.is-time-hidden .iq-hs-pin-stem,
.iq-hs-pin-anchor.is-time-hidden .iq-hs-pin {
  pointer-events: none;
}

.iq-hs-pin-anchor.is-time-visible {
  opacity: 1;
  pointer-events: auto;
}

.iq-hs-pin-anchor.is-time-current:not(.is-active):not(.is-hovered):not(:hover) .iq-hs-pin:not(.is-active) {
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.2), 0 0 0 2.5px #FFFFFF, 0 0 0 5.5px rgba(var(--iq-pin-rgb, 24, 83, 185), 0.5);
}

.iq-hs-video-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
  padding: 10px 16px;
  background: #F8FAFC;
  border-top: 1px solid #E2E8F0;
  color: #0F172A;
}

.iq-hs-video-transport {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.iq-hs-video-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid #1853B9;
  background: #1853B9;
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.iq-hs-video-play-btn:hover {
  background: #111827;
  border-color: #111827;
}

.iq-hs-video-play-icon {
  font-size: 0.72rem;
  line-height: 1;
}

.iq-hs-video-time {
  font-size: 0.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #334155;
  min-width: 68px;
}

.iq-hs-video-track-wrap {
  flex: 1 1 200px;
  display: flex;
  align-items: center;
  padding: 8px 4px;
}

.iq-hs-video-track {
  position: relative;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #CBD5E1;
  cursor: pointer;
}

.iq-hs-video-track-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  border-radius: 999px;
  background: var(--iq-hs-brand, #1853B9);
  pointer-events: none;
  transition: width 0.1s linear;
}

.iq-hs-video-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  background: var(--iq-pin-color, #1853B9);
  color: var(--iq-pin-ink, #FFFFFF);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
  transition: transform 0.15s ease, background 0.15s ease;
  z-index: 2;
}

.iq-hs-video-marker:hover,
.iq-hs-video-marker.is-selected {
  background: #111827;
  color: #FFFFFF;
  transform: translate(-50%, -50%) scale(1.16);
  z-index: 3;
}

.iq-hs-video-marker.is-time-current:not(.is-selected) {
  box-shadow: 0 0 0 3px rgba(var(--iq-pin-rgb, 24, 83, 185), 0.3), 0 2px 6px rgba(15, 23, 42, 0.25);
}

.iq-hs-video-mode-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 999px;
  padding: 3px 5px 3px 10px;
  flex-shrink: 0;
}

.iq-hs-video-mode-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: #475569;
  margin-right: 2px;
}

.iq-hs-video-mode-btn {
  border: none;
  background: transparent;
  color: #334155;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.iq-hs-video-mode-btn:hover {
  background: #F1F5F9;
  color: #0F172A;
}

.iq-hs-video-mode-btn.is-active {
  background: #111827;
  color: #FFFFFF;
}

.iq-hs-pop-title-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  min-width: 0;
}

.iq-hs-time-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1D4ED8;
  font-size: 0.74rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.iq-hs-callout-time {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
}

/* ---------- Homepage-only pin demo control: color swatches + Solid / Translucent ---------- */
.iq-hs-pin-demo {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--iq-hs-bg-subtle);
  border: 1.5px solid var(--iq-hs-line-strong);
  border-radius: 8px;
  padding: 3px 6px 3px 0;
  flex-wrap: wrap;
}

.iq-hs-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background:
    radial-gradient(circle at 36% 30%, rgba(255, 255, 255, 0.16) 0, rgba(255, 255, 255, 0) 58%),
    var(--iq-sw, #1853B9);
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.iq-hs-swatch:hover {
  transform: scale(1.12);
}

.iq-hs-swatch.is-active {
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.25), 0 0 0 2px #FFFFFF, 0 0 0 3.5px #111827;
}

.iq-hs-swatch.is-as-set {
  width: auto;
  height: 26px;
  border-radius: 13px;
  padding: 0 9px;
  background: #FFFFFF;
  color: var(--iq-hs-text);
  font-size: 13px;
  font-weight: 700;
}

.iq-hs-swatch.is-as-set.is-active {
  background: #111827;
  color: #FFFFFF;
}

.iq-hs-swatch:focus-visible {
  outline: 2px solid #111827;
  outline-offset: 3px;
}

.iq-hs-pin-demo-sep {
  width: 1px;
  height: 20px;
  background: var(--iq-hs-line-strong);
  margin: 0 3px;
}

.iq-hs-pin-demo .iq-hs-view-btn {
  padding: 5px 10px;
  font-size: 15px;
}

/* ---------- Video pin tooltip footer: pin time (left, seeks there) + Keep watching (right) ---------- */
.iq-hs-pop-navrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
}

.iq-hs-pop-footer.has-video-row {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 6px 14px 10px;
}

.iq-hs-pop-vrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  padding-top: 9px;
  border-top: 1px solid #E8EDF3;
}

.iq-hs-pop-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: -6px;
  padding: 4px 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #64748B;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.iq-hs-pop-time:hover {
  color: #1853B9;
  background: #EFF6FF;
}

.iq-hs-pop-time:focus-visible {
  outline: 2px solid #1853B9;
  outline-offset: 1px;
}

.iq-hs-pop-time-icon {
  flex-shrink: 0;
  opacity: 0.9;
}

.iq-hs-pop-time-spacer {
  flex: 1;
}

.iq-hs-pop-play {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px 7px 12px;
  border: 0;
  border-radius: 999px;
  background: #1853B9;
  color: #FFFFFF;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.iq-hs-pop-play:hover {
  background: #111827;
}

.iq-hs-pop-play:focus-visible {
  outline: 2px solid #111827;
  outline-offset: 2px;
}

.iq-hs-pop-play-icon {
  flex-shrink: 0;
}

/* Pins mode toggle: short labels on phones so the group never overflows the video bar */
.iq-hs-mode-short {
  display: none;
}

@media (max-width: 720px) {
  .iq-hs-mode-long {
    display: none;
  }
  .iq-hs-mode-short {
    display: inline;
  }
  .iq-hs-video-mode-group {
    max-width: 100%;
  }
  /* Bottom sheet scrolls as a whole: keep the footer (time + Keep watching) in view */
  .iq-hs-popover .iq-hs-pop-footer {
    position: sticky;
    bottom: 0;
    z-index: 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .iq-hs-popover,
  .iq-hs-drawer,
  .iq-hs-pin-anchor .iq-hs-pin,
  .iq-hs-pin-anchor::after,
  .iq-hs-pin-anchor .iq-hs-pin::after {
    animation: none !important;
  }
  .iq-hs-pop-time,
  .iq-hs-pop-play,
  .iq-hs-video-track-fill {
    transition: none !important;
  }
}

/* Start over (video bar): quiet icon button next to Play, re-arms Pin 1. */
.iq-hs-video-restart-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 0; flex: 0 0 auto;
  border: 1px solid #d1d5db; border-radius: 999px; background: #fff; color: #111827;
  cursor: pointer; transition: border-color .15s ease, color .15s ease;
}
.iq-hs-video-restart-btn:hover { border-color: #1853B9; color: #1853B9; }
.iq-hs-video-restart-btn:focus-visible { outline: 2px solid #1853B9; outline-offset: 2px; }

/* ---------- YouTube stage: our own iframe under a tap shield, pins layer on top ---------- */
.iq-hs-img-canvas.is-video-stage { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.iq-hs-yt-host {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: #F1F5F9;
  border-radius: var(--iq-hs-radius) var(--iq-hs-radius) 0 0;
}
.iq-hs-yt-frame, .iq-hs-yt-iframe, .iq-hs-yt-poster, .iq-hs-yt-shield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.iq-hs-yt-iframe { border: 0; display: block; pointer-events: none; }
.iq-hs-yt-poster {
  z-index: 2;
  object-fit: cover;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.iq-hs-yt-host.is-yt-started .iq-hs-yt-poster { opacity: 0; }
.iq-hs-yt-shield {
  z-index: 3;
  cursor: pointer;
  background: transparent;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}

/* Speaker toggle (audio: toggle | on): same quiet round button as Skip back */
.iq-hs-video-audio-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 0; flex: 0 0 auto;
  border: 1px solid #d1d5db; border-radius: 999px; background: #fff; color: #111827;
  cursor: pointer; transition: border-color .15s ease, color .15s ease;
}
.iq-hs-video-audio-btn:hover, .iq-hs-video-audio-btn[aria-pressed="true"] { border-color: #1853B9; color: #1853B9; }
.iq-hs-video-audio-btn:focus-visible { outline: 2px solid #1853B9; outline-offset: 2px; }

/* pin_numbers: false -> plain heads (a11y label still says "Pin N: Title") */
.iq-hs-pin-anchor.is-no-number .iq-hs-pin { font-size: 0; }

/* YouTube stages: breakdown circles show the pin's time (no hosted frames to crop) */
.iq-hs-timeline-circle.is-time-circle {
  display: flex; align-items: center; justify-content: center;
  background: #FFFFFF; border: 2px solid #1853B9; color: #111827;
  font-weight: 700; font-size: 0.86rem; font-variant-numeric: tabular-nums;
}
