:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --panel: #ffffff;
  --border: #d8dee8;
  --text: #172033;
  --muted: #637083;
  --accent: #1467d8;
  --accent-soft: #e9f1ff;
  --success: #16794c;
  --warning: #9a5b00;
  --code: #111827;
}

* {
  box-sizing: border-box;
}

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

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

a:hover {
  text-decoration: underline;
}

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

.sidebar {
  border-right: 1px solid var(--border);
  background: var(--panel);
  padding: 28px 20px;
}

.brand {
  font-size: 20px;
  font-weight: 760;
  letter-spacing: 0;
  margin-bottom: 28px;
}

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

.nav a {
  border-radius: 8px;
  color: var(--muted);
  display: block;
  font-weight: 620;
  padding: 9px 10px;
}

.nav a.active,
.nav a:hover {
  background: var(--accent-soft);
  color: var(--accent);
  text-decoration: none;
}

.content {
  max-width: 1120px;
  padding: 42px 48px 72px;
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 760;
  margin-bottom: 8px;
  text-transform: uppercase;
}

h1 {
  font-size: 36px;
  line-height: 1.12;
  margin: 0 0 14px;
}

h2 {
  border-top: 1px solid var(--border);
  font-size: 24px;
  margin: 34px 0 14px;
  padding-top: 28px;
}

h3 {
  font-size: 18px;
  margin: 24px 0 10px;
}

p {
  color: var(--muted);
  max-width: 760px;
}

.lead {
  font-size: 18px;
}

.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 22px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
}

.card h3 {
  margin-top: 0;
}

.card p:last-child {
  margin-bottom: 0;
}

.summary-list {
  color: var(--muted);
  margin: 10px 0 0;
  padding-left: 18px;
}

.summary-list li + li {
  margin-top: 6px;
}

.endpoint {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 12px;
}

.endpoint h2 {
  border-top: 0;
  margin: 0;
  padding-top: 0;
}

.method {
  border-radius: 6px;
  color: #ffffff;
  display: inline-block;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  font-weight: 760;
  line-height: 1;
  padding: 7px 9px;
}

.method.get {
  background: var(--accent);
}

.method.patch {
  background: var(--success);
}

.path {
  background: #edf2f8;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 15px;
  padding: 6px 8px;
}

.note {
  background: #fff8e8;
  border: 1px solid #f2d79b;
  border-radius: 8px;
  color: #614100;
  margin: 16px 0;
  max-width: 920px;
  padding: 12px 14px;
}

.note strong {
  color: var(--warning);
}

.table-wrap {
  overflow-x: auto;
}

.required,
.optional {
  border-radius: 999px;
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
}

.required {
  background: #fee2e2;
  color: #991b1b;
}

.optional {
  background: #e8f1ff;
  color: #1554ad;
}

pre {
  background: var(--code);
  border-radius: 8px;
  color: #eef2ff;
  overflow: auto;
  padding: 16px;
}

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

table {
  border-collapse: collapse;
  margin: 14px 0 24px;
  min-width: 680px;
  width: 100%;
}

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

th {
  background: #eef3fb;
  color: #26354d;
  font-size: 13px;
  text-transform: uppercase;
}

td code,
th code {
  color: #18223a;
  font-weight: 650;
}

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

  .sidebar {
    border-bottom: 1px solid var(--border);
    border-right: 0;
  }

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

  h1 {
    font-size: 30px;
  }
}
