/* Signature Bottom F3 V1: spacing only, activated after layout support loads. */
:root { --mqr-bottom-f3-loaded: 1; }

body[data-mqr-bottom-f3] #content,
body[data-mqr-bottom-f3="heritage"] #sh-page {
    min-height: 0 !important;
    padding-bottom: var(--mqr-bottom-space, 24px) !important;
}
body[data-mqr-bottom-f3] #content > .content-wrap {
    min-height: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}
body[data-mqr-bottom-f3] #content .sd-menu-zone,
body[data-mqr-bottom-f3] #content .se-menu-shell {
    min-height: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}
body[data-mqr-bottom-f3="heritage"] {
    padding-bottom: 0 !important;
}
body[data-mqr-bottom-f3="heritage"] .sh-content .gallery-section {
    margin-bottom: 0 !important;
}
body[data-mqr-bottom-f3="heritage"] #sh-category-modal + .margin-top-15[data-mqr-bottom-spacer] {
    display: none !important;
}

/* Only the final rendered row and its structural containers receive this marker. */
body[data-mqr-bottom-f3] #content [data-mqr-bottom-tail],
body[data-mqr-bottom-f3="heritage"] #sh-page [data-mqr-bottom-tail],
body[data-mqr-bottom-f3="heritage"] #sh-page .ajax-item-listing[data-mqr-bottom-tail] > .menu_item {
    margin-bottom: 0 !important;
}
body[data-mqr-bottom-f3] #content .card-body[data-mqr-bottom-tail],
body[data-mqr-bottom-f3="heritage"] #sh-page .box-item[data-mqr-bottom-tail] {
    padding-bottom: 0 !important;
}
/* Backend category shells can be empty after an accordion-only category. */
body[data-mqr-bottom-f3] #content .card-body.menu-category-item[data-mqr-bottom-empty] {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    min-height: 0 !important;
}
