/* Docs hub — Mintlify-like density on top of marketing chrome. */
.docs-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: calc(100vh - 4rem);
  background: #fff;
}
.docs-side {
  border-right: 1px solid #e5e7eb;
  background: #fafafa;
  padding: 1.25rem 0.85rem 2.5rem;
  position: sticky;
  top: 4rem;
  height: calc(100vh - 4rem);
  overflow-y: auto;
}
.docs-side-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ca3af;
  padding: 0.85rem 0.7rem 0.35rem;
}
.docs-side a {
  display: block;
  padding: 0.38rem 0.7rem;
  border-radius: 8px;
  font-size: 13.5px;
  color: #52525b;
  text-decoration: none;
  line-height: 1.35;
}
.docs-side a:hover { background: #f4f4f5; color: #18181b; }
.docs-side a.is-active {
  background: #ecfdf5;
  color: #047857;
  font-weight: 600;
}
.docs-main {
  min-width: 0;
  padding: 2.25rem 1.5rem 4.5rem;
}
.docs-prose {
  max-width: 42rem;
}
.docs-prose.docs-wide { max-width: 72rem; }
.docs-prose h1 {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #18181b;
  line-height: 1.15;
}
.docs-prose h2 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #18181b;
  margin-top: 2.25rem;
}
.docs-prose h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #18181b;
  margin-top: 1.5rem;
}
.docs-prose p, .docs-prose li {
  color: #52525b;
  line-height: 1.65;
  font-size: 15px;
}
.docs-prose p { margin-top: 0.85rem; }
.docs-prose ul, .docs-prose ol { margin: 0.75rem 0 0 1.2rem; }
.docs-prose li + li { margin-top: 0.35rem; }
.docs-prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.86em;
  background: #f4f4f5;
  border-radius: 4px;
  padding: 0.1em 0.35em;
  color: #18181b;
}
.docs-prose a { color: #047857; text-decoration: underline; text-underline-offset: 3px; }
.docs-prose a:hover { color: #065f46; }
.docs-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}
.docs-prose th, .docs-prose td {
  text-align: left;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid #f4f4f5;
  vertical-align: top;
}
.docs-prose th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #71717a;
  background: #fafafa;
  font-weight: 600;
}
.docs-prose tr:last-child td { border-bottom: 0; }

.docs-lead { font-size: 1.05rem !important; color: #3f3f46 !important; }

.docs-setup {
  border: 1px solid rgba(128,128,128,0.28);
  border-radius: 10px;
  padding: 14px;
  margin: 1.2rem 0;
}
.docs-setup-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.docs-setup-field { flex: 2 1 260px; }
.docs-setup-field-sm { flex: 1 1 180px; }
.docs-setup-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.65;
  margin-bottom: 4px;
}
.docs-setup input, .docs-setup select, .docs-setup-btn {
  width: 100%;
  padding: 7px 10px;
  border-radius: 6px;
  border: 1px solid rgba(128,128,128,0.4);
  background: transparent;
  color: inherit;
  font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.docs-setup-btn {
  width: auto;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}
.docs-setup-btn:disabled { opacity: 0.6; cursor: wait; }
.docs-setup-hint {
  font-size: 12px;
  opacity: 0.6;
  margin: 10px 0 0;
}
.docs-status {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
}
.docs-status-ok { border: 1px solid rgba(34,160,90,0.5); }
.docs-status-fail { border: 1px solid rgba(210,70,70,0.5); }
.docs-status-meta { opacity: 0.6; font-size: 12px; margin-left: 4px; }
.docs-status-body { margin-top: 6px; white-space: pre-wrap; }

.docs-config {
  border: 1px solid rgba(128,128,128,0.32);
  border-radius: 10px;
  margin: 1.2rem 0;
  overflow: hidden;
}
.docs-config-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px 6px 14px;
  border-bottom: 1px solid rgba(128,128,128,0.22);
  font-size: 12px;
  opacity: 0.8;
}
.docs-config-bar code {
  background: none;
  padding: 0;
  font-size: 12px;
}
.docs-config-copy {
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid rgba(128,128,128,0.4);
  background: transparent;
  color: inherit;
  font-size: 12px;
  cursor: pointer;
}
.docs-config pre {
  margin: 0;
  padding: 14px;
  overflow-x: auto;
  font-size: 12.5px;
  line-height: 1.55;
  background: #18181b;
  color: #f4f4f5;
}
.docs-config pre code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: inherit;
}

.docs-callout {
  border-radius: 10px;
  padding: 12px 14px;
  margin: 1.1rem 0;
  font-size: 14px;
  line-height: 1.55;
  color: #3f3f46;
}
.docs-callout strong { color: #18181b; }
.docs-note { background: #eff6ff; border: 1px solid #bfdbfe; }
.docs-warning { background: #fff7ed; border: 1px solid #fed7aa; }

.docs-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 1.25rem 0;
}
.docs-card {
  display: block;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px 16px;
  text-decoration: none !important;
  color: inherit;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.docs-card:hover {
  border-color: #a7f3d0;
  box-shadow: 0 8px 20px -12px rgba(15,23,42,.18);
}
.docs-card-title {
  display: block;
  font-weight: 600;
  color: #18181b;
  font-size: 14px;
}
.docs-card-desc {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  color: #71717a;
  line-height: 1.45;
}

.docs-steps { counter-reset: docs-step; margin: 1rem 0 0; padding: 0; list-style: none; }
.docs-steps > li {
  position: relative;
  padding: 0.35rem 0 1rem 2.2rem;
  border-left: 1px solid #e5e7eb;
  margin-left: 0.7rem;
}
.docs-steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.docs-steps > li::before {
  counter-increment: docs-step;
  content: counter(docs-step);
  position: absolute;
  left: -0.7rem;
  top: 0.15rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  background: #18181b;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.docs-oneliner {
  display: flex;
  align-items: stretch;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  margin: 1.2rem 0;
  background: #18181b;
}
.docs-oneliner pre {
  margin: 0;
  padding: 14px 16px;
  color: #f4f4f5;
  font-size: 13px;
  overflow-x: auto;
  flex: 1;
  line-height: 1.5;
}
.docs-oneliner button {
  border: 0;
  border-left: 1px solid #3f3f46;
  background: #27272a;
  color: #e4e4e7;
  padding: 0 14px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
}

.docs-side-toggle { display: none; }

@media (max-width: 900px) {
  .docs-shell { grid-template-columns: 1fr; }
  .docs-side {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid #e5e7eb;
  }
  .docs-cards { grid-template-columns: 1fr; }
  .docs-main { padding: 1.5rem 1rem 3rem; }
}
