/* cv14.css — Cornerstone Insurance Restaurants A5 Tabbed Architectural Blueprint
   Scoped strictly to .cv14-* classes. Precision Inland Piedmont blueprint styling. */

.cv14-sec {
  overflow-x: clip;
}

.cv14-shell {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Top horizontal architectural folder/spec tab bar */
.cv14-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  margin-bottom: -1px;
  position: relative;
  z-index: 2;
}

.cv14-tab {
  min-height: 48px;
  min-width: 44px;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid rgba(10, 26, 51, 0.24);
  border-bottom: 1.5px solid #0A1A33;
  border-radius: 8px 8px 0 0;
  background: #EFF2F5;
  color: #0A1A33;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-align: left;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cv14-tab:hover {
  background: #FFFFFF;
  border-color: #1C4A75;
}

.cv14-tab-code {
  flex: 0 0 auto;
  padding: 0.18rem 0.42rem;
  border-radius: 4px;
  background: #FFFFFF;
  border: 1px solid rgba(10, 26, 51, 0.22);
  color: #B5420B;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.cv14-tab-text {
  min-width: 0;
}

.cv14-tab.is-active {
  background: #0A1A33;
  color: #FFFFFF;
  border-color: #0A1A33;
  border-top: 3px solid #F26822;
}

.cv14-tab.is-active .cv14-tab-code {
  background: #F26822;
  border-color: #F26822;
  color: #0A1A33;
}

.cv14-tab:focus-visible {
  outline: 3px solid #B5420B;
  outline-offset: 2px;
}

/* Full-width architectural schematic stage (locked 960/390, CLS = 0.000) */
.cv14-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 960 / 390;
  background: #0A1A33;
  border: 2px solid #0A1A33;
  border-radius: 0 8px 0 0;
  overflow: hidden;
  box-shadow: 0 12px 28px -18px rgba(10, 26, 51, 0.45);
}

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

/* Blueprint layer highlighting (CSS-driven, zero reflow) */
.cv14-layer {
  opacity: 0.28;
  transition: opacity 0.3s ease;
}

.cv14-zone-fill {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cv14-shell[data-layer="boh"] .cv14-layer-boh,
.cv14-shell[data-layer="foh"] .cv14-layer-foh,
.cv14-shell[data-layer="bar"] .cv14-layer-bar,
.cv14-shell[data-layer="cont"] .cv14-layer-cont {
  opacity: 1;
}

.cv14-shell[data-layer="boh"] .cv14-layer-boh .cv14-zone-fill,
.cv14-shell[data-layer="foh"] .cv14-layer-foh .cv14-zone-fill,
.cv14-shell[data-layer="bar"] .cv14-layer-bar .cv14-zone-fill {
  opacity: 1;
}

/* When Continuity layer is active, keep floorplan readable beneath perimeter */
.cv14-shell[data-layer="cont"] .cv14-layer-boh,
.cv14-shell[data-layer="cont"] .cv14-layer-foh,
.cv14-shell[data-layer="cont"] .cv14-layer-bar {
  opacity: 0.52;
}

/* GPU-composited drafting circuit animations */
.cv14-flow {
  animation: cv14-dash-run 2.4s linear infinite;
}

.cv14-flow-slow {
  animation: cv14-dash-run 3.8s linear infinite;
}

.cv14-perimeter {
  animation: cv14-dash-run 4.6s linear infinite;
}

.cv14-radar {
  transform-box: fill-box;
  transform-origin: center;
  animation: cv14-radar-pulse 2.6s ease-out infinite;
}

/* Coverage Matrix & Policy Feature Panel below stage */
.cv14-panel {
  background: #FFFFFF;
  border: 2px solid #0A1A33;
  border-top: 4px solid #F26822;
  border-radius: 0 0 10px 10px;
  padding: clamp(1.15rem, 2.5vw, 1.75rem);
  box-shadow: 0 2px 6px rgba(10, 26, 51, 0.06), 0 18px 36px -22px rgba(10, 26, 51, 0.22);
  min-width: 0;
}

.cv14-panel-head {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.cv14-spec-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.24rem 0.65rem;
  border-radius: 4px;
  background: #FEF1EA;
  border: 1px solid rgba(181, 66, 11, 0.3);
  border-left: 4px solid #F26822;
  color: #B5420B;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.cv14-panel-title {
  margin: 0;
  font-size: clamp(1.18rem, 2vw, 1.45rem);
  font-weight: 800;
  line-height: 1.22;
  color: #0A1A33;
}

.cv14-panel-lead {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #334155;
  max-width: 72ch;
}

/* Animated architectural coverage meters */
.cv14-meters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  margin-bottom: 1.25rem;
  background: #EFF2F5;
  border: 1px solid rgba(10, 26, 51, 0.14);
  border-radius: 8px;
}

.cv14-meter {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  min-width: 0;
}

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

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

.cv14-meter-v {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #B5420B;
  white-space: nowrap;
}

.cv14-meter-track {
  height: 9px;
  width: 100%;
  border-radius: 4px;
  background: rgba(10, 26, 51, 0.14);
  overflow: hidden;
}

.cv14-meter-bar {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #1C4A75 0%, #2E72AC 100%);
  transform-origin: left center;
  transform: scaleX(var(--cv14-fill, 0.8));
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.cv14-meter-bar.is-orange {
  background: linear-gradient(90deg, #B5420B 0%, #F26822 100%);
}

/* Policy-feature callout cards */
.cv14-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.cv14-card {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid rgba(10, 26, 51, 0.18);
  border-left: 4px solid #1C4A75;
  border-radius: 8px;
  padding: 1rem 1.05rem;
  min-width: 0;
}

.cv14-card-code {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #B5420B;
}

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

.cv14-card-body {
  margin: 0 0 0.75rem;
  font-size: 0.89rem;
  line-height: 1.52;
  color: #334155;
  flex: 1 1 auto;
}

.cv14-card-foot {
  display: block;
  padding-top: 0.55rem;
  border-top: 1px dashed rgba(10, 26, 51, 0.18);
  font-size: 0.78rem;
  font-weight: 700;
  color: #1C4A75;
}

/* Keyframes */
@keyframes cv14-dash-run {
  from { stroke-dashoffset: 44; }
  to { stroke-dashoffset: 0; }
}

@keyframes cv14-radar-pulse {
  0% { transform: scale(0.72); opacity: 0.95; }
  100% { transform: scale(1.42); opacity: 0; }
}

/* Responsive stacking (zero overflow at 390px) */
@media (max-width: 860px) {
  .cv14-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 0.5rem;
  }
  .cv14-tab {
    border-radius: 8px;
    border-bottom: 1.5px solid rgba(10, 26, 51, 0.24);
  }
  .cv14-stage {
    border-radius: 8px 8px 0 0;
  }
  .cv14-meters,
  .cv14-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 440px) {
  .cv14-tabs {
    grid-template-columns: minmax(0, 1fr);
  }
}
