/* Inline explainer videos.
   Usage in markdown (see docs/CONTRIBUTING-video.md):

   <figure class="bo-video" markdown>
   <video controls preload="metadata" poster="../assets/video/baseengine-poster.jpg">
     <source src="../assets/video/baseengine.mp4" type="video/mp4">
     Your browser does not support embedded video.
     <a href="../assets/video/baseengine.mp4">Download the video</a>.
   </video>
   <figcaption>How BaseEngine fills reporting gaps · 90 sec</figcaption>
   </figure>
*/

.bo-video {
  margin: 1.5rem 0 2rem;
  padding: 0;
}

.bo-video video {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  background: var(--md-default-bg-color--light, #000);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
}

.bo-video figcaption {
  margin-top: .5rem;
  font-size: .78rem;
  color: var(--md-default-fg-color--light);
  line-height: 1.5;
}

/* Marks a page section that has a video companion, so readers scanning
   for the visual explanation can find it. */
.bo-video-badge {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .12rem .45rem;
  border-radius: 3px;
  vertical-align: middle;
  margin-left: .4rem;
  background: var(--md-accent-fg-color);
  color: var(--md-primary-bg-color, #000);
}
