/* ============================================================================
   docs.css — "/docs".

   Source of truth: apps/editor/src/pages/resources/DocsPage.tsx. The page hero
   is PageShell/PageHero, whose rules live in marketing.css.

   Each rule is the resolved value of the Tailwind class list quoted above it;
   inline `style={{…}}` values are reproduced as-is.
   ========================================================================= */

/* "max-w-6xl mx-auto px-6 pb-28" */
.docs {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-bottom: 7rem;
}
/* "grid grid-cols-1 lg:grid-cols-[240px_1fr] gap-12" */
.docs__grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 3rem;
}
@media (min-width: 1024px) { .docs__grid { grid-template-columns: 240px 1fr; } }

/* ═══ Sticky section nav ═══════════════════════════════════════════════════ */

/* "hidden lg:block" */
.docs__nav { display: none; }
@media (min-width: 1024px) { .docs__nav { display: block; } }
/* "sticky top-28 flex flex-col gap-1" */
.docs__nav-inner {
  position: sticky;
  top: 7rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
/* "text-[11px] font-semibold uppercase tracking-widest mb-3 px-3"
   + colour var(--mk-text-muted) */
.docs__nav-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  color: var(--mk-text-muted);
}
/* "flex items-center gap-2.5 px-3 py-2 rounded-lg text-sm transition-all",
   with the active row's colour, tint and left rule set inline in the original.
   Note this differs from the legal TOC: py-2 rather than py-1.5, text-sm
   rather than 13px, and an icon in front. */
.docs__nav-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--mk-text-muted);
  background: transparent;
  border-left: 2px solid transparent;
}
.docs__nav-link.is-active {
  color: var(--mk-text);
  background: rgba(99, 102, 241, 0.12);
  border-left: 2px solid #818cf8;
}
/* "flex-shrink-0" + stroke from the section accent; the inactive rows sit at
   0.85 opacity so the active one reads a step brighter. */
.docs__nav-icon { flex-shrink: 0; opacity: 0.85; }
.docs__nav-link.is-active .docs__nav-icon { opacity: 1; }
/* "mt-6 px-3" + "text-xs text-[#000000] dark:text-slate-600 leading-relaxed" */
.docs__nav-aside { margin-top: 1.5rem; padding-left: 0.75rem; padding-right: 0.75rem; }
.docs__nav-aside p { font-size: 0.75rem; color: #000; line-height: 1.625; }
.mk-dark .docs__nav-aside p { color: #475569; }
/* "text-indigo-600 dark:text-indigo-400 hover:text-indigo-600
    dark:hover:text-indigo-400 font-medium" — the hover colour equals the
   resting colour, so there is deliberately no visible hover change. */
.docs__link { color: #4f46e5; font-weight: 500; }
.mk-dark .docs__link { color: #818cf8; }

/* ═══ Content column ═══════════════════════════════════════════════════════ */

/* "flex flex-col gap-16 min-w-0" */
.docs__body { display: flex; flex-direction: column; gap: 4rem; min-width: 0; }
/* scrollMarginTop 110px */
.docs__section { scroll-margin-top: 110px; }
/* "flex items-center gap-3 mb-6" */
.docs__section-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
/* "w-9 h-9 rounded-lg flex items-center justify-center border flex-shrink-0"
   + colour / background (accent at 1A) / borderColor (accent at 33) inline */
.docs__section-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid;
  flex-shrink: 0;
}
/* "text-2xl font-black text-slate-900 dark:text-white tracking-tight"
   + letterSpacing -0.02em */
.docs__section-title {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.mk-dark .docs__section-title { color: #fff; }

/* "flex flex-col gap-4" */
.docs__articles { display: flex; flex-direction: column; gap: 1rem; }
/* "rounded-2xl border border-slate-200/80 dark:border-white/6 p-7"
   + background var(--mk-card-grad). `dark:border-white/6` generates no rule
   (6 is off Tailwind's opacity scale), so the slate-200/80 border stays in
   dark mode — see migration/PROJECT.md, "Reproduced quirks". */
.docs__article {
  border-radius: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  padding: 1.75rem;
  background: var(--mk-card-grad);
}
/* "text-base font-bold text-slate-900 dark:text-white mb-3" */
.docs__h3 {
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.75rem;
}
.mk-dark .docs__h3 { color: #fff; }
/* "flex flex-col gap-3" */
.docs__prose { display: flex; flex-direction: column; gap: 0.75rem; }
/* "text-sm text-[#444444] dark:text-slate-400 leading-relaxed" */
.docs__p { font-size: 0.875rem; color: #444; line-height: 1.625; }
.mk-dark .docs__p { color: #94a3b8; }
/* "flex flex-col gap-2.5 mt-1" */
.docs__ol { display: flex; flex-direction: column; gap: 0.625rem; margin-top: 0.25rem; }
/* "flex items-start gap-3 text-sm text-[#444444] dark:text-slate-400 leading-relaxed" */
.docs__li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: #444;
  line-height: 1.625;
}
.mk-dark .docs__li { color: #94a3b8; }
/* "w-5 h-5 rounded-full flex items-center justify-center text-[10px]
    font-bold text-indigo-600 dark:text-indigo-400 flex-shrink-0 mt-0.5
    border border-indigo-400/25" + background rgba(99,102,241,0.1) */
.docs__num {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #4f46e5;
  flex-shrink: 0;
  margin-top: 0.125rem;
  border: 1px solid rgba(129, 140, 248, 0.25);
  background: rgba(99, 102, 241, 0.1);
}
.mk-dark .docs__num { color: #818cf8; }
/* "mt-2 mb-1" */
.docs__figure { margin-top: 0.5rem; margin-bottom: 0.25rem; }
/* "rounded-xl border border-slate-200/80 dark:border-white/10 mx-auto" */
.docs__figure img {
  border-radius: 0.75rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  margin-left: auto;
  margin-right: auto;
}
.mk-dark .docs__figure img { border-color: rgba(255, 255, 255, 0.1); }
/* "text-xs text-[#666666] dark:text-slate-500 mt-2 text-center" */
.docs__caption {
  font-size: 0.75rem;
  line-height: 1rem;
  color: #666;
  margin-top: 0.5rem;
  text-align: center;
}
.mk-dark .docs__caption { color: #64748b; }

/* "rounded-2xl border border-slate-200/80 dark:border-white/6 p-7 text-center"
   + background rgba(99,102,241,0.05) */
.docs__foot {
  border-radius: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  padding: 1.75rem;
  text-align: center;
  background: rgba(99, 102, 241, 0.05);
}
/* "text-sm text-[#000000] dark:text-slate-400" */
.docs__foot p { font-size: 0.875rem; line-height: 1.25rem; color: #000; }
.mk-dark .docs__foot p { color: #94a3b8; }
