/* Help and linked legal documents. Keep promotional typography in extra.css.
   Relative units preserve browser and accessibility text scaling. */
.qc-help .md-typeset {
  --qc-help-body-size: 0.75rem;
  --qc-help-title-size: 1.2rem;
  --md-typeset-a-color: #1759a6;
  max-width: 70ch;
  margin-inline: auto;
  padding-inline: 1rem;
  font-size: var(--qc-help-body-size);
  line-height: 1.5;
}

.qc-help .md-typeset p,
.qc-help .md-typeset li {
  font-size: inherit;
  line-height: inherit;
}

.qc-help .md-typeset h1 {
  margin-top: 0.5em;
  margin-bottom: 0.65em;
  font-size: var(--qc-help-title-size);
  line-height: 1.25;
  font-weight: 700;
}

.qc-help .md-typeset h2 {
  font-size: 1.25em;
  margin-top: 1.25em;
  margin-bottom: 0.5em;
  line-height: 1.35;
}

.qc-help .md-typeset h3 {
  font-size: 1.1em;
  margin-top: 1.1em;
  margin-bottom: 0.4em;
  line-height: 1.4;
}

@media screen and (min-width: 48em) {
  .qc-help .md-typeset {
    --qc-help-body-size: 0.8rem;
    --qc-help-title-size: 1.3rem;
  }
}

.qc-help .md-typeset p,
.qc-help .md-typeset ul,
.qc-help .md-typeset ol {
  margin-block: 0.65em;
}

.qc-help .md-typeset li {
  margin-bottom: 0.35em;
}

/* Keep text links recognizable without relying on color alone. */
.qc-help .md-typeset a[href]:not(.headerlink):not(.md-button) {
  text-decoration-line: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
  text-decoration-skip-ink: auto;
}

.qc-help .md-typeset a[href]:not(.headerlink):not(.md-button):hover {
  color: #103e78;
  text-decoration-thickness: 0.14em;
}

.qc-help .md-typeset a[href]:not(.headerlink):not(.md-button):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

/* Keep inline help videos within the article on phones and tablets. */
.qc-help .md-typeset .help-video {
  display: block;
  width: 100%;
  max-width: 750px;
  height: auto;
  margin-inline: auto;
  background: #000;
}

.qc-help .md-typeset .help-video--portrait {
  max-width: 400px;
}

/* Compare related screenshots without shrinking them on phones. */
.qc-help .md-typeset .help-example-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-block: 1rem;
}

.qc-help .md-typeset .help-example-grid figure {
  display: block;
  width: 100%;
  max-width: 320px;
  min-width: 0;
  margin: 0;
  justify-self: center;
}

.qc-help .md-typeset .help-example-grid img {
  display: block;
  width: 100%;
  height: auto;
}

/* Two-step comparisons use the available desktop width. */
.qc-help .md-typeset .help-example-grid--pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media screen and (max-width: 47.99em) {
  .qc-help .md-typeset .help-example-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
