/* Custom primary colour (#a1afc9, a muted blue-grey).
   Material derives the header, links and a few UI accents from these tokens;
   they are kept together here so the palette can be tuned in one place.
   The header background is light, so the text on it is dark. */
:root,
[data-md-color-primary] {
  --md-primary-fg-color:        #a1afc9;
  --md-primary-fg-color--light: #c0cade;
  --md-primary-fg-color--dark:  #8494b6;
  --md-primary-bg-color:        #1f2a3a;
  --md-primary-bg-color--light: rgba(31, 42, 58, 0.72);
  /* Links need more contrast than the header on a white page. */
  --md-typeset-a-color:         #5b6f92;
}

/* Feature clips embedded in the "What you can do" cards. One card per row. */
.md-typeset .grid.video-cards {
  grid-template-columns: 1fr;
}

.clip {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0.8rem 0 0;
  background: #000000;
  border: 1px solid #dbe3ec;
  border-radius: 6px;
  object-fit: cover;
}

/* Responsive 16:9 video embeds used by the workflow guides. */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.8rem;
  margin: 0.8rem 0 1.2rem;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0.8rem 0 1.2rem;
  background: #000000;
  border-radius: 4px;
  overflow: hidden;
}

.video-grid .video-frame {
  margin: 0;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* The module list is long: keep the primary sidebar scrollable on desktop
   instead of letting its content run past the viewport. */
@media screen and (min-width: 76.25em) {
  .md-sidebar--primary {
    height: calc(100vh - 2.4rem);
    max-height: calc(100vh - 2.4rem);
  }
  .md-sidebar--primary .md-sidebar__scrollwrap {
    height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}
