:root {
  --glass: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.14);
  --text-muted: #c9cedd;
  --accent: #f8f9ff;
}

.docs-shell {
  width: min(1200px, 95vw);
  margin: 24px auto 64px;
  display: grid;
  gap: 24px;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 95px;
  border: 1px solid var(--glass-strong);
  background: rgba(0, 0, 0, 0.5);
  border-radius: 18px;
  padding: 20px;
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-label {
  margin: 0 0 8px;
  color: white;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  opacity: 0.8;
}

.docs-sidebar a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
  transition: 0.2s ease;
}

.docs-sidebar a:hover,
.docs-sidebar a.is-active {
  background: var(--glass);
  color: white;
}

.docs-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-card,
.doc-card {
  border: 1px solid var(--glass-strong);
  background: rgba(0, 0, 0, 0.45);
  border-radius: 22px;
  padding: clamp(18px, 3vw, 32px);
  backdrop-filter: blur(8px);
}

.hero-card h1,
.doc-card h2,
.doc-card h3 {
  text-align: left;
}

.hero-card h1 {
  margin: 0;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.5);
}

.hero-card p {
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 75ch;
}

.pill {
  display: inline-block;
  font-size: 0.8rem;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--glass-strong);
  color: #f0f3ff;
}

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

.doc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  background: var(--accent);
  color: #101321;
  font-weight: 700;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 999px;
}

.doc-btn-ghost {
  background: transparent;
  color: white;
  border-color: var(--glass-strong);
}

.doc-card p {
  color: var(--text-muted);
  line-height: 1.7;
}

.doc-card pre {
  background: #0f1428;
  border: 1px solid #2b3350;
  border-radius: 14px;
  padding: 14px;
  overflow-x: auto;
}

.doc-card code {
  font-family: 'SFMono-Regular', Consolas, monospace;
  color: #e8edff;
}

.doc-card strong {
  color: white;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th,
td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  padding: 12px;
  text-align: left;
  color: var(--text-muted);
  vertical-align: top;
  line-height: 1.5;
}

th {
  color: white;
  background: rgba(255, 255, 255, 0.06);
}

.note {
  border-left: 3px solid rgba(255, 255, 255, 0.35);
  padding-left: 12px;
}

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

.doc-grid section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 14px;
}

.hint {
  margin-top: -4px;
}

.example-list {
  display: grid;
  gap: 10px;
}

.example-list p {
  margin: 0;
  border-left: 3px solid rgba(255, 255, 255, 0.35);
  padding-left: 12px;
}

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

  .docs-sidebar {
    position: static;
  }

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