/* Documentation request links under every page (docs-theme/overrides/main.html). */
.docs-requests {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--md-default-fg-color--lightest);
}

.docs-requests__title {
  margin: 0 0 0.75rem;
  color: var(--md-default-fg-color--light);
  font-size: 0.7rem;
}

.docs-requests__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.md-typeset .docs-requests__link {
  margin: 0;
  padding: 0.4em 1em;
  font-size: 0.65rem;
}

/* Build timestamp and revision under every page (docs-theme/overrides/main.html). */
.docs-build {
  margin: 1rem 0 0;
  color: var(--md-default-fg-color--light);
  font-size: 0.6rem;
}

/* Swagger UI of an OpenAPI extra (scripts/docs.py openapi_page); ui.html sets the height. */
.md-typeset .docs-openapi {
  display: block;
  width: 100%;
  min-height: 70vh;
  border: 0;
}

/* Reader settings (docs-theme/overrides/main.html): text size and page width. */
.docs-text-s .md-content .md-typeset {
  font-size: 0.68rem;
}

.docs-text-l .md-content .md-typeset {
  font-size: 0.85rem;
}

.docs-text-xl .md-content .md-typeset {
  font-size: 0.95rem;
}

.docs-width-wide .md-grid {
  max-width: 80rem;
}

.docs-width-full .md-grid {
  max-width: none;
}

/* Settings panel under its header button. */
.docs-settings-wrap {
  position: relative;
}

.docs-settings {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 10;
  width: 15rem;
  padding: 0.6rem 0.8rem 0.8rem;
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.4rem;
  background: var(--md-default-bg-color);
  color: var(--md-default-fg-color);
  box-shadow: var(--md-shadow-z2);
  font-size: 0.65rem;
}

.docs-settings__title {
  margin: 0.6rem 0 0.3rem;
  color: var(--md-default-fg-color--light);
  font-weight: 700;
}

.docs-settings__swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.docs-settings__swatch {
  width: 1.1rem;
  height: 1.1rem;
  padding: 0;
  border: 1px solid var(--md-default-fg-color--lighter);
  border-radius: 50%;
  background: var(--md-primary-fg-color);
  cursor: pointer;
}

.docs-settings__swatch--accent {
  background: var(--md-accent-fg-color);
}

.docs-settings__swatch--default {
  border-style: dashed;
  background: none;
}

.docs-settings__swatch[aria-pressed="true"] {
  outline: 2px solid var(--md-default-fg-color);
  outline-offset: 2px;
}

.docs-settings__choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.docs-settings__choices button,
.docs-settings__reset {
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--md-default-fg-color--lighter);
  border-radius: 0.2rem;
  color: inherit;
  cursor: pointer;
}

.docs-settings__choices button[aria-pressed="true"] {
  border-color: var(--md-accent-fg-color);
  background: var(--md-accent-fg-color--transparent);
}

.docs-settings__zen {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.8rem;
  cursor: pointer;
}

.docs-settings__reset {
  margin-top: 0.8rem;
}

/* Zen mode: the page alone, without navigation. Only on screens wide enough for
   sidebars - on phones the navigation is a drawer anyway. */
.docs-zen-toggle {
  display: none;
}

.docs-zen-toggle__off,
.docs-zen .docs-zen-toggle__on {
  display: none;
}

.docs-zen .docs-zen-toggle__off {
  display: inline;
}

@media screen and (min-width: 60em) {
  .docs-zen-toggle {
    display: inline-block;
  }

  .docs-zen .md-sidebar--primary,
  .docs-zen .md-sidebar--secondary,
  .docs-zen .md-path,
  .docs-zen .md-footer__inner {
    display: none;
  }

  .docs-zen .md-content {
    max-width: 50rem;
    margin: 0 auto;
  }

  .docs-zen.docs-width-wide .md-content {
    max-width: 70rem;
  }

  .docs-zen.docs-width-full .md-content {
    max-width: none;
  }
}
