/* The large video player (docs/video-player.js): the video opens over the
   page, up to 1100px wide and never taller than the window. Close with the
   button, Esc, or a click on the dimmed page. Shared by every intro video
   in a page banner (2026-12-03). */
.vp-modal {
  width: min(1100px, 94vw, calc((100vh - 120px) * 16 / 9));
  max-width: none; max-height: none;
  padding: 0; border: 0; margin: auto;
  background: none; overflow: visible;
}
.vp-modal::backdrop { background: rgba(6, 14, 26, .86); }
html.vp-open { overflow: hidden; }
.vp-bar { display: flex; justify-content: flex-end; margin: 0 0 10px; }
.vp-close {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: var(--white, #fff);
  font: 600 14px/1 var(--font-body, system-ui, sans-serif);
  cursor: pointer;
}
.vp-close:hover { background: rgba(255, 255, 255, .16); }
.vp-close:focus-visible { outline: 3px solid var(--teal-500, #07c4c8); outline-offset: 3px; }
.vp-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.vp-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--navy-900, #10243e);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .5);
}
.vp-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

/* The end screen, when a page gives one: over the finished video. */
.vp-end {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  gap: 14px;
  padding: 40px 48px;
  background: linear-gradient(135deg, var(--white, #fff) 0%, var(--teal-100, #d6f3f4) 100%);
  color: var(--navy-700, #30455c);
}
.vp-end[hidden] { display: none; }
.vp-end-title { margin: 0; font: 600 32px/1.2 var(--font-display, Georgia, serif); color: var(--navy-700, #30455c); }
.vp-end-text { margin: 0; font: 400 18px/1.5 var(--font-body, system-ui, sans-serif); color: var(--navy-700, #30455c); }
.vp-end-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 6px; }
.vp-replay {
  padding: 0; border: 0; background: none;
  font: 600 15px/1.4 var(--font-body, system-ui, sans-serif);
  color: var(--navy-700, #30455c);
  text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer;
}
.vp-replay:focus-visible { outline: 3px solid var(--teal-500, #07c4c8); outline-offset: 3px; border-radius: 4px; }

/* A phone: the video runs edge to edge. */
@media (max-width: 560px) {
  .vp-modal { width: min(100vw, calc((100vh - 80px) * 16 / 9)); }
  .vp-frame { border-radius: 0; }
  .vp-bar { padding: 0 12px; }
  .vp-end { padding: 14px 16px; gap: 6px; }
  .vp-end-title { font-size: 18px; }
  .vp-end-text { display: none; }
  .vp-end .btn { padding: 10px 16px; font-size: 13px; }
}
