:root {
  --doc-hero-space-top: 76px;
  --doc-hero-space-bottom: 82px;
  --doc-intro-space: 38px;
  --doc-section-space: 82px;
  --doc-section-divider: 1px;
  --doc-lede-size: 19px;
  --doc-copy-size: 17px;
  --doc-copy-leading: 1.9;
  --doc-mark-size: 270px;
  --doc-mark-offset: -64px;
  --doc-mark-gap: 12px;
  --doc-index-size: 12px;
  --doc-table-space: 28px;
  --doc-list-gap: 12px;
  --doc-mobile-hero-top: 48px;
  --doc-mobile-hero-bottom: 58px;
  --doc-mobile-section-space: 64px;
}

.doc-hero {
  position: relative;
  overflow: clip;
  padding-top: var(--doc-hero-space-top);
  padding-bottom: var(--doc-hero-space-bottom);
  border-bottom: var(--doc-section-divider) solid var(--color-border);
}

.doc-hero-inner {
  position: relative;
  z-index: 2;
}

.doc-hero .badge {
  margin-bottom: 22px;
}

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

.doc-hero-lede {
  max-width: 720px;
  margin: 26px 0 0;
  color: var(--color-muted);
  font-size: var(--doc-lede-size);
}

.doc-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--doc-mark-gap);
  margin-top: 30px;
}

.doc-fact-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--doc-list-gap);
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.doc-fact-row li {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: var(--doc-section-divider) solid var(--color-border);
  border-radius: var(--radius-small);
  background: var(--color-panel);
  color: var(--color-muted);
  font: 600 var(--doc-index-size)/1 var(--font-mono);
}

.doc-hero-mark {
  position: absolute;
  right: var(--doc-mark-offset);
  bottom: var(--doc-mark-offset);
  width: var(--doc-mark-size);
  height: var(--doc-mark-size);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--doc-mark-gap);
  border: var(--doc-section-divider) solid var(--color-border);
  border-radius: var(--radius-round);
  background: var(--color-panel-soft);
  color: var(--color-muted);
  font: 900 74px/1 var(--font-display);
  opacity: .58;
}

.doc-hero-mark strong {
  color: var(--color-accent);
  font-weight: 900;
}

.doc-article {
  padding-top: var(--doc-intro-space);
  padding-bottom: var(--section-space);
}

.doc-intro {
  margin-bottom: 34px;
  padding: 28px;
  border: var(--doc-section-divider) solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-panel);
  box-shadow: var(--shadow-card);
}

.doc-intro p {
  margin-bottom: 18px;
  color: var(--color-muted);
  font-size: var(--doc-copy-size);
  line-height: var(--doc-copy-leading);
}

.doc-intro p:last-child {
  margin-bottom: 0;
}

.doc-section {
  padding-top: var(--doc-section-space);
  padding-bottom: var(--doc-section-space);
  border-bottom: var(--doc-section-divider) solid var(--color-border);
}

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

.doc-section-index {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--color-accent);
  font: 700 var(--doc-index-size)/1 var(--font-mono);
  letter-spacing: .08em;
}

.doc-section-index::before {
  content: "";
  width: 18px;
  height: 2px;
  flex: 0 0 18px;
  border-radius: var(--radius-round);
  background: var(--color-accent);
}

.doc-section h2 {
  max-width: 700px;
  margin-bottom: 34px;
}

.doc-section h3 {
  margin-top: 42px;
  margin-bottom: 16px;
  font-size: 24px;
}

.doc-section h2 + h3 {
  margin-top: 0;
}

.doc-section p,
.doc-section li {
  color: var(--color-muted);
  font-size: var(--doc-copy-size);
  line-height: var(--doc-copy-leading);
}

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

.doc-section p a {
  font-weight: 620;
  text-decoration: underline;
  text-decoration-color: rgb(var(--rgb-accent) / .28);
  text-underline-offset: 3px;
}

.doc-section code {
  padding: 2px 6px;
  border: var(--doc-section-divider) solid var(--color-border);
  border-radius: var(--radius-small);
  background: var(--color-panel-soft);
  color: var(--color-text);
  font-size: 14px;
}

.doc-table-wrap {
  margin-top: var(--doc-table-space);
  margin-bottom: var(--doc-table-space);
  box-shadow: var(--shadow-card);
}

.doc-table-wrap td {
  color: var(--color-muted);
  line-height: 1.65;
}

.doc-table-wrap tbody th {
  min-width: 112px;
}

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

.doc-section .callout strong {
  color: var(--color-text);
}

.doc-section .callout {
  color: var(--color-muted);
  font-size: var(--doc-copy-size);
  line-height: 1.75;
}

.doc-article > .promo-block {
  margin-bottom: 12px;
}

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

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

  .doc-hero-lede {
    font-size: 17px;
  }

  .doc-hero-actions .button {
    flex: 1 1 auto;
  }

  .doc-fact-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .doc-fact-row li {
    justify-content: center;
    text-align: center;
  }

  .doc-section {
    padding-top: var(--doc-mobile-section-space);
    padding-bottom: var(--doc-mobile-section-space);
  }

  .doc-section h3 {
    margin-top: 36px;
    font-size: 22px;
  }

  .doc-section p,
  .doc-section li,
  .doc-intro p {
    font-size: 16px;
    line-height: 1.82;
  }
}

@media (max-width: 480px) {
  .doc-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .doc-fact-row {
    grid-template-columns: 1fr;
  }

  .doc-intro {
    padding: 20px;
  }

  .doc-section h2 {
    margin-bottom: 28px;
  }
}