:root {
  --teal-bright: #00d1d6;
  --teal-deep: #14bba6;
  --ink: #0b0d0d;
  --mist: #f5f7fa;
  --charcoal: #333333;
  --border: #23262a;
  --danger: #ff6b6b;
  --success: #2ee673;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--mist);
  font-family: 'Poppins', system-ui, sans-serif;
}

a { color: var(--teal-bright); }

code, pre, .mono { font-family: 'JetBrains Mono', monospace; }

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

.sidebar {
  width: 250px;
  flex-shrink: 0;
  background: #0e1013;
  border-right: 1px solid var(--border);
  padding: 1.75rem 1.25rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar .brand {
  color: var(--teal-bright);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  text-decoration: none;
  display: block;
}

.sidebar .subtitle { color: #8a9199; font-size: 0.8rem; margin-bottom: 1.75rem; }

.sidebar nav ul { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.sidebar nav .section-label {
  color: #6b7280;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.5rem;
}
.sidebar nav a {
  display: block;
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  color: #c6cbd2;
  text-decoration: none;
  font-size: 0.9rem;
}
.sidebar nav a:hover { background: rgba(255, 255, 255, 0.05); color: var(--mist); }
.sidebar nav a.active { background: rgba(0, 209, 214, 0.12); color: var(--teal-bright); }

.content {
  flex: 1;
  max-width: 860px;
  padding: 3rem 3.5rem 6rem;
}

.content h1 { color: var(--teal-bright); font-size: 2rem; margin-bottom: 0.5rem; }
.content h2 { margin-top: 2.5rem; border-top: 1px solid var(--border); padding-top: 2rem; }
.content h3 { color: var(--teal-bright); font-size: 1rem; }
.content p, .content li { line-height: 1.65; color: #d3d7dc; }
.content .lede { font-size: 1.05rem; color: #eef1f4; }

.badge-method {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.2rem 0.55rem;
  border-radius: 5px;
  background: var(--teal-bright);
  color: var(--ink);
  margin-right: 0.5rem;
}

.endpoint-path {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  color: var(--mist);
}

pre {
  background: #0e1013;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #eef1f4;
}

table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
th, td { text-align: left; padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
th { color: #8a9199; font-weight: 500; text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.04em; }
td code { color: var(--teal-bright); }

.callout {
  border-left: 3px solid var(--teal-bright);
  background: rgba(0, 209, 214, 0.08);
  padding: 0.9rem 1.1rem;
  border-radius: 0 6px 6px 0;
  margin: 1.25rem 0;
}
.callout.warning { border-left-color: var(--danger); background: rgba(255, 107, 107, 0.08); }
.callout p { margin: 0; color: var(--mist); }

.error-list { display: flex; flex-direction: column; gap: 0.75rem; }
.error-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
}
.error-item .code { color: var(--danger); font-weight: 600; }

.btn-download {
  display: inline-block;
  padding: 0.65rem 1.2rem;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--teal-bright), var(--teal-deep));
  color: var(--ink) !important;
  font-weight: 600;
  text-decoration: none;
}

.step {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}
.step .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--teal-bright);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.85rem;
  margin-right: 0.6rem;
}
