:root {
  color-scheme: dark;
  --bg: #08090c;
  --panel: #101216;
  --panel-2: #151820;
  --text: #f6f2ea;
  --muted: #a7adb8;
  --faint: #6f7684;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent: #ff8a1f;
  --accent-soft: rgba(255, 138, 31, 0.14);
  --green: #51d88a;
  --red: #ff6775;
  --blue: #78b7ff;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 138, 31, 0.14), transparent 34rem),
    linear-gradient(180deg, #0d0e13 0%, var(--bg) 42rem);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.layout {
  display: grid;
  grid-template-columns: 18rem minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--line);
  background: rgba(8, 9, 12, 0.78);
  padding: 1.5rem;
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid rgba(255, 138, 31, 0.5);
  border-radius: 0.5rem;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.35rem;
  font-weight: 900;
}

.brand-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-subtitle {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.nav {
  display: grid;
  gap: 0.25rem;
  margin-top: 1.25rem;
}

.nav a {
  border-radius: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 0.55rem 0.7rem;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.sidebar-note {
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.035);
  padding: 0.9rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.content {
  min-width: 0;
  padding: 2rem clamp(1rem, 4vw, 4rem) 4rem;
}

.content-inner {
  max-width: 72rem;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1.12;
}

h1 {
  max-width: 54rem;
  margin: 0.45rem 0 1rem;
  font-size: clamp(2.25rem, 5vw, 4.65rem);
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
}

h3 {
  margin: 0 0 0.65rem;
  font-size: 1.18rem;
}

p {
  margin: 0;
}

.lead {
  max-width: 48rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.6rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  gap: 0.45rem;
  padding: 0.3rem 0.8rem;
}

.dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--green);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: rgba(16, 18, 22, 0.88);
  padding: 1rem;
}

.card strong {
  display: block;
  margin-bottom: 0.4rem;
}

.card span,
.card p {
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  margin-top: 3.5rem;
  scroll-margin-top: 2rem;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.2rem;
  padding-bottom: 0.9rem;
}

.section-header p {
  max-width: 42rem;
  color: var(--muted);
}

.endpoint {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 0.55rem;
  background: rgba(11, 12, 16, 0.9);
  margin-top: 1rem;
}

.endpoint-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  padding: 0.85rem 1rem;
}

.method {
  min-width: 4.5rem;
  border-radius: 0.35rem;
  padding: 0.22rem 0.45rem;
  text-align: center;
  font-size: 0.76rem;
  font-weight: 900;
}

.get {
  background: rgba(120, 183, 255, 0.16);
  color: var(--blue);
}

.post {
  background: rgba(81, 216, 138, 0.16);
  color: var(--green);
}

.path {
  overflow-wrap: anywhere;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.95rem;
  font-weight: 800;
}

.endpoint-body {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
}

.table {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 42rem;
}

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

th {
  color: var(--text);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td {
  color: var(--muted);
  font-size: 0.9rem;
}

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

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

code {
  color: #ffd3ab;
}

pre {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: #050609;
  color: #e8edf5;
  font-size: 0.86rem;
  line-height: 1.55;
  margin: 0;
  padding: 1rem;
}

.callout {
  border: 1px solid rgba(255, 138, 31, 0.35);
  border-radius: 0.5rem;
  background: var(--accent-soft);
  color: #ffe2c2;
  padding: 1rem;
}

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

.list {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding-left: 1.1rem;
}

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

.footer {
  margin-top: 4rem;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.85rem;
  padding-top: 1.5rem;
}

@media (max-width: 920px) {
  .layout {
    display: block;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content {
    padding-top: 1.25rem;
  }

  .grid,
  .two-col {
    grid-template-columns: 1fr;
  }
}

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

  .topbar {
    display: block;
  }
}
