/* A guide's video (video.js): a panel the shape of the player. Until it is played it shows the
   video's poster under its title, with a play button, as one link to the video. */
.help-video {
  max-width: 60rem;
  margin: 1.75rem 0 0;
  aspect-ratio: 16 / 9;
  display: grid;
  border: 1px solid var(--hairline);
  border-radius: 0.375rem;
  background: var(--panel);
  overflow: hidden;
}
.help-video a {
  position: relative;
  display: block;
  color: var(--ink);
  text-decoration: none;
}
.help-video img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* The title along the top and the note along the foot, each on a shade that keeps it readable
   over any poster. */
.help-video-title,
.help-video small {
  position: absolute;
  left: 0;
  right: 0;
  padding: 0.9rem 1.1rem;
}
.help-video-title {
  top: 0;
  padding-bottom: 2.5rem;
  background: linear-gradient(rgb(11 12 15 / 0.92), rgb(11 12 15 / 0));
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.3;
}
.help-video small {
  bottom: 0;
  padding-top: 3rem;
  background: linear-gradient(
    rgb(11 12 15 / 0),
    rgb(11 12 15 / 0.88) 45%,
    rgb(11 12 15 / 0.96)
  );
  color: var(--ink-2);
  font-size: 0.8125rem;
}
.help-video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4.25rem;
  height: 3rem;
  margin: -1.5rem 0 0 -2.125rem;
  border-radius: 0.75rem;
  background: var(--ink);
  box-shadow: 0 0 0 1px rgb(11 12 15 / 0.5);
}
.help-video-play::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -0.6rem 0 0 -0.4rem;
  border-style: solid;
  border-width: 0.6rem 0 0.6rem 1rem;
  border-color: transparent transparent transparent var(--panel);
}
.help-video a:hover .help-video-play,
.help-video a:focus-visible .help-video-play {
  box-shadow: 0 0 0 0.3rem rgb(231 233 238 / 0.3);
}
.help-video a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -4px;
}
.help-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* The videos page: every guide's video as a card in a grid, each a link to its guide. */
.help-video-grid,
.legal ul.help-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1rem;
  margin: 1rem 0 2.25rem;
  padding: 0;
  list-style: none;
}
.help-video-grid .help-video {
  max-width: none;
  margin: 0;
}
.help-video-grid .help-video-title {
  padding: 0.7rem 0.8rem 2rem;
  font-size: 0.9375rem;
}
.help-video-grid .help-video-play {
  width: 3.25rem;
  height: 2.25rem;
  margin: -1.125rem 0 0 -1.625rem;
  border-radius: 0.6rem;
}
.help-video-grid .help-video-play::after {
  margin: -0.45rem 0 0 -0.3rem;
  border-width: 0.45rem 0 0.45rem 0.75rem;
}
