/* THV_FOOTER_READABILITY_V1 */
html body #root footer:has(>.shell),html body footer.standalone-footer{background:#fffdf9!important;color:#493b30!important;font-size:16px;line-height:1.65}
html body #root footer>.shell :is(p,strong),html body footer.standalone-footer p{color:#493b30!important;opacity:1!important}
html body #root footer>.shell .footer-legal,html body footer.standalone-footer .footer-legal{font-size:15px!important;line-height:1.7!important}
html body #root footer>.shell .footer-legal p,html body footer.standalone-footer .footer-legal p{font-size:inherit!important;line-height:inherit!important}
html body #root footer>.shell :is(a,button),html body footer.standalone-footer a{color:#60432c!important;font-weight:500;opacity:1!important}
html body #root footer>.shell :is(a,button):focus-visible,html body footer.standalone-footer a:focus-visible{outline:3px solid #b87832;outline-offset:3px}
@media(max-width:700px){html body #root footer:has(>.shell),html body footer.standalone-footer{padding-bottom:104px!important}html body #root footer>.shell .footer-legal,html body footer.standalone-footer .footer-legal{font-size:16px!important;text-align:left!important}html body #root footer>.shell :is(.footer-links a,button),html body footer.standalone-footer nav a{display:inline-flex;align-items:center;min-height:44px}html body #root footer>.shell .footer-legal p+p,html body footer.standalone-footer .footer-legal p+p{margin-top:14px!important}}

/* Keep Privacy with the text links; give brand icons a separate balanced row. */
@media(max-width:1100px){
 html body #root footer>.shell{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px 12px}
 html body #root footer>.shell>strong,html body #root footer>.shell>p{flex-basis:100%;margin:0}
 html body #root footer>.shell>p{margin-bottom:8px}
 html body #root footer>.shell .footer-links{display:contents!important}
 html body #root footer>.shell .footer-links>a,html body #root footer>.shell>button{order:1;display:inline-flex;align-items:center;min-height:44px;margin:0!important;padding:0!important;line-height:1.5}
 html body #root footer>.shell .footer-social-links,html body footer.standalone-footer .footer-social-links{order:2;flex-basis:100%;width:100%;margin:12px 0 8px!important;display:grid;grid-template-columns:repeat(7,44px);gap:10px;justify-content:center}
 html body #root footer>.shell .footer-legal{order:3;flex-basis:100%;width:100%;margin-top:16px}
 html body footer.standalone-footer>nav.footer-social-row{gap:8px 20px;margin-bottom:20px!important}
}
@media(max-width:520px){
 html body #root footer>.shell{justify-content:flex-start;gap:4px 18px}
 html body #root footer>.shell .footer-social-links,html body footer.standalone-footer .footer-social-links{grid-template-columns:repeat(4,44px);gap:10px;justify-content:center;margin:14px 0 8px!important}
}


/* Compact footer shared by classic, modern and retro. */
html body #root footer,html body footer.standalone-footer{padding-top:20px!important;padding-bottom:18px!important}
html body #root footer>.shell{max-width:1200px!important;margin:0 auto!important;box-sizing:border-box}
html body #root footer>.shell>p{margin:10px 0!important}
html body #root footer>.shell .footer-links{gap:10px 18px!important;margin:14px 0!important;align-items:center!important}
html body #root footer>.shell .footer-links.footer-social-row{display:flex!important;flex-wrap:wrap!important}
html body #root footer>.shell .footer-social-links{width:auto!important;flex:0 1 auto!important;margin:0 0 0 auto!important;padding:0!important;gap:7px!important}
html body #root footer>.shell>button{margin:0!important;padding:7px 10px!important;min-height:36px}
html body #root footer>.shell .footer-legal,html body footer.standalone-footer .footer-legal{margin-top:12px!important;padding-top:12px!important;font-size:14px!important;line-height:1.5!important}
html body #root footer>.shell .footer-legal p,html body footer.standalone-footer .footer-legal p{margin:0!important}
html body #root footer>.shell .footer-legal p+p,html body footer.standalone-footer .footer-legal p+p{margin-top:4px!important}
@media(max-width:700px){html body #root footer>.shell .footer-social-links{flex-basis:100%!important;justify-content:flex-start!important;margin:4px 0!important}}

html body #root footer>.shell{display:flex!important;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:8px 16px}
html body #root footer>.shell>strong,html body #root footer>.shell>p{flex-basis:100%}
html body #root footer>.shell .footer-links.footer-social-row{display:contents!important}
html body #root footer>.shell .footer-links>a,html body #root footer>.shell>button{order:1;font-size:14px!important;min-height:36px;display:inline-flex;align-items:center}
html body #root footer>.shell .footer-social-links{order:2;display:flex!important;flex-wrap:wrap;gap:7px!important;margin:0 0 0 auto!important;flex-basis:auto!important;width:auto!important}
html body #root footer>.shell .footer-legal{order:3;flex-basis:100%;width:100%}
@media(max-width:700px){html body #root footer>.shell .footer-social-links{flex-basis:100%!important;margin:4px 0!important}}

html body #root footer,html body footer.standalone-footer{padding-top:14px!important;padding-bottom:14px!important}
html body #root footer>.shell{max-width:1100px!important;gap:6px 14px}
html body #root footer>.shell>strong{margin:0!important;font-size:15px}
html body #root footer>.shell .footer-legal{margin-top:6px!important;padding-top:8px!important}
html body #root footer>.shell .footer-social-links :is(a,span){width:36px!important;height:36px!important}
@media(max-width:700px){html body #root footer>.shell{width:calc(100% - 32px)!important;padding:0!important}html body #root footer>.shell .footer-social-links{gap:6px!important}}

html body #root footer:has(>.shell){padding-top:14px!important;padding-bottom:14px!important}
html body #root footer>.shell .footer-social-links :is(a,span){min-width:36px!important;min-height:36px!important;flex:0 0 36px!important;padding:0!important;box-sizing:border-box}

/* Push the footer to the viewport edge on short pages, preserving normal flow. */
html body:has(>#root>.site){display:flex!important;flex-direction:column!important;min-height:100vh!important;min-height:100dvh!important;box-sizing:border-box}
html body:has(>#root>.site)>#unified-header{flex-shrink:0}
html body:has(>#root>.site)>#root{display:flex!important;flex-direction:column;flex:1 0 auto!important;min-height:0!important;width:100%;min-width:0}
html body:has(>#root>.site) #root>.site{display:flex!important;flex-direction:column!important;flex:1 0 auto;min-height:0!important;width:100%;min-width:0}
html body:has(>#root>.site) #root>.site>footer{margin-top:auto!important;flex-shrink:0;width:100%;box-sizing:border-box}
html body:has(>#root>.site) #root>.site>main{flex-shrink:0}

html body:has(>#root>.site) #root>.site>main.shell.page:has(>a[href="/login"]){min-height:0!important}

/* Social icons follow Privacy in the same footer row whenever space permits. */
html body #root footer>.shell{width:calc(100% - 32px)!important;max-width:1500px!important;gap:6px 12px!important}
html body #root footer>.shell .footer-social-links{margin:0!important;flex:0 0 auto!important;gap:6px!important;align-items:center}
@media(max-width:700px){html body #root footer>.shell .footer-social-links{flex-basis:100%!important;margin:4px 0!important}}

/* Server-rendered pages also keep their footer at the bottom on short screens. */
html body:has(>#unified-header):has(>footer.standalone-footer){display:flex!important;flex-direction:column!important;min-height:100vh!important;min-height:100dvh!important;box-sizing:border-box}
html body:has(>footer.standalone-footer)>#unified-header{flex-shrink:0}
html body:has(>#unified-header)>footer.standalone-footer{margin-top:auto!important;flex-shrink:0;width:100%;box-sizing:border-box}
html body:has(>footer.standalone-footer)>:is(main,.listing-shell){flex-shrink:0;min-width:0}
