.doc-hero {
  position: relative;
  padding-top: 92px;
  padding-bottom: 76px;
  border-bottom: 1px solid var(--color-line);
  background:
    repeating-linear-gradient(90deg, transparent 0 46px, var(--color-accent-wash) 46px 47px),
    linear-gradient(180deg, var(--color-canvas), var(--color-panel));
  overflow: clip;
}

.doc-hero::after {
  position: absolute;
  top: 0;
  right: 8%;
  width: 32%;
  height: 100%;
  background: repeating-linear-gradient(90deg, var(--color-accent) 0 1px, transparent 1px 9px);
  content: "";
  opacity: 0.08;
  mask: linear-gradient(90deg, transparent, var(--color-ink), transparent);
  -webkit-mask: linear-gradient(90deg, transparent, var(--color-ink), transparent);
  pointer-events: none;
}

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

.doc-hero h1 {
  max-width: 720px;
  margin-top: 20px;
}

.doc-hero .lead {
  max-width: 720px;
}

.doc-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.doc-fact-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 760px;
  margin: 48px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--color-line);
  list-style: none;
}

.doc-fact-row li {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 3px;
  padding-right: 18px;
}

.doc-fact-row strong {
  font-family: var(--font-mono);
  font-size: 17px;
}

.doc-fact-row span {
  color: var(--color-ink-muted);
  font-size: 12px;
}

.doc-body {
  padding-top: 58px;
  padding-bottom: var(--section-space);
}

.doc-intro {
  margin-top: 0;
  margin-bottom: 34px;
}

.doc-article {
  color: var(--color-ink-muted);
}

.doc-section {
  padding-top: 72px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--color-line);
}

.doc-section:first-of-type {
  padding-top: 38px;
}

.doc-section:last-child {
  border-bottom: 0;
}

.doc-section h2 {
  max-width: 720px;
}

.doc-section h3 {
  margin-top: 38px;
  font-size: 23px;
}

.doc-section p {
  margin-bottom: 20px;
  line-height: 1.9;
}

.doc-section .table-scroll {
  margin-top: 32px;
  margin-bottom: 38px;
}

.doc-section pre {
  margin-top: 26px;
  margin-bottom: 28px;
}

.doc-section .callout {
  margin-top: 32px;
  margin-bottom: 32px;
}

.ticket-checklist {
  margin-top: 34px;
  margin-bottom: 38px;
  padding: 28px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-large);
  background: var(--color-panel);
  box-shadow: var(--shadow-soft);
}

.ticket-checklist h3 {
  margin-top: 0;
}

.ticket-checklist ul {
  margin-bottom: 0;
}

.ticket-checklist li {
  padding: 7px 0;
}

.doc-body > .promo-block {
  margin-top: 76px;
}

@media (max-width: 768px) {
  .doc-hero {
    padding-top: 62px;
    padding-bottom: 58px;
  }

  .doc-hero::after {
    display: none;
  }

  .doc-fact-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

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

  .doc-section h3 {
    margin-top: 32px;
    font-size: 21px;
  }
}

@media (max-width: 640px) {
  .doc-hero {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .doc-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .doc-hero-actions .btn {
    width: 100%;
  }

  .doc-fact-row {
    margin-top: 36px;
  }

  .doc-body {
    padding-top: 38px;
    padding-bottom: 68px;
  }

  .doc-section {
    padding-top: 50px;
  }

  .doc-section:first-of-type {
    padding-top: 26px;
  }

  .doc-section p {
    line-height: 1.82;
  }

  .ticket-checklist {
    padding: 21px;
  }
}