:root {
  color-scheme: light;
  --navy-950: #071523;
  --navy-900: #0b1f33;
  --teal-700: #066861;
  --teal-600: #07988d;
  --teal-500: #12b8aa;
  --ink-900: #152536;
  --ink-700: #40566d;
  --ink-500: #52697e;
  --line: #dce5ec;
  --surface: #fff;
  --surface-soft: #f5f8fa;
  --surface-code: #081827;
  --get: #14705e;
  --post: #155ea8;
  --radius-sm: 8px;
  --radius-md: 14px;
  --header-height: 72px;
  --sidebar-width: 282px;
  --shadow-sm: 0 1px 2px #07152312, 0 8px 24px #0715230d;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
  color: var(--ink-900);
  background: var(--surface);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
a { color: inherit; text-decoration: none; }
code, pre { font-family: SFMono-Regular, Consolas, Liberation Mono, monospace; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  height: var(--header-height);
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
  background: #fffffff0;
  backdrop-filter: blur(14px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 24px;
  border-right: 1px solid var(--line);
  color: var(--navy-950);
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(145deg, var(--teal-500), var(--teal-700));
  box-shadow: 0 8px 20px #07988d3d;
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.05; }
.brand-copy strong { font-size: 16px; letter-spacing: -0.02em; }
.brand-copy span {
  margin-top: 4px;
  color: var(--ink-500);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.header-note {
  display: flex;
  align-items: center;
  padding: 0 28px;
  color: var(--ink-500);
  font-size: 13px;
}

.layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  padding-top: var(--header-height);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  overflow: auto;
  border-right: 1px solid var(--line);
  background: var(--surface-soft);
  padding: 22px 16px 40px;
}
.sidebar h2 {
  margin: 18px 12px 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.sidebar a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink-700);
  font-size: 14px;
  font-weight: 600;
}
.sidebar a:hover, .sidebar a.active {
  background: #fff;
  color: var(--navy-950);
  box-shadow: var(--shadow-sm);
}
.method {
  display: inline-block;
  min-width: 52px;
  margin-right: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.method.get { color: var(--get); }
.method.post { color: var(--post); }

.main {
  padding: 36px 40px 80px;
  max-width: 980px;
}
.hero h1 {
  margin: 0 0 10px;
  font-size: 34px;
  letter-spacing: -0.03em;
  color: var(--navy-950);
}
.hero p {
  margin: 0 0 24px;
  color: var(--ink-700);
  font-size: 16px;
  line-height: 1.55;
  max-width: 62ch;
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 18px 18px 8px;
  margin-bottom: 18px;
}
.card h3 { margin: 0 0 8px; font-size: 15px; }
.card p, .card li { color: var(--ink-700); font-size: 14px; line-height: 1.5; }
.endpoint {
  scroll-margin-top: calc(var(--header-height) + 20px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 22px;
  margin: 28px 0;
}
.endpoint-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}
.badge.get { background: var(--get); }
.badge.post { background: var(--post); }
.path {
  font-family: SFMono-Regular, Consolas, monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy-900);
}
.endpoint h2 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.endpoint p { color: var(--ink-700); line-height: 1.55; }
pre {
  background: var(--surface-code);
  color: #d7e6f2;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  overflow: auto;
  font-size: 12.5px;
  line-height: 1.55;
}
.muted { color: var(--ink-500); font-size: 13px; }

@media (max-width: 900px) {
  .site-header, .layout { grid-template-columns: 1fr; }
  .brand { border-right: 0; }
  .sidebar { display: none; }
  .main { padding: 28px 18px 64px; }
}
