* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #111;
  color: #aaa;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

pre, pre code, :not(pre) > code {
  font-family: 'SF Mono', 'Fira Code', 'JetBrains Mono', Menlo, Consolas, monospace;
}

a {
  color: #aaa;
  text-decoration: none;
}

a:hover {
  color: #fff;
}

:not(pre) > code {
  background: #1a1a1a;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 13px;
  color: #ccc;
}

pre code {
  padding: 0;
  background: none;
}

/* index page */

#intro {
  max-width: 520px;
  margin: 80px auto;
  padding: 0 20px;
}

#intro h1 {
  font-size: 22px;
  font-weight: 600;
  color: #eee;
  margin-bottom: 16px;
}

#intro p {
  color: #777;
  margin-bottom: 24px;
  line-height: 1.7;
}

#intro ul {
  list-style: none;
  margin-bottom: 32px;
}

#intro ul li {
  padding: 3px 0;
}

#intro ul li a {
  color: #999;
}

#intro ul li a:hover {
  color: #fff;
}

#intro .footer {
  color: #555;
  font-size: 12px;
}

#intro .footer a {
  color: #555;
}

#intro .footer a:hover {
  color: #999;
}

/* example page layout: sidebar left, content right */

.example {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 200px;
  min-width: 200px;
  padding: 20px 16px;
  background: #0e0e0e;
  border-right: 1px solid #222;
  overflow-y: auto;
  height: 100vh;
  position: sticky;
  top: 0;
}

.sidebar h3 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

.sidebar h3 a {
  color: #eee;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar nav a {
  color: #666;
  font-size: 13px;
  padding: 2px 0;
}

.sidebar nav a:hover {
  color: #ccc;
}

.content {
  flex: 1;
  min-width: 0;
  padding: 20px 40px;
  max-width: 900px;
}

.content .nav-header {
  padding: 0 0 12px 0;
  font-size: 12px;
  color: #555;
}

.content .nav-header a {
  color: #555;
}

.content .nav-header a:hover {
  color: #999;
}

.content h2 {
  font-size: 20px;
  font-weight: 600;
  color: #eee;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid #222;
}

.content .description {
  color: #777;
  font-size: 14px;
  line-height: 1.6;
  margin: -12px 0 24px 0;
}

.content table {
  width: 100%;
  border-collapse: collapse;
}

.content table td {
  vertical-align: top;
  padding: 4px 0;
}

.content table td.docs {
  width: 280px;
  padding-right: 32px;
  padding-top: 8px;
}

.content table td.docs p {
  color: #777;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 4px;
}

.content table td.docs code {
  color: #ccc;
  font-size: 12px;
}

.content table td.code {
  padding-bottom: 8px;
}

.content table td.code.leading {
  padding-bottom: 16px;
}

.content table td.code pre {
  margin: 0;
  padding: 12px 16px;
  background: #1a1a1a;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.5;
}

.content table td.code pre.shiki {
  background: #1a1a1a !important;
}

.output {
  margin-top: 8px;
}

.output table {
  width: 100%;
  border-collapse: collapse;
}

.output table td {
  vertical-align: top;
  padding: 4px 0;
}

.output table td.docs {
  width: 280px;
  padding-right: 32px;
}

.output table td.code pre {
  margin: 0;
  padding: 12px 16px;
  background: #1a1a1a;
  border-radius: 4px;
  overflow-x: auto;
  font-family: 'SF Mono', 'Fira Code', 'JetBrains Mono', Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
  color: #999;
}

.output .shell-prompt {
  color: #666;
  user-select: none;
}

.output .shell-cmd {
  color: #ccc;
  font-weight: bold;
}

.pagination {
  display: flex;
  justify-content: space-between;
  padding: 24px 0;
  border-top: 1px solid #222;
  margin-top: 16px;
  font-size: 13px;
}

.pagination .prev,
.pagination .next {
  min-width: 100px;
}

.pagination .next {
  text-align: right;
}

@media (max-width: 900px) {
  .sidebar {
    display: none;
  }

  .content {
    padding: 20px;
  }

  .content table td.docs {
    width: 180px;
    padding-right: 16px;
  }
}

@media (max-width: 640px) {
  .content table,
  .content table tbody,
  .content table tr,
  .content table td {
    display: block;
    width: 100%;
  }

  .content table td.docs {
    padding-right: 0;
    padding-bottom: 4px;
  }
}
