.docs-page {
  margin: 0;
  color: #f2f4f8;
  background: #090909;
  font-family: "Geist", system-ui, sans-serif;
}

.docs-page a {
  color: var(--wf-mint);
}

.docs-page .page {
  overflow: visible;
}

.docs-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 60px;
  padding: 0 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 9, 9, 0.96);
  backdrop-filter: blur(12px);
}

.docs-topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #ffffff;
  font-weight: 600;
  font-size: 17px;
}

.docs-topbar__brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.docs-topbar__logo {
  display: block;
  width: min(240px, 38vw);
  height: auto;
}

.docs-topbar__meta {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: #d7dbe5;
  font-family: "Geist Mono", monospace;
  font-size: 13px;
}

.docs-shell {
  width: min(100%, 1680px);
  margin: 0 auto;
  padding: 0 22px 64px;
}

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

.docs-sidebar,
.docs-toc {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 112px);
  overflow: auto;
  padding-top: 28px;
}

.docs-sidebar__eyebrow,
.docs-toc__eyebrow {
  margin: 0 0 18px;
  color: #9ba3b4;
  font-size: 13px;
  font-weight: 600;
}

.docs-sidebar__group {
  margin-bottom: 28px;
}

.docs-sidebar__title {
  margin: 0 0 12px;
  color: #f3f4f7;
  font-size: 15px;
  font-weight: 600;
}

.docs-sidebar__nav,
.docs-toc__nav {
  display: grid;
  gap: 10px;
}

.docs-sidebar__nav a,
.docs-toc__nav a {
  color: #9ca3af;
  font-size: 15px;
  line-height: 1.4;
}

.docs-sidebar__nav a.is-active,
.docs-toc__nav a.is-active,
.docs-sidebar__nav a:hover,
.docs-toc__nav a:hover {
  color: var(--wf-mint);
}

.docs-content {
  min-width: 0;
  padding: 28px 0 0;
  max-width: 980px;
}

.docs-content h1,
.docs-content h2,
.docs-content h3 {
  text-transform: none;
  letter-spacing: -0.04em;
  color: #f5f7fb;
}

.docs-content h1 {
  max-width: none;
  font-size: clamp(42px, 5vw, 58px);
  line-height: 1.02;
}

.docs-content h2 {
  font-size: clamp(28px, 3.8vw, 40px);
  line-height: 1.08;
}

.docs-content h3 {
  font-size: clamp(20px, 2.5vw, 26px);
  line-height: 1.16;
}

.docs-lead,
.docs-copy,
.docs-kicker,
.docs-meta-list,
.docs-manual-card p,
.docs-step p,
.docs-figure figcaption,
.docs-callout,
.docs-table,
.docs-list {
  color: #d7dbe5;
}

.docs-hero {
  padding: 12px 0 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.docs-kicker {
  margin: 0 0 10px;
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-lead {
  max-width: 54rem;
  margin: 18px 0 0;
  font-size: 21px;
  line-height: 1.65;
}

.docs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.docs-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid rgba(94, 240, 205, 0.28);
  color: #f4fbfa;
  background: rgba(94, 240, 205, 0.08);
  font-weight: 600;
}

.docs-page a.docs-button,
.docs-page a.docs-button:visited {
  color: #f4fbfa;
}

.docs-button:hover {
  border-color: rgba(94, 240, 205, 0.54);
  background: rgba(94, 240, 205, 0.12);
  color: #ffffff;
}

.docs-button--primary {
  background: var(--wf-mint);
  color: #03110d;
}

.docs-page a.docs-button--primary,
.docs-page a.docs-button--primary:visited,
.docs-page a.docs-button--primary:hover {
  color: #03110d;
}

.docs-section {
  padding: 34px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.docs-section--spacious {
  padding-bottom: 68px;
}

.docs-grid {
  display: grid;
  gap: 18px;
}

.docs-grid--triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.docs-manual-card,
.docs-step,
.docs-table-card {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #111214;
}

.docs-card-link {
  display: block;
  transition: border-color 140ms ease, transform 140ms ease, background 140ms ease;
}

.docs-card-link:hover {
  border-color: rgba(94, 240, 205, 0.42);
  background: #14161a;
  transform: translateY(-1px);
}

.docs-link-arrow {
  display: inline-flex;
  margin-top: 6px;
  color: var(--wf-mint);
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-manual-card {
  padding: 22px;
}

.docs-manual-card h3,
.docs-step h3 {
  margin-bottom: 10px;
}

.docs-step-list {
  display: grid;
  gap: 22px;
}

.docs-step {
  padding: 24px;
}

.docs-step__meta {
  margin: 0 0 10px;
  color: var(--wf-mint);
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-step p,
.docs-copy {
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
}

.docs-step__media,
.docs-figure-grid {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.docs-figure-grid--double {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.docs-figure-grid--triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.docs-figure {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0c0d0f;
}

.docs-figure__trigger {
  display: block;
  cursor: zoom-in;
}

.docs-page a.docs-figure__trigger,
.docs-page a.docs-figure__trigger:visited,
.docs-page a.docs-figure__trigger:hover {
  color: inherit;
}

.docs-figure img {
  width: 100%;
  background: #ffffff;
}

.docs-figure figcaption {
  padding: 14px 16px 16px;
  font-size: 14px;
  line-height: 1.5;
}

.docs-callout {
  margin-top: 20px;
  padding: 18px 20px;
  border-left: 3px solid var(--wf-mint);
  border-radius: 0 14px 14px 0;
  background: rgba(94, 240, 205, 0.08);
  font-size: 16px;
  line-height: 1.7;
}

.docs-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(3, 4, 6, 0.9);
}

.docs-lightbox.is-open {
  display: flex;
}

.docs-lightbox__backdrop {
  position: absolute;
  inset: 0;
}

.docs-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #101114;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.44);
}

.docs-lightbox__image {
  display: block;
  width: 100%;
  max-height: calc(100vh - 140px);
  object-fit: contain;
  border-radius: 14px;
  background: #ffffff;
}

.docs-lightbox__caption {
  margin: 12px 52px 0 0;
  color: #d7dbe5;
  font-size: 14px;
  line-height: 1.5;
}

.docs-lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.docs-table-card {
  overflow: hidden;
}

.docs-table-card__label {
  margin: 0;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ba3b4;
  font-size: 13px;
  font-weight: 600;
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
}

.docs-table th,
.docs-table td {
  padding: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
  font-size: 16px;
  line-height: 1.55;
}

.docs-table tr:last-child td {
  border-bottom: 0;
}

.docs-table th {
  width: 32%;
  color: #f5f7fb;
  font-weight: 600;
}

.docs-list {
  margin: 12px 0 0;
  padding-left: 20px;
}

.docs-list li {
  margin-bottom: 10px;
}

.docs-inline-code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #f5f7fb;
  font-family: "Geist Mono", monospace;
  font-size: 0.95em;
}

.docs-code-block {
  overflow-x: auto;
  margin: 18px 0 0;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0a0b0d;
}

.docs-code-block code {
  display: block;
  color: #d7fdf6;
  font-family: "Geist Mono", monospace;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre;
}

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

  .docs-sidebar,
  .docs-toc {
    position: static;
    max-height: none;
    padding-top: 0;
  }

  .docs-grid--triple,
  .docs-figure-grid--double,
  .docs-figure-grid--triple {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .docs-shell {
    padding: 0 16px 48px;
  }

  .docs-topbar {
    padding: 0 16px;
  }

  .docs-topbar__meta {
    display: none;
  }

  .docs-content h1 {
    font-size: 38px;
  }

  .docs-step,
  .docs-manual-card {
    padding: 20px;
  }
}
