/* MEETUS 0.6.25.2 COMMUNITY2-TG11-WORKSPACE26
 * Mobile discussion pin spacing hotfix.
 */

/* WORKSPACE23/25 hid the ordinary channel pin inside the discussion page.
   On mobile we keep the visible pin, but reserve its real measured height
   before the source post so it cannot cover the message. */
@media (max-width: 700px) {
  html.workspace26-thread-open #workspacePinnedBanner:not(.hidden),
  body.workspace26-thread-open #workspacePinnedBanner:not(.hidden) {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 80 !important;
  }

  html.workspace26-thread-open.workspace26-has-mobile-pin
    #community2Workspace:not(.hidden)[data-mode="thread"]
    .community2-thread-source-wrap,
  body.workspace26-thread-open.workspace26-has-mobile-pin
    #community2Workspace:not(.hidden)[data-mode="thread"]
    .community2-thread-source-wrap {
    margin-top: var(--workspace26-mobile-pin-offset, 72px) !important;
    scroll-margin-top: var(--workspace26-mobile-pin-offset, 72px) !important;
  }

  /* Keep the source card in normal flow. Older layered fixes used several
     competing top offsets; this resets only the dedicated thread source. */
  #community2Workspace:not(.hidden)[data-mode="thread"]
    .community2-thread-source-wrap {
    position: relative !important;
    top: auto !important;
    inset-block-start: auto !important;
    transform: none !important;
  }
}
