/* Shared spacing corrections for page endings and compact related cards. */
html,body{margin-bottom:0!important;padding-bottom:0!important}
body main.case-shell{padding-bottom:0!important;margin-bottom:0!important;min-height:0}
body .case-footer{padding:18px 0!important;margin:0!important;min-height:0;font-size:12px;line-height:1.5}
body .case-shell .related-cases{margin:28px 0 24px!important;padding:0!important}
body .related-cases>h2{margin:0 0 18px;font-size:20px;line-height:1.3}
body .related-grid .case-card-content{padding:16px;gap:0}
body .related-grid .case-card h3{font-size:17px;line-height:1.35;margin:0 0 10px}
body .related-grid .case-example-note{font-size:12px!important;line-height:1.5!important;margin:0 0 18px!important;min-height:0}
body .related-grid .case-button{margin-top:auto;min-height:40px}
body .seb-footer-shell{padding-bottom:0!important;margin-bottom:0!important}
body .seb-footer{margin-bottom:0!important}
body #cases .case-catalog-note{margin-bottom:24px}
@media(max-width:700px){body .case-shell .related-cases{margin-top:24px!important;margin-bottom:20px!important}body .case-footer{padding:16px 0!important}body .related-grid .case-card h3{font-size:15px}body .related-grid .case-card-content{padding:14px}body .related-grid .case-example-note{font-size:11px!important;margin-bottom:14px!important}}

/* Keep every compact footer close to its final line of text. */
body footer.case-index-footer,body footer.case-footer,body footer.calc-footer{padding:16px 0 8px!important;margin-bottom:0!important;min-height:0!important;height:auto!important;line-height:1.5!important}
body footer.case-index-footer>*,body footer.case-footer>*,body footer.calc-footer>*{margin-block:0!important;font-size:12px!important;line-height:1.5!important}
body .case-index-footer-wrap,body .wrap:has(>footer.case-index-footer),body .wrap:has(>footer.calc-footer){padding-bottom:0!important;margin-bottom:0!important;min-height:0!important}
body .case-index-main+ .wrap{margin-top:16px!important}
body>footer:not(.seb-footer){padding-bottom:8px!important;margin-bottom:0!important}
