/* A part page's PDF and Markdown downloads (source/_ext/part_download_links.py,
   #2630), styled after web-static's download links: its text-link-arrow link,
   here in the text colour until hover, with a muted line of file details
   under it. */
/* Indented as the chapter cards above: sphinx-design's grid container pads
   its cards 0.75rem in from the text column. Two classes, to outrank the
   theme's .docutils.container, which unsets a container's padding. */
.mg-part-downloads.docutils {
  margin-top: 2.5rem;
  padding-left: 0.75rem;
}

/* The link's size is set on its paragraph, whose own font would otherwise
   make the line taller than the link and push the details line away. */
.mg-part-downloads p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.2;
}

.mg-part-downloads p.mg-part-download-meta {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  line-height: 1.2;
  color: var(--mg-text-muted);
}

a.mg-part-download-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
  color: var(--mg-black);
  text-decoration: none;
}

a.mg-part-download-link svg {
  transition: transform 0.15s;
}

a.mg-part-download-link:hover {
  color: var(--mg-ochre-text);
  text-decoration: underline;
}

a.mg-part-download-link:hover svg {
  transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
  a.mg-part-download-link svg {
    transition: none;
  }
}
