:root > * {
  --md-primary-fg-color: #4671b0;
  --md-accent-fg-color: #5297fe;
  --md-accent-fg-color--transparent: #5297fe1a;
}

[data-md-color-scheme="slate"] {
  --md-default-bg-color: #1a1a1d;
}

@media screen and (min-width: 76.25em) {
  .md-sidebar--primary .md-nav--primary > .md-nav__title {
    display: none;
  }
}

.float-left {
  float: left;
  height: auto;
  margin: 0 1.25rem 0.75rem 0;
}

.float-right {
  float: right;
  height: auto;
  margin: 0 0 0.75rem 1.25rem;
}

.addivox-purchase-button {
  display: inline-block;
  padding: 0.7rem 1rem;
  border-radius: 0.2rem;
  background: var(--md-primary-fg-color);
  color: var(--md-primary-bg-color) !important;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.addivox-purchase-button:hover,
.addivox-purchase-button:focus {
  background: var(--md-accent-fg-color);
  color: var(--md-primary-bg-color) !important;
}

.video-embed {
  position: relative;
  width: 100%;
  margin: 1rem 0;
  aspect-ratio: 16 / 9;
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media screen and (max-width: 600px) {
  .float-left {
    float: none;
    display: block;
    max-width: 100%;
    margin: 0 auto 1rem;
  }
}

/* mkdocs-with-pdf's default "min-height: 100vh" on every article/section
   triggers a WeasyPrint layout bug that silently truncates the PDF. */
@media print {
  article,
  section + section {
    min-height: 0 !important;
  }

  /* Bump up the default print body text size. Most pages are rendered as
     <section class="md-typeset">, not <article>, so target the class
     directly rather than the element (Material's .md-typeset font-size
     otherwise wins on those nested pages despite !important). */
  .md-typeset {
    font-size: 0.8rem !important;
  }

  /* Material's default 0.5em bullet spacing is too loose for print. */
  .md-typeset ol li,
  .md-typeset ul li {
    margin-bottom: 0.15em !important;
  }

  /* Material sets table font-size to .64rem, making it too small on top
     of the already-reduced base .md-typeset font-size above. */
  .md-typeset table {
    font-size: 0.75rem !important;
  }

  /* Material sets ol/ul to "display: flow-root" (a browser clearfix
     trick), which makes WeasyPrint push the list below any floated
     image instead of wrapping it alongside, like a paragraph would. */
  .md-typeset ol,
  .md-typeset ul {
    display: block !important;
  }

  /* No author/copyright are configured, so mkdocs-with-pdf's cover
     template renders the literal text "None" for each. */
  #doc-cover #author,
  #doc-cover #copyright {
    display: none !important;
  }

  /* WeasyPrint doesn't apply the legacy align="center" HTML attribute
     the way browsers do, so centred images end up left-aligned. */
  p[align="center"] {
    text-align: center !important;
  }

  /* The "PDF version available" notice on index.md is only relevant on
     the website, not inside the PDF itself. mkdocs-with-pdf rewrites
     every id to a page-path-prefixed form (e.g. "./:pdf-notice") when
     merging pages into the PDF, so match on a suffix rather than the
     exact id to catch both that and the website's plain "pdf-notice". */
  [id$="pdf-notice"] {
    display: none !important;
  }
}

/* Turn off the running section-title header in the top-right corner. */
@page {
  @top-right {
    content: '' !important;
  }
}

/* The "online version available" notice on index.md is only relevant in
   the PDF. mkdocs-with-pdf discards the .md-content wrapper when it pulls
   in each page's content, so this only matches (and hides it) on the
   website, the same way the hidden H1 above works on this page. */
.md-content [id$="web-notice"] {
  display: none;
}
