/* cv17.css — Cornerstone Insurance Mechanical & Body Shops (Archetype A1: Hotspot Anatomy Canvas)
   Inland Piedmont architectural blueprint palette, squared/chamfered geometry, WCAG 2.2 AA, zero CLS. */

.cv17-frame {
  background: #FFFFFF;
  border: 2px solid #0A1A33;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(10, 26, 51, 0.06), 0 18px 36px -18px rgba(10, 26, 51, 0.24);
  overflow: hidden;
}

.cv17-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.55rem 1rem;
  background: #0A1A33;
  border-bottom: 3px solid #F26822;
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.cv17-bar-region {
  color: #CFE3F5;
}

/* CLS-locked Hotspot Stage */
.cv17-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 960 / 440;
  background: #EFF2F5;
  border-bottom: 1px solid rgba(10, 26, 51, 0.16);
  overflow: hidden;
}

.cv17-svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Zone illumination without layout shift */
.cv17-zone {
  opacity: 0.54;
  transition: opacity 0.3s ease;
}

.cv17-zone-box {
  transition: stroke-width 0.3s ease, stroke 0.3s ease;
}

.cv17-frame[data-active="1"] .cv17-z-1,
.cv17-frame[data-active="2"] .cv17-z-2,
.cv17-frame[data-active="3"] .cv17-z-3,
.cv17-frame[data-active="4"] .cv17-z-4,
.cv17-frame[data-active="5"] .cv17-z-5 {
  opacity: 1;
}

.cv17-frame[data-active="1"] .cv17-z-1 .cv17-zone-box,
.cv17-frame[data-active="2"] .cv17-z-2 .cv17-zone-box,
.cv17-frame[data-active="3"] .cv17-z-3 .cv17-zone-box,
.cv17-frame[data-active="4"] .cv17-z-4 .cv17-zone-box,
.cv17-frame[data-active="5"] .cv17-z-5 .cv17-zone-box {
  stroke: #F26822;
  stroke-width: 3;
  stroke-dasharray: none;
}

/* GPU-composited SVG Animations */
@keyframes cv17-flow {
  from { stroke-dashoffset: 32; }
  to { stroke-dashoffset: 0; }
}

@keyframes cv17-lane-move {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: 48; }
}

@keyframes cv17-spark-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.18); }
}

@keyframes cv17-lift-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes cv17-car-run {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-7px); }
}

@keyframes cv17-ring-pulse {
  0% { transform: scale(0.86); opacity: 0.78; }
  75% { transform: scale(1.38); opacity: 0; }
  100% { transform: scale(1.38); opacity: 0; }
}

.cv17-lane { animation: cv17-lane-move 2.2s linear infinite; }
.cv17-laser { animation: cv17-flow 1.9s linear infinite; }
.cv17-exhaust { animation: cv17-flow 1.4s linear infinite; }
.cv17-air { animation: cv17-flow 1.8s linear infinite; }
.cv17-lift-rig { animation: cv17-lift-bob 3.6s ease-in-out infinite; }
.cv17-roadcar { animation: cv17-car-run 3s ease-in-out infinite; }
.cv17-spark {
  transform-box: fill-box;
  transform-origin: center;
  animation: cv17-spark-pulse 1.6s ease-in-out infinite;
}

/* 44x44 Accessible HTML Hotspot Buttons on Canvas */
.cv17-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 3;
}

.cv17-pin-ring {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 2.5px solid #F26822;
  pointer-events: none;
  animation: cv17-ring-pulse 2.2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.cv17-pin-core {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: #0A1A33;
  border: 2px solid #FFFFFF;
  color: #FFFFFF;
  font-size: 0.74rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(10, 26, 51, 0.36);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.cv17-pin:hover .cv17-pin-core {
  background: #1C4A75;
  transform: scale(1.08);
}

.cv17-pin[aria-pressed="true"] .cv17-pin-core {
  background: #F26822;
  border-color: #0A1A33;
  color: #0A1A33;
  transform: scale(1.1);
}

.cv17-pin[aria-pressed="true"] .cv17-pin-ring {
  border-color: #0A1A33;
}

/* Synced Horizontal Chip Bar */
.cv17-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0.85rem 1.05rem;
  background: #EFF2F5;
  border-bottom: 1px solid rgba(10, 26, 51, 0.14);
}

.cv17-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0.5rem 0.88rem;
  border: 1.5px solid rgba(10, 26, 51, 0.22);
  border-radius: 6px;
  background: #FFFFFF;
  color: #0A1A33;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cv17-chip:hover {
  border-color: #1C4A75;
  background: #E8F2FA;
}

.cv17-chip[aria-pressed="true"] {
  background: #0A1A33;
  border-color: #0A1A33;
  border-left: 5px solid #F26822;
  color: #FFFFFF;
}

.cv17-chip-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: #E8F2FA;
  color: #1C4A75;
  font-size: 0.72rem;
  font-weight: 800;
  flex: 0 0 auto;
}

.cv17-chip[aria-pressed="true"] .cv17-chip-num {
  background: #F26822;
  color: #0A1A33;
}

/* Full-Width Editorial Readout Card (No right sidebar) */
.cv17-readout {
  padding: clamp(1.2rem, 2.5vw, 1.75rem);
  background: #FFFFFF;
  border-left: 5px solid #1C4A75;
}

.cv17-readout-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.55rem;
}

.cv17-station-tag {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #B5420B;
}

.cv17-class-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.68rem;
  border-radius: 4px;
  background: #FEF1EA;
  border: 1px solid rgba(181, 66, 11, 0.3);
  color: #B5420B;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cv17-readout-title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.14rem, 2vw, 1.42rem);
  font-weight: 800;
  line-height: 1.22;
  color: #0A1A33;
}

.cv17-readout-body {
  margin: 0 0 1.2rem;
  max-width: 66rem;
  font-size: 0.95rem;
  line-height: 1.58;
  color: #334155;
}

/* 3-Column Architectural Spec Strip */
.cv17-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.cv17-spec {
  min-width: 0;
  padding: 0.9rem 1rem;
  border-radius: 6px;
  background: #F4F7FA;
  border: 1px solid rgba(10, 26, 51, 0.14);
  border-top: 3px solid #2E72AC;
}

.cv17-spec-k {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1C4A75;
}

.cv17-spec-v {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.52;
  color: #0A1A33;
}

/* Responsive Breakpoints (Zero horizontal overflow at 390px) */
@media (max-width: 820px) {
  .cv17-specs {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .cv17-chips {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding: 0.7rem;
  }

  .cv17-chip {
    width: 100%;
    justify-content: flex-start;
  }

  .cv17-pin-core {
    width: 26px;
    height: 26px;
    font-size: 0.68rem;
  }
}
