/* AFTABIN P35 – native document-scroll sticky. Equipment leaf/subarchive ONLY.
 * P34 scroll JS must not run. No viewport tracking, negative top, max-height,
 * overflow-y:auto or other nested scrollers. The grid is the sticky boundary:
 * sidebar stays below header and releases only near the END of the main column.
 */
@media (min-width:65.001rem) {
  .av4-public-root .av4-equipment-leaf.av4-equipment-panels .av4-taxonomy-detail__layout > .av4-taxonomy-detail__aside.av4-sidebar-shell[data-av4-sidebar-variant="equipment"],
  .av4-public-root .av4-equipment-subarchive.av4-equipment-panels .av4-eq-category__layout > .av4-eq-category__aside.av4-sidebar-shell[data-av4-sidebar-variant="equipment"],
  .av4-public-root .av4-equipment-leaf.av4-equipment-panels .av4-taxonomy-detail__layout > .av4-sidebar-shell[data-av4-sidebar-too-tall],
  .av4-public-root .av4-equipment-subarchive.av4-equipment-panels .av4-eq-category__layout > .av4-sidebar-shell[data-av4-sidebar-too-tall] {
    position: sticky !important;
    top: var(--av4-sticky-offset, 6rem) !important;
    align-self: start !important;
    height: max-content !important;
    max-height: none !important;
    overflow: visible !important;
    z-index: 2;
  }
  .av4-public-root .av4-equipment-panels :is(.av4-taxonomy-detail__aside,.av4-eq-category__aside).av4-sidebar-shell[data-av4-sidebar-variant="equipment"] > .av4-sidebar-shell__stack,
  .av4-public-root .av4-equipment-panels :is(.av4-taxonomy-detail__aside,.av4-eq-category__aside).av4-sidebar-shell[data-av4-sidebar-variant="equipment"] :is(.av4-catalog-aside,.av4-reading-aside__section,.av4-equipment-leaf__aside-section) {
    position: static !important;
    top: auto !important;
    max-height: none !important;
    height: auto;
    overflow: visible !important;
  }
}
@media (max-width:65rem) {
  .av4-public-root .av4-equipment-leaf.av4-equipment-panels .av4-taxonomy-detail__layout > .av4-sidebar-shell[data-av4-sidebar-variant="equipment"],
  .av4-public-root .av4-equipment-subarchive.av4-equipment-panels .av4-eq-category__layout > .av4-sidebar-shell[data-av4-sidebar-variant="equipment"] {
    position: static !important;
    top: auto !important;
    align-self: stretch !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
}
