:root {
  --bg: #0b1220;
  --panel: #0f172a;
  --panel-2: #111c33;
  --text: #e5e7eb;
  --muted: #b8bcc1;
  --border: rgba(148, 163, 184, 0.18);
  --shadow: rgba(0, 0, 0, 0.35);
  --accent: #22c55e;

  --badge-get: #22c55e;
  --badge-post: #3b82f6;
  --badge-delete: #ef4444;
}

.nav__section-title {
padding: 6px 0px 10px;
    font-size: 13px;
    font-weight: 500;
    color: #e2e2e2;
}

.nav__section-children {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 10px;
}


.brand__logo {
  display: block;
  max-width: 120px;
  width: 100%;
  height: auto;
  margin-bottom: 10px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

html[data-theme='light'] {
  --bg: #f8fafc;
  --panel: #ffffff;
  --panel-2: #f1f5f9;
  --text: #0f172a;
  --muted: #475569;
  --border: rgba(15, 23, 42, 0.12);
  --shadow: rgba(2, 6, 23, 0.08);
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

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

.app {
  display: grid;
  grid-template-columns: 340px 1fr;
  height: 100vh;
}

.sidebar {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border-right: 1px solid var(--border);
  overflow: auto;
}

.sidebar__header {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 18px 16px 12px;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand__title {
  font-weight: 700;
  letter-spacing: 0.2px;
  font-size: 12px;
}

.brand__subtitle {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.theme-toggle {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}

.sidebar__search {
  padding: 12px 16px;
}

.search-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  outline: none;
}

html[data-theme='light'] .search-input {
  background: rgba(15, 23, 42, 0.03);
}

.nav {
  padding: 4px 10px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav__section-group {
  border-radius: 12px;
  border: 1px solid transparent;
}

.nav__section-group[open] {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.nav__section-summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
}

.nav__section-summary::-webkit-details-marker {
  display: none;
}

.nav__section-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
}

.nav__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 18px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.nav__item {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid transparent;
}

.nav__item:hover {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.nav__item.is-active {
  border-color: rgb(34 126 197 / 60%);
    box-shadow: 0 10px 30px var(--shadow);
    background: rgb(34 71 197 / 8%);
}

.nav__item-title {
  font-size: 12px;
  line-height: 1.2;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
  border-radius: 5px;
  padding: 4px 8px;
  border: none;
}

.badge--lg {
  font-size: 12px;
  padding: 6px 10px;
}

.badge--get {
  background: rgba(34, 197, 94, 0.14);
  color: var(--badge-get);
}

.badge--post {
  background: rgba(59, 130, 246, 0.14);
  color: var(--badge-post);
}

.badge--delete {
  background: rgba(239, 68, 68, 0.14);
  color: var(--badge-delete);
}

.content {
  overflow: auto;
}

.content__header {
  padding: 26px 30px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.0);
}

.content__title {
  margin: 0;
  font-size: 20px;
}

.content__meta {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.content__section {
  padding: 18px 30px;
  max-width: 1100px;
}

.endpoint {
  padding: 18px 30px 26px;
  border-bottom: 1px solid var(--border);
  max-width: 1100px;
}

.endpoint__title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.endpoint__title {
  margin: 0;
  font-size: 18px;
}

.endpoint__trail {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

.endpoint__description {
  margin-top: 14px;
  color: var(--text);
}

.endpoint__description h3 {
  margin: 0 0 8px;
  font-size: 14px;
}

.endpoint__description p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  white-space: pre-wrap;
}

.code-block {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow);
}

.code-block__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}

.code-block__label {
  font-weight: 700;
  font-size: 12px;
  color: var(--muted);
}

.copy {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 12px;
}

.code-block__pre {
  margin: 0;
  padding: 12px;
  overflow: auto;
  background: rgba(2, 6, 23, 0.35);
}

html[data-theme='light'] .code-block__pre {
  background: rgba(15, 23, 42, 0.03);
}

.code-block__pre code {
  font-size: 13px;
  line-height: 1.6;
}

.block-title {
  margin: 18px 0 10px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 10px 30px var(--shadow);
}

.data-table thead th {
  text-align: left;
  padding: 12px 14px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}

.data-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  font-size: 13px;
}

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

.data-table code {
  font-size: 12.5px;
}

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

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

.nav__sections {
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav__section {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
}

.nav__section:hover {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.nav__section.is-current {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.08);
}

.nav__divider {
  height: 1px;
  background: var(--border);
  margin: 6px 16px;
}

.nav__tree {
  padding: 0 10px 18px;
}

.tree {
  border-radius: 12px;
}

.tree__summary {
  cursor: pointer;
  padding: 10px 12px;
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
}

.tree__children {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 0 10px;
}

.nav__item.nav__item--tree {
  margin: 0px;
}

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb__sep {
  margin: 0 6px;
}

.fields {
  margin-top: 12px;
}

.fields__title {
  font-weight: 700;
  font-size: 12px;
  color: var(--muted);
}

.fields__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.field-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
  color: var(--text);
}

.doc {
  color: var(--muted);
  line-height: 1.65;
}

.doc table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 10px 30px var(--shadow);
  margin: 12px 0;
}

.doc table thead th {
  text-align: left;
  padding: 12px 14px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}

.doc table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  font-size: 13px;
}

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

.doc h1, .doc h2, .doc h3 {
  color: var(--text);
}

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

.doc a:hover {
  text-decoration: underline;
}

.landing {
  min-height: 100vh;
  padding: 28px 20px;
}

.landing__header {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 4px;
}

.landing__main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px 4px;
}

.landing__title {
  margin: 0;
  font-size: 26px;
}

.landing__subtitle {
  margin: 10px 0 0;
  color: var(--muted);
}

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

.card {
  display: block;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  text-decoration: none;
  color: var(--text);
}

.card:hover {
  box-shadow: 0 18px 50px var(--shadow);
  border-color: rgba(34, 197, 94, 0.35);
}

.card__title {
  font-weight: 800;
}

.card__meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

/* Prism token colors */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: #64748b;
}

.token.punctuation {
  color: #94a3b8;
}

.token.property,
.token.tag,
.token.constant,
.token.symbol,
.token.deleted {
  color: #f87171;
}

.token.boolean,
.token.number {
  color: #fbbf24;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
  color: #34d399;
}

.token.operator,
.token.entity,
.token.url,
.token.variable {
  color: #60a5fa;
}

.token.atrule,
.token.attr-value,
.token.function,
.token.class-name {
  color: #a78bfa;
}

.token.keyword {
  color: #38bdf8;
}

.token.regex,
.token.important {
  color: #fb7185;
}

html[data-theme='light'] .token.comment,
html[data-theme='light'] .token.prolog,
html[data-theme='light'] .token.doctype,
html[data-theme='light'] .token.cdata {
  color: #64748b;
}
