@font-face {
  font-family: 'Vin Mono Pro';
  src: url('./fonts/VinMonoPro-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vin Mono Pro';
  src: url('./fonts/VinMonoPro-ExtraBold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-heading: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-heading-weight: 600;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-tile-title: 'Vin Mono Pro', sans-serif;
  --font-tile-title-weight: 700;
  --font-tile-title-offset-y: 1px;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --radius-sm: 6px;
  --transition-fast: 140ms ease;
  --app-topbar-height: 46px;
  --navbar-height: var(--app-topbar-height);
  --border-grey: rgba(255, 255, 255, 0.18);
  --bg-base: #09090b;
  --api-accent: #8EA2FF;
  --api-accent-hover: #A8B8FF;
  color-scheme: dark;
}

/* Dark: match API dashboard shell */
:root[data-theme="dark"] {
  --bg: #09090b;
  --bg-alt: #0f0f12;
  --bg-sidebar: rgba(255, 255, 255, 0.025);
  --text-main: #ffffff;
  --text-subtle: rgba(255, 255, 255, 0.68);
  --text-muted: rgba(255, 255, 255, 0.48);
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.22);
  --accent: #94a3ff;
  --accent-soft: rgba(148, 163, 255, 0.08);
  --success: #22C55E;
  --warning: #F59E0B;
  --danger: #EF4444;
  --code-bg: rgba(255, 255, 255, 0.045);
  --brand-main: rgba(255, 255, 255, 0.55);
  --brand-hover: #ffffff;
  --brand-divider: rgba(255, 255, 255, 0.18);
  --brand-api: rgba(255, 255, 255, 0.55);
}

/* Light: white background, black text */
:root[data-theme="light"] {
  --bg: #ffffff;
  --bg-alt: #ffffff;
  --bg-sidebar: #f8f9fb;
  --text-main: #111111;
  --text-subtle: #333333;
  --text-muted: #666666;
  --border: #e2e6eb;
  --border-strong: #d0d5dc;
  --accent: #7096FF;
  --accent-soft: rgba(112, 150, 255, 0.08);
  --success: #0DBF84;
  --warning: #D4A040;
  --danger: #E06680;
  --code-bg: #f1f3f5;
  --brand-main: #111111;
  --brand-hover: #000000;
  --brand-divider: rgba(0, 0, 0, 0.2);
  --brand-api: #2563eb;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-main);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

html body {
  font-weight: 400;
}

.global-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 11000;
  height: var(--navbar-height);
  border-bottom: 1px solid var(--border-grey, var(--border));
  background: var(--bg-base, var(--bg));
}

.navbar-inner {
  height: var(--navbar-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
}

.navbar-left,
.navbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.navbar-left {
  justify-self: start;
  gap: 6px;
}

.navbar-right {
  justify-self: end;
  flex-shrink: 0;
}

.navbar-center-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  text-decoration: none;
  flex-shrink: 0;
}

.navbar-wordmark {
  display: block;
  height: 16px;
  width: auto;
}

.visiblee-docs-brand {
  gap: 9px;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.visiblee-docs-brand:hover {
  text-decoration: none;
}

.visiblee-docs-mark {
  height: 24px;
  width: 24px;
  border-radius: 5px;
}

.visiblee-docs-wordmark {
  transform: translateY(-0.5px);
}

.primary-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  height: var(--navbar-height);
  position: relative;
}

.nav-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  width: 0;
  background: var(--text-main);
  opacity: 0;
  transition: left 0.2s ease, width 0.2s ease, opacity 0.2s ease;
  pointer-events: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  font-family: var(--font-tile-title);
  font-size: 13px;
  font-weight: var(--font-tile-title-weight) !important;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transform: translateY(var(--font-tile-title-offset-y, 0));
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-link:hover {
  color: rgba(255, 255, 255, 0.85);
}

.nav-link-active {
  color: #ffffff;
}

.primary-nav-link {
  display: inline-flex;
  align-items: center;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font-tile-title);
  font-size: 13px;
  font-weight: var(--font-tile-title-weight) !important;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transform: translateY(var(--font-tile-title-offset-y, 0));
  line-height: 1;
  padding: 0 10px;
  height: 32px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.primary-nav-link:hover {
  color: rgba(255, 255, 255, 0.85);
}

.primary-nav-link[data-active="true"] {
  color: #ffffff;
}

.nav-search-wrap { position: relative; width: min(320px, 40vw); }

.nav-search-input {
  width: 100%;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-main);
  padding: 0 10px;
  outline: none;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.nav-search-input:focus {
  border-color: var(--border-strong);
}

.nav-search-input::placeholder {
  color: var(--text-muted);
}

.search-results {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: min(480px, 85vw);
  max-height: 40vh;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow-y: auto;
  overscroll-behavior: contain;
  display: none;
  z-index: 20;
}

.search-results[data-open="true"] { display: block; }

.search-result-item {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--text-main);
  text-align: left;
  padding: 10px 12px;
  cursor: pointer;
}

.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--accent-soft); }

.search-result-line { display: flex; align-items: center; gap: 8px; }
.search-result-title { font-size: 15px; font-weight: 600; }
.search-result-subtitle { margin: 4px 0 0; font-size: 13px; color: var(--text-muted); }
.search-empty { margin: 0; padding: 12px; color: var(--text-muted); font-size: 13px; }

.layout-shell {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  gap: 16px;
  flex: 1;
  width: 100%;
  padding: 0 12px 12px;
  padding-top: var(--navbar-height);
  box-sizing: border-box;
  min-height: 100vh;
}

html[data-js-ready="true"] .static-fallback {
  display: none;
}

.static-fallback {
  padding: 48px 32px 12px;
}

.static-fallback-hero {
  max-width: 860px;
  margin: 0 auto;
}

.sidebar {
  position: sticky;
  top: var(--navbar-height);
  flex-shrink: 0;
  width: 240px;
  height: calc(100vh - var(--navbar-height));
  min-height: calc(100vh - var(--navbar-height));
  display: flex;
  flex-direction: column;
  background: transparent;
  border-right: 1px solid var(--border);
  padding: 12px 12px 12px 0;
  box-sizing: border-box;
}

.static-doc-page {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text-main);
}

.static-doc-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.static-doc-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 44px;
}

.static-doc-brand {
  color: var(--text-main);
  text-decoration: none;
}

.static-doc-hero,
.static-doc-article {
  display: grid;
  gap: 20px;
}

.static-doc-hero {
  margin-bottom: 28px;
}

.static-doc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 14px;
}

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

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

.static-doc-eyebrow {
  margin: 0;
  font-family: var(--font-tile-title);
  font-size: 12px;
  font-weight: var(--font-tile-title-weight) !important;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transform: translateY(var(--font-tile-title-offset-y, 0));
  color: var(--text-muted);
}

.static-doc-page h1:not(.endpoint-display-title),
.static-doc-page h2,
.static-doc-page h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight) !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
}

.static-doc-page h1:not(.endpoint-display-title) {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.05;
}

.static-doc-page h2 {
  font-size: 24px;
  line-height: 1.1;
}

.static-doc-page h3 {
  font-size: 16px;
  line-height: 1.2;
}

.static-doc-lead {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-subtle);
  max-width: 860px;
}

.static-doc-section {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
}

.static-doc-section + .static-doc-section {
  margin-top: 18px;
}

.static-doc-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.static-doc-subheading {
  margin-top: 6px;
  color: var(--text-subtle);
}

.static-doc-endpoint-line,
.static-doc-index-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.static-method {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--border-strong);
  color: var(--text-main);
}

.static-method-get {
  color: #82e7b1;
  border-color: rgba(130, 231, 177, 0.32);
}

.static-method-post,
.static-method-put,
.static-method-patch,
.static-method-delete {
  color: #9cb8ff;
  border-color: rgba(156, 184, 255, 0.32);
}

.static-doc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-subtle);
  white-space: nowrap;
}

.static-doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

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

.static-doc-table th {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.static-doc-table td {
  color: var(--text-subtle);
}

.static-doc-help {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.code-panel {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  border-radius: var(--radius-sm);
  background: var(--code-bg);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
}

.code-panel code {
  white-space: pre;
}

.static-doc-empty {
  color: var(--text-muted);
  font-size: 14px;
}

.static-doc-index-list {
  display: grid;
  gap: 14px;
}

.static-doc-index-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.static-doc-index-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: inherit;
  text-decoration: none;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.static-doc-index-card:hover {
  border-color: var(--border-strong);
  background: var(--accent-soft);
}

.static-doc-index-card h3 {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: var(--font-heading-weight) !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
}

.static-doc-index-card p,
.static-doc-index-meta {
  margin: 0;
  color: var(--text-subtle);
}

.static-doc-index-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 13px;
}

.static-doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.static-doc-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text-main);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.static-doc-actions .btn-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #050507;
}

.static-doc-actions .btn-secondary {
  background: transparent;
}

.static-doc-actions .btn:hover {
  border-color: var(--border-strong);
}

.docs-not-found-page {
  justify-content: center;
}

.docs-not-found-wrap {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 72px;
  min-height: 100vh;
  display: grid;
  align-items: center;
}

.docs-not-found-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 22px;
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
}

.docs-not-found-code {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(56px, 16vw, 124px);
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: #f2f6ff;
}

.docs-not-found-title {
  margin: 0;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.02;
  max-width: 10ch;
}

.docs-not-found-copy {
  margin: 0;
  max-width: 62ch;
  color: var(--text-subtle);
  font-size: 17px;
}

.docs-not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.docs-not-found-primary,
.docs-not-found-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-family: var(--font-tile-title);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transform: translateY(var(--font-tile-title-offset-y, 0));
  transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.docs-not-found-primary {
  color: #ffffff;
  background: var(--bg);
  border: 1px solid var(--border-strong);
}

.docs-not-found-secondary {
  color: var(--text-main);
  border: 1px solid var(--border);
  background: transparent;
}

.docs-not-found-primary:hover,
.docs-not-found-secondary:hover {
  border-color: var(--border-strong);
  background: var(--accent-soft);
}

.docs-not-found-links {
  display: grid;
  gap: 10px;
}

.docs-not-found-links p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.docs-not-found-link-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.docs-not-found-link-grid a {
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
}

.docs-not-found-link-grid a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .static-doc-shell {
    width: min(100% - 32px, 1120px);
    padding-top: 32px;
  }

  .static-doc-section {
    padding: 18px;
  }

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

  .static-doc-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .static-fallback {
    padding: 28px 20px 8px;
  }

  .static-doc-page h1:not(.endpoint-display-title) {
    font-size: 32px;
  }

  .static-doc-lead {
    font-size: 16px;
  }

  .static-doc-nav {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 32px;
  }

  .static-doc-index-grid {
    grid-template-columns: 1fr;
  }

  .static-doc-table {
    display: block;
    overflow-x: auto;
  }

  .docs-not-found-wrap {
    width: min(100% - 24px, 920px);
    padding: 24px 0 48px;
  }

  .docs-not-found-card {
    padding: 24px 20px;
    border-radius: var(--radius-sm);
  }
}

/* Endpoints list nested under "Endpoints" header */
.sidebar-nav {
  overflow-y: auto;
  padding: 8px 0 8px 14px;
  margin-left: 4px;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-nav::-webkit-scrollbar { width: 6px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: var(--radius-sm); }

.sidebar-endpoints-wrap[data-collapsed="true"] .sidebar-nav { display: none; }

.sidebar-header {
  display: none;
}

.sidebar-sections {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.sidebar-link-button {
  display: flex;
  align-items: center;
  min-height: 32px;
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  text-align: left;
  padding: 0 10px;
  font-family: var(--font-tile-title);
  font-size: 13px;
  font-weight: var(--font-tile-title-weight) !important;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transform: translateY(var(--font-tile-title-offset-y, 0));
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.sidebar-link-button:hover {
  color: rgba(255, 255, 255, 0.85);
}

.sidebar-link-button[data-active="true"] {
  color: #ffffff;
  border-color: var(--border);
  background: var(--accent-soft);
}

.sidebar-endpoints-wrap { margin-bottom: 8px; flex: 1; min-height: 0; display: flex; flex-direction: column; }

.sidebar-endpoints-header {
  width: 100%;
  min-height: 32px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  padding: 0 10px;
  font-family: var(--font-tile-title);
  font-size: 13px;
  font-weight: var(--font-tile-title-weight) !important;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transform: translateY(var(--font-tile-title-offset-y, 0));
  text-align: left;
  cursor: pointer;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.sidebar-endpoints-header:hover {
  color: rgba(255, 255, 255, 0.85);
}

.sidebar-endpoints-chevron {
  font-size: 12px;
  transition: transform 140ms ease;
}

.sidebar-endpoints-wrap[data-collapsed="true"] .sidebar-endpoints-chevron { transform: rotate(-90deg); }

.group-block { margin-bottom: 8px; }

.group-header {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-tile-title);
  font-size: 10px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transform: translateY(var(--font-tile-title-offset-y, 0));
}

.group-header:hover { color: rgba(255, 255, 255, 0.85); }

.group-title-wrap { display: inline-flex; align-items: center; gap: 6px; }

.group-count {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.group-list { display: flex; flex-direction: column; gap: 2px; }
.group-list-flat { margin-bottom: 8px; }
.group-list[data-collapsed="true"] { display: none; }

.endpoint-link {
  width: 100%;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  padding: 6px 10px;
  cursor: pointer;
  text-align: left;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 12px;
}

.endpoint-link:hover {
  background: var(--accent-soft);
  color: rgba(255, 255, 255, 0.85);
}

.endpoint-link[data-active="true"] {
  color: #ffffff;
  font-weight: 600;
  background: var(--accent-soft);
  border: 1px solid var(--border);
}

.endpoint-link-line { display: flex; align-items: center; gap: 8px; min-width: 0; }

.endpoint-link-label {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sidebar: method as simple text (no pill) */
.method-text {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.method-text[data-method="GET"] { color: var(--success); }
.method-text[data-method="POST"] { color: #4e86ff; }
.method-text[data-method="PUT"],
.method-text[data-method="PATCH"] { color: var(--warning); }
.method-text[data-method="DELETE"] { color: var(--danger); }

.method-badge {
  border-radius: var(--radius-sm);
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  flex-shrink: 0;
}

.method-badge[data-method="GET"] { background: rgba(62, 219, 142, 0.2); color: var(--success); }
.method-badge[data-method="POST"] { background: rgba(78, 124, 255, 0.2); color: #4e86ff; }
.method-badge[data-method="PUT"],
.method-badge[data-method="PATCH"] { background: rgba(255, 200, 120, 0.2); color: var(--warning); }
.method-badge[data-method="DELETE"] { background: rgba(255, 93, 120, 0.2); color: var(--danger); }

.endpoint-summary {
  margin-top: 3px;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ghost-link { color: var(--text-muted); font-size: 12px; text-decoration: none; }
.ghost-link:hover { color: var(--accent); }

.content-link { color: var(--accent); text-decoration: none; }
.content-link:hover { text-decoration: underline; }

.sidebar-muted { font-size: 13px; padding: 8px 0; }

.main-column {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.theme-toggle-icon {
  border: none;
  background: transparent;
  color: var(--text-subtle);
  font-size: 1.35rem;
  line-height: 1;
  padding: 6px 8px;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.theme-toggle-icon:hover { color: var(--text-main); }

.icon-button {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-main);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.navbar-hamburger {
  display: none;
  border: none;
  box-shadow: none;
  outline: none;
  background: transparent;
  color: var(--text-main);
  cursor: pointer;
  padding: 0;
  margin: 0;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  -webkit-appearance: none;
  appearance: none;
}

.hamburger-icon {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 24px;
  height: 24px;
}

.hamburger-icon span {
  display: block;
  width: 24px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
}

.content {
  width: min(980px, 100%);
  padding: 28px 4px 48px;
  margin: 0 auto;
}

.content.content-endpoint {
  width: min(1480px, 100%);
  padding: 28px 32px 48px;
}

.overview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 24px;
}

.overview-layout-no-toc {
  grid-template-columns: 1fr;
  min-height: calc(100vh - var(--navbar-height) - 220px);
  align-content: center;
}

.overview-main { min-width: 0; }
/* TOC "On this page" links: scroll targets sit below fixed navbar */
.overview-main [id] {
  scroll-margin-top: calc(var(--navbar-height) + 12px);
}

.overview-toc {
  position: sticky;
  top: calc(var(--navbar-height) + 16px);
  align-self: start;
  justify-self: start;
  width: max-content;
  min-width: 200px;
  max-width: 420px;
}

.toc-card {
  padding: 12px 0;
  border-left: 1px solid var(--border);
  padding-left: 16px;
}

.toc-label {
  margin: 0 0 10px;
  font-family: var(--font-tile-title);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transform: translateY(var(--font-tile-title-offset-y, 0));
  color: var(--text-muted);
}

.toc-link {
  border: none;
  background: transparent;
  text-align: left;
  color: var(--text-subtle);
  font-size: 15px;
  padding: 5px 0;
  display: block;
  cursor: pointer;
  width: 100%;
  white-space: nowrap;
}

.toc-link:hover { color: var(--accent); }

.toc-link-nested {
  padding-left: 12px;
  font-size: 14px;
  border-left: 1px solid var(--border);
  margin-left: 2px;
}

/* Sections: no heavy cards — just spacing and optional divider */
.doc-section,
.hero-card,
.section-card,
.endpoint-card {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.hero-card { padding: 0 0 0; }

.overview-layout-no-toc .hero-card {
  margin-bottom: 8px;
}

/* One gap value for hero→first section and between every section (all sections are in .section-stack) */
.section-stack { display: flex; flex-direction: column; gap: 40px; margin-top: 40px; }

.overview-layout-no-toc .section-stack {
  margin-top: 20px;
}
.section-stack .doc-section { margin-bottom: 0; }
.hero-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
/* Inline method (path line + param descriptions): plain green GET, no pill/outline */
.method-inline { font-weight: 600; }
.method-inline-get { color: var(--success); }
.method-inline-post { color: #4e86ff; }
.method-inline-put,
.method-inline-patch { color: var(--warning); }
.method-inline-delete { color: var(--danger); }
/* Override .muted / .param-desc so GET etc stay green inside description text */
.param-desc .method-inline-get,
.muted .method-inline-get { color: var(--success); }
.param-desc .method-inline-post,
.muted .method-inline-post { color: #4e86ff; }
.param-desc .method-inline-put,
.param-desc .method-inline-patch,
.muted .method-inline-put,
.muted .method-inline-patch { color: var(--warning); }
.param-desc .method-inline-delete,
.muted .method-inline-delete { color: var(--danger); }

.chip {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.hero-title {
  margin: 0 0 16px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: var(--font-heading-weight) !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.2;
  color: #ffffff;
}

.overview-layout-no-toc .hero-title {
  font-size: 14px;
}

.hero-subtitle {
  margin: 0;
  color: var(--text-subtle);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
}

.overview-layout-no-toc .hero-subtitle {
  font-size: 1rem;
}

.hero-subtitle-link {
  color: var(--api-accent);
  text-decoration: none;
  font-weight: 700;
}

.hero-subtitle-link:hover {
  color: var(--api-accent-hover);
  text-decoration: underline;
}


.section-card { padding: 0; }
.doc-section { padding: 0; margin-bottom: 24px; }

.section-title {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: var(--font-heading-weight) !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
}

.section-title-prominent {
  font-size: 14px;
}

.subsection-title {
  margin: 18px 0 8px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: var(--font-heading-weight) !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
}

.muted { margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.6; }
.copy-list { margin: 10px 0 0; padding-left: 22px; color: var(--text-subtle); font-size: 13px; line-height: 1.6; }

.portal-cta {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: transparent;
}

.portal-cta-copy {
  margin: 0;
  color: var(--text-subtle);
  font-size: 15px;
  line-height: 1.5;
}

.portal-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.portal-cta-link,
.portal-cta-link:hover {
  text-decoration: none;
}

.portal-cta-link {
  transition: color var(--transition-fast), text-shadow var(--transition-fast);
}

.portal-cta-link:hover {
  color: #7ea3ff;
  text-shadow: 0 0 12px rgba(77, 124, 255, 0.35);
}

.portal-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--border-grey, var(--border));
  border-radius: var(--radius-sm);
  background: var(--bg-base, var(--bg));
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: var(--font-heading-weight) !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: border-color var(--transition-fast);
}

.portal-cta-button:hover {
  border-color: var(--border-strong);
  opacity: 1;
}

.overview-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.overview-layout-no-toc .overview-cards-grid {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 16px;
}

.overview-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.overview-layout-no-toc .overview-card {
  padding: 16px;
}

.overview-card:hover {
  border-color: var(--border-strong);
  background: var(--accent-soft);
}

.overview-card-title {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: var(--font-heading-weight) !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
}

.overview-layout-no-toc .overview-card-title {
  font-size: 13px;
  margin-bottom: 8px;
}

.overview-card-desc {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-subtle);
}

.overview-layout-no-toc .overview-card-desc {
  font-size: 13px;
  margin-bottom: 12px;
}

.overview-card-cta {
  font-family: var(--font-tile-title);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transform: translateY(var(--font-tile-title-offset-y, 0));
  color: rgba(255, 255, 255, 0.55);
}

.overview-layout-no-toc .overview-card-cta {
  font-size: 12px;
}

.overview-card:hover .overview-card-cta {
  color: #ffffff;
  text-decoration: none;
}

.auth-grid { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 15px; }
.auth-grid th,
.auth-grid td { text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--border); }
.auth-grid th { color: var(--text-muted); font-weight: 500; width: 120px; }

.tier-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 15px; }
.tier-table th,
.tier-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.tier-table th { color: var(--text-muted); font-weight: 600; }
.tier-table tr:hover { background: var(--accent-soft); }

.endpoint-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.endpoint-card {
  padding: 12px;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
}

.endpoint-card:hover { border-color: var(--border-strong); background: var(--accent-soft); }
.endpoint-card h3 {
  margin: 4px 0 2px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: var(--font-heading-weight) !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
}
.endpoint-card p { margin: 0; font-size: 14px; color: var(--text-muted); }

.endpoint-heading { margin-top: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.endpoint-path {
  margin: 0;
  font-family: var(--font-tile-title);
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transform: translateY(var(--font-tile-title-offset-y, 0));
  line-height: 1.25;
  color: #ffffff;
}
.path-code { margin: 4px 0 0; font-family: var(--font-mono); font-size: 14px; color: var(--text-muted); }

/* ── Endpoint header (Arkham-style: route → handler → lead) ── */
.endpoint-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--border);
}

.endpoint-doc-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--code-bg);
  overflow: hidden;
}

:root[data-theme="light"] .endpoint-doc-card {
  background: var(--code-bg);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.endpoint-card-body {
  padding: 4px 28px 28px;
}

.endpoint-route {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0;
  line-height: 1.3;
}

.method-badge-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-subtle);
}

.method-badge-lg[data-method="GET"] {
  background: rgba(60, 255, 184, 0.12);
  color: var(--success);
}

.method-badge-lg[data-method="POST"] {
  background: rgba(78, 124, 255, 0.16);
  color: #6f9bff;
}

.method-badge-lg[data-method="PUT"],
.method-badge-lg[data-method="PATCH"] {
  background: rgba(255, 200, 120, 0.14);
  color: var(--warning);
}

.method-badge-lg[data-method="DELETE"] {
  background: rgba(255, 123, 147, 0.14);
  color: var(--danger);
}

:root[data-theme="light"] .method-badge-lg[data-method="GET"] {
  background: rgba(13, 159, 95, 0.12);
  color: #0d6b40;
}

:root[data-theme="light"] .method-badge-lg[data-method="POST"] {
  background: rgba(37, 99, 235, 0.10);
  color: #1d4ed8;
}

:root[data-theme="light"] .method-badge-lg[data-method="PUT"],
:root[data-theme="light"] .method-badge-lg[data-method="PATCH"] {
  background: rgba(216, 135, 0, 0.14);
  color: #8a5500;
}

:root[data-theme="light"] .method-badge-lg[data-method="DELETE"] {
  background: rgba(207, 53, 83, 0.10);
  color: #a8203f;
}

.endpoint-route-path {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-main);
  word-break: break-word;
}

/* Big page-level endpoint title above the card */
.endpoint-main > h1.endpoint-display-title,
h1.endpoint-display-title {
  margin: 0 0 20px;
  padding: 0;
  font-family: var(--font-heading) !important;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: var(--font-heading-weight) !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.1;
  color: #ffffff;
}

/* Handler name (operationId) is hidden visually; kept in DOM for SEO + a11y */
.endpoint-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Legacy class — kept hidden in case any cached HTML still ships it. */
.endpoint-operation-id {
  display: none;
}

.endpoint-lead {
  margin: 6px 0 0;
  color: var(--text-subtle);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.65;
}

.endpoint-block {
  padding-top: 28px;
}

.endpoint-block + .endpoint-block {
  margin-top: 0;
  padding-top: 28px;
}

.endpoint-block-title {
  margin: 0 0 4px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: var(--font-heading-weight) !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.3;
}

.api-param-list {
  display: flex;
  flex-direction: column;
}

.api-param-group {
  display: flex;
  flex-direction: column;
}

.api-param-group + .api-param-group {
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 8px;
}

.api-param {
  padding: 14px 0 16px;
}

.api-param:first-child {
  padding-top: 12px;
}

.api-param:last-child {
  padding-bottom: 4px;
}

.api-param-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  line-height: 1.3;
}

.api-param-name {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  background: none;
  padding: 0;
  line-height: 1.3;
}

.api-param-type {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.35;
  color: var(--text-subtle);
  background: rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-sm);
  padding: 2px 7px;
}

:root[data-theme="light"] .api-param-type {
  background: #eef0f3;
  color: var(--text-subtle);
}

.api-param-location {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Hide the legacy · separator if any stale HTML still renders it */
.api-param-sep {
  display: none;
}

.api-param-required {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--danger);
  line-height: 1.3;
}

.api-param-optional {
  display: none;
}

/* Legacy api-tag classes — kept neutral in case stale HTML lingers. */
.api-tag {
  display: none;
}

.api-param-desc {
  margin: 10px 0 0;
  color: var(--text-subtle);
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.65;
}

.api-param-enum {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.api-param-enum-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.api-param-enum-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.api-param-enum-sep {
  display: none;
}

.enum-chip-inline {
  padding: 1px 6px;
  font-size: 11px;
  border-radius: var(--radius-sm);
}

.api-param-example {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.api-param-example-label {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-subtle);
}

.api-param-example code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.07);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

:root[data-theme="light"] .api-param-example code {
  background: #eef0f3;
}

.api-responses {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-top: none;
}

.api-response-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  text-align: left;
  color: var(--text-subtle);
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.api-response-row:last-child {
  border-bottom: 1px solid var(--border);
}

.api-response-row:hover {
  border-color: var(--border-strong);
  background: var(--accent-soft);
  color: var(--text-main);
}

.api-response-row[data-active="true"] {
  border-color: var(--border-grey, var(--border));
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
}

:root[data-theme="light"] .api-response-row[data-active="true"] {
  border-color: var(--border-strong);
  background: rgba(0, 0, 0, 0.04);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
}

.status-badge-success {
  background: rgba(62, 219, 142, 0.16);
  color: var(--success);
}

.status-badge-client {
  background: rgba(255, 140, 77, 0.16);
  color: #ff8c4d;
}

.status-badge-server {
  background: rgba(255, 93, 120, 0.16);
  color: var(--danger);
}

.status-badge-other {
  background: var(--accent-soft);
  color: var(--text-muted);
}

.status-label {
  font-size: 13px;
  color: var(--text-subtle);
}

.response-schema-name {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #c4a8ff;
}

:root[data-theme="light"] .response-schema-name {
  color: #8250df;
}

.api-response-detail {
  padding-top: 18px;
}

.api-response-media {
  margin: 0 0 14px;
  font-size: 12px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.api-response-media code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-main);
  background: var(--code-bg);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
}

.endpoint-doc-card .field-list {
  border-top: 1px solid var(--border);
  margin-top: 14px;
}

.endpoint-doc-card .field-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.endpoint-doc-card .field-row:last-child {
  border-bottom: none;
}

.endpoint-doc-card .field-row-depth-1,
.endpoint-doc-card .field-row-depth-2,
.endpoint-doc-card .field-row-depth-3 {
  padding-left: 20px;
}

.endpoint-doc-card .field-row-depth-2 {
  padding-left: 40px;
}

.endpoint-doc-card .field-row-depth-3 {
  padding-left: 60px;
}

.endpoint-doc-card .field-row-depth-1::before,
.endpoint-doc-card .field-row-depth-2::before,
.endpoint-doc-card .field-row-depth-3::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
  left: 0;
}

.endpoint-doc-card .field-row-depth-2::before {
  left: 20px;
}

.endpoint-doc-card .field-row-depth-3::before {
  left: 40px;
}

.endpoint-doc-card .field-key {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.35;
}

:root[data-theme="light"] .endpoint-doc-card .field-key {
  color: var(--text-main);
}

.endpoint-doc-card .field-row-desc {
  margin: 6px 0 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-subtle);
}

.endpoint-doc-card .field-row-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.endpoint-doc-card .field-row-pills {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.endpoint-doc-card .type-pill,
.endpoint-doc-card .meta-pill {
  border: none;
  background: none;
  padding: 0;
  border-radius: 0;
  white-space: nowrap;
  color: var(--text-muted);
}

.endpoint-doc-card .type-pill {
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-transform: none;
  letter-spacing: 0;
}

.endpoint-doc-card .meta-pill {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.endpoint-doc-card .field-row-pills .type-pill + .meta-pill::before,
.endpoint-doc-card .field-row-pills .meta-pill + .meta-pill::before {
  content: "·";
  margin-right: 10px;
  color: var(--text-muted);
  opacity: 0.6;
}

.endpoint-doc-card .allowed-values {
  margin-top: 10px;
}

.endpoint-doc-card .allowed-values-label {
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.endpoint-doc-card .enum-chip {
  padding: 2px 8px;
  font-size: 11.5px;
}

.endpoint-doc-card .empty-state {
  padding: 8px 0;
  font-size: 13px;
}

.static-doc-page .api-response-row {
  cursor: default;
}

.static-doc-page .api-response-row:hover {
  background: transparent;
}

.static-doc-page .api-response-row[data-active="true"] {
  border-color: var(--border-grey, var(--border));
  background: rgba(255, 255, 255, 0.03);
}

.endpoint-doc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 56px;
  align-items: start;
}

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

.endpoint-rail {
  position: sticky;
  top: calc(var(--navbar-height) + 16px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.code-rail-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  overflow: hidden;
}

.code-rail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  background: transparent;
}

.code-rail-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: var(--font-heading-weight) !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
}

.code-copy-btn {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-subtle);
  width: 30px;
  height: 30px;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.code-copy-btn:hover {
  color: var(--text-main);
  border-color: var(--border-strong);
  background: var(--accent-soft);
}

.code-copy-btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.code-copy-btn.is-copied {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.code-rail-meta {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.code-rail-meta .status-code {
  color: #46e68d;
  font-weight: 600;
}

.code-rail-meta .status-sep,
.code-rail-meta .status-media {
  color: var(--text-muted);
}

.code-rail-card .code-block {
  margin: 0;
  border-left: 0;
  background: transparent;
  max-height: 420px;
}

/* Prism base – transparent bg so our card bg shows through */
.endpoint-rail .code-block code[class*="language-"],
.endpoint-rail .code-block pre[class*="language-"] {
  background: transparent;
  text-shadow: none;
  color: #d4d4d4;
  font-family: var(--font-mono);
}

/* JSON tokens */
.endpoint-rail .token.property       { color: #79c0ff; }
.endpoint-rail .token.string         { color: #a5d6ff; }
.endpoint-rail .token.number         { color: #7ee787; }
.endpoint-rail .token.boolean        { color: #7ee787; }
.endpoint-rail .token.null           { color: #7ee787; }
.endpoint-rail .token.punctuation    { color: #8b949e; }

/* ── Bash / cURL tokens ── */
.endpoint-rail .token.function       { color: #d2a8ff; }
.endpoint-rail .token.builtin        { color: #d2a8ff; }
.endpoint-rail .token.keyword        { color: #ff7b72; }
.endpoint-rail .token.operator       { color: #d4d4d4; }
.endpoint-rail .token.comment        { color: #8b949e; font-style: italic; }
.endpoint-rail .token.variable       { color: #ffa657; }
.endpoint-rail .token.assign-left    { color: #ffa657; }

/* Light theme token overrides – vivid on #f1f3f5 bg */
:root[data-theme="light"] .endpoint-rail .code-block code[class*="language-"],
:root[data-theme="light"] .endpoint-rail .code-block pre[class*="language-"] {
  color: #1f2328;
}
:root[data-theme="light"] .endpoint-rail .token.property    { color: #0969da; }
:root[data-theme="light"] .endpoint-rail .token.string      { color: #116329; }
:root[data-theme="light"] .endpoint-rail .token.number      { color: #cf6b00; }
:root[data-theme="light"] .endpoint-rail .token.boolean     { color: #0550ae; }
:root[data-theme="light"] .endpoint-rail .token.null        { color: #6e7781; }
:root[data-theme="light"] .endpoint-rail .token.punctuation { color: #393a34; }
:root[data-theme="light"] .endpoint-rail .token.function    { color: #8250df; }
:root[data-theme="light"] .endpoint-rail .token.keyword     { color: #cf222e; }
:root[data-theme="light"] .endpoint-rail .token.comment     { color: #6e7781; font-style: italic; }
:root[data-theme="light"] .endpoint-rail .token.variable    { color: #cf6b00; }

.table-wrap { overflow-x: auto; }
.param-table { width: 100%; border-collapse: collapse; font-size: 15px; table-layout: auto; }
.param-table .param-col-name { width: 100px; }
.param-table .param-col-type { width: 150px; }
.param-table .param-col-desc { width: 320px; }
.param-table th,
.param-table td {
  text-align: left;
  vertical-align: middle;
  padding: 8px 12px 8px 0;
  border-bottom: 1px solid var(--border);
}
.param-table th { color: var(--text-muted); font-weight: 500; }
.param-table td.param-desc {
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 320px;
  min-width: 0;
}
.param-name { display: inline-flex; align-items: center; gap: 6px; }
.param-name code { font-size: 13px; }
.required-pill {
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-muted);
}

.field-list {
  border-top: 1px solid var(--border);
}

.field-row {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

/* Legacy flat-depth indentation is no longer used — tree is nested via <details> */
.field-row-depth-1,
.field-row-depth-2,
.field-row-depth-3 {
  padding-left: 0;
}

/* ── Collapsible field tree (native <details>) ── */
.field-row-group {
  display: block;
  padding: 0;
  border-bottom: 1px solid var(--border);
}

.field-row-group > .field-row-summary {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 0;
  cursor: pointer;
  list-style: none;
  outline: none;
}

.field-row-group > .field-row-summary::-webkit-details-marker {
  display: none;
}

.field-row-group > .field-row-summary:hover .field-key {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.field-row-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 14px;
  height: 22px;
  margin-top: 0;
  color: var(--text-muted);
  transition: transform 140ms ease;
}

.field-row-chevron::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid currentColor;
}

.field-row-group[open] > .field-row-summary .field-row-chevron {
  transform: rotate(90deg);
}

.field-row-body {
  flex: 1;
  min-width: 0;
}

.field-row-body > .field-row-head,
.field-row-body > .field-row-desc,
.field-row-body > .allowed-values {
  margin-top: 0;
}

.field-row-body > .field-row-desc {
  margin-top: 6px;
}

/* Children container: indent + soft left guideline */
.field-children {
  padding: 4px 0 8px 22px;
  margin-left: 6px;
  border-left: 1px solid var(--border);
}

.field-children > .field-row,
.field-children > .field-row-group {
  border-bottom: 1px solid var(--border);
}

.field-children > .field-row:last-child,
.field-children > .field-row-group:last-child {
  border-bottom: none;
}

/* Make the leaf rows inside the tree consistent */
.field-list > .field-row,
.field-list > .field-row-group {
  border-bottom: 1px solid var(--border);
}

.field-list > .field-row:last-child,
.field-list > .field-row-group:last-child {
  border-bottom: none;
}

.field-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.field-key {
  font-family: var(--font-mono);
  font-size: 17px;
  color: var(--accent);
  line-height: 1.35;
}

.field-row-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.type-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-main);
  white-space: nowrap;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  white-space: nowrap;
}

.field-row-desc {
  margin: 8px 0 0;
  color: var(--text-subtle);
  font-size: 16px;
  line-height: 1.55;
}

.allowed-values {
  margin-top: 10px;
}

.allowed-values-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.allowed-values-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.enum-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-main);
  background: color-mix(in srgb, var(--accent-soft) 35%, transparent);
  white-space: nowrap;
}

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.tab-button {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-subtle);
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
}
.tab-button[data-active="true"] { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* Code: subtle, not a big box */
.code-block {
  border: none;
  border-left: 3px solid var(--border-strong);
  border-radius: 0;
  background: var(--code-bg);
  margin: 8px 0 0;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  overflow: auto;
}

.empty-state {
  padding: 12px 0;
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
}

.sidebar-backdrop { display: none; }
.mobile-only { display: none; }

@media (max-width: 1280px) {
  .overview-layout { grid-template-columns: minmax(0, 1fr); }
  .overview-toc { display: none; }
  .endpoint-doc-layout {
    grid-template-columns: 1fr;
  }
  .endpoint-rail {
    position: static;
    top: auto;
  }
}

@media (max-width: 1024px) {
  .layout-shell {
    flex-direction: column;
    gap: 0;
    padding: 0;
    padding-top: var(--navbar-height);
  }

  .sidebar {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    width: min(320px, 85vw);
    height: calc(100vh - var(--navbar-height));
    min-height: calc(100vh - var(--navbar-height));
    transform: translateX(-100%);
    transition: transform 200ms ease;
    z-index: 30;
    background: var(--bg);
    border: 1px solid var(--border);
    border-left: none;
    padding: 12px;
  }
  body[data-sidebar-open="true"] .sidebar { transform: translateX(0); }
  .sidebar-backdrop {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 25;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }
  body[data-sidebar-open="true"] .sidebar-backdrop { opacity: 1; pointer-events: all; }
  .sidebar-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 4px 8px;
    margin-bottom: 4px;
  }
  .mobile-only { display: inline-flex; align-items: center; justify-content: center; }
  .navbar-hamburger.mobile-only {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .navbar-left { display: none; }

  .navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }

  .navbar-center-brand {
    justify-self: auto;
    flex: 0 1 auto;
  }

  .navbar-right {
    justify-self: auto;
    flex-shrink: 0;
  }

  .navbar-wordmark { height: 14px; }
  .nav-search-wrap { width: min(240px, 50vw); }
  .content { padding: 12px 12px 32px; }
  .main-column { padding: 0 12px; box-sizing: border-box; }
}

@media (max-width: 720px) {
  .global-navbar .navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px;
  }
  .nav-search-wrap { width: min(140px, 35vw); flex-shrink: 1; min-width: 0; }
  .nav-search-input { font-size: 13px; height: 32px; padding: 0 8px; }
  .hero-title { font-size: 14px; }
  .section-title { font-size: 14px; }
  .section-title-prominent { font-size: 14px; }
  .endpoint-section-stack .section-title { font-size: 14px; }
  .endpoint-path { font-size: 14px; word-break: break-word; }
  .path-code { word-break: break-all; }
  .muted, .field-row-desc, .hero-subtitle { overflow-wrap: break-word; word-wrap: break-word; }
  .field-row-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .field-row-pills { justify-content: flex-start; }
  .field-key { font-size: 14px; word-break: break-all; }
  .endpoint-rail { width: 100%; min-width: 0; }
  .code-rail-card { width: 100%; min-width: 0; }
  .code-block { overflow-x: auto; }
  .endpoint-doc-layout { min-width: 0; }
  .endpoint-main { min-width: 0; }
}

/* Footer styles - matching main web app footer */
.docs-footer {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 24px 0;
  margin-top: auto;
  background: transparent;
  flex-shrink: 0;
}

.docs-footer-divider {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px;
  border-top: 1px solid var(--border);
  margin-bottom: 24px;
}

:root[data-theme="light"] .docs-footer-divider {
  border-top-color: var(--border);
}

.docs-footer-content {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.docs-footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.docs-footer-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none !important;
  transition: opacity 0.2s ease;
  line-height: 0;
  color: #fff;
}

.docs-footer-logo:hover,
.docs-footer-logo:active,
.docs-footer-logo:focus,
.docs-footer-logo:visited {
  text-decoration: none !important;
  opacity: 0.8;
}

.docs-footer-brand-mark {
  display: inline-flex;
  align-items: center;
}

.visiblee-footer-brand {
  gap: 9px;
}

.docs-footer-visiblee-mark {
  height: 24px;
  width: 24px;
  border-radius: 5px;
}

.docs-footer-visiblee-text {
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.docs-footer-brand-icon {
  display: flex;
  flex-shrink: 0;
  transform: translateY(-0.73px);
}

.docs-footer-brand-icon svg {
  display: block;
}

.docs-footer-brand-text-crop {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  height: 52.5px;
  margin-left: -7.3px;
  margin-right: -12.2px;
}

.docs-footer-brand-text {
  display: block;
  height: 81.6px;
  width: auto;
  transform: translateY(1.94px);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  pointer-events: none;
}

:root[data-theme="light"] .docs-footer-logo {
  color: #000;
}

:root[data-theme="light"] .docs-footer-brand-text {
  filter: invert(1);
}

.docs-footer-copyright {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-subtle);
  white-space: nowrap;
}

.docs-footer-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.docs-footer-link {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-subtle);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.2);
  text-underline-offset: 3px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.docs-footer-link-subtle {
  opacity: 0.72;
}

.docs-footer-link-subtle:hover {
  opacity: 1;
}

.docs-footer-link:hover {
  color: var(--text-main);
  text-decoration-color: rgba(255, 255, 255, 0.4);
}

.docs-footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-subtle);
  transition: all 0.2s ease;
  text-decoration: none;
}

.docs-footer-social:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-main);
}

.docs-footer-x-icon {
  display: block;
  width: 16px;
  height: 16px;
  color: currentColor;
}

/* Light theme footer adjustments */
:root[data-theme="light"] .docs-footer-link {
  color: var(--text-muted);
  text-decoration-color: rgba(0, 0, 0, 0.2);
}

:root[data-theme="light"] .docs-footer-link:hover {
  color: var(--text-main);
  text-decoration-color: rgba(0, 0, 0, 0.4);
}

:root[data-theme="light"] .docs-footer-social {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--text-muted);
}

:root[data-theme="light"] .docs-footer-social:hover {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.2);
  color: var(--text-main);
}

/* Mobile footer */
@media (max-width: 767px) {
  .docs-footer {
    padding: 20px 0;
  }

  .docs-footer-divider {
    padding: 0 12px;
    margin-bottom: 16px;
  }

  .docs-footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 0 12px;
  }

  .docs-footer-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
  }

  .docs-footer-logo {
    align-self: flex-start;
  }

  .docs-footer-brand-icon svg {
    width: 14px;
    height: 14px;
  }

  .docs-footer-brand-text-crop {
    height: 46px;
    margin-left: -6.4px;
    margin-right: -10.7px;
  }

  .docs-footer-brand-text {
    height: 71.6px;
    transform: translateY(1.7px);
  }

  .docs-footer-copyright {
    font-size: 0.6875rem;
  }

  .docs-footer-right {
    width: 100%;
    justify-content: flex-start;
    gap: 16px;
  }

  .docs-footer-link {
    font-size: 0.6875rem;
  }

  .docs-footer-social {
    width: 28px;
    height: 28px;
  }

  .docs-footer-x-icon {
    width: 14px;
    height: 14px;
  }
}

.global-navbar {
  border-bottom-color: rgba(255, 255, 255, 0.10);
  background: rgba(9, 9, 11, 0.92);
  backdrop-filter: blur(14px);
}

.nav-link {
  color: rgba(255, 255, 255, 0.44);
  border-radius: 5px;
}

.nav-link:hover {
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.04);
}

.nav-link-active {
  color: #ffffff;
}

.nav-indicator {
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.74), rgba(148, 163, 255, 0.92));
}

.nav-search-input {
  height: 34px;
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.nav-search-input:focus {
  border-color: rgba(148, 163, 255, 0.52);
  background: rgba(255, 255, 255, 0.05);
}

.search-results {
  background: rgba(15, 15, 18, 0.98);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
}

.layout-shell {
  gap: 0;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
}

.sidebar {
  width: 268px;
  padding: 18px 14px 18px 10px;
  border-right-color: rgba(255, 255, 255, 0.11);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
}

.sidebar-sections {
  gap: 6px;
  margin-bottom: 18px;
}

.sidebar-link-button,
.sidebar-endpoints-header {
  min-height: 34px;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.50);
  letter-spacing: 0.03em;
}

.sidebar-link-button:hover,
.sidebar-endpoints-header:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.035);
}

.sidebar-link-button[data-active="true"] {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.sidebar-nav {
  margin-left: 6px;
  padding-left: 16px;
  border-left-color: rgba(255, 255, 255, 0.10);
}

.group-header {
  padding: 8px 12px 6px;
  color: rgba(255, 255, 255, 0.42);
}

.endpoint-link {
  padding: 7px 10px;
  color: rgba(255, 255, 255, 0.50);
}

.endpoint-link:hover {
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.86);
}

.endpoint-link[data-active="true"] {
  border-color: rgba(148, 163, 255, 0.28);
  background: rgba(148, 163, 255, 0.09);
}

.content {
  width: min(1040px, 100%);
  padding: 36px 32px 64px;
}

.content.content-endpoint {
  width: min(1460px, 100%);
  padding: 36px 40px 64px;
}

.overview-layout {
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 36px;
}

.toc-card {
  border-left-color: rgba(255, 255, 255, 0.11);
}

.toc-link {
  color: rgba(255, 255, 255, 0.56);
  line-height: 1.35;
}

.toc-link:hover {
  color: #ffffff;
}

.hero-title,
.section-title,
.section-title-prominent,
.subsection-title,
.endpoint-block-title,
.code-rail-title,
.static-doc-page h1:not(.endpoint-display-title),
.static-doc-page h2,
.static-doc-page h3 {
  letter-spacing: 0.035em;
}

.hero-title {
  margin-bottom: 18px;
  font-size: 15px;
}

.section-stack {
  gap: 44px;
}

.muted,
.copy-list,
.api-param-desc,
.endpoint-lead,
.field-row-desc,
.overview-card-desc,
.portal-cta-copy {
  color: rgba(255, 255, 255, 0.62);
}

.auth-grid,
.tier-table {
  font-size: 14px;
}

.auth-grid th,
.auth-grid td,
.tier-table th,
.tier-table td {
  border-bottom-color: rgba(255, 255, 255, 0.10);
}

.auth-grid td,
.tier-table td {
  color: rgba(255, 255, 255, 0.86);
}

.portal-cta,
.overview-card,
.endpoint-card,
.endpoint-doc-card,
.code-rail-card,
.static-doc-section,
.static-doc-index-card {
  border-color: rgba(255, 255, 255, 0.115);
  background: rgba(255, 255, 255, 0.026);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.overview-card:hover,
.endpoint-card:hover,
.static-doc-index-card:hover {
  border-color: rgba(148, 163, 255, 0.35);
  background: rgba(148, 163, 255, 0.075);
}

.endpoint-doc-card {
  background: rgba(255, 255, 255, 0.028);
}

.endpoint-header {
  padding: 26px 30px 22px;
  border-bottom-color: rgba(255, 255, 255, 0.10);
}

.endpoint-card-body {
  padding: 6px 30px 30px;
}

.endpoint-route-path {
  color: rgba(255, 255, 255, 0.92);
}

h1.endpoint-display-title {
  letter-spacing: 0.02em;
}

.api-param,
.endpoint-doc-card .field-row,
.field-row,
.field-row-group,
.field-list,
.endpoint-doc-card .field-list {
  border-color: rgba(255, 255, 255, 0.10);
}

.api-param-name {
  color: #aab7ff;
}

.api-param-type,
.api-param-example code,
.api-response-media code {
  background: rgba(255, 255, 255, 0.065);
  color: rgba(255, 255, 255, 0.88);
}

.api-response-row {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

.api-response-row:hover,
.api-response-row[data-active="true"] {
  border-color: rgba(148, 163, 255, 0.32);
  background: rgba(148, 163, 255, 0.08);
}

.code-block,
.code-panel {
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-left: 1px solid rgba(148, 163, 255, 0.34);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.code-rail-card .code-block {
  border: none;
  border-radius: 0;
  background: transparent;
}

.code-rail-header {
  border-bottom-color: rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.018);
}

.code-copy-btn {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.025);
}

.code-copy-btn:hover {
  border-color: rgba(148, 163, 255, 0.35);
  background: rgba(148, 163, 255, 0.08);
}

.method-badge[data-method="GET"],
.method-badge-lg[data-method="GET"],
.status-badge-success {
  background: rgba(34, 197, 94, 0.12);
}

.method-text[data-method="GET"] {
  color: #4ade80;
}

.docs-footer-divider {
  border-top-color: rgba(255, 255, 255, 0.10);
}

@media (max-width: 1024px) {
  .content,
  .content.content-endpoint {
    padding: 24px 14px 48px;
  }

  .sidebar {
    background: rgba(9, 9, 11, 0.98);
    box-shadow: 16px 0 60px rgba(0, 0, 0, 0.38);
  }
}

@media (max-width: 720px) {
  .content,
  .content.content-endpoint {
    padding: 20px 12px 42px;
  }

  .endpoint-header {
    padding: 20px 18px 18px;
  }

  .endpoint-card-body {
    padding: 4px 18px 22px;
  }
}
