/* Docs — align with absendigital.app landing tokens */

.landing-noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.docs-shell-bg {
  background:
    radial-gradient(900px 480px at 12% -10%, rgba(16, 185, 129, 0.22), transparent 60%),
    radial-gradient(700px 420px at 92% 8%, rgba(13, 148, 136, 0.14), transparent 55%),
    linear-gradient(180deg, #e8f5f0 0%, #f3f7f5 42%, #f3f7f5 100%);
}

.docs-grid {
  background-image:
    linear-gradient(rgba(6, 95, 70, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 95, 70, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 80%);
}

.docs-prose h2 {
  margin-top: 2rem;
  margin-bottom: 0.65rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(6, 95, 70, 0.12);
  font-family: Outfit, sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0b1220;
}
.docs-prose h2:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.docs-prose h3 {
  margin-top: 1.25rem;
  margin-bottom: 0.4rem;
  font-family: Outfit, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
}
.docs-prose p { margin: 0 0 0.85rem; color: #334155; line-height: 1.65; }
.docs-prose ul, .docs-prose ol { margin: 0 0 1rem; padding-left: 1.15rem; color: #334155; }
.docs-prose li { margin: 0.3rem 0; }
.docs-prose li::marker { color: #059669; }
.docs-prose a { color: #059669; font-weight: 600; }
.docs-prose a:hover { color: #047857; }

.docs-prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.84em;
  background: #ecfdf5;
  color: #065f46;
  padding: 0.1rem 0.4rem;
  border-radius: 0.4rem;
  border: 1px solid rgba(16, 185, 129, 0.18);
}

.docs-prose pre {
  margin: 0.75rem 0 1.15rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: #0b1220;
  color: #d1fae5;
  overflow-x: auto;
  font-size: 0.78rem;
  line-height: 1.6;
  border: 1px solid rgba(16, 185, 129, 0.25);
  box-shadow: 0 16px 40px -24px rgba(16, 185, 129, 0.45);
}
.docs-prose pre code {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.docs-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0 1.25rem;
  font-size: 0.875rem;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(6, 95, 70, 0.12);
  background: white;
}
.docs-prose th,
.docs-prose td {
  text-align: left;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid rgba(6, 95, 70, 0.1);
  vertical-align: top;
}
.docs-prose th {
  background: #ecfdf5;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  font-weight: 700;
}
.docs-prose tr:last-child td { border-bottom: 0; }

.docs-steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 1rem; }
.docs-steps li {
  position: relative;
  padding: 0.9rem 0.9rem 0.9rem 3rem;
  margin: 0 0 0.65rem;
  border: 1px solid rgba(6, 95, 70, 0.12);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.85);
  color: #334155;
}
.docs-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0.75rem;
  top: 0.85rem;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 9999px;
  background: #059669;
  color: white;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  font-family: Outfit, sans-serif;
}

.docs-callout {
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  margin: 1rem 0;
  font-size: 0.9rem;
  line-height: 1.55;
}
.docs-callout.note {
  background: #ecfdf5;
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #065f46;
}
.docs-callout.warn {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #92400e;
}

.nav-link.active {
  background: #ecfdf5;
  color: #047857 !important;
}
