/* The promo video on the home page: the light one or the dark one, with the site, in the page's language
   (javascripts/videos.js). The same rules as Imparfait's documentation. */
.tutorial-video {
  margin: 1em 0;
}

.tutorial-video video {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 8px;
  background: var(--md-code-bg-color);
}

/* The promo is 16:9, and has music: the page never plays it on its own. */
.tutorial-video--promo video {
  aspect-ratio: 16 / 9;
}

[data-md-color-scheme="default"] .tutorial-video__dark,
[data-md-color-scheme="slate"] .tutorial-video__light {
  display: none;
}

/* spOken's two themes, instead of Material's indigo (the palette is "custom" in zensical.toml): the light one is ink on
   cream, the dark one lime on the app's own dark background. The same colours as the press kit and the promo video. */
[data-md-color-scheme="default"] {
  --md-primary-fg-color: #1c1c29;
  --md-primary-fg-color--light: #4b4743;
  --md-primary-fg-color--dark: #1c1c29;
  --md-primary-bg-color: #f3ede9;
  --md-accent-fg-color: #4b4743;
  --md-accent-fg-color--transparent: rgba(28, 28, 41, 0.07);
  --md-typeset-a-color: #1c1c29;
}

[data-md-color-scheme="default"] .md-typeset a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

[data-md-color-scheme="slate"] {
  --md-default-bg-color: #001623;
  --md-primary-fg-color: #e1ff00;
  --md-primary-fg-color--light: #ecff66;
  --md-primary-fg-color--dark: #c4de00;
  --md-primary-bg-color: #1c1c29;
  --md-accent-fg-color: #ecff66;
  --md-accent-fg-color--transparent: rgba(225, 255, 0, 0.1);
  --md-typeset-a-color: #e1ff00;
}

/* The header's mark follows the theme: ink on light, lime on dark. */
[data-md-color-scheme="slate"] .md-logo img {
  content: url("../assets/icon-dark.svg");
}
