/* cv24.css — Cornerstone Insurance Consultants/Consulting (A2 Split-Curtain Comparator)
   Inland Piedmont architectural blueprint styling, WCAG 2.2 AA contrast & 44px targets, zero CLS. */

.cv24-shell {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  min-width: 0;
  box-sizing: border-box;
}

.cv24-shell *,
.cv24-shell *::before,
.cv24-shell *::after {
  box-sizing: border-box;
}

.cv24-blueprint-frame {
  background: #FFFFFF;
  border: 2px solid #0A1A33;
  border-top: 5px solid #F26822;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(10, 26, 51, 0.06), 0 18px 38px -20px rgba(10, 26, 51, 0.25);
  overflow: hidden;
}

.cv24-stage-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: #0A1A33;
  color: #FFFFFF;
  border-bottom: 1px solid rgba(87, 156, 205, 0.28);
}

.cv24-plate {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.62rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cv24-plate-exposed {
  background: #F26822;
  color: #0A1A33;
}

.cv24-plate-shield {
  background: #2E72AC;
  color: #FFFFFF;
}

.cv24-plate-mid {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #E8F2FA;
}

.cv24-stage-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 960 / 420;
  background: #EFF2F5;
  overflow: hidden;
  touch-action: pan-y;
  cursor: ew-resize;
  user-select: none;
}

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

/* Subtle GPU-composited blueprint animations */
.cv24-shield-arc {
  animation: cv24ArcFlow 6s linear infinite;
}

.cv24-bridge-flow {
  animation: cv24Bridge 2.2s linear infinite;
}

.cv24-alert-beam {
  animation: cv24Alert 1.8s linear infinite;
}

@keyframes cv24ArcFlow {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -28; }
}

@keyframes cv24Bridge {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -16; }
}

@keyframes cv24Alert {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: 14; }
}

/* Interactive Range Slider + 3 Preset Buttons */
.cv24-controls-bar {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1rem 1.15rem;
  background: #EFF2F5;
  border-top: 1px solid rgba(10, 26, 51, 0.14);
}

@media (min-width: 820px) {
  .cv24-controls-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem;
    padding: 1rem 1.35rem;
  }
}

.cv24-slider-group {
  flex: 1 1 auto;
  min-width: 0;
}

.cv24-slider-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0A1A33;
  margin-bottom: 0.35rem;
}

.cv24-slider-val {
  color: #B5420B;
}

.cv24-range-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.cv24-end-cap {
  flex: 0 0 auto;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1C4A75;
}

.cv24-range {
  -webkit-appearance: none;
  appearance: none;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: 44px;
  min-height: 44px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

.cv24-range::-webkit-slider-runnable-track {
  height: 10px;
  border-radius: 4px;
  background: linear-gradient(90deg, #1C4A75 0%, #579CCD 48%, #F26822 100%);
  border: 1px solid #0A1A33;
}

.cv24-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 44px;
  margin-top: -18px;
  border-radius: 6px;
  background: #0A1A33;
  border: 3px solid #F26822;
  box-shadow: 0 3px 10px rgba(10, 26, 51, 0.35);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.cv24-range::-webkit-slider-thumb:hover {
  background: #1C4A75;
  transform: scale(1.04);
}

.cv24-range::-moz-range-track {
  height: 10px;
  border-radius: 4px;
  background: linear-gradient(90deg, #1C4A75 0%, #579CCD 48%, #F26822 100%);
  border: 1px solid #0A1A33;
}

.cv24-range::-moz-range-thumb {
  width: 28px;
  height: 44px;
  border-radius: 6px;
  background: #0A1A33;
  border: 3px solid #F26822;
  box-shadow: 0 3px 10px rgba(10, 26, 51, 0.35);
}

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

.cv24-preset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.55rem 0.95rem;
  border-radius: 6px;
  border: 2px solid #0A1A33;
  background: #FFFFFF;
  color: #0A1A33;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cv24-preset:hover {
  background: #E8F2FA;
  border-color: #1C4A75;
}

.cv24-preset[aria-pressed="true"] {
  background: #0A1A33;
  color: #FFFFFF;
  border-color: #F26822;
}

/* Synced 4-Pillar Architectural Readout Badges */
.cv24-readouts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .cv24-readouts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .cv24-readouts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.cv24-badge {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
  background: #FFFFFF;
  border: 1.5px solid rgba(10, 26, 51, 0.16);
  border-top: 4px solid #1C4A75;
  border-radius: 8px;
  padding: 0.95rem 1rem;
  box-shadow: 0 6px 18px -14px rgba(10, 26, 51, 0.22);
  transition: border-top-color 0.25s ease, background-color 0.25s ease;
}

.cv24-shell[data-mode="exposed"] .cv24-badge {
  border-top-color: #F26822;
  background: #FFFCFA;
}

.cv24-shell[data-mode="protected"] .cv24-badge {
  border-top-color: #2E72AC;
  background: #FAFDFE;
}

.cv24-badge-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.cv24-badge-title {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.25;
  color: #0A1A33;
}

.cv24-badge-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #E8F2FA;
  color: #1C4A75;
}

.cv24-shell[data-mode="exposed"] .cv24-badge-tag {
  background: #FEF1EA;
  color: #B5420B;
}

.cv24-shell[data-mode="protected"] .cv24-badge-tag {
  background: #0A1A33;
  color: #FFFFFF;
}

.cv24-badge-copy {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.52;
  color: #334155;
}

@media (max-width: 480px) {
  .cv24-stage-bar {
    padding: 0.55rem 0.7rem;
  }

  .cv24-controls-bar {
    padding: 0.85rem 0.85rem;
  }

  .cv24-presets {
    width: 100%;
  }

  .cv24-preset {
    flex: 1 1 auto;
    padding: 0.55rem 0.65rem;
    font-size: 0.8rem;
  }
}

/* Reduced motion & paused state */
@media (prefers-reduced-motion: reduce) {
  .cv24-shell *,
  .cv24-shell *::before,
  .cv24-shell *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

html.cvm-paused .cv24-shell * {
  animation-play-state: paused !important;
}
