/* cv26.css — Cornerstone Insurance Transportation / Trucking Insurance (Archetype A3: Horizontal Timeline Ribbon)
   Inland Piedmont architectural blueprint palette. Strictly scoped to .cv26-* classes. Zero CLS, WCAG 2.2 AA. */

.cv26-shell {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
  min-width: 0;
}

.cv26-blueprint-frame {
  background: var(--cv-paper, #FFFFFF);
  border: 1.5px solid var(--cv-line-strong, rgba(10, 26, 51, 0.28));
  border-radius: 8px;
  box-shadow: var(--cv-shadow, 0 16px 36px -18px rgba(10, 26, 51, 0.2));
  overflow: hidden;
  min-width: 0;
}

.cv26-top-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.7rem 1.15rem;
  background: #0A1A33;
  color: #FFFFFF;
  border-bottom: 2px solid #F26822;
}

.cv26-keystone-group {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

/* Stacked 3-slab Cornerstone masonry mark */
.cv26-slabs {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  width: 18px;
  flex: 0 0 auto;
}

.cv26-slabs span {
  display: block;
  height: 3px;
  background: #579CCD;
  border-radius: 1px;
}

.cv26-slabs span:first-child {
  width: 12px;
  background: #F26822;
}

.cv26-slabs span:nth-child(2) {
  width: 15px;
}

.cv26-slabs span:last-child {
  width: 18px;
}

.cv26-dwg-code {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #E8F2FA;
}

.cv26-corridor-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.65rem;
  border-radius: 4px;
  background: #F26822;
  color: #0A1A33;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Locked aspect-ratio blueprint stage (0.000 CLS) */
.cv26-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 960 / 360;
  background: #0A1A33;
  overflow: hidden;
}

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

/* Stage visibility & smooth transitions */
.cv26-scene {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.34s ease, transform 0.34s ease;
  pointer-events: none;
}

.cv26-shell[data-step="1"] .cv26-scene-1,
.cv26-shell[data-step="2"] .cv26-scene-2,
.cv26-shell[data-step="3"] .cv26-scene-3,
.cv26-shell[data-step="4"] .cv26-scene-4 {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Blueprint bottom datum progress trace */
.cv26-datum-progress {
  stroke-dasharray: 848;
  stroke-dashoffset: 636;
  transition: stroke-dashoffset 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.cv26-shell[data-step="1"] .cv26-datum-progress { stroke-dashoffset: 752; }
.cv26-shell[data-step="2"] .cv26-datum-progress { stroke-dashoffset: 532; }
.cv26-shell[data-step="3"] .cv26-datum-progress { stroke-dashoffset: 312; }
.cv26-shell[data-step="4"] .cv26-datum-progress { stroke-dashoffset: 0; }

.cv26-shell[data-step="1"] .cv26-node-1,
.cv26-shell[data-step="2"] .cv26-node-1,
.cv26-shell[data-step="2"] .cv26-node-2,
.cv26-shell[data-step="3"] .cv26-node-1,
.cv26-shell[data-step="3"] .cv26-node-2,
.cv26-shell[data-step="3"] .cv26-node-3,
.cv26-shell[data-step="4"] .cv26-node {
  fill: #F26822;
  stroke: #FFFFFF;
}

/* GPU-composited telemetry pulses */
.cv26-trace {
  animation: cv26-dash 1.8s linear infinite;
}

.cv26-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: cv26-ring 2.1s ease-out infinite;
}

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

@keyframes cv26-ring {
  0% { transform: scale(0.76); opacity: 0.9; }
  80% { transform: scale(1.38); opacity: 0; }
  100% { transform: scale(1.38); opacity: 0; }
}

/* Horizontal 4-Milestone Connected Progress Rail */
.cv26-rail-wrap {
  position: relative;
  padding: 1.05rem 1.15rem 1.1rem;
  background: #EFF2F5;
  border-top: 1px solid var(--cv-line, rgba(10, 26, 51, 0.14));
}

.cv26-rail-track {
  position: relative;
  height: 6px;
  border-radius: 3px;
  background: rgba(10, 26, 51, 0.14);
  margin-bottom: 0.85rem;
  overflow: hidden;
}

.cv26-rail-fill {
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, #1C4A75 0%, #F26822 100%);
  border-radius: 3px;
  transition: width 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.cv26-shell[data-step="1"] .cv26-rail-fill { width: 25%; }
.cv26-shell[data-step="2"] .cv26-rail-fill { width: 50%; }
.cv26-shell[data-step="3"] .cv26-rail-fill { width: 75%; }
.cv26-shell[data-step="4"] .cv26-rail-fill { width: 100%; }

.cv26-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.cv26-step {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 52px;
  min-width: 44px;
  padding: 0.55rem 0.75rem;
  text-align: left;
  background: #FFFFFF;
  border: 1.5px solid rgba(10, 26, 51, 0.22);
  border-radius: 6px;
  color: #0A1A33;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cv26-step:hover {
  background: #E8F2FA;
  border-color: #1C4A75;
}

.cv26-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  background: #EFF2F5;
  color: #0A1A33;
  font-size: 0.8rem;
  font-weight: 800;
  flex: 0 0 auto;
}

.cv26-step-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cv26-step-kicker {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #B5420B;
  line-height: 1.15;
}

.cv26-step-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0A1A33;
  line-height: 1.25;
}

.cv26-step[aria-selected="true"] {
  background: #0A1A33;
  border-color: #0A1A33;
  border-left: 4px solid #F26822;
  color: #FFFFFF;
}

.cv26-step[aria-selected="true"] .cv26-step-num {
  background: #F26822;
  color: #0A1A33;
}

.cv26-step[aria-selected="true"] .cv26-step-kicker {
  color: #FF9A62;
}

.cv26-step[aria-selected="true"] .cv26-step-label {
  color: #FFFFFF;
}

/* Concise Architectural Narrative Strip */
.cv26-narrative {
  background: #FFFFFF;
  border: 1.5px solid var(--cv-line-strong, rgba(10, 26, 51, 0.24));
  border-left: 5px solid #F26822;
  border-radius: 8px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 12px 26px -18px rgba(10, 26, 51, 0.2);
  min-width: 0;
}

.cv26-narr-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.65rem;
}

.cv26-narr-head {
  min-width: 0;
  flex: 1 1 18rem;
}

.cv26-stage-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #B5420B;
  margin-bottom: 0.22rem;
}

.cv26-narr-title {
  margin: 0;
  font-size: clamp(1.12rem, 2vw, 1.36rem);
  font-weight: 800;
  line-height: 1.22;
  color: #0A1A33;
}

.cv26-pager {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
}

.cv26-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0.45rem 0.85rem;
  border: 1.5px solid #0A1A33;
  border-radius: 6px;
  background: #FFFFFF;
  color: #0A1A33;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cv26-nav-btn:hover {
  background: #0A1A33;
  color: #FFFFFF;
  border-color: #F26822;
}

.cv26-narr-body {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.58;
  color: #334155;
  max-width: 66rem;
}

.cv26-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.cv26-spec {
  background: #EFF2F5;
  border: 1px solid rgba(10, 26, 51, 0.14);
  border-radius: 6px;
  padding: 0.8rem 0.95rem;
  min-width: 0;
}

.cv26-spec-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #1C4A75;
  margin-bottom: 0.28rem;
}

.cv26-spec-val {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.48;
  color: #0A1A33;
}

/* Responsive wrapping — zero overflow on 390px mobile */
@media (max-width: 820px) {
  .cv26-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cv26-specs {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .cv26-top-bar {
    padding: 0.65rem 0.85rem;
  }
  .cv26-rail-wrap {
    padding: 0.85rem;
  }
  .cv26-step {
    padding: 0.5rem 0.6rem;
    gap: 0.5rem;
  }
  .cv26-step-label {
    font-size: 0.82rem;
  }
  .cv26-narrative {
    padding: 1rem;
  }
}

/* Pause & reduced-motion guards */
html.cvm-paused .cv26-sec *,
html.cvm-paused .cv26-sec *::before,
html.cvm-paused .cv26-sec *::after {
  animation-play-state: paused !important;
}

@media (prefers-reduced-motion: reduce) {
  .cv26-sec *,
  .cv26-sec *::before,
  .cv26-sec *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}
