/* Interactive ICBC Road Test Sheet. */
.page-blog-article .row-interactive-sheet {
  position: relative;
  margin: clamp(24px, 4vw, 44px) 0;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid rgba(126, 244, 255, 0.18);
  border-radius: 30px;
  background:
    radial-gradient(circle at 18% 0%, rgba(36, 229, 255, 0.16), transparent 34%),
    radial-gradient(circle at 88% 16%, rgba(46, 167, 255, 0.11), transparent 30%),
    linear-gradient(180deg, rgba(8, 17, 29, 0.96), rgba(5, 10, 19, 0.98));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  scroll-margin-top: 110px;
}

.page-blog-article .row-interactive-sheet::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(40, 226, 255, 0.85), transparent);
  box-shadow: 0 0 24px rgba(40, 226, 255, 0.72), 0 0 58px rgba(40, 226, 255, 0.42);
  pointer-events: none;
}

.page-blog-article .row-interactive-sheet__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.page-blog-article .row-interactive-sheet__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: rgba(132, 248, 255, 0.95);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-blog-article .row-interactive-sheet__eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #31e8ff;
  box-shadow: 0 0 16px rgba(49, 232, 255, 0.9);
}

.page-blog-article .row-interactive-sheet h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.48rem, 3vw, 2.25rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.page-blog-article .row-interactive-sheet__head p {
  max-width: 720px;
  margin: 10px 0 0;
  color: rgba(229, 244, 255, 0.82);
  font-size: 0.98rem;
  line-height: 1.65;
}

.page-blog-article .row-interactive-sheet__head strong {
  color: #fff;
}

.page-blog-article .row-interactive-sheet__jump {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(120, 235, 255, 0.32);
  border-radius: 999px;
  color: #dffaff;
  background: rgba(255, 255, 255, 0.045);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.page-blog-article .row-interactive-sheet__jump:hover,
.page-blog-article .row-interactive-sheet__jump:focus-visible {
  color: #001116;
  background: linear-gradient(135deg, #8af7ff, #26e2ff);
  box-shadow: 0 12px 28px rgba(38, 226, 255, 0.24);
}

.page-blog-article .row-sheet-hint {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  padding: 8px 12px;
  border: 1px solid rgba(98, 228, 255, 0.22);
  border-radius: 999px;
  color: rgba(224, 249, 255, 0.8);
  background: rgba(1, 12, 22, 0.58);
  font-size: 0.82rem;
  font-weight: 700;
}

.page-blog-article .row-sheet-hint__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #31e8ff;
  box-shadow: 0 0 0 5px rgba(49, 232, 255, 0.11), 0 0 18px rgba(49, 232, 255, 0.76);
}

.page-blog-article .row-sheet-scroll {
  position: relative;
  overflow: visible;
}

.page-blog-article .row-sheet-canvas {
  position: relative;
  width: min(100%, 980px);
  margin: 0 auto;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
}

.page-blog-article .row-sheet-canvas img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  background: #fff;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.page-blog-article .row-sheet-hotspots {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.page-blog-article .row-sheet-svg-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.page-blog-article .row-sheet-svg-hotspot {
  fill: transparent;
  stroke: transparent;
  stroke-width: 0.18;
  vector-effect: non-scaling-stroke;
  cursor: help;
  pointer-events: all;
  transition: fill 0.08s ease-out, stroke 0.08s ease-out, filter 0.08s ease-out;
}

.page-blog-article .row-sheet-svg-hotspot:hover,
.page-blog-article .row-sheet-svg-hotspot:focus,
.page-blog-article .row-sheet-svg-hotspot.is-active {
  fill: rgba(33, 217, 255, 0.10);
  stroke: rgba(33, 217, 255, 0.76);
  filter: drop-shadow(0 0 0.45px rgba(33, 217, 255, 0.76));
  outline: none;
}

.row-sheet-tooltip {
  position: absolute;
  z-index: 5;
  width: min(310px, calc(100% - 20px));
  padding: 13px 14px 14px;
  border: 1px solid rgba(92, 235, 255, 0.34);
  border-left-width: 4px;
  border-radius: 16px;
  color: rgba(234, 249, 255, 0.94);
  background: rgba(4, 14, 24, 0.96);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.36), 0 0 28px rgba(37, 226, 255, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 0, 0);
  transition: opacity 0.12s ease-out, visibility 0.12s ease-out;
}

.row-sheet-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
}

.row-sheet-tooltip__kicker {
  display: block;
  margin-bottom: 6px;
  color: rgba(111, 237, 255, 0.88);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.row-sheet-tooltip__title {
  margin: 0 0 6px;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.2;
}

.row-sheet-tooltip__body {
  margin: 0;
  color: rgba(233, 246, 255, 0.86);
  font-size: 0.86rem;
  line-height: 1.45;
}

.row-sheet-tooltip__note {
  display: block;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.69);
  font-size: 0.76rem;
  line-height: 1.35;
}

@media (max-width: 767px) {
  .page-blog-article .row-interactive-sheet {
    margin: 22px -16px 28px;
    padding: 18px 0 22px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    overflow: visible;
  }

  .page-blog-article .row-interactive-sheet__head {
    display: block;
    padding: 0 16px;
    margin-bottom: 14px;
  }

  .page-blog-article .row-interactive-sheet h2 {
    font-size: 1.58rem;
  }

  .page-blog-article .row-interactive-sheet__head p {
    font-size: 0.93rem;
    line-height: 1.55;
  }

  .page-blog-article .row-interactive-sheet__jump {
    margin-top: 12px;
  }

  .page-blog-article .row-sheet-hint {
    margin-left: 16px;
    margin-right: 16px;
    border-radius: 16px;
  }

  .page-blog-article .row-sheet-scroll {
    overflow: visible;
    -webkit-overflow-scrolling: auto;
    padding: 0;
    scrollbar-width: none;
    touch-action: pinch-zoom;
  }

  .page-blog-article .row-sheet-canvas {
    width: 100vw;
    max-width: none;
    margin-left: 50%;
    transform: translateX(-50%);
    border-radius: 0;
    box-shadow: none;
    touch-action: pinch-zoom;
  }

  .page-blog-article .row-sheet-canvas img {
    width: 100%;
    border-radius: 0;
  }

  .row-sheet-tooltip {
    position: fixed;
    left: 14px !important;
    right: 14px !important;
    bottom: 14px !important;
    top: auto !important;
    width: auto;
    max-height: 40vh;
    overflow: auto;
    pointer-events: auto;
  }
}

/* Pass 3: visible intent markers + mobile touch fixes. */
.page-blog-article .row-sheet-marker {
  position: absolute;
  z-index: 4;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  padding: 0;
  border: 1px solid rgba(99, 238, 255, 0.82);
  border-radius: 999px;
  color: #eaffff;
  background: radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.18), transparent 34%), rgba(2, 19, 31, 0.88);
  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.08), 0 0 16px rgba(0, 212, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transform: translate(-50%, -50%);
  cursor: pointer;
  font: 900 10px/1 Poppins, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: center;
  opacity: 0.9;
  transition: opacity 0.12s ease-out, transform 0.12s ease-out, box-shadow 0.12s ease-out, background 0.12s ease-out;
}

.page-blog-article .row-sheet-marker span {
  position: relative;
  top: -0.5px;
}

.page-blog-article .row-sheet-marker--mobile-only {
  display: none;
}

.page-blog-article .row-sheet-marker:hover,
.page-blog-article .row-sheet-marker:focus-visible,
.page-blog-article .row-sheet-marker.is-active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.08);
  background: linear-gradient(135deg, rgba(91, 240, 255, 0.98), rgba(0, 212, 255, 0.96));
  color: #001019;
  box-shadow: 0 0 0 5px rgba(0, 212, 255, 0.13), 0 0 22px rgba(0, 212, 255, 0.62), 0 10px 18px rgba(0, 0, 0, 0.24);
  outline: none;
}

@media (max-width: 767px) {
  .page-blog-article .row-sheet-scroll,
  .page-blog-article .row-sheet-canvas,
  .page-blog-article .row-sheet-hotspots,
  .page-blog-article .row-sheet-svg-overlay,
  .page-blog-article .row-sheet-svg-hotspot {
    touch-action: pan-x pan-y pinch-zoom;
  }

  .page-blog-article .row-sheet-hotspots,
  .page-blog-article .row-sheet-svg-overlay,
  .page-blog-article .row-sheet-svg-hotspot {
    pointer-events: auto;
  }

  .page-blog-article .row-sheet-marker,
  .page-blog-article .row-sheet-marker--mobile-only {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    width: 11px;
    height: 11px;
    min-width: 11px;
    min-height: 11px;
    font-size: 7px;
    opacity: 0.94;
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.06), 0 0 8px rgba(0, 212, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }

  .page-blog-article .row-sheet-marker:hover,
  .page-blog-article .row-sheet-marker:focus-visible,
  .page-blog-article .row-sheet-marker.is-active {
    transform: translate(-50%, -50%) scale(1.04);
  }
}
