.deepdoc-hero {
  position: relative;
  overflow-x: clip;
  border-bottom: 1px solid var(--color-border);
  background-image: var(--gradient-hero);
}

.deepdoc-hero::after {
  position: absolute;
  right: max(var(--gutter), calc((100vw - var(--content-width)) / 2 + var(--gutter)));
  bottom: -86px;
  width: 240px;
  height: 240px;
  border: 1px solid var(--color-globe-line);
  border-radius: var(--radius-pill);
  content: "";
  opacity: .12;
  pointer-events: none;
}

.deepdoc-hero .reading-wrap {
  position: relative;
  z-index: 1;
}

.deepdoc-hero h1 {
  max-width: 760px;
}

.deepdoc-lead {
  max-width: 760px;
  margin-bottom: 26px;
  color: var(--color-text-muted);
  font-size: 19px;
}

.deepdoc-route-note {
  max-width: 760px;
  margin-bottom: 0;
}

.deepdoc-route-note a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: .2em;
}

.deepdoc {
  padding-top: 42px;
  padding-bottom: var(--section-space);
}

.deepdoc .toc-tabs {
  top: 12px;
}

.deepdoc-section {
  width: 100%;
  max-width: var(--reading-width);
  margin-inline: auto;
  padding-top: 72px;
  color: var(--color-text-muted);
}

.deepdoc-section:first-of-type {
  padding-top: 24px;
}

.deepdoc-section + .deepdoc-section {
  margin-top: 28px;
  border-top: 1px solid var(--color-border);
}

.deepdoc-section h2 {
  color: var(--color-text);
}

.deepdoc-section h3 {
  margin-top: 38px;
  color: var(--color-text);
  font-size: 24px;
}

.deepdoc-section p {
  text-align: justify;
  text-wrap: pretty;
}

.deepdoc-section > p a,
.deepdoc-section .callout a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}

.chapter-mark {
  margin-bottom: 12px;
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-align: left;
}

.deepdoc-section .table-scroll {
  margin: 30px 0;
}

.deepdoc-section .callout {
  text-align: left;
}

.deepdoc-section .callout p {
  text-align: left;
}

.deepdoc-section pre {
  margin: 26px 0;
}

.deepdoc-section .promo-block {
  max-width: none;
}

.deepdoc-section .promo-block p {
  text-align: left;
}

@media (max-width: 768px) {
  .deepdoc-hero::after {
    display: none;
  }

  .deepdoc-lead {
    font-size: 17px;
  }

  .deepdoc {
    padding-top: 26px;
  }

  .deepdoc-section {
    padding-top: 58px;
  }

  .deepdoc-section h3 {
    margin-top: 30px;
    font-size: 21px;
  }

  .deepdoc-section p {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .deepdoc .toc-tabs {
    margin-bottom: 28px;
  }

  .deepdoc-section:first-of-type {
    padding-top: 12px;
  }

  .deepdoc-section .table-scroll {
    margin-top: 24px;
    margin-bottom: 24px;
  }
}