.guide-hero {
  position: relative;
  overflow-x: clip;
  padding-top: 84px;
  padding-bottom: 78px;
  border-bottom: 1px solid var(--color-line);
  background-color: var(--color-bg);
  background-image:
    linear-gradient(var(--color-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-line) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center top;
}

.guide-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--color-bg), transparent, var(--color-bg));
  pointer-events: none;
}

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

.guide-hero h1 {
  max-width: 760px;
  margin-top: 24px;
  margin-bottom: 0;
}

.guide-lead {
  max-width: 720px;
  margin-top: 24px;
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 19px;
  line-height: 1.8;
}

.guide-actions {
  display: flex;
  margin-top: 30px;
  flex-wrap: wrap;
  gap: 14px;
}

.guide-facts {
  display: grid;
  margin: 48px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--color-line);
  list-style: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.guide-facts li {
  min-width: 0;
  padding-inline: 20px;
  border-left: 1px solid var(--color-line);
}

.guide-facts li:first-child {
  padding-left: 0;
  border-left: 0;
}

.guide-facts strong,
.guide-facts span {
  display: block;
}

.guide-facts strong {
  font-family: var(--font-mono);
  font-size: 20px;
}

.guide-facts span {
  margin-top: 5px;
  color: var(--color-muted);
  font-size: 12px;
}

.guide-article {
  padding-top: 48px;
  padding-bottom: var(--section-space);
}

.guide-intro {
  padding-bottom: 22px;
}

.guide-section {
  padding-top: 68px;
  padding-bottom: 18px;
  border-top: 1px solid var(--color-line);
}

.guide-section + .guide-section {
  margin-top: 52px;
}

.guide-section h2 {
  margin-top: 10px;
}

.guide-section h3 {
  margin-top: 38px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-line);
  font-size: 24px;
}

.guide-section p,
.guide-intro p {
  line-height: 1.88;
}

.chapter-code {
  color: var(--color-accent-strong);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
}

.guide-section .table-scroll {
  margin-top: 30px;
  margin-bottom: 30px;
}

.guide-section pre {
  margin-top: 22px;
  margin-bottom: 22px;
}

.ticket-template {
  margin: 30px 0;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-panel);
}

.ticket-template-head {
  padding: 13px 18px;
  border-bottom: 1px solid var(--color-line);
  color: var(--color-accent-strong);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
}

.ticket-template pre {
  margin: 0;
  border: 0;
  border-radius: 0;
}

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

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

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

  .guide-actions .btn {
    width: 100%;
  }

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

  .guide-facts li:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .guide-section {
    padding-top: 54px;
  }

  .guide-section + .guide-section {
    margin-top: 38px;
  }

  .guide-section h3 {
    font-size: 21px;
  }
}

@media (max-width: 420px) {
  .guide-facts {
    grid-template-columns: 1fr;
  }

  .guide-facts li,
  .guide-facts li:first-child,
  .guide-facts li:nth-child(3) {
    padding: 0 0 16px;
    border-bottom: 1px solid var(--color-line);
    border-left: 0;
  }

  .guide-facts li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .guide-article {
    padding-top: 34px;
  }
}