:root {
  --guide-reading-width: 66rem;
  --guide-line-height: 1.8;
  --guide-chapter-space: clamp(32px, 5vw, 56px);
}

.deepdoc-opening {
  display: grid;
  grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr);
  gap: clamp(20px, 5vw, 64px);
  align-items: end;
}

.deepdoc-opening .lede {
  margin-bottom: 12px;
}

.deepdoc-opening p:not(.kicker) {
  max-width: 43em;
}

.deepdoc-index li + li {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
}

.deepdoc-body {
  max-width: var(--guide-reading-width);
  line-height: var(--guide-line-height);
}

.deepdoc-body > .toc-tabs {
  margin-top: 0;
}

.deepdoc-chapter {
  padding-top: var(--guide-chapter-space);
}

.deepdoc-chapter + .deepdoc-chapter {
  margin-top: var(--guide-chapter-space);
  border-top: 1px solid var(--border);
}

.deepdoc-chapter .sec-eyebrow {
  color: var(--accent-dark);
}

.deepdoc-chapter h2 {
  text-wrap: pretty;
  margin-block: 0 .75em;
}

.deepdoc-chapter h3 {
  margin-block: 1.3em .5em;
}

.deepdoc-chapter .callout,
.deepdoc-chapter .table-scroll {
  margin-block: 24px;
}

.deepdoc-chapter .callout p,
.deepdoc-chapter > p:last-child {
  margin-bottom: 0;
}

.deepdoc-chapter .data-table th[scope="row"] {
  width: 25%;
}

@media (max-width: 768px) {
  .deepdoc-opening {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .deepdoc-chapter .data-table th[scope="row"] {
    width: auto;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html:has(.deepdoc-body) {
    scroll-behavior: smooth;
  }
}