/* bv25.css — Beach Insurance Commercial Vehicle Insurance (Archetype A6: Live Layer Toggles)
   Strictly scoped to .bv25-* | Coastal Carolinas sunlit editorial | WCAG 2.2 AA | Zero CLS */

.bv25-card {
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF7F1 100%);
  border: 1px solid var(--bv-line, rgba(13, 59, 110, 0.14));
  border-radius: 22px;
  box-shadow: var(--bv-shadow, 0 2px 6px rgba(13, 59, 110, 0.05), 0 18px 40px -18px rgba(13, 59, 110, 0.18));
  padding: clamp(1rem, 2.2vw, 1.6rem);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

/* Top HUD: Score Bar + Presets */
.bv25-hud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #F5F0E8;
  border: 1px solid rgba(13, 59, 110, 0.12);
  border-radius: 16px;
  padding: 0.85rem 1.05rem;
}

.bv25-meter-wrap {
  flex: 1 1 250px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.bv25-meter-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.bv25-meter-label {
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0D3B6E;
}

.bv25-score-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.72rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.25;
}
.bv25-score-pill.bv25-state-full {
  background: #E4F5F0;
  color: #0B6B52;
  border: 1px solid rgba(11, 107, 82, 0.28);
}
.bv25-score-pill.bv25-state-partial {
  background: #FDF6E3;
  color: #664904;
  border: 1px solid rgba(102, 73, 4, 0.3);
}
.bv25-score-pill.bv25-state-exposed {
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid rgba(153, 27, 27, 0.28);
}

.bv25-meter-track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: rgba(13, 59, 110, 0.12);
  overflow: hidden;
}

.bv25-meter-fill {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #1565A8 0%, #0F8A6A 100%);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s ease;
}

.bv25-meter-fill.bv25-fill-partial {
  background: linear-gradient(90deg, #D4A017 0%, #1565A8 100%);
}

.bv25-meter-fill.bv25-fill-exposed {
  background: #B91C1C;
}

.bv25-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 0 1 auto;
}

.bv25-preset-btn {
  min-height: 44px;
  min-width: 44px;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 2px solid #0D3B6E;
  background: #FFFFFF;
  color: #0D3B6E;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.bv25-preset-btn:hover {
  background: #EEF4FB;
}
.bv25-preset-btn.is-active,
.bv25-preset-btn[aria-pressed="true"] {
  background: #0D3B6E;
  color: #FFFFFF;
}

/* Living Vector Stage (Zero CLS Locked Aspect Ratio) */
.bv25-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 960 / 380;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(13, 59, 110, 0.16);
  background: #EEF4FB;
}

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

/* SVG Layer Toggle States */
.bv25-svg-layer {
  opacity: 1;
  transition: opacity 0.32s ease, transform 0.32s ease;
  transform-box: fill-box;
  transform-origin: center;
}
.bv25-svg-layer.is-off {
  opacity: 0.08;
  transform: scale(0.98);
}

.bv25-gap-marker {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.bv25-gap-marker.is-visible {
  opacity: 1;
}

/* Living Vector Ambient Motion (GPU-composited) */
.bv25-sun-halo {
  transform-box: fill-box;
  transform-origin: center;
  animation: bv25Pulse 5.4s ease-in-out infinite;
}

.bv25-clouds {
  animation: bv25Drift 18s ease-in-out infinite alternate;
}

.bv25-waves {
  animation: bv25Wave 7s ease-in-out infinite alternate;
}

.bv25-road-dashes {
  animation: bv25RoadFlow 2.6s linear infinite;
}

.bv25-shield-arc {
  animation: bv25DashSlide 12s linear infinite;
}

.bv25-tether {
  animation: bv25DashSlide 8s linear infinite;
}

.bv25-pulse-arc {
  animation: bv25Breathe 2.8s ease-in-out infinite;
}

@keyframes bv25Pulse {
  0%, 100% { transform: scale(1); opacity: 0.16; }
  50% { transform: scale(1.12); opacity: 0.28; }
}

@keyframes bv25Drift {
  0% { transform: translateX(-8px); }
  100% { transform: translateX(12px); }
}

@keyframes bv25Wave {
  0% { transform: translateX(-6px); }
  100% { transform: translateX(8px); }
}

@keyframes bv25RoadFlow {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -48; }
}

@keyframes bv25DashSlide {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -60; }
}

@keyframes bv25Breathe {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

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

.bv25-pin-num {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #0D3B6E;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
  box-shadow: 0 3px 10px rgba(13, 59, 110, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.bv25-pin:hover .bv25-pin-num {
  transform: scale(1.14);
}

.bv25-pin[aria-pressed="false"] .bv25-pin-num {
  background: #991B1B;
  color: #FFFFFF;
  border-color: #FEE2E2;
}

/* 4 Rocker Toggle Switches */
.bv25-toggles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.bv25-toggle {
  min-height: 56px;
  min-width: 44px;
  width: 100%;
  text-align: left;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 2px solid rgba(13, 59, 110, 0.16);
  background: #FFFFFF;
  color: #0D3B6E;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.bv25-toggle:hover {
  border-color: #1565A8;
  background: #F6FAFF;
}

.bv25-toggle.is-on {
  border-color: #0B6B52;
  background: linear-gradient(180deg, #FFFFFF 0%, #F1FAF7 100%);
  box-shadow: 0 8px 20px -14px rgba(11, 107, 82, 0.45);
}

.bv25-toggle:not(.is-on) {
  border-color: rgba(153, 27, 27, 0.32);
  background: #FFF9F9;
}

.bv25-toggle-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
}

.bv25-toggle-num {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
}
.bv25-c-navy { background: #0D3B6E; color: #FFFFFF; }
.bv25-c-blue { background: #1565A8; color: #FFFFFF; }
.bv25-c-teal { background: #0B6B52; color: #FFFFFF; }
.bv25-c-gold { background: #D4A017; color: #0D3B6E; }

.bv25-toggle-title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.94rem;
  font-weight: 800;
  color: #0D3B6E;
  line-height: 1.25;
}

.bv25-switch {
  flex: 0 0 44px;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #CBD5E1;
  position: relative;
  transition: background-color 0.22s ease;
}

.bv25-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #FFFFFF;
  box-shadow: 0 1px 4px rgba(13, 59, 110, 0.3);
  transition: transform 0.22s ease;
}

.bv25-toggle.is-on .bv25-switch {
  background: #0B6B52;
}

.bv25-toggle.is-on .bv25-knob {
  transform: translateX(20px);
}

.bv25-toggle-desc {
  font-size: 0.85rem;
  line-height: 1.45;
  color: #334155;
}

/* Plain-English Gap Warning Readout Panel */
.bv25-readout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 1rem;
  border-radius: 16px;
  padding: 1.05rem 1.2rem;
  border: 1px solid rgba(11, 107, 82, 0.24);
  background: #E4F5F0;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.bv25-readout.bv25-readout-partial {
  background: #FDF6E3;
  border-color: rgba(102, 73, 4, 0.28);
}

.bv25-readout.bv25-readout-exposed {
  background: #FEF2F2;
  border-color: rgba(153, 27, 27, 0.3);
}

.bv25-readout-main,
.bv25-readout-aside {
  min-width: 0;
}

.bv25-readout-title {
  margin: 0 0 0.35rem;
  font-size: 1.04rem;
  font-weight: 800;
  color: #0D3B6E;
  line-height: 1.28;
}

.bv25-readout-exposed .bv25-readout-title {
  color: #991B1B;
}

.bv25-readout-copy {
  margin: 0;
  font-size: 0.91rem;
  line-height: 1.55;
  color: #1E293B;
}

.bv25-readout-aside {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(13, 59, 110, 0.12);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
}

.bv25-aside-kicker {
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0B6B52;
  margin-bottom: 0.3rem;
}

.bv25-readout-partial .bv25-aside-kicker {
  color: #664904;
}

.bv25-readout-exposed .bv25-aside-kicker {
  color: #991B1B;
}

.bv25-aside-note {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #334155;
}

/* Mobile Responsive (Zero Horizontal Overflow at 390px) */
@media (max-width: 780px) {
  .bv25-toggles,
  .bv25-readout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .bv25-card {
    padding: 0.85rem;
    border-radius: 18px;
  }
  .bv25-hud {
    padding: 0.75rem;
  }
  .bv25-presets {
    width: 100%;
  }
  .bv25-preset-btn {
    flex: 1 1 auto;
    text-align: center;
  }
}
