:root {
  color-scheme: light;
  --bg: #0c111d;
  --bg-soft: #131a2a;
  --panel: #ffffff;
  --panel-soft: #f7f9fc;
  --ink: #0f1728;
  --ink-soft: #273247;
  --muted: #66758f;
  --line: #d8e0ec;
  --brand: #4f8cff;
  --brand-dark: #2f6de1;
  --success: #0f9f6e;
  --warning: #d97706;
  --danger: #d9485f;
  --code-bg: #0f1728;
  --code-ink: #e7efff;
  --shadow: 0 16px 30px rgba(15, 23, 40, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
}

body {
  background:
    radial-gradient(circle at top left, rgba(79, 140, 255, 0.18), transparent 20%),
    linear-gradient(180deg, #0b101b, #111827 35%, #0c111d);
  color: #eef4ff;
}

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

button,
input {
  font: inherit;
}

code {
  font-family: "IBM Plex Mono", monospace;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: #dfe8f5;
}

.brand {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.brand-logo {
  width: 150px;
  height: auto;
  border-radius: 10px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(145deg, #fdfefe, #dde8fb);
}

.brand-mark-core {
  color: var(--brand-dark);
  font-family: "IBM Plex Serif", serif;
  font-size: 1.2rem;
  font-weight: 600;
}

.brand-text {
  display: grid;
  gap: 4px;
}

.brand-overline,
.eyebrow,
.search-label,
.inline-grid th {
  margin: 0;
  color: #93a4bf;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 700;
}

.brand h1,
.hero h2,
.card h3,
.endpoint-path {
  margin: 0;
  font-family: "IBM Plex Serif", serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand h1 {
  color: #f4f7fd;
  font-size: 1.25rem;
}

.dashboard-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: 6px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(79, 140, 255, 0.3);
  background: rgba(79, 140, 255, 0.18);
  color: #ffffff;
  font-weight: 600;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.dashboard-btn:hover {
  background: rgba(79, 140, 255, 0.28);
  border-color: rgba(79, 140, 255, 0.45);
  transform: translateX(2px);
}

#search {
  width: 100%;
  margin: 10px 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  color: #eef4ff;
  background: rgba(255, 255, 255, 0.04);
}

#search::placeholder {
  color: #8ea0bc;
}

.endpoint-nav {
  display: grid;
  gap: 8px;
}

.endpoint-link {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: #c6d4ea;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
  font-size: 0.88rem;
  line-height: 1.35;
}

.endpoint-link:hover {
  background: rgba(79, 140, 255, 0.18);
  border-color: rgba(79, 140, 255, 0.3);
  color: #ffffff;
  transform: translateX(2px);
}

.endpoint-link small {
  color: #8ea0bc;
}

.badge,
.method {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
}

.m-get { background: #2563eb; }
.m-post { background: #0f9f6e; }
.m-put { background: #d97706; }
.m-delete { background: #d9485f; }

.content {
  padding: 28px;
  color: var(--ink);
}

.hero {
  position: relative;
  margin-bottom: 20px;
  color: #eef4ff;
}

.hero-logo {
  position: absolute;
  top: 0;
  right: 0;
  width: 132px;
  height: auto;
  opacity: 0.95;
}

.hero h2 {
  margin-top: 8px;
  font-size: 2rem;
  max-width: 780px;
}

.hero p {
  max-width: 760px;
  color: #b6c5da;
}

.base-url {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #eef4ff;
  font-size: 0.85rem;
}

.card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 18px;
}

.card h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.card p,
.endpoint-description p,
.endpoint-description li {
  color: var(--ink-soft);
  line-height: 1.65;
}

.card code,
.endpoint-docs code {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--brand-dark);
}

.endpoint-header p {
  margin: 10px 0 0;
  color: var(--muted);
}

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

.endpoint-path {
  font-size: 1.08rem;
  color: var(--ink);
}

.endpoint-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 44%);
  gap: 20px;
  margin-top: 18px;
}

.endpoint-docs {
  min-width: 0;
}

.endpoint-docs h4 {
  margin: 18px 0 10px;
  font-size: 0.95rem;
  color: var(--ink);
}

.endpoint-code {
  position: relative;
  padding: 16px;
  border-radius: 16px;
  background: var(--code-bg);
  border: 1px solid #22304a;
}

.code-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.code-tab {
  border: 1px solid #2e4368;
  background: transparent;
  color: #bcd0f1;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.76rem;
  font-family: "IBM Plex Mono", monospace;
  cursor: pointer;
}

.code-tab.active {
  background: rgba(79, 140, 255, 0.18);
  border-color: rgba(79, 140, 255, 0.5);
  color: #ffffff;
}

.copy-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #2e4368;
  background: rgba(255, 255, 255, 0.04);
  color: #eef4ff;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 600;
}

pre {
  margin: 0;
  background: transparent;
  color: var(--code-ink);
  padding: 0;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.card > pre,
.endpoint-docs > pre,
.response-block pre {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--bg-soft);
  color: #e7efff;
  border: 1px solid #22304a;
}

.card > pre code,
.endpoint-docs > pre code,
.response-block pre code,
.endpoint-code pre code {
  display: inline;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
}

.inline-grid {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  font-size: 0.9rem;
}

.inline-grid th,
.inline-grid td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 12px;
  vertical-align: top;
}

.inline-grid th {
  background: var(--panel-soft);
  color: var(--muted);
}

.inline-grid td {
  color: var(--ink-soft);
}

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

.hidden {
  display: none;
}

@media (max-width: 1120px) {
  .endpoint-layout {
    grid-template-columns: 1fr;
  }
}

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

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .content {
    padding: 20px;
  }

  .hero h2 {
    font-size: 1.6rem;
  }

  .hero-logo {
    position: static;
    display: block;
    width: 120px;
    margin-bottom: 14px;
  }
}
