:root {
  color-scheme: light;
  --bg: #ffffff;
  --panel: #f6f8fa;
  --panel-border: #d8dee4;
  --text: #24292f;
  --muted: #57606a;
  --link: #0969da;
  --link-hover: #0550ae;
  --code-bg: #f6f8fa;
  --accent: #2da44e;
  --shadow: 0 1px 2px rgba(27, 31, 36, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 28px;
  background: #24292f;
  color: #ffffff;
}

.brand {
  color: #ffffff;
  font-weight: 700;
  font-size: 18px;
}

.brand:hover,
.topnav a:hover {
  color: #ffffff;
}

.topnav {
  display: flex;
  gap: 18px;
}

.topnav a {
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.shell {
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr);
  min-height: calc(100vh - 64px);
}

.sidebar {
  position: sticky;
  top: 64px;
  align-self: start;
  height: calc(100vh - 64px);
  overflow-y: auto;
  padding: 24px 20px;
  border-right: 1px solid var(--panel-border);
  background: var(--panel);
}

.sidebar-title {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.command-nav {
  margin-top: 12px;
}

.nav-item {
  margin: 1px 0;
}

.nav-children {
  margin-left: 14px;
  padding-left: 10px;
  border-left: 1px solid #d0d7de;
}

.nav-link {
  display: block;
  padding: 5px 8px;
  border-radius: 6px;
  color: var(--text);
  font-size: 14px;
}

.nav-link:hover {
  background: #eaeef2;
  text-decoration: none;
}

.nav-link.active {
  background: #ddf4ff;
  color: #0969da;
  font-weight: 600;
}

.content {
  width: min(100%, 980px);
  padding: 48px 56px 72px;
}

.hero {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--panel-border);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 10px;
  font-size: 42px;
  line-height: 1.18;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--panel-border);
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: 0;
}

p {
  margin: 0 0 14px;
}

.lead {
  color: var(--muted);
  font-size: 19px;
}

.section {
  margin-top: 34px;
}

.breadcrumbs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  background: var(--code-bg);
  box-shadow: var(--shadow);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

:not(pre) > code {
  padding: 0.12em 0.34em;
  border-radius: 4px;
  background: var(--code-bg);
}

.command-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.command-card,
.command-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text);
  box-shadow: var(--shadow);
}

.command-card:hover,
.command-row:hover {
  border-color: #0969da;
  text-decoration: none;
}

.command-card span,
.command-row span {
  color: var(--muted);
}

.command-list {
  display: grid;
  gap: 10px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

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

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--panel-border);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--panel);
  font-size: 13px;
}

tr:last-child td {
  border-bottom: 0;
}

.muted {
  color: var(--muted);
}

@media (max-width: 860px) {
  .topbar {
    position: static;
    padding: 16px 20px;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .shell {
    display: block;
  }

  .sidebar {
    position: static;
    height: auto;
    max-height: 360px;
    border-right: 0;
    border-bottom: 1px solid var(--panel-border);
  }

  .content {
    padding: 32px 22px 56px;
  }

  h1 {
    font-size: 32px;
  }
}
