:root {
  --bg: #f6f8fa;
  --panel: #ffffff;
  --panel-muted: #f6f8fa;
  --text: #1f2328;
  --muted: #59636e;
  --line: #d0d7de;
  --brand: #0969da;
  --brand-soft: #ddf4ff;
  --success: #1a7f37;
  --danger: #cf222e;
  --shadow: 0 8px 24px rgba(31, 35, 40, 0.06);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

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

a:hover {
  text-decoration: underline;
}

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

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  padding: 28px 20px;
  border-right: 1px solid var(--line);
  background: #fff;
}

.brand {
  display: block;
  margin-bottom: 22px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}

.brand-title {
  font-size: 18px;
  font-weight: 700;
}

.brand-subtitle {
  font-size: 14px;
  color: var(--muted);
}

.nav-group {
  margin-bottom: 22px;
}

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

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-link {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  background: var(--panel-muted);
  text-decoration: none;
}

.content {
  padding: 40px 48px 64px;
}

.hero {
  max-width: 980px;
  margin: 0 auto 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 980px;
  margin: 0 auto 28px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.card h2,
.card h3 {
  margin: 0 0 10px;
  line-height: 1.2;
}

.card p,
.card li {
  color: var(--muted);
}

.content-inner {
  max-width: 980px;
  margin: 0 auto;
}

.section {
  margin-bottom: 28px;
}

.section h2 {
  margin: 0 0 14px;
  font-size: 28px;
  line-height: 1.15;
}

.section p {
  margin: 0 0 14px;
  color: var(--muted);
}

.callout {
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  margin: 16px 0;
}

.callout.info {
  background: var(--brand-soft);
  border-color: #b6e3ff;
}

.callout.success {
  background: #dafbe1;
  border-color: #aceebb;
}

.callout.warning {
  background: #fff8c5;
  border-color: #eac54f;
}

.callout strong {
  display: block;
  margin-bottom: 6px;
}

pre,
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    monospace;
}

pre {
  overflow-x: auto;
  margin: 14px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0d1117;
  color: #e6edf3;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

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

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

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

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.footer {
  max-width: 980px;
  margin: 48px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 960px) {
  .shell {
    grid-template-columns: 1fr;
  }

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

  .content {
    padding: 28px 20px 52px;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}
