/* Transifyr Docs — single page documentation */
.docs-shell-page {
  padding-top: 86px;
}

.docs-landing-hero {
  padding: 54px 24px 48px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.docs-landing-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, var(--primary-glow-strong) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.docs-landing-inner {
  max-width: 1200px;
  animation: fadeSlideUp 0.6s ease-out;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.docs-eyebrow {
  display: inline-block;
  padding: 8px 20px;
  margin-bottom: 28px;
  color: var(--primary);
  background: var(--primary-glow);
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.docs-landing-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 20px;
  letter-spacing: 0;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.docs-landing-hero p {
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
}

.docs-hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.docs-app-section {
  padding: 0 0 120px;
  overflow: visible;
}

.docs-app-grid {
  width: min(1480px, calc(100vw - 48px));
  max-width: none;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  overflow: visible;
}

.docs-sidebar,
.docs-on-page {
  grid-column: 1;
  position: relative;
  align-self: start;
  width: 260px;
  z-index: 20;
  height: fit-content;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(249, 115, 22, 0.13);
  border-radius: 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(249, 115, 22, 0.45) transparent;
}

@media (min-width: 821px) {
  .docs-sidebar.is-fixed {
    position: fixed;
    top: 96px;
    left: max(24px, calc((100vw - 1480px) / 2 + 24px));
  }
}

.docs-sidebar-title {
  margin-bottom: 12px;
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-sidebar a,
.docs-on-page a {
  display: block;
  padding: 10px 12px;
  color: var(--text-secondary);
  border-radius: 12px;
  font-size: 0.92rem;
  transition: color 0.2s ease, background 0.2s ease;
}

.docs-sidebar a:hover,
.docs-on-page a:hover {
  color: var(--primary);
  background: var(--primary-glow);
}

.docs-article {
  grid-column: 2;
  display: grid;
  gap: 22px;
  min-width: 0;
}

.docs-block {
  scroll-margin-top: 110px;
  padding: clamp(28px, 5vw, 48px);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 30px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
}

.docs-block-kicker {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: #000;
  background: var(--primary);
  border-radius: 14px;
  font-weight: 900;
}

.docs-block h2 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  letter-spacing: -0.04em;
}

.docs-block p,
.docs-check-list,
.docs-table-card p,
.docs-feature-grid p,
.docs-block details p {
  color: var(--text-secondary);
  line-height: 1.72;
}

.docs-step-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.docs-step-list div,
.docs-feature-grid div,
.docs-table-card div {
  padding: 20px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.docs-step-list span {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--primary);
  background: var(--primary-glow);
  border-radius: 50%;
  font-weight: 900;
}

.docs-step-list strong,
.docs-table-card strong,
.docs-feature-grid h3 {
  display: block;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.docs-table-card,
.docs-feature-grid,
.docs-provider-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

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

.docs-provider-grid div {
  padding: 20px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.docs-provider-grid a {
  display: inline-flex;
  margin-top: 10px;
  color: var(--primary);
  font-weight: 800;
}

.docs-note-card {
  margin-top: 14px;
  padding: 18px 20px;
  background: rgba(20, 184, 166, 0.08);
  border: 1px solid rgba(20, 184, 166, 0.18);
  border-radius: 18px;
}

.docs-check-list {
  padding-left: 20px;
}

.docs-check-list li + li {
  margin-top: 10px;
}

.docs-block details {
  padding: 18px 20px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.docs-block details + details {
  margin-top: 12px;
}

.docs-block summary {
  cursor: pointer;
  color: var(--text-primary);
  font-weight: 800;
}

.docs-help-card {
  margin-top: 22px;
  padding: 16px;
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.18);
  border-radius: 18px;
}

.docs-help-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text-primary);
  line-height: 1.35;
}

.docs-help-card p {
  margin: 0 0 14px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.55;
}

.docs-help-card a {
  display: block;
  width: 100%;
  padding: 10px 12px;
  color: var(--primary);
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.16);
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.35;
}

.docs-help-card a + a {
  margin-top: 8px;
}

@media (max-width: 1120px) {
  .docs-app-grid {
    width: min(100%, calc(100vw - 32px));
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
  }

  .docs-sidebar,
  .docs-on-page {
    width: 220px;
  }

  .docs-sidebar.is-fixed {
    left: 16px;
    width: 220px;
  }
}

@media (max-width: 820px) {
  .docs-app-grid,
  .docs-step-list,
  .docs-table-card,
  .docs-feature-grid,
  .docs-provider-grid {
    width: min(100%, calc(100vw - 28px));
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    grid-column: auto;
    position: static;
    width: auto;
    max-height: none;
  }

  .docs-article {
    grid-column: auto;
  }

  .docs-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}