*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #141319;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 48rem;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

a {
  color: inherit;
  text-underline-offset: 4px;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

.site-home {
  margin-bottom: 2rem;
  font-size: 0.875rem;
}

.breadcrumb {
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: #525252;
}

.breadcrumb .current {
  color: #141319;
}

.toc {
  margin-bottom: 2rem;
  border: 1px solid #e5e5e5;
  border-radius: 0.5rem;
  background: #fafafa;
  padding: 1rem;
}

.toc summary {
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
}

.toc nav {
  margin-top: 0.75rem;
  columns: 2;
  gap: 1.5rem;
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .toc nav {
    columns: 3;
  }
}

@media (min-width: 768px) {
  .toc nav {
    columns: 4;
  }
}

.toc a {
  display: block;
  margin-bottom: 0.25rem;
  break-inside: avoid;
  color: #404040;
  text-decoration: none;
}

.toc a:hover,
.toc a:focus-visible {
  color: #141319;
  text-decoration: underline;
}

.article h1 {
  margin: 0;
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.article h2 {
  margin: 2rem 0 0;
  scroll-margin-top: 1.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.article h3 {
  margin: 1.5rem 0 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.article h4 {
  margin: 1.25rem 0 0;
  font-size: 1rem;
  font-weight: 600;
}

.article p {
  margin: 0.75rem 0 0;
}

.article ul,
.article ol {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
}

.article li {
  margin-top: 0.25rem;
}

.article li p {
  margin-top: 0;
}

.table-wrap {
  margin-top: 1rem;
  overflow-x: auto;
}

.article table {
  width: 100%;
  min-width: 32rem;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.article th,
.article td {
  border: 1px solid #e5e5e5;
  padding: 0.5rem 0.75rem;
  vertical-align: top;
  text-align: left;
}

.article th {
  background: #fafafa;
  font-weight: 600;
}

.article code {
  border-radius: 0.25rem;
  background: #f5f5f5;
  padding: 0.125rem 0.25rem;
  font-size: 0.875rem;
}

.footer-links {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e5e5;
  font-size: 0.875rem;
}
