/* cv25.css — Cornerstone Insurance Commercial Vehicle Insurance (Archetype A5: Tabbed Blueprint Matrix)
   Strictly scoped to .cv25-* | Inland Piedmont architectural blueprint | WCAG 2.2 AA | Zero CLS */

.cv25-blueprint {
  background: #FFFFFF;
  border: 2px solid #0A1A33;
  border-radius: 10px;
  box-shadow: var(--cv-shadow, 0 2px 4px rgba(10, 26, 51, 0.05), 0 16px 36px -18px rgba(10, 26, 51, 0.2));
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Top Horizontal Spec Tab Bar (A5) */
.cv25-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #EFF2F5;
  border-bottom: 2px solid #0A1A33;
  gap: 2px;
}

.cv25-tab {
  min-height: 56px;
  min-width: 44px;
  padding: 0.72rem 0.9rem;
  border: 0;
  border-top: 4px solid transparent;
  background: #E4EAF0;
  color: #0A1A33;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.18rem;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cv25-tab:hover {
  background: #F7FAFC;
  border-top-color: #2E72AC;
}

.cv25-tab.is-active,
.cv25-tab[aria-selected="true"] {
  background: #0A1A33;
  color: #FFFFFF;
  border-top-color: #F26822;
}

.cv25-tab-code {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #B5420B;
}

.cv25-tab.is-active .cv25-tab-code,
.cv25-tab[aria-selected="true"] .cv25-tab-code {
  color: #F6A478;
}

.cv25-tab-name {
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.25;
}

/* Blueprint Schematic Stage (Zero CLS Locked Aspect Ratio) */
.cv25-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 960 / 390;
  background: #0A1A33;
  border-bottom: 2px solid #0A1A33;
  overflow: hidden;
}

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

/* Spec Overlay Switching Inside Blueprint */
.cv25-spec-layer {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.34s ease, transform 0.34s ease;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0.985);
}

.cv25-spec-layer.is-active {
  opacity: 1;
  transform: scale(1);
}

/* Living Vector Drafting Motion (GPU-composited) */
.cv25-corridor-flow {
  animation: cv25HighwayFlow 2.8s linear infinite;
}

.cv25-scan-dash {
  animation: cv25DashMove 9s linear infinite;
}

@keyframes cv25HighwayFlow {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -32; }
}

@keyframes cv25DashMove {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -64; }
}

/* Active Spec Detail Panel */
.cv25-panel {
  padding: clamp(1rem, 2.2vw, 1.55rem);
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cv25-panel-head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.cv25-panel-intro {
  min-width: 0;
}

.cv25-spec-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #B5420B;
  background: #FEF1EA;
  border: 1px solid rgba(181, 66, 11, 0.25);
  border-left: 4px solid #F26822;
  padding: 0.22rem 0.65rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.cv25-panel-title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.12rem, 1.8vw, 1.36rem);
  font-weight: 800;
  color: #0A1A33;
  line-height: 1.22;
}

.cv25-panel-copy {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.58;
  color: #334155;
}

/* Animated Coverage Profile Meters */
.cv25-meters {
  min-width: 0;
  background: #EFF2F5;
  border: 1px solid rgba(10, 26, 51, 0.14);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
}

.cv25-meter {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.cv25-meter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.cv25-meter-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #0A1A33;
}

.cv25-meter-val {
  font-size: 0.74rem;
  font-weight: 800;
  color: #1C4A75;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cv25-meter-track {
  height: 9px;
  border-radius: 3px;
  background: rgba(10, 26, 51, 0.14);
  overflow: hidden;
}

.cv25-meter-bar {
  width: 100%;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #1C4A75 0%, #2E72AC 72%, #F26822 100%);
  transform-origin: left center;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 3 Concrete Policy-Feature Callout Cards */
.cv25-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.cv25-feature-card {
  min-width: 0;
  background: #F8FAFC;
  border: 1px solid rgba(10, 26, 51, 0.14);
  border-left: 4px solid #1C4A75;
  border-radius: 8px;
  padding: 0.95rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cv25-card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 22px;
  border-radius: 4px;
  background: #F26822;
  color: #0A1A33;
  font-size: 0.74rem;
  font-weight: 800;
}

.cv25-card-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0A1A33;
  line-height: 1.28;
}

.cv25-card-text {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #334155;
}

/* Mobile Responsive (Zero Horizontal Overflow at 390px) */
@media (max-width: 860px) {
  .cv25-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cv25-panel-head,
  .cv25-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 460px) {
  .cv25-tab {
    padding: 0.65rem 0.7rem;
  }
  .cv25-tab-name {
    font-size: 0.82rem;
  }
  .cv25-panel {
    padding: 0.9rem;
  }
}
