/*
 * 渊古文化 · app workspace coverage
 *
 * Detail pages keep the same fixed app chrome as the catalogue, but their
 * content lives in the main work area.  This gives long product/tutorial
 * pages a deliberate internal scroll instead of clipping the last action
 * behind the viewport edge.
 */

body.brand-site.single-screen-page.app-workspace-detail main {
  overflow: auto !important;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(34, 79, 195, .48) transparent;
}

body.brand-site.single-screen-page.app-workspace-detail main::-webkit-scrollbar {
  width: 10px;
}

body.brand-site.single-screen-page.app-workspace-detail main::-webkit-scrollbar-track {
  background: transparent;
}

body.brand-site.single-screen-page.app-workspace-detail main::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: rgba(34, 79, 195, .40);
  background-clip: padding-box;
}

body.brand-site.single-screen-page.app-workspace-detail main::-webkit-scrollbar-thumb:hover {
  background: rgba(34, 79, 195, .68);
  background-clip: padding-box;
}

/* The signal layer intentionally uses a bright cyan for dark product art.
 * Release cards are white work surfaces, so their identifiers need a dark
 * blue ink to remain readable at every screen size. */
body.brand-site .browser-variant-top span,
body.brand-site .browser-variant-card .release-line,
body.brand-site .brand-release-number {
  color: #2148ad !important;
}

body.brand-site .browser-variant-card .release-line {
  font-weight: 700;
}

body.brand-site .browser-variant-card .release-facts dt,
body.brand-site .browser-variant-card .release-facts dd,
body.brand-site .browser-variant-card .release-facts code {
  color: #30466f;
}

body.brand-site .browser-variant-card .release-facts code {
  font-weight: 700;
}

/* Keep the app workspace discoverable when the browser is scrolled to a
 * detail section.  The cards themselves retain their individual product art
 * and hover/active states. */
body.brand-site.single-screen-page.app-workspace-detail .browser-download-section,
body.brand-site.single-screen-page.app-workspace-detail .detail-led-section,
body.brand-site.single-screen-page.app-workspace-detail .tutorial-detail-layout {
  scroll-margin-top: 18px;
}

@media (max-width: 820px) {
  body.brand-site.single-screen-page.app-workspace-detail main {
    scrollbar-width: none;
  }

  body.brand-site.single-screen-page.app-workspace-detail main::-webkit-scrollbar {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.brand-site.single-screen-page.app-workspace-detail main {
    scroll-behavior: auto;
  }
}
