/* AI University — docs shell + Spline gate (pairs with marketing-auth-layout) */

html.wm-au-scroll-lock,
html.wm-au-scroll-lock body {
  overflow: hidden;
  height: 100%;
}

html.wm-au-bootstrapping .footer {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.wm-au-page {
  min-height: 100vh;
  background: var(--dark-blue-background, #020016);
}

/* Nav reveal (zone → navbar → chip) must stay above the docs shell when content scrolls (stacking / overlap). */
body.wm-au-page .nav-reveal-zone {
  z-index: 10060;
}

body.wm-au-page .navbar-wrapper {
  position: fixed;
  top: 1rem;
  left: 0;
  right: 0;
  z-index: 10059;
}

body.wm-au-page .nav-reveal-chip {
  z-index: 10058;
}

/* --- Spline gate (same scene URL as home; isolated from page scroll) --- */
#wm-au-gate {
  position: fixed;
  inset: 0;
  z-index: 850;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark-blue-background, #020016);
}

#wm-au-gate.wm-au-gate--exiting {
  pointer-events: none;
}

/* Hide spline + reveal targets until scene is ready. Do not set opacity:0 on .wm-au-gate__titles —
   GSAP animates [data-wm-reveal] children; a parent with opacity:0 would hide them regardless. */
#wm-au-gate:not(.wm-au-gate--revealed) .wm-au-gate__spline,
#wm-au-gate:not(.wm-au-gate--revealed) [data-wm-reveal] {
  opacity: 0;
  visibility: hidden;
}

.wm-au-gate__layout {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wm-au-gate__spline {
  position: absolute;
  inset: 0;
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
  z-index: 0;
}

.wm-au-gate__spline .wm-au-spline-grad {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  min-height: 45em;
  position: relative;
  overflow: hidden;
  z-index: 2;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 24%,
    black 76%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 24%,
    black 76%,
    transparent 100%
  );
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.wm-au-gate__spline .wm-home-globe-inner {
  z-index: 1;
  position: absolute;
  inset: 0;
  width: 100%;
  scale: 1.2;
  height: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.wm-au-gate__spline .wm-home-globe-inner spline-viewer,
.wm-au-gate__spline .wm-home-globe-inner .wm-home-globe-spline {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 100%;
  box-sizing: border-box;
}

.wm-au-gate__spline .wm-au-fade-bottom {
  background-image: linear-gradient(
    180deg,
    transparent,
    var(--dark-blue-background, #05060a)
  );
  pointer-events: none;
  height: 5vh;
  position: absolute;
  inset: auto 0 0;
  z-index: 4;
}

.wm-au-gate__titles {
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 7rem;
  z-index: 2;
}

.wm-au-gate__line1 {
  font-family: var(--montserrat-para, "Montserrat", sans-serif);
  color: #fbfbfb;
  font-size: clamp(3.5rem, 12vw, 8rem);
  line-height: 1;
  margin: 0;
}

.wm-au-gate__line1 span {
  background-image: linear-gradient(
    180deg,
    #27072e00,
    #27072e 37%,
    var(--peach, #fe8963)
  );
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.wm-au-gate__line2 {
  font-family: var(--montserrat-para, "Montserrat", sans-serif);
  color: #fbfbfb;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
  margin: -0.35em 0 0;
  font-size: clamp(1.75rem, 6vw, 4rem);
  line-height: 1;
}

.wm-au-gate__line2 span {
  background-image: linear-gradient(
    180deg,
    #40084c,
    var(--light-blue, #7badf1) 78%
  );
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.wm-au-gate__cta {
  pointer-events: auto;
  margin-top: 1rem;
  text-decoration: none;
}

.wm-au-enter-wrap {
  pointer-events: auto;
  position: absolute;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

#wm-au-gate .wm-au-enter-wrap .lab-button.primary {
  min-width: 9rem;
}

/* --- Docs application shell --- */
.wm-au-page-stack {
  position: relative;
  z-index: 1;
}

/* Article sidebar rail: background lives on .wm-au-sidebar (see modern sidebar block) */

.wm-au-page-stack:has(#wm-au-app.wm-au-app--article) > #wm-au-app,
.wm-au-page-stack:has(#wm-au-app.wm-au-app--article) > .footer {
  position: relative;
  z-index: 1;
}

#wm-au-app {
  position: relative;
  z-index: auto;
  min-height: 100vh;
  background: none;
}

.wm-au-app--article .wm-au-docs-wrap,
.wm-au-app--article .wm-au-grid {
  background: transparent;
}

#wm-au-app .wm-au-docs-wrap {
  min-height: 100vh;
}

.wm-au-docs-wrap {
  background: transparent;
  padding-bottom: 4rem;
}

.wm-au-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.38fr) 1fr;
  gap: 0;
  align-items: stretch;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

.wm-au-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  max-height: 100vh;
  overflow: auto;
  padding: 5rem 0.75rem 2rem;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
}

.wm-au-app--article .wm-au-sidebar {
  align-self: stretch;
  min-height: 100vh;
  overflow-x: hidden;
  background: linear-gradient(
    175deg,
    rgba(14, 22, 48, 0.62) 0%,
    rgba(9, 14, 32, 0.48) 52%,
    rgba(6, 10, 22, 0.55) 100%
  );
  border-right: 1px solid rgba(140, 191, 255, 0.14);
  box-shadow:
    inset -1px 0 0 rgba(255, 255, 255, 0.05),
    4px 0 32px rgba(4, 8, 22, 0.18);
  backdrop-filter: blur(24px) saturate(132%);
  -webkit-backdrop-filter: blur(24px) saturate(132%);
}

.wm-au-sidebar__inner {
  max-width: 22rem;
  margin: 0 auto;
}

.wm-au-app--article .wm-au-sidebar__inner {
  max-width: 100%;
  width: 100%;
}

.wm-au-sidebar__block {
  border-bottom: 1px solid var(--og-light-border, rgba(255, 255, 255, 0.08));
  padding: 1.25rem 0;
}

.wm-au-sidebar__home-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 1rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 12px 0 var(--dark-blue-glass, rgba(30, 40, 80, 0.45));
}

.wm-au-sidebar__home-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wm-au-sidebar__heading {
  font-family: var(--montserrat-para, "Montserrat", sans-serif);
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wm-au-sidebar__cat-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.9;
}

.wm-au-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wm-au-nav-list a {
  display: block;
  padding: 0.4rem 0;
  color: var(--400, rgba(255, 255, 255, 0.55));
  text-decoration: none;
  font-size: 0.875rem;
  transition:
    color 0.2s,
    transform 0.2s;
}

.wm-au-nav-list a:hover {
  color: rgba(255, 255, 255, 0.88);
  transform: translateX(3px);
}

.wm-au-nav-list a.is-active {
  color: var(--light-blue, #7badf1);
}

.wm-au-main {
  padding: 6rem 1.5rem 4rem;
  max-width: 52rem;
}

.wm-au-hub__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.wm-au-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  height: 100%;
  border: 1px solid var(--600, rgba(255, 255, 255, 0.12));
  background: var(--700, rgba(25, 28, 45, 0.85));
  border-radius: 1.25rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.2s,
    border-color 0.2s,
    background 0.2s;
  box-shadow: inset 0 -4px 10px rgba(211, 212, 255, 0.15);
}

.wm-au-card:hover {
  border-color: var(--border-card, rgba(123, 173, 241, 0.35));
  background: var(--bg-card, rgba(32, 36, 58, 0.95));
  box-shadow:
    inset 0 -4px 10px rgba(211, 212, 255, 0.16),
    0 0 0 1px rgba(165, 203, 255, 0.14),
    0 0 26px rgba(95, 155, 255, 0.2);
  filter: brightness(1.02);
}

.wm-au-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
}

.wm-au-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wm-au-card__media--placeholder {
  min-height: 8rem;
  background: linear-gradient(
    145deg,
    rgba(50, 70, 130, 0.4) 0%,
    rgba(18, 22, 42, 0.75) 55%,
    rgba(30, 40, 72, 0.5) 100%
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.wm-au-hub__icon--placeholder {
  background: linear-gradient(
    145deg,
    rgba(55, 75, 130, 0.45),
    rgba(22, 26, 48, 0.85)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.wm-au-card__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  padding: 1.25rem 1.5rem 1.5rem;
  box-shadow: inset 0 -4px 10px rgba(211, 212, 255, 0.12);
}

.wm-au-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.wm-au-card p {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--400, rgba(255, 255, 255, 0.55));
}

.wm-au-hub__intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 0.5rem;
}

.wm-au-hub__icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 12px 0 var(--dark-blue-glass, rgba(30, 40, 80, 0.45));
}

.wm-au-hub__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wm-au-hub__titles {
  flex: 1;
  min-width: 12rem;
}

.wm-au-hub__titles .wm-au-doc-title {
  margin-top: 0;
}

.wm-au-updates-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.wm-au-updates-list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wm-au-updates-list a {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  padding: 1rem 0;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
}

.wm-au-updates-list .wm-au-meta {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  min-width: 6.5rem;
}

.wm-doc-prose {
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.65;
  font-size: 1rem;
}

.wm-doc-prose h1,
.wm-doc-prose h2,
.wm-doc-prose h3 {
  font-family: var(--montserrat-para, "Montserrat", sans-serif);
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  color: #fff;
}

.wm-doc-prose h1 {
  font-size: 2rem;
  margin-top: 0;
}

.wm-doc-prose p {
  margin: 0.75rem 0;
}

.wm-doc-prose ul,
.wm-doc-prose ol {
  padding-left: 1.35rem;
}

.wm-doc-prose code {
  font-family: var(--font-mono, "Inconsolata", monospace);
  font-size: 0.9em;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.12em 0.4em;
  border-radius: 4px;
}

.wm-doc-prose pre {
  overflow: auto;
  padding: 1rem;
  border-radius: var(--wm-radius-md, 10px);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.wm-doc-prose pre code {
  background: none;
  padding: 0;
}

.wm-au-doc-icon {
  width: 60px;
  height: 60px;
  min-height: 60px;
  margin-bottom: 1rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 12px 0 var(--dark-blue-glass, rgba(30, 40, 80, 0.45));
}

.wm-au-doc-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.wm-au-doc-icon--placeholder {
  background: linear-gradient(
    145deg,
    rgba(50, 68, 120, 0.4),
    rgba(20, 24, 44, 0.85)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.wm-au-doc-title {
  font-size: 2rem;
  margin: 0 0 0.5rem;
  font-family: var(--montserrat-para, "Montserrat", sans-serif);
}

.wm-au-doc-desc {
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
}

.wm-au-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
}

.wm-au-back:hover {
  color: #fff;
}

.wm-au-error {
  padding: 1rem;
  border-radius: var(--wm-radius-md, 10px);
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fecaca;
}

@media (max-width: 991px) {
  .wm-au-grid {
    grid-template-columns: 1fr;
  }

  .wm-au-sidebar {
    position: relative;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 5.5rem;
  }

  .wm-au-main {
    padding-top: 2rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   AI UNIVERSITY — REDESIGN
   Glass surface pattern (every card/panel):
     background: rgba(14,22,48,0.55);
     border: 1px solid rgba(19,109,244,0.14);
     backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
     border-radius: 14px;
   ═══════════════════════════════════════════════════════════════════════════════ */

:root {
  --wm-au-glass-bg: linear-gradient(
    145deg,
    rgba(16, 26, 54, 0.24),
    rgba(10, 16, 38, 0.14)
  );
  --wm-au-glass-border: 1px solid rgba(140, 191, 255, 0.22);
  --wm-au-glass-shadow:
    0 14px 34px rgba(5, 10, 26, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(105, 155, 255, 0.08);
  --wm-au-glass-blur: blur(28px) saturate(122%);
  --wm-au-article-shell-bg: linear-gradient(
    155deg,
    rgba(22, 34, 68, 0.34) 0%,
    rgba(14, 22, 48, 0.22) 52%,
    rgba(9, 15, 34, 0.16) 100%
  );
  --wm-au-article-shell-blur: blur(22px) saturate(138%);
  --wm-au-article-shell-shadow:
    0 18px 48px rgba(4, 8, 22, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(105, 155, 255, 0.1);
}

.wm-au-start-path,
.wm-au-featured-card,
.wm-au-cat-card,
.wm-au-pillars-wrap,
.wm-au-pillar-card,
.wm-au-step-card,
.wm-au-app-cta__inner,
.wm-au-prevnext__card,
.wm-au-doc-hero-img,
.wm-doc-callout,
.wm-doc-step-list li,
.wm-doc-step-item,
.wm-doc-cta,
.wm-au-hub-search-input {
  position: relative;
  background: var(--wm-au-glass-bg) !important;
  border: var(--wm-au-glass-border) !important;
  box-shadow: var(--wm-au-glass-shadow) !important;
  backdrop-filter: var(--wm-au-glass-blur) !important;
  -webkit-backdrop-filter: var(--wm-au-glass-blur) !important;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease,
    filter 0.22s ease;
}

.wm-au-start-path::after,
.wm-au-featured-card::after,
.wm-au-cat-card::after,
.wm-au-pillars-wrap::after,
.wm-au-pillar-card::after,
.wm-au-step-card::after,
.wm-au-app-cta__inner::after,
.wm-au-prevnext__card::after,
.wm-au-doc-hero-img::after,
.wm-doc-callout::after,
.wm-doc-step-list li::after,
.wm-doc-step-item::after,
.wm-doc-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.2),
    transparent 38%,
    transparent 62%,
    rgba(121, 166, 255, 0.12)
  );
  mask-image: linear-gradient(to bottom right, black 5%, transparent 62%);
  opacity: 0.28;
}

/* Article shells — frosted glass over silk background (main + TOC card only) */
.wm-au-app--article .wm-au-main,
.wm-au-app--article .wm-au-toc:not(.wm-au-toc--empty) #wm-au-toc-mount {
  position: relative;
  overflow: hidden;
  background: var(--wm-au-article-shell-bg) !important;
  border: var(--wm-au-glass-border) !important;
  box-shadow: var(--wm-au-article-shell-shadow) !important;
  backdrop-filter: var(--wm-au-article-shell-blur) !important;
  -webkit-backdrop-filter: var(--wm-au-article-shell-blur) !important;
  transform: translateZ(0);
}

.wm-au-app--article .wm-au-main::after,
.wm-au-app--article .wm-au-toc:not(.wm-au-toc--empty) #wm-au-toc-mount::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.16),
    transparent 42%,
    transparent 58%,
    rgba(121, 166, 255, 0.1)
  );
  mask-image: linear-gradient(to bottom right, black 5%, transparent 62%);
  opacity: 0.32;
}

@media (prefers-reduced-motion: reduce) {
  .wm-au-app--article .wm-au-main,
  .wm-au-app--article .wm-au-toc:not(.wm-au-toc--empty) #wm-au-toc-mount {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

.wm-au-featured-card:hover,
.wm-au-cat-card:hover,
.wm-au-start-path:hover,
.wm-au-pillars-wrap:hover,
.wm-au-pillar-card:hover,
.wm-au-step-card:hover,
.wm-au-prevnext__card:hover,
.wm-doc-cta:hover,
.wm-doc-callout:hover,
.wm-doc-step-list li:hover,
.wm-doc-step-item:hover {
  background: linear-gradient(
    145deg,
    rgba(18, 30, 62, 0.28),
    rgba(11, 18, 42, 0.18)
  ) !important;
  border-color: rgba(136, 186, 255, 0.38);
  box-shadow:
    0 0 34px rgba(95, 155, 255, 0.2),
    0 10px 28px rgba(6, 12, 30, 0.24),
    0 0 0 1px rgba(165, 203, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(136, 186, 255, 0.2);
  filter: brightness(1.025);
}

.wm-au-step-card-wrap:hover .wm-au-step-card {
  background: linear-gradient(
    145deg,
    rgba(18, 30, 62, 0.28),
    rgba(11, 18, 42, 0.18)
  ) !important;
  border-color: rgba(136, 186, 255, 0.38) !important;
  box-shadow:
    0 0 34px rgba(95, 155, 255, 0.2),
    0 10px 28px rgba(6, 12, 30, 0.24),
    0 0 0 1px rgba(165, 203, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(136, 186, 255, 0.2) !important;
  filter: brightness(1.025);
}

/* ─── Silk background (React Bits port) ─────────────────────────────────────── */
.wm-au-bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.3;
  pointer-events: none;
  overflow: hidden;
  background: var(--dark-blue-background, #020016);
}

.wm-au-silk-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Legacy orb nodes are no longer rendered; keep hidden for safety. */
.wm-au-orb,
.wm-au-orb--a,
.wm-au-orb--b,
.wm-au-orb--c {
  display: none;
}

/* ─── Grain overlay ──────────────────────────────────────────────────────────── */
.wm-au-grain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.038;
  pointer-events: none;
  z-index: 999;
}

/* ─── View mode switching ────────────────────────────────────────────────────── */
/* Hub: full-width single column; Article: 3-column */
.wm-au-app--hub .wm-au-grid,
.wm-au-app--hub .wm-au-grid {
  grid-template-columns: 1fr;
  max-width: 100%;
  padding: 0;
}

.wm-au-app--hub .wm-au-sidebar,
.wm-au-app--hub .wm-au-toc {
  display: none;
}

.wm-au-app--hub .wm-au-main {
  max-width: 100%;
  padding: 0;
}

.wm-au-app--article .wm-au-grid {
  grid-template-columns: 240px 1fr minmax(200px, 220px);
  max-width: 1400px;
}

.wm-au-app--article .wm-au-main {
  max-width: 720px;
  margin: 5rem 3rem;
  padding: 2.5rem 2.75rem 3rem;
  border-radius: 22px;
}

/* ─── TOC (right sticky sidebar — Anthropic-style “On this page”) ─────────── */
.wm-au-toc {
  display: none;
  position: sticky;
  top: 0;
  align-self: start;
  max-height: 100vh;
  overflow-y: auto;
  padding: 5.5rem 0 2rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(128, 128, 128, 0.15) transparent;
}

.wm-au-app--article .wm-au-toc {
  display: block;
}

.wm-au-toc--empty {
  display: none !important;
}

.wm-au-toc:not(.wm-au-toc--empty) #wm-au-toc-mount {
  margin-top: 0.25rem;
  padding: 1.15rem 1rem 1.25rem;
  border-radius: 16px;
}

.wm-au-toc__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding-left: 2px;
}

.wm-au-toc__icon {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.35);
}

.wm-au-toc__label {
  font-family: var(--montserrat-para, "Montserrat", sans-serif);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.42);
}

.wm-au-toc__track {
  position: relative;
}

.wm-au-toc__rail {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.wm-au-toc__indicator {
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  border-radius: 2px;
  background: #136df4;
  box-shadow: 0 0 10px rgba(19, 109, 244, 0.45);
  transition:
    transform 0.2s ease,
    height 0.2s ease;
}

.wm-au-toc__list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 14px;
}

.wm-au-toc__link {
  display: block;
  padding: 6px 10px 6px 8px;
  font-family: var(--montserrat-para, "Montserrat", sans-serif);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.38);
  text-decoration: none;
  line-height: 1.45;
  border-radius: 6px;
  transition:
    color 0.15s ease,
    background 0.15s ease;
}

.wm-au-toc__link--sub {
  padding-left: 18px;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.32);
}

.wm-au-toc__link:hover {
  color: rgba(255, 255, 255, 0.72);
}

.wm-au-toc__link.is-active {
  color: rgba(255, 255, 255, 0.92);
}

.wm-au-toc__link--sub.is-active {
  color: rgba(255, 255, 255, 0.78);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   AI University — Sidebar (modern docs aesthetic)
   Goals:
     - Strong, readable text (no sub-50% white)
     - Clear hierarchy via a thin vertical rail behind items
     - A polished "active" pill: gradient surface + glowing accent bar
     - Friendly hover/focus states (no jumpy transforms)
   ═══════════════════════════════════════════════════════════════════════════════ */

.wm-au-sidebar {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
  padding: 5rem 0.75rem 2rem;
  box-sizing: border-box;
}

.wm-au-sidebar__brand {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  flex-shrink: 0;
}

.wm-au-sidebar__brand img,
.wm-au-sidebar__brand svg {
  display: block;
  width: 100%;
  height: 100%;
}

.wm-au-sidebar::-webkit-scrollbar {
  width: 6px;
}
.wm-au-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}
.wm-au-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* Back link — a subtle pill that affords a click target */
.wm-au-sidebar__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 7px 12px 7px 10px;
  font-family: var(--montserrat-para, "Montserrat", sans-serif);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  cursor: pointer;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.wm-au-sidebar__back svg {
  transition: transform 0.2s ease;
}

.wm-au-sidebar__back:hover {
  color: rgba(255, 255, 255, 0.94);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.wm-au-sidebar__back:hover svg {
  transform: translateX(-2px);
}

/* Section (collapsible category) */
.wm-au-sidebar__section {
  margin-bottom: 4px;
}

.wm-au-sidebar__section + .wm-au-sidebar__section {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 12px;
  margin-top: 12px;
}

/* Section header toggle */
.wm-au-sidebar__section-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: transparent;
  border: none;
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 6px;
  transition: background 0.15s ease;
}

.wm-au-sidebar__section-toggle:hover {
  background: rgba(255, 255, 255, 0.035);
}

.wm-au-sidebar__section-label {
  font-family: var(--montserrat-para, "Montserrat", sans-serif);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  transition: color 0.15s ease;
}

.wm-au-sidebar__section-toggle:hover .wm-au-sidebar__section-label {
  color: rgba(255, 255, 255, 0.88);
}

.wm-au-sidebar__chevron {
  display: flex;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.35);
  transition:
    transform 0.22s ease,
    color 0.15s ease;
}

.wm-au-sidebar__section-toggle:hover .wm-au-sidebar__chevron {
  color: rgba(255, 255, 255, 0.6);
}

.wm-au-sidebar__section.is-collapsed .wm-au-sidebar__chevron {
  transform: rotate(-90deg);
}

.wm-au-sidebar__section.is-collapsed .wm-au-sidebar__section-items {
  display: none;
}

/* Items container — thin vertical rail behind links creates the "trail" effect */
.wm-au-sidebar__section-items {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-left: 12px;
  margin-left: 6px;
}

.wm-au-sidebar__section-items::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 1px;
}

/* Nav link */
.wm-au-sidebar__section-items a {
  position: relative;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  font-family: var(--montserrat-para, "Montserrat", sans-serif);
  font-size: 13.5px;
  line-height: 1.35;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  border-left: none;
  transition:
    color 0.18s ease,
    background 0.18s ease;
}

.wm-au-sidebar__section-items a:hover {
  color: rgba(255, 255, 255, 0.97);
  background: rgba(255, 255, 255, 0.045);
  transform: none;
}

/* Active item — glowing pill with brand-blue gradient + accent bar on the rail */
.wm-au-sidebar__section-items a.is-active {
  color: #ffffff;
  font-weight: 600;
  background: linear-gradient(
    90deg,
    rgba(19, 109, 244, 0.24) 0%,
    rgba(19, 109, 244, 0.13) 55%,
    rgba(19, 109, 244, 0.03) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 0 0 1px rgba(96, 165, 250, 0.22),
    0 0 22px rgba(19, 109, 244, 0.14);
}

/* The accent bar overlays the vertical rail for a "highlighted segment" effect */
.wm-au-sidebar__section-items a.is-active::before {
  content: "";
  position: absolute;
  left: -13px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, #7badf1 0%, #136df4 100%);
  box-shadow: 0 0 8px rgba(19, 109, 244, 0.65);
}

.wm-au-sidebar__section-items a.is-active:hover {
  background: linear-gradient(
    90deg,
    rgba(19, 109, 244, 0.3) 0%,
    rgba(19, 109, 244, 0.17) 55%,
    rgba(19, 109, 244, 0.05) 100%
  );
}

/* Focus rings — keyboard accessibility without the heavy default outline */
.wm-au-sidebar__section-items a:focus-visible,
.wm-au-sidebar__back:focus-visible,
.wm-au-sidebar__section-toggle:focus-visible {
  outline: 2px solid rgba(123, 173, 241, 0.6);
  outline-offset: 2px;
}

/* ─── Hub: hero ──────────────────────────────────────────────────────────────── */
.wm-au-hub-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 2rem 5rem;
  overflow: hidden;
}

.wm-au-hub-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}

.wm-au-hub-eyebrow__line {
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(19, 109, 244, 0.5));
}

.wm-au-hub-eyebrow__line--r {
  background: linear-gradient(90deg, rgba(19, 109, 244, 0.5), transparent);
}

.wm-au-hub-eyebrow__label {
  font-family: var(--montserrat-para, "Montserrat", sans-serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}

.wm-au-hub-h1 {
  font-family: var(--font-display, "Larken", Georgia, serif);
  font-weight: 600;
  font-size: clamp(64px, 9vw, 120px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 8px;
  position: relative;
  z-index: 1;
}

.wm-au-hub-subtitle {
  font-family: var(--montserrat-para, "Montserrat", sans-serif);
  font-size: clamp(16px, 1.8vw, 19px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.55;
  max-width: 520px;
  margin: 20px auto 0;
  position: relative;
  z-index: 1;
}

.wm-au-hub-search-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  margin: 40px auto 0;
}

.wm-au-hub-main--search-active .wm-au-hub-search-wrap {
  z-index: 10051;
}

.wm-au-hub-search-bar {
  position: relative;
  display: flex;
  align-items: center;
}

.wm-au-hub-search-icon {
  position: absolute;
  left: 18px;
  color: rgba(255, 255, 255, 0.3);
  pointer-events: none;
  display: flex;
}

.wm-au-hub-search-input {
  width: 100%;
  padding: 15px 52px 15px 48px;
  border-radius: 12px;
  background: rgba(14, 22, 48, 0.7);
  border: 1px solid rgba(19, 109, 244, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--montserrat-para, "Montserrat", sans-serif);
  font-size: 15px;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  box-sizing: border-box;
}

.wm-au-hub-search-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.wm-au-hub-search-input:focus {
  border-color: rgba(19, 109, 244, 0.45);
  box-shadow: 0 0 0 3px rgba(19, 109, 244, 0.1);
}

/* Hub search dropdown: portaled to body as .wm-quick-search-panel--portal (dashboard-layout.css) */
.wm-au-hub-search-panel.wm-quick-search-panel--portal {
  border-radius: 14px;
}

.wm-au-hub-search-empty.wm-qs-empty {
  padding: 14px 10px;
}

.wm-au-hub-main--search-active .wm-au-cat-grid {
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.2s;
}

.wm-au-hub-search-kbd {
  position: absolute;
  right: 14px;
  padding: 3px 7px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
  font-family: var(--font-mono, "Inconsolata", monospace);
  letter-spacing: 0.2px;
  pointer-events: none;
}

.wm-au-hub-quick-find {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 18px;
}

.wm-au-hub-quick-label {
  font-family: var(--montserrat-para, "Montserrat", sans-serif);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
}

.wm-au-hub-quick-pill {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--montserrat-para, "Montserrat", sans-serif);
  font-size: 12px;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
  text-decoration: none;
  display: inline-block;
}

.wm-au-hub-quick-pill:hover {
  background: rgba(19, 109, 244, 0.1);
  border-color: rgba(19, 109, 244, 0.25);
  color: rgba(255, 255, 255, 0.7);
}

/* ─── Hub: section wrapper ───────────────────────────────────────────────────── */
.wm-au-hub-section {
  padding: 0 2rem 100px;
}

.wm-au-hub-section-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.wm-au-hub-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 12px;
}

.wm-au-hub-label {
  font-family: var(--montserrat-para, "Montserrat", sans-serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 10px;
}

.wm-au-hub-h2 {
  font-family: var(--font-display, "Larken", Georgia, serif);
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: -0.02em;
  margin: 0;
}

/* ─── Hub: start here path ───────────────────────────────────────────────────── */
.wm-au-start-path {
  background: rgba(14, 22, 48, 0.5);
  border: 1px solid rgba(19, 109, 244, 0.14);
  border-radius: 20px;
  padding: 48px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.wm-au-start-path::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(19, 109, 244, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.wm-au-start-path__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}

.wm-au-start-path__view-btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.wm-au-start-path__view-btn .wm-premium-button {
  padding: 7px 18px;
}

.wm-au-start-path__view-btn:hover .wm-premium-button::before {
  filter: brightness(1.2);
}

.wm-au-start-path__steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 4px;
}

.wm-au-step-card-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 140px;
  gap: 14px;
  cursor: pointer;
  flex-shrink: 0;
  text-decoration: none;
}

.wm-au-step-card {
  width: 100%;
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(14, 22, 48, 0.6);
  border: 1px solid rgba(19, 109, 244, 0.18);
  transition:
    border-color 0.2s,
    background 0.2s;
  text-align: center;
}

.wm-au-step-card-wrap:hover .wm-au-step-card {
  border-color: rgba(19, 109, 244, 0.4);
  background: rgba(19, 109, 244, 0.1);
}

.wm-au-step-num {
  font-family: var(--font-mono, "Inconsolata", monospace);
  font-size: 11px;
  color: #60a5fa;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.wm-au-step-label {
  font-family: var(--montserrat-para, "Montserrat", sans-serif);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.3;
  margin-bottom: 6px;
}

.wm-au-step-sub {
  font-family: var(--montserrat-para, "Montserrat", sans-serif);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
}

.wm-au-step-sep {
  display: flex;
  align-items: center;
  margin-top: 28px;
  flex-shrink: 0;
}

.wm-au-step-sep__line {
  width: 24px;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(19, 109, 244, 0.3),
    rgba(19, 109, 244, 0.15)
  );
}

.wm-au-step-sep__chevron {
  color: rgba(19, 109, 244, 0.4);
  display: flex;
}

/* ─── Hub: featured guides ───────────────────────────────────────────────────── */
.wm-au-featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.wm-au-featured-card {
  background: rgba(14, 22, 48, 0.55);
  border: 1px solid rgba(19, 109, 244, 0.14);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition:
    border-color 0.22s,
    transform 0.22s,
    box-shadow 0.22s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.wm-au-featured-card:hover {
  border-color: rgba(19, 109, 244, 0.35);
  box-shadow:
    0 0 30px rgba(95, 155, 255, 0.18),
    0 8px 26px rgba(19, 109, 244, 0.1);
  filter: brightness(1.02);
}

.wm-au-featured-card__img {
  height: 180px;
  background: linear-gradient(
    135deg,
    rgba(19, 109, 244, 0.08),
    rgba(14, 165, 233, 0.04)
  );
  border-bottom: 1px dashed rgba(19, 109, 244, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(19, 109, 244, 0.4);
}

.wm-au-featured-card__img-asset {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wm-au-featured-card__img-icon {
  display: flex;
}

.wm-au-featured-card__img-label {
  font-family: var(--montserrat-para, "Montserrat", sans-serif);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.18);
}

.wm-au-featured-card__body {
  padding: 22px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wm-au-featured-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wm-au-featured-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(19, 109, 244, 0.18);
  border: 1px solid rgba(19, 109, 244, 0.3);
  color: #60a5fa;
  font-family: var(--montserrat-para, "Montserrat", sans-serif);
}

.wm-au-featured-card__mins {
  font-family: var(--montserrat-para, "Montserrat", sans-serif);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
}

.wm-au-featured-card__title {
  font-family: var(--font-display, "Larken", Georgia, serif);
  font-size: 18px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.25;
}

.wm-au-featured-card__desc {
  font-family: var(--montserrat-para, "Montserrat", sans-serif);
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.wm-au-featured-card__read {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #60a5fa;
  font-family: var(--montserrat-para, "Montserrat", sans-serif);
  font-size: 13px;
  font-weight: 500;
  margin-top: 4px;
}

/* ─── Hub: category grid ─────────────────────────────────────────────────────── */
.wm-au-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.wm-au-cat-card {
  padding: 22px 22px 20px;
  border-radius: 14px;
  background: rgba(14, 22, 48, 0.45);
  border: 1px solid rgba(19, 109, 244, 0.12);
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.wm-au-cat-card:hover {
  background: rgba(19, 109, 244, 0.07);
  border-color: rgba(19, 109, 244, 0.3);
  box-shadow: 0 0 24px rgba(19, 109, 244, 0.08);
}

.wm-au-cat-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wm-au-cat-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(19, 109, 244, 0.1);
  border: 1px solid rgba(19, 109, 244, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  flex-shrink: 0;
}

.wm-au-cat-card__count {
  font-family: var(--font-mono, "Inconsolata", monospace);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.03em;
}

.wm-au-cat-card__name {
  font-family: var(--montserrat-para, "Montserrat", sans-serif);
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 5px;
}

.wm-au-cat-card__desc {
  font-family: var(--montserrat-para, "Montserrat", sans-serif);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.38);
  line-height: 1.5;
}

.wm-au-cat-card__browse {
  display: flex;
  align-items: center;
  gap: 4px;
  color: rgba(19, 109, 244, 0.6);
  font-family: var(--montserrat-para, "Montserrat", sans-serif);
  font-size: 12px;
  font-weight: 500;
  margin-top: auto;
}

/* ─── Hub: pillar visual ──────────────────────────────────────────────────────── */
.wm-au-pillars-wrap {
  background: linear-gradient(
    135deg,
    rgba(8, 16, 40, 0.9) 0%,
    rgba(14, 22, 48, 0.6) 100%
  );
  border: 1px solid rgba(19, 109, 244, 0.14);
  border-radius: 24px;
  padding: 64px 48px;
  position: relative;
  overflow: hidden;
}

.wm-au-pillars-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 600px 400px at 80% 50%,
    rgba(19, 109, 244, 0.07) 0%,
    transparent 100%
  );
  pointer-events: none;
}

.wm-au-pillars-intro {
  text-align: center;
  margin-bottom: 56px;
  position: relative;
  z-index: 1;
}

.wm-au-pillars-intro__title {
  font-family: var(--font-display, "Larken", Georgia, serif);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.wm-au-pillars-intro__sub {
  font-family: var(--montserrat-para, "Montserrat", sans-serif);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.4);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

.wm-au-pillars-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 4px;
  position: relative;
  z-index: 1;
}

.wm-au-pillar-card {
  flex: 1;
  min-width: 140px;
  padding: 28px 20px;
  border-radius: 14px;
  background: rgba(19, 109, 244, 0.06);
  border: 1px solid rgba(19, 109, 244, 0.16);
  text-align: center;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s;
  text-decoration: none;
  color: inherit;
}

.wm-au-pillar-card:hover {
  background: rgba(19, 109, 244, 0.12);
  border-color: rgba(19, 109, 244, 0.35);
}

.wm-au-pillar-card__num {
  font-family: var(--font-mono, "Inconsolata", monospace);
  font-size: 11px;
  color: rgba(19, 109, 244, 0.6);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.wm-au-pillar-card__label {
  font-family: var(--font-display, "Larken", Georgia, serif);
  font-size: 20px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.wm-au-pillar-card__desc {
  font-family: var(--montserrat-para, "Montserrat", sans-serif);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}

.wm-au-pillar-sep {
  display: flex;
  align-items: center;
  padding: 0 4px;
  flex-shrink: 0;
}

.wm-au-pillar-sep__line {
  width: 20px;
  height: 1px;
  background: rgba(19, 109, 244, 0.25);
}

.wm-au-pillar-sep__chevron {
  color: rgba(19, 109, 244, 0.35);
  display: flex;
}

.wm-au-pillars-cta {
  text-align: center;
  margin-top: 40px;
  position: relative;
  z-index: 1;
}

.wm-au-pillars-cta__btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.wm-au-pillars-cta__btn .wm-premium-button {
  padding: 10px 24px;
}

.wm-au-pillars-cta__btn:hover .wm-premium-button::before {
  filter: brightness(1.2);
}

/* ─── Hub: App CTA ───────────────────────────────────────────────────────────── */
.wm-au-app-cta {
  padding: 0 2rem 120px;
}

.wm-au-app-cta__inner {
  max-width: 1280px;
  margin: 0 auto;
  border-radius: 24px;
  padding: 72px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: rgba(14, 22, 48, 0.4);
  border: 1px solid rgba(19, 109, 244, 0.14);
}

.wm-au-app-cta__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 800px 400px at 50% 50%,
    rgba(19, 109, 244, 0.1) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.wm-au-app-cta__logo-mark {
  width: 52px;
  height: 52px;
  display: block;
  object-fit: contain;
  margin: 0 auto 24px;
  filter: drop-shadow(0 0 22px rgba(19, 109, 244, 0.45));
  position: relative;
  z-index: 1;
}

.wm-au-app-cta__title {
  font-family: var(--font-display, "Larken", Georgia, serif);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  position: relative;
  z-index: 1;
}

.wm-au-app-cta__sub {
  font-family: var(--montserrat-para, "Montserrat", sans-serif);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
  max-width: 400px;
  margin: 0 auto 36px;
  position: relative;
  z-index: 1;
}

.wm-au-app-cta__btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  position: relative;
  z-index: 1;
}

.wm-au-app-cta__btn .wm-premium-button {
  padding: 12px 30px;
}

.wm-au-app-cta__btn:hover .wm-premium-button::before {
  filter: brightness(1.2);
  box-shadow:
    0 0 15px rgba(254, 137, 99, 0.6),
    0 0 15px rgba(19, 109, 250, 0.6);
}

/* ─── Doc hero ───────────────────────────────────────────────────────────────── */
.wm-au-doc-hero {
  border-bottom: 1px solid rgba(19, 109, 244, 0.08);
  padding-bottom: 40px;
  margin-bottom: 48px;
}

.wm-au-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  font-family: var(--montserrat-para, "Montserrat", sans-serif);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  flex-wrap: wrap;
}

.wm-au-breadcrumb a {
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  padding: 0;
  transition: color 0.15s;
}

.wm-au-breadcrumb a:hover {
  color: rgba(255, 255, 255, 0.6);
}

.wm-au-breadcrumb__sep {
  color: rgba(255, 255, 255, 0.2);
}

.wm-au-breadcrumb__current {
  color: rgba(255, 255, 255, 0.6);
}

.wm-au-doc-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.wm-au-doc-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--montserrat-para, "Montserrat", sans-serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(19, 109, 244, 0.18);
  border: 1px solid rgba(19, 109, 244, 0.3);
  color: #60a5fa;
}

.wm-au-doc-meta__dot {
  color: rgba(255, 255, 255, 0.2);
}

.wm-au-doc-meta__text {
  font-family: var(--montserrat-para, "Montserrat", sans-serif);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
}

.wm-au-doc-h1 {
  font-family: var(--font-display, "Larken", Georgia, serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 16px;
}

.wm-au-doc-description {
  font-family: var(--montserrat-para, "Montserrat", sans-serif);
  font-size: 17px;
  color: rgba(255, 255, 255, 0.48);
  line-height: 1.6;
  margin: 0;
  max-width: 580px;
}

.wm-au-doc-hero-img {
  height: 240px;
  background: linear-gradient(
    135deg,
    rgba(19, 109, 244, 0.08),
    rgba(14, 165, 233, 0.04)
  );
  border: 1px dashed rgba(19, 109, 244, 0.2);
  border-radius: 14px;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(19, 109, 244, 0.4);
}

.wm-au-doc-hero-img__asset {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.wm-au-doc-hero-img__icon {
  display: flex;
}

.wm-au-doc-hero-img__label {
  font-family: var(--montserrat-para, "Montserrat", sans-serif);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.18);
}

/* ─── Doc components (renderer output) ──────────────────────────────────────── */

.wm-doc-prose {
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.65;
  font-size: 1rem;
  position: relative;
  padding: 0;
}

.wm-doc-para {
  font-family: var(--montserrat-para, "Montserrat", sans-serif);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
  margin: 0 0 16px;
  text-wrap: pretty;
}

/* H2 with blue divider */
.wm-doc-h2-wrap,
h3.wm-doc-h3 {
  scroll-margin-top: 7rem;
}

.wm-doc-h2-wrap {
  margin: 48px 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(19, 109, 244, 0.08);
}

.wm-doc-h2 {
  font-family: var(--font-display, "Larken", Georgia, serif);
  font-size: 22px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: -0.01em;
  margin: 0;
}

/* H3 */
.wm-doc-h3 {
  font-family: var(--montserrat-para, "Montserrat", sans-serif);
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin: 28px 0 12px;
}

/* Callout (blockquote or shortcode) */
.wm-doc-callout {
  display: flex;
  gap: 14px;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.wm-doc-callout--info {
  background: rgba(19, 109, 244, 0.08);
  border: 1px solid rgba(19, 109, 244, 0.2);
  color: #60a5fa;
}

.wm-doc-callout--tip {
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.2);
  color: #38bdf8;
}

.wm-doc-callout--warn {
  background: rgba(234, 179, 8, 0.06);
  border: 1px solid rgba(234, 179, 8, 0.18);
  color: #fbbf24;
}

.wm-doc-callout__icon {
  flex-shrink: 0;
  margin-top: 1px;
  display: flex;
}

.wm-doc-callout__body {
  font-family: var(--montserrat-para, "Montserrat", sans-serif);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.65;
}

.wm-doc-callout__body p {
  margin: 0;
}

/* Step list (ordered list) */
.wm-doc-step-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  counter-reset: wm-step;
  list-style: none;
  padding: 0;
}

.wm-doc-step-list li,
.wm-doc-step-item {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 12px;
  background: rgba(14, 22, 48, 0.5);
  border: 1px solid rgba(19, 109, 244, 0.1);
  align-items: flex-start;
  counter-increment: wm-step;
}

.wm-doc-step-list li::before {
  content: counter(wm-step);
  min-width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(19, 109, 244, 0.15);
  border: 1px solid rgba(19, 109, 244, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono, "Inconsolata", monospace);
  font-size: 12px;
  font-weight: 700;
  color: #60a5fa;
  flex-shrink: 0;
}

.wm-doc-step-num {
  min-width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(19, 109, 244, 0.15);
  border: 1px solid rgba(19, 109, 244, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono, "Inconsolata", monospace);
  font-size: 12px;
  font-weight: 700;
  color: #60a5fa;
  flex-shrink: 0;
}

.wm-doc-step-body {
  font-family: var(--montserrat-para, "Montserrat", sans-serif);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
  padding-top: 4px;
}

.wm-doc-step-body p {
  margin: 0;
}

.wm-doc-cta__body p {
  margin: 0;
}

/* Bullet list (unordered list) */
.wm-doc-bullet-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wm-doc-bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--montserrat-para, "Montserrat", sans-serif);
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

.wm-doc-bullet-list li::before {
  content: "";
  display: block;
  width: 13px;
  height: 13px;
  background-image: url("data:image/svg+xml,%3Csvg width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%23136df4' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  flex-shrink: 0;
  margin-top: 3px;
}

/* Code block */
.wm-doc-code-block {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid rgba(19, 109, 244, 0.14);
}

.wm-doc-code-block__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: rgba(8, 14, 32, 0.8);
  border-bottom: 1px solid rgba(19, 109, 244, 0.1);
}

.wm-doc-code-block__lang {
  font-family: var(--font-mono, "Inconsolata", monospace);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.04em;
}

.wm-doc-code-block__copy {
  display: flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.3);
  font-family: var(--montserrat-para, "Montserrat", sans-serif);
  font-size: 11px;
  cursor: pointer;
  transition: color 0.15s;
  padding: 2px 0;
}

.wm-doc-code-block__copy:hover {
  color: rgba(255, 255, 255, 0.65);
}

.wm-doc-code-block__pre {
  margin: 0;
  padding: 18px 20px;
  background: rgba(5, 8, 20, 0.9);
  overflow-x: auto;
}

.wm-doc-code-block__pre code {
  font-family: var(--font-mono, "Inconsolata", monospace);
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  background: none;
  padding: 0;
  border: none;
  border-radius: 0;
}

/* Inline code */
.wm-doc-inline-code {
  font-family: var(--font-mono, "Inconsolata", monospace);
  font-size: 0.875em;
  background: rgba(19, 109, 244, 0.1);
  color: #7eb8ff;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(19, 109, 244, 0.15);
}

/* Table */
.wm-doc-table-wrap {
  overflow-x: auto;
  margin-bottom: 24px;
  border-radius: 12px;
  border: 1px solid rgba(19, 109, 244, 0.12);
}

.wm-doc-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--montserrat-para, "Montserrat", sans-serif);
  font-size: 14px;
}

.wm-doc-table thead tr {
  background: rgba(19, 109, 244, 0.07);
  border-bottom: 1px solid rgba(19, 109, 244, 0.14);
}

.wm-doc-table th {
  padding: 11px 16px;
  text-align: left;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.wm-doc-table td {
  padding: 12px 16px;
  color: rgba(255, 255, 255, 0.6);
  vertical-align: top;
  line-height: 1.5;
  border-bottom: 1px solid rgba(19, 109, 244, 0.07);
}

.wm-doc-table tr:last-child td {
  border-bottom: none;
}

/* Styled link */
.wm-doc-link {
  color: #60a5fa;
  text-decoration: none;
  border-bottom: 1px solid rgba(96, 165, 250, 0.25);
  transition: border-color 0.15s;
}

.wm-doc-link:hover {
  border-bottom-color: rgba(96, 165, 250, 0.7);
}

/* CTA shortcode */
.wm-doc-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 22px 24px;
  border-radius: 14px;
  background: rgba(19, 109, 244, 0.07);
  border: 1px solid rgba(19, 109, 244, 0.18);
  margin-bottom: 32px;
}

.wm-doc-cta__body {
  font-family: var(--montserrat-para, "Montserrat", sans-serif);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  flex: 1;
}

.wm-doc-cta__btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
}

.wm-doc-cta__btn .wm-premium-button {
  padding: 8px 18px;
}

.wm-doc-cta__btn:hover .wm-premium-button::before {
  filter: brightness(1.2);
}

/* Flow shortcode */
.wm-doc-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.wm-doc-flow-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(19, 109, 244, 0.1);
  border: 1px solid rgba(19, 109, 244, 0.2);
  font-family: var(--montserrat-para, "Montserrat", sans-serif);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
}

.wm-doc-flow-sep {
  color: rgba(19, 109, 244, 0.5);
  font-size: 16px;
}

/* Image placeholder shortcode */
.wm-doc-visual-placeholder {
  background: linear-gradient(
    135deg,
    rgba(19, 109, 244, 0.08),
    rgba(14, 165, 233, 0.04)
  );
  border: 1px dashed rgba(19, 109, 244, 0.2);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.wm-doc-visual-icon {
  display: flex;
  color: rgba(19, 109, 244, 0.4);
}

.wm-doc-visual-label {
  font-family: var(--montserrat-para, "Montserrat", sans-serif);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.18);
}

/* ─── Prev / Next navigation ─────────────────────────────────────────────────── */
.wm-au-prevnext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid rgba(19, 109, 244, 0.08);
}

.wm-au-prevnext__card {
  padding: 18px 20px;
  border-radius: 12px;
  background: rgba(14, 22, 48, 0.4);
  border: 1px solid rgba(19, 109, 244, 0.12);
  text-decoration: none;
  transition: border-color 0.2s;
}

.wm-au-prevnext__card:hover {
  border-color: rgba(19, 109, 244, 0.3);
}

.wm-au-prevnext__card--next {
  text-align: right;
}

.wm-au-prevnext__label {
  font-family: var(--montserrat-para, "Montserrat", sans-serif);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.wm-au-prevnext__title {
  font-family: var(--montserrat-para, "Montserrat", sans-serif);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

/* ─── Mobile responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1099px) {
  .wm-au-app--article .wm-au-grid {
    grid-template-columns: 220px 1fr;
  }
  .wm-au-app--article .wm-au-toc {
    display: none;
  }
}

@media (max-width: 768px) {
  .wm-au-app--article .wm-au-grid {
    grid-template-columns: 1fr;
  }
  .wm-au-app--article .wm-au-sidebar {
    display: none;
  }
  .wm-au-app--article .wm-au-sidebar.is-mobile-open {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 300;
    background: linear-gradient(
      175deg,
      rgba(14, 22, 48, 0.92) 0%,
      rgba(8, 12, 28, 0.88) 100%
    );
    backdrop-filter: blur(28px) saturate(132%);
    -webkit-backdrop-filter: blur(28px) saturate(132%);
    overflow-y: auto;
    padding: 5rem 1.5rem 2rem;
  }
  .wm-au-app--article .wm-au-main {
    margin: 4.5rem 0.75rem 1.5rem;
    padding: 1.75rem 1.25rem 2.25rem;
    border-radius: 18px;
  }

  .wm-au-hub-section {
    padding: 0 1.25rem 60px;
  }
  .wm-au-hub-hero {
    padding: 5rem 1.25rem 4rem;
  }
  .wm-au-pillars-wrap {
    padding: 40px 24px;
  }
  .wm-au-app-cta {
    padding: 0 1.25rem 80px;
  }
  .wm-au-app-cta__inner {
    padding: 48px 24px;
  }
  .wm-au-start-path {
    padding: 32px 24px;
  }
  .wm-au-prevnext {
    grid-template-columns: 1fr;
  }
  .wm-au-cat-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .wm-au-cat-grid {
    grid-template-columns: 1fr;
  }
  .wm-au-featured-grid {
    grid-template-columns: 1fr;
  }
  .wm-au-pillars-row {
    flex-direction: column;
  }
  .wm-au-pillar-sep {
    transform: rotate(90deg);
    align-self: center;
    margin: 4px 0;
  }
}

/* Mobile sidebar toggle */
.wm-au-sidebar-mobile-toggle {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 350;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #136df4;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(19, 109, 244, 0.4);
  transition: background 0.15s;
}

@media (max-width: 768px) {
  .wm-au-app--article .wm-au-sidebar-mobile-toggle {
    display: flex;
  }
}
