/* ------------------------------------------------------------------
   Docs content pages - dark theme, Manrope only
   Loaded after docs.css on interior content pages.
   ------------------------------------------------------------------ */

/* Page shell */
body {
  font-family: 'Manrope', sans-serif;
  background-color: #000000;
  color: #FFFFFF;
}

main {
  padding-top: 84px;
}

/* ------------------------------------------------------------------
   Article hero
   ------------------------------------------------------------------ */

.doc-hero {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 80px 60px 40px;
  overflow: hidden;
}

.doc-hero::before {
  content: '';
  position: absolute;
  bottom: -450px;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 850px;
  background: radial-gradient(ellipse at center bottom, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.12) 30%, rgba(255, 255, 255, 0.04) 55%, transparent 75%);
  filter: blur(150px);
  animation: fadeIn 2s ease-out forwards;
  pointer-events: none;
  z-index: 0;
}

.doc-back {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 32px;
  transition: color 0.25s ease;
}

.doc-back:hover {
  color: rgba(255, 255, 255, 0.9);
}

.doc-back svg {
  width: 16px;
  height: 16px;
}

.doc-tag {
  position: relative;
  z-index: 1;
  display: block;
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 18px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.doc-title {
  position: relative;
  z-index: 1;
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 12px;
}

.doc-subtitle {
  position: relative;
  z-index: 1;
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 25px;
  color: rgba(255, 255, 255, 0.5);
  max-width: 640px;
}

.doc-meta {
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 20px;
}

/* ------------------------------------------------------------------
   Article body
   ------------------------------------------------------------------ */

.doc-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 60px 120px;
}

/* Prose */
.doc-body h2 {
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  font-size: 28px;
  line-height: 36px;
  color: #FFFFFF;
  margin-top: 56px;
  margin-bottom: 16px;
}

.doc-body h2:first-child {
  margin-top: 0;
}

.doc-body h3 {
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 27px;
  color: #FFFFFF;
  margin-top: 36px;
  margin-bottom: 12px;
}

.doc-body p {
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 28px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
}

.doc-body ul,
.doc-body ol {
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 28px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
  padding-left: 24px;
}

.doc-body li {
  margin-bottom: 8px;
}

.doc-body li:last-child {
  margin-bottom: 0;
}

.doc-body strong {
  font-weight: 500;
  color: #FFFFFF;
}

.doc-body a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.doc-body a:hover {
  color: #FFFFFF;
}

.doc-body hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin: 48px 0;
}

/* Inline code */
.doc-body code {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 2px;
  color: #FFFFFF;
}

/* Code blocks */
.doc-body pre {
  background: #0A0A0A;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  padding: 24px;
  margin: 24px 0;
  overflow-x: auto;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  line-height: 22px;
}

.doc-body pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

/* Tables */
.doc-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  line-height: 22px;
}

.doc-body thead th {
  text-align: left;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding: 12px 16px 12px 0;
}

.doc-body tbody td {
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  vertical-align: top;
}

.doc-body tbody tr:last-child td {
  border-bottom: 0;
}

.doc-body tbody code {
  font-size: 14px;
}

/* Callout block */
.doc-callout {
  border-left: 2px solid #FFFFFF;
  padding: 8px 0 8px 24px;
  margin: 32px 0;
}

.doc-callout p {
  font-size: 17px;
  line-height: 28px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* ------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------ */

@media (max-width: 768px) {
  .doc-hero {
    padding: 60px 20px 32px;
  }

  .doc-title {
    line-height: 54px;
  }

  .doc-subtitle {
    font-size: 16px;
    line-height: 24px;
  }

  .doc-body {
    padding: 0 20px 80px;
  }

  .doc-body h2 {
    font-size: 22px;
    line-height: 30px;
  }

  .doc-body h3 {
    font-size: 18px;
    line-height: 25px;
  }

  .doc-body p,
  .doc-body ul,
  .doc-body ol {
    font-size: 16px;
    line-height: 26px;
  }

  .doc-body pre {
    padding: 18px;
    font-size: 13px;
    line-height: 20px;
  }

  .doc-body table {
    font-size: 14px;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .doc-footer {
    gap: 12px;
    flex-wrap: wrap;
  }
}

/* ------------------------------------------------------------------
   Footer (dark variant, matches docs/index.html)
   ------------------------------------------------------------------ */

.footer {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 25px;
  padding: 40px 20px;
}

.footer-link {
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 150%;
  color: #707070;
  transition: color 0.25s ease;
}

.footer-link:hover {
  color: #FFFFFF;
}