/* ==========================================================================
   Desktop Dual-Pane Scrolling & Layout (Matches Katsudoto Eleanor Split View)
   ========================================================================== */
@media (min-width: 961px) {
  html:has(body.eleanor), body.eleanor {
    height: 100vh !important;
    overflow: hidden !important;
  }

  .kat-page__side-to-side {
    height: 100vh !important;
    max-height: 100vh !important;
    overflow: hidden !important;
    position: relative !important;
    display: block !important;
  }

  .kat-page__side-to-side .primary-pane {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 61% !important;
    height: 100vh !important;
    overflow: hidden !important;
    z-index: 10 !important;
  }

  .kat-page__side-to-side .secondary-pane {
    position: relative !important;
    margin-left: auto !important;
    width: 39% !important;
    height: 100vh !important;
    max-height: 100vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
    z-index: 20 !important;
  }

  /* Critical: Prevent pseudo-element texture from blocking mouse wheel or pointer events */
  .kat-page__side-to-side .secondary-pane::before {
    pointer-events: none !important;
  }

  /* On desktop, top-cover is hidden so right side is immediately visible and scrollable */
  .top-cover {
    display: none !important;
  }
}

@media (max-width: 960px) {
  .kat-page__side-to-side .secondary-pane::before {
    pointer-events: none !important;
  }

  .top-cover {
    display: flex !important;
  }

  .top-cover.hide {
    transform: translateY(-100%) !important;
    top: -120% !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.8s ease, visibility 1.2s !important;
  }
}

/* Ensure AOS animated elements become fully visible and interactive once triggered */
[data-aos].aos-animate {
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
}
