.page--docs {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.docs-layout {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 24px;
  background: transparent;
  padding: 20px 14px;
}

.docs-sidebar__head {
  text-align: center;
  margin-bottom: 16px;
}

.docs-sidebar__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--purple);
  margin: 0;
}

.docs-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.docs-nav__group {
  border-radius: 10px;
}

.docs-nav__script {
  display: grid;
  grid-template-columns: 28px 1fr 16px;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.docs-nav__script:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.docs-nav__script--active {
  color: var(--text);
  border-color: rgba(155, 48, 255, 0.45);
  background: rgba(155, 48, 255, 0.08);
}

.docs-nav__script-icon {
  display: flex;
  color: var(--purple);
}

.docs-nav__script-icon svg {
  width: 18px;
  height: 18px;
}

.docs-nav__script-label {
  font-size: 0.88rem;
  line-height: 1.3;
}

.docs-nav__chevron {
  opacity: 0.45;
  transform: rotate(90deg);
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.docs-nav__group--open .docs-nav__chevron {
  transform: rotate(-90deg);
}

.docs-nav__sections {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 0 8px 40px;
}

.docs-nav__section {
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.84rem;
  border-left: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

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

.docs-nav__section--active {
  color: #7ee8d8;
  border-left-color: #3dd6c5;
  background: rgba(61, 214, 197, 0.06);
}

.docs-main {
  min-width: 0;
  background: transparent;
  padding: 32px;
}

.docs-content__header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.docs-content__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(155, 48, 255, 0.12);
  border: 1px solid rgba(155, 48, 255, 0.35);
  color: var(--purple);
}

.docs-content__icon svg {
  width: 26px;
  height: 26px;
}

.docs-content__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.15;
  margin-bottom: 10px;
}

.docs-content__summary {
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 62ch;
}

.docs-content__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.docs-content__divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 28px 0;
}

.docs-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 28px;
  background: #000;
}

.docs-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.docs-content__section-title {
  font-size: 1.35rem;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.docs-content__section-body {
  line-height: 1.75;
  color: var(--text-muted);
}

.docs-content__section-body p {
  margin-bottom: 1em;
}

.docs-content__section-body ul {
  margin: 0 0 1em 1.2em;
}

.docs-content__section-body code {
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  color: #e0aaff;
  font-size: 0.9em;
}

.docs-index-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 320px;
  text-align: center;
}

.docs-index-prompt__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(155, 48, 255, 0.12);
  border: 1px solid rgba(155, 48, 255, 0.35);
  color: var(--purple);
}

.docs-index-prompt__icon svg {
  width: 26px;
  height: 26px;
}

.docs-index-prompt__text {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

.doc-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.4px;
  text-transform: lowercase;
  background: rgba(61, 214, 197, 0.1);
  border: 1px solid rgba(61, 214, 197, 0.25);
  color: #9ef0e4;
}

.package-docs-cta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  margin-top: 40px;
  padding: 24px 28px;
  border-radius: 16px;
  border: 1px solid rgba(61, 214, 197, 0.22);
  background: linear-gradient(135deg, rgba(61, 214, 197, 0.06), rgba(155, 48, 255, 0.06));
}

.package-docs-cta__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(61, 214, 197, 0.1);
  border: 1px solid rgba(61, 214, 197, 0.3);
  color: #7ee8d8;
}

.package-docs-cta__icon svg {
  width: 22px;
  height: 22px;
}

.package-docs-cta__message {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 10px;
}

.package-docs-cta__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.package-docs-cta__link {
  white-space: nowrap;
}

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

  .docs-sidebar {
    position: static;
  }

  .package-docs-cta {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .package-docs-cta__link {
    justify-self: start;
  }
}

@media (max-width: 600px) {
  .docs-main {
    padding: 20px 16px;
  }

  .docs-content__header {
    flex-direction: column;
  }
}
