/* ==========================================================================
   VTI SolutionVideoBriefing Component (v1.0)
   Dark-Tech Navy/Slate + Cyan/Amber Design System | CLS = 0 | 375px-1440px+
   ========================================================================== */
html {
  scroll-behavior: smooth;
}

.vti-vb-section,
.vti-vb-section--embedded {
  scroll-margin-top: 84px;
}

.vti-vb-section *,
.vti-vb-section--embedded * {
  box-sizing: border-box;
}

.vti-vb-section {
  background: radial-gradient(ellipse at 50% 0%, #0d2542 0%, #071524 72%, #050f1b 100%);
  padding: clamp(48px, 6vw, 76px) 0;
  border-top: 1px solid rgba(56, 189, 248, 0.16);
  border-bottom: 1px solid rgba(56, 189, 248, 0.16);
  color: #f8fafc;
}

.vti-vb-section--embedded {
  background: transparent;
  padding: 0;
  border: 0;
  margin: 36px 0;
}

.vti-vb-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.vti-vb-section--embedded .vti-vb-wrap {
  padding: 0;
  max-width: 100%;
}

.vti-vb-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 22px;
}

.vti-vb-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.34);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.vti-vb-title {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.95rem);
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
}

.vti-vb-sub {
  margin: 8px 0 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #cbd5e1;
  max-width: 720px;
}

/* Card shell (works on both dark and light pages) */
.vti-vb-shell {
  background: linear-gradient(155deg, #0d213b 0%, #071524 100%);
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 16px;
  padding: clamp(16px, 2.5vw, 26px);
  box-shadow: 0 18px 44px rgba(2, 10, 22, 0.38);
  color: #f8fafc;
}

/* FULL layout: video + 6 chapters below (<1280px) or right sidebar (>=1280px) */
.vti-vb-grid--full {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

@media (min-width: 1280px) {
  .vti-vb-grid--full {
    grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr);
    gap: 24px;
  }
}

/* COMPACT layout: 2 columns (video left, summary + 3 chapters + CTA right) */
.vti-vb-grid--compact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
}

@media (min-width: 900px) {
  .vti-vb-grid--compact {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 26px;
  }
}

/* Strict 16:9 video stage for CLS = 0 */
.vti-vb-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #040c17;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.42);
}

.vti-vb-poster,
.vti-vb-video,
.vti-vb-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.vti-vb-poster {
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.3s ease;
}

.vti-vb-facade {
  position: absolute;
  inset: 0;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  width: 100%;
  height: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vti-vb-facade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 12, 23, 0.14) 0%, rgba(4, 12, 23, 0.42) 100%);
  pointer-events: none;
}

.vti-vb-facade:hover .vti-vb-poster {
  transform: scale(1.02);
  filter: brightness(1.06);
}

.vti-vb-play {
  position: relative;
  z-index: 2;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(7, 21, 36, 0.82);
  border: 2px solid #38bdf8;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 8px rgba(56, 189, 248, 0.18), 0 12px 28px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.vti-vb-facade:hover .vti-vb-play {
  transform: scale(1.08);
  background: #0284c7;
  border-color: #7dd3fc;
}

.vti-vb-badges {
  position: absolute;
  z-index: 2;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}

.vti-vb-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  background: rgba(7, 21, 36, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #e0f2fe;
  backdrop-filter: blur(4px);
}

.vti-vb-pill-badge--amber {
  border-color: rgba(245, 158, 11, 0.55);
  color: #fde68a;
}

/* Mandatory naming note under video */
.vti-vb-note {
  margin: 10px 0 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.55);
  border-left: 3px solid #38bdf8;
  padding: 8px 12px;
  border-radius: 6px;
}

/* Chapter list */
.vti-vb-chapters-title {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 0 0 10px;
}

.vti-vb-chapters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 640px) and (max-width: 1279px) {
  .vti-vb-grid--full .vti-vb-chapters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.vti-vb-ch {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 31, 54, 0.78);
  color: #e2e8f0;
  font-family: inherit;
  font-size: 0.86rem;
  line-height: 1.35;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.15s ease;
}

.vti-vb-ch:hover {
  border-color: rgba(56, 189, 248, 0.65);
  background: rgba(21, 46, 80, 0.95);
  color: #ffffff;
}

.vti-vb-ch.is-active {
  border-color: #38bdf8;
  background: rgba(14, 116, 144, 0.28);
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.28);
}

.vti-vb-ch-time {
  flex: 0 0 auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.16);
  color: #38bdf8;
}

.vti-vb-ch.is-active .vti-vb-ch-time {
  background: #38bdf8;
  color: #071524;
}

.vti-vb-ch-label {
  flex: 1 1 auto;
  font-weight: 600;
  min-width: 0;
}

/* Compact panel extras */
.vti-vb-compact-body h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.35;
}

.vti-vb-compact-body p {
  margin: 0 0 14px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #cbd5e1;
}

.vti-vb-compact-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 18px;
  border-radius: 8px;
  background: #f59e0b;
  color: #071524 !important;
  font-weight: 800;
  font-size: 0.88rem;
  text-decoration: none !important;
  transition: background-color 0.18s ease, transform 0.15s ease;
}

.vti-vb-compact-cta:hover {
  background: #fbbf24;
  transform: translateY(-1px);
}

/* Hero secondary Video CTA button */
.vti-btn-video-cta,
.ds-btn-video-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.55);
  color: #e0f2fe !important;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none !important;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.18s ease;
}

.vti-btn-video-cta:hover,
.ds-btn-video-cta:hover {
  background: rgba(56, 189, 248, 0.24);
  border-color: #38bdf8;
  color: #ffffff !important;
  transform: translateY(-1px);
}
