.guide-hero {
  position: relative;
  max-width: 100%;
  overflow-x: clip;
  padding-top: 64px;
  padding-bottom: 56px;
}

.guide-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  align-items: stretch;
  gap: 16px;
}

.guide-hero-copy,
.guide-fact-board {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel);
  box-shadow: var(--shadow-panel), inset 0 0 0 1px var(--white-90);
}

.guide-hero-copy {
  display: flex;
  min-height: 440px;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
}

.guide-hero-copy h1 {
  max-width: 760px;
  margin-top: 20px;
}

.guide-hero-copy .lead {
  margin: 22px 0 0;
}

.guide-actions {
  margin-top: 24px;
}

.guide-route-note {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.guide-route-note a {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--accent-18);
  text-underline-offset: 3px;
}

.guide-fact-board {
  position: relative;
  overflow-x: clip;
  padding: 28px;
  background:
    linear-gradient(145deg, var(--accent-10), transparent 62%),
    var(--panel);
}

.fact-board-head {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}

.fact-board-head .mono {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .08em;
}

.guide-facts {
  display: grid;
  gap: 0;
  margin: 8px 0 0;
}

.guide-facts div {
  display: grid;
  min-width: 0;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding-top: 13px;
  padding-bottom: 13px;
}

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

.guide-facts dt {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
}

.guide-facts dd {
  min-width: 0;
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.guide-line-art {
  width: 100%;
  height: 72px;
  margin-top: 18px;
  color: var(--accent);
  opacity: .7;
}

.guide-document {
  padding-top: 40px;
}

.guide-reading {
  max-width: calc(960px + var(--gutter) + var(--gutter));
}

.guide-prose {
  position: relative;
}

.guide-prose > .toc-tabs {
  margin-bottom: 56px;
}

.guide-chapter {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.guide-chapter + .guide-chapter {
  margin-top: 80px;
}

.guide-chapter .chapter-index {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
}

.guide-chapter h2 {
  margin-top: 0;
}

.guide-chapter h3 {
  position: relative;
  padding-left: 18px;
}

.guide-chapter h3::before {
  position: absolute;
  top: .48em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-10);
  content: "";
}

.guide-chapter p {
  margin-bottom: 18px;
  line-height: 1.9;
}

.guide-chapter .callout {
  margin-top: 28px;
  margin-bottom: 32px;
}

.guide-table {
  margin-top: 28px;
  margin-bottom: 36px;
}

.guide-chapter pre {
  margin-top: 24px;
  margin-bottom: 28px;
}

.guide-promo {
  margin-top: 88px;
}

.guide-promo h3 {
  margin-bottom: 8px;
  padding-left: 0;
  font-size: 26px;
}

.guide-promo h3::before {
  display: none;
}

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

  .guide-hero-copy {
    min-height: auto;
  }

  .guide-fact-board {
    min-height: 0;
  }
}

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

  .guide-hero-copy {
    padding: 32px 26px;
  }

  .guide-fact-board {
    padding: 24px;
  }

  .guide-prose > .toc-tabs {
    margin-bottom: 44px;
  }

  .guide-chapter + .guide-chapter {
    margin-top: 64px;
  }
}

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

  .guide-hero-copy {
    padding: 26px 22px;
  }

  .guide-fact-board {
    padding: 20px;
  }

  .guide-facts div {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 8px;
  }

  .guide-line-art {
    height: 56px;
  }

  .guide-document {
    padding-top: 24px;
  }

  .guide-chapter {
    padding-top: 20px;
  }

  .guide-chapter + .guide-chapter {
    margin-top: 56px;
  }

  .guide-chapter h3 {
    padding-left: 16px;
  }

  .guide-promo {
    margin-top: 64px;
  }
}